Browse Source

[停车优惠券][修改][button位置]

tags/河北版C.8.1.01
hurui 5 years ago
parent
commit
3618a80711
4 changed files with 10 additions and 9 deletions
  1. +0
    -3
      components/hot/index.js
  2. +4
    -4
      components/hot/index.wxml
  3. +5
    -1
      pages/main/index.js
  4. +1
    -1
      pages/passCar/couponList/couponList.wxss

+ 0
- 3
components/hot/index.js View File

@@ -82,13 +82,10 @@ Component({
getChange(){
let that = this
if (that.kSize != 1 && that.kSize != 0){
console.log(111111111111)
that.getList(1)
}
if (that.pSize!=1 && that.pSize !=0) {
console.log(22222222222)
that.getList(2)
}
},
//跳转砍价详情


+ 4
- 4
components/hot/index.wxml View File

@@ -13,7 +13,7 @@
</view>
</view>
<view class='hotCon' >
<view class='kanjia' wx:if="{{kData.id}}" bindtap="gotokjdetail" data-couponId='{{kData.couponId}}' data-couponChannelId="{{kData.id}}" data-targetAd="{{kData.targetAd}}" >
<view class='kanjia' wx:if="{{kSize}}" bindtap="gotokjdetail" data-couponId='{{kData.couponId}}' data-couponChannelId="{{kData.id}}" data-targetAd="{{kData.targetAd}}" >
<view >
<image mode='aspectFill' lazy-load='true' src="{{kData.coverImg}}" />
</view>
@@ -24,7 +24,7 @@
<view class=' btn btnk'>砍价</view>
</view>
</view>
<view class='kanjia' wx:if="{{!kData.id}}">
<view class='kanjia' wx:if="{{!kSize}}">
<view>
<image src='{{None}}' bindtap='' mode='aspectFill'></image>
</view>
@@ -35,7 +35,7 @@
</view>
</view>

<view class='pintuan' wx:if="{{pData.id}}" bindtap="gotoptdetail" data-couponId='{{pData.couponId}}' data-couponChannelId="{{pData.id}}" data-targetAd="{{pData.targetAd}}">
<view class='pintuan' wx:if="{{pSize}}" bindtap="gotoptdetail" data-couponId='{{pData.couponId}}' data-couponChannelId="{{pData.id}}" data-targetAd="{{pData.targetAd}}">
<view>
<image mode='aspectFill' lazy-load='true' src="{{pData.coverImg}}" />
</view>
@@ -46,7 +46,7 @@
<view class='btn btnp' >拼团</view>
</view>
</view>
<view class='pintuan' wx:if="{{!pData.id}}">
<view class='pintuan' wx:if="{{!pSize}}">
<view>
<image src='{{None}}' bindtap='' mode='aspectFill'></image>
</view>


+ 5
- 1
pages/main/index.js View File

@@ -627,7 +627,11 @@ Page({
// that.selectComponent("#rushtobyCard").getList();
wx.stopPullDownRefresh();
//爆款专区下拉刷新
that.selectComponent("#hot").getList();
// that.selectComponent("#hot").getList();
that.selectComponent("#hot").getChange();
if(!that.kSize||!that.pSize){
that.pSize = 0
}
},
//加载更多
onReachBottom: function() {


+ 1
- 1
pages/passCar/couponList/couponList.wxss View File

@@ -198,7 +198,7 @@
.nav {
position: absolute;
bottom: 3.3%;
bottom: 20%;
left: 0;
right: 0;
margin: auto;


Loading…
Cancel
Save