From e86c8bd32280589b4c65cf90910493e4ec47d774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Mon, 29 Nov 2021 23:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 8 ++++++++ src/pages/plan/add/step1.js | 2 +- src/pages/plan/add/step3.js | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/assets/api.js b/src/assets/api.js index b666b4ea..7fb65ffa 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -571,6 +571,10 @@ export const postThemecustom= (data) => { return upload('post', baseurl + "/plan/theme/custom",data) } + + + + //登录 export const postLogin = (data) => { return req('login', baseurl + "/auth/login", data) @@ -609,6 +613,10 @@ export const putMyTheme= (id,data) => { return req('put', baseurl + "/plan/theme/"+id,data) } +export const getThemeChoice= (data) => { + return upload('get', baseurl + "/plan/theme/choice",data) +} + //新增落地页模板 export const addTheme= (data) => { diff --git a/src/pages/plan/add/step1.js b/src/pages/plan/add/step1.js index 0fca7b77..ed4c0e4a 100644 --- a/src/pages/plan/add/step1.js +++ b/src/pages/plan/add/step1.js @@ -266,7 +266,7 @@ export default class acclist extends React.Component{ showTime={{ format: 'HH:mm:ss', defaultTime: [moment().format("HH:mm:ss"), '23:59:59'], }} format="YYYY-MM-DD HH:mm:ss" - disabled={[this.props.disabled,this.props.disabled]} + disabled={[this.props.disabled,false]} value={this.state.model.date_time} onChange={(e)=>{ Bus.emit('change',"date_time" ,e); diff --git a/src/pages/plan/add/step3.js b/src/pages/plan/add/step3.js index 60a3eccd..ec401686 100644 --- a/src/pages/plan/add/step3.js +++ b/src/pages/plan/add/step3.js @@ -5,7 +5,7 @@ import { Button ,Tabs, CombinedDateRangePicker,Select,Input,RadioGroup,RadioButt import Ipt from "../../../components/input/main" import Form from "../../../components/form/main" import FormItem from "../../../components/form-item/main" -import {addPlanStep,handelResponse,getTheme} from "../../../assets/api.js" +import {addPlanStep,handelResponse,getTheme,getThemeChoice} from "../../../assets/api.js" import _ from "lodash"; import Bus from "../../../assets/eventBus.js" import "./add.less" @@ -34,7 +34,7 @@ export default class acclist extends React.Component{ getThemeData(){ - getTheme().then((res)=>{ + getThemeChoice().then((res)=>{ handelResponse(res,(req,msg)=>{ let arr = _.map(req.data,(o)=>{ let obj = {};