Commit be35ecf5 authored by jyx's avatar jyx

代码优化

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