zhongtianhaoyuan 3 years ago
parent
commit
6fb2f288d9
1 changed files with 31 additions and 7 deletions
  1. 31 7
      pages/mine/company/editcompany.vue

+ 31 - 7
pages/mine/company/editcompany.vue

@@ -4,7 +4,7 @@
 			<video controls id="myvideo" :src="dataDetails.videoAddressUrl" @fullscreenchange="screenChange"></video>
 		</view>
 		<view style='margin:10px 0 0 19px;font-size:12px;color:#EF4034;'>注:企业认证仅限该企业法定代表人本人完成。</view>
-		
+
 		<view class='content1'>
 			<view class="title">上传营业执照</view>
 			<view style='position:relative;' @click="uploadImg(1)">
@@ -41,7 +41,7 @@
 			</view>
 
 		</view>
-<view class='wrap'>
+		<view class='wrap'>
 			<view class="flex border-bottom mt20 align-center">
 				<view class="left">企业名称</view>
 				<view class="flex right">
@@ -66,7 +66,15 @@
 					</u--input>
 				</view>
 			</view>
-			<view class="flex mt20 align-center">
+			<view class="flex border-bottom mt20 align-center">
+				<view class="left">通讯地址</view>
+				<view class="flex right">
+					<u--input disabledColor='#fff' placeholder="输入通讯地址" inputAlign='left' border="none"
+						v-model="dataDetails.mailingAddress">
+					</u--input>
+				</view>
+			</view>
+			<!-- 	<view class="flex mt20 align-center">
 				<view class="left">注册实缴金额</view>
 				<view class="flex right align-center">
 					<u--input placeholder="输入企业注册实缴金额" inputAlign='left' border="none"
@@ -74,7 +82,7 @@
 					</u--input>
 					<view>万元</view>
 				</view>
-			</view>
+			</view> -->
 		</view>
 		<!-- http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 -->
 		<!-- dataDetails.videoAddressUrl -->
@@ -89,7 +97,8 @@
 			<view class="flex row noborder mt20 flex-space-between">
 				<view class="left-text">视频验证(点击按钮播放视频)</view>
 				<view>
-					<u-button type="primary" @click="goDetailPage('/pages/mine/company/companyvideo')" size="mini">重新上传</u-button>
+					<u-button type="primary" @click="goDetailPage('/pages/mine/company/companyvideo')" size="mini">重新上传
+					</u-button>
 				</view>
 			</view>
 			<!-- <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video> -->
@@ -357,10 +366,17 @@
 					})
 					return true
 				}
-				if (uni.$u.test.isEmpty(this.dataDetails.registeredPaidAmount)) {
+				// if (uni.$u.test.isEmpty(this.dataDetails.registeredPaidAmount)) {
+				// 	this.$refs.uToast.show({
+				// 		type: 'error',
+				// 		message: "注册实缴金额不能为空!",
+				// 	})
+				// 	return true
+				// }
+				if (uni.$u.test.isEmpty(this.dataDetails.mailingAddress)) {
 					this.$refs.uToast.show({
 						type: 'error',
-						message: "注册实缴金额不能为空!",
+						message: "通讯地址不能为空!",
 					})
 					return true
 				}
@@ -414,6 +430,14 @@
 			},
 			submit() {
 				if (this.validate()) return
+				if (!this.consentStatus) {
+					uni.showToast({
+						title: '请勾选协议',
+						icon: 'none',
+						duration: 2000
+					})
+					return
+				}
 				uni.showLoading({
 					title: '加载中',
 					mask: true