From bbf3444e2a4f09b067a4c11c80906d8e3287a37c Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 9 Aug 2022 09:58:17 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/home.js | 7 +- src/pages/plan/copy/index.jsx | 254 --------------------------------- src/pages/plan/copy/style.less | 12 -- 3 files changed, 1 insertion(+), 272 deletions(-) delete mode 100644 src/pages/plan/copy/index.jsx delete mode 100644 src/pages/plan/copy/style.less diff --git a/src/pages/home/home.js b/src/pages/home/home.js index d6d93da1..dfe3823e 100644 --- a/src/pages/home/home.js +++ b/src/pages/home/home.js @@ -29,7 +29,7 @@ import plan from "../plan/main/main"; import planlist from "../plan/list/list"; import planadd from "../plan/add/add"; import planedit from "../plan/add/edit"; -import plancopy from "../plan/copy/index"; +// import plancopy from "../plan/copy/index"; import planeditcopy from "../plan/add/plan-copy"; import keylist from "../plan/key/list"; @@ -475,11 +475,6 @@ export default class App extends Component { exact={true} component={planadd} /> - { - const [stateSteps, setStateSteps] = useState(1); - const [resellerInfo, setResellerInfo] = useState({ - direct_reseller_id: 23377, - }); - const [keys, setkeys] = useState(null); - const [keyStyle, setkeyStyle] = useState(1); - const [isload, setIsload] = useState(false); - const [whiteStyle, setWhiteStyle] = useState(false); - const [newPlanTime, setNewPlanTime] = useState([]); - const [exChangeTableData, setExChangeTableData] = useState([]); - const [step1_data, setStep1_data] = useState(null); - - const step1 = useRef(null); - const step2 = useRef([]); - const step3 = useRef(null); - - useEffect(() => { - let plan_id = sessionStorage.getItem("plan_id"); - if (plan_id) { - getDraftInfo(plan_id).then((res) => { - console.log("res =>", res); - if (res.code === 200) { - let info = res.data.info; - setStep1_data({ - title: info.title, - type: info.type, - reseller: { - key: info.reseller_id, - text: info.reseller_name, - disabled: true, - }, - return_id: "1", - date_time: [info.begin_time, info.end_time], - }); - - setkeys(res.data.keys); // key - } - }); - } - }, []); - - /*** 👇👇👇👇👇👇👇 step 01 👇👇👇👇👇👇👇 ***/ - // 获取分销商信息 - const getResellerInfo = (e) => { - setResellerInfo(e); - console.log("分销商信息:", e); - }; - /*** 👆👆👆👆👆👆👆 step 01 👆👆👆👆👆👆👆 ***/ - - /*** 👇👇👇👇👇👇👇 step 02 👇👇👇👇👇👇👇 ***/ - const addNewkey = () => {}; - const onStyleChange = () => {}; - /*** 👆👆👆👆👆👆👆 step 02 👆👆👆👆👆👆👆 ***/ - - /*** 👇👇👇👇👇👇👇 step 03 👇👇👇👇👇👇👇 ***/ - /*** 👆👆👆👆👆👆👆 step 03 👆👆👆👆👆👆👆 ***/ - - /************************************** 下一步 ***********************/ - // 步骤改变 - const stepChange = (e) => { - setStateSteps(e); - }; - // 下一步 - const onNextStep = async () => { - let step1_res = await step1.current.submit(); - if (step1_res === true) { - setStateSteps(1); - } - }; - // 返回 - const onReturn = () => {}; - - const nextBtnEl = () => { - return ( -
- - -
- ); - }; - const closeStep = () => {}; - - return ( -
-
- stepChange(e)} - className="mystep-class-01" - style={{ height: 600 }} - > - {stepsData.map((item, index) => { - return ( - - ); - })} - -
-
-
-
-
营销计划
- {step1_data ? ( - - {/********************* 第一步 *****************/} - - setStep1_data({ ...step1_data, date_time: e }) - } - getResellerInfo={(e) => { - getResellerInfo(e); - }} - > - - ) : null} -
- - {/********************* 第二步 *****************/} - {stateSteps >= 1 ? ( -
-
key
- {keys - ? keys.map((item, index) => { - return item ? ( - 0 ? ( - { - closeStep(index); - }} - > - 关闭 - - ) : null - } - > - { - step2.current[`step2-${index}`] = f; - }} - dataInfo={item} - newPlanTime={step1_data.date_time} - direct_reseller_id={resellerInfo.direct_reseller_id} - > - - ) : null; - }) - : null} -
- ) : null} - - {/********************* 第三步 *****************/} - {stateSteps >= 2 ? ( -
-
落地页
- - - -
- ) : null} - - {nextBtnEl()} -
-
-
- ); -}; - -export default UseOneCopy; diff --git a/src/pages/plan/copy/style.less b/src/pages/plan/copy/style.less deleted file mode 100644 index 4ea4d683..00000000 --- a/src/pages/plan/copy/style.less +++ /dev/null @@ -1,12 +0,0 @@ -.plan-add{ - width: 100%; - display: flex; - max-height: 100%; -} - -.action-panel{ - width: 88%; - margin: 0 auto; - height: auto; - margin-bottom: 60px; -} \ No newline at end of file