Commit 8a5e1afa authored by 王波's avatar 王波

校验奖品名称

parent 954aff6e
......@@ -34,11 +34,11 @@
<radio value="{{2}}">会员权益</radio>
</radio-group>
</form-item>
<form-item a:if="{{[EQUITY_TYPE].includes(prizeInitData.type) && prizeInitData.benefitType == 2}}" validateState="{{choosePrizeTips.status}}" style="width:100%" size="large" help="{{choosePrizeTips.content}}" class="probability-prize-content-formItem probability-prize-content-formItem-choosePrize" label="权益隐藏id" required>
<form-item a:if="{{[EQUITY_TYPE].includes(prizeInitData.type) && prizeInitData.benefitType == MEMBER_EQUITY}}" validateState="{{choosePrizeTips.status}}" style="width:100%" size="large" help="{{choosePrizeTips.content}}" class="probability-prize-content-formItem probability-prize-content-formItem-choosePrize" label="权益隐藏id" required>
<input class="probability-prize-content-input" data-name="ename" onChange="onChangePrizeValue" value="{{prizeInitData.ename}}" hasLimitHint="true" name="权益隐藏id" defaultValue="{{prizeDialogEdit ? prizeDialogData.record.ename : prizeInitData.ename}}" placeholder="请输入权益隐藏id"/>
</form-item>
<form-item a:if="{{[EQUITY_TYPE].includes(prizeInitData.type) && prizeInitData.benefitType == 1}}" validateState="{{choosePrizeTips.status}}" style="width:100%" size="large" help="{{choosePrizeTips.content}}" class="probability-prize-content-formItem probability-prize-content-formItem-choosePrize" label="选择奖品" required>
<form-item a:if="{{[EQUITY_TYPE].includes(prizeInitData.type) && prizeInitData.benefitType == SIMPLE_EQUITY}}" validateState="{{choosePrizeTips.status}}" style="width:100%" size="large" help="{{choosePrizeTips.content}}" class="probability-prize-content-formItem probability-prize-content-formItem-choosePrize" label="选择奖品" required>
<view class="probability-prize-content-formitem-choosePrize-wrap">
<input a:if="{{prizeInitData.ename}}" class="probability-prize-content-input" style="margin-right:10px" onChange="changeInput" maxLength="10" value="{{prizeInitData.name}}" hasLimitHint="true" name="活动名称" defaultValue="{{prizeDialogEdit ? prizeDialogData.record.name : prizeInitData.name}}" placeholder="请选择奖品"/>
<view a:if="{{!isEdit}}" class="probability-prize-content-formitem-goequity" onTap="navigateToPlugin" type="primary">{{prizeInitData.ename ? '重新选择' : '选择奖品'}}</view>
......@@ -46,7 +46,7 @@
</form-item>
<form-item
style="width:100%"
a:if="{{[OBJECT_TYPE, CREDITS_TYPE].includes(prizeInitData.type)}}"
a:if="{{[OBJECT_TYPE, CREDITS_TYPE].includes(prizeInitData.type) || prizeInitData.benefitType==MEMBER_EQUITY}}"
size="large"
class="probability-prize-content-formItem"
label="奖品名称"
......
......@@ -41,6 +41,8 @@ Component({
CREDITS_TYPE,
OBJECT_TYPE,
LOWER_TYPE,
SIMPLE_EQUITY:1,
MEMBER_EQUITY:2,
showDialogMask: true,
canSavePrize: true,
dialogTop: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment