Commit d5dcb753 authored by jyx's avatar jyx

代码优化

parent f9035d0a
...@@ -345,35 +345,33 @@ ...@@ -345,35 +345,33 @@
}, },
showFirstDialog() { showFirstDialog() {
let that = this; let that = this;
// let loadEpisode_id = uni.getStorageSync('tt_episode_id') || ''; let loadEpisode_id = uni.getStorageSync('tt_episode_id') || '';
// let loadAlbum_id = uni.getStorageSync('tt_album_id') || ''; let loadAlbum_id = uni.getStorageSync('tt_album_id') || '';
setTimeout(() => { that.post({
that.post({ url: '/vedio/firstVedio/douyin',
url: '/vedio/firstVedio/douyin', data: {
data: { episode_id: loadEpisode_id,
episode_id: '', album_id: loadAlbum_id
album_id: '' },
}, showLoading: false,
showLoading: false, success: ({
success: ({ data
data }) => {
}) => { if (data.vedioMsg != null) {
if (data.vedioMsg != null) { gotoVideoPlayerPage(data.vedioMsg)
gotoVideoPlayerPage(data.vedioMsg)
// 重置短视频挂载id
// 重置短视频挂载id uni.setStorage({
uni.setStorage({ key: 'tt_album_id',
key: 'tt_album_id', data: ''
data: '' });
}); uni.setStorage({
uni.setStorage({ key: 'tt_episode_id',
key: 'tt_episode_id', data: ''
data: '' });
});
}
} }
}); }
}, 800); });
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment