Commit 13a74ab4 by 李伟康

commit

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