From f69fa17cfa141bfeb8e18231a715e07b9afc63db Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 28 Feb 2024 16:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=89=93=E5=BC=80=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/knockGold/index.jsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 41b52e5c..a50f0a9b 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -105,7 +105,8 @@ export default class addKnockGold extends Component { ruleWeek: [], //规则周 send_num: 1, provider: "lsxd", //主体名称 - receive_mode: 1 + receive_mode: 1, + is_webview: 0 }, TimeDiffer: "", visible: false, //加框弹窗 @@ -199,6 +200,7 @@ export default class addKnockGold extends Component { model[key] = this.props.data[key] } model.weight = String(this.props.data.weight) + model.is_webview = Number(this.props.data.is_webview) model.early_per = this.props.data.early_per.map((item) => String(item)) model.channel = String(this.props.data.channel) model.natural_limit = String(this.props.data.natural_limit) @@ -498,6 +500,7 @@ export default class addKnockGold extends Component { real_name: text, mobile: key })) + transformData.is_webview = this.state.model.is_webview transformData.weight = this.state.model.weight transformData.receive_conf = { type: this.state.model.receive_type, @@ -811,6 +814,19 @@ export default class addKnockGold extends Component { )} + {this.state.model.channel == 2 ? ( + + { + this.onHandleChange(target.value, "is_webview") + }} + value={this.state.model.is_webview} + > + 小程序 + 公众号 + + + ) : null} {this.state.model.channel == 1 && !this.props.ysf ? (