Showing
4 changed files
with
33 additions
and
29 deletions
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | 44 | ||
45 | - <div class="form-group"> | 45 | + <div class="form-group" style="display:none"> |
46 | <label class="col-sm-2 control-label">品牌Banner</label> | 46 | <label class="col-sm-2 control-label">品牌Banner</label> |
47 | <div class="col-sm-8"> | 47 | <div class="col-sm-8"> |
48 | <input type="file" id="brandBanner" name="brandBanner" value="<%data.brandBanner%>" placeholder="品牌Banner" bucket="brandBanner"/> | 48 | <input type="file" id="brandBanner" name="brandBanner" value="<%data.brandBanner%>" placeholder="品牌Banner" bucket="brandBanner"/> |
@@ -6,10 +6,11 @@ | @@ -6,10 +6,11 @@ | ||
6 | module.exports=function(app) { | 6 | module.exports=function(app) { |
7 | 7 | ||
8 | /*销售类目主页*/ | 8 | /*销售类目主页*/ |
9 | - app.get("/runManage/subjectManage/index","operations.subject.Index", function () { | 9 | + app.get("/runManage/subjectManage/index","operations.subject.Index", ["subject_queryBaseProductPoolList"],function (rs) { |
10 | this.$extend = { | 10 | this.$extend = { |
11 | moduleName: "运营管理", | 11 | moduleName: "运营管理", |
12 | - pageName: "专题管理" | 12 | + pageName: "专题管理", |
13 | + select:rs.data | ||
13 | } | 14 | } |
14 | }); | 15 | }); |
15 | 16 |
@@ -59,17 +59,17 @@ | @@ -59,17 +59,17 @@ | ||
59 | <div class="rows" id="baseform"> | 59 | <div class="rows" id="baseform"> |
60 | <div class="form-group"> | 60 | <div class="form-group"> |
61 | <label class="col-sm-2 control-label">分类<font color="#f00">*</font></label> | 61 | <label class="col-sm-2 control-label">分类<font color="#f00">*</font></label> |
62 | - <input type="hidden" value="{id}" id="id"/> | 62 | + <input type="hidden" value="[[id]]" id="id"/> |
63 | <div class="col-sm-10"> | 63 | <div class="col-sm-10"> |
64 | <input name="sort" type="radio" value="1"/>奥莱 | 64 | <input name="sort" type="radio" value="1"/>奥莱 |
65 | <input name="sort" type="radio" value="2"/>SALE | 65 | <input name="sort" type="radio" value="2"/>SALE |
66 | </div> | 66 | </div> |
67 | - <input type="hidden" id="sort" value="{sort}" for="radio"/> | 67 | + <input type="hidden" id="sort" value="[[sort]]" for="radio"/> |
68 | </div> | 68 | </div> |
69 | <div class="form-group"> | 69 | <div class="form-group"> |
70 | <label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label> | 70 | <label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label> |
71 | <div class="col-sm-8"> | 71 | <div class="col-sm-8"> |
72 | - <input type="text" value="{title}" class="form-control" id="title" required="required"/> | 72 | + <input type="text" value="[[title]]" class="form-control" id="title" required="required"/> |
73 | </div> | 73 | </div> |
74 | </div> | 74 | </div> |
75 | <div class="form-group"> | 75 | <div class="form-group"> |
@@ -80,7 +80,7 @@ | @@ -80,7 +80,7 @@ | ||
80 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label> | 80 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label> |
81 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label> | 81 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label> |
82 | </div> | 82 | </div> |
83 | - <input type="hidden" id="plateform" value="{plateform}" for="checkbox"> | 83 | + <input type="hidden" id="plateform" value="[[plateform]]" for="checkbox"> |
84 | </div> | 84 | </div> |
85 | <div class="form-group"> | 85 | <div class="form-group"> |
86 | <label class="col-sm-2 control-label">频道</label> | 86 | <label class="col-sm-2 control-label">频道</label> |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label> | 90 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label> |
91 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label> | 91 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label> |
92 | </div> | 92 | </div> |
93 | - <input type="hidden" id="yhChannel" value="{yhChannel}" for="checkbox"> | 93 | + <input type="hidden" id="yhChannel" value="[[yhChannel]]" for="checkbox"> |
94 | </div> | 94 | </div> |
95 | <div class="form-group"> | 95 | <div class="form-group"> |
96 | <label class="col-sm-2 control-label">促销形式</label> | 96 | <label class="col-sm-2 control-label">促销形式</label> |
@@ -116,49 +116,51 @@ | @@ -116,49 +116,51 @@ | ||
116 | <div class="panel-col1 col-sm-4"> | 116 | <div class="panel-col1 col-sm-4"> |
117 | <input type="text" id="startTime" jsaction="time:end:endTime" | 117 | <input type="text" id="startTime" jsaction="time:end:endTime" |
118 | class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间" | 118 | class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间" |
119 | - value="{startTime}"> | 119 | + value="[[startTime]]"> |
120 | </div> | 120 | </div> |
121 | <div class="panel-col1 col-sm-4"> | 121 | <div class="panel-col1 col-sm-4"> |
122 | <input type="text" id="endTime" jsaction="time:start:startTime" | 122 | <input type="text" id="endTime" jsaction="time:start:startTime" |
123 | class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间" | 123 | class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间" |
124 | - value="{endTime}"> | 124 | + value="[[endTime]]"> |
125 | </div> | 125 | </div> |
126 | </div> | 126 | </div> |
127 | <div class="form-group"> | 127 | <div class="form-group"> |
128 | <label class="col-sm-2 control-lalbel" for="orderNum">排序</label> | 128 | <label class="col-sm-2 control-lalbel" for="orderNum">排序</label> |
129 | <div class="col-sm-8"> | 129 | <div class="col-sm-8"> |
130 | - <input type="text" id="orderNum" value="{orderNum}" class="form-control"/> | 130 | + <input type="text" id="orderNum" value="[[orderNum]]" class="form-control"/> |
131 | </div> | 131 | </div> |
132 | </div> | 132 | </div> |
133 | <div class="form-group"> | 133 | <div class="form-group"> |
134 | <label class="col-sm-2 control-label">手机端封面图</label> | 134 | <label class="col-sm-2 control-label">手机端封面图</label> |
135 | <div class="col-sm-10"> | 135 | <div class="col-sm-10"> |
136 | - <input type="file" id="coverUrl" name="coverUrl" value="{coverUrl}"/> | 136 | + <input type="file" id="coverUrl" name="coverUrl" value="[[coverUrl]]"/> |
137 | </div> | 137 | </div> |
138 | </div> | 138 | </div> |
139 | <div class="form-group"> | 139 | <div class="form-group"> |
140 | <label class="col-sm-2 control-label">WEB logo图</label> | 140 | <label class="col-sm-2 control-label">WEB logo图</label> |
141 | <div class="col-sm-10"> | 141 | <div class="col-sm-10"> |
142 | - <input type="file" id="logoUrl" name="logoUrl" value="{logoUrl}"/><!----> | 142 | + <input type="file" id="logoUrl" name="logoUrl" value="[[logoUrl]]"/><!----> |
143 | </div> | 143 | </div> |
144 | </div> | 144 | </div> |
145 | <div class="form-group"> | 145 | <div class="form-group"> |
146 | <label class="col-sm-2 control-label">web封面图</label> | 146 | <label class="col-sm-2 control-label">web封面图</label> |
147 | <div class="col-sm-10"> | 147 | <div class="col-sm-10"> |
148 | - <input type="file" id="webCoverUrl" name="webCoverUrl" value="{webCoverUrl}"/> | 148 | + <input type="file" id="webCoverUrl" name="webCoverUrl" value="[[webCoverUrl]]"/> |
149 | </div> | 149 | </div> |
150 | </div> | 150 | </div> |
151 | <div class="form-group"> | 151 | <div class="form-group"> |
152 | <label class="col-sm-2 control-label">web列表页图</label> | 152 | <label class="col-sm-2 control-label">web列表页图</label> |
153 | <div class="col-sm-10"> | 153 | <div class="col-sm-10"> |
154 | - <input type="file" id="webUrl" name="webUrl" value="{webUrl}"/> | 154 | + <input type="file" id="webUrl" name="webUrl" value="[[webUrl]]"/> |
155 | </div> | 155 | </div> |
156 | </div> | 156 | </div> |
157 | <div class="form-group"> | 157 | <div class="form-group"> |
158 | <label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label> | 158 | <label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label> |
159 | <div class="col-sm-10"> | 159 | <div class="col-sm-10"> |
160 | - <select id="productPoolId" style="width: 280px;" value="{productPoolId}"> | ||
161 | - <option value="{productPoolId}">请选择商品池</option> | 160 | + <select id="productPoolId" style="width: 280px;" value="[[productPoolId]]"> |
161 | + <%each select as item i%> | ||
162 | + <option value="<%item.id%>"><%item.text%></option> | ||
163 | + <%/each%> | ||
162 | </select> | 164 | </select> |
163 | </div> | 165 | </div> |
164 | </div> | 166 | </div> |
@@ -124,7 +124,8 @@ var Bll = { | @@ -124,7 +124,8 @@ var Bll = { | ||
124 | }); | 124 | }); |
125 | 125 | ||
126 | var dialog=common.dialog.confirm(hint, | 126 | var dialog=common.dialog.confirm(hint, |
127 | - common.util.__template($("#template").html(), item), | 127 | + common.util.__template2($("#template").html(), item), |
128 | + | ||
128 | function() { | 129 | function() { |
129 | e.submit(url,function(option){ | 130 | e.submit(url,function(option){ |
130 | //option.data; | 131 | //option.data; |
@@ -181,17 +182,17 @@ var Bll = { | @@ -181,17 +182,17 @@ var Bll = { | ||
181 | } | 182 | } |
182 | 183 | ||
183 | e.init(); | 184 | e.init(); |
184 | - new common.dropDown({el: "#productPoolId","ajax":"productPool"}); | ||
185 | - | ||
186 | - if(hint == "专题编辑") { | ||
187 | - common.util.__ajax({ | ||
188 | - async:false, | ||
189 | - url:'/runManage/subjectManage/queryBaseProductPoolListByName', | ||
190 | - data:{idName:item.productPoolId} | ||
191 | - },function(res) { | ||
192 | - $("#select2-productPoolId-container").html(res.data[0].text); | ||
193 | - },true); | ||
194 | - } | 185 | + new common.dropDown({el: "#productPoolId"}); |
186 | + | ||
187 | + // if(hint == "专题编辑") { | ||
188 | + // common.util.__ajax({ | ||
189 | + // async:false, | ||
190 | + // url:'/runManage/subjectManage/queryBaseProductPoolListByName', | ||
191 | + // data:{idName:item.productPoolId} | ||
192 | + // },function(res) { | ||
193 | + // $("#select2-productPoolId-container").html(res.data[0].text); | ||
194 | + // },true); | ||
195 | + // } | ||
195 | } | 196 | } |
196 | }; | 197 | }; |
197 | 198 |
-
Please register or login to post a comment