fix:我的订单、我的券单个多个商品时不显示返回按钮

This commit is contained in:
wangsongsole 2022-10-13 15:03:42 +08:00
parent 8ad41eb59d
commit 6f189fc737
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<body> <body>
<div id="app"> <div id="app">
<img class="backPresTy" @click="backHandler" <img class="backPresTy" @click="backHandler" v-if="goodsCount<2"
src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
<ul class="tab"> <ul class="tab">
<li v-for="item in tabList" :key="item.id" @click="tabHandle(item)"> <li v-for="item in tabList" :key="item.id" @click="tabHandle(item)">
@ -105,7 +105,8 @@
popTitle: '', popTitle: '',
popText: '', popText: '',
popStatus: 1, /*1 成功 2提示 3失败 */ popStatus: 1, /*1 成功 2提示 3失败 */
redirect: false redirect: false,
goodsCount: 0 /* 商品数量 */
} }
}, },
@ -115,6 +116,7 @@
}, },
created () { created () {
this.goodsCount = localStorage.getItem('goodsCount');
this.getCouponList() this.getCouponList()
}, },

View File

@ -22,7 +22,7 @@
<body> <body>
<div id="app"> <div id="app">
<!-- 弹出提示 --> <!-- 弹出提示 -->
<img class="backPresTy" @click="backHandler" <img class="backPresTy" @click="backHandler" v-if="goodsCount<2"
src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
<div id="refresh" @touchstart="touchStart($event)" @touchmove="touchMove($event)" <div id="refresh" @touchstart="touchStart($event)" @touchmove="touchMove($event)"