gjy 2 years ago
parent
commit
e44229f811
3 changed files with 26 additions and 3 deletions
  1. 0 1
      pages/order/confirmLoading.vue
  2. 2 2
      pages/public/login.vue
  3. 24 0
      pages/public/register.vue

+ 0 - 1
pages/order/confirmLoading.vue

@@ -609,7 +609,6 @@
 					loadingLatitude:this.detailData.loadingLatitude,
 					id:this.detailData.hyCarrierInfo.id
 				}
-				
 				// console.log("查看id--------",this.detailData.hyCarrierInfo.id)
 				this.$request.baseRequest('post', '/carrierInfo/loadingAdd', data).then(res => {
 						if (res.code == 200) {

+ 2 - 2
pages/public/login.vue

@@ -24,8 +24,8 @@
 					<input placeholder-style="color:#AFB3BF" class='password' v-model='password' v-else type="text" placeholder="请输入密码">
 					<!-- <u-icon name="eye-off" color="rgb(192, 196, 204)" size="24" @click="passWordStatus(2)" v-else>
 						</u-icon> -->
-						<image class='yanjingicon' style='width:22px;height:22px;' @click="passWordStatus(1)" v-if="isShowPassword=='password'" src="../../static/xianshi.png" mode=""></image>
-						<image class='yanjingicon' style='width:22px;height:22px;' @click="passWordStatus(2)" v-else src="../../static/yioncang.png" mode=""></image>
+						<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>
 			</view>
 			<button :class='phone!=""&&password!=""?"active":""' @click='passlogin'

+ 24 - 0
pages/public/register.vue

@@ -213,6 +213,30 @@
 					})
 					return
 				}
+				if (!this.phone) {
+					uni.showToast({
+						title: '手机号不能为空',
+						icon: 'none',
+						duration: 2000
+					})
+					return
+				}
+				if (!this.verifyCode) {
+					uni.showToast({
+						title: '验证码不能为空',
+						icon: 'none',
+						duration: 2000
+					})
+					return
+				}
+				if (!this.password) {
+					uni.showToast({
+						title: '密码不能为空',
+						icon: 'none',
+						duration: 2000
+					})
+					return
+				}
 				if (this.verifyCode.length != 6) {
 					uni.showToast({
 						title: '验证码错误',