From 9fb475e207b5acea32962587b400f62e1e134b0a Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Mon, 10 Jan 2022 20:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 6 +- .../exchangepage/edittemplate/detailsPage.js | 12 +- .../exchangepage/edittemplate/goodsPage.js | 12 +- .../edittemplate/goodstemplate.js | 2 +- .../edittemplate/goodstemplate.less | 3 + .../exchangepage/edittemplate/landingPage.js | 12 +- src/pages/exchangepage/edittemplate/main.js | 252 ++++++++---------- src/pages/exchangepage/edittemplate/main.less | 2 +- .../edittemplate/wangeditorCom.js | 1 + src/pages/exchangepage/mytemplate/main.js | 2 +- src/pages/exchangepage/template/preview.js | 4 +- src/pages/exchangepage/template/tt.js | 75 ++++++ 12 files changed, 216 insertions(+), 167 deletions(-) create mode 100644 src/pages/exchangepage/template/tt.js diff --git a/src/assets/api.js b/src/assets/api.js index 1f19f8c1..1d26aa27 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -11,7 +11,7 @@ if (process.env.NODE_ENV == "production") { // 生成环境 baseurl = "https://marketapi.1688sup.com" } - +let testzyg='http://192.168.6.110:8056'; // export let HOST = host; // export let API_URL = api_url; @@ -798,7 +798,7 @@ export const getThemeChoice= (data) => { //新增落地页模板 export const addTheme= (data) => { - return req('post', baseurl + "/plan/theme",data) + return req('post', testzyg + "/plan/theme",data) } //编辑落地页模板 export const putTheme= (id,data) => { @@ -806,7 +806,7 @@ export const putTheme= (id,data) => { } //我的模板列表查询 export const getTheme= (data) => { - return req('get', baseurl + "/plan/theme",data) + return req('get', testzyg + "/plan/theme",data) } //克隆落地页模板 export const cloneTheme= (data) => { diff --git a/src/pages/exchangepage/edittemplate/detailsPage.js b/src/pages/exchangepage/edittemplate/detailsPage.js index de9e9547..03e65314 100644 --- a/src/pages/exchangepage/edittemplate/detailsPage.js +++ b/src/pages/exchangepage/edittemplate/detailsPage.js @@ -14,9 +14,9 @@ export default class edittemplate extends React.Component{ super(props) this.state={ model:{ - font_color: "", - button_color: "", - describe: {type : 1, content: " ",bg_image:''}, + font_color:"#ffffff", + button_color: "#FACD6A", + describe: {type :"", content: " ",bg_image:''}, } } } @@ -199,9 +199,9 @@ export default class edittemplate extends React.Component{