From 72ee4b2b110bb491a811855b21b4b57d3383992a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E7=BA=A2=E6=A2=85?= <1924913374@qq.com>
Date: Fri, 16 Sep 2022 14:40:01 +0800
Subject: [PATCH 8/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?=
=?UTF-8?q?=E5=90=8D=E7=A7=B0=EF=BC=8C=E4=B8=8E=E5=90=8E=E7=AB=AF=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../goodsPage/config/backPicture.js | 10 +-
.../goodsPage/config/bottomBar.js | 10 +-
.../couponTemplate/goodsPage/config/main.js | 18 +-
.../goodsPage/config/picture.js | 10 +-
.../goodsPage/config/searchBar.js | 10 +-
.../couponTemplate/goodsPage/config/title.js | 10 +-
.../couponTemplate/landingPage/config/main.js | 14 +-
.../landingPage/config/whitemain.js | 375 ------------------
.../edittemplate/couponReduceDetail.js | 10 +-
.../exchangepage/edittemplate/couponconfig.js | 10 +-
src/pages/exchangepage/edittemplate/main.js | 50 +--
11 files changed, 72 insertions(+), 455 deletions(-)
delete mode 100644 src/pages/exchangepage/couponTemplate/landingPage/config/whitemain.js
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/backPicture.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/backPicture.js
index 579bce0a..6373852b 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/backPicture.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/backPicture.js
@@ -18,8 +18,8 @@ export default class edittemplate extends React.Component {
componentWillMount(e) {
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- let { bgimg } = config.couponList.product_list.backgroundImg;
+ if (config && config.coupon && config.coupon.product_list) {
+ let { bgimg } = config.coupon.product_list.backgroundImg;
this.setState({ bgimg });
}
}
@@ -102,9 +102,9 @@ export default class edittemplate extends React.Component {
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_list.backgroundImg = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_list.backgroundImg = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js
index 09668089..49b16364 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js
@@ -59,8 +59,8 @@ export default class edittemplate extends React.Component {
}
})
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- let { navlist, defaultText, selectText, background,iswitch } = config.couponList.product_list.bottomBar;
+ if (config && config.coupon && config.coupon.product_list) {
+ let { navlist, defaultText, selectText, background,iswitch } = config.coupon.product_list.bottomBar;
this.setState({ navlist, defaultText, selectText, background,iswitch });
}
}
@@ -174,9 +174,9 @@ export default class edittemplate extends React.Component {
};
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_list.bottomBar = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_list.bottomBar = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/main.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/main.js
index 2f9060ad..1e6f5e26 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/main.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/main.js
@@ -25,8 +25,8 @@ export default class edittemplate extends React.Component {
}
componentWillMount(e) {
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- this.setState({ model: config.couponList.product_list });
+ if (config && config.coupon && config.coupon.product_list) {
+ this.setState({ model: config.coupon.product_list });
}
}
onListChange(e) {
@@ -187,15 +187,15 @@ export default class edittemplate extends React.Component {
};
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (oldobj && oldobj.couponList) {
- let couponList = oldobj.couponList
- couponList.product_list = this.state.model;
- oldobj.couponList = couponList;
+ if (oldobj && oldobj.coupon) {
+ let coupon = oldobj.coupon
+ coupon.product_list = this.state.model;
+ oldobj.coupon = coupon;
} else {
oldobj = {}
- let couponList = {}
- couponList.product_list = this.state.model;
- oldobj.couponList = couponList;
+ let coupon = {}
+ coupon.product_list = this.state.model;
+ oldobj.coupon = coupon;
}
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/picture.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/picture.js
index efec798a..bd8587e6 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/picture.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/picture.js
@@ -24,8 +24,8 @@ export default class edittemplate extends React.Component {
}
})
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- let {img,jumpType,jumpUrl}=config.couponList.product_list.picture;
+ if (config && config.coupon && config.coupon.product_list) {
+ let {img,jumpType,jumpUrl}=config.coupon.product_list.picture;
this.setState({ img,jumpType,jumpUrl});
}
}
@@ -100,10 +100,10 @@ export default class edittemplate extends React.Component {
};
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
+ let coupon = oldobj.coupon;
console.log(105,this.state);
- couponList.product_list.picture = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ coupon.product_list.picture = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/searchBar.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/searchBar.js
index cd5380ac..af27e048 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/searchBar.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/searchBar.js
@@ -29,8 +29,8 @@ export default class Searchbar extends React.Component {
}
})
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- let { shape, textAlign, borderColor, placeholder } = config.couponList.product_list.search;
+ if (config && config.coupon && config.coupon.product_list) {
+ let { shape, textAlign, borderColor, placeholder } = config.coupon.product_list.search;
this.setState({ shape, textAlign, borderColor, placeholder });
}
}
@@ -79,9 +79,9 @@ export default class Searchbar extends React.Component {
}
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_list.search = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_list.search = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/title.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/title.js
index 887a78a6..89e7cd97 100644
--- a/src/pages/exchangepage/couponTemplate/goodsPage/config/title.js
+++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/title.js
@@ -28,8 +28,8 @@ export default class Title extends React.Component {
}
})
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_list) {
- let { text, textAlign, fontColor, fontSize } = config.couponList.product_list.title;
+ if (config && config.coupon && config.coupon.product_list) {
+ let { text, textAlign, fontColor, fontSize } = config.coupon.product_list.title;
this.setState({ text, textAlign, fontColor, fontSize });
}
}
@@ -128,9 +128,9 @@ export default class Title extends React.Component {
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_list.title = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_list.title = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/couponTemplate/landingPage/config/main.js b/src/pages/exchangepage/couponTemplate/landingPage/config/main.js
index 71bff61e..ca207126 100644
--- a/src/pages/exchangepage/couponTemplate/landingPage/config/main.js
+++ b/src/pages/exchangepage/couponTemplate/landingPage/config/main.js
@@ -35,16 +35,16 @@ export default class edittemplate extends React.Component {
if (moudTyle && moudTyle == 0) {
this.setState({ isSystemModel: true });
}
- let data = config.couponList.land;
+ let data = config.coupon.land;
console.log(111,data);
this.setState({ model: data });
// Bus.addListener('refreshcoupon', (prop) => {
// console.log(46, config);
- // if (config && config.couponList && config.couponList.land) {
- // let data = config.couponList.land;
+ // if (config && config.coupon && config.coupon.land) {
+ // let data = config.coupon.land;
// this.setState({ model: data });
// }
- // config.couponList.land = this.state.model;
+ // config.coupon.land = this.state.model;
// sessionStorage.setItem('editorConfig', JSON.stringify(config));
// })
getThemeType().then(res => {
@@ -232,9 +232,9 @@ export default class edittemplate extends React.Component {
componentWillUnmount() {
console.log(2,'jieshu');
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList= oldobj.couponList
- couponList.land = this.state.model;
- oldobj.couponList = couponList;
+ let coupon= oldobj.coupon
+ coupon.land = this.state.model;
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
diff --git a/src/pages/exchangepage/couponTemplate/landingPage/config/whitemain.js b/src/pages/exchangepage/couponTemplate/landingPage/config/whitemain.js
deleted file mode 100644
index d92179ee..00000000
--- a/src/pages/exchangepage/couponTemplate/landingPage/config/whitemain.js
+++ /dev/null
@@ -1,375 +0,0 @@
-import React from 'react';
-import { Button, Select, ImageUpload, ColorPicker, NumberInput } from 'zent';
-import "../../../edittemplate/goodstemplate.less"
-import { Notify, RadioGroup, RadioButton } from 'zent';
-import Ipt from "@/components/input/main"
-import Form from "@/components/form/main"
-import FormItem from "@/components/form-item/main"
-import Bus from '@/assets/eventBus.js'
-import { uploadImg, handelResponse, getThemeType } from "@/assets/api.js"
-import Wangeditor from '@/pages/exchangepage/edittemplate/wangeditorCom.js'
-export default class edittemplate extends React.Component {
- constructor(props) {
- super(props)
- this.state = {
- isSystemModel: false,
- mouldWay: [],
- model: {
- title: "落地页标题12",
- top_image: "",
- middle_image: "",
- describe: { type: "", content: "", bg_image: '' },
- bg_color: "#EEEEEE",
- font_color: "#000000",
- sort: 1,
- type_id: { key: 1, text: '通用' }
- },
- }
- }
-
- componentDidMount(e) {
- let self = this;
- let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- let moudTyle = sessionStorage.getItem('mouldType');
- if (moudTyle && moudTyle == 0) {
- this.setState({ isSystemModel: true });
- }
- let data = config.couponList.land;
- console.log(111,config);
- this.setState({ model: data });
- // Bus.addListener('refreshcoupon', (prop) => {
- // console.log(46, config);
- // if (config && config.couponList && config.couponList.land) {
- // let data = config.couponList.land;
- // this.setState({ model: data });
- // }
- // config.couponList.land = this.state.model;
- // sessionStorage.setItem('editorConfig', JSON.stringify(config));
- // })
- getThemeType().then(res => {
- handelResponse(res, (req, msg) => {
- let typeListSource = res.data.map(it => {
- return { key: it.id, text: it.name }
- });
- self.setState({ mouldWay: typeListSource });
- }, (err) => {
-
- })
- }).catch(err => {
- });
- }
- handleChange = (color) => {
- let model1 = this.state.model;
- model1.bg_color = color;
- this.setState({
- model: model1
- });
- this.props.landbgcolor(color);
-
- }
- handleChange1 = (color) => {
- let model1 = this.state.model;
- model1.font_color = color;
- this.setState({
- model: model1
- });
- this.props.landftcolor(color);
- }
- onactivityChange(e) {
- let active = this.state.model;
- active.describe.type = e.target.value;
- if (active.describe.bg_image) {
- active.describe.bg_image = "";
- }
- this.setState({ model: active })
-
- this.props.setbanner(this.state.model);
- }
- hasItemFn(c) {
- let model1 = this.state.model;
- if (c == model1.describe.type) {
- model1.describe.type = '';
- model1.describe.type = 0;
- this.setState({ model: model1 });
- this.props.setbanner(this.state.model);
- }
- }
- onmouldChange(c) {
-
- let model1 = this.state.model;
- model1.type_id = c;
- this.setState({ model: model1 });
- this.props.setbanner(model1);
- }
- //上传顶部banner
- onUploadChange(files) {
- if (files.length > 0 && files[0].status == "success") {
- let model = this.state.model;
- model.top_image = files[0].src;
- this.setState({ model: model })
- this.props.setbanner(model);
- } else {
- let model = this.state.model;
- model.top_image = '';
- this.setState({ model: model })
- this.props.setbanner(model);
- }
- };
-
- //上传输入框
- onUploadChange1(files) {
- if (files.length > 0 && files[0].status == "success") {
- let model = this.state.model;
- model.middle_image = files[0].src;
- this.setState({ model: model })
- this.props.setbanner(model);
- } else {
- let model = this.state.model;
- model.middle_image = '';
- this.setState({ model: model })
- this.props.setbanner(model);
- }
- };
-
- //上传使用说明
- onUploadChange2(files) {
- if (files.length > 0 && files[0].status == "success") {
- let model = this.state.model;
- model.describe.bg_image = files[0].src;
- this.setState({ model: model })
- this.props.setbanner(model);
- } else {
- let model = this.state.model;
- model.describe.bg_image = "";
- this.setState({ model: model })
- this.props.setbanner(model);
- }
-
- };
- onUploadError = (type, data) => {
- if (type === 'overMaxAmount') {
- Notify.error(`最多可上传 ${data.maxAmount} 张图片`);
- } else if (type === 'overMaxSize') {
- Notify.error(`图片大小不能超过 ${data.formattedMaxSize}`);
- }
- };
- sortFn(c) {
- let model1 = this.state.model;
- model1.sort = c;
- this.setState({ model: model1 });
- this.props.setbanner(model1);
- }
- getEditext(c) {
- let model1 = this.state.model;
- model1.describe.content = c;
- this.setState({ model: model1 });
- this.props.setbanner(model1);
- }
-
-
- // 字体颜色
- fontcolor(cor) {
- let model1 = this.state.model;
- model1.font_color = cor;
- this.setState({ model: model1 });
- this.props.landftcolor(cor);
- }
- // 背景颜色
- bgcolor(cor) {
- let model1 = this.state.model;
- model1.bg_color = cor;
- this.setState({ model: model1 });
- this.props.landbgcolor(cor);
- }
- onUpload = (file, report) => {
- let self = this;
- return new Promise((resolve, reject) => {
- let path = ""
- let formdata = new FormData();
- formdata.append("file", file)
- formdata.append("path", "common_image")
- uploadImg(formdata).then((res) => {
- handelResponse(res, (req, msg) => {
- path = req.path;
-
- }, (err) => {
- reject();
- })
- });
-
- let count = 0;
- const update = () => {
- if (path) {
-
- resolve(
- path
- );
-
- }
- else {
-
- if (count < 100) {
- count += 2;
- report(count);
- setTimeout(update, 500);
- console.log("上传中")
- }
- else {
-
- reject();
- }
- }
-
-
- };
- setTimeout(update, 500);
- });
-
- };
-
- //组件将要销毁阶段
- componentWillUnmount() {
- let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList= oldobj.couponList
- couponList.land = this.state.model;
- oldobj.couponList = couponList;
- sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
- }
-
-
-
- render() {
- return (
-
- )
- }
-}
\ No newline at end of file
diff --git a/src/pages/exchangepage/edittemplate/couponReduceDetail.js b/src/pages/exchangepage/edittemplate/couponReduceDetail.js
index 680fb84a..ceec2e7e 100644
--- a/src/pages/exchangepage/edittemplate/couponReduceDetail.js
+++ b/src/pages/exchangepage/edittemplate/couponReduceDetail.js
@@ -37,16 +37,16 @@ export default class edittemplate extends React.Component {
}
componentWillMount(e) {
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_detail) {
- let { font_color, button_color } = config.couponList.product_detail.reduce;
+ if (config && config.coupon && config.coupon.product_detail) {
+ let { font_color, button_color } = config.coupon.product_detail.reduce;
this.setState({ font_color, button_color });
}
}
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_detail.reduce = _.cloneDeep(this.state);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_detail.reduce = _.cloneDeep(this.state);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
render() {
diff --git a/src/pages/exchangepage/edittemplate/couponconfig.js b/src/pages/exchangepage/edittemplate/couponconfig.js
index e58a0e04..cf4e9f8f 100644
--- a/src/pages/exchangepage/edittemplate/couponconfig.js
+++ b/src/pages/exchangepage/edittemplate/couponconfig.js
@@ -139,15 +139,15 @@ export default class edittemplate extends React.Component {
}
componentWillMount() {
let config = JSON.parse(sessionStorage.getItem('editorConfig'));
- if (config && config.couponList && config.couponList.product_detail) {
- this.setState({ model: config.couponList.product_detail });
+ if (config && config.coupon && config.coupon.product_detail) {
+ this.setState({ model: config.coupon.product_detail });
}
}
componentWillUnmount() {
let oldobj = JSON.parse(sessionStorage.getItem('editorConfig'));
- let couponList = oldobj.couponList;
- couponList.product_detail = _.cloneDeep(this.state.model);
- oldobj.couponList = couponList;
+ let coupon = oldobj.coupon;
+ coupon.product_detail = _.cloneDeep(this.state.model);
+ oldobj.coupon = coupon;
sessionStorage.setItem('editorConfig', JSON.stringify(oldobj));
}
diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js
index 443a6604..af7d6b4f 100644
--- a/src/pages/exchangepage/edittemplate/main.js
+++ b/src/pages/exchangepage/edittemplate/main.js
@@ -25,9 +25,6 @@ import CouponGoodsListForm from '../couponTemplate/goodsPage/config/main' //优
import CouponGoodsDetailForm from './couponconfig' //优惠券商品详情页
import CouponReduceDetailForm from './couponReduceDetail' //优惠券立减金详情页
import CouponComLib from '../couponTemplate/goodsPage/componentLib/main' //优惠券组件库
-
-// 优惠券白名单
-import CouponWhiteLandingForm from '../couponTemplate/landingPage/config/whitemain' //优惠券落地页表单
import _ from 'lodash'
//落地页
let model = {
@@ -334,19 +331,19 @@ export default class edittemplate extends React.Component {
whiteList['land'].title = newEditor.title
whiteList['land'].sort = newEditor.sort
//优惠券
- let couponList = newEditor.couponList
- if (!couponList) {
- couponList = {}
- couponList.land = model
- couponList.product_list = couponProduct_list
- couponList.product_detail = product_detail
+ let coupon = newEditor.coupon
+ if (!coupon) {
+ coupon = {}
+ coupon.land = model
+ coupon.product_list = couponProduct_list
+ coupon.product_detail = product_detail
}
- couponList['land'].title = newEditor.title
- couponList['land'].sort = newEditor.sort
+ coupon['land'].title = newEditor.title
+ coupon['land'].sort = newEditor.sort
newEditor.exchangeList = exchangeList
newEditor.whiteList = whiteList
- newEditor.couponList = couponList;
+ newEditor.coupon = coupon;
if (template == 1) { //1-白名单 3-兑换码
this.setState({
model: newEditor.whiteList.land,
@@ -361,9 +358,9 @@ export default class edittemplate extends React.Component {
})
}else{
this.setState({
- model: newEditor.couponList.land,
- product_list: newEditor.couponList.product_list,
- product_detail: newEditor.couponList.product_detail
+ model: newEditor.coupon.land,
+ product_list: newEditor.coupon.product_list,
+ product_detail: newEditor.coupon.product_detail
})
}
sessionStorage.setItem('editorConfig', JSON.stringify(newEditor))
@@ -372,7 +369,7 @@ export default class edittemplate extends React.Component {
}
} else {//新增数据
console.log(369,sessionStorage.getItem('editorConfig'));
- let obj = {}, whiteList = {}, exchangeList = {}, couponList = {}
+ let obj = {}, whiteList = {}, exchangeList = {}, coupon = {}
let sourceObj = {//模板数据结构
land: model,
product_list,
@@ -385,10 +382,10 @@ export default class edittemplate extends React.Component {
}
whiteList = _.cloneDeep(sourceObj);
exchangeList = _.cloneDeep(sourceObj);
- couponList = _.cloneDeep(sourcecouponObj);
+ coupon = _.cloneDeep(sourcecouponObj);
obj.exchangeList = exchangeList
obj.whiteList = whiteList
- obj.couponList = couponList
+ obj.coupon = coupon
sessionStorage.setItem('editorConfig', JSON.stringify(obj))
}
}
@@ -506,10 +503,10 @@ export default class edittemplate extends React.Component {
formdata.access_conf = infoExchange
break;
case 4://优惠券
- formdata.couponList = infoExchange;
+ formdata.coupon = infoExchange;
break;
case 8://优惠券白名单
- formdata.couponList = infoExchange;
+ formdata.coupon = infoExchange;
break;
default:
break;
@@ -673,8 +670,7 @@ export default class edittemplate extends React.Component {
let { land, product_list, product_detail } = exchangeData;
this.setState({ model: land, product_list, product_detail })
} else{//优惠券+优惠券白名单
- console.log(659,editorData);
- let couponData = editorData.couponList
+ let couponData = editorData.coupon
let { land, product_list, product_detail } = couponData;
console.log(222,this.state.model);
this.setState({ model: land, product_list, product_detail })
@@ -963,12 +959,12 @@ export default class edittemplate extends React.Component {
{/* 组件库 */}
{
- [2,4].includes(this.state.showType) && this.state.activeNavStatus == 2 ?