|
@@ -76,6 +76,19 @@
|
|
|
>忘记密码?</view
|
|
|
>
|
|
|
</template>
|
|
|
+ <!-- 弹窗提示 -->
|
|
|
+ <tui-modal
|
|
|
+ :show="modal"
|
|
|
+ @click="handleClick"
|
|
|
+ @cancel="modal = false"
|
|
|
+ :content="modalContent"
|
|
|
+ :button="modalButton"
|
|
|
+ color="#333"
|
|
|
+ :size="32"
|
|
|
+ shape="circle"
|
|
|
+ :maskClosable="false"
|
|
|
+ >
|
|
|
+ </tui-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -112,7 +125,24 @@ export default {
|
|
|
mobileCodeText: '获取验证码',
|
|
|
mobilTime: null,
|
|
|
isDisabled: true,
|
|
|
- isUnderLogin:false
|
|
|
+ isUnderLogin:false,
|
|
|
+ modal:false,
|
|
|
+ modalButton: [
|
|
|
+ {
|
|
|
+ text: '取消',
|
|
|
+ type: 'gray',
|
|
|
+ plain: true //是否空心
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '去修改',
|
|
|
+ customStyle: {
|
|
|
+ color: '#fff',
|
|
|
+ bgColor: '#F3B574'
|
|
|
+ },
|
|
|
+ plain: false
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ modalContent:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -245,10 +275,20 @@ export default {
|
|
|
this.$api.switchTabTo('/pages/tabBar/user/user')
|
|
|
}
|
|
|
uni.removeStorageSync('LOGIN_REDIRECT_URL')
|
|
|
- } else {
|
|
|
+ } else if(data.code === -3) {
|
|
|
+ this.modal = true
|
|
|
+ this.modalContent = data.msg
|
|
|
+ }else{
|
|
|
this.$util.msg(data.msg, 2000)
|
|
|
}
|
|
|
},
|
|
|
+ handleClick(e) {
|
|
|
+ //确认删除
|
|
|
+ if (e.index == 1) {
|
|
|
+ this.$api.navigateTo('/pages/login/register-unid')
|
|
|
+ }
|
|
|
+ this.modal = false
|
|
|
+ },
|
|
|
navigatorRegirst(url) {
|
|
|
this.$api.navigateTo(url)
|
|
|
},
|