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 ? (