Просмотр исходного кода

提交代码,首页index,js新增个人关注类型分类判断

release/210823_需求对对碰
王饶冀 4 лет назад
Родитель
Сommit
f39fc2954d
1 измененных файлов: 5 добавлений и 1 удалений
  1. 5
    1
      pages/index/index.js

+ 5
- 1
pages/index/index.js Просмотреть файл

this.toSearch(); this.toSearch();
const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null; const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null;
if (businessCommunicationCustomer) { if (businessCommunicationCustomer) {
let attentionTypeIds = businessCommunicationCustomer.attentionTypeIds;
if(attentionTypeIds){
attentionTypeIds = attentionTypeIds.split(',');
}
this.setData({ this.setData({
attentionTypeIds: businessCommunicationCustomer.attentionTypeIds.split(','),
attentionTypeIds,
customerId:businessCommunicationCustomer.customerId customerId:businessCommunicationCustomer.customerId
}) })
} }

Загрузка…
Отмена
Сохранить