diff --git a/src/components/combining/index.jsx b/src/components/combining/index.jsx index d134a07b..45142d7b 100644 --- a/src/components/combining/index.jsx +++ b/src/components/combining/index.jsx @@ -202,7 +202,7 @@ const Combining = forwardRef((props, ref) => { const { channel, receive_mode, instruction, group_image, time_limit, is_webview } = group_info setInfo({ quantity, - is_webview: Number(is_webview), + is_webview: Number(is_webview) || 0, instructionType: Number(group_info.instructionType) || 1, code_name: title, date_time: [begin_time, end_time], diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index f9a6a51e..27bb4c47 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -218,7 +218,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.is_webview = Number(this.props.data.is_webview) || 0 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) diff --git a/src/pages/exchangecode/combiningAdd/index.jsx b/src/pages/exchangecode/combiningAdd/index.jsx index 45adf9eb..681c3213 100644 --- a/src/pages/exchangecode/combiningAdd/index.jsx +++ b/src/pages/exchangecode/combiningAdd/index.jsx @@ -148,7 +148,7 @@ export default class combiningAdd extends React.Component { reqCopy.goods = resData let codeInfo = { code_name: reqCopy.title, - is_webview: Number(is_webview), + is_webview: Number(is_webview) || 0, issued: reqCopy.quantity, instructionType: Number(reqCopy.group_info.instructionType) || 1, stock: reqCopy.stock,