sitemap-config.js
2.65 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
/**
* pc/wap站静态url 用于站点地图
*
*/
const moment = require('moment');
const {
FREQ,
PRIO
} = require('./vars');
module.exports = function() {
const today = moment().format('Y-M-D');
return {
index: {
urls: [],
xmlNs: ' ',
lastmod: ''
},
www: {
main: {
urls: ['/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L9,
mobile: true
},
// 频道
channel: {
urls: ['/girls/', '/kids/', '/lifestyle/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
},
// 领券中心
coupon: {
urls: ['/coupon/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
},
// sale
salse: {
urls: ['/product/boys-sale/', '/product/girls-sale/', '/product/kids-sale/', '/product/lifestyle-sale/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
},
// 新品到着
new: {
urls: ['/boys-new/', '/girls-new/', '/kids-new/', '/lifestyle-new/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
}
},
product: {
urls: [],
lastmod: today,
changefreq: FREQ.weekly,
priority: PRIO.L3,
mobile: true
},
list: {
urls: [],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L7,
mobile: true
},
shop: {
urls: ['/boys-brands/', '/girls-brands/', '/kids-brands/', '/lifestyle-brands/'],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
},
guang: {
urls: ['/guang/',
'/guang/boys-t0/', '/guang/boys-t1001/', '/guang/boys-t2/', '/guang/boys-t4/',
'/guang/boys-t22/', '/guang/news/', '/guang/girls-t0/', '/guang/girls-t1001/',
'/guang/girls-t2/', '/guang/girls-t4', '/guang/girls-t22/', '/guang/kids-t0/',
'/guang/kids-t1001/', '/guang/kids-t2/', '/guang/kids-t4/', '/guang/kids-t22/',
'/guang/lifestyle-t0/', '/guang/lifestyle-t1001/', '/guang/lifestyle-t2/',
'/guang/lifestyle-t4/', '/guang/lifestyle-t22/'
],
lastmod: today,
priority: PRIO.L1,
mobile: true,
mobileUrls: ['/guang/']
},
chanpin: {
urls: [],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
},
hot: {
urls: [],
lastmod: today,
changefreq: FREQ.hourly,
priority: PRIO.L5,
mobile: true
}
};
};