Commit 1004c8b3 authored by zhaofei's avatar zhaofei

s

parent dab8aa92
...@@ -416,16 +416,7 @@ export default class ActivityConfigService { ...@@ -416,16 +416,7 @@ export default class ActivityConfigService {
formatPrizeConfig(prizeConfig: Array<IActivityPrize>) { formatPrizeConfig(prizeConfig: Array<IActivityPrize>) {
// level 根据level排序 // level 根据level排序
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).map(item=>{ const poolConfig = <%- JSON.stringify(formatPrize) %>
const data = {
key: item.key,
conditionKeys:item.conditionKeys,
name:item.name,
prizeDataType:item.prizeDataType,
sort: item.sort
}
return data
}) %>
// 取出奖池 // 取出奖池
let prizeData = {} let prizeData = {}
poolConfig.forEach(item => { poolConfig.forEach(item => {
......
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