login.page.js
913 Bytes
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
require('js/common');
require('./login/qr-check');
require('./login/login');
(function() {
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});
// when js run
setTimeout(function() {
var yas = window._yas;
yas && yas.sendCustomInfo && yas.sendCustomInfo({
op: 'YB_LOGIN_L',
param: param
});
}, 3000);
$(function() {
var $smsLogin = $('.sms-login');
// when jump sms-login
$smsLogin.on('click', function() {
var yas = window._yas;
yas && yas.sendCustomInfo && yas.sendCustomInfo({
op: 'YB_MOBILE_QUICK_LOGIN_C',
param: param
});
});
});
}());