zhengjinyi 1 year ago
parent
commit
95b73f2ad1

+ 9 - 4
pages/seller/remarks/details.vue

@@ -29,10 +29,15 @@
 			<view class="list-view-title">
 				<view class="list-view-h1">
 					沟通情况:
-					<text> {{ remarksParams.communicationSituation === 0 ? '已沟通' : '联系不上' }} </text>
-					<text v-if="remarksParams.communicationMethods === 1"> (电话) </text>
-					<text v-if="remarksParams.communicationMethods === 2"> (微信) </text>
-					<text v-if="remarksParams.communicationMethods ==='1,2' || remarksParams.communicationMethods ==='2,1'"> (电话,微信) </text>
+					<template v-if="remarksParams.communicationSituation === 0">
+						<text>已沟通</text>
+						<text v-if="remarksParams.communicationMethods === 1"> (电话) </text>
+						<text v-if="remarksParams.communicationMethods === 2"> (微信) </text>
+						<text v-if="remarksParams.communicationMethods ==='1,2' || remarksParams.communicationMethods ==='2,1'"> (电话,微信) </text>
+					</template>
+					<template v-else>
+						<text> 联系不上 </text>
+					</template>	
 				</view>
 			</view>
 			<view class="list-view-title">

+ 7 - 2
pages/seller/remarks/mixins/addMixins.js

@@ -81,15 +81,20 @@ const addMixins = {
     methods: {
         // 切换沟通情况
         radioChange(evt) {
-            console.log('evnt',evt.detail.value)
             for (let i = 0; i < this.items.length; i++) {
                 if (this.items[i].value === evt.detail.value) {
                     this.current = i
                     this.remarksParams.communicationSituation = evt.detail.value*1
-                    console.log('communicationMethods',this.remarksParams.communicationSituation)
+                    console.log('communicationSituation',this.remarksParams.communicationSituation)
+                    if(this.remarksParams.communicationSituation === 1){
+					    this.remarksParams.communicationMethods = ''
+						 console.log('communicationMethods',this.remarksParams.communicationMethods)
+                    }
                     break
                 }
             }
+            
+			
         },
         // 选择联系方式
         checkboxChange(evnt){

+ 9 - 4
pages/seller/remarks/record-details.vue

@@ -4,10 +4,15 @@
 			<view class="list-view-title">
 				<view class="list-view-h1">
 					沟通情况:
-					<text> {{ remarksParams.communicationSituation === 0 ? '已沟通' : '联系不上' }} </text>
-					<text v-if="remarksParams.communicationMethods === 1"> (电话) </text>
-					<text v-if="remarksParams.communicationMethods === 2"> (微信) </text>
-					<text v-if="remarksParams.communicationMethods ==='1,2' || remarksParams.communicationMethods ==='2,1'"> (电话,微信) </text>
+					<template v-if="remarksParams.communicationSituation === 0">
+						<text>已沟通</text>
+						<text v-if="remarksParams.communicationMethods === 1"> (电话) </text>
+						<text v-if="remarksParams.communicationMethods === 2"> (微信) </text>
+						<text v-if="remarksParams.communicationMethods ==='1,2' || remarksParams.communicationMethods ==='2,1'"> (电话,微信) </text>
+					</template>
+					<template v-else>
+						<text> 联系不上 </text>
+					</template>	
 				</view>
 			</view>
 			<view class="list-view-title">