Commit 06167d58 authored by jyx's avatar jyx

修复整剧解锁未刷新状态,推荐剧跳转慢,首页加载 100条数据

parent 93a1bf36
...@@ -164,7 +164,14 @@ ...@@ -164,7 +164,14 @@
}, },
// 支付完成回调 // 支付完成回调
paySuccess(largeType) { paySuccess(largeType) {
this.unlockAll(); if (largeType == 'vip') {
this.unlockAll();
} else if (largeType == 'point') {
// 解锁单集
this.pm.setCurrentUnlock();
} else if (largeType == 'vedio') {
this.unlockAll();
}
this.pm.toggleCustomDialog(); this.pm.toggleCustomDialog();
}, },
......
...@@ -182,7 +182,8 @@ ...@@ -182,7 +182,8 @@
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;" style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
src="../../static/index/ic_quit_white.png" mode="aspectFill"></image> src="../../static/index/ic_quit_white.png" mode="aspectFill"></image>
<view @click="handleBottomPlay(newRecordBean)" <view @click="handleBottomPlay(newRecordBean)"
style="width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"> 继续观看 style="width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;">
继续观看
</view> </view>
</view> </view>
...@@ -234,7 +235,7 @@ ...@@ -234,7 +235,7 @@
boxImgUrl: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_bag.png', boxImgUrl: 'https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_bag.png',
clientHeight: 0, clientHeight: 0,
page: 1, page: 1,
size: 10, size: 100,
loadStatus: 'loadmore' loadStatus: 'loadmore'
}; };
}, },
...@@ -413,34 +414,32 @@ ...@@ -413,34 +414,32 @@
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: loadEpisode_id, album_id: loadAlbum_id
album_id: loadAlbum_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