💊 fix: 修复bug

This commit is contained in:
wangsongsole 2023-07-13 11:26:02 +08:00
parent 89ea250910
commit 2a209dbdb6
2 changed files with 25 additions and 20 deletions

View File

@ -591,8 +591,11 @@ export default class addKnockGold extends Component {
alignment={"left"} alignment={"left"}
/> />
</FormItem> </FormItem>
{this.state.model.channel !== 3 && ( <FormItem
<FormItem labelname="祝福语" prop="wishing" id="wishing"> labelname={this.state.model.channel === 3 ? "发放备注" : "祝福语"}
prop="wishing"
id="wishing"
>
<Ipt <Ipt
onChange={(value) => { onChange={(value) => {
this.onHandleChange(value, "wishing") this.onHandleChange(value, "wishing")
@ -609,7 +612,9 @@ export default class addKnockGold extends Component {
alignment={"left"} alignment={"left"}
/> />
</FormItem> </FormItem>
)} {/* {this.state.model.channel !== 3 && (
)} */}
</Form> </Form>
</Card> </Card>
<Card style={{ width: "70%", margin: "10px 0" }} title={"发放规则"}> <Card style={{ width: "70%", margin: "10px 0" }} title={"发放规则"}>

View File

@ -11,7 +11,7 @@ const regObj = {
export default { export default {
basic: { basic: {
batch_goods_name: [{ type: "required", message: "请输入批次商品名称" }], batch_goods_name: [{ type: "required", message: "请输入批次商品名称" }],
wishing: [{ type: "required", message: "请输入红包祝福语" }] wishing: [{ type: "required", message: "请输入" }]
}, },
grant: { grant: {
num: [ num: [