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

1 line
53 KiB
JavaScript
Raw Normal View History

2024-04-21 11:21:48 +08:00
(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){v