1 line
54 KiB
JavaScript
1 line
54 KiB
JavaScript
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[2],{112:function(e,t,n){},152:function(e,t,n){},300:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(0)),a=n.n(o),u=n(218),l=n(265),d=n(264),p=(n(301),n(302),n(303)),m=n(1),h=function(e){Object(i.a)(n,e);var t=Object(c.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(m.jsx)("div",{className:"edittemplate",children:Object(m.jsxs)("div",{children:[Object(m.jsx)("div",{className:"modal model44",style:{background:"rgba(0,0,0,0.8)"}}),Object(m.jsxs)("div",{className:"preview-box",children:[Object(m.jsx)(u.a,{type:"close",className:"preview-top-close",onClick:function(t){e.onClose(t)}}),Object(m.jsx)("div",{style:{height:"100%"},children:Object(m.jsxs)("div",{className:"previewComponent",children:[Object(m.jsx)("div",{className:"previewbody",children:Object(m.jsx)("div",{className:"ctorSize",style:this.state.setStyle,children:Object(m.jsx)(p.a,{data:this.props.previewData,pageType:this.props.showType,fontSize:this.state.fontSize,ref:"preview",step:this.state.pageStep})})}),Object(m.jsxs)("div",{className:"left-choice",children:[Object(m.jsxs)("div",{className:"exchange-page",children:[Object(m.jsx)("p",{className:"preview-setting",children:"\u843d\u5730\u9875\u9884\u89c8:"}),Object(m.jsxs)("section",{className:"screen-size-selector",children:[Object(m.jsxs)("div",{className:667==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,667)},children:["\u4e3b\u6d41\u673a\u578b",Object(m.jsx)("span",{children:"375x667"})]}),Object(m.jsxs)("div",{className:750==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,750)},children:["\u5168\u9762\u5c4f",Object(m.jsx)("span",{children:"375x750"})]}),Object(m.jsxs)("div",{className:812==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,812)},children:["\u5218\u6d77\u5c4f",Object(m.jsx)("span",{children:"375x812"})]}),Object(m.jsxs)("div",{className:500==this.state.activeHeight?"size active":"size",onClick:function(){return e.handleSize(375,500)},children:["\u5c0f\u5c4f\u624b\u673a",Object(m.jsx)("span",{children:"375x500"})]})]})]}),Object(m.jsxs)("div",{className:"exchange-page",children:[Object(m.jsx)("p",{children:"\u9875\u9762\u7c7b\u578b:"}),Object(m.jsxs)(l.a,{onChange:function(t){e.onpageChange(t)},value:this.state.showPage,children:[Object(m.jsx)(d.a,{value:1,children:"\u843d\u5730\u9875"}),Object(m.jsx)(d.a,{value:2,children:"\u5217\u8868\u9875"}),Object(m.jsx)(d.a,{value:3,children:"\u8be6\u60c5\u9875"})]})]}),3==this.state.showPage?Object(m.jsxs)("div",{className:"exchange-page",children:[Object(m.jsx)("p",{children:"\u8be6\u60c5\u9875\u5206\u7c7b:"}),Object(m.jsxs)(l.a,{onChange:function(t){e.ondetailTypeChange(t)},value:this.state.detailType,children:[Object(m.jsx)(d.a,{value:3,children:"\u6743\u2003\u76ca"}),Object(m.jsx)(d.a,{value:4,children:"\u7acb\u51cf\u91d1"}),Object(m.jsx)(d.a,{value:5,children:"\u7ea2\u5305"})]})]}):null]})]})})]})]})})}}]),n}(a.a.Component)},301:function(e,t,n){},302:function(e,t,n){},303:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(0)),a=n.n(o),u=n(451),l=n(453),d=n(454),p=n(455),m=(n(456),n(457)),h=n(458),f=(n(521),n(1)),g=function(e){Object(i.a)(n,e);var t=Object(c.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)(h.a,{templateType:this.props.pageType,detaildata:t.product_detail}),5==this.props.step&&Object(f.jsx)(m.a,{})]})})}}]),n}(a.a.Component)},451:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(452),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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,i=t.background,c=t.iswitch;this.setState({defaultText:r,selectText:s,background:i,iswitch:c});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)},452:function(e,t,n){},453:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),i=n(26),c=n(27),o=n(0),a=n.n(o),u=(n(452),n(39),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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)},454:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(152),n(112),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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)},455:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),i=n(26),c=n(27),o=n(0),a=n.n(o),u=(n(152),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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)},456:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(80)),a=n(0),u=n.n(a),l=n(608),d=n(451),p=n(453),m=(n(152),n(112),n(1)),h=function(e){Object(i.a)(n,e);var t=Object(c.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(m.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(m.jsxs)("div",{className:"goodstemplate_Xcenter",children:[t.search&&1==t.search.iswitch?Object(m.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(m.jsx)(p.a,{searchConfig:t.search})}):null,Object(m.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(m.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(m.jsx)("img",{className:"topbanner",src:t.top_image}):Object(m.jsx)("img",{className:"topbanner",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/goodstop.png"}),t.picture&&1==t.picture.iswitch?Object(m.jsx)("div",{onClick:function(t){return e.customComponent(t,"picture","marketing-tupian","\u56fe\u7247")},ref:"picture",className:"picture"==this.state.selectDom?"selectBorder":"",children:Object(m.jsx)("img",{src:t.picture.img,alt:"",className:"picture"})}):null,t.title&&1==t.title.iswitch&&1==t.title.comstyle?Object(m.jsx)("div",{onClick:function(t){return e.customComponent(t,"title","marketing-fuwenbenkuang","\u6807\u9898")},ref:"title",className:"title"==this.state.selectDom?"selectBorder":"",children:Object(m.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(m.jsx)("div",{onClick:function(t){return e.customComponent(t,"title","marketing-fuwenbenkuang","\u6807\u9898")},ref:"title",className:"title"==this.state.selectDom?"selectBorder":"",children:Object(m.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(m.jsx)("div",{className:"parting-line"}):null,2==t.list?Object(m.jsx)("img",{className:"goodsPic",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/swiper.png"}):3==t.list?Object(m.jsx)("img",{className:"goodsPicMatrax",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/matrix.png"}):Object(m.jsx)("img",{className:"goodsPicMatrax",src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/listnew.png"}),2==t.list?Object(m.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(m.jsxs)("ul",{className:"redemptionCode-tabs",children:[Object(m.jsxs)("li",{children:[Object(m.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/home.png",alt:!0}),Object(m.jsx)("p",{children:"\u9996\u9875"})]}),Object(m.jsxs)("li",{children:[Object(m.jsx)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/coupon/bottombar/order.png",alt:!0}),Object(m.jsx)("p",{children:"\u8ba2\u5355"})]})]}),1==t.describe.type?Object(m.jsx)("img",{src:t.describe.bg_image,alt:"",className:1==t.list&&t.describe.bg_image?"bottomTip bottomTipview":"bottomTip"}):3==t.describe.type?Object(m.jsx)("div",{className:"bottomactiveTip",dangerouslySetInnerHTML:{__html:t.describe.content}}):null,2==t.describe.type?Object(m.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(m.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(m.jsx)(d.a,{bottomBarConfig:t.bottomBar})}):null,this.state.selectDom?Object(m.jsxs)("div",{className:"delete-component",style:{top:this.state.clientY},children:[Object(m.jsx)("span",{children:this.state.comName}),Object(m.jsx)("b",{className:"split",children:"|"}),Object(m.jsx)("span",{className:"del-color",onClick:this.deleteFn.bind(this),children:"\u5220\u9664"})]}):null]})}}]),n}(u.a.Component)},457:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(39),n(152),n(112);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"})]})}},458:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),s=n(25),i=n(26),c=n(27),o=(n(39),n(0)),a=n.n(o),u=(n(152),n(112),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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)},501:function(e,t,n){},502:function(e,t,n){},504:function(e,t,n){},521:function(e,t,n){},60:function(e,t,n){"use strict";n.d(t,"cc",(function(){return a})),n.d(t,"zb",(function(){return l})),n.d(t,"mb",(function(){return d})),n.d(t,"Bb",(function(){return p})),n.d(t,"Eb",(function(){return m})),n.d(t,"yb",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"hb",(function(){return g})),n.d(t,"pd",(function(){return b})),n.d(t,"c",(function(){return j})),n.d(t,"Pc",(function(){return v})),n.d(t,"od",(function(){return x})),n.d(t,"lb",(function(){return y})),n.d(t,"nc",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"D",(function(){return w})),n.d(t,"Z",(function(){return N})),n.d(t,"Y",(function(){return C})),n.d(t,"Ic",(function(){return S})),n.d(t,"s",(function(){return _})),n.d(t,"Hc",(function(){return B})),n.d(t,"W",(function(){return T})),n.d(t,"t",(function(){return I})),n.d(t,"kb",(function(){return M})),n.d(t,"Ab",(function(){return z})),n.d(t,"td",(function(){return F})),n.d(t,"ub",(function(){return q})),n.d(t,"rb",(function(){return R})),n.d(t,"tb",(function(){return E})),n.d(t,"Oc",(function(){return P})),n.d(t,"vb",(function(){return L})),n.d(t,"Nc",(function(){return D})),n.d(t,"Db",(function(){return A})),n.d(t,"jb",(function(){return H})),n.d(t,"Xb",(function(){return V})),n.d(t,"ib",(function(){return J})),n.d(t,"Wb",(function(){return W})),n.d(t,"xb",(function(){return U})),n.d(t,"ab",(function(){return K})),n.d(t,"z",(function(){return Y})),n.d(t,"Sc",(function(){return X})),n.d(t,"uc",(function(){return Q})),n.d(t,"Cb",(function(){return G})),n.d(t,"Qc",(function(){return Z})),n.d(t,"Rc",(function(){return $})),n.d(t,"Q",(function(){return ee})),n.d(t,"Dc",(function(){return te})),n.d(t,"r",(function(){return ne})),n.d(t,"Lc",(function(){return re})),n.d(t,"eb",(function(){return se})),n.d(t,"fb",(function(){return ie})),n.d(t,"Fb",(function(){return ce})),n.d(t,"oc",(function(){return oe})),n.d(t,"Fc",(function(){return ae})),n.d(t,"Zb",(function(){return ue})),n.d(t,"pc",(function(){return le})),n.d(t,"Gc",(function(){return de})),n.d(t,"Kb",(function(){return pe})),n.d(t,"ac",(function(){return me})),n.d(t,"pb",(function(){return he})),n.d(t,"Ec",(function(){return fe})),n.d(t,"Vc",(function(){return ge})),n.d(t,"Gb",(function(){return be})),n.d(t,"qb",(function(){return je})),n.d(t,"A",(function(){return ve})),n.d(t,"Bc",(function(){return xe})),n.d(t,"Kc",(function(){return ye})),n.d(t,"rc",(function(){return Oe})),n.d(t,"u",(function(){return ke})),n.d(t,"sc",(function(){return we})),n.d(t,"vc",(function(){return Ne})),n.d(t,"w",(function(){return Ce})),n.d(t,"wc",(function(){return Se})),n.d(t,"xc",(function(){return _e})),n.d(t,"x",(function(){return Be})),n.d(t,"yc",(function(){return Te})),n.d(t,"R",(function(){return Ie})),n.d(t,"tc",(function(){return Me})),n.d(t,"Wc",(function(){return ze})),n.d(t,"y",(function(){return Fe})),n.d(t,"Cc",(function(){return qe})),n.d(t,"p",(function(){return Re})),n.d(t,"X",(function(){return Ee})),n.d(t,"Rb",(function(){return Pe})),n.d(t,"Ac",(function(){return Le})),n.d(t,"Pb",(function(){return De})),n.d(t,"C",(function(){return Ae})),n.d(t,"Mc",(function(){return He})),n.d(t,"Ob",(function(){return Ve})),n.d(t,"f",(function(){return Je})),n.d(t,"Uc",(function(){return We})),n.d(t,"Nb",(function(){return Ue})),n.d(t,"Mb",(function(){return Ke})),n.d(t,"Tc",(function(){return Ye})),n.d(t,"e",(function(){return Xe})),n.d(t,"B",(function(){return Qe})),n.d(t,"Qb",(function(){return Ge})),n.d(t,"Yb",(function(){return Ze})),n.d(t,"gd",(function(){return $e})),n.d(t,"kc",(function(){return et})),n.d(t,"g",(function(){return tt})),n.d(t,"T",(function(){return nt})),n.d(t,"qd",(function(){return rt})),n.d(t,"U",(function(){return st})),n.d(t,"ec",(function(){return it})),n.d(t,"hc",(function(){return ct})),n.d(t,"gc",(function(){return ot})),n.d(t,"jc",(function(){return at})),n.d(t,"nb",(function(){return ut})),n.d(t,"P",(function(){return lt})),n.d(t,"mc",(function(){return dt})),n.d(t,"ic",(function(){return pt})),n.d(t,"zc",(function(){return mt})),n.d(t,"gb",(function(){return ht})),n.d(t,"sd",(function(){return ft})),n.d(t,"M",(function(){return gt})),n.d(t,"Tb",(function(){return bt})),n.d(t,"b",(function(){return jt})),n.d(t,"ob",(function(){return vt})),n.d(t,"h",(function(){return xt})),n.d(t,"k",(function(){return yt})),n.d(t,"j",(function(){return Ot})),n.d(t,"i",(function(){return kt})),n.d(t,"N",(function(){return wt})),n.d(t,"Vb",(function(){return Nt})),n.d(t,"Zc",(function(){return Ct})),n.d(t,"ad",(function(){return St})),n.d(t,"a",(function(){return _t})),n.d(t,"L",(function(){return Bt})),n.d(t,"cb",(function(){return Tt})),n.d(t,"v",(function(){return It})),n.d(t,"Jc",(function(){return Mt})),n.d(t,"bb",(function(){return zt})),n.d(t,"H",(function(){return Ft})),n.d(t,"F",(function(){return qt})),n.d(t,"G",(function(){return Rt})),n.d(t,"I",(function(){return Et})),n.d(t,"ed",(function(){return Pt})),n.d(t,"dc",(function(){return Lt})),n.d(t,"Yc",(function(){return Dt})),n.d(t,"sb",(function(){return At})),n.d(t,"J",(function(){return Ht})),n.d(t,"bd",(function(){return Vt})),n.d(t,"K",(function(){return Jt})),n.d(t,"jd",(function(){return Wt})),n.d(t,"hd",(function(){return Ut})),n.d(t,"id",(function(){return Kt})),n.d(t,"fc",(function(){return Yt})),n.d(t,"fd",(function(){return Xt})),n.d(t,"md",(function(){return Qt})),n.d(t,"O",(function(){return Gt})),n.d(t,"V",(function(){return Zt})),n.d(t,"qc",(function(){return $t})),n.d(t,"nd",(function(){return en})),n.d(t,"kd",(function(){return tn})),n.d(t,"ld",(function(){return nn})),n.d(t,"Xc",(function(){return rn})),n.d(t,"dd",(function(){return sn})),n.d(t,"Jb",(function(){return cn})),n.d(t,"bc",(function(){return on})),n.d(t,"ud",(function(){return an})),n.d(t,"lc",(function(){return un})),n.d(t,"Ib",(function(){return ln})),n.d(t,"wb",(function(){return dn})),n.d(t,"Hb",(function(){return pn})),n.d(t,"S",(function(){return mn})),n.d(t,"Lb",(function(){return hn})),n.d(t,"Ub",(function(){return fn})),n.d(t,"l",(function(){return gn})),n.d(t,"Sb",(function(){return bn})),n.d(t,"cd",(function(){return jn})),n.d(t,"q",(function(){return vn})),n.d(t,"n",(function(){return xn})),n.d(t,"m",(function(){return yn})),n.d(t,"E",(function(){return On})),n.d(t,"db",(function(){return kn})),n.d(t,"rd",(function(){return wn}));var r=n(472),s="https://marketapi2.1688sup.com",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();u(e)})).then((function(e){return e})).catch((function(e){}))},c=function(e,t,n,r){var s={responseType:"blob",headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))}};if("get"==e&&n){var i=[];Object.keys(n).forEach((function(e){return i.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+i.join("&"):t+="&"+i.join("&")}return fetch(t,s).then((function(e){if(200==e.status)return e.blob();u(e)})).then((function(e){return e})).catch((function(e){}))},o=function(e,t,n,r){var s="Bearer ".concat(sessionStorage.getItem("authorization")),i=null;if("get"==e&&(i={headers:{Authorization:s}},n)){var c=[];Object.keys(n).forEach((function(e){return c.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+c.join("&"):t+="&"+c.join("&")}"unified"===e&&(i={method:"get",headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("unified-token"))}});return"login"==e&&(i={method:"post",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}),"post"!=e&&"put"!=e&&"delete"!=e||(i={method:e,body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:s}}),fetch(t,i).then((function(e){if(window.timeshow=e.headers.get("Date-Time"),200==e.status)return e.json();u(e)})).then((function(e){return e})).catch((function(e){}))},a=function(e,t,n){e&&200==e.code?t(e.data,e.message):e&&"function"==typeof n&&(r.a.clear(),n(e.message))};function u(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 l=function(e){return o("get",s+"/plan",e)},d=function(e){return o("get",s+"/keys",e)},p=function(e){return o("get",s+"/reseller/choice",e)},m=function(e){return o("get",s+"/reseller/merge/".concat(e))},h=function(e){return o("get",s+"/plan/chose_list",e)},f=function(e,t){var n=e?"/"+e:"";return o(n?"put":"post",s+"/plan/step"+n,t)},g=function(e,t){return o("get",s+"/plan/draft/"+e,t)},b=function(e,t){return o("put",s+"/plan/status/"+e,t)},j=function(e,t){return o("post",s+"/plan/"+e+"/keys",t)},v=function(e,t){return o("put",s+"/plan/edit/"+e,t)},x=function(e,t){return o("put",s+"/keys/status/"+e,t)},y=function(e,t){return o("get",s+"/keys/"+e,t)},O=function(e,t){return o("put",s+"/plan/send/"+e,t)},k=function(e,t){return o("put",s+"/keys/cancel/"+e,t)},w=function(e){return o("delete",s+"/plan/delete/"+e)},N=function(e){return function(e,t,n,r){var s=null;if("get"==e&&(s={headers:{Authorization:"Bearer ".concat(sessionStorage.getItem("authorization"))}},n)){var i=[];Object.keys(n).forEach((function(e){return i.push(e+"="+n[e])})),-1===t.search(/\?/)?t+="?"+i.join("&"):t+="&"+i.join("&")}return fetch(t,s).then((function(e){if(window.timeshow=e.headers.get("Date-Time"),200==e.status)return e.text();u(e)})).then((function(e){return e})).catch((function(e){}))}("get",s+"/codes",e)},C=function(e){return o("get",s+"/codes/"+e)},S=function(e,t){return o("put",s+"/codes/edit/"+e,t)},_=function(e){return o("delete",s+"/codes/discard/"+e)},B=function(e,t){return o("put",s+"/codes/status/"+e,t)},T=function(e){return o("get",s+"/codes/products",e)},I=function(e){return o("delete",s+"/codes/products/"+e)},M=function(e,t){return o("post",s+"/codes/"+e+"/is_require_approval",t)},z=function(e){return o("get",s+"/product/market/products",e)},F=function(e){return i("post",s+"/upload/simple",e)},q=function(e){return o("get",s+"/order",e)},R=function(e){return o("get",s+"/order/"+e)},E=function(e){return o("get",s+"/order/export",e)},P=function(e){return o("put",s+"/order/success/"+e)},L=function(e,t){return o("get",s+"/order/"+e+"/log",t)},D=function(e){return o("put",s+"/order/cancel/"+e)},A=function(e){return o("get",s+"/reseller",e)},H=function(e){return o("get",s+"/reseller/exist_name?name="+e)},V=function(e,t){return o("get",s+"/reseller/exist_name?name="+e,t)},J=function(e){return o("get",s+"/reseller/exist_account/"+e)},W=function(e,t){return o("get",s+"/reseller/exist_account/"+e,t)},U=function(){return o("get",s+"/auth/admin/all")},K=function(){return o("get",s+"/auth/company/all")},Y=function(e){return o("delete",s+"/reseller/"+e)},X=function(e,t){return o("put",s+"/reseller/status/"+e,t)},Q=function(e){return o("post",s+"/reseller/create",e)},G=function(e){return o("get",s+"/reseller/"+e)},Z=function(e,t){return o("put",s+"/reseller/"+e,t)},$=function(e,t){return o("put",s+"/reseller/password/"+e,t)},ee=function(e){return o("get",s+"/auth/admin",e)},te=function(e,t){return o("put",s+"/auth/admin/status/"+e,t)},ne=function(e){return o("delete",s+"/auth/admin/"+e)},re=function(e,t){return o("put",s+"/auth/admin/password/"+e,t)},se=function(e){return o("get",s+"/auth/department",e)},ie=function(e){return o("get",s+"/auth/departmentJob",e)},ce=function(e){return o("get",s+"/auth/adminRole",e)},oe=function(e){return o("post",s+"/auth/admin",e)},ae=function(e,t){return o("put",s+"/auth/admin/"+e,t)},ue=function(e){return o("get",s+"/auth/admin/adminRoleRules/"+e)},le=function(e){return o("post",s+"/auth/admin/createSon",e)},de=function(e,t){return o("put",s+"/auth/admin/editSon/"+e,t)},pe=function(e){return o("get",s+"/auth/admin/sonIndex",e)},me=function(e,t){return o("get",s+"/auth/admin/accountSonIndex/"+e,t)},he=function(e){return o("get",s+"/auth/admin/roleAccounts/"+e)},fe=function(e){return o("put",s+"/auth/admin/downMigration",e)},ge=function(e){return o("put",s+"/auth/admin/equalMigration",e)},be=function(e){return o("get",s+"/auth/adminRole",e)},je=function(e){return o("get",s+"/auth/menu/tree",e)},ve=function(e){return o("delete",s+"/auth/adminRole/"+e)},xe=function(e){return o("post",s+"/auth/adminRole",e)},ye=function(e,t){return o("put",s+"/auth/adminRole/"+e,t)},Oe=function(e){return o("post",s+"/auth/company",e)},ke=function(e){return o("delete",s+"/auth/company/"+e)},we=function(e,t){return o("put",s+"/auth/company/"+e,t)},Ne=function(e){return o("post",s+"/auth/department",e)},Ce=function(e){return o("delete",s+"/auth/department/"+e)},Se=function(e,t){return o("put",s+"/auth/department/"+e,t)},_e=function(e){return o("post",s+"/auth/departmentJob",e)},Be=function(e){return o("delete",s+"/auth/departmentJob/"+e)},Te=function(e,t){return o("put",s+"/auth/departmentJob/"+e,t)},Ie=function(e){return o("get",s+"/enum",e)},Me=function(e){return o("post",s+"/auth/menu",e)},ze=function(e,t){return o("put",s+"/auth/menu/"+e,t)},Fe=function(e){return o("delete",s+"/auth/menu/"+e)},qe=function(e){return i("post",s+"/plan/theme/custom",e)},Re=function(e,t){return i("put",s+"/plan/theme/clone/"+e,t)},Ee=function(){return o("get","".concat("https://api.user.1688sup.com/v1","/menu/myCodes?systemId=2"))},Pe=function(e){return o("get",s+"/auth/admin/userinfo",e)},Le=function(e){return o("post",s+"/auth/login/mobile",e)},De=function(e){return o("get",s+"/plan/plan_theme",e)},Ae=function(e){return o("delete",s+"/plan/theme/"+e)},He=function(e,t){return o("put",s+"/plan/theme/"+e,t)},Ve=function(e){return o("get",s+"/plan/theme/choice",e)},Je=function(e){return o("post",s+"/plan/theme",e)},We=function(e,t){return o("put",s+"/plan/plan_theme/"+e,t)},Ue=function(e){return o("get",s+"/plan/theme",e)},Ke=function(e){return o("get",s+"/plan/theme/system",e)},Ye=function(e,t){return o("put",s+"/plan/theme/system/"+e,t)},Xe=function(e){return o("post",s+"/plan/theme/system",e)},Qe=function(e){return o("delete",s+"/plan/theme/system/"+e)},Ge=function(){return o("get",s+"/plan/theme/getThemeType")},Ze=function(e,t){return o("get",s+"/key/"+e,t)},$e=function(e){return o("put",s+"/key/reset",e)},et=function(e){return o("post",s+"/key/merchantUsageNotify",e)},tt=function(e,t){return o("post",s+"/plan/"+e+"/approvals",t)},nt=function(e,t){return o("get",s+"/approvals/"+e+"/market_approval_data",t)},rt=function(e,t){return o("put",s+"/approvals/"+e+"/terminate",t)},st=function(e,t){return o("get",s+"/approvals/"+e+"/status")},it=function(e){return o("put",s+"/key/batch_cancel",e)},ct=function(e){return o("put",s+"/key/cancel",e)},ot=function(e){return o("put",s+"/key/batch_usage",e)},at=function(e){return o("put",s+"/key/usage",e)},ut=function(e){return o("get",s+"/key/log/list",e)},lt=function(e){return o("post",s+"/keys/mobileAccessVerification",e)},dt=function(e){return o("put",s+"/plan/cancel/"+e)},pt=function(e,t){return o("post",s+"/keys/"+e+"/approval",t)},mt=function(e){return o("get",s+"/auth/logout",e)},ht=function(e){return o("get",s+"/reseller/direct",e)},ft=function(e){return o("put",s+"/key/valid/update",e)},gt=function(e,t){return o("put",s+"/reseller/contact_info/".concat(t),e)},bt=function(){return o("get",s+"/auth/admin/voucherWarningAccount")},jt=function(e,t){return o("post",s+"/codes/voucher/fund/".concat(t),e)},vt=function(e){return o("get",s+"/key",e)},xt=function(e,t){return i("post",s+e,t)},yt=function(e){return o("post",s+"/key/batchUploadVoid",e)},Ot=function(e){return o("post",s+"/key/batchUploadUsed",e)},kt=function(e){return o("post",s+"/keys/batchSend",e)},wt=function(e){return c("get",s+"/key/export",e)},Nt=function(e){return o("get",s+"/plan/get_copy_data/"+e)},Ct=function(e){return o("get",s+"/keys/queryKeyBatch",e)},St=function(e){return o("get",s+"/plan/queryPlan",e)},_t=function(e){return o("post",s+"/coupon/add",e)},Bt=function(e,t){return o("put",s+"/coupon/".concat(e),t)},Tt=function(e){return o("get",s+"/coupon",e)},It=function(e){return o("put",s+"/coupon/void/".concat(e))},Mt=function(e,t){return o("put",s+"/coupon/status/".concat(e),t)},zt=function(e){return o("get",s+"/coupon/".concat(e))},Ft=function(e){return o("delete",s+"/goods/".concat(e))},qt=function(e){return o("delete",s+"/codes/delete/".concat(e))},Rt=function(e){return o("delete",s+"/coupon/delete/".concat(e))},Et=function(e){return o("delete",s+"/keybatch/".concat(e))},Pt=function(e){return o("put",s+"/order/refund/".concat(e))},Lt=function(e,t){return o("put",s+"/order/hand_refund/".concat(e),t)},Dt=function(e){return o("get",s+"/order/export/list",e)},At=function(e){return o("get",s+"/order/export/download_url",e)},Ht=function(e){return o("get",s+"/order/export/delete",e)},Vt=function(e){return o("get",s+"/plan/marketEvent",e)},Jt=function(e){return o("post",s+"/approvals/".concat(e,"/query"))},Wt=function(e){return o("get",s+"/order/searchPendingOrderByObject",e)},Ut=function(e){return o("post",s+"/order/searchPendingOrderByHash",e)},Kt=function(e){return o("post",s+"/order/searchPendingOrderByKeys",e)},Yt=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();u(e)})).then((function(e){return e})).catch((function(e){}))}("post",s+"/keybatch/export",e)},Xt=function(e){return o("post",s+"/order/resendCardCode",e)},Qt=function(e,t){return o("put",s+"/reseller/merchant/".concat(e),t)},Gt=function(e){return o("get",s+"/reseller/merchant/generateRsaKey",e)},Zt=function(e){return o("get",s+"/plan/result_message/".concat(e))},$t=function(e,t){return o("post",s+"/plan/result_message/update/".concat(t),e)},en=function(e){return o("post",s+"/voucher/setResellerConf",e)},tn=function(e){return o("post",s+"/voucher/setKeyBatchConf",e)},nn=function(e){return o("post",s+"/voucher/setPlanConf",e)},rn=function(e){return o("get",s+"/voucher/queryConfig",e)},sn=function(e){return o("post",s+"/voucher/receiveRetry",e)},cn=function(){return o("get",s+"/plan/settlementType")},on=function(e){return o("get",s+"/goods/goodsListByPlanId/"+e)},an=function(e){return o("post",s+"/order/voucherUsageQuery",e)},un=function(e){return o("post",s+"/order/notifyReseller",e)},ln=function(e){return o("get",s+"/settlement_order/list",e)},dn=function(e){return o("get",s+"/settlement_order/detail/"+e)},pn=function(e){return c("get",s+"/settlement_order/export",e)},mn=function(){return o("get",s+"/reseller/merchant/getApiMode")},hn=function(e){return o("get",s+"/voucher/provider/".concat(e))},fn=function(e){return o("get",s+"/plan/getPostbankMerNo",e)},gn=function(e){return o("post",s+"/plan/bindPostbankMerNo",e)},bn=function(e){return o("get",s+"/order/voucher/list/"+e)},jn=function(e){return o("get",s+"/order/voucher/queryVoucher/"+e)},vn=function(e){return o("post",s+"/mks/admin/v1/settlement_order/export_record/create",e)},xn=function(e){return o("get",s+"/mks/admin/v1/settlement_order/export_record/list",e)},yn=function(e){return o("get",s+"/mks/admin/v1/settlement_order/export_record/download/"+e)},On=function(e){return o("delete",s+"/mks/admin/v1/settlement_order/export_record/delete/"+e)},kn=function(e){return o("get",s+"/plan/getButtonConf/"+e)},wn=function(e,t){return o("post",s+"/plan/saveButtonConf/"+e,t)}},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(93),s=n(24),i=n(25),c=n(28),o=n(26),a=n(27),u=n(0),l=n.n(u),d=n(8),p=n.n(d),m=(n(504),n(218)),h=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(c.a)(r)),r.state={iptVal:e.value,errmsg:"",focus:1,iptVallength:0,errshow:!1},r.handleInputChange=r.handleInputChangeFn.bind(Object(c.a)(r)),r.losefofn=r.losefofn.bind(Object(c.a)(r)),r.focusFn=r.focusFn.bind(Object(c.a)(r)),r.sureFns=r.sureFns.bind(Object(c.a)(r)),r}return Object(i.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,i=this.props,c=i.defalutCls,o=i.maxLength,a=i.kind,u=i.disabled,l=i.unit,d=i.front,f=i.icon,g=(i.value,i.required),b=i.countShow,j=(i.className,i.onChange,i.labelText),v=i.alignment,x=i.placeholder,y=i.height,O=i.width,k=i.clearShow,w=i.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(c),c),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(h.jsxs)("div",{className:"iptfillself",children:["0px"==this.props.labelWidth?null:Object(h.jsxs)("div",{className:"label",style:{width:w,textAlign:v},children:[Object(h.jsx)("span",{className:"labeltip",children:j}),g?Object(h.jsx)("font",{className:"warning",children:"*"}):null]}),Object(h.jsxs)("div",{className:"iptlabel",children:[Object(h.jsxs)("div",{className:"iptright",children:[d?Object(h.jsx)("font",{className:"front",children:d}):null,f?Object(h.jsx)(m.a,{type:"search",className:"iconType"}):null,Object(h.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(h.jsxs)("div",{className:"ipticonR",children:[0==u&&this.props.markedShow?Object(h.jsx)("span",{className:"showpwd",onClick:function(){return s.showpwdFn(s)},children:"text"==a?Object(h.jsx)(m.a,{type:"eye-o",className:"pwdShow"}):Object(h.jsx)(m.a,{className:"pwdShow",type:"closed-eye"})}):null,0==u&&1==k&&this.state.iptVal?Object(h.jsxs)("svg",{onClick:this.clearItem.bind(this),viewBox:"0 0 16 16",width:"16px",height:"16px",children:[Object(h.jsx)("circle",{fill:"#AAAFBA",fillRule:"evenodd",cx:"8",cy:"8",r:"8"}),Object(h.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(h.jsxs)("span",{className:"countTip",children:[String(this.props.value).length,"/",o]}):null,l?Object(h.jsx)("font",{className:"unit",children:l}):null]})]}),this.state.errshow||" "!=this.state.errmsg&&""==this.state.iptVal?Object(h.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),i=n(26),c=n(27),o=n(0),a=n.n(o),u=(n(501),n(1)),l=function(e){Object(i.a)(n,e);var t=Object(c.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,i=e.required;e.noLabel;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,i?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),i=n(26),c=n(27),o=n(0),a=n.n(o),u=(n(502),n(231)),l=n(503),d=n(74),p=n(18),m=n.n(p),h=n(80),f=n(1),g=function(e){Object(i.a)(n,e);var t=Object(c.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;h.a.addListener("change",(function(t,n){var r=document.getElementById(t).getElementsByClassName("form-compontent"),s=Object(u.a)(e.props.rules,t),i=r[0].firstChild;n?e.removeClass(r[0]):setTimeout((function(){e.isRequired("",i.className,r[0],s[0].message)}),300)}));var t=this;h.a.addListener("input",(function(n,r){var s=document.getElementById(n).getElementsByClassName("form-compontent"),i=Object(u.a)(e.props.rules,n),c=s[0].firstChild;if(i)for(var o=0;o<i.length;o++){if("required"==i[o].type){if(""==r){t.removeClass(s[0]),t.isRequired(r,c.className,s[0],i[o].message);break}t.removeClass(s[0])}if("regExp"==i[o].type){var a=i[o].reg,l=r;new RegExp(a).test(l)?t.removeClass(s[0]):t.isRequired(r,c.className,s[0],i[o].message)}}})),h.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=m.a.findDOMNode(this).getElementsByClassName("form-Item"),r=Object(l.a)(this.props.children,(function(e){return null!=e})),s=function(t){var s=(c=n[t].children)[1],i=r[t],o=e;if(null==i)return{v:void 0};if(Object(d.a)(i));else{var a,l=Object(u.a)(i,"props.children.props"),p=c[1].children[0].getElementsByTagName("input");0==p.length&&(p=c[1].children[0].getElementsByTagName("textarea"));var m=c[1].children[0],h="";null!==i&&void 0!==i&&null!==(a=i.props)&&void 0!==a&&a.prop&&(h=Object(u.a)(o.props.rules,i.props.prop)),p.length>0&&h&&(p[0].oninput=function(e){for(var t=0;t<h.length;t++){if("required"==h[t].type){if(""==e.target.value){o.removeClass(s),l&&o.isRequired(l.value,m.className,s,h[t].message);break}o.removeClass(s)}if("regExp"==h[t].type){var n=h[t].reg,r=new RegExp(n),i=e.target.value;r.test(i)?o.removeClass(s):l&&o.isRequired(l.value,m.className,s,h[t].message)}}},p[0].onblur=function(e){for(var t=0;t<h.length;t++)if(""==e.target.value)"required"==h[t].type&&(o.removeClass(s),l&&o.isRequired(l.value,m.className,s,h[t].message));else if("regExp"==h[t].type){var n=h[t].reg,r=new RegExp(n),i=e.target.value;r.test(i)?o.removeClass(s):l&&o.isRequired(l.value,m.className,s,h[t].message)}else o.removeClass(s)})}},i=0;i<n.length;i++){var c,o=s(i);if("object"===typeof o)return o.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],i=n[1].children[0],c=Object(u.a)(s,"props.children.props"),o=Object(u.a)(this.props.rules,s.props.prop);o&&(this.removeClass(r),this.isRequired(c.value,i.className,r,o[0].message))}}},{key:"validator",value:function(){for(var e=m.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 i=e[s].children,c=i[1],o=r[s],a=i[1].children[0];if(Object(d.a)(o))for(var p=0;p<o.length;p++){var h=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(""==h.value||void 0==h.value){t.removeClass(c),t.isRequired(h.value,a.className,c,f[g].message),n=!1;break}t.removeClass(c)}if("regExp"==f[g].type){var b=f[g].reg,j=new RegExp(b),v=h.value;if(!j.test(v)){n=!1,t.isRequired(h.value,a.className,c,f[g].message);break}t.removeClass(c)}}}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=c.getElementsByTagName("input");N&&N.length>0&&N[0].focus(),t.removeClass(c),t.isRequired(y.value,a.className,c,k[w].message),n=!1;break}t.removeClass(c)}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,c,k[w].message);break}t.removeClass(c)}}}}return n}},{key:"render",value:function(){return Object(f.jsxs)("div",{className:"form",children:[" ",this.props.children," "]})}}]),n}(a.a.Component)},80:function(e,t,n){"use strict";var r=n(497);t.a=new r.EventEmitter}}]); |