Commit 37eef46f authored by jyx's avatar jyx

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

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