|  |  |  | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | <el-col> | 
|---|
|  |  |  | <el-button type="primary" @click="chooseCoupon(item.content.couponName)"> | 
|---|
|  |  |  | <el-button type="primary" @click="chooseCoupon(item.content.couponName,item.name)"> | 
|---|
|  |  |  | 选择优惠券 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-form-item> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | <el-col> | 
|---|
|  |  |  | <el-button type="primary" @click="chooseGoods(item.content.goodsName)"> | 
|---|
|  |  |  | <el-button type="primary" @click="chooseGoods(item.content.goodsName,item.name)"> | 
|---|
|  |  |  | 选择品项 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | activeName: 'first', | 
|---|
|  |  |  | formLabelWidth: '120px', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | activeClickTab:0, | 
|---|
|  |  |  | //优惠券搜索弹出 | 
|---|
|  |  |  | drawerCoupon: false, | 
|---|
|  |  |  | directionCoupon: 'rtl', | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | //选择优惠券 | 
|---|
|  |  |  | chooseCoupon(val){ | 
|---|
|  |  |  | chooseCoupon(val,name){ | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.drawerCoupon = true; | 
|---|
|  |  |  | _this.activeClickTab = parseInt(name); | 
|---|
|  |  |  | _this.formCoupon.yhjmc = val; | 
|---|
|  |  |  | _this.loadCouponList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | //选择 | 
|---|
|  |  |  | 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){ | 
|---|
|  |  |  | chooseGoods(val,name){ | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.drawerGoods = true; | 
|---|
|  |  |  | _this.activeClickTab = parseInt(name); | 
|---|
|  |  |  | _this.formGoods.cpmc = val; | 
|---|
|  |  |  | _this.loadGoodsList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | //选择 | 
|---|
|  |  |  | chooseOneGoods(row) { | 
|---|
|  |  |  | let _this = this; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.goodsId = row.id; | 
|---|
|  |  |  | _this.editableTabs[_this.tabIndex-1].content.goodsName = row.name; | 
|---|
|  |  |  | _this.drawerCoupon = false; | 
|---|
|  |  |  | _this.editableTabs[_this.activeClickTab-1].content.goodsId = row.id; | 
|---|
|  |  |  | _this.editableTabs[_this.activeClickTab-1].content.goodsName = row.name; | 
|---|
|  |  |  | _this.drawerGoods = false; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //保存 | 
|---|
|  |  |  | 
|---|
|  |  |  | let activitySignAwardSets = []; | 
|---|
|  |  |  | for (let i = 0; i < _this.editableTabs.length; i++) { | 
|---|
|  |  |  | let prize = _this.editableTabs[i].content; | 
|---|
|  |  |  | let name = _this.editableTabs[i].title; | 
|---|
|  |  |  | let awardRule = 2; | 
|---|
|  |  |  | if(name == "签到日常奖励"){ | 
|---|
|  |  |  | awardRule = 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | let activitySignAwardSet = { | 
|---|
|  |  |  | cumulativeDay: prize.cumulativeDay, | 
|---|
|  |  |  | awardRule: awardRule, | 
|---|
|  |  |  | awardType: prize.awardType, | 
|---|
|  |  |  | awardName: prize.awardName, | 
|---|
|  |  |  | introduceImg: prize.introduceImg, | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //奖品设置的图片介绍 | 
|---|
|  |  |  | introduceImgSuccess(res, file) { | 
|---|
|  |  |  | this.editableTabs[this.tabIndex-1].content.introduceImg = res.path; | 
|---|
|  |  |  | this.editableTabs[this.activeClickTab-1].content.introduceImg = res.path; | 
|---|
|  |  |  | // this.prize.introduceImg = URL.createObjectURL(file.raw); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //奖品设置的客服微信 | 
|---|
|  |  |  | wechatImgSuccess(res, file) { | 
|---|
|  |  |  | this.editableTabs[this.tabIndex-1].content.wechatImg = res.path; | 
|---|
|  |  |  | this.editableTabs[this.activeClickTab-1].content.wechatImg = res.path; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | cancelSubmit() { | 
|---|
|  |  |  | this.closeFrame(); | 
|---|