Authored by wangwei

运营管理优化

... ... @@ -15,7 +15,8 @@ module.exports={
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'status', type: 'number'}
{name: 'status', type: 'number'},
{name: 'isShow', type: 'number'}
]
},
addSpecialActivity:{
... ... @@ -35,7 +36,8 @@ module.exports={
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'},
{name: 'yhChannel', type: 'string'},
{name: 'webCoverUrl', type: 'string'}
{name: 'webCoverUrl', type: 'string'},
{name: 'isShow',type:'number'}
]
},
updateByPrimaryKey:{
... ... @@ -56,7 +58,8 @@ module.exports={
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'},
{name: 'yhChannel', type: 'string'},
{name: 'webCoverUrl', type: 'string'}
{name: 'webCoverUrl', type: 'string'},
{name: 'isShow', type: 'number'}
]
},
deleteSpecialActivity:{
... ...
... ... @@ -36,6 +36,15 @@
</select>
</div>
<div class="panel-col">
<select name="isShow" id="subject-isShow" tabindex="-1" title=""
class="select2-offscreen brandBtn-group">
<option value="" selected="">是否展示</option>
<option value="1"></option>
<option value="0"></option>
</select>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/runManage/subjectManage/index" class="btn btn-info">全部</a>
</div>
... ... @@ -67,6 +76,14 @@
<input type="hidden" id="sort" value="[[sort]]" for="radio"/>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">是否前端展示</label>
<div class="col-sm-10">
<input name="isShow" type="radio" value="1"/>
<input name="isShow" type="radio" value="0"/>
</div>
<input type="hidden" id="isShow" value="[[isShow]]" 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"/>
... ...
... ... @@ -44,7 +44,7 @@ var apiCofig = {
//root:__dirname,
EnvConst:{
// domain:"http://192.168.102.48:8088/platform",
domain:"http://127.0.0.1:8080/platform",
domain:"http://127.0.0.1:8088/platform",
// domain:"http://172.16.6.200:8088/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
... ...
... ... @@ -5,7 +5,7 @@ var $ = require('jquery'),
new common.dropDown({el: "#subject-type"});
new common.dropDown({el: "#subject-paltform"});
new common.dropDown({el: "#subject-status"});
new common.dropDown({el: "#subject-isShow"});
var yhChannelArr = ["男生", "女生", "儿童", "创意生活"];
var g = new common.grid({
... ... @@ -14,7 +14,8 @@ var g = new common.grid({
return {
sort: common.util.__input('subject-type'),
plateform: common.util.__input('subject-paltform'),
status: common.util.__input('subject-status')
status: common.util.__input('subject-status'),
isShow: common.util.__input('subject-isShow'),
};
},
columns: [
... ... @@ -73,6 +74,10 @@ var g = new common.grid({
item.endTime = common.util.__dateFormat(new Date(item.endTime*1000), "yyyy-MM-dd hh:mm:ss");
return item.startTime + "~<br>" + item.endTime;
}},
{display: "前端展示",name:"isShow", render: function (item) {
if(item.isShow == 1) return "是";
else if(item.isShow == 0) return "否";
}},
{
display: "操作", name: "", render: function (item) {
var arr = [];
... ...