staticUrls.js 2.24 KB
/**
 *  pc/wap站静态url 用于站点地图
 *
 */

const moment = require('moment');
const today = moment().format('Y-M-D');

module.exports = {
    www: {
        // 频道
        channel: {
            loc: ['https://www.yohobuy.com/', 'https://www.yohobuy.com/girls/', 'https://www.yohobuy.com/kids/', 'https://www.yohobuy.com/lifestyle/'],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.8
        },

        // 品牌一览
        brands: {
            loc: ['https://www.yohobuy.com/boys-brands/', 'https://www.yohobuy.com/girls-brands/', 'https://www.yohobuy.com/kids-brands/', 'https://www.yohobuy.com/lifestyle-brands/'],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.5
        },

        // 领券中心
        coupon: {
            loc: ['https://www.yohobuy.com/coupon/'],
            lastmod: today,
            changefreq: 'weekly',
            priority: 0.3

        },

        // sale
        salse: {
            loc: ['https://www.yohobuy.com/product/boys-sale/', 'https://www.yohobuy.com/product/girls-sale/', 'https://www.yohobuy.com/product/kids-sale/', 'https://www.yohobuy.com/product/lifestyle-sale/'],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.3
        },
        guang: {
            loc: ['https://www.yohobuy.com/guang/'],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.3

        }

    },
    list: {
        // 新品到着
        new: {
            loc: ['https://list.yohobuy.com/boys-new/', 'https://list.yohobuy.com/girls-new/', 'https://list.yohobuy.com/kids-new/', 'https://list.yohobuy.com/lifestyle-new/'],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.5
        },

        // 分类列表
        category: {
            loc: [],
            lastmod: today,
            changefreq: 'daily',
            priority: 0.3
        }
    },

    // 搜索列表
    search: {
        loc: ['https://search.yohobuy.com/'],
        lastmod: today,
        changefreq: 'daily',
        priority: 0.3
    },

    // 商品详情动态添加
    item: {
        loc: [],
        lastmod: today,
        changefreq: 'daily',
        priority: 0.3
    }
};