zhengjinyi 2 rokov pred
rodič
commit
8d428fb3c4
1 zmenil súbory, kde vykonal 13 pridanie a 1 odobranie
  1. 13 1
      pages/second/form/form-seller.vue

+ 13 - 1
pages/second/form/form-seller.vue

@@ -190,6 +190,10 @@
 				 		<text class="iconfont" :class="type.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
 				 		{{ type.name }}
 				 	</view>
+					<view class="checkbox-list" @click="choiceNoProductFileType">
+						<text class="iconfont" :class="isCheckedNotype ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
+						无任何文件
+					</view>	
 				 </view>
 			 </view>
 			<view class="row none" v-if="secondParams.publishIdentity === 1">
@@ -492,12 +496,12 @@
 					{ name:'仪器注册证',value:2,isChecked:false},
 					{ name:'仪器发票',value:3,isChecked:false},
 					{ name:'仪器报关单',value:4,isChecked:false},
-					{ name:'无任何文件',value:5,isChecked:false}
 				],
 				bankActions:[
 					{name:'公账',value:1},
 					{name:'私账',value:2},
 				],
+				isCheckedNotype:false,
 				GoodsImagesList:[],
 				secondParams:{
 					publishIdentity:1, // 发布者身份 1 个人身份 2 公司身份
@@ -606,6 +610,7 @@
 			},
 			choiceProductFileType(type,index){
 				// 选择类别
+				this.isCheckedNotype = false
 				type.isChecked = !type.isChecked
 				if (type.isChecked) {
 					if(!this.contains(this.checkedFileTypeList,type.value)){
@@ -616,6 +621,13 @@
 				}
 				this.secondParams.fileType = this.checkedFileTypeList.join(',')
 			},
+			choiceNoProductFileType(){//选择无文件
+				this.isCheckedNotype = true
+				this.secondParams.fileType = ''
+				this.productFileTypeActions.forEach((el)=>{
+					el.isChecked = false
+				})
+			},
 			contains(arr, val) {// 校验
 				return arr.some(item => item === val)
 			},