duanshenglang 1 hete
szülő
commit
0e63def335

+ 1 - 1
lottery/complaint.html

@@ -94,7 +94,7 @@
         <div class="client_item" v-for="(item, index) in complaintList" :key="index" @click="handleComplaint(item)">
           <div class="client_head">
             <div>{{item.clientName}}</div>
-            <div class="client_status" :style="{color: item.notifyStatus === 2 ? '#FF4E4E' : '#CCCCCC'}">{{item.notifyStatus === 2 ? '已处理' : '未处理'}}</div>
+            <div class="client_status" :style="{color: item.notifyStatus === 2 ? '#CCCCCC' : '#FF4E4E'}">{{item.notifyStatus === 2 ? '已读' : '未处理'}}</div>
           </div>
           <div class="client_content">{{item.sentimentReason}}</div>
         </div>

+ 1 - 2
lottery/intentionClient.html

@@ -51,7 +51,6 @@
 
   .client_item {
     width: 100%;
-    background: #FFFFFF;
     border-radius: 10px;
     padding: 20px 10px;
     box-sizing: border-box;
@@ -111,7 +110,7 @@
     <!-- 数据查看 -->
     <div class="page4">
       <div class="client_list">
-        <div class="client_item" v-for="(item, index) in intentionList" :key="index" @click="handleTimeOut(item)">
+        <div class="client_item" :style="{background: item.notifyStatus === 2 ? '#ededed' : '#FFFFFF'}" v-for="(item, index) in intentionList" :key="index" @click="handleTimeOut(item)">
           <div class="client_head">{{item.clientName}}</div>
           <div class="client_right" v-if="item.intentionGroup">
             <span v-for="(k, kIndex) in item.intentionGroup.nameList.slice(0, 2)" :key="kIndex" :class="item.groupId === 1 ? 'intention_tag1' : 'intention_tag2'">{{k}}</span>

+ 1 - 0
lottery/intentionDetail.html

@@ -172,6 +172,7 @@
             method: 'post',
             body: JSON.stringify({
               id: this.id,
+              groupId: this.groupId,
               corpId: this.corpId,
             }),
             headers: {

+ 27 - 2
lottery/toFollowUpClient.html

@@ -51,7 +51,6 @@
 
   .client_item {
     width: 100%;
-    background: #FFFFFF;
     border-radius: 10px;
     padding: 20px 10px;
     box-sizing: border-box;
@@ -89,7 +88,7 @@
     <!-- 数据查看 -->
     <div class="page4">
       <div class="client_list">
-        <div class="client_item" v-for="(item, index) in followUpList" :key="index" @click="toFollowUpClient(item)">
+        <div class="client_item" :style="{background: item.isRead ? '#ededed' : '#FFFFFF'}" v-for="(item, index) in followUpList" :key="index" @click="toFollowUpClient(item)">
           <div class="client_head">{{item.clientName}}</div>
           <div class="client_right">
             <div>{{item.sellProcessName}}</div>
@@ -223,6 +222,32 @@
           })
       },
       toFollowUpClient(item) {
+        if (item.isRead) {
+          this.handleToFollow(item)
+        } else {
+          fetch(this.httpUrl + `/wxcp/sell-process/p/member/read-client?id=${item.id}`, {
+            method: 'post',
+            body: JSON.stringify({
+            }),
+            headers: {
+              'Content-Type': 'application/json'
+            }
+          }).then(res => {
+              return res.json()
+            }).then(result => {
+              let { data, code, msg } = result
+              if (code === 1) {
+                this.handleToFollow(item)
+              } else {
+                this.$message({
+                  message: msg,
+                  type: 'warning'
+                })
+              }
+            })
+        }
+      },
+      handleToFollow (item) {
         wx.openEnterpriseChat({
           externalUserIds: item.wxcpClientExternalUserId, // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
           groupName: "",  // 会话名称。单聊时该参数传入空字符串""即可。