zhongtianhaoyuan 2 years ago
parent
commit
b2a16f2852
3 changed files with 10 additions and 4 deletions
  1. 8 2
      pages/mine/settings/editPassword.vue
  2. 1 1
      pages/public/register.vue
  3. 1 1
      pages/riders/index.vue

+ 8 - 2
pages/mine/settings/editPassword.vue

@@ -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 => {
-					console.log("重置密码",res)
 				    uni.showToast({
 				    	title: "系统异常,请联系管理员",
 				    	icon:'none',

+ 1 - 1
pages/public/register.vue

@@ -223,7 +223,7 @@
 				}
 				if (this.password.length < 6) {
 					uni.showToast({
-						title: '请输入正确的密码格式',
+						title: '密码请输入6-16字符格式',
 						icon: 'none',
 						duration: 2000
 					})

+ 1 - 1
pages/riders/index.vue

@@ -512,7 +512,7 @@
 				this.show = false
 			},
 			replace() {
-				if (this.unloadInfo.unloadProvince == "全国") {
+				if (this.title2 == "全国") {
 					uni.$u.toast("发货地不可以是全国")
 					return
 				}