修改文字
This commit is contained in:
@@ -160,7 +160,8 @@
|
||||
},
|
||||
|
||||
// 开通会员
|
||||
openOrder(){
|
||||
openOrder(){
|
||||
let can = this.canBtn,
|
||||
identitiesId = this.identitie[this.tabsIndex].identity_id
|
||||
if(this.selected == false) {
|
||||
uni.showToast({
|
||||
@@ -168,11 +169,23 @@
|
||||
icon : 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
// 判断是否线上,线下开通 can.on_line=true为线上开通
|
||||
if(can.on_line) {
|
||||
console.log('微信支付')
|
||||
if(can.on_line) {
|
||||
// 线上开通 - 再一次按断是否续费 can.buy= true为续费
|
||||
if(can.buy) {
|
||||
if(can.buy) {
|
||||
// 开通vip提交
|
||||
console.log('开通vip提交')
|
||||
this.vipSubmitr(identitiesId);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: can.message,
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
// 线下开通 - 再一次按断是否续费 can.buy= true为续费
|
||||
if(can.buy) {
|
||||
// 上传凭证
|
||||
this.canClick();
|
||||
} else {
|
||||
@@ -182,43 +195,41 @@
|
||||
})
|
||||
}
|
||||
}
|
||||
return
|
||||
let identitiesId = this.identitie[this.tabsIndex].identity_id
|
||||
return
|
||||
|
||||
},
|
||||
// 开通vip提交
|
||||
vipSubmitr(id) {
|
||||
vipOrder(id,{
|
||||
year: 1
|
||||
}).then(res => {
|
||||
if(!res.test){
|
||||
let verifyForm = res
|
||||
this.wechatPay(res.id)
|
||||
}else{
|
||||
// 测试环境
|
||||
uni.showModal({
|
||||
title : '开通提示',
|
||||
content : '会员开通成功,是否继续完成企业认证',
|
||||
showCancel : true,
|
||||
cancelText : '稍后认证',
|
||||
confirmText : '立即认证',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
this.$Router.replace({name: 'Approve'})
|
||||
return
|
||||
}
|
||||
this.$Router.back()
|
||||
},
|
||||
fail(err) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(err =>{
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 轻节点身份-跳转个人认证
|
||||
openUrl() {
|
||||
}).then(res => {
|
||||
if(!res.test){
|
||||
let verifyForm = res
|
||||
this.wechatPay(res.id)
|
||||
}else{
|
||||
// 测试环境
|
||||
uni.showModal({
|
||||
title : '开通提示',
|
||||
content : '会员开通成功,是否继续完成企业认证',
|
||||
showCancel : true,
|
||||
cancelText : '稍后认证',
|
||||
confirmText : '立即认证',
|
||||
success : modalRes => {
|
||||
if(modalRes.confirm){
|
||||
this.$Router.replace({name: 'Approve'})
|
||||
return
|
||||
}
|
||||
this.$Router.back()
|
||||
},
|
||||
fail(err) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(err =>{
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user