From 54522ad248f3a6efed31cb81bf78f53c151c8e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E7=BA=A2=E6=A2=85?= <1924913374@qq.com> Date: Thu, 1 Sep 2022 17:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E7=BC=96=E8=BE=91=E5=99=A8=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E6=A0=8F=E9=85=8D=E7=BD=AE=E9=9D=99=E6=80=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=BC=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goodsPage/config/bottomBar.js | 269 +++++++++++++++--- .../couponTemplate/goodsPage/config/comm.less | 47 +++ src/pages/exchangepage/edittemplate/main.less | 2 +- 3 files changed, 274 insertions(+), 44 deletions(-) create mode 100644 src/pages/exchangepage/couponTemplate/goodsPage/config/comm.less diff --git a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js index bcfdf969..674ac056 100644 --- a/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js +++ b/src/pages/exchangepage/couponTemplate/goodsPage/config/bottomBar.js @@ -1,10 +1,13 @@ import React from 'react'; -import { ColorPicker, Notify, RadioGroup, RadioButton } from 'zent'; +import { ColorPicker, Notify, RadioGroup, RadioButton, Switch, ImageUpload } from 'zent'; import "@/assets/comm.css" import Form from "@/components/form/main" import FormItem from "@/components/form-item/main" import { uploadImg, handelResponse } from "@/assets/api.js" import Ipt from "@/components/input/main" +import '@/assets/comm.css' +import './comm.less' + export default class edittemplate extends React.Component { constructor(props) { super(props) @@ -14,7 +17,8 @@ export default class edittemplate extends React.Component { list: "2", font_color: "#f1f2f3", button_color: "#FACD6A", - describe: { type: "", content: "", bg_image: '' } + describe: { type: "", content: "", bg_image: '' }, + checkedLarge: false } } } @@ -63,12 +67,8 @@ export default class edittemplate extends React.Component { } }; - //悬浮富文本 - getsusEditext(c) { - let model1 = this.state.model; - model1.describe.content = c; - this.setState({ model: model1 }); - this.props.seteditorHtml(c); + handleChangeLarge = checked => { + this.setState({ checkedLarge: checked }); } //富文本 getEditext(c) { @@ -196,7 +196,7 @@ export default class edittemplate extends React.Component { } render() { return ( -