Преглед на файлове

处理首页我关注的查询问题!

release/210823_需求对对碰
王饶冀 преди 3 години
родител
ревизия
058c3f1f99
променени са 2 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. 4
    3
      pages/index/index.js
  2. 2
    2
      pages/index/index.wxml

+ 4
- 3
pages/index/index.js Целия файл

@@ -85,7 +85,7 @@ Page({
let attentionTypeIds = businessCommunicationCustomer.attentionTypeIds;
if (attentionTypeIds) {
attentionTypeIds = attentionTypeIds.split(',');
}else{
} else {
attentionTypeIds = [];
}
this.setData({
@@ -95,7 +95,7 @@ Page({
}
},
onShow() {
},
toggleMore() {
this.selectComponent('#item').toggle();
@@ -206,7 +206,7 @@ Page({
if (currentTab == 'my') {
if (app.globalData.businessCommunicationCustomer) {
type = app.globalData.businessCommunicationCustomer.attentionTypeIds;
if(!type){
if (!type) {
this.setData({
listLoading: false
})
@@ -217,6 +217,7 @@ Page({
let paramIsInterest = 0;
if (isInterest) {
paramIsInterest = isInterest;
type = "";
}
this.setData({
paramIsInterest

+ 2
- 2
pages/index/index.wxml Целия файл

@@ -67,7 +67,7 @@
</view>
</view>
<view wx:else>
<view class="not-data clearfix" wx:if="{{ paramIsInterest == 1 }}">
<view class="not-data clearfix" wx:if="{{ paramIsInterest == 2 }}">
<view class="not-info-attention-type">
<view class="not-data-attention-view fl">
<image class="not-data-attention-img" src="/images/home/not-data-attention-img.png" />
@@ -78,7 +78,7 @@
</van-button>
</view>
</view>
<view class="view-interested" wx:if="{{ paramIsInterest == 1 }}">为您推荐以下内容</view>
<view class="view-interested" wx:if="{{ paramIsInterest == 2 }}">为您推荐以下内容</view>
<view class="list-view" wx:for="{{ listData }}" wx:key="index">
<listItem item="{{ item }}" bind:getItem="goDetails" customerId="{{ customerId }}"/>
</view>

Loading…
Отказ
Запис