seckill-mock.js
5.3 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
exports.activities = {
'alg': 'SALT_MD5',
'code': 200,
'data': {
'currentTime': 1473839306925,
'secKillProductVoList': [{
'activityId': 1,
'endTime': 1473739200,
'secKillStatus': 0,
'startTime': 1475096193,
'status': 0,
'storageSum': 0
}, {
'activityId': 2,
'endTime': 1473746400,
'secKillStatus': 0,
'startTime': 1475096193,
'status': 0,
'storageSum': 0
}, {
'activityId': 3,
'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 8) / 1000),
'secKillStatus': 0,
'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
'status': 0,
'storageSum': 0
}]
},
'md5': 'b291f2aa3015749f676f50de0d513437',
'message': 'query secKillActivity info'
};
// 未开抢 mock 数据
exports.waitData = {
'alg': 'SALT_MD5',
'code': 200,
'data': [{
'activityId': 3,
'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
'marketPrice': 100,
'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
'productSkn': 512581470,
'secKillPrice': 40,
'secKillSku': [{
'productSkn': 512581470,
'productSku': 1384138,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}],
'secKillStatus': 1,
'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
'status': 0,
'storageSum': 10,
remindFlag: false
}, {
'activityId': 3,
'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
'marketPrice': 100,
'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
'productSkn': 512581470,
'secKillPrice': 40,
'secKillSku': [{
'productSkn': 512581470,
'productSku': 1384138,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}],
'secKillStatus': 1,
'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
'status': 0,
'storageSum': 10,
remindFlag: true
}],
'md5': 'f09659c22f275fbd23d8999c58aba994',
'message': 'query secKillProductList info'
};
exports.inActivityData = {
'alg': 'SALT_MD5',
'code': 200,
'data': [{
'activityId': 3,
'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
'marketPrice': 100,
'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
'productSkn': 512581470,
'secKillPrice': 40,
'secKillSku': [{
'productSkn': 512581470,
'productSku': 1384138,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}],
'secKillStatus': 1,
'startTime': Math.round(Date.now() / 1000),
'status': 0,
'storageSum': 10,
remind: false
}, {
'activityId': 3,
'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
'marketPrice': 100,
'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
'productSkn': 512581470,
'secKillPrice': 40,
'secKillSku': [{
'productSkn': 512581470,
'productSku': 1384138,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}, {
'productSkn': 512581470,
'productSku': 1384140,
'storageNum': 5
}],
'secKillStatus': 1,
'startTime': Math.round(Date.now() / 1000),
'status': 0,
'storageSum': 10,
remind: true
}],
'md5': 'f09659c22f275fbd23d8999c58aba994',
'message': 'query secKillProductList info'
};