Showing
10 changed files
with
394 additions
and
428 deletions
@@ -6,12 +6,19 @@ | @@ -6,12 +6,19 @@ | ||
6 | module.exports=function(app) { | 6 | module.exports=function(app) { |
7 | 7 | ||
8 | /*资源管理首页*/ | 8 | /*资源管理首页*/ |
9 | - app.get("/resource/index/index","resource.resourceManage.Index"); | 9 | + app.get("/resource/index/index","resource.resourceManage.Index", function () { |
10 | + this.$extend = { | ||
11 | + moduleName: "资源管理", | ||
12 | + pageName: "资源管理" | ||
13 | + } | ||
14 | + }); | ||
10 | 15 | ||
11 | /*资源内容管理页*/ | 16 | /*资源内容管理页*/ |
12 | app.get("/resource/content/index/:param","resource.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) { | 17 | app.get("/resource/content/index/:param","resource.resourceManage.ContentManage", "resourceManage_getUrlAction", function (response) { |
13 | this.$extend = { | 18 | this.$extend = { |
14 | - data:response.data | 19 | + data:response.data, |
20 | + moduleName: "资源管理", | ||
21 | + pageName: "资源内容管理" | ||
15 | }; | 22 | }; |
16 | }); | 23 | }); |
17 | 24 |
1 | <!-- 添加图标、楼层 --> | 1 | <!-- 添加图标、楼层 --> |
2 | <script type="text/template" id="icon-template"> | 2 | <script type="text/template" id="icon-template"> |
3 | - <%if contentData.template_name=='appIconList'%> | 3 | + [[if contentData.template_name=='appIconList']] |
4 | <div class="panel-body"> | 4 | <div class="panel-body"> |
5 | <div class="form-group"> | 5 | <div class="form-group"> |
6 | <label class="col-sm-2">图标类型</label> | 6 | <label class="col-sm-2">图标类型</label> |
@@ -12,57 +12,57 @@ | @@ -12,57 +12,57 @@ | ||
12 | <label style="cursor: pointer;"> | 12 | <label style="cursor: pointer;"> |
13 | <input type="radio" name="number" class="icon-number" value="5">一行5个 | 13 | <input type="radio" name="number" class="icon-number" value="5">一行5个 |
14 | </label> | 14 | </label> |
15 | - <input type="hidden" id="number" value="<%contentData.number%>" for="radio"/> | 15 | + <input type="hidden" id="number" value="[[contentData.number]]" for="radio"/> |
16 | </div> | 16 | </div> |
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |
19 | - <%/if%> | 19 | + [[/if]] |
20 | <div class="panel-body"> | 20 | <div class="panel-body"> |
21 | <div> | 21 | <div> |
22 | <ul class="draggable" data-array="data"> | 22 | <ul class="draggable" data-array="data"> |
23 | - <%each contentData.data as item index%> | 23 | + [[each contentData.data as item index]] |
24 | <li> | 24 | <li> |
25 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 25 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
26 | <tbody> | 26 | <tbody> |
27 | <tr> | 27 | <tr> |
28 | <td align="center"> | 28 | <td align="center"> |
29 | - <%index+1%> | 29 | + [[index+1]] |
30 | </td> | 30 | </td> |
31 | - <td align="center"><input type="file" name="file" value="<%item.src%>" class="observe" data-field="<%index%>.src"/> | 31 | + <td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/> |
32 | </td> | 32 | </td> |
33 | <td> | 33 | <td> |
34 | <div class="form-group "> | 34 | <div class="form-group "> |
35 | - <select name="goTo" class="form-control observe" value="<%item.url.action%>" | ||
36 | - data-field="<%index%>.url.action"> | ||
37 | - <%layout action_template%> | 35 | + <select name="goTo" class="form-control observe" value="[[item.url.action]]" |
36 | + data-field="[[index]].url.action"> | ||
37 | + [[layout action_template]] | ||
38 | </select> | 38 | </select> |
39 | </div> | 39 | </div> |
40 | <div class="form-group "> | 40 | <div class="form-group "> |
41 | - <input value="<%item.url.url%>" class="form-control observe" required="required" | ||
42 | - data-field="<%index%>.url.url" placeholder="图片链接"/> | 41 | + <input value="[[item.url.url]]" class="form-control observe" required="required" |
42 | + data-field="[[index]].url.url" placeholder="图片链接"/> | ||
43 | 43 | ||
44 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> | 44 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> |
45 | </div> | 45 | </div> |
46 | <div class="form-group "> | 46 | <div class="form-group "> |
47 | - <input value="<%item.alt%>" class="form-control observe" | ||
48 | - data-field="<%index%>.alt" placeholder="图片描述"/> | 47 | + <input value="[[item.alt]]" class="form-control observe" |
48 | + data-field="[[index]].alt" placeholder="图片描述"/> | ||
49 | 49 | ||
50 | </div> | 50 | </div> |
51 | - <%if contentData.template_name=='addfloor'%> | 51 | + [[if contentData.template_name=='addfloor']] |
52 | <div class="form-group "> | 52 | <div class="form-group "> |
53 | - <input value="<%item.altEn%>" class="form-control observe" | ||
54 | - data-field="<%index%>.altEn" placeholder="英文描述"/> | 53 | + <input value="[[item.altEn]]" class="form-control observe" |
54 | + data-field="[[index]].altEn" placeholder="英文描述"/> | ||
55 | </div> | 55 | </div> |
56 | - <%/if%> | 56 | + [[/if]] |
57 | </td> | 57 | </td> |
58 | <td> | 58 | <td> |
59 | - <a class="btn btn-danger delBtn" data-event="icon.data" data-index="<%index%>">删除</a> | 59 | + <a class="btn btn-danger delBtn" data-event="icon.data" data-index="[[index]]">删除</a> |
60 | </td> | 60 | </td> |
61 | </tr> | 61 | </tr> |
62 | </tbody> | 62 | </tbody> |
63 | </table> | 63 | </table> |
64 | </li> | 64 | </li> |
65 | - <%/each%> | 65 | + [[/each]] |
66 | </ul> | 66 | </ul> |
67 | </div> | 67 | </div> |
68 | <a href="JavaScript:;" data-event="icon.data" class="btn btn-primary btn-xs addBtn">添加一个</a> | 68 | <a href="JavaScript:;" data-event="icon.data" class="btn btn-primary btn-xs addBtn">添加一个</a> |
@@ -71,80 +71,80 @@ | @@ -71,80 +71,80 @@ | ||
71 | <!-- 推荐品牌--> | 71 | <!-- 推荐品牌--> |
72 | <script type="text/template" id="brands-template"> | 72 | <script type="text/template" id="brands-template"> |
73 | <div class="panel-body"> | 73 | <div class="panel-body"> |
74 | - <%if contentData.template_name=='appHotBrands'%> | 74 | + [[if contentData.template_name=='appHotBrands']] |
75 | <div class="form-group"> | 75 | <div class="form-group"> |
76 | <div class="col-sm-10"> | 76 | <div class="col-sm-10"> |
77 | <label>标题</label> | 77 | <label>标题</label> |
78 | - <input class="form-control observe input-form" type="text" value="<%contentData.data.title.title%>" data-field="title.title" placeholder="推荐品牌"> | 78 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="推荐品牌"> |
79 |     <label>显示名称</label> | 79 |     <label>显示名称</label> |
80 | <label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="Y">是</label> | 80 | <label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="Y">是</label> |
81 | <label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="N">否</label> | 81 | <label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="N">否</label> |
82 | - <input type="hidden" id="is_show_name_brand" value="<%contentData.data.is_show_name%>" for="radio"/> | 82 | + <input type="hidden" id="is_show_name_brand" value="[[contentData.data.is_show_name]]" for="radio"/> |
83 | </div> | 83 | </div> |
84 | </div> | 84 | </div> |
85 | - <%/if%> | ||
86 | - <%if contentData.template_name=='customBrands'%> | 85 | + [[/if]] |
86 | + [[if contentData.template_name=='customBrands']] | ||
87 | <div class="form-group"> | 87 | <div class="form-group"> |
88 | <div class="col-sm-6"> | 88 | <div class="col-sm-6"> |
89 | <label>标题</label>     | 89 | <label>标题</label>     |
90 | - <input class="form-control observe input-form" type="text" value="<%contentData.data.title.title%>" data-field="title.title" placeholder="自定义品牌"> | 90 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="自定义品牌"> |
91 | </div> | 91 | </div> |
92 | </div> | 92 | </div> |
93 | <div class="form-group"> | 93 | <div class="form-group"> |
94 | <div class="col-sm-6"> | 94 | <div class="col-sm-6"> |
95 | <label>附加参数</label>   | 95 | <label>附加参数</label>   |
96 | - <select class="form-control observe input-form" value="<%contentData.data.title.param%>" data-field="title.param"> | ||
97 | - <%layout parm1_template%> | 96 | + <select class="form-control observe input-form" value="[[contentData.data.title.param]]" data-field="title.param"> |
97 | + [[layout parm1_template]] | ||
98 | </select> | 98 | </select> |
99 | </div> | 99 | </div> |
100 | <div class="col-sm-6"> | 100 | <div class="col-sm-6"> |
101 | <label>附加参数值</label>  | 101 | <label>附加参数值</label>  |
102 | - <input class="form-control observe input-form" type="text" value="<%contentData.data.title.param_value%>" data-field="title.param_value" placeholder="附加参数值"> | 102 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.title.param_value]]" data-field="title.param_value" placeholder="附加参数值"> |
103 | </div> | 103 | </div> |
104 | </div> | 104 | </div> |
105 | - <%/if%> | ||
106 | - <%if contentData.template_name=='kidsBrands'%> | 105 | + [[/if]] |
106 | + [[if contentData.template_name=='kidsBrands']] | ||
107 | <div class="form-group"> | 107 | <div class="form-group"> |
108 | <div class="col-sm-6"> | 108 | <div class="col-sm-6"> |
109 | <label>标题</label>     | 109 | <label>标题</label>     |
110 | - <input class="form-control observe input-form" required type="text" value="<%contentData.data.params.title%>" data-field="params.title" placeholder="请输入标题" prompt="标题"> | 110 | + <input class="form-control observe input-form" required type="text" value="[[contentData.data.params.title]]" data-field="params.title" placeholder="请输入标题" prompt="标题"> |
111 | </div> | 111 | </div> |
112 | </div> | 112 | </div> |
113 | <div class="form-group"> | 113 | <div class="form-group"> |
114 | <div class="col-sm-6"> | 114 | <div class="col-sm-6"> |
115 | <label>分类</label>     | 115 | <label>分类</label>     |
116 | - <select class="form-control observe input-form" value="<%contentData.data.params.param%>" data-field="params.param"> | ||
117 | - <%layout parm2_template%> | 116 | + <select class="form-control observe input-form" value="[[contentData.data.params.param]]" data-field="params.param"> |
117 | + [[layout parm2_template]] | ||
118 | </select> | 118 | </select> |
119 | </div> | 119 | </div> |
120 | <div class="col-sm-6"> | 120 | <div class="col-sm-6"> |
121 | <label>附加参数值</label>  | 121 | <label>附加参数值</label>  |
122 | - <input class="form-control observe input-form" type="text" value="<%contentData.data.params.paramValue%>" data-field="params.paramValue" placeholder="附加参数值"> | 122 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.params.paramValue]]" data-field="params.paramValue" placeholder="附加参数值"> |
123 | </div> | 123 | </div> |
124 | </div> | 124 | </div> |
125 | <div class="form-group "> | 125 | <div class="form-group "> |
126 | <div class="col-sm-6"> | 126 | <div class="col-sm-6"> |
127 | <label>更多名称</label>   | 127 | <label>更多名称</label>   |
128 | - <input class="form-control observe input-form" type="text" value="<%contentData.data.params.more%>" data-field="params.more" placeholder="更多名称"> | 128 | + <input class="form-control observe input-form" type="text" value="[[contentData.data.params.more]]" data-field="params.more" placeholder="更多名称"> |
129 | </div> | 129 | </div> |
130 | </div> | 130 | </div> |
131 | <div class="form-group "> | 131 | <div class="form-group "> |
132 | <div class="col-sm-6"> | 132 | <div class="col-sm-6"> |
133 | <label>跳转目的</label>   | 133 | <label>跳转目的</label>   |
134 | - <select name="goTo" class="form-control observe input-form" value="<%contentData.data.params.more_url.action%>" | 134 | + <select name="goTo" class="form-control observe input-form" value="[[contentData.data.params.more_url.action]]" |
135 | data-field="params.more_url.action"> | 135 | data-field="params.more_url.action"> |
136 | - <%layout action_template%> | 136 | + [[layout action_template]] |
137 | </select> | 137 | </select> |
138 | </div> | 138 | </div> |
139 | <div class="col-sm-6"> | 139 | <div class="col-sm-6"> |
140 | <label>链接</label>     | 140 | <label>链接</label>     |
141 | - <input placeholder="url" value="<%contentData.data.params.more_url.url%>" class="form-control observe input-form" | 141 | + <input placeholder="url" value="[[contentData.data.params.more_url.url]]" class="form-control observe input-form" |
142 | data-field="params.more_url.url"/> | 142 | data-field="params.more_url.url"/> |
143 | <br>       | 143 | <br>       |
144 | <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label> | 144 | <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label> |
145 | </div> | 145 | </div> |
146 | </div> | 146 | </div> |
147 | - <%/if%> | 147 | + [[/if]] |
148 | </div> | 148 | </div> |
149 | <div class="panel-body"> | 149 | <div class="panel-body"> |
150 | <div class="form-group"> | 150 | <div class="form-group"> |
@@ -152,31 +152,31 @@ | @@ -152,31 +152,31 @@ | ||
152 | </div> | 152 | </div> |
153 | <div> | 153 | <div> |
154 | <ul class="draggable" data-array="data.list"> | 154 | <ul class="draggable" data-array="data.list"> |
155 | - <%each contentData.data.list as item index%> | 155 | + [[each contentData.data.list as item index]] |
156 | <li> | 156 | <li> |
157 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 157 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
158 | <tbody> | 158 | <tbody> |
159 | <tr> | 159 | <tr> |
160 | <td align="center"> | 160 | <td align="center"> |
161 | - <input type="file" name="file" value="<%item.src%>" class="observe" data-field="list.<%index%>.src"/> | 161 | + <input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/> |
162 | </td> | 162 | </td> |
163 | <td align="center"> | 163 | <td align="center"> |
164 | <div class="form-group"> | 164 | <div class="form-group"> |
165 | - <%if contentData.template_name=='kidsBrands'%> | ||
166 | - <input class="form-control observe" type="text" value="<%item.title%>" data-field="list.<%index%>.title"> | ||
167 | - <%else%> | ||
168 | - <input class="form-control observe" type="text" value="<%item.name%>" data-field="list.<%index%>.name"> | ||
169 | - <%/if%> | 165 | + [[if contentData.template_name=='kidsBrands']] |
166 | + <input class="form-control observe" type="text" value="[[item.title]]" data-field="list.[[index]].title"> | ||
167 | + [[else]] | ||
168 | + <input class="form-control observe" type="text" value="[[item.name]]" data-field="list.[[index]].name"> | ||
169 | + [[/if]] | ||
170 | </div> | 170 | </div> |
171 | </td> | 171 | </td> |
172 | <td> | 172 | <td> |
173 | - <a class="btn btn-danger delBtn" data-event="brands.list" data-index="<%index%>">删除</a> | 173 | + <a class="btn btn-danger delBtn" data-event="brands.list" data-index="[[index]]">删除</a> |
174 | </td> | 174 | </td> |
175 | </tr> | 175 | </tr> |
176 | </tbody> | 176 | </tbody> |
177 | </table> | 177 | </table> |
178 | </li> | 178 | </li> |
179 | - <%/each%> | 179 | + [[/each]] |
180 | </ul> | 180 | </ul> |
181 | </div> | 181 | </div> |
182 | 182 | ||
@@ -185,7 +185,7 @@ | @@ -185,7 +185,7 @@ | ||
185 | 185 | ||
186 | </div> | 186 | </div> |
187 | <div class="panel-body"> | 187 | <div class="panel-body"> |
188 | - <%if contentData.template_name=='appHotBrands'%> | 188 | + [[if contentData.template_name=='appHotBrands']] |
189 | <div class="form-group"> | 189 | <div class="form-group"> |
190 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 190 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
191 | <thead> | 191 | <thead> |
@@ -197,27 +197,27 @@ | @@ -197,27 +197,27 @@ | ||
197 | <tbody> | 197 | <tbody> |
198 | <tr> | 198 | <tr> |
199 | <td> | 199 | <td> |
200 | - <input type="file" name="file" value="<%contentData.data.image.src%>" | 200 | + <input type="file" name="file" value="[[contentData.data.image.src]]" |
201 | class="observe" required="required" | 201 | class="observe" required="required" |
202 | data-field="image.src"/> | 202 | data-field="image.src"/> |
203 | </td> | 203 | </td> |
204 | <td> | 204 | <td> |
205 | <div class="form-group "> | 205 | <div class="form-group "> |
206 | <select name="goTo" class="form-control observe" | 206 | <select name="goTo" class="form-control observe" |
207 | - value="<%contentData.data.image.url.action%>" | 207 | + value="[[contentData.data.image.url.action]]" |
208 | data-field="image.url.action"> | 208 | data-field="image.url.action"> |
209 | - <%layout action_template%> | 209 | + [[layout action_template]] |
210 | </select> | 210 | </select> |
211 | </div> | 211 | </div> |
212 | <div class="form-group "> | 212 | <div class="form-group "> |
213 | - <input value="<%contentData.data.image.url.url%>" | 213 | + <input value="[[contentData.data.image.url.url]]" |
214 | class="form-control observe" | 214 | class="form-control observe" |
215 | data-field="image.url.url" placeholder="图片链接"/> | 215 | data-field="image.url.url" placeholder="图片链接"/> |
216 | 216 | ||
217 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> | 217 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> |
218 | </div> | 218 | </div> |
219 | <div class="form-group "> | 219 | <div class="form-group "> |
220 | - <input value="<%contentData.data.image.alt%>" | 220 | + <input value="[[contentData.data.image.alt]]" |
221 | class="form-control observe" | 221 | class="form-control observe" |
222 | data-field="image.alt" placeholder="图片描述"/> | 222 | data-field="image.alt" placeholder="图片描述"/> |
223 | </div> | 223 | </div> |
@@ -226,7 +226,7 @@ | @@ -226,7 +226,7 @@ | ||
226 | </tbody> | 226 | </tbody> |
227 | </table> | 227 | </table> |
228 | </div> | 228 | </div> |
229 | - <%/if%> | 229 | + [[/if]] |
230 | </div> | 230 | </div> |
231 | 231 | ||
232 | </script> | 232 | </script> |
@@ -234,23 +234,23 @@ | @@ -234,23 +234,23 @@ | ||
234 | <script type="text/template" id="template5"> | 234 | <script type="text/template" id="template5"> |
235 | <div class="row" id="brandForm"> | 235 | <div class="row" id="brandForm"> |
236 | <div class="form-group"> | 236 | <div class="form-group"> |
237 | - <%each Brands as brand index%> | ||
238 | - <a class="btn brand-index" href="#<%brand.name%>"><%brand.name%></a> | ||
239 | - <%/each%> | 237 | + [[each Brands as brand index]] |
238 | + <a class="btn brand-index" href="#[[brand.name]]">[[brand.name]]</a> | ||
239 | + [[/each]] | ||
240 | </div> | 240 | </div> |
241 | <div class="form-group brand-wrap" style="height: 400px;overflow: auto;"> | 241 | <div class="form-group brand-wrap" style="height: 400px;overflow: auto;"> |
242 | - <%each Brands as brand index%> | ||
243 | - <div class="form-group" name="<%brand.name%>"> | ||
244 | - <%each brand.items as item __index %> | 242 | + [[each Brands as brand index]] |
243 | + <div class="form-group" name="[[brand.name]]"> | ||
244 | + [[each brand.items as item __index ]] | ||
245 | <a class="btn"> | 245 | <a class="btn"> |
246 | - <input type="checkbox" value="<%item.id%>" name="brandCheckBox"> | ||
247 | - <label><%item.brand_name%></label> | 246 | + <input type="checkbox" value="[[item.id]]" name="brandCheckBox"> |
247 | + <label>[[item.brand_name]]</label> | ||
248 | </a> | 248 | </a> |
249 | - <%/each%> | 249 | + [[/each]] |
250 | </div> | 250 | </div> |
251 | - <%/each%> | 251 | + [[/each]] |
252 | </div> | 252 | </div> |
253 | - <input type="hidden" id="brandCheckBox" for="checkbox" value="<%Brdata%>"/> | 253 | + <input type="hidden" id="brandCheckBox" for="checkbox" value="[[Brdata]]"/> |
254 | </div> | 254 | </div> |
255 | </script> | 255 | </script> |
256 | <!--自定义品牌附加参数--> | 256 | <!--自定义品牌附加参数--> |
@@ -269,23 +269,23 @@ | @@ -269,23 +269,23 @@ | ||
269 | <div class="form-group "> | 269 | <div class="form-group "> |
270 | <div class="col-sm-6"> | 270 | <div class="col-sm-6"> |
271 | <label>标题名称</label>   | 271 | <label>标题名称</label>   |
272 | - <input class="form-control observe input-form" placeholder="标题名称" type="text" value="<%contentData.data.title_name%>" data-field="title_name" required> | 272 | + <input class="form-control observe input-form" placeholder="标题名称" type="text" value="[[contentData.data.title_name]]" data-field="title_name" required> |
273 | </div> | 273 | </div> |
274 | <div class="col-sm-6"> | 274 | <div class="col-sm-6"> |
275 | <label>更多名称</label>   | 275 | <label>更多名称</label>   |
276 | - <input class="form-control observe input-form" type="text" placeholder="更多名称" value="<%contentData.data.more_name%>" data-field="more_name"> | 276 | + <input class="form-control observe input-form" type="text" placeholder="更多名称" value="[[contentData.data.more_name]]" data-field="more_name"> |
277 | </div> | 277 | </div> |
278 | </div> | 278 | </div> |
279 | <div class="form-group "> | 279 | <div class="form-group "> |
280 | <div class="col-sm-6"> | 280 | <div class="col-sm-6"> |
281 | <label>跳转目的</label>   | 281 | <label>跳转目的</label>   |
282 | - <select name="goTo" class="form-control observe input-form" value="<%contentData.data.more_link.action%>" data-field="more_link.action"> | ||
283 | - <%layout action_template%> | 282 | + <select name="goTo" class="form-control observe input-form" value="[[contentData.data.more_link.action]]" data-field="more_link.action"> |
283 | + [[layout action_template]] | ||
284 | </select> | 284 | </select> |
285 | </div> | 285 | </div> |
286 | <div class="col-sm-6"> | 286 | <div class="col-sm-6"> |
287 | <label>链接</label>     | 287 | <label>链接</label>     |
288 | - <input value="<%contentData.data.more_link.url%>" class="form-control observe input-form" data-field="more_link.url" placeholder="url"/> | 288 | + <input value="[[contentData.data.more_link.url]]" class="form-control observe input-form" data-field="more_link.url" placeholder="url"/> |
289 | <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p> | 289 | <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p> |
290 | </div> | 290 | </div> |
291 | </div> | 291 | </div> |
@@ -301,15 +301,15 @@ | @@ -301,15 +301,15 @@ | ||
301 | </tr> | 301 | </tr> |
302 | </thead> | 302 | </thead> |
303 | <tbody> | 303 | <tbody> |
304 | - <%each contentData.data.nav as item index%> | 304 | + [[each contentData.data.nav as item index]] |
305 | <tr> | 305 | <tr> |
306 | <td align="center"> | 306 | <td align="center"> |
307 | - <%index+1%> | 307 | + [[index+1]] |
308 | </td> | 308 | </td> |
309 | <td align="center"> | 309 | <td align="center"> |
310 | <div class="form-group"> | 310 | <div class="form-group"> |
311 | <div class="col-sm-10"> | 311 | <div class="col-sm-10"> |
312 | - <input value="<%item.name%>" class="form-control observe" required="required" data-field="nav.<%index%>.name" placeholder="标签名称"/> | 312 | + <input value="[[item.name]]" class="form-control observe" required="required" data-field="nav.[[index]].name" placeholder="标签名称"/> |
313 | </div> | 313 | </div> |
314 | </div> | 314 | </div> |
315 | 315 | ||
@@ -317,23 +317,23 @@ | @@ -317,23 +317,23 @@ | ||
317 | <td> | 317 | <td> |
318 | <div class="form-group"> | 318 | <div class="form-group"> |
319 | <div class="col-sm-10"> | 319 | <div class="col-sm-10"> |
320 | - <select name="goTo" class="form-control observe" value="<%item.url.action%>" | ||
321 | - data-field="nav.<%index%>.url.action"> | ||
322 | - <%layout action_template%> | 320 | + <select name="goTo" class="form-control observe" value="[[item.url.action]]" |
321 | + data-field="nav.[[index]].url.action"> | ||
322 | + [[layout action_template]] | ||
323 | </select> | 323 | </select> |
324 | </div> | 324 | </div> |
325 | </div> | 325 | </div> |
326 | <div class="form-group"> | 326 | <div class="form-group"> |
327 | <div class="col-sm-10"> | 327 | <div class="col-sm-10"> |
328 | - <input value="<%item.url.url%>" class=" form-control observe" required="required" | ||
329 | - data-field="nav.<%index%>.url.url" placeholder="链接"/> | 328 | + <input value="[[item.url.url]]" class=" form-control observe" required="required" |
329 | + data-field="nav.[[index]].url.url" placeholder="链接"/> | ||
330 | 330 | ||
331 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> | 331 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> |
332 | </div> | 332 | </div> |
333 | </div> | 333 | </div> |
334 | </td> | 334 | </td> |
335 | </tr> | 335 | </tr> |
336 | - <%/each%> | 336 | + [[/each]] |
337 | </tbody> | 337 | </tbody> |
338 | </table> | 338 | </table> |
339 | </div> | 339 | </div> |
@@ -345,38 +345,38 @@ | @@ -345,38 +345,38 @@ | ||
345 | <div class="panel-body"> | 345 | <div class="panel-body"> |
346 | <div> | 346 | <div> |
347 | <ul class="draggable" data-array="data"> | 347 | <ul class="draggable" data-array="data"> |
348 | - <%each contentData.data as item index%> | 348 | + [[each contentData.data as item index]] |
349 | <li> | 349 | <li> |
350 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 350 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
351 | <tbody> | 351 | <tbody> |
352 | <tr> | 352 | <tr> |
353 | <td align="center"> | 353 | <td align="center"> |
354 | - <%index+1%> | 354 | + [[index+1]] |
355 | </td> | 355 | </td> |
356 | <td align="center"> | 356 | <td align="center"> |
357 | <div class="form-group"> | 357 | <div class="form-group"> |
358 | <div class="col-sm-10"> | 358 | <div class="col-sm-10"> |
359 | - <input type="file" name="file" value="<%item.image.src%>" class="form-control observe" data-field="<%index%>.image.src" required placeholder="图片"/> | 359 | + <input type="file" name="file" value="[[item.image.src]]" class="form-control observe" data-field="[[index]].image.src" required placeholder="图片"/> |
360 | </div> | 360 | </div> |
361 | </div> | 361 | </div> |
362 | </td> | 362 | </td> |
363 | <td> | 363 | <td> |
364 | <div class="form-group"> | 364 | <div class="form-group"> |
365 | <div class="col-sm-10"> | 365 | <div class="col-sm-10"> |
366 | - <input value="<%item.couponID%>" id="couponID" class="form-control observe" required="required" data-field="<%index%>.couponID" placeholder="领券码"/> | 366 | + <input value="[[item.couponID]]" id="couponID" class="form-control observe" required="required" data-field="[[index]].couponID" placeholder="领券码"/> |
367 | <p style="color:#999;margin-top: 5px;">多个领券码以英文逗号隔开</p> | 367 | <p style="color:#999;margin-top: 5px;">多个领券码以英文逗号隔开</p> |
368 | </div> | 368 | </div> |
369 | </div> | 369 | </div> |
370 | <div class="form-group"> | 370 | <div class="form-group"> |
371 | <div class="col-sm-10"> | 371 | <div class="col-sm-10"> |
372 | - <select name="goTo" class="form-control observe" value="<%item.image.url.action%>" data-field="<%index%>.image.url.action"> | ||
373 | - <%layout action_template%> | 372 | + <select name="goTo" class="form-control observe" value="[[item.image.url.action]]" data-field="[[index]].image.url.action"> |
373 | + [[layout action_template]] | ||
374 | </select> | 374 | </select> |
375 | </div> | 375 | </div> |
376 | </div> | 376 | </div> |
377 | <div class="form-group"> | 377 | <div class="form-group"> |
378 | <div class="col-sm-10"> | 378 | <div class="col-sm-10"> |
379 | - <input value="<%item.image.url.url%>" class="form-control observe" required="required" data-field="<%index%>.image.url.url" placeholder="图片链接" type="text"/> | 379 | + <input value="[[item.image.url.url]]" class="form-control observe" required="required" data-field="[[index]].image.url.url" placeholder="图片链接" type="text"/> |
380 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> | 380 | <p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p> |
381 | </div> | 381 | </div> |
382 | </div> | 382 | </div> |
@@ -385,7 +385,7 @@ | @@ -385,7 +385,7 @@ | ||
385 | </tbody> | 385 | </tbody> |
386 | </table> | 386 | </table> |
387 | </li> | 387 | </li> |
388 | - <%/each%> | 388 | + [[/each]] |
389 | </ul> | 389 | </ul> |
390 | </div> | 390 | </div> |
391 | <a href="JavaScript:;" id="coupon-addOne" data-event="getCoupon.data" class="btn btn-primary btn-xs addBtn">添加一个</a> | 391 | <a href="JavaScript:;" id="coupon-addOne" data-event="getCoupon.data" class="btn btn-primary btn-xs addBtn">添加一个</a> |
This diff could not be displayed because it is too large.
1 | -<%else if module.contentData.template_name=='focus'%> | 1 | +[[else if module.contentData.template_name=='focus']] |
2 | <div class="focus"> | 2 | <div class="focus"> |
3 | <div class="focus-pic-list"> | 3 | <div class="focus-pic-list"> |
4 | - <img src="<%module.contentData.data[0].src%>"> | 4 | + <img src="[[module.contentData.data[0].src]]"> |
5 | </div> | 5 | </div> |
6 | </div> | 6 | </div> |
7 | -<%else if module.contentData.template_name=='appIconList'%> | 7 | +[[else if module.contentData.template_name=='appIconList']] |
8 | <div class="custom-pic"> | 8 | <div class="custom-pic"> |
9 | - <ul class="custom-pic clearfix image-list-box resource-row li<%module.contentData.number%>"> | ||
10 | - <%each module.contentData.data as item index%> | ||
11 | - <li><img src="<%item.src%>" class="custom-pic-img" style="margin:2px;"></li> | ||
12 | - <%/each%> | 9 | + <ul class="custom-pic clearfix image-list-box resource-row li[[module.contentData.number]]"> |
10 | + [[each module.contentData.data as item index]] | ||
11 | + <li><img src="[[item.src]]" class="custom-pic-img" style="margin:2px;"></li> | ||
12 | + [[/each]] | ||
13 | </ul> | 13 | </ul> |
14 | -<%else if module.contentData.template_name=='recommendContentOne'%> | 14 | +[[else if module.contentData.template_name=='recommendContentOne']] |
15 | <div class="recommend_content_one"> | 15 | <div class="recommend_content_one"> |
16 | <div class="recommend-info"> | 16 | <div class="recommend-info"> |
17 | - <p class="title"><%module.contentData.data.title.name%><a class="more" href="#"><%module.contentData.data.title.more_name%></a> | 17 | + <p class="title">[[module.contentData.data.title.name]]<a class="more" href="#">[[module.contentData.data.title.more_name]]</a> |
18 | </p> | 18 | </p> |
19 | 19 | ||
20 | - <p class="big-pic"><img src="<%module.contentData.data.big_image[0].src%>"></p> | 20 | + <p class="big-pic"><img src="[[module.contentData.data.big_image[0].src]]"></p> |
21 | <ul class="small-pic"> | 21 | <ul class="small-pic"> |
22 | - <%each module.contentData.data.list as item index%> | ||
23 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
24 | - <%/each%> | 22 | + [[each module.contentData.data.list as item index]] |
23 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
24 | + [[/each]] | ||
25 | </ul> | 25 | </ul> |
26 | </div> | 26 | </div> |
27 | </div> | 27 | </div> |
28 | -<%else if module.contentData.template_name=='recommendContentTwo'%> | 28 | +[[else if module.contentData.template_name=='recommendContentTwo']] |
29 | <div class="recommend_content_two"> | 29 | <div class="recommend_content_two"> |
30 | <div class="recommend-info"> | 30 | <div class="recommend-info"> |
31 | - <p class="title"><%module.contentData.data.title.name%><a class="more" href="#"><%module.contentData.data.title.more_name%></a> | 31 | + <p class="title">[[module.contentData.data.title.name]]<a class="more" href="#">[[module.contentData.data.title.more_name]]</a> |
32 | </p> | 32 | </p> |
33 | 33 | ||
34 | - <p class="big-pic"><img src="<%module.contentData.data.big_image[0].src%>"></p> | 34 | + <p class="big-pic"><img src="[[module.contentData.data.big_image[0].src]]"></p> |
35 | <ul class="small-pic"> | 35 | <ul class="small-pic"> |
36 | - <%each module.contentData.data.list as item index%> | ||
37 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
38 | - <%/each%> | 36 | + [[each module.contentData.data.list as item index]] |
37 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
38 | + [[/each]] | ||
39 | </ul> | 39 | </ul> |
40 | </div> | 40 | </div> |
41 | </div> | 41 | </div> |
42 | -<%else if module.contentData.template_name=='singleNameImage'%> | 42 | +[[else if module.contentData.template_name=='singleNameImage']] |
43 | <div class="single_name_image"> | 43 | <div class="single_name_image"> |
44 | <div class="single-info"> | 44 | <div class="single-info"> |
45 | <span class="title" | 45 | <span class="title" |
46 | - style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;"><%module.contentData.data.title%></span> | ||
47 | - <img src="<%module.contentData.data.src%>" style="width:100%"> | 46 | + style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;">[[module.contentData.data.title]]</span> |
47 | + <img src="[[module.contentData.data.src]]" style="width:100%"> | ||
48 | </div> | 48 | </div> |
49 | </div> | 49 | </div> |
50 | -<%else if module.contentData.template_name=='recommendContentThree'%> | 50 | +[[else if module.contentData.template_name=='recommendContentThree']] |
51 | <div class="recommend_content_three"> | 51 | <div class="recommend_content_three"> |
52 | <div class="recommend-info"> | 52 | <div class="recommend-info"> |
53 | - <p class="big-pic"><img src="<%module.contentData.data.big_image[0].src%>"></p> | 53 | + <p class="big-pic"><img src="[[module.contentData.data.big_image[0].src]]"></p> |
54 | <ul class="small-pic"> | 54 | <ul class="small-pic"> |
55 | - <%each module.contentData.data.list as item index%> | ||
56 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
57 | - <%/each%> | 55 | + [[each module.contentData.data.list as item index]] |
56 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
57 | + [[/each]] | ||
58 | </ul> | 58 | </ul> |
59 | </div> | 59 | </div> |
60 | </div> | 60 | </div> |
61 | -<%else if module.contentData.template_name=='recommendContentThree'%> | 61 | +[[else if module.contentData.template_name=='recommendContentThree']] |
62 | <div class="recommend_content_three"> | 62 | <div class="recommend_content_three"> |
63 | <div class="recommend-info"> | 63 | <div class="recommend-info"> |
64 | - <p class="big-pic"><img src="<%module.contentData.data.big_image[0].src%>"></p> | 64 | + <p class="big-pic"><img src="[[module.contentData.data.big_image[0].src]]"></p> |
65 | <ul class="small-pic"> | 65 | <ul class="small-pic"> |
66 | - <%each module.contentData.data.list as item index%> | ||
67 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
68 | - <%/each%> | 66 | + [[each module.contentData.data.list as item index]] |
67 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
68 | + [[/each]] | ||
69 | </ul> | 69 | </ul> |
70 | </div> | 70 | </div> |
71 | </div> | 71 | </div> |
72 | -<%else if module.contentData.template_name=='trendsetterCollocation'%> | 72 | +[[else if module.contentData.template_name=='trendsetterCollocation']] |
73 | <div class="big-pic"> | 73 | <div class="big-pic"> |
74 | <div class="wordText"> | 74 | <div class="wordText"> |
75 | <span>潮人搭配</span> | 75 | <span>潮人搭配</span> |
76 | </div> | 76 | </div> |
77 | </div> | 77 | </div> |
78 | -<%else if module.contentData.template_name=='trendgoodsTopic'%> | 78 | +[[else if module.contentData.template_name=='trendgoodsTopic']] |
79 | <div class="big-pic"> | 79 | <div class="big-pic"> |
80 | <div class="wordText"> | 80 | <div class="wordText"> |
81 | <span>潮品话题</span> | 81 | <span>潮品话题</span> |
82 | </div> | 82 | </div> |
83 | </div> | 83 | </div> |
84 | -<%else if module.contentData.template_name=='appHotBrands'%> | 84 | +[[else if module.contentData.template_name=='appHotBrands']] |
85 | <div class="form-group"> | 85 | <div class="form-group"> |
86 | <div class="row title"> | 86 | <div class="row title"> |
87 | - <%module.contentData.data.title.title%> | 87 | + [[module.contentData.data.title.title]] |
88 | </div> | 88 | </div> |
89 | <div class="col-sm-12"> | 89 | <div class="col-sm-12"> |
90 | <ul class="custom-pic clearfix"> | 90 | <ul class="custom-pic clearfix"> |
91 | - <%each module.contentData.data.list as item index%> | 91 | + [[each module.contentData.data.list as item index]] |
92 | <li> | 92 | <li> |
93 | - <img src="<%item.src%>" class="custom-pic-img" style="margin:2px;"> | 93 | + <img src="[[item.src]]" class="custom-pic-img" style="margin:2px;"> |
94 | </li> | 94 | </li> |
95 | - <%/each%> | ||
96 | - <%if module.contentData.data.image.src!=''%> | 95 | + [[/each]] |
96 | + [[if module.contentData.data.image.src!='']] | ||
97 | <li> | 97 | <li> |
98 | - <img src="<%module.contentData.data.image.src%>" class="custom-pic-img" style="margin:2px;"> | 98 | + <img src="[[module.contentData.data.image.src]]" class="custom-pic-img" style="margin:2px;"> |
99 | </li> | 99 | </li> |
100 | - <%/if%> | 100 | + [[/if]] |
101 | </ul> | 101 | </ul> |
102 | </div> | 102 | </div> |
103 | </div> | 103 | </div> |
104 | -<%else if module.contentData.template_name=='customBrands'%> | 104 | +[[else if module.contentData.template_name=='customBrands']] |
105 | <div class="custom-pic"> | 105 | <div class="custom-pic"> |
106 | - <div class="custom-brand-title row title"><%module.contentData.data.title.title%></div> | 106 | + <div class="custom-brand-title row title">[[module.contentData.data.title.title]]</div> |
107 | <ul class="custom-pic clearfix"> | 107 | <ul class="custom-pic clearfix"> |
108 | - <%each module.contentData.data.list as item index%> | ||
109 | - <li><img src="<%item.src%>" class="custom-pic-img" style="margin:2px;"></li> | ||
110 | - <%/each%> | 108 | + [[each module.contentData.data.list as item index]] |
109 | + <li><img src="[[item.src]]" class="custom-pic-img" style="margin:2px;"></li> | ||
110 | + [[/each]] | ||
111 | </ul> | 111 | </ul> |
112 | </div> | 112 | </div> |
113 | -<%else if module.contentData.template_name=='promotion'%> | 113 | +[[else if module.contentData.template_name=='promotion']] |
114 | <div class="link"> | 114 | <div class="link"> |
115 | <div class="wordText"> | 115 | <div class="wordText"> |
116 | <span>促销专区</span> | 116 | <span>促销专区</span> |
117 | </div> | 117 | </div> |
118 | 118 | ||
119 | </div> | 119 | </div> |
120 | -<%else if module.contentData.template_name=='carouselBanner'%> | 120 | +[[else if module.contentData.template_name=='carouselBanner']] |
121 | <div class="focus"> | 121 | <div class="focus"> |
122 | - <div class="focus-pic-list"><img src="<%module.contentData.data.list[0].src%>"></div> | 122 | + <div class="focus-pic-list"><img src="[[module.contentData.data.list[0].src]]"></div> |
123 | </div> | 123 | </div> |
124 | -<%else if module.contentData.template_name=='kidsBrands'%> | 124 | +[[else if module.contentData.template_name=='kidsBrands']] |
125 | <div class="hot-brand-list"> | 125 | <div class="hot-brand-list"> |
126 | <div class="hot-brand-title row title">kids推荐品牌</div> | 126 | <div class="hot-brand-title row title">kids推荐品牌</div> |
127 | <ul class="hot-brand-list"> | 127 | <ul class="hot-brand-list"> |
128 | - <%each module.contentData.data.list as item index%> | ||
129 | - <li data-toggle="brands"><img src="<%item.src%>"></li> | ||
130 | - <%/each%> | 128 | + [[each module.contentData.data.list as item index]] |
129 | + <li data-toggle="brands"><img src="[[item.src]]"></li> | ||
130 | + [[/each]] | ||
131 | </ul> | 131 | </ul> |
132 | </div> | 132 | </div> |
133 | -<%else if module.contentData.template_name=='recommendContentFour'%> | 133 | +[[else if module.contentData.template_name=='recommendContentFour']] |
134 | <div class="recommend_content_four"> | 134 | <div class="recommend_content_four"> |
135 | <div class="recommend-info"> | 135 | <div class="recommend-info"> |
136 | <div class="left" style="width:50%;float:left"> | 136 | <div class="left" style="width:50%;float:left"> |
137 | - <img src="<%module.contentData.data.left.list[0].src%>" width="100%" height="200"> | 137 | + <img src="[[module.contentData.data.left.list[0].src]]" width="100%" height="200"> |
138 | 138 | ||
139 | - <p class="left_title"><%module.contentData.data.left.title%></p> | 139 | + <p class="left_title">[[module.contentData.data.left.title]]</p> |
140 | </div> | 140 | </div> |
141 | <div class="right" style="width:50%;float:left"> | 141 | <div class="right" style="width:50%;float:left"> |
142 | <ul class="right-pic"> | 142 | <ul class="right-pic"> |
143 | - <%each module.contentData.data.right.list as item index%> | ||
144 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
145 | - <%/each%> | 143 | + [[each module.contentData.data.right.list as item index]] |
144 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
145 | + [[/each]] | ||
146 | </ul> | 146 | </ul> |
147 | - <p class="right_title"><%module.contentData.data.right.title%></p> | 147 | + <p class="right_title">[[module.contentData.data.right.title]]</p> |
148 | </div> | 148 | </div> |
149 | </div> | 149 | </div> |
150 | </div> | 150 | </div> |
151 | -<%else if module.contentData.template_name=='addfloor'%> | 151 | +[[else if module.contentData.template_name=='addfloor']] |
152 | <div class="app_icon_list"> | 152 | <div class="app_icon_list"> |
153 | <ul class="icon-list clearfix"> | 153 | <ul class="icon-list clearfix"> |
154 | - <%each module.contentData.data as item index%> | ||
155 | - <li style="width:75px; float:left;margin-left:5px;"><img src="<%item.src%>"></li> | ||
156 | - <%/each%> | 154 | + [[each module.contentData.data as item index]] |
155 | + <li style="width:75px; float:left;margin-left:5px;"><img src="[[item.src]]"></li> | ||
156 | + [[/each]] | ||
157 | </ul> | 157 | </ul> |
158 | </div> | 158 | </div> |
159 | -<%else if module.contentData.template_name=='recommendContentFive'%> | 159 | +[[else if module.contentData.template_name=='recommendContentFive']] |
160 | <div class="recommend_content_five"> | 160 | <div class="recommend_content_five"> |
161 | <div class="recommend-info"> | 161 | <div class="recommend-info"> |
162 | <span class="title" | 162 | <span class="title" |
163 | - style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;"><%module.contentData.data.title.title%></span> | 163 | + style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;">[[module.contentData.data.title.title]]</span> |
164 | <ul class="small-pic"> | 164 | <ul class="small-pic"> |
165 | - <%each module.contentData.data.list as item index%> | ||
166 | - <li class="li_<%index%>"><img src="<%item.src%>"></li> | ||
167 | - <%/each%> | 165 | + [[each module.contentData.data.list as item index]] |
166 | + <li class="li_[[index]]"><img src="[[item.src]]"></li> | ||
167 | + [[/each]] | ||
168 | </ul> | 168 | </ul> |
169 | </div> | 169 | </div> |
170 | </div> | 170 | </div> |
171 | -<%else if module.contentData.template_name=='textNav'%> | 171 | +[[else if module.contentData.template_name=='textNav']] |
172 | <div class="textNav"> | 172 | <div class="textNav"> |
173 | <div class="wordText"> | 173 | <div class="wordText"> |
174 | <span>文本导航</span> | 174 | <span>文本导航</span> |
175 | </div> | 175 | </div> |
176 | </div> | 176 | </div> |
177 | -<%else if module.contentData.template_name=='imageList'%> | 177 | +[[else if module.contentData.template_name=='imageList']] |
178 | <div class="custom-pic"> | 178 | <div class="custom-pic"> |
179 | - <div class="hot-brand-title" style="margin:0px auto; text-align:center;"><%module.contentData.data.title.title%> | 179 | + <div class="hot-brand-title" style="margin:0px auto; text-align:center;">[[module.contentData.data.title.title]] |
180 | </div> | 180 | </div> |
181 | - <ul class="custom-pic clearfix image-list-box resource-row li<%module.contentData.data.title.column_num%>"> | ||
182 | - <%each module.contentData.data.list as item index%> | ||
183 | - <li><img src="<%item.src%>"></li> | ||
184 | - <%/each%> | 181 | + <ul class="custom-pic clearfix image-list-box resource-row li[[module.contentData.data.title.column_num]]"> |
182 | + [[each module.contentData.data.list as item index]] | ||
183 | + <li><img src="[[item.src]]"></li> | ||
184 | + [[/each]] | ||
185 | </ul> | 185 | </ul> |
186 | </div> | 186 | </div> |
187 | -<%else if module.contentData.template_name=='title'%> | 187 | +[[else if module.contentData.template_name=='title']] |
188 | <div class="custom-pic"> | 188 | <div class="custom-pic"> |
189 | <div class="wordText"> | 189 | <div class="wordText"> |
190 | <span>标题标签</span> | 190 | <span>标题标签</span> |
191 | </div> | 191 | </div> |
192 | </div> | 192 | </div> |
193 | -<%else if module.contentData.template_name=='editorTalk'%> | 193 | +[[else if module.contentData.template_name=='editorTalk']] |
194 | <div class="editorTalk_content"> | 194 | <div class="editorTalk_content"> |
195 | <div class="editor-info"> | 195 | <div class="editor-info"> |
196 | <span class="title" | 196 | <span class="title" |
197 | - style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;"><%module.contentData.data.title.title%></span> | 197 | + style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;">[[module.contentData.data.title.title]]</span> |
198 | <ul class="nav nav-tabs"> | 198 | <ul class="nav nav-tabs"> |
199 | - <%each module.contentData.data.list as item index%> | ||
200 | - <li class="li_<%index%>"> | 199 | + [[each module.contentData.data.list as item index]] |
200 | + <li class="li_[[index]]"> | ||
201 | <a href="javascript:void(0);" data-toggle="tab"></a> | 201 | <a href="javascript:void(0);" data-toggle="tab"></a> |
202 | </li> | 202 | </li> |
203 | - <%/each%> | 203 | + [[/each]] |
204 | </ul> | 204 | </ul> |
205 | <div class="tab-content"> | 205 | <div class="tab-content"> |
206 | - <%each module.contentData.data.list as item index%> | ||
207 | - <div class="tab-pane fade tab_<%index%>"> | ||
208 | - <img src="<%item.src%>" style="width:23%"> | 206 | + [[each module.contentData.data.list as item index]] |
207 | + <div class="tab-pane fade tab_[[index]]"> | ||
208 | + <img src="[[item.src]]" style="width:23%"> | ||
209 | </div> | 209 | </div> |
210 | - <%/each%> | 210 | + [[/each]] |
211 | </div> | 211 | </div> |
212 | </div> | 212 | </div> |
213 | </div> | 213 | </div> |
214 | -<%else if module.contentData.template_name=='hotCategory'%> | 214 | +[[else if module.contentData.template_name=='hotCategory']] |
215 | <div class="hotCategory-info"> | 215 | <div class="hotCategory-info"> |
216 | <div style="width:100%;height:100%;background-color: #fff;padding-top:3px" ;=""> | 216 | <div style="width:100%;height:100%;background-color: #fff;padding-top:3px" ;=""> |
217 | - <div style="margin:0 auto;border:1px solid #000;width:40%;font-size:1px;text-align:center;margin-bottom:10px;"><%module.contentData.data.title.name%></div> | ||
218 | - <div style="margin-right:10px;float:right;width:40px;margin-top:-27px;font-size:1px;"><%module.contentData.data.title.more_name%></div> | 217 | + <div style="margin:0 auto;border:1px solid #000;width:40%;font-size:1px;text-align:center;margin-bottom:10px;">[[module.contentData.data.title.name]]</div> |
218 | + <div style="margin-right:10px;float:right;width:40px;margin-top:-27px;font-size:1px;">[[module.contentData.data.title.more_name]]</div> | ||
219 | <div style="clear:both;"></div> | 219 | <div style="clear:both;"></div> |
220 | <div style="width:150px;float:right;"> | 220 | <div style="width:150px;float:right;"> |
221 | - <%each module.contentData.data.imgs as item index%> | ||
222 | - <%if (index != 0 && module.contentData.data.imgs.length == 7) || (index % 4 != 0 && module.contentData.data.imgs.length == 8)%> | ||
223 | - <img style="width:45px;height:90px;margin-left:5px;margin-bottom:10px;float:left;" src="<%item.src%>"> | ||
224 | - <%/if%> | ||
225 | - <%/each%> | 221 | + [[each module.contentData.data.imgs as item index]] |
222 | + [[if (index != 0 && module.contentData.data.imgs.length == 7) || (index % 4 != 0 && module.contentData.data.imgs.length == 8)]] | ||
223 | + <img style="width:45px;height:90px;margin-left:5px;margin-bottom:10px;float:left;" src="[[item.src]]"> | ||
224 | + [[/if]] | ||
225 | + [[/each]] | ||
226 | <div style="clear:both"></div> | 226 | <div style="clear:both"></div> |
227 | </div> | 227 | </div> |
228 | <div style="width:5px;height:100%;float:right;"> | 228 | <div style="width:5px;height:100%;float:right;"> |
229 | 229 | ||
230 | </div> | 230 | </div> |
231 | <div style="width:100px;height:100%;float:right;"> | 231 | <div style="width:100px;height:100%;float:right;"> |
232 | - <%each module.contentData.data.imgs as item index%> | ||
233 | - <%if (index == 0 && module.contentData.data.imgs.length == 7) || (index % 4 == 0 && module.contentData.data.imgs.length == 8)%> | ||
234 | - <img style="width:100px;height:100%;" src="<%module.contentData.data.imgs[index].src%>"> | ||
235 | - <%/if%> | ||
236 | - <%/each%> | 232 | + [[each module.contentData.data.imgs as item index]] |
233 | + [[if (index == 0 && module.contentData.data.imgs.length == 7) || (index % 4 == 0 && module.contentData.data.imgs.length == 8)]] | ||
234 | + <img style="width:100px;height:100%;" src="[[module.contentData.data.imgs[index].src]]"> | ||
235 | + [[/if]] | ||
236 | + [[/each]] | ||
237 | </div> | 237 | </div> |
238 | <div style="width:5px;height:100%;float:right;"> | 238 | <div style="width:5px;height:100%;float:right;"> |
239 | 239 | ||
240 | </div> | 240 | </div> |
241 | <div style="width:70px;float:left;"> | 241 | <div style="width:70px;float:left;"> |
242 | <div style="height:70px;width:100%"> | 242 | <div style="height:70px;width:100%"> |
243 | - <%each module.contentData.data.blocks as item index%> | ||
244 | - <img style="height:22px;width:100%;margin-bottom:2px;" src="<%item.src%>"> | ||
245 | - <%/each%> | 243 | + [[each module.contentData.data.blocks as item index]] |
244 | + <img style="height:22px;width:100%;margin-bottom:2px;" src="[[item.src]]"> | ||
245 | + [[/each]] | ||
246 | </div> | 246 | </div> |
247 | <div style="height:70px;width:100%"> | 247 | <div style="height:70px;width:100%"> |
248 | - <%each module.contentData.data.list as item index%> | ||
249 | - <div style="height:22px;width:50%;margin-bottom:2px;font-size:1px;float:left"><%item.name.length>2?item.name.substring(0,2):item.name%></div> | ||
250 | - <%/each%> | 248 | + [[each module.contentData.data.list as item index]] |
249 | + <div style="height:22px;width:50%;margin-bottom:2px;font-size:1px;float:left">[[item.name.length>2?item.name.substring(0,2):item.name]]</div> | ||
250 | + [[/each]] | ||
251 | <div style="clear:both"></div> | 251 | <div style="clear:both"></div> |
252 | </div> | 252 | </div> |
253 | </div> | 253 | </div> |
254 | <div style="clear:both"></div> | 254 | <div style="clear:both"></div> |
255 | </div> | 255 | </div> |
256 | </div> | 256 | </div> |
257 | -<%else if module.contentData.template_name=='debrisSlider'%> | 257 | +[[else if module.contentData.template_name=='debrisSlider']] |
258 | <div class="debris_slider"> | 258 | <div class="debris_slider"> |
259 | <div class="debris-info"> | 259 | <div class="debris-info"> |
260 | <ul style="float:left;width:80px;"> | 260 | <ul style="float:left;width:80px;"> |
261 | - <%each module.contentData.data.left as item index%> | ||
262 | - <li><img width="80px" height="76px" src="<%item.src%>"></li> | ||
263 | - <%/each%> | 261 | + [[each module.contentData.data.left as item index]] |
262 | + <li><img width="80px" height="76px" src="[[item.src]]"></li> | ||
263 | + [[/each]] | ||
264 | </ul> | 264 | </ul> |
265 | <div style="float:left;width:160px;"> | 265 | <div style="float:left;width:160px;"> |
266 | - <img width="160px" height="180px" src="<%module.contentData.data.big_image[0].src%>"> | 266 | + <img width="160px" height="180px" src="[[module.contentData.data.big_image[0].src]]"> |
267 | </div> | 267 | </div> |
268 | <ul style="float:left;width:80px;"> | 268 | <ul style="float:left;width:80px;"> |
269 | - <%each module.contentData.data.right as item index%> | ||
270 | - <li><img width="80px" height="76px" src="<%item.src%>"></li> | ||
271 | - <%/each%> | 269 | + [[each module.contentData.data.right as item index]] |
270 | + <li><img width="80px" height="76px" src="[[item.src]]"></li> | ||
271 | + [[/each]] | ||
272 | </ul> | 272 | </ul> |
273 | </div> | 273 | </div> |
274 | </div> | 274 | </div> |
275 | -<%else if module.contentData.template_name=='newUserFloor'%> | 275 | +[[else if module.contentData.template_name=='newUserFloor']] |
276 | <div class="new_user_floor"> | 276 | <div class="new_user_floor"> |
277 | <div class="user_floor"> | 277 | <div class="user_floor"> |
278 | - <p class="title"><%module.contentData.data.title.name%><a class="more" href="#"><%module.contentData.data.title.more_name%></a> | 278 | + <p class="title">[[module.contentData.data.title.name]]<a class="more" href="#">[[module.contentData.data.title.more_name]]</a> |
279 | </p> | 279 | </p> |
280 | 280 | ||
281 | - <p class="banner-pic"><img src="<%module.contentData.data.banner_image[0].src%>" width="96%"></p> | 281 | + <p class="banner-pic"><img src="[[module.contentData.data.banner_image[0].src]]" width="96%"></p> |
282 | </div> | 282 | </div> |
283 | </div> | 283 | </div> |
284 | -<%else if module.contentData.template_name=='imageGroup'%> | 284 | +[[else if module.contentData.template_name=='imageGroup']] |
285 | <div class="custom-pic"> | 285 | <div class="custom-pic"> |
286 | - <ul class="custom-pic clearfix image-list-box resource-row li<%module.contentData.data.show_num%>"> | ||
287 | - <%each module.contentData.data.list as item index%> | ||
288 | - <li><img src="<%item.src%>" class="custom-pic-img" style="margin:2px;"></li> | ||
289 | - <%/each%> | 286 | + <ul class="custom-pic clearfix image-list-box resource-row li[[module.contentData.data.show_num]]"> |
287 | + [[each module.contentData.data.list as item index]] | ||
288 | + <li><img src="[[item.src]]" class="custom-pic-img" style="margin:2px;"></li> | ||
289 | + [[/each]] | ||
290 | </ul> | 290 | </ul> |
291 | </div> | 291 | </div> |
292 | -<%else if module.contentData.template_name=='paramsGroup'%> | 292 | +[[else if module.contentData.template_name=='paramsGroup']] |
293 | <div class="custom-group-list"> | 293 | <div class="custom-group-list"> |
294 | <div class="wordText"> | 294 | <div class="wordText"> |
295 | <span>自定义参数</span> | 295 | <span>自定义参数</span> |
296 | </div> | 296 | </div> |
297 | </div> | 297 | </div> |
298 | -<%else if module.contentData.template_name=='自定义参数图片'%> | 298 | +[[else if module.contentData.template_name=='自定义参数图片']] |
299 | <div class="custom-group-list"> | 299 | <div class="custom-group-list"> |
300 | </div> | 300 | </div> |
301 | -<%else if module.contentData.template_name=='announcement'%> | 301 | +[[else if module.contentData.template_name=='announcement']] |
302 | <div class="custom-group-list"> | 302 | <div class="custom-group-list"> |
303 | <div class="wordText"> | 303 | <div class="wordText"> |
304 | <span>站内公告</span> | 304 | <span>站内公告</span> |
305 | </div> | 305 | </div> |
306 | </div> | 306 | </div> |
307 | -<%else if module.contentData.template_name=='titleImage'%> | 307 | +[[else if module.contentData.template_name=='titleImage']] |
308 | <div class="editorTalk_content"> | 308 | <div class="editorTalk_content"> |
309 | <div class="editor-info"> | 309 | <div class="editor-info"> |
310 | <span class="title" | 310 | <span class="title" |
311 | - style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;"><%module.contentData.data.title%></span> | ||
312 | - <img src="<%module.contentData.data.image.src%>" style="width:99%"> | 311 | + style="min-height:50px; display:block; border-radius:5px; border:1px solid #ccc; margin-top:10px;">[[module.contentData.data.title]]</span> |
312 | + <img src="[[module.contentData.data.image.src]]" style="width:99%"> | ||
313 | </div> | 313 | </div> |
314 | </div> | 314 | </div> |
315 | -<%else if module.contentData.template_name=='multiLabelImage'%> | 315 | +[[else if module.contentData.template_name=='multiLabelImage']] |
316 | <div class="editorTalk_content"> | 316 | <div class="editorTalk_content"> |
317 | <div class="editor-info"> | 317 | <div class="editor-info"> |
318 | - <%each module.contentData.data.label as item index%> | ||
319 | - <span class="title"><%item.title%></span> | ||
320 | - <%/each%> | ||
321 | - <img src="<%module.contentData.data.image[0].src%>" style="width:99%"> | 318 | + [[each module.contentData.data.label as item index]] |
319 | + <span class="title">[[item.title]]</span> | ||
320 | + [[/each]] | ||
321 | + <img src="[[module.contentData.data.image[0].src]]" style="width:99%"> | ||
322 | </div> | 322 | </div> |
323 | </div> | 323 | </div> |
324 | -<%else if module.contentData.template_name=='matchImage'%> | 324 | +[[else if module.contentData.template_name=='matchImage']] |
325 | <div class="match_image"> | 325 | <div class="match_image"> |
326 | - <div class='row title'><%module.contentData.data.title.name%></div> | 326 | + <div class='row title'>[[module.contentData.data.title.name]]</div> |
327 | <div class='row'> | 327 | <div class='row'> |
328 | - <%each module.contentData.data.top_image as item index%> | ||
329 | - <div class='col-sm-6 matchImage'><img src="<%item.src%>"></div> | ||
330 | - <%/each%> | 328 | + [[each module.contentData.data.top_image as item index]] |
329 | + <div class='col-sm-6 matchImage'><img src="[[item.src]]"></div> | ||
330 | + [[/each]] | ||
331 | </div> | 331 | </div> |
332 | <div class='row'> | 332 | <div class='row'> |
333 | - <%each module.contentData.data.list as item index%> | ||
334 | - <div class='col-sm-4 matchImage'><img src="<%item.src%>"></div> | ||
335 | - <%/each%> | 333 | + [[each module.contentData.data.list as item index]] |
334 | + <div class='col-sm-4 matchImage'><img src="[[item.src]]"></div> | ||
335 | + [[/each]] | ||
336 | </div> | 336 | </div> |
337 | </div> | 337 | </div> |
338 | -<%else if module.contentData.template_name=='getCoupon'%> | 338 | +[[else if module.contentData.template_name=='getCoupon']] |
339 | <div class="getCoupon"> | 339 | <div class="getCoupon"> |
340 | - <div class='row title'><%module.contentData.template_intro%></div> | 340 | + <div class='row title'>[[module.contentData.template_intro]]</div> |
341 | <div class='row'> | 341 | <div class='row'> |
342 | - <%each module.contentData.data as item index%> | ||
343 | - <div class='col-sm-6 matchImage'><img src="<%item.image.src%>"></div> | ||
344 | - <%/each%> | 342 | + [[each module.contentData.data as item index]] |
343 | + <div class='col-sm-6 matchImage'><img src="[[item.image.src]]"></div> | ||
344 | + [[/each]] | ||
345 | </div> | 345 | </div> |
346 | </div> | 346 | </div> |
347 | -<%else if module.contentData.template_name=='NL2R'%> | 347 | +[[else if module.contentData.template_name=='NL2R']] |
348 | <div class="NL2R"> | 348 | <div class="NL2R"> |
349 | <div class="row"> | 349 | <div class="row"> |
350 | <div class="col-sm-8 matchImage" style="margin-bottom: 0;padding: 0"> | 350 | <div class="col-sm-8 matchImage" style="margin-bottom: 0;padding: 0"> |
351 | - <img src="<%module.contentData.data.left.length ? module.contentData.data.left[0].src : ''%>"> | 351 | + <img src="[[module.contentData.data.left.length ? module.contentData.data.left[0].src : '']]"> |
352 | <p class="clearfix" style="position: absolute;bottom: -10px;right: 10px;"> | 352 | <p class="clearfix" style="position: absolute;bottom: -10px;right: 10px;"> |
353 | - <%each module.contentData.data.left as item index%> | 353 | + [[each module.contentData.data.left as item index]] |
354 | <a style="box-sizing: border-box;display: block;width: 5px;height: 5px;background: #f00;border-radius: 5px;float: left;margin: 3px;"></a> | 354 | <a style="box-sizing: border-box;display: block;width: 5px;height: 5px;background: #f00;border-radius: 5px;float: left;margin: 3px;"></a> |
355 | - <%/each%> | 355 | + [[/each]] |
356 | </p> | 356 | </p> |
357 | </div> | 357 | </div> |
358 | <div class="col-sm-4 matchImage" style="margin-bottom: 0;padding: 0"> | 358 | <div class="col-sm-4 matchImage" style="margin-bottom: 0;padding: 0"> |
359 | - <%each module.contentData.data.right as item index%> | ||
360 | - <img style="height: 50%;width: 100%" src="<%item.src%>"> | ||
361 | - <%/each%> | 359 | + [[each module.contentData.data.right as item index]] |
360 | + <img style="height: 50%;width: 100%" src="[[item.src]]"> | ||
361 | + [[/each]] | ||
362 | </div> | 362 | </div> |
363 | </div> | 363 | </div> |
364 | </div> | 364 | </div> |
365 | -<%else if module.contentData.template_name=='outletsHotBrands'%> | 365 | +[[else if module.contentData.template_name=='outletsHotBrands']] |
366 | <div class="outletsHotBrands"> | 366 | <div class="outletsHotBrands"> |
367 | </div> | 367 | </div> |
368 | -<%else if module.contentData.template_name=='threePicture'%> | 368 | +[[else if module.contentData.template_name=='threePicture']] |
369 | <div class="threePicture"> | 369 | <div class="threePicture"> |
370 | <div class="row"> | 370 | <div class="row"> |
371 | <ul class="custom-pic clearfix image-list-box resource-row li3"> | 371 | <ul class="custom-pic clearfix image-list-box resource-row li3"> |
372 | - <%each module.contentData.data as item index%> | ||
373 | - <li><img src="<%item.src%>"></li> | ||
374 | - <%/each%> | 372 | + [[each module.contentData.data as item index]] |
373 | + <li><img src="[[item.src]]"></li> | ||
374 | + [[/each]] | ||
375 | </ul> | 375 | </ul> |
376 | </div> | 376 | </div> |
377 | </div> | 377 | </div> |
378 | -<%else if module.contentData.template_name=='recommendCategory'%> | 378 | +[[else if module.contentData.template_name=='recommendCategory']] |
379 | <div class="custom-pic"> | 379 | <div class="custom-pic"> |
380 | - <p class="title"><%module.contentData.data.title%></p> | 380 | + <p class="title">[[module.contentData.data.title]]</p> |
381 | <ul class="custom-pic clearfix image-list-box resource-row li4"> | 381 | <ul class="custom-pic clearfix image-list-box resource-row li4"> |
382 | - <%each module.contentData.data.categoryList as item index%> | ||
383 | - <li><img src="<%item.navigateImageSrcApp%>"></li> | ||
384 | - <%/each%> | 382 | + [[each module.contentData.data.categoryList as item index]] |
383 | + <li><img src="[[item.navigateImageSrcApp]]"></li> | ||
384 | + [[/each]] | ||
385 | </ul> | 385 | </ul> |
386 | </div> | 386 | </div> |
387 | -<%else if module.contentData.template_name=='categoryNavigation'%> | 387 | +[[else if module.contentData.template_name=='categoryNavigation']] |
388 | <div class="categoryNavigation"> | 388 | <div class="categoryNavigation"> |
389 | - <%each module.contentData.data as item index%> | ||
390 | - <label style="background-color: white;padding: 5px"><%item.categoryName%></label> | ||
391 | - <%/each%> | 389 | + [[each module.contentData.data as item index]] |
390 | + <label style="background-color: white;padding: 5px">[[item.categoryName]]</label> | ||
391 | + [[/each]] | ||
392 | </div> | 392 | </div> |
393 | -<%else if module.contentData.template_name=='discountActivity'%> | 393 | +[[else if module.contentData.template_name=='discountActivity']] |
394 | <div class="discountActivity"> | 394 | <div class="discountActivity"> |
395 | <div class="recommend-info"> | 395 | <div class="recommend-info"> |
396 | - <%if module.contentData.data.title.name%> | ||
397 | - <p class="title"><%module.contentData.data.title.name%><a class="more" href="#"><%module.contentData.data.title.more_name%></a></p> | ||
398 | - <%/if%> | ||
399 | - <%each module.activities as item index%> | 396 | + [[if module.contentData.data.title.name]] |
397 | + <p class="title">[[module.contentData.data.title.name]]<a class="more" href="#">[[module.contentData.data.title.more_name]]</a></p> | ||
398 | + [[/if]] | ||
399 | + [[each module.activities as item index]] | ||
400 | <div class="col-sm-12 matchImage" style="margin-bottom: 15px"> | 400 | <div class="col-sm-12 matchImage" style="margin-bottom: 15px"> |
401 | - <img src="<%item.coverUrl%>"> | ||
402 | - <p><%item.promotionName%></p> | 401 | + <img src="[[item.coverUrl]]"> |
402 | + <p>[[item.promotionName]]</p> | ||
403 | </div> | 403 | </div> |
404 | - <%/each%> | 404 | + [[/each]] |
405 | </div> | 405 | </div> |
406 | </div> | 406 | </div> |
407 | -<%else if module.contentData.template_name=='vipFloor'%> | 407 | +[[else if module.contentData.template_name=='vipFloor']] |
408 | <div class="vipFloor"> | 408 | <div class="vipFloor"> |
409 | <div class="recommend-info"> | 409 | <div class="recommend-info"> |
410 | - <%if module.contentData.data.title.name%> | ||
411 | - <p class="title"><%module.contentData.data.title.name%>(商品池:<%module.contentData.data.title.productPoolId%>)<a class="more" href="#"><%module.contentData.data.title.more_name%></a></p> | ||
412 | - <%/if%> | 410 | + [[if module.contentData.data.title.name]] |
411 | + <p class="title">[[module.contentData.data.title.name]](商品池:[[module.contentData.data.title.productPoolId]])<a class="more" href="#">[[module.contentData.data.title.more_name]]</a></p> | ||
412 | + [[/if]] | ||
413 | 413 | ||
414 | - <p class="big-pic"><img src="<%module.contentData.data.image[0].src%>"></p> | 414 | + <p class="big-pic"><img src="[[module.contentData.data.image[0].src]]"></p> |
415 | </div> | 415 | </div> |
416 | </div> | 416 | </div> |
417 | -<%else if module.contentData.template_name=='offCodeArea'%> | 417 | +[[else if module.contentData.template_name=='offCodeArea']] |
418 | <div class="offCodeArea"> | 418 | <div class="offCodeArea"> |
419 | <div class="recommend-info"> | 419 | <div class="recommend-info"> |
420 | - <%if module.contentData.data.title.name%> | ||
421 | - <p class="title"><%module.contentData.data.title.name%><a class="more" href="#"><%module.contentData.data.title.more_name%></a></p> | ||
422 | - <%/if%> | 420 | + [[if module.contentData.data.title.name]] |
421 | + <p class="title">[[module.contentData.data.title.name]]<a class="more" href="#">[[module.contentData.data.title.more_name]]</a></p> | ||
422 | + [[/if]] | ||
423 | 423 | ||
424 | - <p class="big-pic"><img src="<%module.contentData.data.list[0].src%>"></p> | 424 | + <p class="big-pic"><img src="[[module.contentData.data.list[0].src]]"></p> |
425 | <div class="col-sm-6 matchImage" style="padding-left: 3px"> | 425 | <div class="col-sm-6 matchImage" style="padding-left: 3px"> |
426 | - <img src="<%module.contentData.data.list[1].src%>"> | 426 | + <img src="[[module.contentData.data.list[1].src]]"> |
427 | </div> | 427 | </div> |
428 | <div class="col-sm-6 matchImage"> | 428 | <div class="col-sm-6 matchImage"> |
429 | - <img style="height: 50%;width: 100%" src="<%module.contentData.data.list[2].src%>"> | ||
430 | - <img style="height: 50%;width: 100%" src="<%module.contentData.data.list[3].src%>"> | 429 | + <img style="height: 50%;width: 100%" src="[[module.contentData.data.list[2].src]]"> |
430 | + <img style="height: 50%;width: 100%" src="[[module.contentData.data.list[3].src]]"> | ||
431 | </div> | 431 | </div> |
432 | </div> | 432 | </div> |
433 | </div> | 433 | </div> |
1 | <script type="text/template" id="template_content"> | 1 | <script type="text/template" id="template_content"> |
2 | <!-- 文本内容 --> | 2 | <!-- 文本内容 --> |
3 | -<%each modules as module index%> | ||
4 | - <li class="form-group custom-group dragItem" data-index="<%index%>" style="width: 100%"> | ||
5 | - <%if module.contentData.template_name=='text'%> | ||
6 | - <div class="col-sm-12"><h3><%module.contentData.data.text%></h3></div> | ||
7 | - <%else if module.contentData.template_name=='singleImage'%> | 3 | +[[each modules as module index]] |
4 | + <li class="form-group custom-group dragItem" data-index="[[index]]" style="width: 100%"> | ||
5 | + [[if module.contentData.template_name=='text']] | ||
6 | + <div class="col-sm-12"><h3>[[module.contentData.data.text]]</h3></div> | ||
7 | + [[else if module.contentData.template_name=='singleImage']] | ||
8 | <div class="col-sm-12"> | 8 | <div class="col-sm-12"> |
9 | - <img src="<%module.contentData.data[0].src%>" title="<%module.contentData.data[0].title%>"> | 9 | + <img src="[[module.contentData.data[0].src]]" title="[[module.contentData.data[0].title]]"> |
10 | </div> | 10 | </div> |
11 | - <%else if module.contentData.template_name=='smallPic'%> | ||
12 | - <%each module.contentData.data as item i%> | 11 | + [[else if module.contentData.template_name=='smallPic']] |
12 | + [[each module.contentData.data as item i]] | ||
13 | <div class="col-sm-6"> | 13 | <div class="col-sm-6"> |
14 | - <img src="<%item.src%>" title="<%item.title%>"> | 14 | + <img src="[[item.src]]" title="[[item.title]]"> |
15 | </div> | 15 | </div> |
16 | - <%/each%> | ||
17 | - <%else if module.contentData.template_name=='goods'%> | ||
18 | - <%each module.contentData.data as item i%> | 16 | + [[/each]] |
17 | + [[else if module.contentData.template_name=='goods']] | ||
18 | + [[each module.contentData.data as item i]] | ||
19 | <div class="col-sm-6"> | 19 | <div class="col-sm-6"> |
20 | - <img src="<%item.src%>" title="<%item.title%>"> | 20 | + <img src="[[item.src]]" title="[[item.title]]"> |
21 | </div> | 21 | </div> |
22 | - <%/each%> | ||
23 | - <%else if module.contentData.template_name=='link'%> | 22 | + [[/each]] |
23 | + [[else if module.contentData.template_name=='link']] | ||
24 | <div class="col-sm-12"> | 24 | <div class="col-sm-12"> |
25 | <div class="wordText"> | 25 | <div class="wordText"> |
26 | <span>一个链接</span> | 26 | <span>一个链接</span> |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | - <%else if module.contentData.template_name=='goodsGroup'%> | 29 | + [[else if module.contentData.template_name=='goodsGroup']] |
30 | <div class="form-group"> | 30 | <div class="form-group"> |
31 | - <%each module.contentData.data as items i%> | 31 | + [[each module.contentData.data as items i]] |
32 | <div class="col-sm-3"> | 32 | <div class="col-sm-3"> |
33 | - <img src="<%items.cover.cover%>" > | 33 | + <img src="[[items.cover.cover]]" > |
34 | </div> | 34 | </div> |
35 | - <%/each%> | 35 | + [[/each]] |
36 | </div> | 36 | </div> |
37 | 37 | ||
38 | - <%each module.contentData.data[0].list as item index%> | 38 | + [[each module.contentData.data[0].list as item index]] |
39 | <div class="col-sm-6"> | 39 | <div class="col-sm-6"> |
40 | - <img src="<%item.src%>" title="<%item.id%>"> | 40 | + <img src="[[item.src]]" title="[[item.id]]"> |
41 | </div> | 41 | </div> |
42 | - <%/each%> | 42 | + [[/each]] |
43 | 43 | ||
44 | </div> | 44 | </div> |
45 | <%include 'taoyu2'%> | 45 | <%include 'taoyu2'%> |
46 | - <%/if%> | 46 | + [[/if]] |
47 | <div class="actions-box"> | 47 | <div class="actions-box"> |
48 | <div class="actions-wrap"> | 48 | <div class="actions-wrap"> |
49 | - <span class="edit" data-index="<%index%>">编辑</span> | ||
50 | - <span class="del" data-index="<%index%>">删除</span> | 49 | + <span class="edit" data-index="[[index]]">编辑</span> |
50 | + <span class="del" data-index="[[index]]">删除</span> | ||
51 | </div> | 51 | </div> |
52 | </div> | 52 | </div> |
53 | </li> | 53 | </li> |
54 | -<%/each%> | 54 | +[[/each]] |
55 | 55 | ||
56 | </script> | 56 | </script> |
57 | 57 | ||
58 | <!-- 文本弹层 --> | 58 | <!-- 文本弹层 --> |
59 | <script type="text/template" id="template_dialog_text"> | 59 | <script type="text/template" id="template_dialog_text"> |
60 | <div class="rows"> | 60 | <div class="rows"> |
61 | - <textarea rows="2" class="form-control observe" placeholder="文章摘要" data-field="text" style="resize: none"><%contentData.data.text%></textarea> | 61 | + <textarea rows="2" class="form-control observe" placeholder="文章摘要" data-field="text" style="resize: none">[[contentData.data.text]]</textarea> |
62 | </div> | 62 | </div> |
63 | </script> | 63 | </script> |
64 | 64 | ||
@@ -67,36 +67,36 @@ | @@ -67,36 +67,36 @@ | ||
67 | <div class="rows"> | 67 | <div class="rows"> |
68 | <div id="grid-baseFrom"> | 68 | <div id="grid-baseFrom"> |
69 | <ul class="draggable" data-array="data"> | 69 | <ul class="draggable" data-array="data"> |
70 | - <%each contentData.data as item index%> | 70 | + [[each contentData.data as item index]] |
71 | <li> | 71 | <li> |
72 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 72 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
73 | <tbody> | 73 | <tbody> |
74 | <tr> | 74 | <tr> |
75 | - <td align="center"><%index+1%></td> | 75 | + <td align="center">[[index+1]]</td> |
76 | <td align="center"> | 76 | <td align="center"> |
77 | - <input type="file" name="file" id="src-<%index%>" value="<%item.src%>" | ||
78 | - data-field="<%index%>.src" data-index="<%index%>" required/> | 77 | + <input type="file" name="file" id="src-[[index]]" value="[[item.src]]" |
78 | + data-field="[[index]].src" data-index="[[index]]" required/> | ||
79 | </td> | 79 | </td> |
80 | <td> | 80 | <td> |
81 | <div class="form-group"> | 81 | <div class="form-group"> |
82 | <div class="col-sm-10"> | 82 | <div class="col-sm-10"> |
83 | - <select class="form-control observe" data-field="<%index%>.url.action" | ||
84 | - value='<%item.url?item.url.action:""%>'> | ||
85 | - <%layout action_template%> | 83 | + <select class="form-control observe" data-field="[[index]].url.action" |
84 | + value='[[item.url?item.url.action:""]]'> | ||
85 | + [[layout action_template]] | ||
86 | </select> | 86 | </select> |
87 | </div> | 87 | </div> |
88 | </div> | 88 | </div> |
89 | 89 | ||
90 | <div class="form-group"> | 90 | <div class="form-group"> |
91 | <div class="col-sm-10"> | 91 | <div class="col-sm-10"> |
92 | - <input class="form-control observe" placeholder="跳转地址" data-field="<%index%>.url.url" | ||
93 | - value="<%item.url?item.url.url:''%>"/> | 92 | + <input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url" |
93 | + value="[[item.url?item.url.url:'']]"/> | ||
94 | </div> | 94 | </div> |
95 | </div> | 95 | </div> |
96 | <div class="form-group"> | 96 | <div class="form-group"> |
97 | <div class="col-sm-10"> | 97 | <div class="col-sm-10"> |
98 | - <input class="form-control observe" value="<%item.alt?item.alt:''%>" placeholder="图片描述" | ||
99 | - data-field='<%index%>.alt'/> | 98 | + <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述" |
99 | + data-field='[[index]].alt'/> | ||
100 | </div> | 100 | </div> |
101 | </div> | 101 | </div> |
102 | </td> | 102 | </td> |
@@ -104,56 +104,56 @@ | @@ -104,56 +104,56 @@ | ||
104 | </tbody> | 104 | </tbody> |
105 | </table> | 105 | </table> |
106 | </li> | 106 | </li> |
107 | - <%/each%> | 107 | + [[/each]] |
108 | </ul> | 108 | </ul> |
109 | </div> | 109 | </div> |
110 | </div> | 110 | </div> |
111 | </script> | 111 | </script> |
112 | <!--多张小图--> | 112 | <!--多张小图--> |
113 | <script type="text/template" id="smallPic-template"> | 113 | <script type="text/template" id="smallPic-template"> |
114 | - <%if contentData.data.length%> | 114 | + [[if contentData.data.length]] |
115 | <ul class="draggable" data-array="data"> | 115 | <ul class="draggable" data-array="data"> |
116 | - <%each contentData.data as item index%> | 116 | + [[each contentData.data as item index]] |
117 | <li> | 117 | <li> |
118 | <table class="table table-hover table-bordered responsive dataTable no-footer"> | 118 | <table class="table table-hover table-bordered responsive dataTable no-footer"> |
119 | <tbody> | 119 | <tbody> |
120 | <tr> | 120 | <tr> |
121 | - <td align="center"><%index+1%></td> | 121 | + <td align="center">[[index+1]]</td> |
122 | <td align="center"> | 122 | <td align="center"> |
123 | - <input type="file" name="file" id="src-<%index%>" value="<%item.src%>" | ||
124 | - data-field="<%index%>.src" data-index="<%index%>" required/> | 123 | + <input type="file" name="file" id="src-[[index]]" value="[[item.src]]" |
124 | + data-field="[[index]].src" data-index="[[index]]" required/> | ||
125 | </td> | 125 | </td> |
126 | <td> | 126 | <td> |
127 | <div class="form-group"> | 127 | <div class="form-group"> |
128 | <div class="col-sm-10"> | 128 | <div class="col-sm-10"> |
129 | - <select class="form-control observe" data-field="<%index%>.url.action" | ||
130 | - value='<%item.url?item.url.action:""%>'> | ||
131 | - <%layout action_template%> | 129 | + <select class="form-control observe" data-field="[[index]].url.action" |
130 | + value='[[item.url?item.url.action:""]]'> | ||
131 | + [[layout action_template]] | ||
132 | </select> | 132 | </select> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | 135 | ||
136 | <div class="form-group"> | 136 | <div class="form-group"> |
137 | <div class="col-sm-10"> | 137 | <div class="col-sm-10"> |
138 | - <input class="form-control observe" placeholder="跳转地址" data-field="<%index%>.url.url" | ||
139 | - value="<%item.url?item.url.url:''%>"/> | 138 | + <input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url" |
139 | + value="[[item.url?item.url.url:'']]"/> | ||
140 | </div> | 140 | </div> |
141 | </div> | 141 | </div> |
142 | <div class="form-group"> | 142 | <div class="form-group"> |
143 | <div class="col-sm-10"> | 143 | <div class="col-sm-10"> |
144 | - <input class="form-control observe" value="<%item.alt?item.alt:''%>" placeholder="图片描述" | ||
145 | - data-field='<%index%>.alt'/> | 144 | + <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述" |
145 | + data-field='[[index]].alt'/> | ||
146 | </div> | 146 | </div> |
147 | </div> | 147 | </div> |
148 | </td> | 148 | </td> |
149 | - <td><button class="btn btn-danger btn-sm delBtn" data-event="smallPic.data" type="button" data-index="<%index%>">删除</button></td> | 149 | + <td><button class="btn btn-danger btn-sm delBtn" data-event="smallPic.data" type="button" data-index="[[index]]">删除</button></td> |
150 | </tr> | 150 | </tr> |
151 | </tbody> | 151 | </tbody> |
152 | </table> | 152 | </table> |
153 | </li> | 153 | </li> |
154 | - <%/each%> | 154 | + [[/each]] |
155 | </ul> | 155 | </ul> |
156 | - <%/if%> | 156 | + [[/if]] |
157 | <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="继续添加" style="margin:10px;" data-event="smallPic.data"></p> | 157 | <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="继续添加" style="margin:10px;" data-event="smallPic.data"></p> |
158 | </ul> | 158 | </ul> |
159 | </script> | 159 | </script> |
@@ -163,17 +163,17 @@ | @@ -163,17 +163,17 @@ | ||
163 | <div class="form-group"> | 163 | <div class="form-group"> |
164 | <div class="col-sm-12"> | 164 | <div class="col-sm-12"> |
165 | <ul class="cover-image-list col-sm-10 imagegroup" id="goodspic"> | 165 | <ul class="cover-image-list col-sm-10 imagegroup" id="goodspic"> |
166 | - <%each contentData.data as item index%> | 166 | + [[each contentData.data as item index]] |
167 | <li class="cover-image-item image-list" data-index="2"> | 167 | <li class="cover-image-item image-list" data-index="2"> |
168 | <div class="goods-img"> | 168 | <div class="goods-img"> |
169 | <a class="fileinput-button-icon" href="javascript:void(0);"> | 169 | <a class="fileinput-button-icon" href="javascript:void(0);"> |
170 | - <img src="<%item.src%>"> | 170 | + <img src="[[item.src]]"> |
171 | </a> | 171 | </a> |
172 | <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" | 172 | <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" |
173 | - data-index="<%index%>"></i> | 173 | + data-index="[[index]]"></i> |
174 | </div> | 174 | </div> |
175 | </li> | 175 | </li> |
176 | - <%/each%> | 176 | + [[/each]] |
177 | </ul> | 177 | </ul> |
178 | </div> | 178 | </div> |
179 | 179 | ||
@@ -187,16 +187,16 @@ | @@ -187,16 +187,16 @@ | ||
187 | </script> | 187 | </script> |
188 | 188 | ||
189 | <script type="text/template" id="template_dialog_goodsimgs"> | 189 | <script type="text/template" id="template_dialog_goodsimgs"> |
190 | - <%each datas as data index%> | 190 | + [[each datas as data index]] |
191 | <li class="cover-image-item image-list" data-index="2"> | 191 | <li class="cover-image-item image-list" data-index="2"> |
192 | <div class="goods-img"> | 192 | <div class="goods-img"> |
193 | <a class="fileinput-button-icon" href="javascript:void(0);"> | 193 | <a class="fileinput-button-icon" href="javascript:void(0);"> |
194 | - <img src="<%data.src%>"> | 194 | + <img src="[[data.src]]"> |
195 | </a> | 195 | </a> |
196 | - <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" data-index="<%index%>"></i> | 196 | + <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" data-index="[[index]]"></i> |
197 | </div> | 197 | </div> |
198 | </li> | 198 | </li> |
199 | - <%/each%> | 199 | + [[/each]] |
200 | </script> | 200 | </script> |
201 | 201 | ||
202 | <!--添加商品/商品组--选择标签界面模板--> | 202 | <!--添加商品/商品组--选择标签界面模板--> |
@@ -236,7 +236,7 @@ | @@ -236,7 +236,7 @@ | ||
236 | <!-- 推荐商品 --> | 236 | <!-- 推荐商品 --> |
237 | <script type="text/tempalte" id="template_dialog_remgoods"> | 237 | <script type="text/tempalte" id="template_dialog_remgoods"> |
238 | <div class="rows" id="groupsgoods"> | 238 | <div class="rows" id="groupsgoods"> |
239 | - <%layout template_dialog_remgoodsgroup%> | 239 | + [[layout template_dialog_remgoodsgroup]] |
240 | </div> | 240 | </div> |
241 | <div class="rows"> | 241 | <div class="rows"> |
242 | <div class="form-group"> | 242 | <div class="form-group"> |
@@ -248,28 +248,28 @@ | @@ -248,28 +248,28 @@ | ||
248 | </script> | 248 | </script> |
249 | 249 | ||
250 | <script type="text/template" id="template_dialog_remgoodsgroup"> | 250 | <script type="text/template" id="template_dialog_remgoodsgroup"> |
251 | - <%each contentData.data as items i%> | 251 | + [[each contentData.data as items i]] |
252 | <div class="form-group"> | 252 | <div class="form-group"> |
253 | <div class="col-sm-10"> | 253 | <div class="col-sm-10"> |
254 | - <ul class="cover-image-list col-sm-10 imagegroup" data-i="<%i%>"> | ||
255 | - <%each items.list as item index%> | 254 | + <ul class="cover-image-list col-sm-10 imagegroup" data-i="[[i]]"> |
255 | + [[each items.list as item index]] | ||
256 | <li class="cover-image-item image-list" data-index="2"> | 256 | <li class="cover-image-item image-list" data-index="2"> |
257 | <div class="goods-img"> | 257 | <div class="goods-img"> |
258 | <a class="fileinput-button-icon" href="javascript:void(0);"> | 258 | <a class="fileinput-button-icon" href="javascript:void(0);"> |
259 | - <img src="<%item.src%>"> | 259 | + <img src="[[item.src]]"> |
260 | </a> | 260 | </a> |
261 | <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" | 261 | <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" |
262 | - data-index="<%index%>"></i> | 262 | + data-index="[[index]]"></i> |
263 | </div> | 263 | </div> |
264 | </li> | 264 | </li> |
265 | - <%/each%> | 265 | + [[/each]] |
266 | </ul> | 266 | </ul> |
267 | </div> | 267 | </div> |
268 | <div class="col-sm-2"> | 268 | <div class="col-sm-2"> |
269 | - <button class="btn btn-info goodsSelectBtn" type="button" data-index="<%i%>">选择标签</button> | 269 | + <button class="btn btn-info goodsSelectBtn" type="button" data-index="[[i]]">选择标签</button> |
270 | </div> | 270 | </div> |
271 | </div> | 271 | </div> |
272 | - <%/each%> | 272 | + [[/each]] |
273 | </script> | 273 | </script> |
274 | <!-- 一个连接 --> | 274 | <!-- 一个连接 --> |
275 | <script type="text/template" id="template_dialog_link"> | 275 | <script type="text/template" id="template_dialog_link"> |
@@ -277,8 +277,8 @@ | @@ -277,8 +277,8 @@ | ||
277 | <div class="form-group"> | 277 | <div class="form-group"> |
278 | <label class="col-sm-2 control-label">选择跳转目的地:</label> | 278 | <label class="col-sm-2 control-label">选择跳转目的地:</label> |
279 | <div class="col-sm-8"> | 279 | <div class="col-sm-8"> |
280 | - <select class="form-control observe" data-field="0.url.action" value='<%contentData.data[0].url.action%>'> | ||
281 | - <%layout action_template%> | 280 | + <select class="form-control observe" data-field="0.url.action" value='[[contentData.data[0].url.action]]'> |
281 | + [[layout action_template]] | ||
282 | </select> | 282 | </select> |
283 | 283 | ||
284 | </div> | 284 | </div> |
@@ -287,7 +287,7 @@ | @@ -287,7 +287,7 @@ | ||
287 | <div class="form-group"> | 287 | <div class="form-group"> |
288 | <label class="col-sm-2 control-label">跳转地址:</label> | 288 | <label class="col-sm-2 control-label">跳转地址:</label> |
289 | <div class="col-sm-8"> | 289 | <div class="col-sm-8"> |
290 | - <textarea rows="2" class="form-control observe" placeholder="跳转地址" data-field="0.url.url" style="resize: none;"><%contentData.data[0].url.url%></textarea> | 290 | + <textarea rows="2" class="form-control observe" placeholder="跳转地址" data-field="0.url.url" style="resize: none;">[[contentData.data[0].url.url]]</textarea> |
291 | </div> | 291 | </div> |
292 | 292 | ||
293 | </div> | 293 | </div> |
1 | <%include '../../../common/views/__ui/header'%> | 1 | <%include '../../../common/views/__ui/header'%> |
2 | <%include '../../../common/views/__partail/ListHeader'%> | 2 | <%include '../../../common/views/__partail/ListHeader'%> |
3 | 3 | ||
4 | -<div class="pageheader"> | ||
5 | - <div class="media"> | ||
6 | - <div class="pageicon pull-left"> | ||
7 | - <i class="fa fa-th-list"></i> | ||
8 | - </div> | ||
9 | - <div class="media-body"> | ||
10 | - <ul class="breadcrumb"> | ||
11 | - <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> | ||
12 | - <li><a href="/resource/index/index">资源管理</a></li> | ||
13 | - <li>资源内容管理</li> | ||
14 | - </ul> | ||
15 | - | ||
16 | - <div> | ||
17 | - <div style="width: 30%;float: left;"> | ||
18 | - <h4>资源内容管理</h4> | ||
19 | - </div> | ||
20 | - </div> | ||
21 | - </div> | ||
22 | - </div> | ||
23 | -</div> | ||
24 | - | ||
25 | <div class="allContents"> | 4 | <div class="allContents"> |
26 | <div id="times-list"> | 5 | <div id="times-list"> |
27 | 6 | ||
@@ -44,12 +23,12 @@ | @@ -44,12 +23,12 @@ | ||
44 | <div class="dataTab_wrapper" id="resourcePre"> | 23 | <div class="dataTab_wrapper" id="resourcePre"> |
45 | <ul class="nav" style="padding: 0; margin: 0"> | 24 | <ul class="nav" style="padding: 0; margin: 0"> |
46 | <input type="hidden" class="form-control"id="dateFromInfinity"value="1970-01-01 08:00:00"> | 25 | <input type="hidden" class="form-control"id="dateFromInfinity"value="1970-01-01 08:00:00"> |
47 | - <%each times as item index%> | ||
48 | - <li class="<%index==selected?'active':''%> timesLi" data-index="<%index%>"> | ||
49 | - <input type="text" <%(item.time=="" || item.status == "进行中") ? "disabled" : (index==selected?"":"disabled")%> class="form-control preTimes" data-index="<%index%>" jsaction="time" id="dateFrom<%index%>" prompt="时间" value="<%item.time%>" readonly required> | ||
50 | - <span style="display: block; line-height: 20px"><%item.status||"默认"%></span> | 26 | + [[each times as item index]] |
27 | + <li class="[[index==selected?'active':'']] timesLi" data-index="[[index]]"> | ||
28 | + <input type="text" [[(item.time=="" || item.status == "进行中") ? "disabled" : (index==selected?"":"disabled")]] class="form-control preTimes" data-index="[[index]]" jsaction="time" id="dateFrom[[index]]" prompt="时间" value="[[item.time]]" readonly required> | ||
29 | + <span style="display: block; line-height: 20px">[[item.status||"默认"]]</span> | ||
51 | </li> | 30 | </li> |
52 | - <%/each%> | 31 | + [[/each]] |
53 | <input type="hidden" class="form-control"id="dateFromInfinity1"value="2970-01-01 08:00:00"> | 32 | <input type="hidden" class="form-control"id="dateFromInfinity1"value="2970-01-01 08:00:00"> |
54 | </ul> | 33 | </ul> |
55 | </div> | 34 | </div> |
@@ -61,7 +40,7 @@ | @@ -61,7 +40,7 @@ | ||
61 | <div class="source-content" id="source-m"> | 40 | <div class="source-content" id="source-m"> |
62 | <!-- left --> | 41 | <!-- left --> |
63 | <div class="content-left" id="contentLeft"> | 42 | <div class="content-left" id="contentLeft"> |
64 | - <h4 class="title" data-type="title" style="text-align: center"><%resource.name%></h4> | 43 | + <h4 class="title" data-type="title" style="text-align: center">[[resource.name]]</h4> |
65 | <ul class="add-box showContain ui-sortable" id="add-content"> | 44 | <ul class="add-box showContain ui-sortable" id="add-content"> |
66 | </ul> | 45 | </ul> |
67 | <nav> | 46 | <nav> |
@@ -77,9 +56,9 @@ | @@ -77,9 +56,9 @@ | ||
77 | </script> | 56 | </script> |
78 | <!-- 按钮 --> | 57 | <!-- 按钮 --> |
79 | <script type="text/template" id="template_content_btns"> | 58 | <script type="text/template" id="template_content_btns"> |
80 | - <%each btns as btn index%> | ||
81 | - <li><a href="javascript:void(0)" name="text" class="add_btn" data-index="<%index%>"><%btn.button_name%></a></li> | ||
82 | - <%/each%> | 59 | + [[each btns as btn index]] |
60 | + <li><a href="javascript:void(0)" name="text" class="add_btn" data-index="[[index]]">[[btn.button_name]]</a></li> | ||
61 | + [[/each]] | ||
83 | </script> | 62 | </script> |
84 | 63 | ||
85 | <%include '../__partail/actions'%> | 64 | <%include '../__partail/actions'%> |
1 | <%include '../../../common/views/__ui/header'%> | 1 | <%include '../../../common/views/__ui/header'%> |
2 | <%include '../../../common/views/__partail/ListHeader'%> | 2 | <%include '../../../common/views/__partail/ListHeader'%> |
3 | 3 | ||
4 | -<div class="pageheader"> | ||
5 | - <div class="media"> | ||
6 | - <div class="pageicon pull-left"> | ||
7 | - <i class="fa fa-th-list"></i> | ||
8 | - </div> | ||
9 | - <div class="media-body"> | ||
10 | - <ul class="breadcrumb"> | ||
11 | - <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> | ||
12 | - <li><a href="">资源管理</a></li> | ||
13 | - <li>资源管理</li> | ||
14 | - </ul> | ||
15 | - | ||
16 | - <div> | ||
17 | - <div style="width: 30%;float: left;"> | ||
18 | - <h4>资源管理</h4> | ||
19 | - </div> | ||
20 | - </div> | ||
21 | - </div> | ||
22 | - </div> | ||
23 | -</div> | ||
24 | <div class="panel panel-default" style="margin-bottom:10px;"> | 4 | <div class="panel panel-default" style="margin-bottom:10px;"> |
25 | <div class="panel-heading"> | 5 | <div class="panel-heading"> |
26 | <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源位</a> | 6 | <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源位</a> |
@@ -54,18 +34,18 @@ | @@ -54,18 +34,18 @@ | ||
54 | <script type="text/template" id="search-category"> | 34 | <script type="text/template" id="search-category"> |
55 | <select id="choose-category" title="" class="select2-offscreen brandBtn-group"> | 35 | <select id="choose-category" title="" class="select2-offscreen brandBtn-group"> |
56 | <option value="">选择分类</option> | 36 | <option value="">选择分类</option> |
57 | - <%each data as item index%> | ||
58 | - <option value="<%item.sortId%>"><%item.sortName%></option> | ||
59 | - <%/each%> | 37 | + [[each data as item index]] |
38 | + <option value="[[item.sortId]]">[[item.sortName]]</option> | ||
39 | + [[/each]] | ||
60 | </select> | 40 | </select> |
61 | </script> | 41 | </script> |
62 | 42 | ||
63 | <script type="text/template" id="search-platform"> | 43 | <script type="text/template" id="search-platform"> |
64 | <select id="choose-platform" title="" class="select2-offscreen brandBtn-group"> | 44 | <select id="choose-platform" title="" class="select2-offscreen brandBtn-group"> |
65 | <option value="">选择平台</option> | 45 | <option value="">选择平台</option> |
66 | - <%each data as item index%> | ||
67 | - <option value="<%item.platformId%>"><%item.platformName%></option> | ||
68 | - <%/each%> | 46 | + [[each data as item index]] |
47 | + <option value="[[item.platformId]]">[[item.platformName]]</option> | ||
48 | + [[/each]] | ||
69 | </select> | 49 | </select> |
70 | </script> | 50 | </script> |
71 | 51 | ||
@@ -74,17 +54,17 @@ | @@ -74,17 +54,17 @@ | ||
74 | <div class="form-group"> | 54 | <div class="form-group"> |
75 | <label class="col-sm-2 control-label">名称</label> | 55 | <label class="col-sm-2 control-label">名称</label> |
76 | <div class="col-sm-8"> | 56 | <div class="col-sm-8"> |
77 | - <input type="text" id="name" name="name" value="<%name%>" class="form-control" required> | 57 | + <input type="text" id="name" name="name" value="[[name]]" class="form-control" required> |
78 | </div> | 58 | </div> |
79 | </div><!-- form-group --> | 59 | </div><!-- form-group --> |
80 | <div class="form-group"> | 60 | <div class="form-group"> |
81 | <label class="col-sm-2 control-label">分类</label> | 61 | <label class="col-sm-2 control-label">分类</label> |
82 | <div class="col-sm-8"> | 62 | <div class="col-sm-8"> |
83 | - <select id="sortId" name="sortId" style="width: 160px;" value="<%sortId%>" required> | 63 | + <select id="sortId" name="sortId" style="width: 160px;" value="[[sortId]]" required> |
84 | <option value="">请选择资源分类</option> | 64 | <option value="">请选择资源分类</option> |
85 | - <%each resSorts as item index%> | ||
86 | - <option value="<%item.sortId%>"><%item.sortName%></option> | ||
87 | - <%/each%> | 65 | + [[each resSorts as item index]] |
66 | + <option value="[[item.sortId]]">[[item.sortName]]</option> | ||
67 | + [[/each]] | ||
88 | </select> | 68 | </select> |
89 | </div> | 69 | </div> |
90 | </div><!-- form-group --> | 70 | </div><!-- form-group --> |
@@ -92,11 +72,11 @@ | @@ -92,11 +72,11 @@ | ||
92 | <div class="form-group"> | 72 | <div class="form-group"> |
93 | <label class="col-sm-2 control-label">平台</label> | 73 | <label class="col-sm-2 control-label">平台</label> |
94 | <div class="col-sm-8"> | 74 | <div class="col-sm-8"> |
95 | - <select id="platformId" name="platformId" style="width: 160px;" value="<%platformId%>" required> | 75 | + <select id="platformId" name="platformId" style="width: 160px;" value="[[platformId]]" required> |
96 | <option value="">请选择资源平台</option> | 76 | <option value="">请选择资源平台</option> |
97 | - <%each resPlatforms as item index%> | ||
98 | - <option value="<%item.platformId%>"><%item.platformName%></option> | ||
99 | - <%/each%> | 77 | + [[each resPlatforms as item index]] |
78 | + <option value="[[item.platformId]]">[[item.platformName]]</option> | ||
79 | + [[/each]] | ||
100 | </select> | 80 | </select> |
101 | </div> | 81 | </div> |
102 | </div><!-- form-group --> | 82 | </div><!-- form-group --> |
@@ -104,17 +84,17 @@ | @@ -104,17 +84,17 @@ | ||
104 | <div class="form-group" hidden id="code-content"> | 84 | <div class="form-group" hidden id="code-content"> |
105 | <label class="col-sm-2 control-label">位置码</label> | 85 | <label class="col-sm-2 control-label">位置码</label> |
106 | <div class="col-sm-8"> | 86 | <div class="col-sm-8"> |
107 | - <input type="text" disabled="disabled" value="<%code%>" class="form-control"> | 87 | + <input type="text" disabled="disabled" value="[[code]]" class="form-control"> |
108 | </div> | 88 | </div> |
109 | </div><!-- form-group --> | 89 | </div><!-- form-group --> |
110 | 90 | ||
111 | <div class="form-group"> | 91 | <div class="form-group"> |
112 | <label class="col-sm-2 control-label">匹配码</label> | 92 | <label class="col-sm-2 control-label">匹配码</label> |
113 | <div class="col-sm-8"> | 93 | <div class="col-sm-8"> |
114 | - <input type="text" id="matchCode" value="<%matchCode%>" class="form-control"> | 94 | + <input type="text" id="matchCode" value="[[matchCode]]" class="form-control"> |
115 | </div> | 95 | </div> |
116 | </div><!-- form-group --> | 96 | </div><!-- form-group --> |
117 | 97 | ||
118 | - <input type="hidden" id="id" value="<%id%>"> | 98 | + <input type="hidden" id="id" value="[[id]]"> |
119 | </div> | 99 | </div> |
120 | </script> | 100 | </script> |
1 | var $ = require('jquery'), | 1 | var $ = require('jquery'), |
2 | - common = require('../common/common'); | ||
3 | -var Button = require('./partials/Button1'); | ||
4 | -var resourceObj = require('./partials/resourceObj'); | ||
5 | -var Validate = require('./partials/Validate1'); | ||
6 | -var addObj = require('./partials/addObj'); | 2 | + common = require('../../../common/common'); |
3 | +var Button = require('./../partials/Button1'); | ||
4 | +var resourceObj = require('./../partials/resourceObj'); | ||
5 | +var Validate = require('./../partials/Validate1'); | ||
6 | +var addObj = require('./../partials/addObj'); | ||
7 | 7 | ||
8 | /*获取数据*/ | 8 | /*获取数据*/ |
9 | var resources = []; | 9 | var resources = []; |
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | */ | 4 | */ |
5 | 5 | ||
6 | var $ = require('jquery'), | 6 | var $ = require('jquery'), |
7 | - common = require('../common/common'), | ||
8 | - util = require('../common/util'); | 7 | + common = require('../../../common/common'), |
8 | + util = require('../../../common/util'); | ||
9 | 9 | ||
10 | var resSorts = {}, | 10 | var resSorts = {}, |
11 | resPlatforms = {}; | 11 | resPlatforms = {}; |
-
Please register or login to post a comment