couponActivity.js
3.12 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
/**
* Created by yoho on 2016/5/27.
*/
exports.domain = require('../config/common.js').domain;
//exports.domain ='http://172.16.6.120:8088/platform';//曹燕
exports.res = [
//主界面
{
route: '/couponActivity/index',//访问路由
method: 'GET',//方法
view: 'pages/operations/couponActivity',//视图
src: '/operations/couponActivity',//控制层
data:{
}
},
//api请求数据
{
route: '/couponActivity/queryList',
method: 'POST',
url: '/couponActivity/queryList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
//修改界面
{
route: '/couponActivity/index/update/:id',//访问路由
method: 'GET',//方法
view: 'pages/operations/updateActivity',//视图
src: '/operations/updateActivity'//控制层
},
//修改
{
route: '/couponActivity/update',
method: 'POST',
url: '/couponActivity/update',
params: [
{name: 'id', type: 'Number'},//主键
{name: 'actName', type: 'string'},//
{name: 'activityType', type: 'Number'},//
{name: 'actUrl', type: 'string'},
{name: 'startTime', type: 'Number'},//
{name: 'endTime', type: 'Number'},//
{name: 'bgImageUrl', type: 'string'},//
{name: 'shareTitle', type: 'string'},//
{name: 'shareDescribe', type: 'string'},//
{name: 'sharePic', type: 'string'},//
{name: 'shareUrl', type: 'string'},//
{name: 'isVerify', type: 'string'},//
{name: 'instructions', type: 'string'},//
{name: 'isNewUser', type: 'Number'},//
{name: 'couponId', type: 'string'},//
{name: 'status', type: 'Number'}//
]
},
//添加界面
{
route: '/couponActivity/index/add',//访问路由
method: 'GET',//方法
view: 'pages/operations/addActivity',//视图
src: '/operations/addActivity'//控制层
},
//新增
{
route: '/couponActivity/add',
method: 'POST',
url: '/couponActivity/add',
params: [
{name: 'actName', type: 'string'},//
{name: 'activityType', type: 'Number'},//
{name: 'actUrl', type: 'string'},
{name: 'startTime', type: 'Number'},//
{name: 'endTime', type: 'Number'},//
{name: 'bgImageUrl', type: 'string'},//
{name: 'shareTitle', type: 'string'},//
{name: 'shareDescribe', type: 'string'},//
{name: 'sharePic', type: 'string'},//
{name: 'shareUrl', type: 'string'},//
{name: 'isVerify', type: 'string'},//
{name: 'instructions', type: 'string'},//
{name: 'isNewUser', type: 'Number'},//
{name: 'couponId', type: 'string'}//
]
},
//单个查询
{
route: '/couponActivity/queryById',
method: 'POST',
url: '/couponActivity/queryById',
params: [
{name: 'id', type: 'Number'}
]
}
];