| | |
| | | |
| | | <script> |
| | | import { getPlatformConfig, updPlatformConfig } from '@/api/system/dictData' |
| | | import {allList} from '@/api/business/coupon' |
| | | import { allList } from '@/api/business/coupon' |
| | | export default { |
| | | name: '', |
| | | data () { |
| | |
| | | working: false, |
| | | couponList: [], |
| | | form: { |
| | | dictCode: 'ORDER_SET', |
| | | regIntegralRewardStatus: 0, |
| | | shareIntegralRewardStatus: 0, |
| | | regCouponRewardStatus: 0, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | delCoupon(type,index){ |
| | | if(type ===0){ |
| | | this.form.regCouponRewardList.splice(index,1) |
| | | }else if(type ===1){ |
| | | this.form.shareCouponRewardList.splice(index,1) |
| | | delCoupon (type, index) { |
| | | if (type === 0) { |
| | | this.form.regCouponRewardList.splice(index, 1) |
| | | } else if (type === 1) { |
| | | this.form.shareCouponRewardList.splice(index, 1) |
| | | } |
| | | }, |
| | | addCoupon(type){ |
| | | if(type ===0){ |
| | | this.form.regCouponRewardList.push({couponId:null,num:null}) |
| | | }else if(type ===1){ |
| | | this.form.shareCouponRewardList.push({couponId:null,num:null}) |
| | | addCoupon (type) { |
| | | if (type === 0) { |
| | | this.form.regCouponRewardList.push({ couponId: null, num: null }) |
| | | } else if (type === 1) { |
| | | this.form.shareCouponRewardList.push({ couponId: null, num: null }) |
| | | } |
| | | |
| | | }, |
| | | getData () { |
| | | getPlatformConfig({}) |
| | | .then(res => { |
| | | if (res) { |
| | | this.form = { |
| | | dictCode: 'ORDER_SET', |
| | | regIntegralRewardStatus: res.regIntegralRewardStatus || 0, |
| | | shareIntegralRewardStatus: res.shareIntegralRewardStatus || 0, |
| | | regCouponRewardStatus: res.regCouponRewardStatus || 0, |
| | |
| | | width: 100%; |
| | | } |
| | | .header{ |
| | | margin: 20px 0 20px 0;padding:10px;background-color: rgba(140,147,157,0.61); |
| | | margin: 20px 0 20px 0;padding:10px;background-color: #E0DEDE; |
| | | } |
| | | /deep/ .el-main{ |
| | | width: 100%; |
| | |
| | | } |
| | | .box { |
| | | width: 100%; |
| | | padding: 30px; |
| | | padding: 0 30px; |
| | | box-sizing: border-box; |
| | | background: #ffffff; |
| | | } |