@@ -1,3 +1,4 @@ | |||||
<view> | <view> | ||||
{{detail}} | |||||
</view> | |||||
<text>活动详情</text> | |||||
<text>{{detail}}</text> | |||||
</view> |
@@ -0,0 +1,15 @@ | |||||
view text{ | |||||
display: block; | |||||
} | |||||
view text:nth-of-type(1){ | |||||
font-size: 30rpx; | |||||
color: #000; | |||||
padding: 30rpx 0; | |||||
text-align: center; | |||||
} | |||||
view text:nth-of-type(2){ | |||||
padding: 0 30rpx; | |||||
font-size: 28rpx; | |||||
line-height: 50rpx; | |||||
color: #999; | |||||
} |
@@ -62,6 +62,7 @@ border-bottom-left-radius: 50rpx; | |||||
.coupons_info view:nth-child(1) text { | .coupons_info view:nth-child(1) text { | ||||
font-size: 30rpx; | font-size: 30rpx; | ||||
line-height: 32rpx; | |||||
margin-top: 10%; | margin-top: 10%; | ||||
} | } | ||||
@@ -408,6 +409,7 @@ navigator { | |||||
display: block; | display: block; | ||||
text-align: center; | text-align: center; | ||||
width: 120rpx !important; | width: 120rpx !important; | ||||
margin-top: 6rpx; | |||||
} | } | ||||
.usermotto { | .usermotto { | ||||
@@ -12,7 +12,8 @@ Component({ | |||||
* 组件的初始数据 | * 组件的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
list: [] | |||||
list: [], | |||||
total:'' | |||||
}, | }, | ||||
/** | /** | ||||
@@ -50,7 +51,8 @@ Component({ | |||||
}).then(res => { | }).then(res => { | ||||
console.log(res); | console.log(res); | ||||
this.setData({ | this.setData({ | ||||
list: res.data.list | |||||
list: res.data.list, | |||||
total:res.data.total | |||||
}); | }); | ||||
}); | }); | ||||
}; | }; | ||||
@@ -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" wx:if="{{list.length>=5}}">查看更多</text><image wx:if="{{list.length>=5}}" src='./../../../assets/img/jian.png' mode="widthFix"></image></view> | |||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">限时抢购<text bindtap="gotomore" wx:if="{{total>5}}">查看更多</text><image wx:if="{{total>5}}" src='./../../../assets/img/jian.png' mode="widthFix"></image></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}}"> | ||||