Browse Source

[限时抢购][修改][展示条件]

tags/河北版C.8.1.01
hurui 5 years ago
parent
commit
853b28d37e
2 changed files with 3 additions and 9 deletions
  1. +2
    -6
      pages/main/index.js
  2. +1
    -3
      pages/main/index.wxml

+ 2
- 6
pages/main/index.js View File

@@ -471,7 +471,7 @@ Page({
targetAd: 2
}
}).then(res => {
if (res && res.data) {
if (res.data.list.title) {
that.setData({
xslist: res.data.list,
showQg:true
@@ -636,11 +636,7 @@ Page({
// that.selectComponent("#rushtobyCard").getList();
wx.stopPullDownRefresh();
//爆款专区下拉刷新
// that.selectComponent("#hot").getList();
that.selectComponent("#hot").getChange();
if(!that.kSize||!that.pSize){
that.pSize = 0
}
that.selectComponent("#hot").getList();
},
//加载更多
onReachBottom: function() {


+ 1
- 3
pages/main/index.wxml View File

@@ -59,7 +59,7 @@
</view>
</view>
<!-- 每日头条 限时抢购 -->
<view class='toutiao' bindtap='gotoRushBuy' wx:if="{{showQg}}">
<view class='toutiao' bindtap='gotoRushBuy' wx:if="{{showQg}}" >
<view class='imgBox'>
<image src='{{toutiao}}' mode='aspectFill'></image>
</view>
@@ -71,7 +71,6 @@
</view>
<!-- 专题 -->
<view class='product' wx:if="{{showTopic}}" bindtap='gotoTopic'>
<!-- <view class='ztTitle'>点击进入{{Ttitle}}</view> -->
<view class='gift' >
<image src='{{giftHr}}' mode='aspectFill' ></image>
</view>
@@ -82,7 +81,6 @@
<view class='next'>
<image src='{{next}}' mode='aspectFill' ></image>
</view>
<!-- <image src='{{cover}}' style="width:100%;" mode='widthFix'></image> -->
</view>
<!-- 爆款专区 -->
<c-hot id="hot"/>


Loading…
Cancel
Save