删减落地页编辑模块多余引入

This commit is contained in:
Apple 2022-08-25 14:46:13 +08:00
parent f01f22a563
commit ac7c618762
11 changed files with 18 additions and 37 deletions

View File

@ -1,9 +1,7 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { ImageUpload, ColorPicker, Notify, RadioGroup, RadioButton, Tooltip, Icon } from 'zent';
import { Button, ImageUpload, Input, ColorPicker, onUpload, Notify, RadioGroup, RadioButton, Tooltip, Icon } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import Ipt from "../../../components/input/main"
import Form from "../../../components/form/main" import Form from "../../../components/form/main"
import Wangeditor from './wangeditorCom.js' import Wangeditor from './wangeditorCom.js'
import FormItem from "../../../components/form-item/main" import FormItem from "../../../components/form-item/main"
@ -96,7 +94,6 @@ export default class edittemplate extends React.Component {
this.props.setdetailbgc(cor); this.props.setdetailbgc(cor);
} }
onUpload = (file, report) => { onUpload = (file, report) => {
let self = this;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let path = "" let path = ""
let formdata = new FormData(); let formdata = new FormData();

View File

@ -1,5 +1,4 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import './goodstemplate.less' import './goodstemplate.less'

View File

@ -1,13 +1,10 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { ColorPicker, ImageUpload, Tooltip, Notify, RadioGroup, RadioButton, Icon } from 'zent';
import { ColorPicker, ImageUpload, Input, Tooltip, onUpload, Notify, RadioGroup, RadioButton, Icon } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import Ipt from "../../../components/input/main"
import Form from "../../../components/form/main" import Form from "../../../components/form/main"
import FormItem from "../../../components/form-item/main" import FormItem from "../../../components/form-item/main"
import { uploadImg, handelResponse } from "../../../assets/api.js" import { uploadImg, handelResponse } from "../../../assets/api.js"
import Goodstemplate from './goodstemplate'
import Wangeditor from './wangeditorCom.js' import Wangeditor from './wangeditorCom.js'
export default class edittemplate extends React.Component { export default class edittemplate extends React.Component {
constructor(props) { constructor(props) {

View File

@ -1,5 +1,4 @@
import ReactDOM from "react-dom" import React from 'react'
import React,{Component} from 'react'
import './goodstemplate.less' import './goodstemplate.less'
export default class goodsdesc extends React.Component{ export default class goodsdesc extends React.Component{
constructor(props){ constructor(props){

View File

@ -1,5 +1,4 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import './goodstemplate.less' import './goodstemplate.less'

View File

@ -1,6 +1,5 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { Button, Select, ImageUpload, ColorPicker, NumberInput } from 'zent';
import { Button, Select, ImageUpload, Input, onUpload, ColorPicker, NumberInput } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import "./goodstemplate.less" import "./goodstemplate.less"

View File

@ -1,5 +1,4 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import './goodstemplate.less' import './goodstemplate.less'

View File

@ -1,11 +1,9 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { ColorPicker} from 'zent';
import { Button, ColorPicker, Notify, Icon } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import Form from "../../../components/form/main" import Form from "../../../components/form/main"
import FormItem from "../../../components/form-item/main" import FormItem from "../../../components/form-item/main"
import { uploadImg, handelResponse, addTheme, putMyTheme, putTheme, putSystemTemplate, addSystemTemplate } from "../../../assets/api.js"
export default class edittemplate extends React.Component { export default class edittemplate extends React.Component {
constructor(props) { constructor(props) {
super(props) super(props)

View File

@ -1,6 +1,5 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { ImageUpload, ColorPicker, Notify, RadioGroup, RadioButton } from 'zent';
import { Button, Select, ImageUpload, Input, onUpload, ColorPicker, NumberInput, Notify, RadioGroup, RadioButton } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import "./goodstemplate.less" import "./goodstemplate.less"

View File

@ -1,9 +1,7 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import {ImageUpload, ColorPicker, Notify, RadioGroup, RadioButton, Tooltip, Icon } from 'zent';
import { Button, ImageUpload, Input, ColorPicker, onUpload, Notify, RadioGroup, RadioButton, Tooltip, Icon } from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import Ipt from "../../../components/input/main"
import Form from "../../../components/form/main" import Form from "../../../components/form/main"
import Wangeditor from './whitewangeditor.js' import Wangeditor from './whitewangeditor.js'
import FormItem from "../../../components/form-item/main" import FormItem from "../../../components/form-item/main"

View File

@ -1,13 +1,10 @@
import ReactDOM from 'react-dom'; import React from 'react';
import React, { Component } from 'react'; import { ColorPicker,ImageUpload,Tooltip,Notify ,RadioGroup,RadioButton,Icon} from 'zent';
import { ColorPicker,ImageUpload,Input,Tooltip,onUpload,Notify ,RadioGroup,RadioButton,Icon} from 'zent';
import "./main.less" import "./main.less"
import "../../../assets/comm.css" import "../../../assets/comm.css"
import Ipt from "../../../components/input/main"
import Form from "../../../components/form/main" import Form from "../../../components/form/main"
import FormItem from "../../../components/form-item/main" import FormItem from "../../../components/form-item/main"
import {uploadImg,handelResponse} from "../../../assets/api.js" import {uploadImg,handelResponse} from "../../../assets/api.js"
import Goodstemplate from './goodstemplate'
import Wangeditor from './whitewangeditor.js' import Wangeditor from './whitewangeditor.js'
export default class edittemplate extends React.Component{ export default class edittemplate extends React.Component{
constructor(props){ constructor(props){