Merge remote-tracking branch 'origin/dev_店铺vip设置' into dev_店铺vip设置
Conflicts: code/apps/vip/controllers/index.js
Showing
5 changed files
with
65 additions
and
23 deletions
@@ -18,6 +18,13 @@ module.exports = function (app) { | @@ -18,6 +18,13 @@ module.exports = function (app) { | ||
18 | //获取商品VIP列表 | 18 | //获取商品VIP列表 |
19 | app.post("/vip/queryProductVipList", "vip_queryProductVipList"); | 19 | app.post("/vip/queryProductVipList", "vip_queryProductVipList"); |
20 | 20 | ||
21 | + app.get("/vip/ProductVip", "vip.ProductVip", function(req, res) { | ||
22 | + this.$extend={ | ||
23 | + moduleName:"VIP设置", | ||
24 | + pageName:"商品VIP设置" | ||
25 | + } | ||
26 | + }); | ||
27 | + | ||
21 | //店铺VIP开关 | 28 | //店铺VIP开关 |
22 | app.post("/vip/shop/trigger", "vip_shopVipTrigger"); | 29 | app.post("/vip/shop/trigger", "vip_shopVipTrigger"); |
23 | }; | 30 | }; |
@@ -11,14 +11,10 @@ module.exports = { | @@ -11,14 +11,10 @@ module.exports = { | ||
11 | title: "获取商品VIP列表", | 11 | title: "获取商品VIP列表", |
12 | url: '/vip/queryProductVipList', | 12 | url: '/vip/queryProductVipList', |
13 | params: { | 13 | params: { |
14 | - type: {type: Number}, | ||
15 | - channelIds: {type: String}, | ||
16 | - startTime: {type: String}, | ||
17 | - endTime: {type: String}, | ||
18 | - content: {type: String}, | ||
19 | - status: {type: Number}, | ||
20 | - page: {type: Number}, | ||
21 | - size: {type: Number} | 14 | + productSkn: {type: Number}, |
15 | + shopId: {type: Number}, | ||
16 | + brandId: {type: Number}, | ||
17 | + productVipStatus: {type: Number} | ||
22 | } | 18 | } |
23 | }, | 19 | }, |
24 | shopVipTrigger: { | 20 | shopVipTrigger: { |
1 | -<%include '../../../common/views/__ui/header'%> | ||
2 | -<%include '../../../common/views/__partail/ListHeader'%> | 1 | +<%include '../../common/views/__ui/header'%> |
2 | +<%include '../../common/views/__partail/ListHeader'%> | ||
3 | 3 | ||
4 | <div class="contentpanel"> | 4 | <div class="contentpanel"> |
5 | <div class="panel panel-default" style="margin-bottom:10px;"> | 5 | <div class="panel panel-default" style="margin-bottom:10px;"> |
@@ -12,8 +12,7 @@ | @@ -12,8 +12,7 @@ | ||
12 | </div> | 12 | </div> |
13 | 13 | ||
14 | <div class="panel-col"> | 14 | <div class="panel-col"> |
15 | - <select name="shop-name" id="shop-name" style="width: 280px;" tabindex="-1" title="" | ||
16 | - class="form-control"> | 15 | + <select id="shop-name" class="form-control"> |
17 | <option value="-1">请选择店铺</option> | 16 | <option value="-1">请选择店铺</option> |
18 | </select> | 17 | </select> |
19 | </div> | 18 | </div> |
@@ -25,7 +24,7 @@ | @@ -25,7 +24,7 @@ | ||
25 | </div> | 24 | </div> |
26 | 25 | ||
27 | <div class="panel-col"> | 26 | <div class="panel-col"> |
28 | - <select id="isPayDelivery" class="form-control"> | 27 | + <select id="productVipStatus" class="form-control"> |
29 | <option value="-1">VIP设置</option> | 28 | <option value="-1">VIP设置</option> |
30 | <option value="0">跟随店铺</option> | 29 | <option value="0">跟随店铺</option> |
31 | <option value="1">开启</option> | 30 | <option value="1">开启</option> |
@@ -45,12 +44,4 @@ | @@ -45,12 +44,4 @@ | ||
45 | </div> | 44 | </div> |
46 | </div> | 45 | </div> |
47 | 46 | ||
48 | -<script type="text/template" id="template"> | ||
49 | - <div class="rows" style="height: 100px;"> | ||
50 | - <div class="form-group"> | ||
51 | - <p>您确定要更改VIP设置吗?</p> | ||
52 | - </div> | ||
53 | - </div> | ||
54 | - </div> | ||
55 | -</script> | ||
56 | -<%include '../../../common/views/__ui/footer'%> | ||
47 | +<%include '../../common/views/__ui/footer'%> |
1 | +/** | ||
2 | + * Created by wangqianjun on 16/2/23. | ||
3 | + */ | ||
4 | +var $ = require('jquery'), | ||
5 | + common=require('../../common/common'); | ||
6 | + | ||
7 | +// 初始化筛选框 | ||
8 | +new common.dropDown({el: "#shop-name", ajax: "shopsRest"}); | ||
9 | +new common.dropDown({el: "#brandId", ajax: "brand"}); | ||
10 | +/** | ||
11 | + * 列表 | ||
12 | + * @type {common.grid} | ||
13 | + */ | ||
14 | +var g = new common.grid({ | ||
15 | + el: '#basicTable', | ||
16 | + parms: function () { | ||
17 | + return { | ||
18 | + productSkn: common.util.__input('productSkn'), | ||
19 | + shopId: common.util.__input('shop-name'), | ||
20 | + brandId: common.util.__input('brandId'), | ||
21 | + productVipStatus: common.util.__input('productVipStatus') | ||
22 | + }; | ||
23 | + }, | ||
24 | + columns: [ | ||
25 | + { | ||
26 | + display: "SKN", | ||
27 | + name: "productSKN" | ||
28 | + }, { | ||
29 | + display: "店铺", | ||
30 | + name: "shopName" | ||
31 | + }, { | ||
32 | + display: "品牌", | ||
33 | + name: "brandName" | ||
34 | + }, { | ||
35 | + display: '操作', | ||
36 | + render: function (item) { | ||
37 | + var HtmArr = []; | ||
38 | + HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-info btn-xs update">修改</a>'); | ||
39 | + HtmArr.push('<a data-index="' + item.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs delete">删除</a>'); | ||
40 | + return HtmArr.join(''); | ||
41 | + } | ||
42 | + }] | ||
43 | +}); | ||
44 | +g.init('/vip/queryProductVipList'); |
-
Please register or login to post a comment