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

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

hotfix/210830_二组需求分支
王饶冀 4 лет назад
Родитель
Сommit
12f7914bd5

+ 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>

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