购物车新增领劵判断,优化我的优惠券中可能出现的Bug
parent
a8836744f6
commit
32a6bbacd0
|
@ -19,7 +19,8 @@
|
|||
"path": "pages/tabbar/cart/cartList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "购物车",
|
||||
"navigationBarBackgroundColor": "#fff"
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"enablePullDownRefresh":true //实现下拉刷新样式
|
||||
|
||||
}
|
||||
}, {
|
||||
|
|
|
@ -116,6 +116,7 @@ export default {
|
|||
},
|
||||
|
||||
onShow() {
|
||||
this.navList[this.tabCurrentIndex].params.pageNumber = 1
|
||||
this.navList[this.tabCurrentIndex].dataList = [];
|
||||
this.getData();
|
||||
},
|
||||
|
|
|
@ -29,8 +29,9 @@
|
|||
<span class="store-name store-line-desc" @click.stop="navigateToStore(item)">{{
|
||||
item.storeName
|
||||
}}</span>
|
||||
<u-icon @click="navigateToStore(item)" size="24" style="margin-left:10rpx;" name="arrow-right"></u-icon>
|
||||
</view>
|
||||
<view class="right-col" @click="navigateToConpon(item)">
|
||||
<view class="right-col" v-if="item.canReceiveCoupon" @click="navigateToConpon(item)">
|
||||
<div class="right-line"></div>
|
||||
<span>领劵</span>
|
||||
</view>
|
||||
|
@ -214,6 +215,10 @@ export default {
|
|||
uni.showShareMenu({ withShareTicket: true });
|
||||
// #endif
|
||||
},
|
||||
onPullDownRefresh(){
|
||||
console.log("132")
|
||||
this.getCardData();
|
||||
},
|
||||
/**
|
||||
* 初始化信息
|
||||
*/
|
||||
|
@ -508,6 +513,7 @@ export default {
|
|||
});
|
||||
API_Trade.getCarts()
|
||||
.then((result) => {
|
||||
uni.stopPullDownRefresh();
|
||||
if (result.data.success) {
|
||||
this.cartDetail = result.data.result;
|
||||
this.checkout = true;
|
||||
|
@ -596,6 +602,7 @@ page {
|
|||
|
||||
.store-name {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.invalid {
|
||||
filter: grayscale(1);
|
||||
|
|
Loading…
Reference in New Issue