Commit 009d1f1d by zhangmeng

积分商城调试

parent 60a6aaf9
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.73d0471a877b1ee863133a4a5583d0fb.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.ccb4bd422cd76a080cba.js></script><script type=text/javascript src=/marketing/static/js/app.6190db77c97d5e1d157d.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC后台</title><link rel=stylesheet type=text/css href=static/css/iconfont.css><link rel=stylesheet type=text/css href=static/css/common.css><link href=/marketing/static/css/app.839d8ec914e09f595f9b1b82f34c427d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/marketing/static/js/manifest.0a85049e489e85ac5f0a.js></script><script type=text/javascript src=/marketing/static/js/vendor.ccb4bd422cd76a080cba.js></script><script type=text/javascript src=/marketing/static/js/app.21767517c893702bbb3c.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -246,8 +246,9 @@
}
this.$emit('listenWxText',this.xcxUrlObj)
},
getAllMytext(){ // 文本框输入失去焦点时获得输入框的内容
this.textarea = this.$refs.myTextarea.innerHTML;
getAllMytext(){ // 文本框输入失去焦点时获得输入框的内容
this.textarea = this.$refs.myTextarea.innerHTML.replace(/(<(?!\/?(a)(\s|\>))[^>]*>)/g,'').replace(/[&nbsp;]/g,'');
// this.textarea = this.$refs.myTextarea.innerHTML;
this.xcxUrlObj.textarea = this.textarea;
var reg = /<a\s+href=['"]([^"]*)['"].*?[^>]*>(.*?)<\/a>/g;
......
......@@ -68,7 +68,7 @@
<el-form-item label="话务任务标题" class="pb10 pt5">
<dm-input class="w400" v-model="form.title" placeholder="限制20个字符" :maxlength="20"></dm-input>
</el-form-item>
<el-form-item label="话务任务标题" class="pb10">
<el-form-item label="话务任务内容" class="pb10">
<dm-input class="w400" :rows="4" type="textarea" v-model="form.describe" placeholder="限制200个字符" :maxlength="200"></dm-input>
</el-form-item>
<el-form-item label="任务逾期判定">
......
......@@ -141,9 +141,11 @@ export default {
},
// 获取卡券组件回调的对象
getCardActiveObjFun(val) {
console.log(val)
this.form.virtualStock = val.couponStock || 0;
this.form.proReferId = val.coupCardId || '';
console.log(val)
this.form.proName = val.cardName || '';
},
addTimeRange() {
let length = this.timeRangeList.length;
......@@ -153,28 +155,32 @@ export default {
this.timeRangeList.splice(index,1);
},
submit() {
if (!this.form.proReferId ) {
this.$tips({type:'warning',message:'请选择优惠券'});
return;
}
console.log(this.timeRangeList)
let params = {
integralMallProId:this.form.integralMallProId || '',
proType:2, // 商品类型 1 优惠券,2礼品,3实物
proName:this.form.proName, // 商品名字,优惠券就是所选券的名字。
proReferId:this.isAdd?'':this.form.proReferId, // 关联的卡券或者礼品
proShowStatus:this.form.proShowStatus, // 商品显示状态 1:上架状态就显示 2:兑换状态下显示
integralCost:this.form.integralCost,// 积分费用
cashCost:this.form.cashCost, // 现金费用,两位小数
costValue:this.form.costValue,
proType:1, // 商品类型 1 优惠券,2礼品,3实物
proName:this.form.proName || '', // 商品名字,优惠券就是所选券的名字。
proReferId:this.form.proReferId || '', // 关联的卡券或者礼品
proShowStatus:this.form.proShowStatus || 1, // 商品显示状态 1:上架状态就显示 2:兑换状态下显示
integralCost:this.form.integralCost || 0,// 积分费用
cashCost:this.form.cashCost || 0, // 现金费用,两位小数
costValue:this.form.costValue || 0,
limitTimes:this.form.limitTimes,// 次数限制
memberGrade:this.form.memberGradeArr.length?this.form.memberGradeArr.join(','):'', // 适用会员,多个,逗号拼接。
exchangeDateType:this.form.exchangeDateType, // 兑换日期1:全部 2:固定日期 3:每月 4:每周
exchangeTimeType:this.form.exchangeTimeType, // 兑换时间类型 1:全部 2:部分时段
exchangeDateType:this.form.exchangeDateType || 1, // 兑换日期1:全部 2:固定日期 3:每月 4:每周
exchangeTimeType:this.form.exchangeTimeType || 1, // 兑换时间类型 1:全部 2:部分时段
releaseType:this.form.releaseType, // 布发状态 1立即 2定时
releaseType:this.form.releaseType || 1, // 布发状态 1立即 2定时
showStore:this.sendChildData.storeType, // 显示门店 0所有 1部分分组 2部分门店
showStore:this.sendChildData.storeType || 0, // 显示门店 0所有 1部分分组 2部分门店
storeIds:'', // 选中的门店信息,多个逗号拼接
virtualStock: this.form.virtualStock, //库存
virtualStock: this.form.virtualStock || 0, //库存
}
// 判断 兑换日期
......@@ -234,8 +240,15 @@ export default {
console.log(params)
createIntegralProService(params).then(res => {
this.$router.push('/mall/coupon');
if(res.errorCode === 0) {
this.$router.push('/mall/coupon');
this.$tips({type:'success',message:'操作成功'});
} else {
this.$tips({type:'error',message:'操作失败'});
}
console.log(res);
}).catch(err => {
this.$tips({type:'error',message:'操作失败'});
})
}
}
......
......@@ -293,8 +293,15 @@ export default {
console.log(params)
createIntegralProService(params).then(res => {
this.$router.push('/mall/gift');
if(res.errorCode === 0) {
this.$router.push('/mall/coupon');
this.$tips({type:'success',message:'操作成功'});
} else {
this.$tips({type:'error',message:'操作失败'});
}
console.log(res);
}).catch(err => {
this.$tips({type:'error',message:'操作失败'});
})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment