shop.js
2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://localhost:30012';
exports.res = [
{
route: '/supplier/store/decorationDetail/:shopsId/:shopType/:shopsType/:id/',
method: 'GET',
view: 'pages/store/shop2',
src:'/store/shop'
},
{//保存装修模板,提交审核模板
route:"/store/shop-decoration-save",
method:"POST",
url:"/ShopsDecoratorRest/saveShopsDecorator",
params:[
{name: 'shopsId', type: 'Number'},
{name: 'submitStatus', type: 'Number'},
{name: 'platform', type: 'String'},
{name: 'templateType', type: 'String'},
{name: 'resources', type: 'String'}
]
},
{//查询装修模板内容
route:"/store/shop-decoration-find",
method:"POST",
url:"/ShopsDecoratorRest/findShopsDecoratorDetail",
params:[
{name: 'shopsId', type: 'Number'}
]
},
{//审核
route:"/store/shop-decoration-check",
method:"POST",
url:"/ShopsDecoratorRest/auditShopsDecorator",
params:[
{name: 'id', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'comment', type: 'String'}
]
},
{//查询店铺品牌
route:"/store/shop-decoration-brands",
method:"POST",
url:"/ShopsDecoratorRest/findBrandsByShopsId",
params:[
{name: 'shopsId', type: 'Number'}
]
},
{//最新上架的商品
route:"/store/shop-decoration-newProducts",
method:"POST",
url:"/ShopsDecoratorRest/findNewProductList",
params:[
{name: 'shopsId', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{//热销商品
route:"/store/shop-decoration-hotProducts",
method:"POST",
url:"/ShopsDecoratorRest/findHotProductList",
params:[
{name: 'shopsId', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{/*店铺审核装修*/
route:'/supplier/store/ajax/shenhezx',
method:'POST',
url:'/ShopsDecoratorRest/findAuditShopsDecorator',
params:[
{name:"supplierId",type:"Number"},
{name:"brandId",type:"Number"},
{name:"checkStatus",type:"Number"}
]
},
{
//店铺装修管理 -> 页面渲染
route: '/supplier/shop/decoration',
method: 'GET',
src: '/store/decoration-index',
view: 'pages/store/shop',
data: {
pagetitle: {
level1title: '店铺管理',
level2title: '店铺装修管理'
},
checkStatus: true,
selectShop: true,
gridurl: '/shop/ShopsDecoratorRest/findShopsDecorator'
}
},
{
//店铺装修管理 -> 列表数据
route: '/shop/ShopsDecoratorRest/findShopsDecorator',
method: 'POST',
url: '/ShopsDecoratorRest/findShopsDecorator',
params: [{
name: 'page',
type: 'number'
}, {
name: 'size',
type: 'number'
}, {
name: 'shopsId',
type: 'number'
}, {
name: 'checkStatus',
type: 'number'
}, {
name: 'supplierId',
type: 'number'
}, {
name: 'brandId',
type: 'number'
}]
}
]