Commit e8efbc02 authored by zhaofei's avatar zhaofei

修改模版

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