From a493083da00a2be260504e42a8a3c882f9264b3f Mon Sep 17 00:00:00 2001 From: zhh Date: Fri, 9 Nov 2018 17:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 7 + .../sms/coupon/components/CouponDetail.vue | 6 +- src/views/sms/coupon/history.vue | 219 ++++++++++++++++++ src/views/sms/coupon/index.vue | 7 +- 4 files changed, 235 insertions(+), 4 deletions(-) create mode 100644 src/views/sms/coupon/history.vue diff --git a/src/router/index.js b/src/router/index.js index 82f8594..25db290 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -221,6 +221,13 @@ export const constantRouterMap = [ meta: {title: '修改优惠券'}, hidden:true }, + { + path: 'couponHistory', + name: 'couponHistory', + component: () => import('@/views/sms/coupon/history'), + meta: {title: '优惠券领取历史'}, + hidden:true + }, { path: 'brand', name: 'homeBrand', diff --git a/src/views/sms/coupon/components/CouponDetail.vue b/src/views/sms/coupon/components/CouponDetail.vue index 7454a6f..be30adc 100644 --- a/src/views/sms/coupon/components/CouponDetail.vue +++ b/src/views/sms/coupon/components/CouponDetail.vue @@ -305,6 +305,9 @@ this.coupon.productRelationList.push(this.getProductById(this.selectProduct)); this.selectProduct=null; }, + handleDeleteProductRelation(index,row){ + this.coupon.productRelationList.splice(index,1); + }, handleAddProductCategoryRelation(){ if(this.selectProductCate===null||this.selectProductCate.length===0){ this.$message({ @@ -316,9 +319,6 @@ this.coupon.productCategoryRelationList.push(this.getProductCateByIds(this.selectProductCate)); this.selectProductCate=[]; }, - handleDeleteProductRelation(index,row){ - this.coupon.productRelationList.splice(index,1); - }, handleDeleteProductCateRelation(index,row){ this.coupon.productCategoryRelationList.splice(index,1); }, diff --git a/src/views/sms/coupon/history.vue b/src/views/sms/coupon/history.vue new file mode 100644 index 0000000..45557df --- /dev/null +++ b/src/views/sms/coupon/history.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/views/sms/coupon/index.vue b/src/views/sms/coupon/index.vue index fe6dccc..1ede0a4 100644 --- a/src/views/sms/coupon/index.vue +++ b/src/views/sms/coupon/index.vue @@ -76,7 +76,9 @@