瀏覽代碼

bug修改

zxz 2 年之前
父節點
當前提交
164e428e4c
共有 3 個文件被更改,包括 13 次插入6 次删除
  1. 1 1
      pages/public/login.vue
  2. 1 1
      pages/public/register.vue
  3. 11 4
      pages/release/addAddress.vue

+ 1 - 1
pages/public/login.vue

@@ -15,7 +15,7 @@
 			<view style='margin-top:20px;border-bottom:1px solid #E8E9ED;position:relative;height:40px'>
 				<view style='position:relative;'>
 					<input class='password' v-model='password' v-if="isShowPassword=='password'" placeholder="请输入密码" type="password">
-					<input class='password' v-model='password' v-else type="text" placeholder="请输入密码">
+					<input maxlength='16' class='password' v-model='password' v-else type="text" placeholder="请输入密码">
 						<image class='yanjingicon' style='width:22px;height:22px;' @click="passWordStatus(1)" v-if="isShowPassword=='password'" src="../../static/yioncang.png" mode=""></image>
 						<image class='yanjingicon' style='width:22px;height:22px;' @click="passWordStatus(2)" v-else src="../../static/xianshi.png" mode=""></image>
 				</view>

+ 1 - 1
pages/public/register.vue

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

+ 11 - 4
pages/release/addAddress.vue

@@ -15,20 +15,20 @@
 				<u--form labelPosition="left" :model="addressInfo" ref="form1" labelWidth='100'>
 					<u-form-item label="所属区域" ref="item1" borderBottom>
 						<view style='width:100%;flex-direction:row-reverse;' class='flex align-center' @click='toMap' :class="addressInfo.area?'':'select-color'">
-							<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;"></image>
+							<image src="../../static/right.png" style="width: 12px;height: 12px;margin-top: 2px;"></image>
 							<view>{{addressInfo.area?(addressInfo.province+addressInfo.city+addressInfo.area):'选择所属区域 '}}</view>
 						</view>
 					</u-form-item>
 					<u-form-item label="详细地址" prop="addressInfo.detailedAddress" ref="item1" borderBottom>
 						<!-- <u--input v-model="addressInfo.detailedAddress" border="none" inputAlign="left"  placeholder="详细地址"></u--input> -->
-						<u--textarea v-model="addressInfo.detailedAddress" border="none" inputAlign="left" placeholder="详细地址" autoHeight  maxlength="15"></u--textarea>
+						<u--textarea v-model="addressInfo.detailedAddress" border="none" inputAlign="left" placeholder="请输入详细地址" autoHeight  maxlength="15"></u--textarea>
 						<!-- <u--input v-model="addressInfo.detailedAddress" border="none" placeholder="详细地址"></u--input> -->
 					</u-form-item>
 					<u-form-item label="联系人" prop="addressInfo.contacts" ref="item1" borderBottom>
-						<u--input v-model="addressInfo.contacts"  maxlength="10" inputAlign="right" border="none" placeholder="联系人">></u--input>
+						<u--input v-model="addressInfo.contacts"  maxlength="10" inputAlign="right" border="none" placeholder="请输入联系人">></u--input>
 					</u-form-item>
 					<u-form-item label="联系电话" prop="addressInfo.contactPhone" ref="item1">
-						<u--input v-model="addressInfo.contactPhone" inputAlign="right" border="none" placeholder="联系电话" maxlength="11">>
+						<u--input v-model="addressInfo.contactPhone" inputAlign="right" border="none" placeholder="请输入联系电话" maxlength="11">>
 						</u--input>
 					</u-form-item>
 				</u--form>
@@ -170,6 +170,13 @@
 					})
 					return true
 				}
+				if (this.addressInfo.contactPhone.length<7) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "联系人电话输入错误!",
+					})
+					return true
+				}
 				if (uni.$u.test.isEmpty(this.addressInfo.contactPhone)) {
 					this.$refs.uToast.show({
 						type: 'error',