|
|
@ -253,6 +253,7 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
openAdvancedSetting(e) { |
|
|
openAdvancedSetting(e) { |
|
|
|
|
|
console.log('e',e) |
|
|
if (e.detail.value) { |
|
|
if (e.detail.value) { |
|
|
checkVip({userId: this.userInfo.id, userClientType: "10"}).then(res => { |
|
|
checkVip({userId: this.userInfo.id, userClientType: "10"}).then(res => { |
|
|
if (res.data.code === 200) { |
|
|
if (res.data.code === 200) { |
|
|
@ -260,13 +261,30 @@ |
|
|
this.advancedSetting = e.detail.value; |
|
|
this.advancedSetting = e.detail.value; |
|
|
} else { |
|
|
} else { |
|
|
this.advancedSetting = !e.detail.value; |
|
|
this.advancedSetting = !e.detail.value; |
|
|
uni.showToast({ |
|
|
uni.showModal({ |
|
|
title: '还不是会员,开通会员后再尝试', |
|
|
title: '提示', |
|
|
icon: 'none' |
|
|
content: '还不是会员,点击跳转开通会员', |
|
|
}) |
|
|
success(res){ |
|
|
} |
|
|
if (res.confirm) { |
|
|
|
|
|
//跳转登录界面 |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:'/pages/userInfo/vip/vip' |
|
|
|
|
|
}) |
|
|
|
|
|
}else if(res.cancel){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title:'开通会员享受更多高级功能哟!', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
success() { |
|
|
|
|
|
this.advancedSetting = false; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.advancedSetting = e.detail.value; |
|
|
this.advancedSetting = e.detail.value; |
|
|
// this.formData.sfgScale = undefined; |
|
|
// this.formData.sfgScale = undefined; |
|
|
|