Commit e8efbc02 authored by zhaofei's avatar zhaofei

修改模版

parent ff4bb0d0
......@@ -29,7 +29,11 @@ Component({
<%- !taskKeys.includes(configList[i].key) && configList[i].key !== 'label' ? `${configList[i].key}: ${configList[i].defaultValue || "''"},` : '' %><% } %>
tasks: {
<% for(var i = 0; i < activityConfigList.length; ++i) {%>
<%- taskKeys.includes(activityConfigList[i].key) && activityConfigList[i].key !== 'label' ? `${activityConfigList[i].key},` : '' %><% } %>
<%- taskKeys.includes(activityConfigList[i].key) && activityConfigList[i].key !== 'label' ? `${activityConfigList[i].key}:{
value:${activityConfigList[i].value},
taskRateType:${activityConfigList[i].taskRateType},
times:${activityConfigList[i].times}
},` : '' %><% } %>
},
// tasks: {
// // 关注店铺
......@@ -217,7 +221,7 @@ Component({
} = params;
let prizeList = []
<% for(var i = 0; i < activityConfigList.length; ++i) {%>
<%- (!taskKeys.includes(activityConfigList[i].key) && activityConfigList[i].sort == 'prizePool') && `prizeList = [...prizeList,...${activityConfigList[i].key}]` %><% } %>
<%- (!taskKeys.includes(activityConfigList[i].key) && activityConfigList[i].sort == 'prizePool') ? `prizeList = [...prizeList,...${activityConfigList[i].key}]`:'' %><% } %>
return {
id,
activityId,
......
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