Merge branch 'test6.9.1' of http://git.yoho.cn/fe/yohobuy-portal-fe2 into test6.9.1
Showing
5 changed files
with
15 additions
and
5 deletions
@@ -81,6 +81,7 @@ module.exports=function(app) { | @@ -81,6 +81,7 @@ module.exports=function(app) { | ||
81 | pageName: "搜索资源位直通车管理" | 81 | pageName: "搜索资源位直通车管理" |
82 | } | 82 | } |
83 | }); | 83 | }); |
84 | + app.post("/categorySource/queryCategorySourceList","salecategory_queryCategorySourceList"); | ||
84 | app.post("/categorySource/insertCategorySourceLink","salecategory_insertCategorySourceLink"); | 85 | app.post("/categorySource/insertCategorySourceLink","salecategory_insertCategorySourceLink"); |
85 | app.post("/categorySource/deleteCategorySourceLink","salecategory_deleteCategorySourceLink"); | 86 | app.post("/categorySource/deleteCategorySourceLink","salecategory_deleteCategorySourceLink"); |
86 | } | 87 | } |
@@ -28,6 +28,7 @@ module.exports={ | @@ -28,6 +28,7 @@ module.exports={ | ||
28 | {name: 'orderBy', type: 'Number'}, | 28 | {name: 'orderBy', type: 'Number'}, |
29 | {name: 'brandIds', type: 'String'}, | 29 | {name: 'brandIds', type: 'String'}, |
30 | {name: 'icon', type: 'String'}, | 30 | {name: 'icon', type: 'String'}, |
31 | + {name: 'iconSelected', type: 'String'}, | ||
31 | {name: 'productSkns', type: 'String'} | 32 | {name: 'productSkns', type: 'String'} |
32 | ] | 33 | ] |
33 | }, | 34 | }, |
@@ -43,6 +44,7 @@ module.exports={ | @@ -43,6 +44,7 @@ module.exports={ | ||
43 | {name: 'orderBy', type: 'Number'}, | 44 | {name: 'orderBy', type: 'Number'}, |
44 | {name: 'brandIds', type: 'String'}, | 45 | {name: 'brandIds', type: 'String'}, |
45 | {name: 'icon', type: 'String'}, | 46 | {name: 'icon', type: 'String'}, |
47 | + {name: 'iconSelected', type: 'String'}, | ||
46 | {name: 'productSkns', type: 'String'} | 48 | {name: 'productSkns', type: 'String'} |
47 | 49 | ||
48 | ] | 50 | ] |
@@ -155,7 +155,8 @@ module.exports={ | @@ -155,7 +155,8 @@ module.exports={ | ||
155 | title: "搜索资源位直通车列表", | 155 | title: "搜索资源位直通车列表", |
156 | url: '/categorySource/queryCategorySourceList', | 156 | url: '/categorySource/queryCategorySourceList', |
157 | params: [ | 157 | params: [ |
158 | - {name: 'sourceId', type: 'number'}, | 158 | + {name: 'state', type: 'number'}, |
159 | + {name: 'sourceName', type: 'string'}, | ||
159 | {name: 'categoryId', type: 'number'} | 160 | {name: 'categoryId', type: 'number'} |
160 | ] | 161 | ] |
161 | }, | 162 | }, |
@@ -119,6 +119,12 @@ | @@ -119,6 +119,12 @@ | ||
119 | <input type="file" id="icon" name="icon" value="{icon}" data-field="icon" /> | 119 | <input type="file" id="icon" name="icon" value="{icon}" data-field="icon" /> |
120 | </div> | 120 | </div> |
121 | </div> | 121 | </div> |
122 | + <div class="form-group"> | ||
123 | + <label class="col-sm-2 control-label">选后中图片</label> | ||
124 | + <div class="col-sm-10"> | ||
125 | + <input type="file" id="iconSelected" iconSelected="icon" value="{iconSelected}" data-field="icon" /> | ||
126 | + </div> | ||
127 | + </div> | ||
122 | </div> | 128 | </div> |
123 | </script> | 129 | </script> |
124 | 130 |
@@ -11,7 +11,7 @@ var EMUN = { | @@ -11,7 +11,7 @@ var EMUN = { | ||
11 | 11 | ||
12 | var g = new common.grid({ | 12 | var g = new common.grid({ |
13 | el: "#basicTable", | 13 | el: "#basicTable", |
14 | - params: function() { | 14 | + parms: function() { |
15 | return { | 15 | return { |
16 | state: 0, | 16 | state: 0, |
17 | sourceName: common.util.__input("sourceName"), | 17 | sourceName: common.util.__input("sourceName"), |
@@ -39,7 +39,7 @@ var g = new common.grid({ | @@ -39,7 +39,7 @@ var g = new common.grid({ | ||
39 | display: '操作', | 39 | display: '操作', |
40 | name: '', | 40 | name: '', |
41 | render: function(item) { | 41 | render: function(item) { |
42 | - if (item.isSelected == 1) { | 42 | + if (item.state == 1) { |
43 | return '<a class="btn btn-xs btn-danger remove-btn" data-title="' + item.sourceName + '" _id="' + item.sourceId + '" href="javascript:;">取消选中</a>'; | 43 | return '<a class="btn btn-xs btn-danger remove-btn" data-title="' + item.sourceName + '" _id="' + item.sourceId + '" href="javascript:;">取消选中</a>'; |
44 | } else { | 44 | } else { |
45 | return '<a class="btn btn-xs btn-warning open-btn" data-title="' + item.sourceName + '" _id="' + item.sourceId + '" href="javascript:;">选中</a>'; | 45 | return '<a class="btn btn-xs btn-warning open-btn" data-title="' + item.sourceName + '" _id="' + item.sourceId + '" href="javascript:;">选中</a>'; |
@@ -50,7 +50,7 @@ var g = new common.grid({ | @@ -50,7 +50,7 @@ var g = new common.grid({ | ||
50 | }); | 50 | }); |
51 | 51 | ||
52 | 52 | ||
53 | -g.init('/searchLabel/productSearchLabelList'); | 53 | +g.init('/categorySource/queryCategorySourceList'); |
54 | 54 | ||
55 | //筛选 | 55 | //筛选 |
56 | $(document).on('click', '#filter-btn', function () { | 56 | $(document).on('click', '#filter-btn', function () { |
@@ -63,7 +63,7 @@ $(document).on('click', '#all-btn', function () { | @@ -63,7 +63,7 @@ $(document).on('click', '#all-btn', function () { | ||
63 | 63 | ||
64 | var sc = new common.grid({ | 64 | var sc = new common.grid({ |
65 | el: "#basicTable", | 65 | el: "#basicTable", |
66 | - params: function() { | 66 | + parms: function() { |
67 | return { | 67 | return { |
68 | state: 1, | 68 | state: 1, |
69 | categoryId: getCategoryId() | 69 | categoryId: getCategoryId() |
-
Please register or login to post a comment