feat: 新增微信小程序打开方式

This commit is contained in:
wangsongsole 2024-02-28 16:55:37 +08:00
parent 2d8ce61044
commit f69fa17cfa
1 changed files with 17 additions and 1 deletions

View File

@ -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 {
)}
</RadioGroup>
</FormItem>
{this.state.model.channel == 2 ? (
<FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview">
<RadioGroup
onChange={({ target }) => {
this.onHandleChange(target.value, "is_webview")
}}
value={this.state.model.is_webview}
>
<RadioButton value={0}>小程序</RadioButton>
<RadioButton value={1}>公众号</RadioButton>
</RadioGroup>
</FormItem>
) : null}
{this.state.model.channel == 1 && !this.props.ysf ? (
<FormItem
labelname="领取方式"