• This project
    • Loading...
  • Sign in

fe / yohoblk-wap · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohoblk-wap
  • utils
  • constant.js
  • fix
    3b3930a4
    by 陈轩
    2016-08-09 13:09:07 +0800  
    Browse Files
constant.js 289 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
'use strict';

/**
 *  获取 频道值
 */
const channelMap = {
    men: '1,3',
    women: '2,3',
    lifestyle: '4',
};

exports.genderMap = {
    men: '1',
    women: '2'
};

exports.channelDict = (channelName) => {
    let val = channelMap[channelName];

    return val ? val : '';
};