Bläddra i källkod

2 处理我关注的推荐内容接口参数!

release/210823_需求对对碰
王饶冀 3 år sedan
förälder
incheckning
43686e6c06
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1
    1
      pages/index/index.js
  2. 2
    2
      pages/msgModule/index.js

+ 1
- 1
pages/index/index.js Visa fil

}) })
if (this.data.attentionTypeIds && this.data.currentTab == 'my') { if (this.data.attentionTypeIds && this.data.currentTab == 'my') {
if (this.data.attentionTypeIds.length > 0 && this.data.total == 0) { if (this.data.attentionTypeIds.length > 0 && this.data.total == 0) {
this.getListData(1);
this.getListData(2);
} }
} }
}).catch(error => { }).catch(error => {

+ 2
- 2
pages/msgModule/index.js Visa fil

// mask: true // mask: true
// }) // })
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
let customerId = item.businessCommunicationCustomerVO.customerId;
let customerId = item.customerId;
let lastChatRecordCode = item.lastChatRecordCode; let lastChatRecordCode = item.lastChatRecordCode;
let msgData = this.data.msgData; let msgData = this.data.msgData;
msgData.forEach((el, inx) => { msgData.forEach((el, inx) => {
if (el.businessCommunicationCustomerVO.customerId == customerId) {
if (el.customerId == customerId) {
msgData.splice(inx, 1); msgData.splice(inx, 1);
} }
}) })

Laddar…
Avbryt
Spara