|
@@ -11,31 +11,42 @@ Page({
|
|
|
},
|
|
|
|
|
|
goModifuPassword(e) {
|
|
|
- if (this.data.isBindPhone==0) {
|
|
|
- let url = `/pages/bindPhone/bindPhone`;
|
|
|
+ if(this.phoneCheck()){
|
|
|
+ let url = '/pages/ucenter/accountsecurity/checkphonesecuirty/checkphonesecruity?scene='+this.data.reviserPasswordScene;
|
|
|
wx.navigateTo({
|
|
|
url
|
|
|
});
|
|
|
- return;
|
|
|
}
|
|
|
- let url = '/pages/ucenter/accountsecurity/checkphonesecuirty/checkphonesecruity?scene='+this.data.reviserPasswordScene;
|
|
|
- wx.navigateTo({
|
|
|
- url
|
|
|
- });
|
|
|
},
|
|
|
|
|
|
goModifyPhone(e) {
|
|
|
- if (this.data.isBindPhone==0) {
|
|
|
- let url = `/pages/bindPhone/bindPhone`;
|
|
|
+ if(this.phoneCheck()){
|
|
|
+ let url = '/pages/ucenter/accountsecurity/checkphonesecuirty/checkphonesecruity?scene='+this.data.unbindPhoneScene;
|
|
|
wx.navigateTo({
|
|
|
url
|
|
|
});
|
|
|
- return;
|
|
|
}
|
|
|
- let url = '/pages/ucenter/accountsecurity/checkphonesecuirty/checkphonesecruity?scene='+this.data.unbindPhoneScene;
|
|
|
- wx.navigateTo({
|
|
|
- url
|
|
|
- });
|
|
|
+ },
|
|
|
+
|
|
|
+ phoneCheck(){
|
|
|
+ if (this.data.isBindPhone==0) {
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '当前账户未绑定手机号,请您进行手机号绑定操作',
|
|
|
+ showCancel:false,
|
|
|
+ confirmText: '去绑定',
|
|
|
+ confirmColor:'#00aadd',
|
|
|
+ success: function (res1) {
|
|
|
+ let url = `/pages/bindPhone/bindPhone`;
|
|
|
+ wx.navigateTo({
|
|
|
+ url
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ return true;
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/**
|