From 97d58f5d4f48d18ef82b02167e5be55fc7913d6d Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 07 Apr 2021 15:57:57 +0800 Subject: [PATCH] 20210407 签到接口 --- zq-erp/src/main/resources/templates/views/admin/activity/activity-sign-update.html | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/activity/activity-sign-update.html b/zq-erp/src/main/resources/templates/views/admin/activity/activity-sign-update.html index 5b1320e..1780ed7 100644 --- a/zq-erp/src/main/resources/templates/views/admin/activity/activity-sign-update.html +++ b/zq-erp/src/main/resources/templates/views/admin/activity/activity-sign-update.html @@ -297,7 +297,7 @@ </el-form-item> </el-col> <el-col> - <el-button type="primary"> + <el-button type="primary" @click="chooseCoupon(item.content.couponName,item.name)"> 选择优惠券 </el-button> </el-col> @@ -377,7 +377,7 @@ </el-form-item> </el-col> <el-col> - <el-button type="primary"> + <el-button type="primary" @click="chooseGoods(item.content.goodsName,item.name)"> 选择品项 </el-button> </el-col> @@ -579,6 +579,8 @@ imageUrlButton: '', imageUrlState: '', + activeClickTab:0, + //优惠券搜索弹出 drawerCoupon: false, directionCoupon: 'rtl', @@ -660,9 +662,10 @@ }, methods: { //选择优惠券 - chooseCoupon(val){ + chooseCoupon(val,name){ let _this = this; _this.drawerCoupon = true; + _this.activeClickTab = parseInt(name); _this.formCoupon.yhjmc = val; _this.loadCouponList(); }, @@ -713,11 +716,19 @@ //选择 chooseOneCoupon(row) { let _this = this; - _this.editableTabs[_this.tabIndex-1].content.couponId = row.id; - _this.editableTabs[_this.tabIndex-1].content.couponName = row.cname; + _this.editableTabs[_this.activeClickTab-1].content.couponId = row.id; + _this.editableTabs[_this.activeClickTab-1].content.couponName = row.cname; _this.drawerCoupon = false; }, + //选择品项 + chooseGoods(val,name){ + let _this = this; + _this.drawerGoods = true; + _this.activeClickTab = parseInt(name); + _this.formGoods.cpmc = val; + _this.loadGoodsList(); + }, //--品项 loadGoodsList() { let _this = this; @@ -763,8 +774,8 @@ //选择 chooseOneGoods(row) { let _this = this; - _this.editableTabs[_this.tabIndex-1].content.goodsId = row.id; - _this.editableTabs[_this.tabIndex-1].content.goodsName = row.name; + _this.editableTabs[_this.activeClickTab-1].content.goodsId = row.id; + _this.editableTabs[_this.activeClickTab-1].content.goodsName = row.name; _this.drawerGoods = false; }, @@ -993,11 +1004,11 @@ }, //奖品设置的图片介绍 introduceImgSuccess(res, file) { - this.editableTabs[this.tabIndex-1].content.introduceImg = res.path; + this.editableTabs[this.activeClickTab-1].content.introduceImg = res.path; }, //奖品设置的客服微信 wechatImgSuccess(res, file) { - this.editableTabs[this.tabIndex-1].content.wechatImg = res.path; + this.editableTabs[this.activeClickTab-1].content.wechatImg = res.path; }, cancelSubmit() { this.closeFrame(); -- Gitblit v1.9.1