Commit f837d158 authored by zhaofei's avatar zhaofei

s

parent 4f74537c
......@@ -11,9 +11,10 @@
<form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required>
<view class="probability-prize-content-formitem-choosePrize-wrap">
<select onChange="onPrizeTypeChange" defaultValue="{{isEdit ? prizeDialogData.record.type : prizeInitData.type}}">
<option value="{{1}}">优惠券</option>
<option value="{{2}}">积分</option>
<option value="{{3}}">实物</option>
<option a:if="{{typeChecked.includes(1)}}" value="{{1}}">优惠券</option>
<option a:if="{{typeChecked.includes(2)}}" value="{{2}}">积分</option>
<option a:if="{{typeChecked.includes(3)}}" value="{{3}}">实物</option>
<option a:if="{{typeChecked.includes(5)}}" value="{{5}}">降级奖品</option>
</select>
</view>
</form-item>
......
......@@ -8,7 +8,7 @@ import { passUrlList, urlCheck } from "../../../utils/helper";
const EQUITY_TYPE = 1;
const CREDITS_TYPE = 2;
const OBJECT_TYPE = 3;
const THANKS_TYPE = 5;
const LOWER_TYPE = 5;
const STOCK_LIMIT = 1;
const STOCK_NO_LIMIT = 2;
......@@ -38,7 +38,7 @@ Component({
EQUITY_TYPE,
CREDITS_TYPE,
OBJECT_TYPE,
THANKS_TYPE,
LOWER_TYPE,
showDialogMask: true,
dialogTop: "",
rankTips: {
......@@ -115,6 +115,7 @@ Component({
datasource: [],
prizeDataType: null,
conditionKeys: [],
typeChecked: [],
onCloseDialog: function () { },
onUpdate: function () { },
},
......@@ -385,7 +386,6 @@ Component({
COUPON_TYPE,
CREDITS_TYPE,
OBJECT_TYPE,
THANKS_TYPE,
} = this.data;
if (type === LUKCY_POCKET_TYPE && !ename) {
......
......@@ -41,6 +41,7 @@
isEdit="{{isEdit}}"
conditionKeys="{{conditionKeys}}"
prizeDialogData="{{prizeDialogData}}"
typeChecked="{{typeChecked}}"
onClose="onCloseDialog"
type="{{type}}"
imageLimit="{{imageLimit}}"
......
......@@ -13,6 +13,7 @@ Component({
conditionKeys: [],
imageLimit: [250, 250],
prizeDataType: null,
typeChecked: [],
type:''
},
didMount() { },
......
......@@ -41,6 +41,7 @@
prizeDialogData="{{prizeDialogData}}"
prizeDataType="{{prizeDataType}}"
imageLimit="{{imageLimit}}"
typeChecked="{{typeChecked}}"
onClose="onCloseDialog"
type="rank"
maxRankLimit="{{maxRankLimit}}"
......
......@@ -12,6 +12,7 @@ Component({
conditionKeys: [],
maxRankLimit: '',
list: [],
typeChecked: [],
prizeDataType:null,
onChange: () => { },
dataName: ''
......
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