|  | @@ -24,7 +24,7 @@
 | 
	
		
			
				|  |  |  						</view>
 | 
	
		
			
				|  |  |  						<view :class="formdata.type == 2?'tagitem active':'tagitem'" @click="formdata.type = 2">商品
 | 
	
		
			
				|  |  |  						</view>
 | 
	
		
			
				|  |  | -						<view :class="formdata.type == 0?'tagitem active':'tagitem'" @click="formdata.type = 0">其他
 | 
	
		
			
				|  |  | +						<view v-if="formdata.complaintType == 1" :class="formdata.type == 0?'tagitem active':'tagitem'" @click="formdata.type = 0">其他
 | 
	
		
			
				|  |  |  						</view>
 | 
	
		
			
				|  |  |  					</view>
 | 
	
		
			
				|  |  |  				</view>
 | 
	
	
		
			
				|  | @@ -223,7 +223,7 @@
 | 
	
		
			
				|  |  |  				fileList1: [],
 | 
	
		
			
				|  |  |  				formdata: {
 | 
	
		
			
				|  |  |  					title: '',
 | 
	
		
			
				|  |  | -					type: 0, //0默认1店铺2商品
 | 
	
		
			
				|  |  | +					type: undefined, //0默认1店铺2商品
 | 
	
		
			
				|  |  |  					content: '',
 | 
	
		
			
				|  |  |  					images: '',
 | 
	
		
			
				|  |  |  					complaintType: '',
 | 
	
	
		
			
				|  | @@ -233,6 +233,10 @@
 | 
	
		
			
				|  |  |  						required: true,
 | 
	
		
			
				|  |  |  						message: '请选择投诉方式'
 | 
	
		
			
				|  |  |  					}],
 | 
	
		
			
				|  |  | +					type: [{
 | 
	
		
			
				|  |  | +						required: true,
 | 
	
		
			
				|  |  | +						message: '请选择投诉类型'
 | 
	
		
			
				|  |  | +					}],
 | 
	
		
			
				|  |  |  					title: [{
 | 
	
		
			
				|  |  |  						required: true,
 | 
	
		
			
				|  |  |  						message: '请输入标题'
 | 
	
	
		
			
				|  | @@ -338,7 +342,14 @@
 | 
	
		
			
				|  |  |  				if (this.fileList1.length > 0) {
 | 
	
		
			
				|  |  |  					this.formdata.images = this.fileList1.map(item=>item.url).join(',')
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | -				if(this.formdata.type == 1&&!this.storeId) {
 | 
	
		
			
				|  |  | +				if(this.formdata.complaintType == 2&&!this.formdata.images) {
 | 
	
		
			
				|  |  | +					uni.showToast({
 | 
	
		
			
				|  |  | +						title: '请上传凭证',
 | 
	
		
			
				|  |  | +						icon: 'none'
 | 
	
		
			
				|  |  | +					})
 | 
	
		
			
				|  |  | +					return
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +				if(this.formdata.complaintType == 2&&this.formdata.type == 1&&!this.storeId) {
 | 
	
		
			
				|  |  |  					uni.showToast({
 | 
	
		
			
				|  |  |  						title: '请选择店铺',
 | 
	
		
			
				|  |  |  						icon: 'none'
 | 
	
	
		
			
				|  | @@ -367,13 +378,11 @@
 | 
	
		
			
				|  |  |  					if (res) {
 | 
	
		
			
				|  |  |  						this.$isLogin().then(res => {
 | 
	
		
			
				|  |  |  							if (res) {
 | 
	
		
			
				|  |  | -								if(this.formdata.type == 1) {
 | 
	
		
			
				|  |  | -									this.formdata = {
 | 
	
		
			
				|  |  | -										...this.formdata,
 | 
	
		
			
				|  |  | -										storeId: this.storeId,
 | 
	
		
			
				|  |  | -										orderId: this.orderId,
 | 
	
		
			
				|  |  | -										productIds: productIds
 | 
	
		
			
				|  |  | -									}
 | 
	
		
			
				|  |  | +								this.formdata = {
 | 
	
		
			
				|  |  | +									...this.formdata,
 | 
	
		
			
				|  |  | +									storeId: this.storeId || undefined,
 | 
	
		
			
				|  |  | +									orderId: this.orderId || undefined,
 | 
	
		
			
				|  |  | +									productIds: productIds || undefined
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  								storeComplaint(this.formdata).then(res => {
 | 
	
		
			
				|  |  |  									if (res.code == 200) {
 |