全局:清理多余的 request2.js

This commit is contained in:
YunaiV
2024-01-20 10:07:11 +08:00
parent ce389efdae
commit 492d84073d
35 changed files with 123 additions and 964 deletions
+3 -7
View File
@@ -15,7 +15,7 @@
text="暂无优惠券"
/>
<!-- 情况一领劵中心 -->
<template v-if="state.currentTab === '0'">
<template v-if="state.currentTab === 0">
<view v-for="item in state.pagination.list" :key="item.id">
<s-coupon-list
:data="item"
@@ -40,11 +40,7 @@
<s-coupon-list
:data="item"
type="user"
@tap="
sheep.$router.go('/pages/coupon/detail', {
data: JSON.stringify(item),
})
"
@tap="sheep.$router.go('/pages/coupon/detail', { couponId: item.id })"
>
<template #default>
<button
@@ -183,12 +179,12 @@
getData();
// 我的优惠劵
} else {
state.type = Option.type;
Option.type === 'geted'
? (state.currentTab = 1)
: Option.type === 'used'
? (state.currentTab = 2)
: (state.currentTab = 3);
state.type = state.currentTab;
getCoupon();
}
});