@@ -1,5 +1,5 @@ | |||||
<view class="index-rushToBuy"> | <view class="index-rushToBuy"> | ||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">砍价专场<text bindtap="gotomore">更多砍价</text><image src='{{jianUrl}}' mode="widthFix"></image></view> | |||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">砍价专场<text bindtap="gotomore">更多砍价></text>></view> | |||||
<scroll-view scroll-x class="index-scroll-view"> | <scroll-view scroll-x class="index-scroll-view"> | ||||
<view class="commodity" wx:for="{{list}}" wx:key="unique"> | <view class="commodity" wx:for="{{list}}" wx:key="unique"> | ||||
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | ||||
@@ -60,14 +60,14 @@ | |||||
} | } | ||||
.index-scroll-view .commodity-info { | .index-scroll-view .commodity-info { | ||||
padding:10rpx 20rpx; | |||||
padding:10rpx 0; | |||||
overflow: hidden; | overflow: hidden; | ||||
} | } | ||||
.index-scroll-view .commodity-info-name { | .index-scroll-view .commodity-info-name { | ||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
font-size: 30rpx; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
font-size: 24rpx; | |||||
color: #000000; | color: #000000; | ||||
letter-spacing: 0.7rpx; | letter-spacing: 0.7rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
@@ -81,7 +81,7 @@ | |||||
} | } | ||||
.index-scroll-view .commodity-info-price-p { | .index-scroll-view .commodity-info-price-p { | ||||
font-size: 30rpx; | |||||
font-size: 24rpx; | |||||
color: #f96563; | color: #f96563; | ||||
line-height: 36rpx; | line-height: 36rpx; | ||||
} | } | ||||
@@ -6,6 +6,8 @@ let app = getApp(); | |||||
Page({ | Page({ | ||||
data: { | data: { | ||||
newUrl: "", | newUrl: "", | ||||
usergift: imgurl.usergift.url, | |||||
guanbi1: imgurl.guanbi1.url, | |||||
icon0001: imgurl.icon0001.url, | icon0001: imgurl.icon0001.url, | ||||
icon0002: imgurl.icon0002.url, | icon0002: imgurl.icon0002.url, | ||||
icon0003: imgurl.icon0003.url, | icon0003: imgurl.icon0003.url, | ||||
@@ -35,6 +37,11 @@ Page({ | |||||
display1:'none', | display1:'none', | ||||
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | ||||
}, | }, | ||||
close:function(){ | |||||
this.setData({ | |||||
showIf:false | |||||
}) | |||||
}, | |||||
// 我的卡包 | // 我的卡包 | ||||
mycard:function(){ | mycard:function(){ | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
@@ -2,22 +2,6 @@ | |||||
<c-banner wx:key="unique" list="{{list}}" /> | <c-banner wx:key="unique" list="{{list}}" /> | ||||
<!-- 折扣卡 --> | <!-- 折扣卡 --> | ||||
<view class='section'> | <view class='section'> | ||||
<!-- <view bindtap='gotoRushBuy'> | |||||
<image src='{{icon0001}}'></image> | |||||
<text>限时秒杀</text> | |||||
</view> --> | |||||
<!-- <view bindtap='gotodiscountCardList'> | |||||
<image src='{{icon0002}}'></image> | |||||
<text>消费卡</text> | |||||
</view> --> | |||||
<!-- <view bindtap='gotoSpellGroup'> | |||||
<image src='{{icon0003}}'></image> | |||||
<text>拼团专场</text> | |||||
</view> --> | |||||
<!-- <view bindtap='gotoBargain'> | |||||
<image src='{{icon0004}}'></image> | |||||
<text>砍价专场</text> | |||||
</view> --> | |||||
<view bindtap='searchbar'> | <view bindtap='searchbar'> | ||||
<image src='{{icon0005}}'></image> | <image src='{{icon0005}}'></image> | ||||
<text>门店</text> | <text>门店</text> | ||||
@@ -42,9 +26,10 @@ | |||||
<!-- 拼团专场 --> | <!-- 拼团专场 --> | ||||
<c-spellGroup/> | <c-spellGroup/> | ||||
<!-- 小游戏暂时注释 --> | <!-- 小游戏暂时注释 --> | ||||
<view class='game' bindtap="gotogame" wx-if="{{showIf}}"> | |||||
<view class='game' wx-if="{{showIf}}"> | |||||
<view class='game-entry'> | <view class='game-entry'> | ||||
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | |||||
<image src="{{guanbi1}}" bindtap="close" style='width:30rpx;height:30rpx;position:absolute;right:20rpx;top:-20rpx;' mode='widthFix'></image> | |||||
<image src="{{usergift}}" bindtap="gotogame" class='gameimg' mode='widthFix'></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='clearfix rushtobuyimgs'> | <view class='clearfix rushtobuyimgs'> | ||||
@@ -37,8 +37,8 @@ page { | |||||
.game-entry { | .game-entry { | ||||
position: fixed; | position: fixed; | ||||
right: 0; | right: 0; | ||||
top:300rpx; | |||||
width: 170rpx; | |||||
bottom:200rpx; | |||||
width: 160rpx; | |||||
margin: 37rpx auto 0; | margin: 37rpx auto 0; | ||||
z-index: 10; | z-index: 10; | ||||
} | } | ||||
@@ -47,7 +47,7 @@ Component({ | |||||
url: config.api.couponChannelList, | url: config.api.couponChannelList, | ||||
data: { | data: { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 2, | |||||
pageSize: 4, | |||||
targetAd: 7 | targetAd: 7 | ||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
@@ -1,5 +1,5 @@ | |||||
<view class="index-rushToBuy"> | <view class="index-rushToBuy"> | ||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">拼团专场<text bindtap="gotomore">更多拼团</text><image src='{{jianUrl}}' mode="widthFix"></image></view> | |||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">拼团专场<text bindtap="gotomore">更多拼团></text></view> | |||||
<scroll-view scroll-x class="index-scroll-view"> | <scroll-view scroll-x class="index-scroll-view"> | ||||
<view class="commodity" wx:for="{{list}}" wx:key="unique"> | <view class="commodity" wx:for="{{list}}" wx:key="unique"> | ||||
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | ||||
@@ -55,12 +55,12 @@ | |||||
} | } | ||||
.index-scroll-view .commodity-info { | .index-scroll-view .commodity-info { | ||||
padding:10rpx 20rpx; | |||||
padding:10rpx 0; | |||||
overflow: hidden; | overflow: hidden; | ||||
} | } | ||||
.index-scroll-view .commodity-info-name { | .index-scroll-view .commodity-info-name { | ||||
font-size: 30rpx; | |||||
font-size: 24rpx; | |||||
color: #000000; | color: #000000; | ||||
letter-spacing: 0.7rpx; | letter-spacing: 0.7rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
@@ -74,7 +74,7 @@ | |||||
} | } | ||||
.index-scroll-view .commodity-info-price-p { | .index-scroll-view .commodity-info-price-p { | ||||
font-size: 30rpx; | |||||
font-size: 24rpx; | |||||
color: #f96563; | color: #f96563; | ||||
line-height: 36rpx; | line-height: 36rpx; | ||||
} | } | ||||
@@ -16,6 +16,14 @@ module.exports = { | |||||
'url': baseUrl + 'addr-white.png', | 'url': baseUrl + 'addr-white.png', | ||||
'name': '' | 'name': '' | ||||
}, | }, | ||||
'guanbi1': { | |||||
'url': baseUrl + 'guanbi1.png', | |||||
'name': '首页游戏的关闭按钮' | |||||
}, | |||||
'usergift': { | |||||
'url': baseUrl + 'usergift.gif', | |||||
'name': '首页悬浮游戏入口' | |||||
}, | |||||
'addr': { | 'addr': { | ||||
'url': baseUrl + 'addr.png', | 'url': baseUrl + 'addr.png', | ||||
'name': '' | 'name': '' | ||||