Commit 15f59646 authored by zhaofei's avatar zhaofei

修改模板

parent ecfafee3
......@@ -38,7 +38,8 @@
<prize-dialog
a:if="{{dialogVisible}}"
visible="{{dialogVisible}}"
isEdit="{{isEdit}}"
isEdit="{{isEdit}}"
conditionKeys="{{conditionKeys}}"
prizeDialogData="{{prizeDialogData}}"
onClose="onCloseDialog"
type="probablity"
......
......@@ -10,6 +10,7 @@ Component({
list: [],
onChange: () => { },
dataName: '',
conditionKeys: [],
imageLimit: [250, 250],
prizeDataType: null
},
......
......@@ -37,6 +37,7 @@
a:if="{{dialogVisible}}"
visible="{{dialogVisible}}"
isEdit="{{isEdit}}"
conditionKeys="{{conditionKeys}}"
prizeDialogData="{{prizeDialogData}}"
imageLimit="{{imageLimit}}"
onClose="onCloseDialog"
......
......@@ -9,6 +9,7 @@ Component({
limit: 20,
imageLimit: [250, 250],
fixedRank: [],
conditionKeys: [],
maxRankLimit: '',
list: [],
onChange: () => { },
......
......@@ -417,14 +417,14 @@ export default class ActivityConfigService {
// level 根据level排序
let prizeList = prizeConfig.sort((a, b) => a.level - b.level)
const poolConfig = <%- JSON.stringify(activityConfigList) %>
// 取出奖池
let prizeData = {}
poolConfig.forEach(item => {
prizeData[item.key] = prizeList.filter(prize => {
return +item.prizeDataType == +prize.prizeDataType
})
});
// 过滤奖池条件
poolConfig.forEach(item => {
if (item.conditionKeys?.length) {
item.conditionKeys.forEach(condition => {
......
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