Browse Source

二手发布修改

zhengjinyi 3 years ago
parent
commit
fe95c4a3e5
2 changed files with 102 additions and 78 deletions
  1. 100 76
      pages/second/form/form.vue
  2. 2 2
      services/config.env.js

+ 100 - 76
pages/second/form/form.vue

@@ -10,7 +10,7 @@
 				</view>
 			</view>
 			<view class="row">
-				<view class="label">发布身份:</view>
+				<view class="label"><text class="red">*</text>发布身份:</view>
 				<view class="select spacing">
 					<picker
 						@change="bindPickerChangePublisher($event)"
@@ -31,7 +31,46 @@
 				<text class="iconfont icon-xiayibu"></text>
 			</view>
 			<view class="row">
-				<view class="label">二手分类:</view>
+				 <view class="label"><text class="red">*</text>联系人:</view>
+				 <view class="spacing">
+					  <input type="text" 
+							 maxlength="15" 
+							 v-model="secondParams.contactName" 
+							 placeholder="请输入联系人姓名" 
+							 placeholder-class="placeholder">
+				</view> 
+			</view>
+			<view class="row">
+				<view class="label"><text class="red">*</text>联系方式:</view>
+				<view class="spacing">
+					<input  type="text" 
+							v-model="secondParams.contactMobile" 
+							maxlength="11" 
+							placeholder="请输入联系人手机号" 
+							@blur="contactMobileOnblur"
+							placeholder-class="placeholder">
+				</view> 
+			</view>
+			<view class="row">
+				<view class="label"><text class="red">*</text>验证码:</view>
+				<view class="spacing">
+					<input  type="text" 
+							v-model="secondParams.checkCode" 
+							maxlength="6" 
+							placeholder="请输入验证码" 
+							placeholder-class="placeholder">
+				</view> 
+				<view class="row-btn" :class="[isMobileDisabled  ? 'disabled' : '']">
+					<button class="row-input"
+							type="button" 
+							@click.stop="getMobileCodeFn" 
+							:disabled="isMobileDisabled">
+							{{ mobileCodeText }}
+					</button>
+				</view>		
+			</view>
+			<view class="row">
+				<view class="label"><text class="red">*</text>二手分类:</view>
 				<view class="select spacing">
 					<picker
 						@change="bindPickerChange($event)"
@@ -52,7 +91,7 @@
 				<text class="iconfont icon-xiayibu"></text>
 			</view>
 			<view class="row">
-				<view class="label">商品品牌:</view>
+				<view class="label"><text class="red">*</text>商品品牌:</view>
 				<view class="select spacing">
 					<picker
 						@change="bindPickerChangeBrand($event)"
@@ -83,7 +122,7 @@
 				 </view>
 			 </view>
 			 <view class="row">
-				 <view class="label">商品名称:</view>
+				 <view class="label"><text class="red">*</text>商品名称:</view>
 				 <view class="spacing">
 					 <input type="text" 
 							maxlength="40"  
@@ -103,7 +142,7 @@
 				 </view>
 			 </view>
 			 <view class="row" v-if="secondParams.publishIdentity === 2">
-				 <view class="label">公司名称:</view>
+				 <view class="label"><text class="red">*</text>公司名称:</view>
 				 <view class="spacing">
 					 <input type="text"  
 							v-model="secondParams.companyName"  
@@ -113,7 +152,7 @@
 				 </view>
 			 </view>
 			 <view class="row">
-				 <view class="label">交易价:</view>
+				 <view class="label"><text class="red">*</text>交易价:</view>
 				 <view class="spacing">
 					 <input type="text" maxlength="20" v-model="secondParams.price"  placeholder="请输入交易价" placeholder-class="placeholder">
 				 </view>
@@ -145,7 +184,7 @@
 				 </view>
 			 </view> -->
 			 <view class="row">
-				 <view class="label">商品成色:</view>
+				 <view class="label"><text class="red">*</text>商品成色:</view>
 				 <view class="spacing">
 					 <input type="text" 
 							maxlength="10"  
@@ -155,7 +194,7 @@
 				</view> 
 			 </view>
 			 <view class="row none">
-				 <view class="label">商品包含的文件:</view>
+				 <view class="label"><text class="red">*</text>商品包含的文件:</view>
 			 </view>
 			 <view class="row none">
 				 <view class="checkbox-main">
@@ -171,47 +210,8 @@
 				 	</view>
 				 </view>
 			 </view>
-			 <view class="row">
-				 <view class="label">联系人:</view>
-				 <view class="spacing">
-					  <input type="text" 
-							 maxlength="15" 
-							 v-model="secondParams.contactName" 
-							 placeholder="请输入联系人姓名" 
-							 placeholder-class="placeholder">
-				</view> 
-			</view>
-			<view class="row">
-				<view class="label">联系方式:</view>
-				<view class="spacing">
-					<input  type="text" 
-							v-model="secondParams.contactMobile" 
-							maxlength="11" 
-							placeholder="请输入联系人手机号" 
-							@blur="contactMobileOnblur"
-							placeholder-class="placeholder">
-				</view> 
-			</view>
-			<view class="row">
-				<view class="label">验证码:</view>
-				<view class="spacing">
-					<input  type="text" 
-							v-model="secondParams.checkCode" 
-							maxlength="6" 
-							placeholder="请输入验证码" 
-							placeholder-class="placeholder">
-				</view> 
-				<view class="row-btn" :class="[isMobileDisabled  ? 'disabled' : '']">
-					<button class="row-input"
-							type="button" 
-							@click.stop="getMobileCodeFn" 
-							:disabled="isMobileDisabled">
-							{{ mobileCodeText }}
-					</button>
-				</view>		
-			</view>
 			<view class="row none" v-if="secondParams.publishIdentity === 1">
-				<view class="label-im">身份证照片:</view>
+				<view class="label-im"><text class="red">*</text>身份证照片:</view>
 				<view class="label-em">个人请上传身份证正反面照片(图片大小不超过5M)</view>
 				<view class="release-input upload image uploadGoodsImages" >
 					<view class="upload-file-view">
@@ -238,8 +238,8 @@
 					</view>
 				</view>
 			 </view>
-			 <view class="row none" v-if="secondParams.publishIdentity === 2">
-			 	<view class="label-im">营业执照:</view>
+			<view class="row none" v-if="secondParams.publishIdentity === 2">
+			 	<view class="label-im"><text class="red">*</text>营业执照:</view>
 			 	<view class="label-em">请上传营业执照照片(图片大小不超过5M)</view>
 			 	<view class="release-input upload image uploadGoodsImages" >
 			 		<view class="upload-file" v-if="secondParams.licenseImage == ''">
@@ -252,9 +252,18 @@
 			 			<i class=" del iconfont icon-iconfontguanbi" @click="removeUserImageFn"></i>
 			 		</view>
 			 	</view>
-			  </view>
-			 
-			 <view class="row">
+			</view>
+			<view class="row">
+			  	<view class="label-im"><text class="red">*</text>收款账号:<text class="sms">(用于接收最终结算金额)</text></view>
+			  	<view class="spacing file-none">
+			  		<input  type="text"
+							v-model="secondParams.companyName"  
+							maxlength="20" 
+							placeholder="请输入收款银行卡卡号" 
+							placeholder-class="placeholder">
+			  	</view> 
+			</view>
+			<view class="row">
 				 <view class="label">采美对接人:</view> 
 				 <view class="spacing">
 					 <input type="text" 
@@ -263,8 +272,8 @@
 							placeholder="请输入采美对接人姓名" 
 							placeholder-class="placeholder">
 				</view> 
-			 </view>
-			 <view class="row">
+			</view>
+			<view class="row">
 				 <view class="label">对接人联系方式:</view>
 				 <view class="spacing">
 					 <input type="text" 
@@ -295,7 +304,7 @@
 				 <text class="iconfont icon-xiayibu"></text>
 			 </view>
 			<view class="row" >
-				 <view class="label">联系地址:</view>
+				 <view class="label"><text class="red">*</text>联系地址:</view>
 				 <view class="spacing"  @click="showMulLinkageThreePicker">
 					 <text class="row-input" :class="addressData.address === '请选择所在地区' ? 'none,placeholder' : ''"  >
 						{{addressData.address}}
@@ -312,7 +321,7 @@
 			</textarea>
 			<view class="release-main-container">
 				<view class="release-from">
-					<view class="label">商品图片</view>
+					<view class="label"><text class="red">*</text>商品图片</view>
 					<view class="release-input upload image uploadGoodsImages" >
 						<view class="upload-file" v-if="GoodsImagesList.length<5">
 							<text class="iconfont icon-shangchuantupian"></text>
@@ -399,7 +408,7 @@
 								   :class="checkbox ? 'icon-yixuanze':'icon-weixuanze'" >
 							</text>
 							已阅读并同意采美
-							<text style="color:#1890f9;" @click.stop="this.$api.navigateTo('/pages/service/service?id=1013&title=二手出让协议')">《二手出让协议》</text>
+							<text style="color:#1890f9;" @click.stop="this.$api.navigateTo('/pages/service/service?id=1039&title=二手出让协议')">《二手出让协议》</text>
 						</view>
 					</view>
 					<view class="tui-flex-1">
@@ -482,6 +491,7 @@
 					contactName:'',//联系人
 					contactMobile:'',//联系方式
 					checkCode:'',// 联系人手机验证码
+					cardNumber:'',// 收款账号
 					authenticationImage:'', //身份证正面
 					authenticationBackImage:'', //身份证反面
 					licenseImage:'',//营业执照图片
@@ -673,6 +683,23 @@
 				})
 			},
 			handleSubmitBtn () {
+				if(this.secondParams.contactName == ''){
+					this.$util.msg('请输入联系人姓名',2000)
+					return
+				}
+				if(this.secondParams.contactMobile == ''){
+					console.log(this.secondParams.contactMobile)
+					this.$util.msg('请输入联系方式',2000)
+					return
+				}
+				if(!$reg.isMobile(this.secondParams.contactMobile)){
+					this.$util.msg('请填写正确的手机号',2000)
+					return
+				}
+				if(this.secondParams.checkCode == ''){
+					this.$util.msg('请输入短信验证码',2000)
+					return
+				}
 				if(this.secondParams.secondHandType == ''){
 					this.$util.msg('请选择分类',2000)
 					return
@@ -693,7 +720,7 @@
 				}
 				if(this.secondParams.publishIdentity === 2) {
 					if (this.secondParams.companyName=='') {
-						 this.$util.msg('请输入公司名称',2000);
+						 this.$util.msg('请输入公司名称',2000)
 						 return
 					} 
 				}
@@ -723,21 +750,8 @@
 					this.$util.msg('请选择商品包含的文件',2000)
 					return
 				}
-				if(this.secondParams.contactName == ''){
-					this.$util.msg('请输入联系人姓名',2000)
-					return
-				}
-				if(this.secondParams.contactMobile == ''){
-					console.log(this.secondParams.contactMobile)
-					this.$util.msg('请输入联系方式',2000)
-					return
-				}
-				if(!$reg.isMobile(this.secondParams.contactMobile)){
-					this.$util.msg('请填写正确的手机号',2000)
-					return
-				}
-				if(this.secondParams.checkCode == ''){
-					this.$util.msg('请输入短信验证码',2000)
+				if(this.secondParams.cardNumber == ''){
+					this.$util.msg('请输入收款银行卡卡号',2000)
 					return
 				}
 				if(this.userIdentity === 1){
@@ -886,11 +900,11 @@
 		color: #e15616;
 		padding:20rpx;
 		background-color: rgba(225, 86, 22, .1);
-		border-radius: 8rpx;
+		border-radius: 10rpx;
 	}
 	.nestext{
 		font-size: 24rpx;
-		line-height: 44rpx;
+		line-height: 40rpx;
 	}
 	.secondradio view{
 		display: inline-block;
@@ -935,6 +949,9 @@
 	.label{
 		color: #666666;
 		display: inline-block;
+		.red{
+			color: #f94b4b;
+		}
 	}
 	.label-im{
 		width: 100%;
@@ -943,6 +960,13 @@
 		color: #666666;
 		text-align: left;
 		margin-top: 20rpx;
+		.red{
+			color: #f94b4b;
+		}
+		.sms{
+			font-size: $font-size-24;
+			color: #fea785;
+		}
 	}
 	.label-em{
 		line-height: 28rpx;

+ 2 - 2
services/config.env.js

@@ -3,8 +3,8 @@ if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.67:18002'	 //智捷联调地址
     // URL_CONFIG = 'http://192.168.2.68:18002'	 //涛涛联调地址
-    URL_CONFIG = 'http://192.168.2.75:18002'	 //超超联调地址
-    // URL_CONFIG = 'https://core-b.caimei365.com'
+    // URL_CONFIG = 'http://192.168.2.75:18002'	 //超超联调地址
+    URL_CONFIG = 'https://core-b.caimei365.com'
     // URL_CONFIG = 'https://core.caimei365.com'
 }else{
     // 生产环境