购物车新增领劵判断,优化我的优惠券中可能出现的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", "path": "pages/tabbar/cart/cartList",
"style": { "style": {
"navigationBarTitleText": "购物车", "navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#fff" "navigationBarBackgroundColor": "#fff",
"enablePullDownRefresh":true //
} }
}, { }, {

View File

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

View File

@ -27,10 +27,11 @@
<!-- #endif --> <!-- #endif -->
</u-checkbox-group> </u-checkbox-group>
<span class="store-name store-line-desc" @click.stop="navigateToStore(item)">{{ <span class="store-name store-line-desc" @click.stop="navigateToStore(item)">{{
item.storeName item.storeName
}}</span> }}</span>
<u-icon @click="navigateToStore(item)" size="24" style="margin-left:10rpx;" name="arrow-right"></u-icon>
</view> </view>
<view class="right-col" @click="navigateToConpon(item)"> <view class="right-col" v-if="item.canReceiveCoupon" @click="navigateToConpon(item)">
<div class="right-line"></div> <div class="right-line"></div>
<span>领劵</span> <span>领劵</span>
</view> </view>
@ -214,6 +215,10 @@ export default {
uni.showShareMenu({ withShareTicket: true }); uni.showShareMenu({ withShareTicket: true });
// #endif // #endif
}, },
onPullDownRefresh(){
console.log("132")
this.getCardData();
},
/** /**
* 初始化信息 * 初始化信息
*/ */
@ -508,6 +513,7 @@ export default {
}); });
API_Trade.getCarts() API_Trade.getCarts()
.then((result) => { .then((result) => {
uni.stopPullDownRefresh();
if (result.data.success) { if (result.data.success) {
this.cartDetail = result.data.result; this.cartDetail = result.data.result;
this.checkout = true; this.checkout = true;
@ -596,6 +602,7 @@ page {
.store-name { .store-name {
font-weight: bold; font-weight: bold;
font-size: 28rpx;
} }
.invalid { .invalid {
filter: grayscale(1); filter: grayscale(1);