gjy 3 سال پیش
والد
کامیت
7542f171d6
3فایلهای تغییر یافته به همراه34 افزوده شده و 29 حذف شده
  1. 5 6
      pageD/identity/companyIdentityThree.vue
  2. 8 18
      pageD/identity/driverIdentity.vue
  3. 21 5
      pageD/myRelease/sellGrain.vue

+ 5 - 6
pageD/identity/companyIdentityThree.vue

@@ -69,9 +69,9 @@
 				<input placeholder="请填写手机号" @input='phoneinput' v-model="identityAuthenticationInfo.customerPhone"></input>
 			</view>
 		</view>
-		<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
+		<view style='width:100%;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
 			<button :class='codestatus&&!sendDisabled?"active":""' @click='obtain' class='getcode'>{{sendText}}</button>
-			<view  class="con-list" style='width:70%;position:relative;'>
+			<view  class="con-list" style='position:relative;'>
 				<input style='text-align:right;' v-model='verifyCode' placeholder="请输入验证码" type="number">
 			</view>
 		</view>
@@ -133,8 +133,10 @@
 		},
 		methods: {
 			obtain() {
-				if (this.sendText == "获取验证码")
+				console.log(1111)
+				if (this.sendText == "获取验证码"){
 					this.getcode()
+				}
 			},
 			bankUp() {
 				var that = this
@@ -532,9 +534,6 @@
 
 	.getcode {
 		font-size: 14px;
-		position: absolute;
-		top: 50%;
-		transform: translateY(-50%);
 		color: #AFB3BF;
 		background: #F5F6F9;
 		height: 30px;

+ 8 - 18
pageD/identity/driverIdentity.vue

@@ -39,18 +39,16 @@
 			<view class="c-row b-b">
 				<text class="tit">手机号</text>
 				<view class="con-list">
-					<input placeholder="请填写手机号" maxlength = "11"  name="input" v-model="DriverViewInfo.driverPhone"></input>
+					<input placeholder="请填写手机号" maxlength = "11" @input='phoneinput' name="input" v-model="DriverViewInfo.driverPhone"></input>
 				</view>
 			</view>
-			<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
+			<view style='padding:10px;' class="c-row b-b">
 				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
 					class='getcode'>{{sendText}}</button>
-				<view style='width:70%;position:relative;margin-left: 200px;'>
 					<view class="con-list">
 						<!-- style='width:70%;position:relative;margin-left: 200px;' -->
 						<input v-model='verifyCode' maxlength = "6"  placeholder="请输入验证码" type="text">
 					</view>
-				</view>
 			</view>
 			<view class="c-row ">
 				<text class="tit">常驻城市</text>
@@ -117,11 +115,11 @@
 			...mapState(['hasLogin', 'userInfo'])
 		},
 		methods: {
-			// phoneinput(e) {
-			// 	if (e.detail.value.length == 11) {
-			// 		this.codestatus = true
-			// 	}
-			// },
+			phoneinput(e) {
+				if (e.detail.value.length == 11) {
+					this.codestatus = true
+				}
+			},
 			regionchange() {
 				this.show = true
 			},
@@ -393,14 +391,10 @@
 		line-height: 40rpx;
 		text-align: right;
 		padding-right: 20rpx;
-		font-size: 14px;
+		font-size: 12px;
 	}
-
 	.getcode {
 		font-size: 14px;
-		position: absolute;
-		top: 50%;
-		transform: translateY(-50%);
 		color: #AFB3BF;
 		background: #F5F6F9;
 		height: 30px;
@@ -475,10 +469,6 @@
 
 	.getcode {
 		font-size: 14px;
-		position: absolute;
-		/*  right:0; */
-		top: 50%;
-		transform: translateY(-50%);
 		color: #AFB3BF;
 		background: #F5F6F9;
 		height: 30px;

+ 21 - 5
pageD/myRelease/sellGrain.vue

@@ -76,7 +76,7 @@
 			<view class="c-row b-b">
 				<text class="tit">卖方手机号</text>
 				<view class="con-list">
-					<input placeholder="请输入卖方手机号" name="input" v-model="deptList.sellerPhone"></input>
+					<input placeholder="请输入卖方手机号" @input='phoneinput' name="input" v-model="deptList.sellerPhone"></input>
 				</view>
 			</view>
 			<!-- <view class="c-row ">
@@ -312,7 +312,14 @@
 			// 			return false
 			// 		});
 			// },
+			phoneinput(e){
+				console.log(e)
+				if(e.detail.value.length==11){
+					
+				}
+			},
 			getcode() {
+				console.log(1111)
 				var that = this
 				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.deptList.sellerPhone)) {
 					this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
@@ -584,9 +591,14 @@
 				this.insertSalePlanInfo.commonId = this.userInfo.id
 				this.insertSalePlanInfo.salePlanNo='XSJH'+this.getdate()+this.verifyinit()
 				this.insertSalePlanInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
-				this.$api.doRequest('get', '/commonUser/loginVerifyCode', {
-						phone: this.deptList.sellerPhone,
-						verifyCode: this.verifyCode
+				uni.showModal({ 
+					title: '提示',
+				    content: '确定发布交易信息?',
+				    success: function (res) {
+						if (res.confirm) {
+							that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
+						phone: that.deptList.sellerPhone,
+						verifyCode: that.verifyCode
 					}).then(res => {
 						if (res.data.code == 200) {
 							that.$api.doRequest('post', '/salePlanInfo/api/insertSalePlanInfo', that.insertSalePlanInfo).then(res => {
@@ -642,6 +654,11 @@
 						})
 						return
 					});
+						} else if (res.cancel) {
+						
+						}
+					}});
+				
 				// this.insertProcurementPlanInfo = this.deptList
 				// this.insertProcurementPlanInfo.basisPrice = -this.insertProcurementPlanInfo.basisPrice
 				// this.insertProcurementPlanInfo.commonId = this.userInfo.id
@@ -736,7 +753,6 @@
 		-webkit-box-direction: normal;
 		-webkit-flex-direction: column;
 		flex-direction: column;
-		color: #AFB3BF;
 		line-height: 40rpx;
 		text-align: right;
 		padding-right: 20rpx;