Commit be35ecf5 authored by jyx's avatar jyx

代码优化

parent d324ce2d
...@@ -70,23 +70,20 @@ ...@@ -70,23 +70,20 @@
}, },
onShow(options) { onShow(options) {
this.ttLoging() this.ttLoging()
this.isVipStatus() this.isVipStatus()
}, },
methods: { methods: {
isVipStatus() { isVipStatus() {
if (this.sourceType == 'android' && this.localToken) { if (this.sourceType == 'android' && this.localToken) {
this.post({ let that = this;
url: '/user/baseMsg', this.post({
showLoading: false, url: '/vip/getVipProducts/cyc/forVApp',
success: ({ showLoading: false,
data success: ({
}) => { data
if (data.expireTime > 0) { }) => {
this.isVip = true that.isVip = data.vip
} else { }
this.isVip = false
}
}
}); });
} }
}, },
...@@ -152,7 +149,6 @@ ...@@ -152,7 +149,6 @@
fail: function(err) {} fail: function(err) {}
}); });
}, },
handlePay() { handlePay() {
let that = this; let that = this;
this.post({ this.post({
......
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