main
liudan 1 year ago
parent ea080e423a
commit 6227501e25
  1. 2
      common/http.interceptor.js
  2. 16
      pages/login/login.vue
  3. 2
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  4. 2
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/login.js.map
  5. 2
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/feedback.js.map
  6. 2
      unpackage/dist/dev/mp-weixin/common/vendor.js
  7. 16
      unpackage/dist/dev/mp-weixin/pages/login/login.js

@ -76,7 +76,7 @@ module.exports = (vm) => {
icon:'none' icon:'none'
}); });
if(data.code==401){ if(data.code==401){
uni.navigateTo({ uni.reLaunch({
url:'/pages/login/login' url:'/pages/login/login'
}) })
} }

@ -145,14 +145,14 @@
}) })
return; return;
} }
let reg = /^1[3456789]\d{9}$/ // let reg = /^1[3456789]\d{9}$/
let result = reg.test(this.form.account); // let result = reg.test(this.form.account);
if(!result) { // if(!result) {
this.$refs.uToast.show({ // this.$refs.uToast.show({
message:'请输入正确的手机号码' // message:''
}) // })
return false; // return false;
} // }
if(!this.form.password){ if(!this.form.password){
this.$refs.uToast.show({ this.$refs.uToast.show({
message:'请输入密码' message:'请输入密码'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -19374,7 +19374,7 @@ module.exports = function (vm) {
icon: 'none' icon: 'none'
}); });
if (data.code == 401) { if (data.code == 401) {
uni.navigateTo({ uni.reLaunch({
url: '/pages/login/login' url: '/pages/login/login'
}); });
} }

@ -235,14 +235,14 @@ var _default = {
}); });
return; return;
} }
var reg = /^1[3456789]\d{9}$/; // let reg = /^1[3456789]\d{9}$/
var result = reg.test(this.form.account); // let result = reg.test(this.form.account);
if (!result) { // if(!result) {
this.$refs.uToast.show({ // this.$refs.uToast.show({
message: '请输入正确的手机号码' // message:'请输入正确的手机号码'
}); // })
return false; // return false;
} // }
if (!this.form.password) { if (!this.form.password) {
this.$refs.uToast.show({ this.$refs.uToast.show({
message: '请输入密码' message: '请输入密码'

Loading…
Cancel
Save