diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 57d5d065..7e754a9c 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -834,7 +834,7 @@ export default class acclist extends React.Component { rowItemClick(row, rowIndex) { // 兑换码 if (this.props.keyType === 1) { - if (row.recharge_type === 2) { + if (row.recharge_type == 2) { this.setState({ draw_title: "编辑组合商品", rowIndex: rowIndex, @@ -1243,7 +1243,7 @@ export default class acclist extends React.Component { placeholder="请输入数量" type="number" width={120} - disabled={rowData.recharge_type === 2} + disabled={rowData.recharge_type == 2} value={rowData.restrict} onChange={(e) => { this.onRestrict(e, rowData, rowIndex) diff --git a/src/pages/plan/key/UseKeyAddEdit.jsx b/src/pages/plan/key/UseKeyAddEdit.jsx index 96fed0e8..78460530 100644 --- a/src/pages/plan/key/UseKeyAddEdit.jsx +++ b/src/pages/plan/key/UseKeyAddEdit.jsx @@ -571,7 +571,7 @@ const UseKeyAddEdit = () => { // 编辑 const rowEditClick = (row, rowIndex) => { if (state.keyType === 1) { - if (row.recharge_type === 2) { + if (row.recharge_type == 2) { setState({ draw_title: "编辑组合商品", rowIndex: rowIndex, @@ -1172,7 +1172,7 @@ const UseKeyAddEdit = () => { onChange={(e) => { onBindNum(e, rowData, rowIndex) }} - disabled={rowData.disabled || rowData.recharge_type === 2} + disabled={rowData.disabled || rowData.recharge_type == 2} /> ) }