mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
购物车新增领劵判断,优化我的优惠券中可能出现的Bug
This commit is contained in:
@@ -19,7 +19,8 @@
|
|||||||
"path": "pages/tabbar/cart/cartList",
|
"path": "pages/tabbar/cart/cartList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "购物车",
|
"navigationBarTitleText": "购物车",
|
||||||
"navigationBarBackgroundColor": "#fff"
|
"navigationBarBackgroundColor": "#fff",
|
||||||
|
"enablePullDownRefresh":true //实现下拉刷新样式
|
||||||
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -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();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,8 +29,9 @@
|
|||||||
<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);
|
||||||
|
|||||||
Reference in New Issue
Block a user