|
|
@@ -53,6 +53,7 @@ Page({
|
|
|
onLoad(options) {
|
|
|
console.log('打开视频列表页面--------------------------')
|
|
|
wx.setStorageSync('jump', parseInt(options.jump)) // 是否跳转阅读器
|
|
|
+ this.autoLogin(options.promotionid);
|
|
|
if (!app.globalData.uuid) {
|
|
|
this.getUUID().then(uuid => {
|
|
|
// getApp().globalData.uuid = uuid
|
|
|
@@ -83,6 +84,15 @@ Page({
|
|
|
// this.handleEntrace(options);
|
|
|
},
|
|
|
|
|
|
+ // 自动登录
|
|
|
+ async autoLogin(promotionid) {
|
|
|
+ try {
|
|
|
+ await getApp().login(promotionid);
|
|
|
+ } catch (error) {
|
|
|
+ console.error('登录失败:', error);
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
onShow() {
|
|
|
console.log('页面显示--------------------------')
|
|
|
this.rewardVideoLoad()
|
|
|
@@ -121,7 +131,7 @@ Page({
|
|
|
// });
|
|
|
}
|
|
|
});
|
|
|
- }, 500);
|
|
|
+ }, 800);
|
|
|
} else {
|
|
|
// 第二次进入把isEnterVideoDetail恢复默认值
|
|
|
app.globalData.isEnterVideoDetail = true;
|