tapd相关修改更新

This commit is contained in:
GaoHao
2025-03-19 18:19:34 +08:00
parent 994cf8bf2b
commit f01bc839f7
53 changed files with 1084 additions and 1032 deletions

View File

@@ -26,7 +26,7 @@
<view> 领取方式 </view>
<view> 用户不可自行领取 </view>
</view> -->
<view v-if="item.type == 1">
<view>
<view> 有效期 </view>
<view> 领券后{{ item.validDays }}天过期 </view>
</view>
@@ -113,7 +113,6 @@
let getCoupon = () => {
let params = pageData.query;
getCouponList(params).then((res) => {
console.log(res)
pageData.couponList = res;
})
}
@@ -124,9 +123,9 @@
*/
let addCoupon = ()=>{
if ( pageData.query.type == 1 ) {
go.to('PAGES_COUPON_DISCOUNTCOUPONS')
go.to('PAGES_COUPON_DISCOUNTCOUPONS',{ isType: 1})
} else {
go.to('PAGES_COUPON_CERTIFICATE')
go.to('PAGES_COUPON_DISCOUNTCOUPONS',{ isType: 2})
}
}
@@ -135,11 +134,11 @@
* 修改
*/
let editCoupon = (item)=>{
console.log(item.id)
if ( item.type == 1 ) {
go.to('PAGES_COUPON_DISCOUNTCOUPONS',{type: 'info', item: JSON.stringify(item)})
go.to('PAGES_COUPON_DISCOUNTCOUPONS',{type: 'info', isType: 1, item: JSON.stringify(item)})
} else {
go.to('PAGES_COUPON_CERTIFICATE',{type: 'info', item: JSON.stringify(item)})
go.to('PAGES_COUPON_DISCOUNTCOUPONS',{type: 'info', isType: 2, item: JSON.stringify(item)})
// go.to('PAGES_COUPON_CERTIFICATE',{type: 'info', item: JSON.stringify(item)})
}
}