frontend/build/static/js/2.2506783c.chunk.js

1 line
53 KiB
JavaScript

(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[2],{116:function(e,t,n){},249:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(0)),a=n.n(o),u=n(174),l=n(208),d=n(210),p=(n(250),n(251),n(252)),h=n(1),m=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={setStyle:{width:"375px",height:"667px",transform:"scale(0.75)"},fontSize:1e4/281.25,activeHeight:667,showType:3,pageStep:1,showPage:1,detailType:3},s}return Object(s.a)(n,[{key:"onClose",value:function(){this.props.onCloseFn()}},{key:"handleSize",value:function(e,t){var n={width:e+"px",height:t+"px",transform:"scale(0.75)"};this.setState({setStyle:n,activeHeight:t})}},{key:"onpageChange",value:function(e){this.setState({showPage:e.target.value,pageStep:e.target.value,detailType:3})}},{key:"ondetailTypeChange",value:function(e){this.setState({detailType:e.target.value,pageStep:e.target.value})}},{key:"render",value:function(){var e=this;return Object(h.jsx)("div",{className:"edittemplate",children:Object(h.jsxs)("div",{children:[Object(h.jsx)("div",{className:"modal model44",style:{background:"rgba(0,0,0,0.8)"}}),Object(h.jsxs)("div",{className:"preview-box",children:[Object(h.jsx)(u.a,{type:"close",className:"preview-top-close",onClick:function(t){e.onClose(t)}}),Object(h.jsx)("div",{style:{height:"100%"},children:Object(h.jsxs)("div",{className:"previewComponent",children:[Object(h.jsx)("div",{className:"previewbody",children:Object(h.jsx)("div",{className:"ctorSize",style:this.state.setStyle,children:Object(h.jsx)(p.a,{data:this.props.previewData,pageType:this.props.showType,fontSize:this.state.fontSize,ref:"preview",step:this.state.pageStep})})}),Object(h.jsxs)("div",{className:"left-choice",children:[Object(h.jsxs)("div",{className:"exchange-page",children:[Object(h.jsx)("p",{className:"preview-setting",children:"\u843d\u5730\u9875\u9884\u89c8:"}),Object(h.jsxs)("section",{className:"screen-size-selector",children:[Object(h.jsxs)("div",{className:667==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,667)},children:["\u4e3b\u6d41\u673a\u578b",Object(h.jsx)("span",{children:"375x667"})]}),Object(h.jsxs)("div",{className:750==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,750)},children:["\u5168\u9762\u5c4f",Object(h.jsx)("span",{children:"375x750"})]}),Object(h.jsxs)("div",{className:812==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,812)},children:["\u5218\u6d77\u5c4f",Object(h.jsx)("span",{children:"375x812"})]}),Object(h.jsxs)("div",{className:500==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,500)},children:["\u5c0f\u5c4f\u624b\u673a",Object(h.jsx)("span",{children:"375x500"})]})]})]}),Object(h.jsxs)("div",{className:"exchange-page",children:[Object(h.jsx)("p",{children:"\u9875\u9762\u7c7b\u578b:"}),Object(h.jsxs)(l.a,{onChange:function(t){e.onpageChange(t)},value:this.state.showPage,children:[Object(h.jsx)(d.a,{value:1,children:"\u843d\u5730\u9875"}),Object(h.jsx)(d.a,{value:2,children:"\u5217\u8868\u9875"}),Object(h.jsx)(d.a,{value:3,children:"\u8be6\u60c5\u9875"})]})]}),3==this.state.showPage?Object(h.jsxs)("div",{className:"exchange-page",children:[Object(h.jsx)("p",{children:"\u8be6\u60c5\u9875\u5206\u7c7b:"}),Object(h.jsxs)(l.a,{onChange:function(t){e.ondetailTypeChange(t)},value:this.state.detailType,children:[Object(h.jsx)(d.a,{value:3,children:"\u6743\u2003\u76ca"}),Object(h.jsx)(d.a,{value:4,children:"\u7acb\u51cf\u91d1"}),Object(h.jsx)(d.a,{value:5,children:"\u7ea2\u5305"})]})]}):null]})]})})]})]})})}}]),n}(a.a.Component)},250:function(e,t,n){},251:function(e,t,n){},252:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(0)),a=n.n(o),u=n(377),l=n(379),d=n(380),p=n(381),h=(n(382),n(383)),m=n(384),f=(n(443),n(1)),g=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={layout:"list",type:1,top_url:"",activeshow:!1,detailactiveshow:!1,top_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/59ba305520d3229e7fc53d5229bfec0c.png",middle_image:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20221107/2c407b6b702ed2217e22f8df8a7c87e6.png"},s}return Object(s.a)(n,[{key:"showactiveIcon",value:function(e){this.setState({activeshow:!1})}},{key:"opendescFn",value:function(){this.setState({activeshow:!0})}},{key:"showactivedetail",value:function(e){this.setState({detailactiveshow:!1})}},{key:"opendetaildescFn",value:function(){this.setState({detailactiveshow:!0})}},{key:"componentDidUpdate",value:function(){2==this.props.step?document.querySelector(".preview-show .goodstemplate").scrollTop=0:3!=this.props.step||this.state.detailactiveshow?document.querySelector("#previewbg").scrollTop=0:document.querySelector(".preview-show .detailstemplate").scrollTop=0}},{key:"setHeight",value:function(){var e="0px",t="0px",n=this.props.data.product_list;return n.search&&1==n.search.iswitch&&(e="60px"),n.bottomBar&&1==n.bottomBar.iswitch&&(t="50px"),"calc(".concat("100%"," - ").concat(e," - ").concat(t,")")}},{key:"render",value:function(){var e=this,t=this.props.data,n=t.product_list,r=[];return n&&n.bottomBar&&(r=n.bottomBar.navlist.filter((function(e){return 1==e.iswitch}))),Object(f.jsx)("div",{className:"preview-show",children:Object(f.jsxs)("div",{id:"previewbg",style:{background:2==this.props.step&&n.backgroundImg&&n.backgroundImg.bgImg?"url('".concat(n.backgroundImg.bgImg,"') center center /cover"):n.backgroundImg&&n.backgroundImg.bgColor?n.backgroundImg.bgColor:"#F2F7F8"},children:[1==this.props.step?Object(f.jsxs)("div",{className:"landpage",style:{background:t.land.bg_color},children:[Object(f.jsx)("div",{className:"top",children:t.land.top_image?Object(f.jsx)("img",{src:t.land.top_image,id:"top"}):Object(f.jsx)("img",{src:this.state.top_image,id:"top"})}),Object(f.jsxs)("div",{className:"center",id:"preview-center",ref:"middleCenter",style:{fontSize:this.props.fontSize},children:[Object(f.jsx)("img",{src:8==this.props.pageType?t.land.white_image?t.land.white_image:this.state.middle_image:t.land.middle_image?t.land.middle_image:this.state.middle_image,id:"preview-center-img"}),Object(f.jsxs)("div",{className:"dflexajc ipt-user",children:[Object(f.jsxs)("div",{style:{color:t.land.font_color},children:["\u8bf7\u8f93\u5165",[1,8].includes(this.props.pageType)?"\u624b\u673a\u53f7":"\u5151\u6362\u7801"]}),Object(f.jsx)("div",{className:"ipt-code",style:{color:t.land.font_color},children:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"})]}),[1,8].includes(this.props.pageType)?Object(f.jsx)("img",{src:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220127/22e5d4c1b1190a0a7bc8db43e1490d67.png",className:"verifycode"}):Object(f.jsx)("img",{src:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20220105/7dafa511638b084f21966b2c3d269a0e.png",className:"verifycode"}),Object(f.jsx)("div",{className:"submit"})]}),Object(f.jsxs)("div",{className:"bottom",children:[t.land.describe.bg_image?Object(f.jsx)("img",{src:t.land.describe.bg_image}):null,t.land.describe.content?Object(f.jsx)("div",{className:"textTip_land",dangerouslySetInnerHTML:{__html:t.land.describe.content}}):null]})]}):null,2==this.props.step?this.state.activeshow&&2==t.product_list.describe.type&&t.product_list.describe.content?Object(f.jsx)(p.a,{backPrepage:function(t){return e.showactiveIcon(t)},goodsdata:t.product_list}):Object(f.jsxs)("div",{className:"goodstemplate_view",children:[n.search&&1==n.search.iswitch?Object(f.jsx)(l.a,{searchConfig:n.search}):null,Object(f.jsxs)("div",{className:"goodstemplate",style:{height:this.setHeight()},children:[Object(f.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn",style:{display:n.search&&1==n.search.iswitch?"none":"block"}}),t.product_list.top_image?Object(f.jsx)("img",{className:"topbanner",src:t.product_list.top_image}):Object(f.jsx)("img",{className:"topbanner",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodstop.png"}),n.picture&&1==n.picture.iswitch?Object(f.jsx)("img",{src:n.picture.img,alt:"",className:"picture"}):null,n.title&&1==n.title.iswitch&&1==n.title.comstyle?Object(f.jsx)("div",{className:n.title.textAlign+" content-title "+n.title.fontSize,style:{color:n.title.fontColor,fontWeight:"bold"},children:n.title.text}):null,n.title&&1==n.title.iswitch&&2==n.title.comstyle?Object(f.jsx)("img",{src:n.title.pic,alt:"",className:"title-pic"}):null,n.title&&1==n.title.iswitch&&n.title.text||n.picture&&1==n.picture.iswitch&&n.picture.img?Object(f.jsx)("div",{className:"parting-line"}):null,2==t.product_list.list?Object(f.jsx)("img",{className:"swiperType",src:[1,3].includes(this.props.pageType)?"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/swiperview.png":"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/swiperview_coupon.png"}):3==t.product_list.list?Object(f.jsx)("img",{className:"swiperType",src:[1,3].includes(this.props.pageType)?"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/matrixview.png":"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/matrixview_coupon.png"}):Object(f.jsx)("img",{className:"swiperType",src:[1,3].includes(this.props.pageType)?"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/listview.png":"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/listview_coupon.png"}),2==t.product_list.list?Object(f.jsx)("button",{className:"exchageBtn",style:{color:t.product_list.font_color,background:t.product_list.button_color},children:n.search?"\u8d2d\u4e70":"\u7acb\u5373\u5151\u6362"}):null,1==t.product_list.describe.type?Object(f.jsx)("img",{src:t.product_list.describe.bg_image,alt:"",className:t.product_list.describe.type&&1==t.product_list.list?"bottomTipView":"bottomTip"}):3==t.product_list.describe.type?Object(f.jsx)("div",{className:"bottomactiveTip",dangerouslySetInnerHTML:{__html:t.product_list.describe.content}}):null,2==t.product_list.describe.type?Object(f.jsx)("img",{className:"susactive_tip",onClick:this.opendescFn.bind(this),src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/acticeTextTip.png"}):null]}),n.bottomBar&&1==n.bottomBar.iswitch&&r.length>1?Object(f.jsx)(u.a,{bottomBarConfig:n.bottomBar}):null]}):null,3==this.props.step?this.state.detailactiveshow&&2==t.product_detail.describe.type&&t.product_detail.describe.content?Object(f.jsx)(p.a,{backPrepage:function(t){return e.showactivedetail(t)},goodsdata:t.product_detail}):Object(f.jsx)(d.a,{opendesc:function(t){return e.opendetaildescFn(t)},detaildata:t.product_detail,templateType:this.props.pageType,topImgshow:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodsbigPic.png",iptImgshow:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/viewIpt.png"}):null,4==this.props.step&&Object(f.jsx)(m.a,{templateType:this.props.pageType,detaildata:t.product_detail}),5==this.props.step&&Object(f.jsx)(h.a,{})]})})}}]),n}(a.a.Component)},377:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(378),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={navList:[{id:1,iswitch:1,name:"index",pic:{show:"",selectShow:""},text:"\u9996\u9875"},{id:2,iswitch:1,name:"order",pic:{show:"",selectShow:""},text:"\u8ba2\u5355"},{id:3,iswitch:1,name:"coupon",pic:{show:"",selectShow:""},text:"\u6211\u7684\u5238"}],active:0},s}return Object(s.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.bottomBarConfig.navlist.filter((function(e){return e.iswitch}));this.setState({navList:t})}},{key:"clickIcon",value:function(e,t){this.setState({active:t})}},{key:"componentDidMount",value:function(){var e=JSON.parse(sessionStorage.getItem("editorConfig")),t=this.props.bottomBarConfig?this.props.bottomBarConfig:e.coupon.product_list.bottomBar,n=t.navlist,r=t.defaultText,s=t.selectText,c=t.background,i=t.iswitch;this.setState({defaultText:r,selectText:s,background:c,iswitch:i});var o=n.filter((function(e){return e.iswitch}));this.setState({navList:o})}},{key:"render",value:function(){var e=this,t=this.state.active;return Object(u.jsx)("ul",{className:"bottomBar-view",style:{background:this.props.bottomBarConfig.background?"url('".concat(this.props.bottomBarConfig.background,"') center center /cover"):"#f9f9f9"},children:this.state.navList.map((function(n,r){return Object(u.jsxs)("li",{onClick:function(t){return e.clickIcon(t,r)},children:[Object(u.jsx)("img",{src:t==r?n.pic.selectShow:n.pic.show,alt:""}),Object(u.jsx)("span",{style:{color:t==r?e.props.bottomBarConfig.selectText:e.props.bottomBarConfig.defaultText},children:n.text})]},n.id)}))})}}]),n}(a.a.Component)},378:function(e,t,n){},379:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=n(0),a=n.n(o),u=(n(378),n(39),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.props.searchConfig;return Object(u.jsxs)("div",{className:"searchBar-container",style:{background:e.bgColor},children:[Object(u.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn"}),Object(u.jsxs)("div",{className:e.shape+" searchBar "+e.textAlign,style:{background:e.borderColor,color:e.fontColor},children:[Object(u.jsx)("i",{className:"marketing marketing-sousuo"}),Object(u.jsx)("div",{className:"placeholder",children:e.placeholder})]})]})}}]),n}(a.a.Component)},380:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(116),n(92),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(s.a)(n,[{key:"opendescFn",value:function(){this.props.opendesc(!0)}},{key:"render",value:function(){var e=this.props.detaildata,t=this.props,n=t.topImgshow,r=t.iptImgshow;return Object(u.jsxs)("div",{className:"detailstemplate_Xcenter",children:[Object(u.jsxs)("div",{className:"detailstemplate",style:{paddingBottom:"80px",boxSizing:"border-box"},children:[Object(u.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn"}),Object(u.jsx)("img",{className:"topBanner",src:n||"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/detailtop.png"}),Object(u.jsx)("p",{className:"splitLine"}),Object(u.jsx)("img",{className:"iptbg",src:r||"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/detailipt.png"}),Object(u.jsx)("p",{className:"splitLine"}),e.describe.bg_image&&1==e.describe.type?Object(u.jsx)("img",{className:"detail_bottomImg",src:e.describe.bg_image}):3==e.describe.type?Object(u.jsx)("div",{className:"bottomactiveTip",dangerouslySetInnerHTML:{__html:e.describe.content}}):null,2==e.describe.type?Object(u.jsx)("img",{className:"susactive_tip",onClick:this.opendescFn.bind(this),src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/acticeTextTip.png"}):null]}),[1,3].includes(this.props.templateType)?Object(u.jsx)("button",{className:"exchageBtn",style:{background:e.button_color,color:e.font_color},children:"\u7acb\u5373\u5151\u6362"}):Object(u.jsxs)("div",{className:"dflexaj payBtn-view",children:[Object(u.jsxs)("div",{className:"coupon-price",children:[Object(u.jsxs)("p",{children:["\uffe5",Object(u.jsx)("span",{children:"0.00"})]}),Object(u.jsx)("p",{children:"\u5171\u7701\uffe50.01"})]}),Object(u.jsx)("button",{className:"payBtn",style:{background:e.button_color,color:e.font_color},children:"\u7acb\u5373\u652f\u4ed8"})]})]})}}]),n}(a.a.Component)},381:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=n(0),a=n.n(o),u=(n(116),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(s.a)(n,[{key:"backPre",value:function(){this.props.backPrepage(0)}},{key:"render",value:function(){return Object(u.jsxs)("div",{className:"editor-main goodstemplate desc-goods",children:[Object(u.jsx)("p",{children:"\u6d3b\u52a8\u89c4\u5219"}),Object(u.jsx)("img",{onClick:this.backPre.bind(this),src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn"}),Object(u.jsx)("div",{className:"descript",dangerouslySetInnerHTML:{__html:this.props.goodsdata.describe.content}})]})}}]),n}(a.a.Component)},382:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(74)),a=n(0),u=n.n(a),l=n(512),d=n(377),p=n(379),h=(n(116),n(92),n(1)),m=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={clientY:0,selectDom:"",icon:"",comName:""},s}return Object(s.a)(n,[{key:"opendescFn",value:function(){this.props.opendesc(!0)}},{key:"customComponent",value:function(e,t,n,r){var s=this.refs[t].getBoundingClientRect().top;this.setState({clientY:s-125,selectDom:t,icon:n,comName:r}),"searchBar"==t&&this.setState({clientY:0})}},{key:"deleteFn",value:function(){var e=this,t=this.state.selectDom;l.a.confirm({title:"\u786e\u8ba4\u4fe1\u606f",content:Object(h.jsx)("p",{children:"\u786e\u8ba4\u5220\u9664\u8be5\u6a21\u5757\uff1f"}),onConfirm:function(){e.setState({selectDom:""}),o.a.emit("goodListPage"),o.a.emit("componentLib",{attr:t,value:0})},onCancel:function(){},parentComponent:this})}},{key:"setHeight",value:function(){var e=0,t=0,n=this.props.goodsdata;return n.search&&1==n.search.iswitch&&(e=60),n.bottomBar&&1==n.bottomBar.iswitch&&(t=50),"".concat(653-e-t,"px")}},{key:"render",value:function(){var e=this,t=this.props.goodsdata;return t.bottomBar&&t.bottomBar.navlist.filter((function(e){return 1==e.iswitch})),Object(h.jsxs)("div",{className:"goodstemplate_Xcenter",children:[t.search&&1==t.search.iswitch?Object(h.jsx)("div",{onClick:function(t){return e.customComponent(t,"search","marketing-sousuolan-","\u641c\u7d22\u680f")},className:"search"==this.state.selectDom?"selectBorder":"",ref:"search",children:Object(h.jsx)(p.a,{searchConfig:t.search})}):null,Object(h.jsxs)("div",{className:"goodstemplate",style:{background:t.backgroundImg&&t.backgroundImg.bgImg?"url('".concat(t.backgroundImg.bgImg,"') center center /cover"):t.backgroundImg&&t.backgroundImg.bgColor?t.backgroundImg.bgColor:"#f1f5f7",height:this.setHeight()},children:[Object(h.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn",style:{display:t.search&&1==t.search.iswitch?"none":"block"}}),t.top_image?Object(h.jsx)("img",{className:"topbanner",src:t.top_image}):Object(h.jsx)("img",{className:"topbanner",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodstop.png"}),t.picture&&1==t.picture.iswitch?Object(h.jsx)("div",{onClick:function(t){return e.customComponent(t,"picture","marketing-tupian","\u56fe\u7247")},ref:"picture",className:"picture"==this.state.selectDom?"selectBorder":"",children:Object(h.jsx)("img",{src:t.picture.img,alt:"",className:"picture"})}):null,t.title&&1==t.title.iswitch&&1==t.title.comstyle?Object(h.jsx)("div",{onClick:function(t){return e.customComponent(t,"title","marketing-fuwenbenkuang","\u6807\u9898")},ref:"title",className:"title"==this.state.selectDom?"selectBorder":"",children:Object(h.jsx)("div",{className:t.title.textAlign+" content-title "+t.title.fontSize,style:{color:t.title.fontColor,fontWeight:"bold"},children:t.title.text})}):null,t.title&&1==t.title.iswitch&&2==t.title.comstyle?Object(h.jsx)("div",{onClick:function(t){return e.customComponent(t,"title","marketing-fuwenbenkuang","\u6807\u9898")},ref:"title",className:"title"==this.state.selectDom?"selectBorder":"",children:Object(h.jsx)("img",{src:t.title.pic,alt:"",className:"title-pic"})}):null,t.title&&1==t.title.iswitch&&t.title.text||t.picture&&1==t.picture.iswitch&&t.picture.img?Object(h.jsx)("div",{className:"parting-line"}):null,2==t.list?Object(h.jsx)("img",{className:"goodsPic",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/swiper.png"}):3==t.list?Object(h.jsx)("img",{className:"goodsPicMatrax",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/matrix.png"}):Object(h.jsx)("img",{className:"goodsPicMatrax",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/listnew.png"}),2==t.list?Object(h.jsx)("button",{className:"exchageBtn",style:{color:t.font_color,background:t.button_color},children:t.search?"\u8d2d\u4e70":"\u7acb\u5373\u5151\u6362"}):null,!t.search&&Object(h.jsxs)("ul",{className:"redemptionCode-tabs",children:[Object(h.jsxs)("li",{children:[Object(h.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/home.png",alt:!0}),Object(h.jsx)("p",{children:"\u9996\u9875"})]}),Object(h.jsxs)("li",{children:[Object(h.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/order.png",alt:!0}),Object(h.jsx)("p",{children:"\u8ba2\u5355"})]})]}),1==t.describe.type?Object(h.jsx)("img",{src:t.describe.bg_image,alt:"",className:1==t.list&&t.describe.bg_image?"bottomTip bottomTipview":"bottomTip"}):3==t.describe.type?Object(h.jsx)("div",{className:"bottomactiveTip",dangerouslySetInnerHTML:{__html:t.describe.content}}):null,2==t.describe.type?Object(h.jsx)("img",{className:"susactive_tip",onClick:this.opendescFn.bind(this),src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/acticeTextTip.png"}):null]}),t.bottomBar&&1==t.bottomBar.iswitch?Object(h.jsx)("div",{ref:"bottomBar",onClick:function(t){return e.customComponent(t,"bottomBar","marketing-list","\u5e95\u90e8\u680f")},className:"bottomBar"==this.state.selectDom?"selectBottomBorder":"",children:Object(h.jsx)(d.a,{bottomBarConfig:t.bottomBar})}):null,this.state.selectDom?Object(h.jsxs)("div",{className:"delete-component",style:{top:this.state.clientY},children:[Object(h.jsx)("span",{children:this.state.comName}),Object(h.jsx)("b",{className:"split",children:"|"}),Object(h.jsx)("span",{className:"del-color",onClick:this.deleteFn.bind(this),children:"\u5220\u9664"})]}):null]})}}]),n}(u.a.Component)},383:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(39),n(116),n(92);var r=n(1);function s(){return Object(r.jsxs)("div",{className:"editor-main goodstemplate details-reduce",children:[Object(r.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn"}),Object(r.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/redPacktes/redPackets.png",alt:"",className:"reduce-pic"})]})}},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(116),n(92),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={data:{}},s}return Object(s.a)(n,[{key:"opendescFn",value:function(){this.props.opendesc(!0)}},{key:"render",value:function(){return Object(u.jsxs)("div",{className:"editor-main goodstemplate details-reduce",children:[Object(u.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png",className:"preBtn"}),[4,8].includes(this.props.templateType)?Object(u.jsxs)("div",{className:"coupon-reduce",children:[Object(u.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/reduce_coupon.png?v=1",alt:"",className:"reduce-pic"}),Object(u.jsxs)("div",{className:"dflexaj payBtn-view",children:[Object(u.jsxs)("div",{className:"coupon-price",children:[Object(u.jsxs)("p",{children:["\uffe5",Object(u.jsx)("span",{children:"0.00"})]}),Object(u.jsx)("p",{children:"\u5171\u7701\uffe50.01"})]}),Object(u.jsx)("button",{className:"payBtn",style:{background:this.props.detaildata.reduce.button_color,color:this.props.detaildata.reduce.font_color},children:"\u7acb\u5373\u652f\u4ed8"})]})]}):Object(u.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/reduce_pic.png?v=2",alt:"",className:"reduce-pic"})]})}}]),n}(a.a.Component)},430:function(e,t,n){},431:function(e,t,n){},434:function(e,t,n){},443:function(e,t,n){},60:function(e,t,n){"use strict";n.d(t,"Yb",(function(){return u})),n.d(t,"ub",(function(){return d})),n.d(t,"ib",(function(){return p})),n.d(t,"wb",(function(){return h})),n.d(t,"zb",(function(){return m})),n.d(t,"tb",(function(){return f})),n.d(t,"d",(function(){return g})),n.d(t,"db",(function(){return b})),n.d(t,"hd",(function(){return j})),n.d(t,"c",(function(){return v})),n.d(t,"Kc",(function(){return x})),n.d(t,"gd",(function(){return y})),n.d(t,"hb",(function(){return O})),n.d(t,"ic",(function(){return k})),n.d(t,"m",(function(){return w})),n.d(t,"A",(function(){return N})),n.d(t,"W",(function(){return C})),n.d(t,"V",(function(){return S})),n.d(t,"Dc",(function(){return _})),n.d(t,"p",(function(){return B})),n.d(t,"Cc",(function(){return T})),n.d(t,"T",(function(){return I})),n.d(t,"q",(function(){return M})),n.d(t,"gb",(function(){return z})),n.d(t,"vb",(function(){return F})),n.d(t,"kd",(function(){return R})),n.d(t,"pb",(function(){return q})),n.d(t,"nb",(function(){return E})),n.d(t,"ob",(function(){return P})),n.d(t,"Jc",(function(){return L})),n.d(t,"qb",(function(){return D})),n.d(t,"Ic",(function(){return A})),n.d(t,"yb",(function(){return H})),n.d(t,"fb",(function(){return V})),n.d(t,"Tb",(function(){return J})),n.d(t,"eb",(function(){return W})),n.d(t,"Sb",(function(){return U})),n.d(t,"sb",(function(){return K})),n.d(t,"X",(function(){return Y})),n.d(t,"w",(function(){return X})),n.d(t,"Nc",(function(){return Q})),n.d(t,"pc",(function(){return G})),n.d(t,"xb",(function(){return Z})),n.d(t,"Lc",(function(){return $})),n.d(t,"Mc",(function(){return ee})),n.d(t,"N",(function(){return te})),n.d(t,"yc",(function(){return ne})),n.d(t,"o",(function(){return re})),n.d(t,"Gc",(function(){return se})),n.d(t,"ab",(function(){return ce})),n.d(t,"bb",(function(){return ie})),n.d(t,"Ab",(function(){return oe})),n.d(t,"jc",(function(){return ae})),n.d(t,"Ac",(function(){return ue})),n.d(t,"Vb",(function(){return le})),n.d(t,"kc",(function(){return de})),n.d(t,"Bc",(function(){return pe})),n.d(t,"Fb",(function(){return he})),n.d(t,"Wb",(function(){return me})),n.d(t,"lb",(function(){return fe})),n.d(t,"zc",(function(){return ge})),n.d(t,"Qc",(function(){return be})),n.d(t,"Bb",(function(){return je})),n.d(t,"mb",(function(){return ve})),n.d(t,"x",(function(){return xe})),n.d(t,"wc",(function(){return ye})),n.d(t,"Fc",(function(){return Oe})),n.d(t,"mc",(function(){return ke})),n.d(t,"r",(function(){return we})),n.d(t,"nc",(function(){return Ne})),n.d(t,"qc",(function(){return Ce})),n.d(t,"t",(function(){return Se})),n.d(t,"rc",(function(){return _e})),n.d(t,"sc",(function(){return Be})),n.d(t,"u",(function(){return Te})),n.d(t,"tc",(function(){return Ie})),n.d(t,"O",(function(){return Me})),n.d(t,"oc",(function(){return ze})),n.d(t,"Rc",(function(){return Fe})),n.d(t,"v",(function(){return Re})),n.d(t,"xc",(function(){return qe})),n.d(t,"n",(function(){return Ee})),n.d(t,"U",(function(){return Pe})),n.d(t,"Mb",(function(){return Le})),n.d(t,"vc",(function(){return De})),n.d(t,"Kb",(function(){return Ae})),n.d(t,"z",(function(){return He})),n.d(t,"Hc",(function(){return Ve})),n.d(t,"Jb",(function(){return Je})),n.d(t,"f",(function(){return We})),n.d(t,"Pc",(function(){return Ue})),n.d(t,"Ib",(function(){return Ke})),n.d(t,"Hb",(function(){return Ye})),n.d(t,"Oc",(function(){return Xe})),n.d(t,"e",(function(){return Qe})),n.d(t,"y",(function(){return Ge})),n.d(t,"Lb",(function(){return Ze})),n.d(t,"Ub",(function(){return $e})),n.d(t,"g",(function(){return et})),n.d(t,"Q",(function(){return tt})),n.d(t,"id",(function(){return nt})),n.d(t,"R",(function(){return rt})),n.d(t,"ac",(function(){return st})),n.d(t,"dc",(function(){return ct})),n.d(t,"cc",(function(){return it})),n.d(t,"fc",(function(){return ot})),n.d(t,"jb",(function(){return at})),n.d(t,"M",(function(){return ut})),n.d(t,"hc",(function(){return lt})),n.d(t,"ec",(function(){return dt})),n.d(t,"uc",(function(){return pt})),n.d(t,"cb",(function(){return ht})),n.d(t,"jd",(function(){return mt})),n.d(t,"I",(function(){return ft})),n.d(t,"Ob",(function(){return gt})),n.d(t,"b",(function(){return bt})),n.d(t,"kb",(function(){return jt})),n.d(t,"h",(function(){return vt})),n.d(t,"k",(function(){return xt})),n.d(t,"j",(function(){return yt})),n.d(t,"i",(function(){return Ot})),n.d(t,"K",(function(){return kt})),n.d(t,"Qb",(function(){return wt})),n.d(t,"Tc",(function(){return Nt})),n.d(t,"Uc",(function(){return Ct})),n.d(t,"a",(function(){return St})),n.d(t,"H",(function(){return _t})),n.d(t,"Z",(function(){return Bt})),n.d(t,"s",(function(){return Tt})),n.d(t,"Ec",(function(){return It})),n.d(t,"Y",(function(){return Mt})),n.d(t,"E",(function(){return zt})),n.d(t,"B",(function(){return Ft})),n.d(t,"C",(function(){return Rt})),n.d(t,"F",(function(){return qt})),n.d(t,"Xc",(function(){return Et})),n.d(t,"Zb",(function(){return Pt})),n.d(t,"Rb",(function(){return Lt})),n.d(t,"J",(function(){return Dt})),n.d(t,"D",(function(){return At})),n.d(t,"G",(function(){return Ht})),n.d(t,"bd",(function(){return Vt})),n.d(t,"Zc",(function(){return Jt})),n.d(t,"ad",(function(){return Wt})),n.d(t,"bc",(function(){return Ut})),n.d(t,"Yc",(function(){return Kt})),n.d(t,"ed",(function(){return Yt})),n.d(t,"L",(function(){return Xt})),n.d(t,"S",(function(){return Qt})),n.d(t,"lc",(function(){return Gt})),n.d(t,"fd",(function(){return Zt})),n.d(t,"cd",(function(){return $t})),n.d(t,"dd",(function(){return en})),n.d(t,"Sc",(function(){return tn})),n.d(t,"Wc",(function(){return nn})),n.d(t,"Eb",(function(){return rn})),n.d(t,"Xb",(function(){return sn})),n.d(t,"ld",(function(){return cn})),n.d(t,"gc",(function(){return on})),n.d(t,"Db",(function(){return an})),n.d(t,"rb",(function(){return un})),n.d(t,"Cb",(function(){return ln})),n.d(t,"P",(function(){return dn})),n.d(t,"Gb",(function(){return pn})),n.d(t,"Pb",(function(){return hn})),n.d(t,"l",(function(){return mn})),n.d(t,"Nb",(function(){return fn})),n.d(t,"Vc",(function(){return gn}));var r=n(402),s="https://marketapi2.1688sup.com",c="https://ewm.83323.cn",i=function(e,t,n,r){var s={method:e,headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))},body:n};return fetch(t,s).then((function(e){if(200==e.status)return e.json();l(e)})).then((function(e){return e})).catch((function(e){}))},o=function(e,t,n,r){var s={responseType:"blob",headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))}};if("get"==e&&n){var c=[];Object.keys(n).forEach((function(e){return c.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+c.join("&"):t+="&"+c.join("&")}return fetch(t,s).then((function(e){if(200==e.status)return e.blob();l(e)})).then((function(e){return e})).catch((function(e){}))},a=function(e,t,n,r){var s="Bearer ".concat(sessionStorage.getItem("authorization")),c=null;if("get"==e&&(c={headers:{Authorization:s}},n)){var i=[];Object.keys(n).forEach((function(e){return i.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+i.join("&"):t+="&"+i.join("&")}"unified"===e&&(c={method:"get",headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("unified-token"))}});return"login"==e&&(c={method:"post",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}),"post"!=e&&"put"!=e&&"delete"!=e||(c={method:e,body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:s}}),fetch(t,c).then((function(e){if(window.timeshow=e.headers.get("Date-Time"),200==e.status)return e.json();l(e)})).then((function(e){return e})).catch((function(e){}))},u=function(e,t,n){e&&200==e.code?t(e.data,e.message):e&&"function"==typeof n&&(r.a.clear(),n(e.message))};function l(e){switch(e.status){case 401:e.json().then((function(e){r.a.clear(),r.a.error((null===e||void 0===e?void 0:e.message)||(null===e||void 0===e?void 0:e.mes)),setTimeout((function(){window.location.href="/"}),2e3)})).catch();break;case 403:e.json().then((function(e){r.a.clear(),r.a.error((null===e||void 0===e?void 0:e.message)||(null===e||void 0===e?void 0:e.mes))})).catch();break;default:return}}var d=function(e){return a("get",s+"/plan",e)},p=function(e){return a("get",s+"/keys",e)},h=function(e){return a("get",s+"/reseller/choice",e)},m=function(e){return a("get",s+"/reseller/merge/".concat(e))},f=function(e){return a("get",s+"/plan/chose_list",e)},g=function(e,t){var n=e?"/"+e:"";return a(n?"put":"post",s+"/plan/step"+n,t)},b=function(e,t){return a("get",s+"/plan/draft/"+e,t)},j=function(e,t){return a("put",s+"/plan/status/"+e,t)},v=function(e,t){return a("post",s+"/plan/"+e+"/keys",t)},x=function(e,t){return a("put",s+"/plan/edit/"+e,t)},y=function(e,t){return a("put",s+"/keys/status/"+e,t)},O=function(e,t){return a("get",s+"/keys/"+e,t)},k=function(e,t){return a("put",s+"/plan/send/"+e,t)},w=function(e,t){return a("put",s+"/keys/cancel/"+e,t)},N=function(e){return a("delete",s+"/plan/delete/"+e)},C=function(e){return function(e,t,n,r){var s=null;if("get"==e&&(s={headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))}},n)){var c=[];Object.keys(n).forEach((function(e){return c.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+c.join("&"):t+="&"+c.join("&")}return fetch(t,s).then((function(e){if(window.timeshow=e.headers.get("Date-Time"),200==e.status)return e.text();l(e)})).then((function(e){return e})).catch((function(e){}))}("get",s+"/codes",e)},S=function(e){return a("get",s+"/codes/"+e)},_=function(e,t){return a("put",s+"/codes/edit/"+e,t)},B=function(e){return a("delete",s+"/codes/discard/"+e)},T=function(e,t){return a("put",s+"/codes/status/"+e,t)},I=function(e){return a("get",s+"/codes/products",e)},M=function(e){return a("delete",s+"/codes/products/"+e)},z=function(e,t){return a("post",s+"/codes/"+e+"/is_require_approval",t)},F=function(e){return a("get",s+"/product/market/products",e)},R=function(e){return i("post",s+"/upload/simple",e)},q=function(e){return a("get",s+"/order",e)},E=function(e){return a("get",s+"/order/"+e)},P=function(e){return a("get",s+"/order/export",e)},L=function(e){return a("put",s+"/order/success/"+e)},D=function(e,t){return a("get",s+"/order/"+e+"/log",t)},A=function(e){return a("put",s+"/order/cancel/"+e)},H=function(e){return a("get",s+"/reseller",e)},V=function(e){return a("get",s+"/reseller/exist_name?name="+e)},J=function(e,t){return a("get",s+"/reseller/exist_name?name="+e,t)},W=function(e){return a("get",s+"/reseller/exist_account/"+e)},U=function(e,t){return a("get",s+"/reseller/exist_account/"+e,t)},K=function(){return a("get",s+"/auth/admin/all")},Y=function(){return a("get",s+"/auth/company/all")},X=function(e){return a("delete",s+"/reseller/"+e)},Q=function(e,t){return a("put",s+"/reseller/status/"+e,t)},G=function(e){return a("post",s+"/reseller/create",e)},Z=function(e){return a("get",s+"/reseller/"+e)},$=function(e,t){return a("put",s+"/reseller/"+e,t)},ee=function(e,t){return a("put",s+"/reseller/password/"+e,t)},te=function(e){return a("get",s+"/auth/admin",e)},ne=function(e,t){return a("put",s+"/auth/admin/status/"+e,t)},re=function(e){return a("delete",s+"/auth/admin/"+e)},se=function(e,t){return a("put",s+"/auth/admin/password/"+e,t)},ce=function(e){return a("get",s+"/auth/department",e)},ie=function(e){return a("get",s+"/auth/departmentJob",e)},oe=function(e){return a("get",s+"/auth/adminRole",e)},ae=function(e){return a("post",s+"/auth/admin",e)},ue=function(e,t){return a("put",s+"/auth/admin/"+e,t)},le=function(e){return a("get",s+"/auth/admin/adminRoleRules/"+e)},de=function(e){return a("post",s+"/auth/admin/createSon",e)},pe=function(e,t){return a("put",s+"/auth/admin/editSon/"+e,t)},he=function(e){return a("get",s+"/auth/admin/sonIndex",e)},me=function(e,t){return a("get",s+"/auth/admin/accountSonIndex/"+e,t)},fe=function(e){return a("get",s+"/auth/admin/roleAccounts/"+e)},ge=function(e){return a("put",s+"/auth/admin/downMigration",e)},be=function(e){return a("put",s+"/auth/admin/equalMigration",e)},je=function(e){return a("get",s+"/auth/adminRole",e)},ve=function(e){return a("get",s+"/auth/menu/tree",e)},xe=function(e){return a("delete",s+"/auth/adminRole/"+e)},ye=function(e){return a("post",s+"/auth/adminRole",e)},Oe=function(e,t){return a("put",s+"/auth/adminRole/"+e,t)},ke=function(e){return a("post",s+"/auth/company",e)},we=function(e){return a("delete",s+"/auth/company/"+e)},Ne=function(e,t){return a("put",s+"/auth/company/"+e,t)},Ce=function(e){return a("post",s+"/auth/department",e)},Se=function(e){return a("delete",s+"/auth/department/"+e)},_e=function(e,t){return a("put",s+"/auth/department/"+e,t)},Be=function(e){return a("post",s+"/auth/departmentJob",e)},Te=function(e){return a("delete",s+"/auth/departmentJob/"+e)},Ie=function(e,t){return a("put",s+"/auth/departmentJob/"+e,t)},Me=function(e){return a("get",s+"/enum",e)},ze=function(e){return a("post",s+"/auth/menu",e)},Fe=function(e,t){return a("put",s+"/auth/menu/"+e,t)},Re=function(e){return a("delete",s+"/auth/menu/"+e)},qe=function(e){return i("post",s+"/plan/theme/custom",e)},Ee=function(e,t){return i("put",s+"/plan/theme/clone/"+e,t)},Pe=function(){return a("get","".concat("https://api.user.1688sup.com/v1","/menu/myCodes?systemId=2"))},Le=function(e){return a("get",s+"/auth/admin/userinfo",e)},De=function(e){return a("post",s+"/auth/login/mobile",e)},Ae=function(e){return a("get",s+"/plan/plan_theme",e)},He=function(e){return a("delete",s+"/plan/theme/"+e)},Ve=function(e,t){return a("put",s+"/plan/theme/"+e,t)},Je=function(e){return a("get",s+"/plan/theme/choice",e)},We=function(e){return a("post",s+"/plan/theme",e)},Ue=function(e,t){return a("put",s+"/plan/plan_theme/"+e,t)},Ke=function(e){return a("get",s+"/plan/theme",e)},Ye=function(e){return a("get",s+"/plan/theme/system",e)},Xe=function(e,t){return a("put",s+"/plan/theme/system/"+e,t)},Qe=function(e){return a("post",s+"/plan/theme/system",e)},Ge=function(e){return a("delete",s+"/plan/theme/system/"+e)},Ze=function(){return a("get",s+"/plan/theme/getThemeType")},$e=function(e,t){return a("get",s+"/key/"+e,t)},et=function(e,t){return a("post",s+"/plan/"+e+"/approvals",t)},tt=function(e,t){return a("get",s+"/approvals/"+e+"/market_approval_data",t)},nt=function(e,t){return a("put",s+"/approvals/"+e+"/terminate",t)},rt=function(e,t){return a("get",s+"/approvals/"+e+"/status")},st=function(e){return a("put",s+"/key/batch_cancel",e)},ct=function(e){return a("put",s+"/key/cancel",e)},it=function(e){return a("put",s+"/key/batch_usage",e)},ot=function(e){return a("put",s+"/key/usage",e)},at=function(e){return a("get",s+"/key/log/list",e)},ut=function(e){return a("post",s+"/keys/mobileAccessVerification",e)},lt=function(e){return a("put",s+"/plan/cancel/"+e)},dt=function(e,t){return a("post",s+"/keys/"+e+"/approval",t)},pt=function(e){return a("get",s+"/auth/logout",e)},ht=function(e){return a("get",s+"/reseller/direct",e)},mt=function(e){return a("put",s+"/key/valid/update",e)},ft=function(e,t){return a("put",s+"/reseller/contact_info/".concat(t),e)},gt=function(){return a("get",s+"/auth/admin/voucherWarningAccount")},bt=function(e,t){return a("post",s+"/codes/voucher/fund/".concat(t),e)},jt=function(e){return a("get",s+"/key",e)},vt=function(e,t){return i("post",s+e,t)},xt=function(e){return a("post",s+"/key/batchUploadVoid",e)},yt=function(e){return a("post",s+"/key/batchUploadUsed",e)},Ot=function(e){return a("post",s+"/keys/batchSend",e)},kt=function(e){return o("get",s+"/key/export",e)},wt=function(e){return a("get",s+"/plan/get_copy_data/"+e)},Nt=function(e){return a("get",s+"/keys/queryKeyBatch",e)},Ct=function(e){return a("get",s+"/plan/queryPlan",e)},St=function(e){return a("post",s+"/coupon/add",e)},_t=function(e,t){return a("put",s+"/coupon/".concat(e),t)},Bt=function(e){return a("get",s+"/coupon",e)},Tt=function(e){return a("put",s+"/coupon/void/".concat(e))},It=function(e,t){return a("put",s+"/coupon/status/".concat(e),t)},Mt=function(e){return a("get",s+"/coupon/".concat(e))},zt=function(e){return a("delete",s+"/goods/".concat(e))},Ft=function(e){return a("delete",s+"/codes/delete/".concat(e))},Rt=function(e){return a("delete",s+"/coupon/delete/".concat(e))},qt=function(e){return a("delete",s+"/keybatch/".concat(e))},Et=function(e){return a("put",s+"/order/refund/".concat(e))},Pt=function(e,t){return a("put",s+"/order/hand_refund/".concat(e),t)},Lt=function(e){return a("get",c+"/export/excel/marketOrder/record",e)},Dt=function(e){return o("get",c+"/export/excel/marketOrder/download/".concat(e))},At=function(e){return a("get",c+"/export/excel/marketOrder/delete/".concat(e))},Ht=function(e){return a("post",s+"/approvals/".concat(e,"/query"))},Vt=function(e){return a("get",s+"/order/searchPendingOrderByObject",e)},Jt=function(e){return a("post",s+"/order/searchPendingOrderByHash",e)},Wt=function(e){return a("post",s+"/order/searchPendingOrderByKeys",e)},Ut=function(e){return function(e,t,n,r){var s={responseType:"blob",method:e,body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))}};return fetch(t,s).then((function(e){if(200==e.status)return e.blob();l(e)})).then((function(e){return e})).catch((function(e){}))}("post",s+"/keybatch/export",e)},Kt=function(e){return a("post",s+"/order/resendCardCode",e)},Yt=function(e,t){return a("put",s+"/reseller/merchant/".concat(e),t)},Xt=function(e){return a("get",s+"/reseller/merchant/generateRsaKey",e)},Qt=function(e){return a("get",s+"/plan/result_message/".concat(e))},Gt=function(e,t){return a("post",s+"/plan/result_message/update/".concat(t),e)},Zt=function(e){return a("post",s+"/voucher/setResellerConf",e)},$t=function(e){return a("post",s+"/voucher/setKeyBatchConf",e)},en=function(e){return a("post",s+"/voucher/setPlanConf",e)},tn=function(e){return a("get",s+"/voucher/queryConfig",e)},nn=function(e){return a("post",s+"/voucher/receiveRetry",e)},rn=function(){return a("get",s+"/plan/settlementType")},sn=function(e){return a("get",s+"/goods/goodsListByPlanId/"+e)},cn=function(e){return a("post",s+"/order/voucherUsageQuery",e)},on=function(e){return a("post",s+"/order/notifyReseller",e)},an=function(e){return a("get",s+"/settlement_order/list",e)},un=function(e){return a("get",s+"/settlement_order/detail/"+e)},ln=function(e){return o("get",s+"/settlement_order/export",e)},dn=function(){return a("get",s+"/reseller/merchant/getApiMode")},pn=function(e){return a("get",s+"/voucher/provider/".concat(e))},hn=function(e){return a("get",s+"/plan/getPostbankMerNo",e)},mn=function(e){return a("post",s+"/plan/bindPostbankMerNo",e)},fn=function(e){return a("get",s+"/order/voucher/list/"+e)},gn=function(e){return a("get",s+"/order/voucher/queryVoucher/"+e)}},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(82),s=n(24),c=n(25),i=n(28),o=n(26),a=n(27),u=n(0),l=n.n(u),d=n(8),p=n.n(d),h=(n(434),n(174)),m=n(1),f=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var r;Object(s.a)(this,n);return(r=t.call(this,e)).clearContent=r.clearContent.bind(Object(i.a)(r)),r.state={iptVal:e.value,errmsg:"",focus:1,iptVallength:0,errshow:!1},r.handleInputChange=r.handleInputChangeFn.bind(Object(i.a)(r)),r.losefofn=r.losefofn.bind(Object(i.a)(r)),r.focusFn=r.focusFn.bind(Object(i.a)(r)),r.sureFns=r.sureFns.bind(Object(i.a)(r)),r}return Object(c.a)(n,[{key:"handleInputChangeFn",value:function(e){""!=e.target.value&&this.setState({errshow:!1})}},{key:"componentWillMount",value:function(){var e=this.props.value?this.props.value:"";if(""!=e&&(this.setState({iptVal:e}),this.setState({iptVallength:String(e).length})),this.props.rule){var t=this.props.rule.message;this.setState({errmsg:t})}}},{key:"clearContent",value:function(e){var t=e.target.value;this.setState({iptVal:t}),this.setState({iptVallength:t.length}),this.props.onChange(t)}},{key:"clearItem",value:function(){this.setState({iptVal:""}),this.setState({iptVallength:0}),this.props.onClearItem()}},{key:"focusFn",value:function(e){this.props.placeholder.length>10&&this.setState({focus:0}),this.props.onfocusFn&&this.props.onfocusFn(e.target.value)}},{key:"losefofn",value:function(e){this.props.placeholder.length>10&&this.setState({focus:1}),""==e.target.value?this.setState({errshow:!0}):this.props.onblurFn&&this.props.onblurFn(e.target.value)}},{key:"sureFns",value:function(e){e.target.value&&13==e.keyCode&&this.props.wordSearch&&this.props.wordSearch()}},{key:"showpwdFn",value:function(e){e.props.markedShow&&("password"==e.props.kind?e.props.markedShow("text"):e.props.markedShow("password"))}},{key:"render",value:function(){var e,t,n,s=this,c=this.props,i=c.defalutCls,o=c.maxLength,a=c.kind,u=c.disabled,l=c.unit,d=c.front,f=c.icon,g=(c.value,c.required),b=c.countShow,j=(c.className,c.onChange,c.labelText),v=c.alignment,x=c.placeholder,y=c.height,O=c.width,k=c.clearShow,w=c.labelWidth;t=" "!=this.state.errmsg&&""==this.state.iptVal?"errorbor":"successbor",g||(t=""==this.state.iptVal?"normolbor":"successbor"),n=0!=this.state.focus||this.props.prolong?"losefocus":"getfocus";var N=p()((e={},Object(r.a)(e,"".concat(i),i),Object(r.a)(e,"".concat(t),"".concat(t)),Object(r.a)(e,"".concat(n),"".concat(n)),Object(r.a)(e,"searchShow","".concat(f)),Object(r.a)(e,"",{}),e));return Object(m.jsxs)("div",{className:"iptfillself",children:["0px"==this.props.labelWidth?null:Object(m.jsxs)("div",{className:"label",style:{width:w,textAlign:v},children:[Object(m.jsx)("span",{className:"labeltip",children:j}),g?Object(m.jsx)("font",{className:"warning",children:"*"}):null]}),Object(m.jsxs)("div",{className:"iptlabel",children:[Object(m.jsxs)("div",{className:"iptright",children:[d?Object(m.jsx)("font",{className:"front",children:d}):null,f?Object(m.jsx)(h.a,{type:"search",className:"iconType"}):null,Object(m.jsx)("input",{autoComplete:"password"==a?"new-password":"off",name:this.props.name,disabled:u,type:a,onBlur:this.losefofn,onFocus:this.focusFn,value:this.props.value,onKeyDown:function(e){return s.sureFns(e)},maxLength:o,onChange:this.clearContent,onInput:this.handleInputChange,style:{resize:"none",height:y,lineHeight:y,width:O,textOverflow:"ellipsis"},className:N,placeholder:x||"\u8bf7\u8f93\u5165"}),Object(m.jsxs)("div",{className:"ipticonR",children:[0==u&&this.props.markedShow?Object(m.jsx)("span",{className:"showpwd",onClick:function(){return s.showpwdFn(s)},children:"text"==a?Object(m.jsx)(h.a,{type:"eye-o",className:"pwdShow"}):Object(m.jsx)(h.a,{className:"pwdShow",type:"closed-eye"})}):null,0==u&&1==k&&this.state.iptVal?Object(m.jsxs)("svg",{onClick:this.clearItem.bind(this),viewBox:"0 0 16 16",width:"16px",height:"16px",children:[Object(m.jsx)("circle",{fill:"#AAAFBA",fillRule:"evenodd",cx:"8",cy:"8",r:"8"}),Object(m.jsx)("path",{d:"M5.333 5.333l5.334 5.334M10.667 5.333l-5.334 5.334",stroke:"#FFF",strokeLinecap:"square"})]}):null,0==u&&1==b?Object(m.jsxs)("span",{className:"countTip",children:[String(this.props.value).length,"/",o]}):null,l?Object(m.jsx)("font",{className:"unit",children:l}):null]})]}),this.state.errshow||" "!=this.state.errmsg&&""==this.state.iptVal?Object(m.jsx)("p",{className:"errtip",children:this.state.errmsg}):null]})]})}}]),n}(l.a.Component);f.defaultProps={defalutCls:"keep-ipt",height:"40px",width:"200px",clearShow:!0,alignment:"left",countShow:!0,required:!1,labelWidth:"120px",icon:"",kind:"text",unit:null,front:null,disabled:!1}},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),c=n(26),i=n(27),o=n(0),a=n.n(o),u=(n(430),n(1)),l=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,e)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.props,t=e.labelname,n=(e.prop,e.labelwidth),r=e.myClassName,s=e.id,c=e.required;return Object(u.jsxs)("div",{className:r?r+" form-Item":"form-Item",id:s||null,children:[Object(u.jsxs)("div",{className:"form-label",style:{width:n||"180px"},children:[t,c?Object(u.jsx)("span",{className:"mustwrite",children:"*"}):null]}),Object(u.jsx)("div",{className:"form-compontent",children:this.props.children}),Object(u.jsx)("div",{className:"form-expand",children:this.props.expand})]})}}]),n}(a.a.Component);l.defaultProps={required:"*"}},64:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(24),s=n(25),c=n(26),i=n(27),o=n(0),a=n.n(o),u=(n(431),n(432)),l=n(523),d=n(88),p=n(18),h=n.n(p),m=n(74),f=n(1),g=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(e){var s;return Object(r.a)(this,n),(s=t.call(this,e)).state={children:e.children,model:e.model,rules:e.rules},s}return Object(s.a)(n,[{key:"componentWillReceiveProps",value:function(e){this.setState({children:e.children}),this.setState({model:e.model}),this.setState({rules:e.rules})}},{key:"componentDidMount",value:function(){var e=this;m.a.addListener("change",(function(t,n){var r=document.getElementById(t).getElementsByClassName("form-compontent"),s=Object(u.a)(e.props.rules,t),c=r[0].firstChild;n?e.removeClass(r[0]):setTimeout((function(){e.isRequired("",c.className,r[0],s[0].message)}),300)}));var t=this;m.a.addListener("input",(function(n,r){var s=document.getElementById(n).getElementsByClassName("form-compontent"),c=Object(u.a)(e.props.rules,n),i=s[0].firstChild;if(c)for(var o=0;o<c.length;o++){if("required"==c[o].type){if(""==r){t.removeClass(s[0]),t.isRequired(r,i.className,s[0],c[o].message);break}t.removeClass(s[0])}if("regExp"==c[o].type){var a=c[o].reg,l=r;new RegExp(a).test(l)?t.removeClass(s[0]):t.isRequired(r,i.className,s[0],c[o].message)}}})),m.a.addListener("close",(function(t){var n=document.getElementById(t).getElementsByClassName("form-compontent"),r=Object(u.a)(e.props.rules,t),s=n[0].firstChild;setTimeout((function(){e.isRequired("",s.className,n[0],r[0].message)}),300)}));for(var n,r,s=h.a.findDOMNode(this).getElementsByClassName("form-Item"),c=Object(l.a)(this.props.children,(function(e){return null!=e})),i=function(){var t=(n=s[o].children)[1],r=c[o],i=e;if(null==r)return{v:void 0};if(Object(d.a)(r));else{var a,l=Object(u.a)(r,"props.children.props"),p=n[1].children[0].getElementsByTagName("input");0==p.length&&(p=n[1].children[0].getElementsByTagName("textarea"));var h=n[1].children[0],m="";null!==r&&void 0!==r&&null!==(a=r.props)&&void 0!==a&&a.prop&&(m=Object(u.a)(i.props.rules,r.props.prop)),p.length>0&&m&&(p[0].oninput=function(e){for(var n=0;n<m.length;n++){if("required"==m[n].type){if(""==e.target.value){i.removeClass(t),l&&i.isRequired(l.value,h.className,t,m[n].message);break}i.removeClass(t)}if("regExp"==m[n].type){var r=m[n].reg,s=new RegExp(r),c=e.target.value;s.test(c)?i.removeClass(t):l&&i.isRequired(l.value,h.className,t,m[n].message)}}},p[0].onblur=function(e){for(var n=0;n<m.length;n++)if(""==e.target.value)"required"==m[n].type&&(i.removeClass(t),l&&i.isRequired(l.value,h.className,t,m[n].message));else if("regExp"==m[n].type){var r=m[n].reg,s=new RegExp(r),c=e.target.value;s.test(c)?i.removeClass(t):l&&i.isRequired(l.value,h.className,t,m[n].message)}else i.removeClass(t)})}},o=0;o<s.length;o++)if(r=i())return r.v}},{key:"removeClass",value:function(e){for(var t=e.firstChild.className,n=e.getElementsByClassName("error-msg");n.length>0;)n[0].remove();t.indexOf("error")>-1&&(e.firstChild.className=t.replace(" error",""))}},{key:"isRequired",value:function(e,t,n,r){if(n.firstChild.className.indexOf("error")<0&&n.lastChild.className.indexOf("error-msg")<0){var s=document.createElement("div");s.className="error-msg",s.innerHTML="<span>"+r+"</span>",n.firstChild.className+=" error",n.appendChild(s)}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.children[0];Object(u.a)(n,"props.children.props");t.children,this.state.children}},{key:"cancel",value:function(){for(var e=document.getElementsByClassName("form-Item"),t=0;t<e.length;t++){var n=e[t].children,r=n[1],s=this.props.children[t],c=n[1].children[0],i=Object(u.a)(s,"props.children.props"),o=Object(u.a)(this.props.rules,s.props.prop);o&&(this.removeClass(r),this.isRequired(i.value,c.className,r,o[0].message))}}},{key:"validator",value:function(){for(var e=h.a.findDOMNode(this).getElementsByClassName("form-Item"),t=this,n=!0,r=Object(l.a)(this.props.children,(function(e){return null!=e})),s=0;s<e.length;s++){var c=e[s].children,i=c[1],o=r[s],a=c[1].children[0];if(Object(d.a)(o))for(var p=0;p<o.length;p++){var m=Object(u.a)(o[p],"props.children.props"),f=Object(u.a)(this.props.rules,o[p].props.prop);if(f)for(var g=0;g<f.length;g++){if("required"==f[g].type){if(""==m.value||void 0==m.value){t.removeClass(i),t.isRequired(m.value,a.className,i,f[g].message),n=!1;break}t.removeClass(i)}if("regExp"==f[g].type){var b=f[g].reg,j=new RegExp(b),v=m.value;if(!j.test(v)){n=!1,t.isRequired(m.value,a.className,i,f[g].message);break}t.removeClass(i)}}}else{var x,y=Object(u.a)(o,"props.children.props");if(y&&y.hasOwnProperty("children"))Object(d.a)(y.children)&&(y=y.children[0].props);else{var O=Object(u.a)(o,"props.children");O&&Object(d.a)(O)&&(y=O[0].props)}var k=Object(u.a)(this.props.rules,null===o||void 0===o||null===(x=o.props)||void 0===x?void 0:x.prop);if(k)for(var w=0;w<k.length;w++){if("required"==k[w].type){if(""==y.value||void 0==y.value){var N=i.getElementsByTagName("input");N&&N.length>0&&N[0].focus(),t.removeClass(i),t.isRequired(y.value,a.className,i,k[w].message),n=!1;break}t.removeClass(i)}if("regExp"==k[w].type){b=k[w].reg,j=new RegExp(b);var C=y.value;if(!j.test(C)){n=!1,t.isRequired(y.value,a.className,i,k[w].message);break}t.removeClass(i)}}}}return n}},{key:"render",value:function(){return Object(f.jsxs)("div",{className:"form",children:[" ",this.props.children," "]})}}]),n}(a.a.Component)},74:function(e,t,n){"use strict";var r=n(426);t.a=new r.EventEmitter},92:function(e,t,n){}}]);