Authored by ZhongW

线上BUG ,专题无法带出

... ... @@ -42,7 +42,7 @@
</div>
</div>
<div class="form-group">
<div class="form-group" style="display:none">
<label class="col-sm-2 control-label">品牌Banner</label>
<div class="col-sm-8">
<input type="file" id="brandBanner" name="brandBanner" value="<%data.brandBanner%>" placeholder="品牌Banner" bucket="brandBanner"/>
... ...
... ... @@ -6,10 +6,11 @@
module.exports=function(app) {
/*销售类目主页*/
app.get("/runManage/subjectManage/index","operations.subject.Index", function () {
app.get("/runManage/subjectManage/index","operations.subject.Index", ["subject_queryBaseProductPoolList"],function (rs) {
this.$extend = {
moduleName: "运营管理",
pageName: "专题管理"
pageName: "专题管理",
select:rs.data
}
});
... ...
... ... @@ -59,17 +59,17 @@
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label">分类<font color="#f00">*</font></label>
<input type="hidden" value="{id}" id="id"/>
<input type="hidden" value="[[id]]" id="id"/>
<div class="col-sm-10">
<input name="sort" type="radio" value="1"/>奥莱
<input name="sort" type="radio" value="2"/>SALE
</div>
<input type="hidden" id="sort" value="{sort}" for="radio"/>
<input type="hidden" id="sort" value="[[sort]]" for="radio"/>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label>
<div class="col-sm-8">
<input type="text" value="{title}" class="form-control" id="title" required="required"/>
<input type="text" value="[[title]]" class="form-control" id="title" required="required"/>
</div>
</div>
<div class="form-group">
... ... @@ -80,7 +80,7 @@
<label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label>
<label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label>
</div>
<input type="hidden" id="plateform" value="{plateform}" for="checkbox">
<input type="hidden" id="plateform" value="[[plateform]]" for="checkbox">
</div>
<div class="form-group">
<label class="col-sm-2 control-label">频道</label>
... ... @@ -90,7 +90,7 @@
<label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label>
<label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label>
</div>
<input type="hidden" id="yhChannel" value="{yhChannel}" for="checkbox">
<input type="hidden" id="yhChannel" value="[[yhChannel]]" for="checkbox">
</div>
<div class="form-group">
<label class="col-sm-2 control-label">促销形式</label>
... ... @@ -116,49 +116,51 @@
<div class="panel-col1 col-sm-4">
<input type="text" id="startTime" jsaction="time:end:endTime"
class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间"
value="{startTime}">
value="[[startTime]]">
</div>
<div class="panel-col1 col-sm-4">
<input type="text" id="endTime" jsaction="time:start:startTime"
class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间"
value="{endTime}">
value="[[endTime]]">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-lalbel" for="orderNum">排序</label>
<div class="col-sm-8">
<input type="text" id="orderNum" value="{orderNum}" class="form-control"/>
<input type="text" id="orderNum" value="[[orderNum]]" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">手机端封面图</label>
<div class="col-sm-10">
<input type="file" id="coverUrl" name="coverUrl" value="{coverUrl}"/>
<input type="file" id="coverUrl" name="coverUrl" value="[[coverUrl]]"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">WEB logo</label>
<div class="col-sm-10">
<input type="file" id="logoUrl" name="logoUrl" value="{logoUrl}"/><!---->
<input type="file" id="logoUrl" name="logoUrl" value="[[logoUrl]]"/><!---->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">web封面图</label>
<div class="col-sm-10">
<input type="file" id="webCoverUrl" name="webCoverUrl" value="{webCoverUrl}"/>
<input type="file" id="webCoverUrl" name="webCoverUrl" value="[[webCoverUrl]]"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">web列表页图</label>
<div class="col-sm-10">
<input type="file" id="webUrl" name="webUrl" value="{webUrl}"/>
<input type="file" id="webUrl" name="webUrl" value="[[webUrl]]"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label>
<div class="col-sm-10">
<select id="productPoolId" style="width: 280px;" value="{productPoolId}">
<option value="{productPoolId}">请选择商品池</option>
<select id="productPoolId" style="width: 280px;" value="[[productPoolId]]">
<%each select as item i%>
<option value="<%item.id%>"><%item.text%></option>
<%/each%>
</select>
</div>
</div>
... ...
... ... @@ -124,7 +124,8 @@ var Bll = {
});
var dialog=common.dialog.confirm(hint,
common.util.__template($("#template").html(), item),
common.util.__template2($("#template").html(), item),
function() {
e.submit(url,function(option){
//option.data;
... ... @@ -181,17 +182,17 @@ var Bll = {
}
e.init();
new common.dropDown({el: "#productPoolId","ajax":"productPool"});
if(hint == "专题编辑") {
common.util.__ajax({
async:false,
url:'/runManage/subjectManage/queryBaseProductPoolListByName',
data:{idName:item.productPoolId}
},function(res) {
$("#select2-productPoolId-container").html(res.data[0].text);
},true);
}
new common.dropDown({el: "#productPoolId"});
// if(hint == "专题编辑") {
// common.util.__ajax({
// async:false,
// url:'/runManage/subjectManage/queryBaseProductPoolListByName',
// data:{idName:item.productPoolId}
// },function(res) {
// $("#select2-productPoolId-container").html(res.data[0].text);
// },true);
// }
}
};
... ...