shop.js
2.73 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
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://localhost:30012';
//exports.domain = 'http://172.16.6.231:8080/platform';
exports.res = [
{
route: '/supplier/store/decorationDetail/:shopsId/:shopType/:shopsType/:id/',
method: 'GET',
view: 'pages/store/shop2',
src:'/store/shop'
},
{//保存装修模板,提交审核模板
route:"/shop/ShopsDecoratorRest/saveShopsDecorator",
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:"/shop/ShopsDecoratorRest/findShopsDecoratorDetail",
method:"POST",
url:"/ShopsDecoratorRest/findShopsDecoratorDetail",
params:[
{name: 'shopsId', type: 'Number'}
]
},
{//审核
route:"/shop/ShopsDecoratorRest/auditShopsDecorator",
method:"POST",
url:"/ShopsDecoratorRest/auditShopsDecorator",
params:[
{name: 'id', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'comment', type: 'String'}
]
},
{//最新上架的商品
route:"/shop/ShopsDecoratorRest/findNewProductList",
method:"POST",
url:"/ShopsDecoratorRest/findNewProductList",
params:[
{name: 'shopsId', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{//热销商品
route:"/shop/ShopsDecoratorRest/findHotProductList",
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/index',
data: {
pagetitle: {
level1title: '店铺装修管理',
level2title: '店铺装修管理',
level3title: '店铺装修管理'
},
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'
}]
}
]