落地页模板优惠券白名单/优惠券新增数据处理
This commit is contained in:
parent
d2b65933fd
commit
6b6b5b098f
|
@ -334,7 +334,6 @@ export default class edittemplate extends React.Component {
|
||||||
whiteList['land'].title = newEditor.title
|
whiteList['land'].title = newEditor.title
|
||||||
whiteList['land'].sort = newEditor.sort
|
whiteList['land'].sort = newEditor.sort
|
||||||
//优惠券
|
//优惠券
|
||||||
console.log(337,newEditor);
|
|
||||||
let couponList = newEditor.couponList
|
let couponList = newEditor.couponList
|
||||||
if (!couponList) {
|
if (!couponList) {
|
||||||
couponList = {}
|
couponList = {}
|
||||||
|
@ -493,11 +492,21 @@ export default class edittemplate extends React.Component {
|
||||||
infoExchange.product_detail = exchangeState.product_detail
|
infoExchange.product_detail = exchangeState.product_detail
|
||||||
delete infoExchange.land.sort
|
delete infoExchange.land.sort
|
||||||
delete infoExchange.land.title
|
delete infoExchange.land.title
|
||||||
if (this.state.showType == 3) {
|
switch(this.state.showType){
|
||||||
//兑换码
|
case 3://兑换码
|
||||||
formdata.exchange = infoExchange
|
formdata.exchange = infoExchange;
|
||||||
} else if (this.state.showType == 1) {
|
break;
|
||||||
|
case 1://白名单
|
||||||
formdata.access_conf = infoExchange
|
formdata.access_conf = infoExchange
|
||||||
|
break;
|
||||||
|
case 2://优惠券
|
||||||
|
formdata.couponList = infoExchange;
|
||||||
|
break;
|
||||||
|
case 4://优惠券白名单
|
||||||
|
formdata.couponList = infoExchange;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (myInfoData) {
|
if (myInfoData) {
|
||||||
//编辑
|
//编辑
|
||||||
|
|
Loading…
Reference in New Issue