frontend/build/static/js/2.ef2badf6.chunk.js

1 line
60 KiB
JavaScript
Raw Normal View History

2024-09-26 16:10:29 +08:00
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[2],{105:function(e,t,i){},145:function(e,t,i){},291:function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));i(36);var n=i(1),s=i.n(n),r=i(210),o=i(256),l=i(255),c=(i(292),i(293),i(294)),a=i(10),u="D:\\code\\work\\handover\\frontend\\src\\pages\\exchangepage\\previewEffect\\main.js";class m extends s.a.Component{constructor(e){super(e),this.state={setStyle:{width:"375px",height:"667px",transform:"scale(0.75)"},fontSize:1e4/281.25,activeHeight:667,showType:3,pageStep:1,showPage:1,detailType:3}}onClose(){this.props.onCloseFn()}handleSize(e,t){let i={width:e+"px",height:t+"px",transform:"scale(0.75)"};this.setState({setStyle:i,activeHeight:t})}onpageChange(e){this.setState({showPage:e.target.value,pageStep:e.target.value,detailType:3})}ondetailTypeChange(e){this.setState({detailType:e.target.value,pageStep:e.target.value})}render(){return Object(a.jsxDEV)("div",{className:"edittemplate",children:Object(a.jsxDEV)("div",{children:[Object(a.jsxDEV)("div",{className:"modal model44",style:{background:"rgba(0,0,0,0.8)"}},void 0,!1,{fileName:u,lineNumber:45,columnNumber:11},this),Object(a.jsxDEV)("div",{className:"preview-box",children:[Object(a.jsxDEV)(r.a,{type:"close",className:"preview-top-close",onClick:e=>{this.onClose(e)}},void 0,!1,{fileName:u,lineNumber:49,columnNumber:13},this),Object(a.jsxDEV)("div",{style:{height:"100%"},children:Object(a.jsxDEV)("div",{className:"previewComponent",children:[Object(a.jsxDEV)("div",{className:"previewbody",children:Object(a.jsxDEV)("div",{className:"ctorSize",style:this.state.setStyle,children:Object(a.jsxDEV)(c.a,{data:this.props.previewData,pageType:this.props.showType,fontSize:this.state.fontSize,ref:"preview",step:this.state.pageStep},void 0,!1,{fileName:u,lineNumber:60,columnNumber:21},this)},void 0,!1,{fileName:u,lineNumber:59,columnNumber:19},this)},void 0,!1,{fileName:u,lineNumber:58,columnNumber:17},this),Object(a.jsxDEV)("div",{className:"left-choice",children:[Object(a.jsxDEV)("div",{className:"exchange-page",children:[Object(a.jsxDEV)("p",{className:"preview-setting",children:"\u843d\u5730\u9875\u9884\u89c8:"},void 0,!1,{fileName:u,lineNumber:71,columnNumber:21},this),Object(a.jsxDEV)("section",{className:"screen-size-selector",children:[Object(a.jsxDEV)("div",{className:667==this.state.activeHeight?"size active":"size",onClick:()=>this.handleSize(375,667),children:["\u4e3b\u6d41\u673a\u578b",Object(a.jsxDEV)("span",{children:"375x667"},void 0,!1,{fileName:u,lineNumber:80,columnNumber:29},this)]},void 0,!0,{fileName:u,lineNumber:73,columnNumber:23},this),Object(a.jsxDEV)("div",{className:750==this.state.activeHeight?"size active":"size",onClick:()=>this.handleSize(375,750),children:["\u5168\u9762\u5c4f",Object(a.jsxDEV)("span",{children:"375x750"},void 0,!1,{fileName:u,lineNumber:89,columnNumber:28},this)]},void 0,!0,{fileName:u,lineNumber:82,columnNumber:23},this),Object(a.jsxDEV)("div",{className:812==this.state.activeHeight?"size active":"size",onClick:()=>this.handleSize(375,812),children:["\u5218\u6d77\u5c4f",Object(a.jsxDEV)("span",{children:"375x812"},void 0,!1,{fileName:u,lineNumber:98,columnNumber:28},this)]},void 0,!0,{fileName:u,lineNumber:91,columnNumber:23},this),Object(a.jsxDEV)("div",{className:500==this.state.activeHeight?"size active":"size",onClick:()=>this.handleSize(375,500),children:["\u5c0f\u5c4f\u624b\u673a",Object(a.jsxDEV)("span",{children:"375x500"},void 0,!1,{fileName:u,lineNumber:107,columnNumber:29},this)]},void 0,!0,{fileName:u,lineNumber:100,columnNumber:23},this)]},void 0,!0,{fileName:u,lineNumber:72,columnNumber:21},this)]},void 0,!0,{fileName:u,lineNumber:70,columnNumber:19},this),Object(a.jsxDEV)("div",{className:"exchange-page",children:[Object(a.jsxDEV)("p",{children:"\u9875\u9762\u7c7b\u578b:"},void 0,!1,{fileName:u,lineNumber:112,columnNumber:21},this),Object(a.jsxDEV)(o.a,{onChange:e=>{this.onpageChange(e)},value:this.state.showPage,children:[Object(a.jsxDEV)(l.a,{value:1,children:"\u843d\u5730\u9875"},void 0,!1,{fileName:u,lineNumber:118,columnNumber