💊 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,25 +591,30 @@ export default class addKnockGold extends Component {
alignment={"left"}
/>
</FormItem>
{this.state.model.channel !== 3 && (
<FormItem labelname="祝福语" prop="wishing" id="wishing">
<Ipt
onChange={(value) => {
this.onHandleChange(value, "wishing")
}}
onClearItem={() => {
this.onHandleChange("", "wishing")
}}
value={this.state.model.wishing}
placeholder={"请输入"}
labelWidth={"0px"}
maxLength={32}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
)}
<FormItem
labelname={this.state.model.channel === 3 ? "发放备注" : "祝福语"}
prop="wishing"
id="wishing"
>
<Ipt
onChange={(value) => {
this.onHandleChange(value, "wishing")
}}
onClearItem={() => {
this.onHandleChange("", "wishing")
}}
value={this.state.model.wishing}
placeholder={"请输入"}
labelWidth={"0px"}
maxLength={32}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
{/* {this.state.model.channel !== 3 && (
)} */}
</Form>
</Card>
<Card style={{ width: "70%", margin: "10px 0" }} title={"发放规则"}>

View File

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