瀏覽代碼

处理详情-点击主页-返回详情 下面会多一条的问题!

hotfix/210830_二组需求分支
王饶冀 3 年之前
父節點
當前提交
12f7914bd5
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    0
      pages/index/components/listDetails/Details.js
  2. 1
    1
      pages/index/components/listDetails/Details.wxml

+ 1
- 0
pages/index/components/listDetails/Details.js 查看文件

if (this.data.currentData.customerId != this.data.userCustomerId) { if (this.data.currentData.customerId != this.data.userCustomerId) {
this.setData({ this.setData({
hotLoading: true, hotLoading: true,
listData:[],
}) })
this.getListData(); this.getListData();
} }

+ 1
- 1
pages/index/components/listDetails/Details.wxml 查看文件

</view> </view>
<view wx:else> <view wx:else>
<view class="list-view {{ customerId != currentData.customerId ? 'have-hot' : '' }}"> <view class="list-view {{ customerId != currentData.customerId ? 'have-hot' : '' }}">
<listItem item="{{ currentData }}" pageStatus="detatil" isCollect="{{ isCollect }}" isShowCollect="{{ customerId != currentData.customerId }}" bind:changeCollect="changeCollect" customerId="{{ userCustomerId }}" />
<listItem item="{{ currentData }}" pageStatus="detatil" isCollect="{{ isCollect }}" isShowCollect="{{ customerId != currentData.customerId }}" bind:changeCollect="changeCollect" customerId="{{ customerId }}" />
</view> </view>
<view wx:if="{{ customerId != currentData.customerId }}"> <view wx:if="{{ customerId != currentData.customerId }}">
<view class="view-interested">你可能感兴趣的需求</view> <view class="view-interested">你可能感兴趣的需求</view>

Loading…
取消
儲存