• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · 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
  • yohobuywap-node
  • public
  • js
  • passport
  • smslogin
  • check-point.js
  • 验证码读取本地数据
    33765cb6
    by ccbikai(👎🏻🍜)
    2016-12-22 10:42:10 +0800  
    Browse Directory »
check-point.js 487 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 22 23
var sendInfo = function(eventName) {
    var yas = window._yas;
    var channel = window.cookie('_Channel');
    var channelMap = {
        boys: 1,
        girls: 2,
        kids: 3,
        lifestyle: 4
    };
    var param;

    channel = channelMap[channel] || 1;
    param = JSON.stringify({C_ID: channel});

    if (yas && yas.sendCustomInfo) {
        yas.sendCustomInfo({
            op: eventName,
            param: param
        }, true);
    }
};

module.exports = sendInfo;