|
@@ -54,15 +54,34 @@ var vipFreeIntroduceNode = {
|
|
template: vipFreeIntroduceTemplate,
|
|
template: vipFreeIntroduceTemplate,
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
- info: contrastFunctionJson
|
|
|
|
|
|
+ info: contrastFunctionJson,
|
|
|
|
+ userInfo: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created:function () {
|
|
created:function () {
|
|
console.log('vipFreeIntroduceNode created', this.info)
|
|
console.log('vipFreeIntroduceNode created', this.info)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getUserInfo() {
|
|
|
|
+ var _this = this
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/bigmember/use/isAdd',
|
|
|
|
+ type: 'GET',
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.error_code == 0) {
|
|
|
|
+ _this.userInfo = res.data || {}
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
goBuyMember: function () {
|
|
goBuyMember: function () {
|
|
- window.location.href = '/jy_mobile/order/create/bigmember?meal=sj'
|
|
|
|
|
|
+ if(this.userInfo?.memberStatus) {
|
|
|
|
+ window.location.href = '/jy_mobile/tabbar/home'
|
|
|
|
+ } else {
|
|
|
|
+ window.location.href = '/jy_mobile/order/create/bigmember?meal=sj'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|