From cfdff429da364672376701a8f6196be38cee888f Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 2 Nov 2022 17:01:23 +0800 Subject: [PATCH] =?UTF-8?q?flx:=20=E7=BB=91=E5=AE=9A=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BA=E4=BC=98=E6=83=A0=E5=88=B8=E9=94=81=E5=AE=9A=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/step3.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/pages/plan/add/step3.js b/src/pages/plan/add/step3.js index 3a4c6447..73807140 100644 --- a/src/pages/plan/add/step3.js +++ b/src/pages/plan/add/step3.js @@ -34,9 +34,10 @@ export default class acclist extends React.Component { //数据模型不可少 theme_id: "", use: 1, - link: 3, + link: 1, }, select_theme: null, + keyType: sessionStorage.getItem("keyType"), }; } @@ -49,10 +50,15 @@ export default class acclist extends React.Component { // 第一步:判断是否优惠券 let white = sessionStorage.getItem("white"); let keyType = sessionStorage.getItem("keyType"); - console.log("white =>", white); - console.log("keyType =>", keyType); + this.setState({ + keyType: keyType, + }); // 2 优惠券 if (keyType === "2") { + let model2 = this.state.model; + model2.link = 1; + this.setState({ model: model2 }); + if (white === "1") { // 并且是 白名单 params.page = 8; @@ -218,8 +224,12 @@ export default class acclist extends React.Component { value={this.state.model.link} > 大客户 - 普通商户 - 备用 + + 普通商户 + + + 备用 +