授权时,暂不授权可点击
parent
826c9bf12e
commit
65b8aaa372
|
@ -22,7 +22,7 @@
|
||||||
<view class="bacf radius20 width100 tank-box">
|
<view class="bacf radius20 width100 tank-box">
|
||||||
<view class="tc tank-box-itemone">请授权绑定手机号</view>
|
<view class="tc tank-box-itemone">请授权绑定手机号</view>
|
||||||
<view class="fon28 colf pad-sx30 pad-zy30 tc disjb">
|
<view class="fon28 colf pad-sx30 pad-zy30 tc disjb">
|
||||||
<view class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view>
|
<view @tap="nobind" class="pad-sx10 radius10 tank-btn" style="background-color: rgba(230, 230, 230,1);color: #000000;">暂不绑定</view>
|
||||||
<view :style="{background:publicColor}" class="pad-sx10 radius10 tank-btn posir">
|
<view :style="{background:publicColor}" class="pad-sx10 radius10 tank-btn posir">
|
||||||
立即绑定
|
立即绑定
|
||||||
<button open-type="getPhoneNumber" @getphonenumber="getphonenumber" class="posia syxzo">立即绑定</button>
|
<button open-type="getPhoneNumber" @getphonenumber="getphonenumber" class="posia syxzo">立即绑定</button>
|
||||||
|
@ -64,6 +64,21 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 暂不绑定
|
||||||
|
nobind(){
|
||||||
|
this.isShowP = false;
|
||||||
|
let newUrl = uni.getStorageSync('transientUrl');
|
||||||
|
// 如果是其他地方过来的有路径,授权成功后返回到过来的页面
|
||||||
|
if(newUrl){
|
||||||
|
uni.reLaunch({
|
||||||
|
url:newUrl
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/tabbar/pagehome/pagehome'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
refuse(){//暂不绑定事件
|
refuse(){//暂不绑定事件
|
||||||
this.isShowP=false;
|
this.isShowP=false;
|
||||||
this.$toolAll.tools.showToast('登录成功','success')
|
this.$toolAll.tools.showToast('登录成功','success')
|
||||||
|
|
Loading…
Reference in New Issue