Commit 5b8deb53 authored by jyx's avatar jyx

开通vip更新我的页面状态

parent 26c71fb4
...@@ -106,14 +106,23 @@ ...@@ -106,14 +106,23 @@
mounted() { mounted() {
// 渲染完成 初始化首页数据 // 渲染完成 初始化首页数据
this.loadComponentData(); this.loadComponentData();
let that = this
if (this.localActiviteFlag == 1) { if (this.localActiviteFlag == 1) {
let that = this
uni.$on('goWareHouse', function(data) { uni.$on('goWareHouse', function(data) {
that.tabChange(1) that.tabChange(1)
}) })
} }
uni.$on('refreshPreviousPage', (data) => {
if (data.vipFlag == '1') {
// 开通vip刷新状态
if (that.currentPage == 2) {
that.$refs.user.show();
}
}
});
}, },
methods: { methods: {
tabChange(index) { tabChange(index) {
......
...@@ -209,7 +209,12 @@ ...@@ -209,7 +209,12 @@
message.notify('支付成功') message.notify('支付成功')
setTimeout(() => { setTimeout(() => {
navigateBack(); uni.$emit('refreshPreviousPage', {
vipFlag: '1'
});
uni.navigateBack({
delta: 1,
});
}, 1000); }, 1000);
}, },
fail(res) { fail(res) {
......
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