@@ -80,13 +80,11 @@ Component({ | |||||
}, | }, | ||||
// 换一换 | // 换一换 | ||||
getChange(){ | getChange(){ | ||||
let that = this; | |||||
if (that.pSize != 1 && that.pSize != 0){ | |||||
this.getList(1) | |||||
if (this.kSize != 1 && that.kSize != 0){ | |||||
that.getList(1) | |||||
} | } | ||||
if (that.pSize != 1 && that.pSize != 0) { | |||||
this.getList(2) | |||||
if (this.pSize != 1 && that.pSize != 0) { | |||||
that.getList(2) | |||||
} | } | ||||
}, | }, | ||||
//跳转砍价详情 | //跳转砍价详情 | ||||
@@ -5,7 +5,7 @@ | |||||
<view class='sql' style='background:{{sql}}'></view> | <view class='sql' style='background:{{sql}}'></view> | ||||
<text>爆款专区</text> | <text>爆款专区</text> | ||||
</view> | </view> | ||||
<view class='titleR' bindtap='getChange' > | |||||
<view class='titleR' bindtap='getChange'wx:if="{{pSize>=2||kSize>=2}}" > | |||||
<text style='color:{{txt}}'>换一换</text> | <text style='color:{{txt}}'>换一换</text> | ||||
<view> | <view> | ||||
<image src='{{change}}' bindtap='' mode='aspectFill'></image> | <image src='{{change}}' bindtap='' mode='aspectFill'></image> | ||||
@@ -14,7 +14,7 @@ Page({ | |||||
bannerUrl: imgurl.banner.url, | bannerUrl: imgurl.banner.url, | ||||
wmhome: imgurl.wmhome.url, | wmhome: imgurl.wmhome.url, | ||||
wmhelp: imgurl.wmhelp.url, | wmhelp: imgurl.wmhelp.url, | ||||
wmsuccess01: imgurl.wmsuccess01.url, | |||||
chenggong: imgurl.chenggong.url, | |||||
fail: imgurl.fail.url, | fail: imgurl.fail.url, | ||||
data: null, | data: null, | ||||
from: null, | from: null, | ||||
@@ -34,7 +34,7 @@ | |||||
</view> | </view> | ||||
<view class='help' wx:if="{{data.orderStatus != 7&&data.orderStatus != 1&&data.orderStatus != 9}}">还需邀请<text>{{data.pressLimitNum-data.orderPressList.length}}</text>位好友,帮忙砍至底价</view> | <view class='help' wx:if="{{data.orderStatus != 7&&data.orderStatus != 1&&data.orderStatus != 9}}">还需邀请<text>{{data.pressLimitNum-data.orderPressList.length}}</text>位好友,帮忙砍至底价</view> | ||||
<view class="success" wx:if="{{data.orderStatus == 7||data.orderStatus == 1}}" hover-class="none" hover-stop-propagation="false"> | <view class="success" wx:if="{{data.orderStatus == 7||data.orderStatus == 1}}" hover-class="none" hover-stop-propagation="false"> | ||||
<image src="{{wmsuccess01}}" mode="widthFix"></image> | |||||
<image src="{{chenggong}}" mode="widthFix"></image> | |||||
<text class="" selectable="false" space="false" decode="false"> | <text class="" selectable="false" space="false" decode="false"> | ||||
已砍至底价 | 已砍至底价 | ||||
</text> | </text> | ||||
@@ -322,23 +322,23 @@ page{ | |||||
display: flex; | display: flex; | ||||
justify-content: space-around; | justify-content: space-around; | ||||
width: 520rpx; | width: 520rpx; | ||||
margin: 40rpx auto 0; | |||||
margin-top: 40rpx; | |||||
} | } | ||||
.status button{ | |||||
.status button{ | |||||
display: block; | display: block; | ||||
width: 250rpx; | |||||
width: 240rpx; | |||||
height: 75rpx; | height: 75rpx; | ||||
line-height: 75rpx; | line-height: 75rpx; | ||||
text-align: center; | text-align: center; | ||||
border: none; | border: none; | ||||
font-size: 32rpx; | font-size: 32rpx; | ||||
margin: 0 auto; | |||||
} | } | ||||
button::after{ border: none; } | button::after{ border: none; } | ||||
.status button:nth-of-type(1){ | .status button:nth-of-type(1){ | ||||
background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | ||||
/* border:1px solid rgba(236,59,45,1); */ | /* border:1px solid rgba(236,59,45,1); */ | ||||
border-radius:48rpx; | border-radius:48rpx; | ||||
margin-top: 20rpx; | |||||
margin-bottom: 20rpx; | margin-bottom: 20rpx; | ||||
color: #fff; | color: #fff; | ||||
} | } | ||||
@@ -1,4 +1,4 @@ | |||||
<navbar home back text="积分换礼" background='#FFF' ></navbar> | |||||
<navbar home back text="兑换成功" background='#FFF' ></navbar> | |||||
<view class='pay-status'style="padding-top:{{navigationBarHeight}}"> | <view class='pay-status'style="padding-top:{{navigationBarHeight}}"> | ||||
<view class='tilte'>兑换成功</view> | <view class='tilte'>兑换成功</view> | ||||
<view class='coupon'> | <view class='coupon'> | ||||
@@ -3,9 +3,6 @@ | |||||
<view class='container' style="padding-top:{{navigationBarHeight}}" > | <view class='container' style="padding-top:{{navigationBarHeight}}" > | ||||
<!-- 拼团产品详情 --> | <!-- 拼团产品详情 --> | ||||
<view class='detail'> | <view class='detail'> | ||||
<view class='return-index' bindtap='gotoIndex'> | |||||
<image src='{{home}}' mode="widthFix"></image> | |||||
</view> | |||||
<view class='detail-top'> | <view class='detail-top'> | ||||
<view class='detail-top01'> | <view class='detail-top01'> | ||||
<image src='{{data.coverImg}}' mode="aspectFill"></image> | <image src='{{data.coverImg}}' mode="aspectFill"></image> | ||||
@@ -72,7 +72,7 @@ Page({ | |||||
credit: 0, | credit: 0, | ||||
score: '0', | score: '0', | ||||
page: 1 ,// 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | page: 1 ,// 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 | ||||
topicTitle:'', | |||||
}, | }, | ||||
close: function() { | close: function() { | ||||
this.setData({ | this.setData({ | ||||
@@ -516,11 +516,10 @@ Page({ | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
if (res && res.data) { | if (res && res.data) { | ||||
console.log(res.data.title) | |||||
that.setData({ | that.setData({ | ||||
name: res.data.name, | name: res.data.name, | ||||
cover: res.data.cover, | cover: res.data.cover, | ||||
title: res.data.title, | |||||
topicTitle: res.data.title, | |||||
id: res.data.id, | id: res.data.id, | ||||
showTopic: true | showTopic: true | ||||
}) | }) | ||||
@@ -627,7 +626,7 @@ Page({ | |||||
// that.selectComponent("#spellGroup").getList(); | // that.selectComponent("#spellGroup").getList(); | ||||
// that.selectComponent("#rushtobyCard").getList(); | // that.selectComponent("#rushtobyCard").getList(); | ||||
wx.stopPullDownRefresh(); | wx.stopPullDownRefresh(); | ||||
//砍价,拼团下拉刷新 | |||||
//爆款专区下拉刷新 | |||||
that.selectComponent("#hot").getList(); | that.selectComponent("#hot").getList(); | ||||
}, | }, | ||||
//加载更多 | //加载更多 | ||||
@@ -77,7 +77,7 @@ | |||||
</view> | </view> | ||||
<view class='textBox'> | <view class='textBox'> | ||||
<view class='name'>{{name}}</view> | <view class='name'>{{name}}</view> | ||||
<view class='title'>{{title}}</view> | |||||
<view class='title'>{{topicTitle}}</view> | |||||
</view> | </view> | ||||
<view class='next'> | <view class='next'> | ||||
<image src='{{next}}' mode='aspectFill' ></image> | <image src='{{next}}' mode='aspectFill' ></image> | ||||
@@ -705,5 +705,9 @@ module.exports = { | |||||
'url': baseUrl + "jiaofei.png", | 'url': baseUrl + "jiaofei.png", | ||||
'name': '' | 'name': '' | ||||
}, | }, | ||||
'chenggong': { | |||||
'url': baseUrl + "chenggong.png", | |||||
'name': '' | |||||
}, | |||||
} | } |