Commit 2291a1e9 authored by zhaofei's avatar zhaofei

修改模板

parent 8024399e
......@@ -418,23 +418,23 @@ export default class ActivityConfigService {
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 => {
prizeData[item.key].filter(prize => {
return prize[condition.key] == condition.value
})
})
}
})
// // 取出奖池种类
// 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 => {
// prizeData[item.key].filter(prize => {
// return prize[condition.key] == condition.value
// })
// })
// }
// })
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