Commit 13a74ab4 by 李伟康

commit

1 parent e0b2df5e
......@@ -25,6 +25,7 @@
:key="index"
class="item"
>
<!-- 0:优惠券 1:精品礼券 2:商品订单 3:会员服务 -->
<template v-if="type == 0 || type == 1">
<div class="title flex">
{{item.userName || item.customerName}}
......@@ -209,7 +210,7 @@ export default {
list: [],
updata: new Date().getTime(),
tabIndex: 0,
type: 0,
type: 0, /**0:优惠券 1:精品礼券 2:商品订单 3:会员服务*/
flag: false,
pageNum: 1,
itemObj,
......@@ -278,8 +279,8 @@ export default {
userStatus: 1,
type: 0
})
// this.getCustomerCouponList('Y')
// this.getCustomerCouponList('N')
this.getCustomerCouponList('Y')
this.getCustomerCouponList('N')
this.getGoodsVerficationList(1)
this.getGoodsVerficationList(2)
this.getVerificationList(3)
......@@ -313,25 +314,16 @@ export default {
},
getList () {
let { tabIndex, type } = this
switch (type) {
case 0:
case 3:
if (tabIndex == 0) this.getVerificationList(type, true)
else
this.getUserCouponList(
{
userStatus: tabIndex == 1 ? 1 : 0,
type
},
true
)
break
case 1:
this.getCustomerCouponList(tabIndex == 0 ? 'Y' : 'N', true)
break
case 2:
this.getGoodsVerficationList(tabIndex == 0 ? 2 : 1, true)
break
if (type == 0 || type == 3) {
if (tabIndex == 0) this.getVerificationList(type, true)
else this.getUserCouponList({
userStatus: tabIndex == 1 ? 1 : 0,
type
}, true)
} else if (type == 1) {
this.getCustomerCouponList(tabIndex == 0 ? 'Y' : 'N', true)
} else {
this.getGoodsVerficationList(tabIndex == 0 ? 2 : 1, true)
}
},
/**优惠券已核销 */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!