tapd相关修改更新
This commit is contained in:
@@ -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)})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user