Commit 2291a1e9 authored by zhaofei's avatar zhaofei

修改模板

parent 8024399e
...@@ -418,23 +418,23 @@ export default class ActivityConfigService { ...@@ -418,23 +418,23 @@ export default class ActivityConfigService {
let prizeList = prizeConfig.sort((a, b) => a.level - b.level) let prizeList = prizeConfig.sort((a, b) => a.level - b.level)
const poolConfig = <% - JSON.stringify(activityConfigList) %> const poolConfig = <% - JSON.stringify(activityConfigList) %>
// 取出奖池种类 // // 取出奖池种类
let prizeData = {} // let prizeData = {}
poolConfig.forEach(item => { // poolConfig.forEach(item => {
prizeData[item.key] = prizeList.filter(prize => { // prizeData[item.key] = prizeList.filter(prize => {
return +item.prizeDataType == +prize.prizeDataType // return +item.prizeDataType == +prize.prizeDataType
}) // })
}); // });
// 过滤奖池内条件 // // 过滤奖池内条件
poolConfig.forEach(item => { // poolConfig.forEach(item => {
if (item.conditionKeys?.length) { // if (item.conditionKeys?.length) {
item.conditionKeys.forEach(condition => { // item.conditionKeys.forEach(condition => {
prizeData[item.key].filter(prize => { // prizeData[item.key].filter(prize => {
return prize[condition.key] == condition.value // return prize[condition.key] == condition.value
}) // })
}) // })
} // }
}) // })
return prizeData return prizeData
} }
......
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