소스 검색

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

tags/河北版C.8.1.01
hurui 5 년 전
부모
커밋
3618a80711
4개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  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 파일 보기

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


+ 4
- 4
components/hot/index.wxml 파일 보기

@@ -13,7 +13,7 @@
</view> </view>
</view> </view>
<view class='hotCon' > <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 > <view >
<image mode='aspectFill' lazy-load='true' src="{{kData.coverImg}}" /> <image mode='aspectFill' lazy-load='true' src="{{kData.coverImg}}" />
</view> </view>
@@ -24,7 +24,7 @@
<view class=' btn btnk'>砍价</view> <view class=' btn btnk'>砍价</view>
</view> </view>
</view> </view>
<view class='kanjia' wx:if="{{!kData.id}}">
<view class='kanjia' wx:if="{{!kSize}}">
<view> <view>
<image src='{{None}}' bindtap='' mode='aspectFill'></image> <image src='{{None}}' bindtap='' mode='aspectFill'></image>
</view> </view>
@@ -35,7 +35,7 @@
</view> </view>
</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> <view>
<image mode='aspectFill' lazy-load='true' src="{{pData.coverImg}}" /> <image mode='aspectFill' lazy-load='true' src="{{pData.coverImg}}" />
</view> </view>
@@ -46,7 +46,7 @@
<view class='btn btnp' >拼团</view> <view class='btn btnp' >拼团</view>
</view> </view>
</view> </view>
<view class='pintuan' wx:if="{{!pData.id}}">
<view class='pintuan' wx:if="{{!pSize}}">
<view> <view>
<image src='{{None}}' bindtap='' mode='aspectFill'></image> <image src='{{None}}' bindtap='' mode='aspectFill'></image>
</view> </view>


+ 5
- 1
pages/main/index.js 파일 보기

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


+ 1
- 1
pages/passCar/couponList/couponList.wxss 파일 보기

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


불러오는 중...
취소
저장