@@ -143,11 +143,18 @@
},
reset(){
var that = this
+ if (this.password.length < 6) {
+ uni.showToast({
+ title: '密码请输入6-16字符格式',
+ icon: 'none',
+ duration: 2000
+ })
+ return
+ }
uni.showLoading({
title: '重置密码中'
})
this.$request.baseRequest('post','/commonUser/resetPassword',{phone:this.phone,password:this.password,verifyCode:this.verifyCode,identification:1}).then(res => {
- console.log("重置密码",res)
// 获得数据
if(res.code==200){
if(this.isPhone){//判断是否是在个人首页进来的(若是退出重进)
@@ -186,7 +193,6 @@
uni.hideLoading()
.catch(res => {
uni.showToast({
title: "系统异常,请联系管理员",
icon:'none',
@@ -223,7 +223,7 @@
}
if (this.password.length < 6) {
- title: '请输入正确的密码格式',
icon: 'none',
duration: 2000
@@ -512,7 +512,7 @@
this.show = false
replace() {
- if (this.unloadInfo.unloadProvince == "全国") {
+ if (this.title2 == "全国") {
uni.$u.toast("发货地不可以是全国")
return