Commit 37eef46f authored by jyx's avatar jyx

修复匹配用户跳转两次内容BUG

修复内容页签约成功后未刷新页面BUG
parent 13488bd2
......@@ -131,6 +131,10 @@
addReadRecord(this.bookId)
}
if (this.isVip()) {
this.unlockBook()
}
// this.showVipOpen = data.openVips
// // 用户变动,需要刷新数据
// this.$nextTick(() => {
......@@ -265,7 +269,7 @@
})
},
paySuccess() {
this.$set(this.bookData, "isUnlock", true);
// this.$set(this.bookData, "isUnlock", true);
},
// 点击底部按钮
tapBottomItem(e) {
......@@ -282,7 +286,7 @@
}
})
break;
case 'setting': // 设置
case 'setting': // 设置
this.showSetting = true;
break;
default:
......@@ -321,7 +325,7 @@
this.showBean = true;
},
// 关闭设置弹窗
closePop(e) {
closePop(e) {
this.showSetting = false;
},
// 关闭会员弹窗
......
......@@ -92,17 +92,18 @@
onShow() {
try {
// 在子组件重写show()代替onShow()
if (this.currentPage == 0) {
this.$refs.index.show();
} else if (this.currentPage == 1) {
this.$refs.recommend.show();
} else if (this.currentPage == 2) {
// if (this.currentPage == 0) {
// this.$refs.index.show();
// } else if (this.currentPage == 1) {
// this.$refs.recommend.show();
// } else
if (this.currentPage == 2) {
this.$refs.user.show();
}
} catch (e) {
}
let that = this
uni.$on('refreshPreviousPage', (data) => {
if (data.vipFlag == '1') {
......
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