Browse Source

清理多余的代码

master
453530270@qq.com 2 years ago
parent
commit
18a3cc1912
  1. 54
      pages/reg/reg.vue

54
pages/reg/reg.vue

@ -107,16 +107,6 @@
this.isTick=!this.isTick
},
//
chkpass(){
let that = this
if (that.vpass != that.repass){
this.$toast('两次输入的密码不一样')
return false
}
return ture;
},
//
getsmscode(){
//
@ -172,16 +162,10 @@
formValidation() {
const app = this
//
if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass)) {
if (!app.validteMobile(app.mobile) ||!app.validtePass(app.vpass) || !app.chkpass()) {
return false
}
//
if(app.utchk1){
this.userType="企业"
}
if(app.utchk2){
this.userType ="个人"
}
//
if(!app.isTick){
this.$toast("请勾选《隐私保护政策》和 用《户注册协议》。")
@ -199,6 +183,16 @@
return true;
},
//
chkpass(){
let that = this
if (that.vpass != that.repass){
this.$toast('两次输入的密码不一样')
return false
}
return ture;
},
//
validteMobile(str) {
//
@ -229,7 +223,6 @@
const rdata = {
cellPhone: app.mobile,
verifyCode: app.verifyCode,
//password: $.md5($("#newpwd3").val()).toUpperCase(),
password:app.$md5(app.vpass).toUpperCase(),
passMd5ed: true
}
@ -243,29 +236,6 @@
}
});
// store.dispatch('Login', {
// loginName: app.mobile,
// loginType: "0",
// password: this.$md5(app.vpass).toUpperCase(), //
// userType: app.userType
// })
// .then(result => {
// //
// app.$toast(result.message)
// // :
// uni.$emit('syncRefresh', true)
// //
// setTimeout(() => app.onNavigateBack(1), 2000)
// })
// .catch(err => {
// console.log("err",err)
// //
// if (err.result.data.isBack) {
// setTimeout(() => app.onNavigateBack(1), 2000)
// }
// })
// .finally(() => app.isLoading = false)
},
/**

Loading…
Cancel
Save