Преглед изворни кода

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

tags/河北版C.8.1.01
hurui пре 5 година
родитељ
комит
853b28d37e
2 измењених фајлова са 3 додато и 9 уклоњено
  1. +2
    -6
      pages/main/index.js
  2. +1
    -3
      pages/main/index.wxml

+ 2
- 6
pages/main/index.js Прегледај датотеку

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


+ 1
- 3
pages/main/index.wxml Прегледај датотеку

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


Loading…
Откажи
Сачувај