Prechádzať zdrojové kódy

refactor(renzheng): 移除身份证和资质证书图片上传功能

- 删除身份证正反面上传相关的视图和逻辑代码
- 注释持有资质证书上传部分代码,暂时禁用该功能
- 保留头像上传和其他表单字段的相关代码
- 调整上传校验相关的注释,禁用对资质证书的上传校验
- 简化页面上传图片相关的交互逻辑,减少冗余代码
zhangtao 1 týždeň pred
rodič
commit
4041f6ecdd
1 zmenil súbory, kde vykonal 10 pridanie a 58 odobranie
  1. 10 58
      my/renzheng/index.vue

+ 10 - 58
my/renzheng/index.vue

@@ -35,54 +35,6 @@
 				<u-input v-model="form.describes" type="textarea" height="200" placeholde="请描述一下您的特长" maxlengt="200"
 					:clearable="false" style="border-radius: 32rpx;" />
 			</view>
-			<view class="text-lg margin-top-sm">上传身份证正面</view>
-			<view class="flex" style="overflow: hidden;flex-direction: initial;">
-				<view class="margin-top flex margin-right-sm" v-if="form.front.length">
-					<view class="flex" style="width: 200rpx;height: 200rpx;margin-right: 10rpx;position: relative;">
-						<image :src="form.front" style="width: 100%;height: 100%;"></image>
-						<view style="z-index: 9;position: absolute;top: -15rpx;right: -15rpx;" @click="frontRemove(1)">
-							<u-icon name="close-circle-fill" color="#2FB57A" size="50rpx"></u-icon>
-						</view>
-					</view>
-				</view>
-				<view class="margin-top" @click="addImage(1)" v-if="form.front.length<=0">
-					<view style="width: 200rpx;height: 200rpx;background: #f4f5f6;"
-						class="flex justify-center align-center">
-						<view>
-							<view class="text-center">
-								<image src="../../static/images/my/add.png" style="width: 65rpx;height: 55rpx;">
-								</image>
-							</view>
-							<view class="text-center">添加图片</view>
-						</view>
-					</view>
-				</view>
-
-			</view>
-			<view class="text-lg margin-top-sm">上传身份证反面</view>
-			<view class="flex" style="overflow: hidden;flex-direction: initial;">
-				<view class="margin-top flex margin-right-sm" v-if="form.back.length">
-					<view class="flex" style="width: 200rpx;height: 200rpx;margin-right: 10rpx;position: relative;">
-						<image :src="form.back" style="width: 100%;height: 100%;"></image>
-						<view style="z-index: 9;position: absolute;top: -15rpx;right: -15rpx;" @click="backRemove()">
-							<u-icon name="close-circle-fill" color="#2FB57A" size="50rpx"></u-icon>
-						</view>
-
-					</view>
-				</view>
-				<view class="margin-top" @click="addImage(2)" v-if="form.back.length<=0">
-					<view style="width: 200rpx;height: 200rpx;background: #f4f5f6;"
-						class="flex justify-center align-center">
-						<view>
-							<view class="text-center">
-								<image src="../../static/images/my/add.png" style="width: 65rpx;height: 55rpx;">
-								</image>
-							</view>
-							<view class="text-center">添加图片</view>
-						</view>
-					</view>
-				</view>
-			</view>
 			<view class="text-lg margin-top-sm">头像上传</view>
 			<view class="flex" style="overflow: hidden;flex-wrap: wrap;">
 				<view class="margin-top flex margin-right-sm flex-wrap" v-if="form.headImg && form.headImg.length">
@@ -112,7 +64,7 @@
 					</view>
 				</view>
 			</view>
-			<view class="text-lg margin-top-sm">持有资质证书(可多张)</view>
+		<!-- 	<view class="text-lg margin-top-sm">持有资质证书(可多张)</view>
 			<view class="flex" style="overflow: hidden;flex-wrap: wrap;">
 				<view class="margin-top flex margin-right-sm flex-wrap" v-if="certificateImg.length">
 					<view class="flex" style="width: 200rpx;height: 200rpx;margin-right: 2rpx;position: relative;"
@@ -162,7 +114,7 @@
 						</view>
 					</view>
 				</view>
-			</view>
+			</view> -->
 
 		</view>
 		<view style="text-align: center;">
@@ -536,14 +488,14 @@
 				// 	})
 				// 	return;
 				// }
-				if (!this.form.infantImg) {
-					uni.showToast({
-						title: '请上传生活照',
-						icon: 'none',
-						duration: 1000
-					})
-					return;
-				}
+				// if (!this.form.infantImg) {
+				// 	uni.showToast({
+				// 		title: '请上传生活照',
+				// 		icon: 'none',
+				// 		duration: 1000
+				// 	})
+				// 	return;
+				// }
 				let data = {
 					userId: uni.getStorageSync("userId"),
 					name: this.form.name,