2 lines
163 KiB
JavaScript
2 lines
163 KiB
JavaScript
/*! For license information please see 9.b7d21bd1.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[9],{434:function(e,t,i){},435:function(e,t,i){},479:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return Se}));var l=i(59),o=(i(36),i(68)),s=i(433),a=i.n(s),c=i(449),n=i(475),m=i(484),r=i(1),d=i.n(r),u=i(383),h=i(175),b=i(198),N=i(200),p=i(210),f=i(235),g=i(361),j=i(478),v=i(284),x=i(176),E=i(482),C=(i(85),i(64)),D=i(115),O=i.n(D),V=i(10);class _ extends d.a.Component{constructor(e){super(e),this.state={editorHtml:""}}componentDidMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=this;const i=new O.a("#wangeditorDom");this.setState({editor:i}),i.config.colors=["#696969","#9093a2","#fgddbb","#e3e7eb"],i.config.pasteText=!0,i.config.height=200,i.config.menus=["bold","foreColor","italic","indent","link","justify"],i.config.onchange=function(e){var l=i.txt.text();if(0==l.length&&t.props.setEdittext(""),l.length>1e3){let e=l.slice(0,1e3);return t.setState({editorHtml:e}),i.txt.html(e),void t.props.setEdittext(e)}t.setState({editorHtml:e}),t.props.setEdittext(e)},i.create();let l="",o=e.exchangeList;"landeditor"==this.props.pageType&&(l=e&&o?o.land.describe.content:""),["goodeditor","goodsuseditor"].includes(this.props.pageType)&&(l=e&&o&&o.product_list?o.product_list.describe.content:""),["detaileditor","detailsuseditor"].includes(this.props.pageType)&&(l=e&&o&&o.product_detail?o.product_detail.describe.content:""),i.txt.html(l)}render(){return Object(V.jsxDEV)("div",{id:"wangeditorDom"},void 0,!1,{fileName:"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\exchange\\wangeditorCom.js",lineNumber:67,columnNumber:12},this)}}var y=i(63),S="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\exchange\\detailsPage.js";class w extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodDetailConfig({attr:e,value:t})},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:" ",bg_image:""}}}}onactivityChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setdetailActive({attr:e,value:t.target.value})}getsusEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setdetailActive({attr:"content",value:e})}onUploadChange(e){let t=this.state.model;t.describe.bg_image="",this.props.setdetailActive({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setdetailActive({attr:"bg_image",value:e[0].src})),this.setState({model:t})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setdetailActive({attr:"type",value:""}))}componentWillMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));e&&e.exchangeList&&e.exchangeList.product_detail&&this.setState({model:e.exchangeList.product_detail})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.exchangeList;t.product_detail=this.state.model,e.exchangeList=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold",marginBottom:"20px"},children:"\u6837\u5f0f"},void 0,!1,{fileName:S,lineNumber:134,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:S,lineNumber:137,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:S,lineNumber:147,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:S,lineNumber:157,columnNumber:17},this)},void 0,!1,{fileName:S,lineNumber:156,columnNumber:15},this)]},void 0,!0,{fileName:S,lineNumber:136,columnNumber:13},this)},void 0,!1,{fileName:S,lineNumber:135,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:S,lineNumber:167,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:S,lineNumber:177,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:S,lineNumber:186,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:S,lineNumber:195,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:S,lineNumber:204,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:S,lineNumber:214,columnNumber:17},this)},void 0,!1,{fileName:S,lineNumber:213,columnNumber:15},this)]},void 0,!0,{fileName:S,lineNumber:166,columnNumber:13},this)},void 0,!1,{fileName:S,lineNumber:165,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:S,lineNumber:223,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onactivityChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:S,lineNumber:231,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:S,lineNumber:234,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:S,lineNumber:237,columnNumber:17},this)]},void 0,!0,{fileName:S,lineNumber:226,columnNumber:15},this)},void 0,!1,{fileName:S,lineNumber:225,columnNumber:13},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:S,lineNumber:246,columnNumber:15},this)},void 0,!1,{fileName:S,lineNumber:242,columnNumber:13},this)]},void 0,!0,{fileName:S,lineNumber:224,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:S,lineNumber:251,columnNumber:15},this)},void 0,!1,{fileName:S,lineNumber:250,columnNumber:13},this):2==this.state.model.describe.type?Object(V.jsxDEV)(_,{pageType:"detailsuseditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:S,lineNumber:271,columnNumber:13},this):3==this.state.model.describe.type?Object(V.jsxDEV)(_,{pageType:"detaileditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:S,lineNumber:276,columnNumber:13},this):null]},void 0,!0,{fileName:S,lineNumber:133,columnNumber:9},this)},void 0,!1,{fileName:S,lineNumber:126,columnNumber:7},this)}}var A=i(61),k="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\exchange\\goodsPage.js";class T extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{top_image:"",list:"2",font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""}}}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));this.setState({model:t.exchangeList.product_list})}configChange(e,t){let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})}explainChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setexplainConfig({attr:e,value:t.target.value})}getsusEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setexplainConfig({attr:"content",value:e})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setexplainConfig({attr:"type",value:""}))}onUploadChange(e){let t=this.state.model;t.top_image="",this.props.setGoodConfig({attr:"top_image",value:""}),e.length>0&&"success"==e[0].status&&(t.top_image=e[0].src,this.props.setGoodConfig({attr:"top_image",value:e[0].src})),this.setState({model:t})}onUploadChange2(e){let t=this.state.model;t.describe.bg_image="",this.props.setexplainConfig({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setexplainConfig({attr:"bg_image",value:e[0].src})),this.setState({model:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));if(e&&e.exchangeList){let t=e.exchangeList;t.product_list=this.state.model,e.exchangeList=t}else{e={};let t={};t.product_list=this.state.model,e.exchangeList=t}sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:k,lineNumber:156,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"banner\u5916\u94fe:",required:!1,labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.configChange("bannerUrl",e)},onClearItem:()=>{this.configChange("bannerUrl","")},value:this.state.model.bannerUrl,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",height:"36px",width:"300px",alignment:"left",countShow:!1},void 0,!1,{fileName:k,lineNumber:158,columnNumber:13},this)},void 0,!1,{fileName:k,lineNumber:157,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:k,lineNumber:174,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginBottom:"24px"},children:Object(V.jsxDEV)(y.a,{labelname:"",labelwidth:"0px",required:!1,children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.configChange("list",e.target.value)},value:this.state.model.list,children:[Object(V.jsxDEV)(N.a,{value:"2",children:"\u8f6e\u64ad"},void 0,!1,{fileName:k,lineNumber:183,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"1",children:"\u5217\u8868"},void 0,!1,{fileName:k,lineNumber:184,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"3",children:"\u77e9\u9635"},void 0,!1,{fileName:k,lineNumber:185,columnNumber:17},this)]},void 0,!0,{fileName:k,lineNumber:177,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:176,columnNumber:13},this)},void 0,!1,{fileName:k,lineNumber:175,columnNumber:11},this),2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:k,lineNumber:192,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:k,lineNumber:201,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:k,lineNumber:212,columnNumber:19},this)},void 0,!1,{fileName:k,lineNumber:211,columnNumber:17},this)]},void 0,!0,{fileName:k,lineNumber:191,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:190,columnNumber:13},this):null,2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:k,lineNumber:224,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:k,lineNumber:233,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:k,lineNumber:243,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:k,lineNumber:253,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:k,lineNumber:263,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:k,lineNumber:274,columnNumber:19},this)},void 0,!1,{fileName:k,lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:k,lineNumber:223,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:222,columnNumber:13},this):null,Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:k,lineNumber:283,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:k,lineNumber:285,columnNumber:13},this)},void 0,!1,{fileName:k,lineNumber:284,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.explainChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:k,lineNumber:310,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:k,lineNumber:313,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:k,lineNumber:316,columnNumber:17},this)]},void 0,!0,{fileName:k,lineNumber:304,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:303,columnNumber:13},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:k,lineNumber:326,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:321,columnNumber:13},this)]},void 0,!0,{fileName:k,lineNumber:302,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:k,lineNumber:331,columnNumber:15},this)},void 0,!1,{fileName:k,lineNumber:330,columnNumber:13},this):2==this.state.model.describe.type?Object(V.jsxDEV)(_,{pageType:"goodsuseditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:k,lineNumber:351,columnNumber:13},this):3==this.state.model.describe.type?Object(V.jsxDEV)(_,{pageType:"goodeditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:k,lineNumber:353,columnNumber:13},this):null]},void 0,!0,{fileName:k,lineNumber:155,columnNumber:9},this)},void 0,!1,{fileName:k,lineNumber:147,columnNumber:7},this)}}var F=i(492),U=i(273),I=(i(108),"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\exchange\\landingPage.js");class L extends d.a.Component{constructor(e){super(e),this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.landConfig({attr:e,value:t})},this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={isSystemModel:!1,mouldWay:[],model:{title:"\u843d\u5730\u9875\u6807\u9898",top_image:"",middle_image:"",describe:{type:"",content:"",bg_image:""},bg_color:"#EEEEEE",font_color:"#000000",sort:1,type_id:{key:1,text:"\u901a\u7528"}}}}componentWillMount(e){let t=this,i=JSON.parse(sessionStorage.getItem("editorConfig")),o=sessionStorage.getItem("mouldType");if(o&&0==o&&(this.setState({isSystemModel:!0}),Object(l.Ab)().then((e=>{Object(l.Kb)(e,((i,l)=>{let o=e.data.map((e=>({key:e.id,text:e.name})));t.setState({mouldWay:o})}),(e=>{}))})).catch((e=>{}))),i&&i.exchangeList&&i.exchangeList.land){let e=i.exchangeList.land;this.setState({model:e})}}onactivityChange(e){let t=this.state.model;t.describe.type=e.target.value,t.describe.bg_image&&(t.describe.bg_image=""),this.setState({model:t}),this.props.setbanner(this.state.model)}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",t.describe.type=0,this.setState({model:t}),this.props.setbanner(this.state.model))}onmouldChange(e){let t=this.state.model;t.type_id=e,this.setState({model:t}),this.props.setbanner(t)}onUploadChange(e){let t=this.state.model;t.top_image="",e.length>0&&"success"==e[0].status&&(t.top_image=e[0].src),this.setState({model:t}),this.props.setbanner(t)}onUploadChange1(e){if(e.length>0&&"success"==e[0].status){let t=this.state.model;t.middle_image=e[0].src,this.setState({model:t}),this.props.setbanner(t)}else{let e=this.state.model;e.middle_image="",this.setState({model:e}),this.props.setbanner(e)}}onUploadChange2(e){if(e.length>0&&"success"==e[0].status){let t=this.state.model;t.describe.bg_image=e[0].src,this.setState({model:t}),this.props.setbanner(t)}else{let e=this.state.model;e.describe.bg_image="",this.setState({model:e}),this.props.setbanner(e)}}sortFn(e){let t=this.state.model;t.sort=e,this.setState({model:t}),this.props.setbanner(t)}getEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setbanner(t)}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));if(e&&e.exchangeList){let t=e.exchangeList;t.land=this.state.model,e.exchangeList=t}else{e={};let t={};t.land=this.state.model,e.exchangeList=t}sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto 60px",overflow:"auto",maxHeight:"100%"},children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:I,lineNumber:210,columnNumber:9},this),Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)(y.a,{labelname:"\u843d\u5730\u9875\u6807\u9898:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{let t=this.state.model;t.title=e,this.setState({model:t}),this.props.landConfig({attr:"title",value:e})},onClearItem:e=>{let t=this.state.model;t.title="",this.setState({model:t})},value:this.state.model.title,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:12,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:I,lineNumber:214,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:213,columnNumber:11},this),this.state.isSystemModel?Object(V.jsxDEV)(y.a,{labelname:"\u6743\u91cd",required:!1,labelwidth:"100px",children:Object(V.jsxDEV)(F.a,{onChange:e=>this.sortFn(e),value:this.state.model.sort,placeholder:"\u8bf7\u8f93\u5165\u6570\u5b57",integer:!0,max:999,width:"300px",className:"sort_number"},void 0,!1,{fileName:I,lineNumber:237,columnNumber:15},this)},void 0,!1,{fileName:I,lineNumber:236,columnNumber:13},this):null,this.state.isSystemModel?Object(V.jsxDEV)(y.a,{labelname:"\u6a21\u677f\u5206\u7c7b",labelwidth:"100px",children:Object(V.jsxDEV)(U.a,{options:this.state.mouldWay,onChange:e=>{this.onmouldChange(e)},placeholder:"\u9009\u62e9\u4e00\u9879",width:300,value:this.state.model.type_id},void 0,!1,{fileName:I,lineNumber:250,columnNumber:15},this)},void 0,!1,{fileName:I,lineNumber:249,columnNumber:13},this):null,Object(V.jsxDEV)("div",{style:{marginBottom:"15px",fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:I,lineNumber:261,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.bg_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("bg_color","#ffffff")}},void 0,!1,{fileName:I,lineNumber:264,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#EEEEEE"==this.state.model.bg_color?"activecicle cicle cicle1":"cicle cicle1",onClick:()=>{this.controlColor("bg_color","#EEEEEE")}},void 0,!1,{fileName:I,lineNumber:274,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.bg_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("bg_color","#000000")}},void 0,!1,{fileName:I,lineNumber:283,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.bg_color,onChange:e=>this.controlColor("bg_color",e)},void 0,!1,{fileName:I,lineNumber:293,columnNumber:17},this)},void 0,!1,{fileName:I,lineNumber:292,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:263,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:262,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:I,lineNumber:303,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.font_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("font_color","#04C160")}},void 0,!1,{fileName:I,lineNumber:313,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.font_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("font_color","#AE99D3")}},void 0,!1,{fileName:I,lineNumber:322,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.font_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("font_color","#FACD6A")}},void 0,!1,{fileName:I,lineNumber:331,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.font_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("font_color","#FE7962")}},void 0,!1,{fileName:I,lineNumber:340,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:I,lineNumber:350,columnNumber:17},this)},void 0,!1,{fileName:I,lineNumber:349,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:302,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:301,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:I,lineNumber:358,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:I,lineNumber:360,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:359,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u8f93\u5165\u6846:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange1(e)},defaultFileList:this.state.model.middle_image?[{src:this.state.model.middle_image}]:null,onUpload:this.onUpload,onError:this.onUploadError},void 0,!1,{fileName:I,lineNumber:380,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:379,columnNumber:11},this),Object(V.jsxDEV)(y.a,{myClassName:"activeSet",required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onactivityChange(e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{value:"1",onClick:()=>this.hasItemFn(1),children:"\u56fe\u7247"},void 0,!1,{fileName:I,lineNumber:409,columnNumber:15},this),Object(V.jsxDEV)(N.a,{value:"2",onClick:()=>this.hasItemFn(2),children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:I,lineNumber:412,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:404,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:399,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:I,lineNumber:419,columnNumber:15},this)},void 0,!1,{fileName:I,lineNumber:418,columnNumber:13},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u80cc\u666f\u56fe\u6848:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:I,lineNumber:441,columnNumber:15},this)},void 0,!1,{fileName:I,lineNumber:440,columnNumber:13},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(_,{pageType:"landeditor",setEdittext:e=>this.getEditext(e)},void 0,!1,{fileName:I,lineNumber:462,columnNumber:13},this):null]},void 0,!0,{fileName:I,lineNumber:212,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:203,columnNumber:7},this)}}var z=i(362),M=i(363),W=i(364),J=i(365),B="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\reduceConfig.js";class q extends d.a.Component{constructor(e){super(e),this.state={}}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"30px auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)("p",{style:{textAlign:"center"},children:"\u6682\u672a\u5f00\u653e\uff01"},void 0,!1,{fileName:B,lineNumber:20,columnNumber:9},this)},void 0,!1,{fileName:B,lineNumber:12,columnNumber:7},this)}}class P extends d.a.Component{constructor(e){super(e),this.state={editorHtml:""}}componentDidMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=this;const i=new O.a("#wangeditorDom");this.setState({editor:i}),i.config.colors=["#696969","#9093a2","#fgddbb","#e3e7eb"],i.config.pasteText=!0,i.config.height=200,i.config.menus=["bold","foreColor","italic","indent","link","justify"],i.config.onchange=function(e){var l=i.txt.text();if(0==l.length&&t.props.setEdittext(""),l.length>1e3){let e=l.slice(0,1e3);return t.setState({editorHtml:e}),i.txt.html(e),void t.props.setEdittext(e)}t.setState({editorHtml:e}),t.props.setEdittext(e)},i.create();let l="",o=e.whiteList;"landeditor"==this.props.pageType&&(l=e&&o&&o.land?o.land.describe.content:""),["goodeditor","goodsuseditor"].includes(this.props.pageType)&&(l=e&&o.product_list?o.product_list.describe.content:""),["detaileditor","detailsuseditor"].includes(this.props.pageType)&&(l=e&&o.product_detail?o.product_detail.describe.content:""),i.txt.html(l)}render(){return Object(V.jsxDEV)("div",{id:"wangeditorDom"},void 0,!1,{fileName:"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\whiteList\\whitewangeditor.js",lineNumber:68,columnNumber:12},this)}}var H="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\whiteList\\whiteLand.js";class G extends d.a.Component{constructor(e){super(e),this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.landConfig({attr:e,value:t})},this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{title:"\u767d\u540d\u5355\u6807\u9898",top_image:"",middle_image:"",describe:{type:"",content:"",bg_image:""},bg_color:"#EEEEEE",font_color:"#000000"}}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));if(t&&t.whiteList&&t.whiteList.land){let e=t.whiteList.land;this.setState({model:e})}}onactivityChange(e){let t=this.state.model;t.describe.type=e.target.value,t.describe.bg_image&&(t.describe.bg_image=""),this.setState({model:t}),this.props.setbanner(this.state.model)}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",t.describe.type=0,this.setState({model:t}),this.props.setbanner(this.state.model))}onUploadChange(e,t){let i=this.state.model;i[t]="",e.length>0&&"success"==e[0].status&&(i[t]=e[0].src),this.setState({model:i}),this.props.setbanner(i)}onUploadChange2(e){let t=this.state.model;t.describe.bg_image="",e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src),this.setState({model:t}),this.props.setbanner(t)}getEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setbanner(t)}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));if(e&&e.whiteList){let t=e.whiteList;t.land=this.state.model,e.whiteList=t}else{let t={};t.land=this.state.model,e.whiteList=t}sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto 60px",overflow:"auto",maxHeight:"100%"},children:[0==this.props.mouldType?null:Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:H,lineNumber:157,columnNumber:11},this),Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[0==this.props.mouldType?null:Object(V.jsxDEV)(y.a,{labelname:"\u843d\u5730\u9875\u6807\u9898:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{let t=this.state.model;t.title=e,this.setState({model:t}),this.props.landConfig({attr:"title",value:e})},onClearItem:e=>{let t=this.state.model;t.title="",this.setState({model:t})},value:this.state.model.title,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:12,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:H,lineNumber:162,columnNumber:15},this)},void 0,!1,{fileName:H,lineNumber:161,columnNumber:13},this),Object(V.jsxDEV)("div",{style:{marginBottom:"15px",fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:H,lineNumber:184,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.bg_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("bg_color","#ffffff")}},void 0,!1,{fileName:H,lineNumber:187,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#EEEEEE"==this.state.model.bg_color?"activecicle cicle cicle1":"cicle cicle1",onClick:()=>{this.controlColor("bg_color","#EEEEEE")}},void 0,!1,{fileName:H,lineNumber:197,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.bg_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("bg_color","#000000")}},void 0,!1,{fileName:H,lineNumber:206,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.bg_color,onChange:e=>this.controlColor("bg_color",e)},void 0,!1,{fileName:H,lineNumber:216,columnNumber:17},this)},void 0,!1,{fileName:H,lineNumber:215,columnNumber:15},this)]},void 0,!0,{fileName:H,lineNumber:186,columnNumber:13},this)},void 0,!1,{fileName:H,lineNumber:185,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:H,lineNumber:226,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.font_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("font_color","#04C160")}},void 0,!1,{fileName:H,lineNumber:236,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.font_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("font_color","#AE99D3")}},void 0,!1,{fileName:H,lineNumber:245,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.font_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("font_color","#FACD6A")}},void 0,!1,{fileName:H,lineNumber:254,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.font_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("font_color","#FE7962")}},void 0,!1,{fileName:H,lineNumber:263,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:H,lineNumber:273,columnNumber:17},this)},void 0,!1,{fileName:H,lineNumber:272,columnNumber:15},this)]},void 0,!0,{fileName:H,lineNumber:225,columnNumber:13},this)},void 0,!1,{fileName:H,lineNumber:224,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:H,lineNumber:282,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e,"top_image")},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:H,lineNumber:284,columnNumber:13},this)},void 0,!1,{fileName:H,lineNumber:283,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u8f93\u5165\u6846:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e,"middle_image")},defaultFileList:this.state.model.middle_image?[{src:this.state.model.middle_image}]:null,onUpload:this.onUpload,onError:this.onUploadError},void 0,!1,{fileName:H,lineNumber:305,columnNumber:13},this)},void 0,!1,{fileName:H,lineNumber:304,columnNumber:11},this),Object(V.jsxDEV)(y.a,{myClassName:"activeSet",required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onactivityChange(e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{value:"1",onClick:()=>this.hasItemFn(1),children:"\u56fe\u7247"},void 0,!1,{fileName:H,lineNumber:334,columnNumber:15},this),Object(V.jsxDEV)(N.a,{value:"2",onClick:()=>this.hasItemFn(2),children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:H,lineNumber:337,columnNumber:15},this)]},void 0,!0,{fileName:H,lineNumber:329,columnNumber:13},this)},void 0,!1,{fileName:H,lineNumber:324,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:H,lineNumber:344,columnNumber:15},this)},void 0,!1,{fileName:H,lineNumber:343,columnNumber:13},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u80cc\u666f\u56fe\u6848:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:H,lineNumber:366,columnNumber:15},this)},void 0,!1,{fileName:H,lineNumber:365,columnNumber:13},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(P,{pageType:"landeditor",setEdittext:e=>this.getEditext(e)},void 0,!1,{fileName:H,lineNumber:387,columnNumber:13},this):null]},void 0,!0,{fileName:H,lineNumber:159,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:149,columnNumber:7},this)}}var $="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\whiteList\\whitedetails.js";class K extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodDetailConfig({attr:e,value:t})},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:" ",bg_image:""}}}}onactivityChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setdetailActive({attr:e,value:t.target.value})}getsusEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setdetailActive({attr:"content",value:e})}onUploadChange(e){let t=this.state.model;t.describe.bg_image="",this.props.setdetailActive({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setdetailActive({attr:"bg_image",value:e[0].src})),this.setState({model:t})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setdetailActive({attr:"type",value:""}))}componentWillMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));this.setState({model:e.whiteList.product_detail})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.whiteList;t.product_detail=this.state.model,e.whiteList=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold",marginBottom:"20px"},children:"\u6837\u5f0f"},void 0,!1,{fileName:$,lineNumber:135,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:$,lineNumber:138,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:$,lineNumber:148,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:$,lineNumber:158,columnNumber:17},this)},void 0,!1,{fileName:$,lineNumber:157,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:137,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:136,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:$,lineNumber:168,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:$,lineNumber:178,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:$,lineNumber:187,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:$,lineNumber:196,columnNumber:15},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:$,lineNumber:205,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:$,lineNumber:215,columnNumber:17},this)},void 0,!1,{fileName:$,lineNumber:214,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:167,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:166,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:$,lineNumber:224,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onactivityChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:$,lineNumber:232,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:$,lineNumber:235,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:$,lineNumber:238,columnNumber:17},this)]},void 0,!0,{fileName:$,lineNumber:227,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:226,columnNumber:13},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:$,lineNumber:247,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:243,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:225,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:$,lineNumber:252,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:251,columnNumber:13},this):2==this.state.model.describe.type?Object(V.jsxDEV)(P,{pageType:"detailsuseditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:$,lineNumber:272,columnNumber:13},this):3==this.state.model.describe.type?Object(V.jsxDEV)(P,{pageType:"detaileditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:$,lineNumber:277,columnNumber:13},this):null]},void 0,!0,{fileName:$,lineNumber:134,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:127,columnNumber:7},this)}}var R="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\whiteList\\whitegoods.js";class Q extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})},this.state={model:{top_image:"",list:"2",font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""}}}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));t&&t.whiteList&&t.whiteList.product_list&&this.setState({model:t.whiteList.product_list})}configChange(e,t){let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})}explainChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setexplainConfig({attr:e,value:t.target.value})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setexplainConfig({attr:"type",value:""}))}onUploadChange(e){let t=this.state.model;t.top_image="",this.props.setGoodConfig({attr:"top_image",value:""}),e.length>0&&"success"==e[0].status&&(t.top_image=e[0].src,this.props.setGoodConfig({attr:"top_image",value:e[0].src})),this.setState({model:t})}getsusEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setexplainConfig({attr:"content",value:e})}onUploadChange2(e){let t=this.state.model;t.describe.bg_image="",this.props.setexplainConfig({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setexplainConfig({attr:"bg_image",value:e[0].src})),this.setState({model:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));if(e&&e.whiteList){let t=e.whiteList;t.product_list=this.state.model,e.whiteList=t}else{let t={};t.product_list=this.state.model,e.whiteList=t}sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:R,lineNumber:159,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"banner\u5916\u94fe:",required:!1,labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.configChange("bannerUrl",e)},onClearItem:()=>{this.configChange("bannerUrl","")},value:this.state.model.bannerUrl,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",height:"36px",width:"300px",alignment:"left",countShow:!1},void 0,!1,{fileName:R,lineNumber:161,columnNumber:13},this)},void 0,!1,{fileName:R,lineNumber:160,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:R,lineNumber:177,columnNumber:11},this),Object(V.jsxDEV)("div",{style:{marginBottom:"24px"},children:Object(V.jsxDEV)(y.a,{labelname:"",labelwidth:"0px",required:!1,children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.configChange("list",e.target.value)},value:this.state.model.list,children:[Object(V.jsxDEV)(N.a,{value:"2",children:"\u8f6e\u64ad"},void 0,!1,{fileName:R,lineNumber:186,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"1",children:"\u5217\u8868"},void 0,!1,{fileName:R,lineNumber:187,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"3",children:"\u77e9\u9635"},void 0,!1,{fileName:R,lineNumber:188,columnNumber:17},this)]},void 0,!0,{fileName:R,lineNumber:180,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:179,columnNumber:13},this)},void 0,!1,{fileName:R,lineNumber:178,columnNumber:11},this),2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:R,lineNumber:195,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:R,lineNumber:204,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:R,lineNumber:215,columnNumber:19},this)},void 0,!1,{fileName:R,lineNumber:214,columnNumber:17},this)]},void 0,!0,{fileName:R,lineNumber:194,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:193,columnNumber:13},this):null,2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:R,lineNumber:227,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:R,lineNumber:236,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:R,lineNumber:246,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:R,lineNumber:256,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:R,lineNumber:266,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:R,lineNumber:277,columnNumber:19},this)},void 0,!1,{fileName:R,lineNumber:276,columnNumber:17},this)]},void 0,!0,{fileName:R,lineNumber:226,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:225,columnNumber:13},this):null,Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:R,lineNumber:287,columnNumber:11},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:R,lineNumber:289,columnNumber:13},this)},void 0,!1,{fileName:R,lineNumber:288,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.explainChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:R,lineNumber:314,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:R,lineNumber:317,columnNumber:17},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:R,lineNumber:320,columnNumber:17},this)]},void 0,!0,{fileName:R,lineNumber:308,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:307,columnNumber:13},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:R,lineNumber:331,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:326,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:306,columnNumber:11},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:R,lineNumber:336,columnNumber:15},this)},void 0,!1,{fileName:R,lineNumber:335,columnNumber:13},this):2==this.state.model.describe.type?Object(V.jsxDEV)(P,{pageType:"goodsuseditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:R,lineNumber:356,columnNumber:13},this):3==this.state.model.describe.type?Object(V.jsxDEV)(P,{pageType:"goodeditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:R,lineNumber:358,columnNumber:13},this):null]},void 0,!0,{fileName:R,lineNumber:158,columnNumber:9},this)},void 0,!1,{fileName:R,lineNumber:150,columnNumber:7},this)}}class X extends d.a.Component{constructor(e){super(e),this.state={editorHtml:""}}componentDidMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=this;const i=new O.a("#wangeditorDom");this.setState({editor:i}),i.config.colors=["#696969","#9093a2","#fgddbb","#e3e7eb"],i.config.pasteText=!0,i.config.height=200,i.config.menus=["bold","foreColor","italic","indent","link","justify"],i.config.onchange=function(e){var l=i.txt.text();if(0==l.length&&t.props.setEdittext(""),l.length>1e3){let e=l.slice(0,1e3);return t.setState({editorHtml:e}),i.txt.html(e),void t.props.setEdittext(e)}t.setState({editorHtml:e}),t.props.setEdittext(e)},i.create();let l="",o=e.coupon;"landeditor"==this.props.pageType&&(l=e&&o&&o.land?o.land.describe.content:""),["goodeditor","goodsuseditor"].includes(this.props.pageType)&&(l=e&&o.product_list?o.product_list.describe.content:""),["detaileditor","detailsuseditor"].includes(this.props.pageType)&&(l=e&&o.product_detail?o.product_detail.describe.content:""),i.txt.html(l)}render(){return Object(V.jsxDEV)("div",{id:"wangeditorDom"},void 0,!1,{fileName:"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\couponwangeditor.js",lineNumber:68,columnNumber:12},this)}}var Y="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\couponDetailconfig.js";class Z extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodDetailConfig({attr:e,value:t})},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:" ",bg_image:""}}}}onActivityChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setdetailActive({attr:e,value:t.target.value})}getSusEditText(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setdetailActive({attr:"content",value:e})}onUploadChange(e){let t=this.state.model;t.describe.bg_image="",this.props.setdetailActive({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setdetailActive({attr:"bg_image",value:e[0].src})),this.setState({model:t})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setdetailActive({attr:"type",value:""}))}componentWillMount(){let e=JSON.parse(sessionStorage.getItem("editorConfig"));this.setState({model:e.coupon.product_detail})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_detail=Object(c.a)(this.state.model),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u5546\u54c1\u8be6\u60c5\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:Y,lineNumber:119,columnNumber:11},this)},void 0,!1,{fileName:Y,lineNumber:118,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold",marginBottom:"20px"},children:"\u6837\u5f0f"},void 0,!1,{fileName:Y,lineNumber:130,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:Y,lineNumber:133,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:Y,lineNumber:142,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:Y,lineNumber:153,columnNumber:19},this)},void 0,!1,{fileName:Y,lineNumber:152,columnNumber:17},this)]},void 0,!0,{fileName:Y,lineNumber:132,columnNumber:15},this)},void 0,!1,{fileName:Y,lineNumber:131,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:Y,lineNumber:163,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:Y,lineNumber:172,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:Y,lineNumber:182,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:Y,lineNumber:192,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:Y,lineNumber:202,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:Y,lineNumber:213,columnNumber:19},this)},void 0,!1,{fileName:Y,lineNumber:212,columnNumber:17},this)]},void 0,!0,{fileName:Y,lineNumber:162,columnNumber:15},this)},void 0,!1,{fileName:Y,lineNumber:161,columnNumber:13},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:Y,lineNumber:222,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onActivityChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:Y,lineNumber:231,columnNumber:19},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:Y,lineNumber:234,columnNumber:19},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:Y,lineNumber:237,columnNumber:19},this)]},void 0,!0,{fileName:Y,lineNumber:225,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:224,columnNumber:15},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:Y,lineNumber:247,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:242,columnNumber:15},this)]},void 0,!0,{fileName:Y,lineNumber:223,columnNumber:13},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:Y,lineNumber:252,columnNumber:17},this)},void 0,!1,{fileName:Y,lineNumber:251,columnNumber:15},this):2==this.state.model.describe.type?Object(V.jsxDEV)(X,{pageType:"detailsuseditor",setEdittext:e=>this.getSusEditText(e)},void 0,!1,{fileName:Y,lineNumber:272,columnNumber:15},this):3==this.state.model.describe.type?Object(V.jsxDEV)(X,{pageType:"detaileditor",setEdittext:e=>this.getSusEditText(e)},void 0,!1,{fileName:Y,lineNumber:277,columnNumber:15},this):null]},void 0,!0,{fileName:Y,lineNumber:129,columnNumber:11},this)},void 0,!1,{fileName:Y,lineNumber:121,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:117,columnNumber:7},this)}}var ee="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\couponReduceDetail.js";class te extends d.a.Component{constructor(e){super(e),this.changeFontcor=e=>{this.setState({font_color:e}),this.props.setReduceFontcolor(e)},this.changeButtoncor=e=>{this.setState({button_color:e}),this.props.setReduceButtoncolor(e)},this.state={font_color:"#AB582F",button_color:"#FACD6A"}}fontcolor(e){this.setState({font_color:e}),this.props.setReduceFontcolor(e)}buttoncolor(e){this.setState({button_color:e}),this.props.setReduceButtoncolor(e)}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));if(t&&t.coupon&&t.coupon.product_detail){let{font_color:e,button_color:i}=t.coupon.product_detail.reduce;this.setState({font_color:e,button_color:i})}}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_detail.reduce=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u5546\u54c1\u8be6\u60c5\u9875\u7acb\u51cf\u91d1\u8bbe\u7f6e"},void 0,!1,{fileName:ee,lineNumber:56,columnNumber:11},this)},void 0,!1,{fileName:ee,lineNumber:55,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold",marginBottom:"20px"},children:"\u6837\u5f0f"},void 0,!1,{fileName:ee,lineNumber:67,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.font_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.fontcolor("#ffffff")}},void 0,!1,{fileName:ee,lineNumber:70,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.font_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.fontcolor("#04C160")}},void 0,!1,{fileName:ee,lineNumber:77,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.font_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.fontcolor("#AE99D3")}},void 0,!1,{fileName:ee,lineNumber:85,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.font_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.fontcolor("#FACD6A")}},void 0,!1,{fileName:ee,lineNumber:93,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.font_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.fontcolor("#FE7962")}},void 0,!1,{fileName:ee,lineNumber:101,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.font_color,onChange:this.changeFontcor},void 0,!1,{fileName:ee,lineNumber:110,columnNumber:19},this)},void 0,!1,{fileName:ee,lineNumber:109,columnNumber:17},this)]},void 0,!0,{fileName:ee,lineNumber:69,columnNumber:15},this)},void 0,!1,{fileName:ee,lineNumber:68,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.button_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.buttoncolor("#ffffff")}},void 0,!1,{fileName:ee,lineNumber:120,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.buttoncolor("#04C160")}},void 0,!1,{fileName:ee,lineNumber:127,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.buttoncolor("#AE99D3")}},void 0,!1,{fileName:ee,lineNumber:137,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.buttoncolor("#FACD6A")}},void 0,!1,{fileName:ee,lineNumber:147,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.buttoncolor("#FE7962")}},void 0,!1,{fileName:ee,lineNumber:157,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.button_color,onChange:this.changeButtoncor},void 0,!1,{fileName:ee,lineNumber:168,columnNumber:19},this)},void 0,!1,{fileName:ee,lineNumber:167,columnNumber:17},this)]},void 0,!0,{fileName:ee,lineNumber:119,columnNumber:15},this)},void 0,!1,{fileName:ee,lineNumber:118,columnNumber:13},this)]},void 0,!0,{fileName:ee,lineNumber:66,columnNumber:11},this)},void 0,!1,{fileName:ee,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:ee,lineNumber:54,columnNumber:7},this)}}i(434);var ie="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\componentLib\\main.js";let le=[{id:1,icon:"marketing-tupian",name:"picture",desc:"\u56fe\u7247"},{id:2,icon:"marketing-beijingtupian",name:"backgroundImg",desc:"\u80cc\u666f\u56fe"},{id:3,icon:"marketing-sousuolan-",name:"search",desc:"\u641c\u7d22\u680f"},{id:4,icon:"marketing-list",name:"bottomBar",desc:"\u5e95\u90e8\u680f"},{id:5,icon:"marketing-fuwenbenkuang",name:"title",desc:"\u6807\u9898"}];class oe extends d.a.Component{constructor(e){super(e)}propcomponentName(e){this.props.componentName(e.name),e.name&&o.a.emit("componentLib",{attr:e.name,value:1})}render(){return Object(V.jsxDEV)("div",{className:"componentLib",children:[Object(V.jsxDEV)("h4",{onClick:()=>this.propcomponentName({name:""}),children:"\u57fa\u7840\u7ec4\u4ef6"},void 0,!1,{fileName:ie,lineNumber:49,columnNumber:9},this),Object(V.jsxDEV)("ul",{children:le.map((e=>Object(V.jsxDEV)("li",{onClick:()=>this.propcomponentName(e),children:[Object(V.jsxDEV)("i",{className:"marketing "+e.icon},void 0,!1,{fileName:ie,lineNumber:54,columnNumber:17},this),Object(V.jsxDEV)("span",{children:e.desc},void 0,!1,{fileName:ie,lineNumber:55,columnNumber:17},this)]},e.id,!0,{fileName:ie,lineNumber:53,columnNumber:15},this)))},void 0,!1,{fileName:ie,lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:ie,lineNumber:48,columnNumber:7},this)}}var se=i(281),ae="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\backPicture.js";class ce extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={bgImg:"",bgColor:"#f2f3f4"}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));if(t&&t.coupon&&t.coupon.product_list){let{bgColor:e,bgImg:i}=t.coupon.product_list.backgroundImg;this.setState({bgImg:i,bgColor:e})}}bgColorFn(e){this.setState({bgColor:e}),o.a.emit("bgImgConfig",{attr:"bgColor",value:e})}onUploadChange(e){let t="";e.length>0&&"success"==e[0].status&&(t=e[0].src),this.setState({bgImg:t}),o.a.emit("bgImgConfig",{attr:"bgImg",value:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_list.backgroundImg=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("div",{style:{fontSize:"16px"},children:[Object(V.jsxDEV)(se.a,{trigger:"hover",position:"bottom-center",content:"\u8fd4\u56de\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e",children:Object(V.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/Marketing/back.svg",alt:"",onClick:()=>{o.a.emit("goodListPage")},className:"back"},void 0,!1,{fileName:ae,lineNumber:98,columnNumber:15},this)},void 0,!1,{fileName:ae,lineNumber:97,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"setConfig-title",children:"\u2003\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e> \u80cc\u666f\u56fe\u8bbe\u7f6e"},void 0,!1,{fileName:ae,lineNumber:107,columnNumber:13},this)]},void 0,!0,{fileName:ae,lineNumber:96,columnNumber:11},this)},void 0,!1,{fileName:ae,lineNumber:95,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)(y.a,{labelname:"\u8986\u76d6\u80cc\u666f:",labelwidth:"80px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.bgImg?[{src:this.state.bgImg}]:null,onError:this.onUploadError},void 0,!1,{fileName:ae,lineNumber:120,columnNumber:15},this)},void 0,!1,{fileName:ae,lineNumber:119,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==this.state.bgColor?"cicle activecicle":"cicle",onClick:()=>{this.bgColorFn("#fff")}},void 0,!1,{fileName:ae,lineNumber:137,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.bgColor?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.bgColorFn("#04C160")}},void 0,!1,{fileName:ae,lineNumber:144,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.bgColor?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.bgColorFn("#AE99D3")}},void 0,!1,{fileName:ae,lineNumber:152,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.bgColor?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.bgColorFn("#FACD6A")}},void 0,!1,{fileName:ae,lineNumber:160,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.bgColor?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.bgColorFn("#FE7962")}},void 0,!1,{fileName:ae,lineNumber:168,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.bgColor,onChange:e=>{this.bgColorFn(e)}},void 0,!1,{fileName:ae,lineNumber:177,columnNumber:19},this)},void 0,!1,{fileName:ae,lineNumber:176,columnNumber:17},this)]},void 0,!0,{fileName:ae,lineNumber:136,columnNumber:15},this)},void 0,!1,{fileName:ae,lineNumber:135,columnNumber:13},this)]},void 0,!0,{fileName:ae,lineNumber:118,columnNumber:11},this)},void 0,!1,{fileName:ae,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:ae,lineNumber:94,columnNumber:7},this)}}var ne=i(448),me=(i(435),"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\bottomBar.js");let re=[{id:1,category:"\u9996\u9875"},{id:2,category:"\u8ba2\u5355"},{id:3,category:"\u6211\u7684\u5238"}];class de extends d.a.Component{constructor(e){super(e),this.handleChangeStatus=(e,t)=>{let i=this.state.navlist;i[e].iswitch=t?1:0,this.setState({navlist:i}),o.a.emit("bottomBarConfig",{attr:"navlist",value:i})},this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={iswitch:1,comType:1,navlist:[],defaultText:"#A6A5B2",selectText:"#FD6932",background:"http://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/bottom_bg.png"}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));t&&t.coupon&&t.coupon.product_list&&this.setState({...t.coupon.product_list.bottomBar})}changeConfig(e,t){this.setState({[e]:t}),o.a.emit("bottomBarConfig",{attr:e,value:t})}hasItemFn(e){let t=Object(c.a)(this.state.navlist);if(1==e){let e=JSON.parse(sessionStorage.getItem("editorConfig")),{navlist:i}=e.coupon.product_list.bottomBar;t=Object(c.a)(i)}else t.forEach((e=>{e.pic.show="",e.pic.selectShow=""}));this.setState({navlist:t}),o.a.emit("bottomBarConfig",{attr:"navlist",value:t})}upImgChange(e,t,i){let l=this.state.navlist;l[e].pic[t]="",i.length>0&&"success"==i[0].status&&(l[e].pic[t]=i[0].src),this.setState({navlist:l}),o.a.emit("bottomBarConfig",{attr:"navlist",value:l})}onUploadChange(e){let t="";e.length>0&&"success"==e[0].status&&(t=e[0].src),this.setState({background:t}),o.a.emit("bottomBarConfig",{attr:"background",value:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_list.bottomBar=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{className:"bottomBar",children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("div",{style:{fontSize:"16px"},children:[Object(V.jsxDEV)(se.a,{trigger:"hover",position:"bottom-center",content:"\u8fd4\u56de\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e",children:Object(V.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/Marketing/back.svg",alt:"",className:"back",onClick:()=>{o.a.emit("goodListPage")}},void 0,!1,{fileName:me,lineNumber:147,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:146,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"setConfig-title",children:"\u2003\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e> \u5e95\u90e8\u680f\u8bbe\u7f6e"},void 0,!1,{fileName:me,lineNumber:156,columnNumber:13},this)]},void 0,!0,{fileName:me,lineNumber:145,columnNumber:11},this)},void 0,!1,{fileName:me,lineNumber:144,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{className:"activeTip",children:Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u7ec4\u4ef6\u6837\u5f0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("comType",e.target.value)},value:this.state.comType,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u9ed8\u8ba4"},void 0,!1,{fileName:me,lineNumber:176,columnNumber:19},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u81ea\u5b9a\u4e49"},void 0,!1,{fileName:me,lineNumber:179,columnNumber:19},this)]},void 0,!0,{fileName:me,lineNumber:170,columnNumber:17},this)},void 0,!1,{fileName:me,lineNumber:169,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:168,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u4e0a\u4f20\u56fe\u6807:",labelwidth:"100px",children:Object(V.jsxDEV)("p",{className:"tips",children:["\uff08\u5efa\u8bae\u4e0a\u4f20\u5bbd\u9ad8\u4e3a",Object(V.jsxDEV)("span",{children:"100*100"},void 0,!1,{fileName:me,lineNumber:187,columnNumber:25},this),"\u50cf\u7d20\u7684",Object(V.jsxDEV)("span",{children:".png"},void 0,!1,{fileName:me,lineNumber:187,columnNumber:48},this),"\u56fe\u7247\uff09"]},void 0,!0,{fileName:me,lineNumber:186,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:185,columnNumber:13},this),re.map(((e,t)=>Object(V.jsxDEV)("div",{className:"component-item",children:[Object(V.jsxDEV)("div",{className:"v-editItem",children:[Object(V.jsxDEV)("span",{children:e.category},void 0,!1,{fileName:me,lineNumber:195,columnNumber:21},this),3!=e.id?Object(V.jsxDEV)("p",{className:"dflexacsa",children:[Object(V.jsxDEV)("span",{children:"\u663e\u793a"},void 0,!1,{fileName:me,lineNumber:198,columnNumber:25},this)," "]},void 0,!0,{fileName:me,lineNumber:197,columnNumber:23},this):Object(V.jsxDEV)("div",{className:"dflexacsa",children:[Object(V.jsxDEV)("span",{className:"showType",children:this.state.navlist[t].iswitch?"\u663e\u793a":"\u9690\u85cf"},void 0,!1,{fileName:me,lineNumber:202,columnNumber:25},this),Object(V.jsxDEV)(ne.a,{checked:1==this.state.navlist[t].iswitch,onChange:e=>this.handleChangeStatus(t,e)},void 0,!1,{fileName:me,lineNumber:205,columnNumber:25},this)]},void 0,!0,{fileName:me,lineNumber:201,columnNumber:23},this)]},void 0,!0,{fileName:me,lineNumber:194,columnNumber:19},this),Object(V.jsxDEV)(y.a,{labelname:"\u6dfb\u52a0\u56fe\u7247:",labelwidth:"100px",children:Object(V.jsxDEV)("div",{className:"dflexacsa",children:[Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo choice-up-image",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u9ed8\u8ba4\u56fe",onChange:e=>{this.upImgChange(t,"show",e)},onUpload:this.onUpload,defaultFileList:this.state.navlist[t].pic.show?[{src:this.state.navlist[t].pic.show}]:null,onError:this.onUploadError},void 0,!1,{fileName:me,lineNumber:214,columnNumber:23},this),Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo choice-up-image",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u9009\u4e2d\u56fe",onChange:e=>{this.upImgChange(t,"selectShow",e)},onUpload:this.onUpload,defaultFileList:this.state.navlist[t].pic.selectShow?[{src:this.state.navlist[t].pic.selectShow}]:null,onError:this.onUploadError},void 0,!1,{fileName:me,lineNumber:232,columnNumber:23},this)]},this.state.navlist[t].pic.show,!0,{fileName:me,lineNumber:213,columnNumber:21},this)},void 0,!1,{fileName:me,lineNumber:212,columnNumber:19},this),Object(V.jsxDEV)(y.a,{labelname:"\u5bfc\u822a\u6587\u672c:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{let i=this.state.navlist;i[t].text=e,this.setState({navlist:i}),o.a.emit("bottomBarConfig",{attr:"navlist",value:i})},onClearItem:e=>{let i=this.state.navlist;i[t].text="",this.setState({navlist:i}),o.a.emit("bottomBarConfig",{attr:"navlist",value:i})},value:this.state.navlist[t].text,placeholder:e.category,labelWidth:"0px",maxLength:5,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:me,lineNumber:257,columnNumber:21},this)},void 0,!1,{fileName:me,lineNumber:256,columnNumber:19},this)]},t,!0,{fileName:me,lineNumber:193,columnNumber:17},this))),Object(V.jsxDEV)("div",{className:"color-control",children:Object(V.jsxDEV)(y.a,{labelname:"\u9ed8\u8ba4\u6587\u5b57\u989c\u8272:",labelwidth:"140px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dflexajce",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#000000"==this.state.defaultText?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("defaultText","#fff")}},void 0,!1,{fileName:me,lineNumber:291,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.defaultText?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("defaultText","#04C160")}},void 0,!1,{fileName:me,lineNumber:298,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.defaultText?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("defaultText","#AE99D3")}},void 0,!1,{fileName:me,lineNumber:308,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.defaultText?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("defaultText","#FACD6A")}},void 0,!1,{fileName:me,lineNumber:318,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.defaultText?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("defaultText","#FE7962")}},void 0,!1,{fileName:me,lineNumber:328,columnNumber:19},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.defaultText,onChange:e=>{this.changeConfig("defaultText",e)}},void 0,!1,{fileName:me,lineNumber:339,columnNumber:21},this)},void 0,!1,{fileName:me,lineNumber:338,columnNumber:19},this)]},void 0,!0,{fileName:me,lineNumber:290,columnNumber:17},this)},void 0,!1,{fileName:me,lineNumber:289,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:288,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"color-control",children:Object(V.jsxDEV)(y.a,{labelname:"\u9009\u4e2d\u6587\u5b57\u989c\u8272:",labelwidth:"140px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dflexajce",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==this.state.selectText?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("selectText","#fff")}},void 0,!1,{fileName:me,lineNumber:353,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.selectText?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("selectText","#04C160")}},void 0,!1,{fileName:me,lineNumber:360,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.selectText?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("selectText","#AE99D3")}},void 0,!1,{fileName:me,lineNumber:370,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.selectText?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("selectText","#FACD6A")}},void 0,!1,{fileName:me,lineNumber:380,columnNumber:19},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.selectText?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("selectText","#FE7962")}},void 0,!1,{fileName:me,lineNumber:390,columnNumber:19},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.selectText,onChange:e=>{this.changeConfig("selectText",e)}},void 0,!1,{fileName:me,lineNumber:401,columnNumber:21},this)},void 0,!1,{fileName:me,lineNumber:400,columnNumber:19},this)]},void 0,!0,{fileName:me,lineNumber:352,columnNumber:17},this)},void 0,!1,{fileName:me,lineNumber:351,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:350,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u80cc\u666f\u56fe:",labelwidth:"100px",children:Object(V.jsxDEV)("p",{className:"tips",children:["\uff08\u5efa\u8bae\u4e0a\u4f20\u5bbd\u9ad8\u4e3a",Object(V.jsxDEV)("span",{children:"750*100"},void 0,!1,{fileName:me,lineNumber:414,columnNumber:25},this),"\u50cf\u7d20\u7684\u56fe\u7247\uff09"]},void 0,!0,{fileName:me,lineNumber:413,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:412,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"component-item backpic-item",children:Object(V.jsxDEV)(y.a,{labelname:"\u6dfb\u52a0\u56fe\u7247:",labelwidth:"100px",children:Object(V.jsxDEV)("div",{className:"dflexacsa",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo choice-up-image",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.background?[{src:this.state.background}]:null,onError:this.onUploadError},void 0,!1,{fileName:me,lineNumber:420,columnNumber:19},this)},void 0,!1,{fileName:me,lineNumber:419,columnNumber:17},this)},void 0,!1,{fileName:me,lineNumber:418,columnNumber:15},this)},void 0,!1,{fileName:me,lineNumber:417,columnNumber:13},this)]},void 0,!0,{fileName:me,lineNumber:167,columnNumber:11},this)},void 0,!1,{fileName:me,lineNumber:159,columnNumber:9},this)]},void 0,!0,{fileName:me,lineNumber:143,columnNumber:7},this)}}var ue="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\picture.js";class he extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={iswitch:1,img:"",jumpType:"0",jumpUrl:""}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));if(t&&t.coupon&&t.coupon.product_list){let{img:e,jumpType:i,jumpUrl:l}=t.coupon.product_list.picture;this.setState({img:e,jumpType:i,jumpUrl:l})}}onjumpChange(e){this.setState({jumpType:e.target.value})}onUploadChange(e){e.length>0&&"success"==e[0].status?(this.setState({img:e[0].src}),o.a.emit("picture",e[0].src)):(this.setState({img:""}),o.a.emit("picture",""))}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_list.picture=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{className:"assembly",children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("div",{style:{fontSize:"16px"},children:[Object(V.jsxDEV)(se.a,{trigger:"hover",position:"bottom-center",content:"\u8fd4\u56de\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e",children:Object(V.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/Marketing/back.svg",alt:"",className:"back",onClick:()=>{o.a.emit("goodListPage")}},void 0,!1,{fileName:ue,lineNumber:100,columnNumber:15},this)},void 0,!1,{fileName:ue,lineNumber:99,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"setConfig-title",children:"\u2003\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e> \u56fe\u7247\u8bbe\u7f6e"},void 0,!1,{fileName:ue,lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:ue,lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:ue,lineNumber:97,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},className:"pdt15",children:Object(V.jsxDEV)(C.a,{model:this.state,children:[Object(V.jsxDEV)(y.a,{labelname:"\u6dfb\u52a0\u56fe\u7247:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.img?[{src:this.state.img}]:null,onError:this.onUploadError},void 0,!1,{fileName:ue,lineNumber:123,columnNumber:15},this)},void 0,!1,{fileName:ue,lineNumber:122,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"activeTip",children:Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u8df3\u8f6c\u7c7b\u578b:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onjumpChange(e)},value:this.state.jumpType,children:[Object(V.jsxDEV)(N.a,{value:"0",children:"\u4e0d\u8df3\u8f6c"},void 0,!1,{fileName:ue,lineNumber:146,columnNumber:19},this),Object(V.jsxDEV)(N.a,{value:"1",children:"\u94fe\u63a5"},void 0,!1,{fileName:ue,lineNumber:147,columnNumber:19},this)]},void 0,!0,{fileName:ue,lineNumber:140,columnNumber:17},this)},void 0,!1,{fileName:ue,lineNumber:139,columnNumber:15},this)},void 0,!1,{fileName:ue,lineNumber:138,columnNumber:13},this),1==this.state.jumpType?Object(V.jsxDEV)(y.a,{labelname:"\u8df3\u8f6c\u94fe\u63a5:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.setState({jumpUrl:e})},onClearItem:e=>{this.setState({jumpUrl:""})},value:this.state.jumpUrl,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:50,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:ue,lineNumber:153,columnNumber:17},this)},void 0,!1,{fileName:ue,lineNumber:152,columnNumber:15},this):null]},void 0,!0,{fileName:ue,lineNumber:121,columnNumber:11},this)},void 0,!1,{fileName:ue,lineNumber:112,columnNumber:9},this)]},void 0,!0,{fileName:ue,lineNumber:96,columnNumber:7},this)}}var be="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\searchBar.js";class Ne extends d.a.Component{constructor(e){super(e),this.state={iswitch:1,shape:"circular",textAlign:"center",borderColor:"#FFFAF5",bgColor:"#FFD8BB",fontColor:"#ADADAD",placeholder:"\u8bf7\u8f93\u5165\u5546\u54c1\u540d\u79f0"}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));t&&t.coupon&&t.coupon.product_list&&this.setState({...t.coupon.product_list.search})}changeConfig(e,t){this.setState({[e]:t}),o.a.emit("searchBarConfig",{attr:e,value:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_list.search=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){let{shape:e,textAlign:t,borderColor:i,placeholder:l,bgColor:s,fontColor:a}=this.state;return Object(V.jsxDEV)("div",{className:"assembly",children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("div",{style:{fontSize:"16px"},children:[Object(V.jsxDEV)(se.a,{trigger:"hover",position:"bottom-center",content:"\u8fd4\u56de\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e",children:Object(V.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/Marketing/back.svg",className:"back",alt:"",onClick:()=>{o.a.emit("goodListPage")}},void 0,!1,{fileName:be,lineNumber:49,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:48,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"setConfig-title",children:"\u2003\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e> \u641c\u7d22\u680f\u8bbe\u7f6e"},void 0,!1,{fileName:be,lineNumber:58,columnNumber:13},this)]},void 0,!0,{fileName:be,lineNumber:47,columnNumber:11},this)},void 0,!1,{fileName:be,lineNumber:46,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{ref:"form1",children:[Object(V.jsxDEV)("div",{className:"activeTip",children:Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6846\u4f53\u6837\u5f0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("shape",e.target.value)},value:e,children:[Object(V.jsxDEV)(N.a,{value:"circular",children:"\u5706\u5f62"},void 0,!1,{fileName:be,lineNumber:78,columnNumber:19},this),Object(V.jsxDEV)(N.a,{value:"square",children:"\u65b9\u5f62"},void 0,!1,{fileName:be,lineNumber:79,columnNumber:19},this)]},void 0,!0,{fileName:be,lineNumber:72,columnNumber:17},this)},void 0,!1,{fileName:be,lineNumber:71,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:70,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6587\u5b57\u683c\u5f0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("textAlign",e.target.value)},value:t,children:[Object(V.jsxDEV)(N.a,{value:"left",children:"\u5c45\u5de6"},void 0,!1,{fileName:be,lineNumber:90,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"center",children:"\u5c45\u4e2d"},void 0,!1,{fileName:be,lineNumber:91,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"right",children:"\u5c45\u53f3"},void 0,!1,{fileName:be,lineNumber:92,columnNumber:17},this)]},void 0,!0,{fileName:be,lineNumber:84,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:83,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6846\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==i?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("borderColor","#ffffff")}},void 0,!1,{fileName:be,lineNumber:97,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==i?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("borderColor","#04C160")}},void 0,!1,{fileName:be,lineNumber:104,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==i?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("borderColor","#AE99D3")}},void 0,!1,{fileName:be,lineNumber:110,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==i?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("borderColor","#FACD6A")}},void 0,!1,{fileName:be,lineNumber:116,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==i?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("borderColor","#FE7962")}},void 0,!1,{fileName:be,lineNumber:122,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:i,onChange:e=>{this.changeConfig("borderColor",e)}},void 0,!1,{fileName:be,lineNumber:129,columnNumber:19},this)},void 0,!1,{fileName:be,lineNumber:128,columnNumber:17},this)]},void 0,!0,{fileName:be,lineNumber:96,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:95,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==s?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("bgColor","#fff")}},void 0,!1,{fileName:be,lineNumber:141,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==s?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("bgColor","#04C160")}},void 0,!1,{fileName:be,lineNumber:148,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==s?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("bgColor","#AE99D3")}},void 0,!1,{fileName:be,lineNumber:154,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==s?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("bgColor","#FACD6A")}},void 0,!1,{fileName:be,lineNumber:160,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==s?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("bgColor","#FE7962")}},void 0,!1,{fileName:be,lineNumber:166,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{showAlpha:!0,className:"setbgColor",color:s,onChange:e=>{this.changeConfig("bgColor",e)}},void 0,!1,{fileName:be,lineNumber:173,columnNumber:19},this)},void 0,!1,{fileName:be,lineNumber:172,columnNumber:17},this)]},void 0,!0,{fileName:be,lineNumber:140,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:139,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6587\u5b57\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==a?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("fontColor","#fff")}},void 0,!1,{fileName:be,lineNumber:186,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==a?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("fontColor","#04C160")}},void 0,!1,{fileName:be,lineNumber:193,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==a?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("fontColor","#AE99D3")}},void 0,!1,{fileName:be,lineNumber:199,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==a?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("fontColor","#FACD6A")}},void 0,!1,{fileName:be,lineNumber:205,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==a?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("fontColor","#FE7962")}},void 0,!1,{fileName:be,lineNumber:211,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:a,onChange:e=>{this.changeConfig("fontColor",e)}},void 0,!1,{fileName:be,lineNumber:218,columnNumber:19},this)},void 0,!1,{fileName:be,lineNumber:217,columnNumber:17},this)]},void 0,!0,{fileName:be,lineNumber:185,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:184,columnNumber:13},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u63d0\u793a\u6587\u5b57:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.changeConfig("placeholder",e)},onClearItem:e=>{this.changeConfig("placeholder","")},value:l,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:9,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:be,lineNumber:229,columnNumber:15},this)},void 0,!1,{fileName:be,lineNumber:228,columnNumber:13},this)]},void 0,!0,{fileName:be,lineNumber:69,columnNumber:11},this)},void 0,!1,{fileName:be,lineNumber:61,columnNumber:9},this)]},void 0,!0,{fileName:be,lineNumber:45,columnNumber:7},this)}}var pe="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\title.js";class fe extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={switch:1,text:"\u5546\u54c1\u5217\u8868",textAlign:"left",fontColor:"#333",fontSize:1,comstyle:1,pic:""}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig"));t&&t.coupon&&t.coupon.product_list&&this.setState({...t.coupon.product_list.title})}changeConfig(e,t){this.setState({[e]:t}),o.a.emit("titleBarConfig",{attr:e,value:t})}onUploadChange(e){let t="";e.length>0&&"success"==e[0].status&&(t=e[0].src),this.setState({pic:t}),o.a.emit("titleBarConfig",{attr:"pic",value:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.product_list.title=Object(c.a)(this.state),e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{className:"assembly",children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("div",{style:{fontSize:"16px"},children:[Object(V.jsxDEV)(se.a,{trigger:"hover",position:"bottom-center",content:"\u8fd4\u56de\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e",children:Object(V.jsxDEV)("img",{className:"back",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/Marketing/back.svg",alt:"",onClick:()=>{o.a.emit("goodListPage")}},void 0,!1,{fileName:pe,lineNumber:99,columnNumber:15},this)},void 0,!1,{fileName:pe,lineNumber:98,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"setConfig-title",children:"\u2003\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e> \u6807\u9898\u8bbe\u7f6e"},void 0,!1,{fileName:pe,lineNumber:108,columnNumber:13},this)]},void 0,!0,{fileName:pe,lineNumber:97,columnNumber:11},this)},void 0,!1,{fileName:pe,lineNumber:96,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u7ec4\u4ef6\u6837\u5f0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("comstyle",e.target.value)},value:this.state.comstyle,children:[Object(V.jsxDEV)(N.a,{value:1,children:"\u6587\u5b57"},void 0,!1,{fileName:pe,lineNumber:127,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:2,children:"\u56fe\u7247"},void 0,!1,{fileName:pe,lineNumber:128,columnNumber:17},this)]},void 0,!0,{fileName:pe,lineNumber:121,columnNumber:15},this)},void 0,!1,{fileName:pe,lineNumber:120,columnNumber:13},this),1==this.state.comstyle?Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)(y.a,{labelname:"\u6807\u9898\u6587\u5b57:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.changeConfig("text",e)},onClearItem:e=>{this.changeConfig("text","")},value:this.state.text,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:12,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:pe,lineNumber:134,columnNumber:19},this)},void 0,!1,{fileName:pe,lineNumber:133,columnNumber:17},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6587\u5b57\u683c\u5f0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("textAlign",e.target.value)},value:this.state.textAlign,children:[Object(V.jsxDEV)(N.a,{value:"left",children:"\u5c45\u5de6"},void 0,!1,{fileName:pe,lineNumber:157,columnNumber:21},this),Object(V.jsxDEV)(N.a,{value:"center",children:"\u5c45\u4e2d"},void 0,!1,{fileName:pe,lineNumber:158,columnNumber:21},this),Object(V.jsxDEV)(N.a,{value:"right",children:"\u5c45\u53f3"},void 0,!1,{fileName:pe,lineNumber:159,columnNumber:21},this)]},void 0,!0,{fileName:pe,lineNumber:151,columnNumber:19},this)},void 0,!1,{fileName:pe,lineNumber:150,columnNumber:17},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#fff"==this.state.fontColor?"cicle activecicle":"cicle",onClick:()=>{this.changeConfig("fontColor","#fff")}},void 0,!1,{fileName:pe,lineNumber:164,columnNumber:21},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.fontColor?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.changeConfig("fontColor","#04C160")}},void 0,!1,{fileName:pe,lineNumber:171,columnNumber:21},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.fontColor?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.changeConfig("fontColor","#AE99D3")}},void 0,!1,{fileName:pe,lineNumber:181,columnNumber:21},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.fontColor?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.changeConfig("fontColor","#FACD6A")}},void 0,!1,{fileName:pe,lineNumber:191,columnNumber:21},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.fontColor?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.changeConfig("fontColor","#FE7962")}},void 0,!1,{fileName:pe,lineNumber:201,columnNumber:21},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.fontColor,onChange:e=>{this.changeConfig("fontColor",e)}},void 0,!1,{fileName:pe,lineNumber:212,columnNumber:23},this)},void 0,!1,{fileName:pe,lineNumber:211,columnNumber:21},this)]},void 0,!0,{fileName:pe,lineNumber:163,columnNumber:19},this)},void 0,!1,{fileName:pe,lineNumber:162,columnNumber:17},this),Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6587\u5b57\u5927\u5c0f:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.changeConfig("fontSize",e.target.value)},value:this.state.fontSize,children:[Object(V.jsxDEV)(N.a,{value:"mini",children:"A-"},void 0,!1,{fileName:pe,lineNumber:229,columnNumber:21},this),Object(V.jsxDEV)(N.a,{value:"standard",children:"A"},void 0,!1,{fileName:pe,lineNumber:230,columnNumber:21},this),Object(V.jsxDEV)(N.a,{value:"big",children:"A+"},void 0,!1,{fileName:pe,lineNumber:231,columnNumber:21},this)]},void 0,!0,{fileName:pe,lineNumber:223,columnNumber:19},this)},void 0,!1,{fileName:pe,lineNumber:222,columnNumber:17},this)]},void 0,!0,{fileName:pe,lineNumber:132,columnNumber:15},this):Object(V.jsxDEV)(y.a,{labelname:"\u6dfb\u52a0\u56fe\u7247:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.pic?[{src:this.state.pic}]:null,onError:this.onUploadError},void 0,!1,{fileName:pe,lineNumber:237,columnNumber:17},this)},void 0,!1,{fileName:pe,lineNumber:236,columnNumber:15},this)]},void 0,!0,{fileName:pe,lineNumber:119,columnNumber:11},this)},void 0,!1,{fileName:pe,lineNumber:111,columnNumber:9},this)]},void 0,!0,{fileName:pe,lineNumber:95,columnNumber:7},this)}}var ge=i(502),je="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\goodsPage\\config\\main.js";class ve extends d.a.Component{constructor(e){super(e),this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{top_image:"",list:"2",font_color:"#f1f2f3",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""}}}}componentWillMount(e){o.a.emit("goodListPage");let t=JSON.parse(sessionStorage.getItem("editorConfig"));this.setState({model:t.coupon.product_list})}configChange(e,t){let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.setGoodConfig({attr:e,value:t})}explainChange(e,t){let i=this.state.model;i.describe[e]=t.target.value,this.setState({model:i}),this.props.setexplainConfig({attr:e,value:t.target.value})}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",this.setState({model:t}),this.props.setexplainConfig({attr:"type",value:""}))}onUploadChange(e){let t=this.state.model;t.top_image="",this.props.setGoodConfig({attr:"top_image",value:""}),e.length>0&&"success"==e[0].status&&(t.top_image=e[0].src,this.props.setGoodConfig({attr:"top_image",value:e[0].src})),this.setState({model:t})}getsusEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setexplainConfig({attr:"content",value:e})}onUploadChange2(e){let t=this.state.model;t.describe.bg_image="",this.props.setexplainConfig({attr:"bg_image",value:""}),e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src,this.props.setexplainConfig({attr:"bg_image",value:e[0].src})),this.setState({model:t})}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),{top_image:t,list:i,font_color:l,button_color:o,describe:s,bannerUrl:a}=this.state.model,c=e.coupon;c.product_list=Object(ge.a)(c.product_list,{top_image:t,list:i,font_color:l,button_color:o,describe:s,bannerUrl:a}),e.coupon=c,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{children:this.props.componentName?(()=>{switch(this.props.componentName){case"picture":return Object(V.jsxDEV)(he,{},void 0,!1,{fileName:je,lineNumber:382,columnNumber:24},this);case"backgroundImg":return Object(V.jsxDEV)(ce,{},void 0,!1,{fileName:je,lineNumber:385,columnNumber:24},this);case"search":return Object(V.jsxDEV)(Ne,{},void 0,!1,{fileName:je,lineNumber:388,columnNumber:24},this);case"bottomBar":return Object(V.jsxDEV)(de,{},void 0,!1,{fileName:je,lineNumber:391,columnNumber:24},this);case"title":return Object(V.jsxDEV)(fe,{},void 0,!1,{fileName:je,lineNumber:394,columnNumber:24},this)}})():Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:je,lineNumber:159,columnNumber:15},this)},void 0,!1,{fileName:je,lineNumber:158,columnNumber:13},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto",overflow:"auto",maxHeight:"100%"},children:Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:je,lineNumber:170,columnNumber:17},this),Object(V.jsxDEV)(y.a,{labelname:"banner\u5916\u94fe:",required:!1,labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{this.configChange("bannerUrl",e)},onClearItem:()=>{this.configChange("bannerUrl","")},value:this.state.model.bannerUrl,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",height:"36px",width:"300px",alignment:"left",countShow:!1},void 0,!1,{fileName:je,lineNumber:172,columnNumber:19},this)},void 0,!1,{fileName:je,lineNumber:171,columnNumber:17},this),Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:je,lineNumber:188,columnNumber:17},this),Object(V.jsxDEV)("div",{style:{marginBottom:"24px"},children:Object(V.jsxDEV)(y.a,{labelname:"",labelwidth:"0px",required:!1,children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.configChange("list",e.target.value)},value:this.state.model.list,children:[Object(V.jsxDEV)(N.a,{value:"2",children:"\u8f6e\u64ad"},void 0,!1,{fileName:je,lineNumber:197,columnNumber:23},this),Object(V.jsxDEV)(N.a,{value:"1",children:"\u5217\u8868"},void 0,!1,{fileName:je,lineNumber:198,columnNumber:23},this),Object(V.jsxDEV)(N.a,{value:"3",children:"\u77e9\u9635"},void 0,!1,{fileName:je,lineNumber:199,columnNumber:23},this)]},void 0,!0,{fileName:je,lineNumber:191,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:190,columnNumber:19},this)},void 0,!1,{fileName:je,lineNumber:189,columnNumber:17},this),2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:je,lineNumber:206,columnNumber:23},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.font_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("font_color","#000000")}},void 0,!1,{fileName:je,lineNumber:215,columnNumber:23},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:je,lineNumber:226,columnNumber:25},this)},void 0,!1,{fileName:je,lineNumber:225,columnNumber:23},this)]},void 0,!0,{fileName:je,lineNumber:205,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:204,columnNumber:19},this):null,2==this.state.model.list?Object(V.jsxDEV)(y.a,{labelname:"\u6309\u94ae\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{className:"#ffffff"==this.state.model.button_color?"cicle activecicle":"cicle",style:{border:"1px solid #f1f2f3"},onClick:()=>{this.controlColor("button_color","#ffffff")}},void 0,!1,{fileName:je,lineNumber:238,columnNumber:23},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.button_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("button_color","#04C160")}},void 0,!1,{fileName:je,lineNumber:247,columnNumber:23},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.button_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("button_color","#AE99D3")}},void 0,!1,{fileName:je,lineNumber:257,columnNumber:23},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.button_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("button_color","#FACD6A")}},void 0,!1,{fileName:je,lineNumber:267,columnNumber:23},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.button_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("button_color","#FE7962")}},void 0,!1,{fileName:je,lineNumber:277,columnNumber:23},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.button_color,onChange:e=>this.controlColor("button_color",e)},void 0,!1,{fileName:je,lineNumber:288,columnNumber:25},this)},void 0,!1,{fileName:je,lineNumber:287,columnNumber:23},this)]},void 0,!0,{fileName:je,lineNumber:237,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:236,columnNumber:19},this):null,Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:je,lineNumber:297,columnNumber:17},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e)},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:je,lineNumber:299,columnNumber:19},this)},void 0,!1,{fileName:je,lineNumber:298,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"activeTip",children:[Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.explainChange("type",e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(1),value:"1",children:"\u56fe\u7247"},void 0,!1,{fileName:je,lineNumber:324,columnNumber:23},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(2),value:"2",children:"\u60ac\u6d6e"},void 0,!1,{fileName:je,lineNumber:327,columnNumber:23},this),Object(V.jsxDEV)(N.a,{onClick:()=>this.hasItemFn(3),value:"3",children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:je,lineNumber:330,columnNumber:23},this)]},void 0,!0,{fileName:je,lineNumber:318,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:317,columnNumber:19},this),Object(V.jsxDEV)(v.a,{trigger:"hover",position:"top-left",title:"\u975e\u5fc5\u9009\u9879\uff0c\u5706\u5f62\u7ec4\u4ef6\u60ac\u6d6e\uff0c\u9002\u7528\u4e8e\u957f\u6587\u672c",children:Object(V.jsxDEV)(x.a,{type:"help-circle",className:"imgTip"},void 0,!1,{fileName:je,lineNumber:340,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:335,columnNumber:19},this)]},void 0,!0,{fileName:je,lineNumber:316,columnNumber:17},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:je,lineNumber:345,columnNumber:21},this)},void 0,!1,{fileName:je,lineNumber:344,columnNumber:19},this):2==this.state.model.describe.type?Object(V.jsxDEV)(X,{pageType:"goodsuseditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:je,lineNumber:365,columnNumber:19},this):3==this.state.model.describe.type?Object(V.jsxDEV)(X,{pageType:"goodeditor",setEdittext:e=>this.getsusEditext(e)},void 0,!1,{fileName:je,lineNumber:370,columnNumber:19},this):null]},void 0,!0,{fileName:je,lineNumber:169,columnNumber:15},this)},void 0,!1,{fileName:je,lineNumber:161,columnNumber:13},this)]},void 0,!0,{fileName:je,lineNumber:157,columnNumber:11},this)},void 0,!1,{fileName:je,lineNumber:155,columnNumber:7},this)}}var xe="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\couponCard\\landPage.js";class Ee extends d.a.Component{constructor(e){super(e),this.controlColor=(e,t)=>{let i=this.state.model;i[e]=t,this.setState({model:i}),this.props.landConfig({attr:e,value:t})},this.onUploadError=(e,t)=>{"overMaxAmount"===e?u.a.error(`\u6700\u591a\u53ef\u4e0a\u4f20 ${t.maxAmount} \u5f20\u56fe\u7247`):"overMaxSize"===e&&u.a.error(`\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 ${t.formattedMaxSize}`)},this.onUpload=(e,t)=>new Promise(((i,o)=>{let s="",a=new FormData;a.append("file",e),a.append("path","common_image"),Object(l.Tc)(a).then((e=>{Object(l.Kb)(e,((e,t)=>{s=e.path}),(e=>{o()}))}));let c=0;const n=()=>{s?i(s):c<100?(c+=2,t(c),setTimeout(n,500)):o()};setTimeout(n,500)})),this.state={model:{title:"\u843d\u5730\u9875\u6807\u9898",top_image:"",middle_image:"",white_image:"",describe:{type:"",content:"",bg_image:""},bg_color:"#EEEEEE",font_color:"#000000"},mouldType:""}}componentWillMount(e){let t=JSON.parse(sessionStorage.getItem("editorConfig")),i=sessionStorage.getItem("mouldType"),l=t.coupon.land;this.setState({model:l,mouldType:i})}onactivityChange(e){let t=this.state.model;t.describe.type=e.target.value,t.describe.bg_image&&(t.describe.bg_image=""),this.setState({model:t}),this.props.setbanner(this.state.model)}hasItemFn(e){let t=this.state.model;e==t.describe.type&&(t.describe.type="",t.describe.type=0,this.setState({model:t}),this.props.setbanner(this.state.model))}onUploadChange(e,t){let i=this.state.model;i[t]="",e.length>0&&"success"==e[0].status&&(i[t]=e[0].src),this.setState({model:i}),this.props.setbanner(i)}onUploadChange2(e){let t=this.state.model;t.describe.bg_image="",e.length>0&&"success"==e[0].status&&(t.describe.bg_image=e[0].src),this.setState({model:t}),this.props.setbanner(t)}getEditext(e){let t=this.state.model;t.describe.content=e,this.setState({model:t}),this.props.setbanner(t)}componentWillUnmount(){let e=JSON.parse(sessionStorage.getItem("editorConfig")),t=e.coupon;t.land=this.state.model,e.coupon=t,sessionStorage.setItem("editorConfig",JSON.stringify(e))}render(){return Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"control page-title-control",children:Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u843d\u5730\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:xe,lineNumber:148,columnNumber:11},this)},void 0,!1,{fileName:xe,lineNumber:147,columnNumber:9},this),Object(V.jsxDEV)("div",{style:{width:"92%",margin:"0 auto 60px",overflow:"auto",maxHeight:"100%"},children:[0!=this.state.mouldType?Object(V.jsxDEV)("div",{style:{fontWeight:"bold"},children:"\u57fa\u7840\u8bbe\u7f6e"},void 0,!1,{fileName:xe,lineNumber:159,columnNumber:13},this):null,Object(V.jsxDEV)(C.a,{model:this.state.model,ref:"form1",children:[0!=this.state.mouldType?Object(V.jsxDEV)(y.a,{labelname:"\u843d\u5730\u9875\u6807\u9898:",labelwidth:"100px",children:Object(V.jsxDEV)(A.a,{onChange:e=>{let t=this.state.model;t.title=e,this.setState({model:t}),this.props.landConfig({attr:"title",value:e})},onClearItem:e=>{let t=this.state.model;t.title="",this.setState({model:t})},value:this.state.model.title,placeholder:"\u8bf7\u8f93\u5165",labelWidth:"0px",maxLength:12,height:"36px",width:"300px",alignment:"left"},void 0,!1,{fileName:xe,lineNumber:164,columnNumber:17},this)},void 0,!1,{fileName:xe,lineNumber:163,columnNumber:15},this):null,Object(V.jsxDEV)("div",{style:{marginBottom:"15px",fontWeight:"bold"},children:"\u6837\u5f0f"},void 0,!1,{fileName:xe,lineNumber:187,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u80cc\u666f\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItembg dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.bg_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("bg_color","#ffffff")}},void 0,!1,{fileName:xe,lineNumber:190,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#EEEEEE"==this.state.model.bg_color?"activecicle cicle cicle1":"cicle cicle1",onClick:()=>{this.controlColor("bg_color","#EEEEEE")}},void 0,!1,{fileName:xe,lineNumber:200,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#000000"==this.state.model.bg_color?"activecicle cicle cicle2":"cicle cicle2",onClick:()=>{this.controlColor("bg_color","#000000")}},void 0,!1,{fileName:xe,lineNumber:209,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.bg_color,onChange:e=>this.controlColor("bg_color",e)},void 0,!1,{fileName:xe,lineNumber:219,columnNumber:19},this)},void 0,!1,{fileName:xe,lineNumber:218,columnNumber:17},this)]},void 0,!0,{fileName:xe,lineNumber:189,columnNumber:15},this)},void 0,!1,{fileName:xe,lineNumber:188,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u5b57\u4f53\u989c\u8272:",labelwidth:"80px",children:Object(V.jsxDEV)("div",{className:"colorItemfont dfleac",children:[Object(V.jsxDEV)("span",{style:{border:"1px solid #f1f2f3"},className:"#ffffff"==this.state.model.font_color?"cicle activecicle":"cicle",onClick:()=>{this.controlColor("font_color","#ffffff")}},void 0,!1,{fileName:xe,lineNumber:229,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#04C160"==this.state.model.font_color?"activecicle cicle cicle6":"cicle cicle6",onClick:()=>{this.controlColor("font_color","#04C160")}},void 0,!1,{fileName:xe,lineNumber:239,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#AE99D3"==this.state.model.font_color?"activecicle cicle cicle3":"cicle cicle3",onClick:()=>{this.controlColor("font_color","#AE99D3")}},void 0,!1,{fileName:xe,lineNumber:248,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FACD6A"==this.state.model.font_color?"activecicle cicle cicle4":"cicle cicle4",onClick:()=>{this.controlColor("font_color","#FACD6A")}},void 0,!1,{fileName:xe,lineNumber:257,columnNumber:17},this),Object(V.jsxDEV)("span",{className:"#FE7962"==this.state.model.font_color?"activecicle cicle cicle5":"cicle cicle5",onClick:()=>{this.controlColor("font_color","#FE7962")}},void 0,!1,{fileName:xe,lineNumber:266,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"selfset",children:Object(V.jsxDEV)(j.a,{className:"setbgColor",color:this.state.model.font_color,onChange:e=>this.controlColor("font_color",e)},void 0,!1,{fileName:xe,lineNumber:276,columnNumber:19},this)},void 0,!1,{fileName:xe,lineNumber:275,columnNumber:17},this)]},void 0,!0,{fileName:xe,lineNumber:228,columnNumber:15},this)},void 0,!1,{fileName:xe,lineNumber:227,columnNumber:13},this),Object(V.jsxDEV)("div",{style:{marginTop:"20px",fontWeight:"bold"},children:"\u57fa\u7840\u56fe\u5c42"},void 0,!1,{fileName:xe,lineNumber:284,columnNumber:13},this),Object(V.jsxDEV)(y.a,{labelname:"\u9876\u90e8banner:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e,"top_image")},onUpload:this.onUpload,defaultFileList:this.state.model.top_image?[{src:this.state.model.top_image}]:null,onError:this.onUploadError},void 0,!1,{fileName:xe,lineNumber:288,columnNumber:15},this)},void 0,!1,{fileName:xe,lineNumber:287,columnNumber:13},this),4==this.props.couponType?Object(V.jsxDEV)(y.a,{labelname:"\u8f93\u5165\u6846:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e,"middle_image")},defaultFileList:this.state.model.middle_image?[{src:this.state.model.middle_image}]:null,onUpload:this.onUpload,onError:this.onUploadError},void 0,!1,{fileName:xe,lineNumber:309,columnNumber:17},this)},1,!1,{fileName:xe,lineNumber:308,columnNumber:15},this):Object(V.jsxDEV)(y.a,{labelname:"\u8f93\u5165\u6846:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange(e,"white_image")},defaultFileList:this.state.model.white_image?[{src:this.state.model.white_image}]:null,onUpload:this.onUpload,onError:this.onUploadError},void 0,!1,{fileName:xe,lineNumber:330,columnNumber:17},this)},2,!1,{fileName:xe,lineNumber:329,columnNumber:15},this),Object(V.jsxDEV)(y.a,{myClassName:"activeSet",required:!1,labelname:"\u6d3b\u52a8\u8bf4\u660e:",labelwidth:"100px",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onactivityChange(e)},value:this.state.model.describe.type,children:[Object(V.jsxDEV)(N.a,{value:"1",onClick:()=>this.hasItemFn(1),children:"\u56fe\u7247"},void 0,!1,{fileName:xe,lineNumber:360,columnNumber:17},this),Object(V.jsxDEV)(N.a,{value:"2",onClick:()=>this.hasItemFn(2),children:"\u5bcc\u6587\u672c"},void 0,!1,{fileName:xe,lineNumber:363,columnNumber:17},this)]},void 0,!0,{fileName:xe,lineNumber:355,columnNumber:15},this)},void 0,!1,{fileName:xe,lineNumber:350,columnNumber:13},this),1==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:" ",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:xe,lineNumber:370,columnNumber:17},this)},void 0,!1,{fileName:xe,lineNumber:369,columnNumber:15},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(y.a,{required:!1,labelname:"\u80cc\u666f\u56fe\u6848:",labelwidth:"100px",children:Object(V.jsxDEV)(E.a,{className:"zent-image-upload-demo",maxSize:5242880,maxAmount:1,multiple:!0,sortable:!0,tips:"\u5355\u5f20\u56fe\u7247\u4e0d\u8d85\u8fc7 5M",onChange:e=>{this.onUploadChange2(e)},onUpload:this.onUpload,onError:this.onUploadError,defaultFileList:this.state.model.describe.bg_image?[{src:this.state.model.describe.bg_image}]:null},void 0,!1,{fileName:xe,lineNumber:395,columnNumber:17},this)},void 0,!1,{fileName:xe,lineNumber:391,columnNumber:15},this):null,2==this.state.model.describe.type?Object(V.jsxDEV)(X,{pageType:"landeditor",setEdittext:e=>this.getEditext(e)},void 0,!1,{fileName:xe,lineNumber:416,columnNumber:15},this):null]},void 0,!0,{fileName:xe,lineNumber:161,columnNumber:11},this)]},void 0,!0,{fileName:xe,lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:xe,lineNumber:146,columnNumber:7},this)}}var Ce="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\exchangepage\\edittemplate\\main.js";let De={1:"whiteList",3:"exchange",4:"coupon",8:"coupon"},Oe={title:"\u843d\u5730\u9875\u6807\u9898",top_image:"",middle_image:"",white_image:"",describe:{type:"",content:"",bg_image:""},bg_color:"#EEEEEE",sort:1,type_id:{key:2,text:"\u901a\u7528"},font_color:"#000000",thumb:""},Ve={top_image:"",list:"2",font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""}},_e={font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""},reduce:{font_color:"#AB582F",button_color:"#FACD6A"}},ye={top_image:"",list:"2",font_color:"#ffffff",button_color:"#FACD6A",describe:{type:"",content:"",bg_image:""},picture:{iswitch:0,img:"",jumpType:"0",jumpUrl:""},backgroundImg:{iswitch:0,bgImg:"",bgColor:"#f2f3f4"},search:{iswitch:0,shape:"circular",textAlign:"center",borderColor:"#FFFAF5",bgColor:"#FFD8BB",fontColor:"#ADADAD",placeholder:"\u8bf7\u8f93\u5165\u5546\u54c1\u540d\u79f0"},title:{iswitch:0,text:"\u5546\u54c1\u5217\u8868",textAlign:"left",fontColor:"#333",fontSize:1,comstyle:1,pic:""},bottomBar:{iswitch:0,navlist:[{id:1,iswitch:1,name:"index",pic:{show:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/home.png",selectShow:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/home_check.png"},text:"\u9996\u9875"},{id:2,iswitch:1,name:"order",pic:{show:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/order.png",selectShow:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/order_check.png"},text:"\u8ba2\u5355"},{id:3,iswitch:1,name:"coupon",pic:{show:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/coupon.png",selectShow:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/coupon_check.png"},text:"\u6211\u7684\u5238"}],defaultText:"#A6A5B2",selectText:"#FD6932",background:"http://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/bottom_bg.png"}};class Se extends d.a.Component{constructor(e){super(e),this.state={mouldType:1,systemTitle:"",activeshow:!0,loading_visible:!1,componentOfconfig:"",detailactiveshow:!0,pagedisable:!1,showType:3,model:Oe,product_list:Ve,product_detail:_e,preview_visible:!1,previewData:null,pageInfo:null,activeNavStatus:1,activeHeight:667,pageStep:1,showPage:1,setStyle:{width:"375px",height:"667px",transform:"scale(0.75)"},detailType:1},this.canvasImgDom=this.canvasImgDom.bind(this),this.canvasImgDomScr=this.canvasImgDomScr.bind(this)}componentDidMount(){o.a.addListener("componentLib",(e=>{let t=Object(c.a)(JSON.parse(sessionStorage.getItem("editorConfig"))),i=this.state.product_list;i[e.attr].iswitch=e.value,this.setState({product_list:i}),0==e.value&&this.setState({componentName:""}),t.coupon.product_list=i,sessionStorage.setItem("editorConfig",JSON.stringify(t))})),o.a.addListener("goodListPage",(e=>{this.setState({componentOfconfig:""})})),o.a.addListener("picture",(e=>{let t=this.state.product_list;t.picture.img=e,this.setState({product_list:t})})),o.a.addListener("bgImgConfig",(e=>{let t=this.state.product_list;t.backgroundImg[e.attr]=e.value,this.setState({product_list:t})})),o.a.addListener("searchBarConfig",(e=>{let t=this.state.product_list;t.search[e.attr]=e.value,this.setState({product_list:t})})),o.a.addListener("titleBarConfig",(e=>{let t=this.state.product_list;t.title[e.attr]=e.value,this.setState({product_list:t})})),o.a.addListener("bottomBarConfig",(e=>{let t=this.state.product_list;t.bottomBar[e.attr]=e.value,this.setState({product_list:t})})),setTimeout((()=>{let e=document.getElementById("center-img"),t=document.getElementById("center");e.onload=function(){t.style.height=e.clientHeight-2+"px"}}),500)}onpageChange(e){this.setState({showPage:e.target.value,pageStep:e.target.value})}ondetailTypeChange(e){this.setState({detailType:e.target.value})}componentWillMount(e){let t=window.location.href,i=t.lastIndexOf("="),l=null;i>-1&&(l=t.substr(i+1,t.length)),sessionStorage.removeItem("editorConfig");let o=JSON.parse(sessionStorage.getItem("pageInfo")),s=sessionStorage.getItem("mouldType");this.setState({mouldType:s});let a=sessionStorage.getItem("pageChange");if(o){let e=o.page;this.setState({showType:Number(o.page),systemTitle:o.title});let t=Object(n.a)(o);l&&(this.setState({showType:Number(l)}),e=l);let i=t.exchange;i||(i={},i.land=Oe,i.product_list=Ve,i.product_detail=_e),i.land.title=t.title,i.land.sort=t.sort;let c=t.access_conf;c||(c={},c.land=Oe,c.product_list=Ve,c.product_detail=_e),c.land.title=t.title,c.land.sort=t.sort;let m=t.coupon;m||(m={},m.land=Oe,m.product_list=ye,m.product_detail=_e),m.land.title=t.title,m.land.sort=t.sort,t.exchangeList=i,t.whiteList=c,t.coupon=m,this.setState({model:t[De[e]].land,product_list:t[De[e]].product_list,product_detail:t[De[e]].product_detail}),sessionStorage.setItem("editorConfig",JSON.stringify(t)),0!=s&&1==a&&this.setState({pagedisable:!0})}else{let e={},t={},i={},l={},o={land:Oe,product_list:Ve,product_detail:_e},s={land:Oe,product_list:ye,product_detail:_e};t=Object(c.a)(o),i=Object(c.a)(o),l=Object(c.a)(s),e.exchangeList=i,e.whiteList=t,e.coupon=l,sessionStorage.setItem("editorConfig",JSON.stringify(e))}}async onSave(){let e=Object(n.a)(this.state),t=this,i=sessionStorage.getItem("mouldType"),o=JSON.parse(sessionStorage.getItem("pageInfo")),s=Object(c.a)(JSON.parse(sessionStorage.getItem("editorConfig"))),a=Object(m.a)(s.whiteList,["land[sort]","land[title]","land[type_id]","land[thumb]"]),r=Object(m.a)(s.coupon,["land[sort]","land[title]",,"land[thumb]"]);if(!this.state.model.top_image)return u.a.clear(),u.a.error("\u8bf7\u4e0a\u4f20\u843d\u5730\u9875\u9876\u90e8banner"),void this.setState({activeNavStatus:1});let d=!0;if(8==this.state.showType&&(this.state.model.white_image||(d=!1)),8!=this.state.showType&&(this.state.model.middle_image||(d=!1)),!d)return u.a.clear(),u.a.error("\u8bf7\u4e0a\u4f20\u843d\u5730\u9875\u8f93\u5165\u6846"),void this.setState({activeNavStatus:1});if(!this.state.product_list.list)return u.a.clear(),u.a.error("\u8bf7\u9009\u62e9\u5546\u54c1\u5217\u8868\u9875\u6837\u5f0f"),void this.setState({activeNavStatus:2});if(!this.state.product_list.top_image)return u.a.clear(),u.a.error("\u8bf7\u4e0a\u4f20\u5546\u54c1\u5217\u8868\u9875\u9876\u90e8banner"),void this.setState({activeNavStatus:2});if(this.setState({loading_visible:!0,activeNavStatus:1}),0==i&&(this.setState({activeNavStatus:1}),3!=this.state.showType))return u.a.clear(),u.a.error("\u8bf7\u5207\u6362\u81f3\u5151\u6362\u7801\u4fdd\u5b58"),void t.setState({loading_visible:!1});this.canvasImg.style.display="block";let h=await this.canvasImgFn(),b={title:e.model.title,page:e.showType,type_id:0,thumb:h};if(0==i){b.sort=e.model.sort,b.type_id=e.model.type_id.key;let i={};i.land=e.model,i.product_list=e.product_list,i.product_detail=e.product_detail,b.exchange=Object(m.a)(i,["land[sort]","land[title]","thumb"]),b.access_conf=a,b.coupon=r,o?Object(l.zc)(o.id,b).then((e=>{Object(l.Kb)(e,((e,t)=>{u.a.success("\u4fdd\u5b58\u6210\u529f"),this.props.history.push("/home/system/my-mould")}),(e=>{u.a.error(e)}))})):Object(l.e)(b).then((e=>{Object(l.Kb)(e,((e,i)=>{u.a.success(i),t.setState({loading_visible:!1}),setTimeout((()=>{this.props.history.push("/home/system/my-mould")}),2e3)}),(e=>{t.setState({loading_visible:!1}),u.a.error(e)}))}))}else if(1==i){let i=Object(n.a)(e),s={},a=i.model;switch(s.land=a,s.product_list=i.product_list,s.product_detail=i.product_detail,delete s.land.sort,delete s.land.title,this.state.showType){case 3:b.exchange=s;break;case 1:b.access_conf=s;break;case 4:case 8:b.coupon=s}o?Object(l.sc)(o.id,b).then((e=>{Object(l.Kb)(e,((e,i)=>{t.setState({loading_visible:!1}),u.a.success(i),setTimeout((()=>{t.props.history.push("/home/myexchangetemplate")}),2e3)}),(e=>{t.setState({loading_visible:!1}),u.a.error(e)}))})):Object(l.f)(b).then((e=>{Object(l.Kb)(e,((e,i)=>{t.setState({loading_visible:!1}),u.a.success(i),setTimeout((()=>{t.props.history.push("/home/myexchangetemplate")}),2e3)}),(e=>{t.setState({loading_visible:!1}),u.a.error(e)}))}))}else if(2==i){let i=Object(n.a)(e),s={},a=i.model;s.land=a,s.product_list=i.product_list,s.product_detail=i.product_detail,s.thumb=h,delete s.land.sort,delete s.land.title,3==this.state.showType?b.exchange=s:1==this.state.showType?b.access_conf=s:b.coupon=s,Object(l.Ac)(o.id,b).then((e=>{Object(l.Kb)(e,((e,i)=>{t.setState({loading_visible:!1}),u.a.success(i),t.props.history.push("/home/exchangepage")}),(e=>{t.setState({loading_visible:!1}),u.a.error(e)}))}))}}getLandingdata(e){this.setState({model:e})}getlandConfig(e){let t=this.state.model;t[e.attr]=e.value,this.setState({model:t})}getGoodConfig(e){let t=this.state.product_list;t[e.attr]=e.value,this.setState({product_list:t})}getexplainConfig(e){let t=this.state.product_list;t.describe[e.attr]=e.value,this.setState({product_list:t})}getGoodDetailConfig(e){let t=this.state.product_detail;t[e.attr]=e.value,this.setState({product_detail:t})}getdetailActiveFn(e){let t=this.state.product_detail;t.describe[e.attr]=e.value,this.setState({product_detail:t})}onmodelChange(e){let t,i=Object(c.a)(JSON.parse(sessionStorage.getItem("editorConfig")));switch(0==this.state.mouldType&&3!=e.target.value&&this.setState({systemTitle:i.exchangeList.land.title}),e.target.value){case 1:t=i.whiteList;break;case 3:t=i.exchangeList;break;default:3===this.state.detailType&&this.setState({detailType:1});let{activeNavStatus:e,showType:l,model:o,product_list:s,product_detail:a}=this.state;1==e&&[4,8].includes(l)&&(i.coupon.land=o),2==e&&[4,8].includes(l)&&(i.coupon.product_list=s),3==e&&[4,8].includes(l)&&(i.coupon.product_detail=a),sessionStorage.setItem("editorConfig",JSON.stringify(i)),t=i.coupon}let{land:l,product_list:o,product_detail:s}=t;this.setState({showType:e.target.value,activeNavStatus:1,model:l,product_list:o,product_detail:s})}onPreview(){let e=Object(c.a)(this.state);e.land=this.state.model,this.setState({previewData:e}),this.setState({preview_visible:!0})}getReduceButtoncolor(e){let t=this.state.product_detail;t.reduce.button_color=e,this.setState({product_detail:t})}getReduceFontcolor(e){let t=this.state.product_detail;t.reduce.font_color=e,this.setState({product_detail:t})}onClose(){this.setState({preview_visible:!1})}canvasImgFn(){let e=this,t=null,i=this.canvascrol;i.scrollTop=0;let o=document.querySelector(".xj-viewer-mask"),s=document.querySelector(".editor-main");return o.style.height=i.scrollHeight+"px",s.style.height=1*i.scrollHeight+50+"px",o.style.maxHeight=i.scrollHeight+"px",a()(i,{width:375,scale:1,useCORS:!0,allowTaint:!1,height:i.offsetHeight}).then((async i=>{document.body.appendChild(i);let a=i.toDataURL(),c=e.dataURLtoFile(a,"image/png"),n=new FormData,m=new File([c],new Date+".png");n.append("file",m),n.append("path","common_image");await Object(l.Tc)(n).then((i=>{Object(l.Kb)(i,((i,l)=>{t=i.path;let o=e.state.model;o.thumb=i.path,e.setState({model:o})}),(e=>{}))}));return o.style.height="100%",o.style.maxHeight="600px",s.style.height="600px",t}))}dataURLtoFile(e,t){let i=atob(e.split(",")[1]),l=[];for(let o=0;o<i.length;o++)l.push(i.charCodeAt(o));return new Blob([new Uint8Array(l)],{type:t})}canvasImgDom(e){this.canvasImg=e}canvasImgDomScr(e){this.canvascrol=e}activeChoice(e){this.setState({activeNavStatus:e})}reduceFn(){let e=this.state.activeNavStatus;e-=1,e<1&&(e=1),this.setState({activeNavStatus:e})}preUrlFn(){window.history.go(-1)}addFn(){let e=this.state.activeNavStatus;e++,e>3&&(e=3),this.setState({activeNavStatus:e})}showactiveIcon(e){this.setState({activeshow:!1})}showactivedetail(e){this.setState({detailactiveshow:!1})}componentWillUnmount(){document.querySelector("canvas")&&document.querySelector("canvas").remove(),o.a.removeAllListeners()}componentName(e){this.setState({componentOfconfig:e})}returnComponents(){switch(Number(this.state.detailType)){case 1:return Object(V.jsxDEV)(g.a,{opendesc:e=>this.setState({detailactiveshow:!0}),detaildata:this.state.product_detail,templateType:this.state.showType},void 0,!1,{fileName:Ce,lineNumber:741,columnNumber:11},this);case 2:return Object(V.jsxDEV)(J.a,{templateType:this.state.showType,detaildata:this.state.product_detail},void 0,!1,{fileName:Ce,lineNumber:748,columnNumber:16},this);case 3:return Object(V.jsxDEV)(W.a,{},void 0,!1,{fileName:Ce,lineNumber:750,columnNumber:16},this)}}render(){return Object(V.jsxDEV)("div",{className:"edittemplate",children:[Object(V.jsxDEV)("div",{className:"topHeader",children:[Object(V.jsxDEV)("div",{className:"dflexaj",children:[Object(V.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepage.png",onClick:this.preUrlFn},void 0,!1,{fileName:Ce,lineNumber:760,columnNumber:13},this),Object(V.jsxDEV)("span",{className:"fz16",children:"\u7f16\u8f91\u843d\u5730\u9875"},void 0,!1,{fileName:Ce,lineNumber:764,columnNumber:13},this)]},void 0,!0,{fileName:Ce,lineNumber:759,columnNumber:11},this),Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)(h.a,{type:"Info",onClick:e=>{this.onPreview(e)},children:"\u9884\u89c8"},void 0,!1,{fileName:Ce,lineNumber:767,columnNumber:13},this),Object(V.jsxDEV)(h.a,{type:"primary",onClick:e=>{this.onSave(e)},children:"\u4fdd\u5b58"},void 0,!1,{fileName:Ce,lineNumber:775,columnNumber:13},this)]},void 0,!0,{fileName:Ce,lineNumber:766,columnNumber:11},this)]},void 0,!0,{fileName:Ce,lineNumber:758,columnNumber:9},this),Object(V.jsxDEV)("div",{id:"leftComponent",children:[Object(V.jsxDEV)("div",{className:"showTypechice",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.onmodelChange(e)},value:this.state.showType,children:[Object(V.jsxDEV)(N.a,{value:3,disabled:this.state.pagedisable,children:"\u5151\u6362\u7801"},void 0,!1,{fileName:Ce,lineNumber:793,columnNumber:15},this),Object(V.jsxDEV)(N.a,{value:1,disabled:this.state.pagedisable,children:"\u767d\u540d\u5355"},void 0,!1,{fileName:Ce,lineNumber:796,columnNumber:15},this),Object(V.jsxDEV)(N.a,{value:4,disabled:this.state.pagedisable,children:"\u4f18\u60e0\u5238"},void 0,!1,{fileName:Ce,lineNumber:799,columnNumber:15},this),Object(V.jsxDEV)(N.a,{value:8,disabled:this.state.pagedisable,children:"\u4f18\u60e0\u5238\u767d\u540d\u5355"},void 0,!1,{fileName:Ce,lineNumber:802,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:787,columnNumber:13},this)},void 0,!1,{fileName:Ce,lineNumber:786,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"ascriptionCode",children:[Object(V.jsxDEV)("div",{className:"item",children:[Object(V.jsxDEV)("h4",{children:"\u843d\u5730\u9875:"},void 0,!1,{fileName:Ce,lineNumber:810,columnNumber:15},this),Object(V.jsxDEV)("div",{onClick:()=>this.activeChoice(1),style:{background:this.state.model.bg_color},className:1==this.state.activeNavStatus?"activeNav thumbheader":"thumbheader",children:[0==this.state.mouldType&&3!=this.state.showType,Object(V.jsxDEV)("h3",{children:[0==this.state.mouldType&&3!=this.state.showType?this.state.systemTitle:this.state.model.title," "]},void 0,!0,{fileName:Ce,lineNumber:819,columnNumber:17},this),Object(V.jsxDEV)("img",{src:this.state.model.top_image?this.state.model.top_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/59ba305520d3229e7fc53d5229bfec0c.png",id:"top"},this.state.model.top_image,!1,{fileName:Ce,lineNumber:824,columnNumber:17},this),Object(V.jsxDEV)("div",{className:"hascode",children:[Object(V.jsxDEV)("img",{src:8==this.state.showType?this.state.model.white_image?this.state.model.white_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20221107/2c407b6b702ed2217e22f8df8a7c87e6.png":this.state.model.middle_image?this.state.model.middle_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20221107/2c407b6b702ed2217e22f8df8a7c87e6.png",id:"top"},void 0,!1,{fileName:Ce,lineNumber:834,columnNumber:19},this),Object(V.jsxDEV)("div",{className:"dflexajc thumbipt",children:[Object(V.jsxDEV)("div",{style:{color:this.state.model.font_color},children:["\u8bf7\u8f93\u5165",[1,8].includes(this.state.showType)?"\u624b\u673a\u53f7":"\u5151\u6362\u7801"]},void 0,!0,{fileName:Ce,lineNumber:847,columnNumber:21},this),Object(V.jsxDEV)("div",{className:"ipt-code",style:{color:this.state.model.font_color},children:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"},void 0,!1,{fileName:Ce,lineNumber:851,columnNumber:21},this)]},void 0,!0,{fileName:Ce,lineNumber:846,columnNumber:19},this),[1,8].includes(this.state.showType)?Object(V.jsxDEV)("img",{src:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png",className:"thumbcode"},void 0,!1,{fileName:Ce,lineNumber:856,columnNumber:21},this):Object(V.jsxDEV)("img",{src:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/7dafa511638b084f21966b2c3d269a0e.png",className:"thumbcode"},void 0,!1,{fileName:Ce,lineNumber:863,columnNumber:21},this)]},void 0,!0,{fileName:Ce,lineNumber:833,columnNumber:17},this),this.state.model.describe&&this.state.model.describe.bg_image?Object(V.jsxDEV)("img",{src:this.state.model.describe.bg_image},void 0,!1,{fileName:Ce,lineNumber:872,columnNumber:19},this):null]},void 0,!0,{fileName:Ce,lineNumber:811,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:809,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"item",children:[Object(V.jsxDEV)("h4",{children:"\u5546\u54c1\u5217\u8868\u9875:"},void 0,!1,{fileName:Ce,lineNumber:877,columnNumber:15},this),Object(V.jsxDEV)("div",{onClick:()=>this.activeChoice(2),className:2==this.state.activeNavStatus?"activeNav thumbheader":"thumbheader",children:Object(V.jsxDEV)("div",{className:"goodsList-item",children:Object(V.jsxDEV)(M.a,{opendesc:e=>this.setState({activeshow:!0}),goodsdata:this.state.product_list},void 0,!1,{fileName:Ce,lineNumber:885,columnNumber:19},this)},void 0,!1,{fileName:Ce,lineNumber:884,columnNumber:17},this)},void 0,!1,{fileName:Ce,lineNumber:878,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:876,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"item",children:[Object(V.jsxDEV)("h4",{children:"\u5546\u54c1\u8be6\u60c5\u9875:"},void 0,!1,{fileName:Ce,lineNumber:893,columnNumber:15},this),Object(V.jsxDEV)("div",{onClick:()=>this.activeChoice(3),className:3==this.state.activeNavStatus?"activeNav thumbheader":"thumbheader",children:Object(V.jsxDEV)("div",{className:"detailstemplatescale",children:this.returnComponents()},void 0,!1,{fileName:Ce,lineNumber:900,columnNumber:17},this)},void 0,!1,{fileName:Ce,lineNumber:894,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:892,columnNumber:13},this)]},void 0,!0,{fileName:Ce,lineNumber:808,columnNumber:11},this),[4,8].includes(this.state.showType)&&2==this.state.activeNavStatus?Object(V.jsxDEV)(oe,{componentName:e=>this.componentName(e)},void 0,!1,{fileName:Ce,lineNumber:906,columnNumber:13},this):null]},void 0,!0,{fileName:Ce,lineNumber:785,columnNumber:9},this),Object(V.jsxDEV)("div",{className:"xj-wrapper",style:{zIndex:"1"},children:[Object(V.jsxDEV)("div",{className:[4,8].includes(this.state.showType)&&2==this.state.activeNavStatus?"xj-center-small":"xj-center",children:[Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("img",{className:"perimg",onClick:this.reduceFn.bind(this),src:[2,3].includes(this.state.activeNavStatus)?"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/preBtn.png":"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/pre.png"},void 0,!1,{fileName:Ce,lineNumber:919,columnNumber:15},this),Object(V.jsxDEV)("img",{className:"nextimg",onClick:this.addFn.bind(this),src:[1,2].includes(this.state.activeNavStatus)?"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/nextBtn.png":"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/next.png"},void 0,!1,{fileName:Ce,lineNumber:928,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:918,columnNumber:13},this),Object(V.jsxDEV)("div",{className:"editor-main",ref:this.canvasImgDom,style:{display:1==this.state.activeNavStatus?"block":"none"},children:[Object(V.jsxDEV)("div",{className:"xj-viewer-title",children:Object(V.jsxDEV)("span",{className:"xj-viewer-title-line",children:0==this.state.mouldType&&3!=this.state.showType?this.state.systemTitle:this.state.model.title},void 0,!1,{fileName:Ce,lineNumber:946,columnNumber:17},this)},void 0,!1,{fileName:Ce,lineNumber:945,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"xj-viewer-toolbar",style:{bottom:"0px"}},void 0,!1,{fileName:Ce,lineNumber:952,columnNumber:15},this),Object(V.jsxDEV)("div",{className:"xj-viewer-bg",children:Object(V.jsxDEV)("div",{className:"xj-viewer-out",children:Object(V.jsxDEV)("div",{className:"xj-viewer-mask",style:{background:this.state.model.bg_color},ref:this.canvasImgDomScr,children:[Object(V.jsxDEV)("div",{className:"top",children:Object(V.jsxDEV)("img",{crossOrigin:"anonymous",src:this.state.model.top_image?this.state.model.top_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/59ba305520d3229e7fc53d5229bfec0c.png",id:"top"},this.state.model.top_image,!1,{fileName:Ce,lineNumber:961,columnNumber:23},this)},void 0,!1,{fileName:Ce,lineNumber:960,columnNumber:21},this),Object(V.jsxDEV)("div",{className:"center",id:"center",children:[Object(V.jsxDEV)("img",{crossOrigin:"anonymous",id:"center-img",src:8==this.state.showType?this.state.model.white_image?this.state.model.white_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20221107/2c407b6b702ed2217e22f8df8a7c87e6.png":this.state.model.middle_image?this.state.model.middle_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20221107/2c407b6b702ed2217e22f8df8a7c87e6.png"},void 0,!1,{fileName:Ce,lineNumber:973,columnNumber:23},this),Object(V.jsxDEV)("div",{className:"dflexajc ipt-user",children:[Object(V.jsxDEV)("div",{style:{color:this.state.model.font_color},children:["\u8bf7\u8f93\u5165",[1,8].includes(this.state.showType)?"\u624b\u673a\u53f7":"\u5151\u6362\u7801"]},void 0,!0,{fileName:Ce,lineNumber:987,columnNumber:25},this),Object(V.jsxDEV)("div",{className:"ipt-code",style:{color:this.state.model.font_color},children:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"},void 0,!1,{fileName:Ce,lineNumber:991,columnNumber:25},this)]},void 0,!0,{fileName:Ce,lineNumber:986,columnNumber:23},this),[1,8].includes(this.state.showType)?Object(V.jsxDEV)("img",{src:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png",className:"verifycode"},void 0,!1,{fileName:Ce,lineNumber:997,columnNumber:25},this):Object(V.jsxDEV)("img",{crossOrigin:"anonymous",src:"http://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/7dafa511638b084f21966b2c3d269a0e.png",className:"verifycode"},void 0,!1,{fileName:Ce,lineNumber:1004,columnNumber:25},this)]},void 0,!0,{fileName:Ce,lineNumber:972,columnNumber:21},this),Object(V.jsxDEV)("div",{className:"bottom",children:this.state.model.describe&&0==this.state.model.describe.type?null:this.state.model.describe&&1==this.state.model.describe.type?Object(V.jsxDEV)("img",{src:this.state.model.describe.bg_image,crossOrigin:"anonymous"},void 0,!1,{fileName:Ce,lineNumber:1017,columnNumber:25},this):Object(V.jsxDEV)("div",{className:"editbg",children:[this.state.model.describe&&this.state.model.describe.bg_image?Object(V.jsxDEV)("img",{src:this.state.model.describe.bg_image,crossOrigin:"anonymous",className:"bgimg"},void 0,!1,{fileName:Ce,lineNumber:1021,columnNumber:29},this):null,this.state.model.describe&&this.state.model.describe.content?Object(V.jsxDEV)("div",{dangerouslySetInnerHTML:{__html:this.state.model.describe.content}},void 0,!1,{fileName:Ce,lineNumber:1028,columnNumber:29},this):null]},void 0,!0,{fileName:Ce,lineNumber:1019,columnNumber:25},this)},void 0,!1,{fileName:Ce,lineNumber:1013,columnNumber:21},this)]},void 0,!0,{fileName:Ce,lineNumber:955,columnNumber:19},this)},void 0,!1,{fileName:Ce,lineNumber:954,columnNumber:17},this)},void 0,!1,{fileName:Ce,lineNumber:953,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:938,columnNumber:13},this),2!=this.state.activeNavStatus?null:this.state.activeshow&&2==this.state.product_list.describe.type&&this.state.product_list.describe.content?Object(V.jsxDEV)(z.a,{backPrepage:e=>this.showactiveIcon(e),goodsdata:this.state.product_list},void 0,!1,{fileName:Ce,lineNumber:1044,columnNumber:15},this):Object(V.jsxDEV)(M.a,{opendesc:e=>this.setState({activeshow:!0}),goodsdata:this.state.product_list},void 0,!1,{fileName:Ce,lineNumber:1049,columnNumber:15},this),3!=this.state.activeNavStatus?null:this.state.detailactiveshow&&2==this.state.product_detail.describe.type&&this.state.product_detail.describe.content?Object(V.jsxDEV)(z.a,{backPrepage:e=>this.showactivedetail(e),goodsdata:this.state.product_detail},void 0,!1,{fileName:Ce,lineNumber:1057,columnNumber:15},this):Object(V.jsxDEV)("div",{children:[Object(V.jsxDEV)("div",{className:"details_type",children:Object(V.jsxDEV)(b.a,{onChange:e=>{this.ondetailTypeChange(e)},value:this.state.detailType,children:[Object(V.jsxDEV)(N.a,{value:1,children:"\u6743\u76ca"},void 0,!1,{fileName:Ce,lineNumber:1070,columnNumber:21},this),Object(V.jsxDEV)(N.a,{value:2,children:"\u7acb\u51cf\u91d1"},void 0,!1,{fileName:Ce,lineNumber:1071,columnNumber:21},this),![4,8].includes(this.state.showType)&&Object(V.jsxDEV)(N.a,{value:3,children:"\u7ea2\u5305"},void 0,!1,{fileName:Ce,lineNumber:1073,columnNumber:23},this)]},void 0,!0,{fileName:Ce,lineNumber:1064,columnNumber:19},this)},void 0,!1,{fileName:Ce,lineNumber:1063,columnNumber:17},this),this.returnComponents()]},void 0,!0,{fileName:Ce,lineNumber:1062,columnNumber:15},this)]},void 0,!0,{fileName:Ce,lineNumber:911,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"xj-center-fixed",style:{marginLeft:"288px"}},void 0,!1,{fileName:Ce,lineNumber:1081,columnNumber:11},this),Object(V.jsxDEV)("div",{className:"xj-rightPanel",children:Object(V.jsxDEV)("div",{className:"RootEditor",children:Object(V.jsxDEV)("div",{children:[[1,3].includes(this.state.showType)?Object(V.jsxDEV)("div",{className:"control page-title-control",children:1==this.state.activeNavStatus?Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u843d\u5730\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:Ce,lineNumber:1088,columnNumber:23},this):2==this.state.activeNavStatus?Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u5546\u54c1\u5217\u8868\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:Ce,lineNumber:1090,columnNumber:23},this):Object(V.jsxDEV)("h1",{style:{fontSize:"16px"},children:"\u5546\u54c1\u8be6\u60c5\u9875\u8bbe\u7f6e"},void 0,!1,{fileName:Ce,lineNumber:1092,columnNumber:23},this)},void 0,!1,{fileName:Ce,lineNumber:1086,columnNumber:19},this):null,3==this.state.showType?1==this.state.activeNavStatus?Object(V.jsxDEV)(L,{landConfig:e=>this.getlandConfig(e),setbanner:e=>this.getLandingdata(e)},void 0,!1,{fileName:Ce,lineNumber:1098,columnNumber:21},this):2==this.state.activeNavStatus?Object(V.jsxDEV)(T,{setexplainConfig:e=>this.getexplainConfig(e),setGoodConfig:e=>this.getGoodConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1103,columnNumber:21},this):1==this.state.detailType?Object(V.jsxDEV)(w,{setdetailActive:e=>this.getdetailActiveFn(e),setGoodDetailConfig:e=>this.getGoodDetailConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1108,columnNumber:21},this):Object(V.jsxDEV)(q,{},void 0,!1,{fileName:Ce,lineNumber:1113,columnNumber:21},this):1==this.state.showType?1==this.state.activeNavStatus?Object(V.jsxDEV)(G,{landTitle:this.state.model.title,mouldType:this.state.mouldType,landConfig:e=>this.getlandConfig(e),setbanner:e=>this.getLandingdata(e)},void 0,!1,{fileName:Ce,lineNumber:1117,columnNumber:21},this):2==this.state.activeNavStatus?Object(V.jsxDEV)(Q,{setexplainConfig:e=>this.getexplainConfig(e),setGoodConfig:e=>this.getGoodConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1124,columnNumber:21},this):1==this.state.detailType?Object(V.jsxDEV)(K,{setdetailActive:e=>this.getdetailActiveFn(e),setGoodDetailConfig:e=>this.getGoodDetailConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1129,columnNumber:21},this):Object(V.jsxDEV)(q,{},void 0,!1,{fileName:Ce,lineNumber:1134,columnNumber:21},this):1==this.state.activeNavStatus?Object(V.jsxDEV)(Ee,{landConfig:e=>this.getlandConfig(e),setbanner:e=>this.getLandingdata(e),couponType:this.state.showType},void 0,!1,{fileName:Ce,lineNumber:1137,columnNumber:19},this):2==this.state.activeNavStatus?Object(V.jsxDEV)(ve,{componentName:this.state.componentOfconfig,setexplainConfig:e=>this.getexplainConfig(e),setGoodConfig:e=>this.getGoodConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1143,columnNumber:19},this):1==this.state.detailType?1==this.state.activeNavStatus?Object(V.jsxDEV)(w,{setdetailActive:e=>this.getdetailActiveFn(e),setGoodDetailConfig:e=>this.getGoodDetailConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1150,columnNumber:21},this):Object(V.jsxDEV)(Z,{setdetailActive:e=>this.getdetailActiveFn(e),setGoodDetailConfig:e=>this.getGoodDetailConfig(e)},void 0,!1,{fileName:Ce,lineNumber:1155,columnNumber:21},this):1==this.state.activeNavStatus?Object(V.jsxDEV)(q,{},void 0,!1,{fileName:Ce,lineNumber:1161,columnNumber:19},this):Object(V.jsxDEV)(te,{setReduceFontcolor:e=>this.getReduceFontcolor(e),setReduceButtoncolor:e=>this.getReduceButtoncolor(e)},void 0,!1,{fileName:Ce,lineNumber:1163,columnNumber:19},this),this.state.preview_visible?Object(V.jsxDEV)(f.a,{previewData:this.state.previewData,showType:this.state.showType,onCloseFn:this.onClose.bind(this)},void 0,!1,{fileName:Ce,lineNumber:1169,columnNumber:19},this):null,this.state.loading_visible?Object(V.jsxDEV)("div",{className:"loadingShow",children:[Object(V.jsxDEV)("div",{className:"modal model44"},void 0,!1,{fileName:Ce,lineNumber:1177,columnNumber:21},this),Object(V.jsxDEV)(p.a,{loading:!0,icon:"circle",iconSize:64,iconText:"\u4fdd\u5b58\u4e2d",className:"save_loading"},void 0,!1,{fileName:Ce,lineNumber:1178,columnNumber:21},this)]},void 0,!0,{fileName:Ce,lineNumber:1176,columnNumber:19},this):null]},void 0,!0,{fileName:Ce,lineNumber:1084,columnNumber:15},this)},void 0,!1,{fileName:Ce,lineNumber:1083,columnNumber:13},this)},void 0,!1,{fileName:Ce,lineNumber:1082,columnNumber:11},this)]},void 0,!0,{fileName:Ce,lineNumber:910,columnNumber:9},this)]},void 0,!0,{fileName:Ce,lineNumber:757,columnNumber:7},this)}}}}]); |