@@ -4,7 +4,7 @@ | |||||
"ext": { | "ext": { | ||||
"weappId": "wxea71200db93d756b", | "weappId": "wxea71200db93d756b", | ||||
"name": "富茂客官开发", | "name": "富茂客官开发", | ||||
"appVersion": "C.3.5.8", | |||||
"appVersion": "C.3.5.9", | |||||
"attr": { | "attr": { | ||||
"ifHaveCarModular": "1", | "ifHaveCarModular": "1", | ||||
"etcpversion": "release", | "etcpversion": "release", | ||||
@@ -6,8 +6,7 @@ | |||||
<image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{item.coverImg}}" /> | <image mode='aspectFill' lazy-load='true' class="commodity-img" src="{{item.coverImg}}" /> | ||||
<view class="commodity-info"> | <view class="commodity-info"> | ||||
<view class="commodity-info-name">{{item.title}}</view> | <view class="commodity-info-name">{{item.title}}</view> | ||||
<view class="commodity-info-price"> | |||||
<text class='useprice'>可砍至</text><text class="commodity-info-price-p">{{item.salePriceStr}}元</text> | |||||
<view class="commodity-info-price"><text class="commodity-info-price-p">可砍至{{item.salePriceStr}}元</text> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -1,14 +1,16 @@ | |||||
.index-rushToBuy { | .index-rushToBuy { | ||||
width: 100%; | width: 100%; | ||||
font-family: PingFangSC-Semibold; | font-family: PingFangSC-Semibold; | ||||
height:356rpx; | |||||
background:linear-gradient(94deg,rgba(255,143,0,1) 0%,rgba(255,87,0,1) 100%); | |||||
} | } | ||||
.index-rushToBuy-title { | .index-rushToBuy-title { | ||||
position: relative; | position: relative; | ||||
font-size: 34rpx; | font-size: 34rpx; | ||||
color: #000000; | |||||
color: #fff; | |||||
letter-spacing: 1.16rpx; | letter-spacing: 1.16rpx; | ||||
padding-top: 34rpx; | |||||
padding-top: 20rpx; | |||||
padding-left: 30rpx; | padding-left: 30rpx; | ||||
} | } | ||||
.useprice{ | .useprice{ | ||||
@@ -17,19 +19,20 @@ | |||||
.index-rushToBuy-title text{ | .index-rushToBuy-title text{ | ||||
float: right; | float: right; | ||||
margin-right: 53rpx; | margin-right: 53rpx; | ||||
color: #a8adb4; | |||||
font-size: 28rpx; | |||||
color: #fff; | |||||
font-size: 24rpx; | |||||
margin-top: 8rpx; | margin-top: 8rpx; | ||||
} | } | ||||
.index-rushToBuy-title image{ | .index-rushToBuy-title image{ | ||||
position: absolute; | position: absolute; | ||||
right: 18rpx; | right: 18rpx; | ||||
width: 20px; | width: 20px; | ||||
top: 44rpx; | |||||
top: 28rpx; | |||||
} | } | ||||
.index-scroll-view { | .index-scroll-view { | ||||
width: 100%; | width: 100%; | ||||
white-space: nowrap; | white-space: nowrap; | ||||
background:linear-gradient(94deg,rgba(255,143,0,1) 0%,rgba(255,87,0,1) 100%); | |||||
} | } | ||||
.index-scroll-view .commodity { | .index-scroll-view .commodity { | ||||
@@ -38,8 +41,9 @@ | |||||
margin-right: 0; | margin-right: 0; | ||||
position: relative; | position: relative; | ||||
background: #fff; | background: #fff; | ||||
padding: 12rpx 12rpx 0; | |||||
/* border: 1rpx solid #dddee1; */ | /* border: 1rpx solid #dddee1; */ | ||||
width: 263rpx; | |||||
width: 205rpx; | |||||
box-shadow: 0 0 10px 0 rgba(211,211,211,0.30); | box-shadow: 0 0 10px 0 rgba(211,211,211,0.30); | ||||
border-radius: 10rpx; | border-radius: 10rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
@@ -49,8 +53,10 @@ | |||||
} | } | ||||
.commodity-img{ | .commodity-img{ | ||||
display: block; | display: block; | ||||
width: 100%; | |||||
height:200rpx; | |||||
width: 205rpx; | |||||
height: 160rpx; | |||||
background:rgba(255,255,255,1); | |||||
border-radius:10rpx; | |||||
} | } | ||||
.index-scroll-view .commodity-info { | .index-scroll-view .commodity-info { | ||||
@@ -59,6 +65,8 @@ | |||||
} | } | ||||
.index-scroll-view .commodity-info-name { | .index-scroll-view .commodity-info-name { | ||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
font-size: 30rpx; | font-size: 30rpx; | ||||
color: #000000; | color: #000000; | ||||
letter-spacing: 0.7rpx; | letter-spacing: 0.7rpx; | ||||
@@ -14,6 +14,8 @@ Page({ | |||||
icon0006: imgurl.icon0006.url, | icon0006: imgurl.icon0006.url, | ||||
icon0007: imgurl.icon0007.url, | icon0007: imgurl.icon0007.url, | ||||
icon0008: imgurl.icon0008.url, | icon0008: imgurl.icon0008.url, | ||||
rushtobuy: imgurl.rushtobuy.url, | |||||
wmcard: imgurl.wmcard.url, | |||||
market: app.globalData.market, | market: app.globalData.market, | ||||
list: [], | list: [], | ||||
loading: true, | loading: true, | ||||
@@ -125,6 +127,16 @@ Page({ | |||||
swiperCurrent: e.detail.current | swiperCurrent: e.detail.current | ||||
}); | }); | ||||
}, | }, | ||||
rushtobuy:function(){ | |||||
wx.navigateTo({ | |||||
url: '/pages/rushToBuy/index', | |||||
}) | |||||
}, | |||||
gotodiscountcard:function(){ | |||||
wx.navigateTo({ | |||||
url: '/pages/discountCardList/discountCardList', | |||||
}) | |||||
}, | |||||
gotogame: function() { | gotogame: function() { | ||||
let that = this; | let that = this; | ||||
Http.post({ | Http.post({ | ||||
@@ -47,7 +47,10 @@ | |||||
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='clearfix rushtobuyimgs'> | |||||
<image class='fl' src='{{rushtobuy}}' bindtap='rushtobuy' mode='widthFix'></image> | |||||
<image class='fr' src='{{wmcard}}' bindtap='gotodiscountcard' mode='widthFix'></image> | |||||
</view> | |||||
<c-coupons id="lists" bind:myevent="onGetCode" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | <c-coupons id="lists" bind:myevent="onGetCode" loadingtext="{{loadingtext}}" loading="{{loading}}" /> | ||||
<g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" /> | <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" /> | ||||
</view> | </view> | ||||
@@ -47,12 +47,19 @@ page { | |||||
display: block; | display: block; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
.rushtobuyimgs{ | |||||
padding: 0 30rpx; | |||||
} | |||||
.rushtobuyimgs image{ | |||||
width: 335rpx; | |||||
height: 161rpx; | |||||
} | |||||
.section { | .section { | ||||
padding: 0 20rpx; | padding: 0 20rpx; | ||||
justify-content: space-around; | justify-content: space-around; | ||||
text-align: center; | text-align: center; | ||||
margin-top: 25rpx; | margin-top: 25rpx; | ||||
margin-bottom: 30rpx; | |||||
} | } | ||||
.section >view{ | .section >view{ | ||||
width: 25%; | width: 25%; | ||||
@@ -47,8 +47,8 @@ Component({ | |||||
url: config.api.couponChannelList, | url: config.api.couponChannelList, | ||||
data: { | data: { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 5, | |||||
targetAd: 2 | |||||
pageSize: 2, | |||||
targetAd: 7 | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
this.setData({ | this.setData({ | ||||
@@ -8,8 +8,8 @@ | |||||
<view class="commodity-info-name">{{item.title}}</view> | <view class="commodity-info-name">{{item.title}}</view> | ||||
<!-- <view class="commodity-info-name">{{item.subTitle}}</view> --> | <!-- <view class="commodity-info-name">{{item.subTitle}}</view> --> | ||||
<view class="commodity-info-price"> | <view class="commodity-info-price"> | ||||
<text class="commodity-info-price-p">¥{{item.salePriceStr}}</text> | |||||
<text class="commodity-info-price-o">¥{{item.priceStr}}</text> | |||||
<text class="commodity-info-price-p">{{item.salePriceStr}}元</text> | |||||
<text class="commodity-info-price-o">{{item.priceStr}}元</text> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -1,6 +1,7 @@ | |||||
.index-rushToBuy { | .index-rushToBuy { | ||||
width: 100%; | width: 100%; | ||||
font-family: PingFangSC-Semibold; | font-family: PingFangSC-Semibold; | ||||
margin-top: 26rpx; | |||||
} | } | ||||
.index-rushToBuy-title { | .index-rushToBuy-title { | ||||
@@ -16,14 +17,14 @@ | |||||
float: right; | float: right; | ||||
margin-right: 53rpx; | margin-right: 53rpx; | ||||
color: #a8adb4; | color: #a8adb4; | ||||
font-size: 28rpx; | |||||
font-size: 24rpx; | |||||
margin-top: 8rpx; | margin-top: 8rpx; | ||||
} | } | ||||
.index-rushToBuy-title image{ | .index-rushToBuy-title image{ | ||||
position: absolute; | position: absolute; | ||||
right: 18rpx; | right: 18rpx; | ||||
width: 20px; | width: 20px; | ||||
top: 44rpx; | |||||
top: 40rpx; | |||||
} | } | ||||
.index-scroll-view { | .index-scroll-view { | ||||
width: 100%; | width: 100%; | ||||
@@ -37,8 +38,8 @@ | |||||
position: relative; | position: relative; | ||||
background: #fff; | background: #fff; | ||||
/* border: 1rpx solid #dddee1; */ | /* border: 1rpx solid #dddee1; */ | ||||
width: 355rpx; | |||||
box-shadow: 0 0 10px 0 rgba(211,211,211,0.30); | |||||
width: 334rpx; | |||||
/* box-shadow: 0 0 10px 0 rgba(211,211,211,0.30); */ | |||||
border-radius: 10rpx; | border-radius: 10rpx; | ||||
overflow: hidden; | overflow: hidden; | ||||
} | } | ||||
@@ -46,9 +47,11 @@ | |||||
margin-right: 30rpx; | margin-right: 30rpx; | ||||
} | } | ||||
.commodity-img{ | .commodity-img{ | ||||
display: block; | |||||
width: 355rpx; | |||||
height: 213rpx; | |||||
display: block; | |||||
width: 329rpx; | |||||
height: 200rpx; | |||||
border-radius: 10rpx; | |||||
border: 1px solid #ebeced; | |||||
} | } | ||||
.index-scroll-view .commodity-info { | .index-scroll-view .commodity-info { | ||||
@@ -1,5 +1,5 @@ | |||||
{ | { | ||||
"usingComponents": { | "usingComponents": { | ||||
}, | }, | ||||
"navigationBarTitleText": "限时抢购" | |||||
"navigationBarTitleText": "限时秒杀" | |||||
} | } |
@@ -412,4 +412,12 @@ module.exports = { | |||||
'url': baseUrl + 'orderGroupFail.png', | 'url': baseUrl + 'orderGroupFail.png', | ||||
'name': '拼团失败' | 'name': '拼团失败' | ||||
}, | }, | ||||
'wmcard': { | |||||
'url': baseUrl + 'wmcard.png', | |||||
'name': '首页优惠卡' | |||||
}, | |||||
'rushtobuy': { | |||||
'url': baseUrl + 'rushtobuy.png', | |||||
'name': '首页立即抢购' | |||||
} | |||||
} | } |