|
@@ -32,7 +32,7 @@
|
|
v-for="(item,index) in tool"
|
|
v-for="(item,index) in tool"
|
|
:key="index"
|
|
:key="index"
|
|
@click="navigateToFun(item)"
|
|
@click="navigateToFun(item)"
|
|
- v-if="(withdrawInfo.allowWithdraw == 1 && item.title=='余额提现')||item.title=='邀请统计'||(isShowQrcode && item.title=='我的推广码')"
|
|
|
|
|
|
+ v-if="(withdrawInfo.allowWithdraw == 1 && item.title=='余额提现')||item.title!='余额提现'"
|
|
>
|
|
>
|
|
<image
|
|
<image
|
|
class="me-tool-item-icon"
|
|
class="me-tool-item-icon"
|
|
@@ -60,7 +60,7 @@
|
|
:title="title1"
|
|
:title="title1"
|
|
:content='content'
|
|
:content='content'
|
|
cancelText='取消'
|
|
cancelText='取消'
|
|
- confirmText='去认证'
|
|
|
|
|
|
+ :confirmText='confirmText'
|
|
showCancelButton
|
|
showCancelButton
|
|
confirmColor='#ED0000'
|
|
confirmColor='#ED0000'
|
|
@confirm='networkConfirm'
|
|
@confirm='networkConfirm'
|
|
@@ -88,10 +88,11 @@
|
|
withdrawInfo: {},
|
|
withdrawInfo: {},
|
|
|
|
|
|
// 入网认证
|
|
// 入网认证
|
|
- isShowQrcode: false, // 是否展示 推广码
|
|
|
|
- show: true,
|
|
|
|
|
|
+ isShowQrcode: -1, // 是否展示 推广码
|
|
|
|
+ show: false,
|
|
title1:'入网提示',
|
|
title1:'入网提示',
|
|
content:'你还未进行银联支付入网签约认证,请先完成签约认证!',
|
|
content:'你还未进行银联支付入网签约认证,请先完成签约认证!',
|
|
|
|
+ confirmText: '去认证',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -99,6 +100,7 @@
|
|
mounted() {
|
|
mounted() {
|
|
console.log('wpsdfsfasdfads')
|
|
console.log('wpsdfsfasdfads')
|
|
this.statusBarHeight = getApp().globalData.statusBarHeight
|
|
this.statusBarHeight = getApp().globalData.statusBarHeight
|
|
|
|
+ this.show = false
|
|
this.getUserInfo()
|
|
this.getUserInfo()
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
//window.addEventListener('popstate', this.browserBack)
|
|
//window.addEventListener('popstate', this.browserBack)
|
|
@@ -113,11 +115,30 @@
|
|
* @author ygh
|
|
* @author ygh
|
|
* @data 2023-12-20
|
|
* @data 2023-12-20
|
|
*/
|
|
*/
|
|
- navigateToFun(item){
|
|
|
|
|
|
+ async navigateToFun(item){
|
|
if(item.url) {
|
|
if(item.url) {
|
|
navigateTo(item.url)
|
|
navigateTo(item.url)
|
|
}else {
|
|
}else {
|
|
- this.getRetailQrcode()
|
|
|
|
|
|
+ let res = await this.$u.api.getInfo({
|
|
|
|
+ noSign: 1,
|
|
|
|
+ userid: this.distribution_user_info.userId
|
|
|
|
+ })
|
|
|
|
+ this.isShowQrcode = res.data.unionFlag
|
|
|
|
+ if(this.isShowQrcode != 1) {
|
|
|
|
+ if(this.isShowQrcode == 0) {
|
|
|
|
+ this.content = '你还未进行银联支付入网签约认证,请先完成签约认证!'
|
|
|
|
+ this.confirmText = '去认证'
|
|
|
|
+ }else if(this.isShowQrcode == 2) {
|
|
|
|
+ this.content = '银联支付入网签约认证中,请耐心等待!'
|
|
|
|
+ this.confirmText = '去查看'
|
|
|
|
+ }else if(this.isShowQrcode == 3) {
|
|
|
|
+ this.content = '银联支付入网签约认证失败,请重新认证!'
|
|
|
|
+ this.confirmText = '重新认证'
|
|
|
|
+ }
|
|
|
|
+ this.show = true
|
|
|
|
+ }else {
|
|
|
|
+ this.getRetailQrcode()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -136,11 +157,13 @@
|
|
})
|
|
})
|
|
if(res && res.code ===200) {
|
|
if(res && res.code ===200) {
|
|
this.userInfo = res.data
|
|
this.userInfo = res.data
|
|
- }
|
|
|
|
|
|
+ this.isShowQrcode = res.data.unionFlag
|
|
|
|
+ }
|
|
if(res1 && res1.code === 200){
|
|
if(res1 && res1.code === 200){
|
|
this.withdrawInfo = res.data
|
|
this.withdrawInfo = res.data
|
|
}
|
|
}
|
|
}catch(e){
|
|
}catch(e){
|
|
|
|
+ this.isShowQrcode = -1
|
|
//TODO handle the exception
|
|
//TODO handle the exception
|
|
console.error("e===",e)
|
|
console.error("e===",e)
|
|
}
|
|
}
|
|
@@ -254,10 +277,31 @@
|
|
/** 入网认证 */
|
|
/** 入网认证 */
|
|
networkConfirm() {
|
|
networkConfirm() {
|
|
this.show = false
|
|
this.show = false
|
|
|
|
+ navigateTo('/pages/networkAuth/index')
|
|
|
|
+ //this.getUnionAccessUrlFun()
|
|
},
|
|
},
|
|
networkCancel() {
|
|
networkCancel() {
|
|
this.show = false
|
|
this.show = false
|
|
},
|
|
},
|
|
|
|
+ /** 银联签约入网地址 */
|
|
|
|
+ async getUnionAccessUrlFun(){
|
|
|
|
+ try{
|
|
|
|
+ let res = await this.$u.api.getUnionAccessUrl({
|
|
|
|
+ userid: this.distribution_user_info.userId
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ if(res && res.code ===200) {
|
|
|
|
+ this.show = false
|
|
|
|
+ location.href = res.data.jumpUrl
|
|
|
|
+ } else {
|
|
|
|
+ this.show = true
|
|
|
|
+ }
|
|
|
|
+ }catch(e){
|
|
|
|
+ //TODO handle the exception
|
|
|
|
+ this.show = true
|
|
|
|
+ console.error("e===",e)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|