diff --git a/src/assets/enum.js b/src/assets/enum.js
index f239951d..37faec91 100644
--- a/src/assets/enum.js
+++ b/src/assets/enum.js
@@ -100,6 +100,8 @@ const menu={
case 3:return '兑换码';break;
case 1:return '白名单';break;
case 2:return '立减金';break;
+ case 4:return '优惠券';break;
+ case 8:return '优惠券白名单';break;
}
},
pageTypeStatusBg(params) {
@@ -107,6 +109,8 @@ const menu={
case 1:return '#ffaa00';break;
case 2:return '#e64c00';break;
case 3:return '#55aaff';break;
+ case 4:return '#79AF83';break;
+ case 8:return '#F2A505';break;
}
},
keysStatus(params) {
diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js
index bc371628..e4469bfd 100644
--- a/src/pages/exchangepage/edittemplate/main.js
+++ b/src/pages/exchangepage/edittemplate/main.js
@@ -347,18 +347,24 @@ export default class edittemplate extends React.Component {
newEditor.exchangeList = exchangeList
newEditor.whiteList = whiteList
newEditor.couponList = couponList;
- if (template == 1) { //1-白名单 2-兑换码
+ if (template == 1) { //1-白名单 3-兑换码
this.setState({
model: newEditor.whiteList.land,
product_list: newEditor.whiteList.product_list,
product_detail: newEditor.whiteList.product_detail
})
- } else {
+ } else if (template ==3){
this.setState({
model: newEditor.exchangeList.land,
product_list: newEditor.exchangeList.product_list,
product_detail: newEditor.exchangeList.product_detail
})
+ }else{
+ this.setState({
+ model: newEditor.couponList.land,
+ product_list: newEditor.couponList.product_list,
+ product_detail: newEditor.couponList.product_detail
+ })
}
sessionStorage.setItem('editorConfig', JSON.stringify(newEditor))
if (mouldType != 0 && pageChange == 1) {
@@ -499,10 +505,10 @@ export default class edittemplate extends React.Component {
case 1://白名单
formdata.access_conf = infoExchange
break;
- case 2://优惠券
+ case 4://优惠券
formdata.couponList = infoExchange;
break;
- case 4://优惠券白名单
+ case 8://优惠券白名单
formdata.couponList = infoExchange;
break;
default:
@@ -854,10 +860,10 @@ export default class edittemplate extends React.Component {
白名单
-
+
优惠券
-
+
优惠券白名单