🦀️ fix: 修复微信立减金打开方式回显问题

This commit is contained in:
wangsongsole 2024-03-07 09:59:00 +08:00
parent fde486776b
commit f5965b4a0a
3 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ const Combining = forwardRef((props, ref) => {
const { channel, receive_mode, instruction, group_image, time_limit, is_webview } = group_info const { channel, receive_mode, instruction, group_image, time_limit, is_webview } = group_info
setInfo({ setInfo({
quantity, quantity,
is_webview: Number(is_webview), is_webview: Number(is_webview) || 0,
instructionType: Number(group_info.instructionType) || 1, instructionType: Number(group_info.instructionType) || 1,
code_name: title, code_name: title,
date_time: [begin_time, end_time], date_time: [begin_time, end_time],

View File

@ -218,7 +218,7 @@ export default class addKnockGold extends Component {
model[key] = this.props.data[key] model[key] = this.props.data[key]
} }
model.weight = String(this.props.data.weight) model.weight = String(this.props.data.weight)
model.is_webview = Number(this.props.data.is_webview) model.is_webview = Number(this.props.data.is_webview) || 0
model.early_per = this.props.data.early_per.map((item) => String(item)) model.early_per = this.props.data.early_per.map((item) => String(item))
model.channel = String(this.props.data.channel) model.channel = String(this.props.data.channel)
model.natural_limit = String(this.props.data.natural_limit) model.natural_limit = String(this.props.data.natural_limit)

View File

@ -148,7 +148,7 @@ export default class combiningAdd extends React.Component {
reqCopy.goods = resData reqCopy.goods = resData
let codeInfo = { let codeInfo = {
code_name: reqCopy.title, code_name: reqCopy.title,
is_webview: Number(is_webview), is_webview: Number(is_webview) || 0,
issued: reqCopy.quantity, issued: reqCopy.quantity,
instructionType: Number(reqCopy.group_info.instructionType) || 1, instructionType: Number(reqCopy.group_info.instructionType) || 1,
stock: reqCopy.stock, stock: reqCopy.stock,