Commit 282a1a48 authored by zhaofei's avatar zhaofei

修改模板

parent ae636e8e
......@@ -418,17 +418,17 @@ export default class ActivityConfigService {
let prizeList = prizeConfig.sort((a,b) => a.level - b.level)
prizeData = {
<% for(var i = 0; i < configList.length; ++i) {%>
<%- configList[i].sort == 'prizePool' && `${configList[i].key}:' prizeList.filter(item=> { return item.prizeDataType == ${configList[i].prizeDataType}})',` %><% } %>
<%- `${configList[i].key}:' prizeList.filter(item=> { return item.prizeDataType == ${configList[i].prizeDataType}})',` %><% } %>
}
<% for(var i = 0; i < configList.length; ++i) {%>
<% if(configList[i].conditionKeys && configList[i].conditionKeys.length) {%>
<% for(var j = 0; j < configList[i].conditionKeys.length; ++j) {%>
<%-`
prizeData['${configList[i].key}'].filter(item=> return item['${ configList[i].conditionKeys[j].key}' == ${configList[i].conditionKeys[j].value}])
`%>
<% } %>
<% } %>
<% } %>
// <% for(var i = 0; i < configList.length; ++i) {%>
// <% if(configList[i].conditionKeys && configList[i].conditionKeys.length) {%>
// <% for(var j = 0; j < configList[i].conditionKeys.length; ++j) {%>
// <%-`
// prizeData['${configList[i].key}'].filter(item=> return item['${ configList[i].conditionKeys[j].key}' == ${configList[i].conditionKeys[j].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