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) {
......
......@@ -92,11 +92,12 @@
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) {
......
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