Bladeren bron

【Mod】取消默认城市避免客户误选。下单无地址时弹出地址填写。

liuxiangxin 6 maanden geleden
bovenliggende
commit
5f33ceb0a4
2 gewijzigde bestanden met toevoegingen van 29 en 14 verwijderingen
  1. 2 5
      pages/product/index.vue
  2. 27 9
      pages/user/info.vue

+ 2 - 5
pages/product/index.vue

@@ -171,7 +171,7 @@
 				<view class="rule_info">
 					<view class="">报单规则:</view>
 					<view class="">1、预约报单需要添加客服人员</view>
-					<view class="">2、添加完客服人员后填写手机号以绑定账号</view>
+					<view class="">2、添加完客服人员后填写小程序当前登录手机号以绑定账号</view>
 					<view class="">3、开始预约报单</view>
 				</view>
 			</view>
@@ -401,10 +401,7 @@
 				}
 				// 地址未填
 				if( !this.checkedAddr.id ) {
-					uni.showToast({
-						title:"请选择收货地址",
-						icon:"none"
-					})
+					this.showAddrPopup();
 					return;
 				}
 				//需要下单的产品信息参数传给completion页面

+ 27 - 9
pages/user/info.vue

@@ -41,8 +41,8 @@
 			this.cityArray.splice(0,1,getProvinces());
 			this.cityArray.splice(1,1,getMyCity(this.cityValue[0]));
 			// 默认地址
-			this.requestParam.province 	= this.cityArray[0][this.cityValue[0]]
-			this.requestParam.city 		= this.cityArray[1][this.cityValue[1]];
+			// this.requestParam.province 	= this.cityArray[0][this.cityValue[0]]
+			// this.requestParam.city 		= this.cityArray[1][this.cityValue[1]];
 		},
 		onShow(){
 			// 登录信息
@@ -52,6 +52,22 @@
 			toApply(){
 				// 登录信息
 				if( !this.$checkAccess.alterLogin() ) return ;
+				// 提示信息
+				if( !this.requestParam.province ){
+					uni.showToast({
+						title:"请选择所在城市",
+						icon:"none"
+					})
+					return ;
+				}
+				// 提示信息
+				if( !this.requestParam.city ){
+					uni.showToast({
+						title:"请选择所在城市",
+						icon:"none"
+					})
+					return ;
+				}
 				// 请求状态
 				uni.showLoading({mask:true});
 				// 授权成功以后,调用绑定
@@ -130,13 +146,15 @@
 					padding: 0rpx 20rpx;
 					line-height: 56rpx;;
 					border: 2rpx solid #DDDDDD;
-				}
-				.area_text{
-					width: 446rpx;
-					font-size: 20rpx;
-					overflow: hidden;
-					white-space: nowrap;
-					text-overflow: ellipsis;
+					.area_text{
+						width: 446rpx;
+						height: 56rpx;
+						font-size: 20rpx;
+						overflow: hidden;
+						white-space: nowrap;
+						line-height: 56rpx;
+						text-overflow: ellipsis;
+					}
 				}
 				.group_image{
 					width: 200rpx;