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{