代码提交

This commit is contained in:
黄少君
2023-11-15 19:59:37 +08:00
parent dcab74274f
commit 35b43ffd97
43 changed files with 1265 additions and 387 deletions

View File

@ -39,10 +39,8 @@ const getCoupon = async () => {
});
}
const goToProduct = () => {
push({
url: '/pages/goodsList/goodsList'
})
const goToProduct = (coupons) => {
push({url: '/pages/goodsList/goodsList'},{data: {couponId: coupons.id}})
}
</script>
@ -71,7 +69,7 @@ const goToProduct = () => {
<!-- button -->
<view v-if="type === 'select'">
<view class="button" v-if="tabType === 0">
<span @click="goToProduct">去使用</span>
<span @click="goToProduct(coupons)">去使用</span>
</view>
<view class="button disable" v-if="tabType === 1">
<span>已使用</span>
@ -90,8 +88,7 @@ const goToProduct = () => {
scoped
lang="scss"
>
.coupon-item{
margin-bottom: 30rpx;
.coupon-item {
width: 100%;
aspect-ratio: 682/176;
background: url("@/static/background/coupon-bg.png") no-repeat ;