Commit 7f51e4bf authored by Facius's avatar Facius

improvement: 拒绝和绑定成功提示

parent e1f7bc71
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
</button> </button>
</view> </view>
</view> </view>
<view>
<u-toast ref="uToast" />
</view>
</view> </view>
</template> </template>
...@@ -121,8 +124,11 @@ export default { ...@@ -121,8 +124,11 @@ export default {
}) })
} }
} else { } else {
this.a = 2 this.$refs.uToast.show({
title: '授权成功',
type: 'success',
duration: 1500,
})
this.needAuth = false this.needAuth = false
} }
}) })
...@@ -131,10 +137,11 @@ export default { ...@@ -131,10 +137,11 @@ export default {
getphonenumber(e) { getphonenumber(e) {
if (e && e.detail) { if (e && e.detail) {
if (e.detail.errMsg.indexOf('user deny') > -1) { if (e.detail.errMsg.indexOf('user deny') > -1) {
uni.hideLoading()
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
showCancel: false, showCancel: false,
content: '用户未授权不能完成注册', content: '用户拒绝授权',
}) })
} else if (e.detail.encryptedData && e.detail.iv) { } else if (e.detail.encryptedData && e.detail.iv) {
this.uniLogin((code) => { this.uniLogin((code) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment