购物车新增领劵判断,优化我的优惠券中可能出现的Bug

master
lemon橪 2021-12-25 10:55:25 +08:00
parent a8836744f6
commit 32a6bbacd0
3 changed files with 12 additions and 3 deletions

View File

@ -19,7 +19,8 @@
"path": "pages/tabbar/cart/cartList",
"style": {
"navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#fff"
"navigationBarBackgroundColor": "#fff",
"enablePullDownRefresh":true //
}
}, {

View File

@ -116,6 +116,7 @@ export default {
},
onShow() {
this.navList[this.tabCurrentIndex].params.pageNumber = 1
this.navList[this.tabCurrentIndex].dataList = [];
this.getData();
},

View File

@ -27,10 +27,11 @@
<!-- #endif -->
</u-checkbox-group>
<span class="store-name store-line-desc" @click.stop="navigateToStore(item)">{{
item.storeName
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);