...
|
...
|
@@ -205,30 +205,68 @@ if (typeof wx !== 'undefined') { |
|
|
}
|
|
|
|
|
|
setTimeout(function() {
|
|
|
var len = $('.good-info', '.goods-list').length;
|
|
|
var ids = [];
|
|
|
|
|
|
$('.good-info', '.goods-list').each(function() {
|
|
|
var goodids = $(this).find('.good-thumb').attr('href').match(/"product_skn":([^}]+)/, 'g');
|
|
|
var goodid = goodids && goodids.length === 2 ? goodids[1] : '';
|
|
|
ids.push(goodid);
|
|
|
});
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
op: 'YB_STUDENT_VIP_GDS_LIST',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
PRD_NUM: len,
|
|
|
PRD_ID: ids.join(','),
|
|
|
ACTION_ID: 0,
|
|
|
SORT_TYPE: 4,
|
|
|
REC_ID: uuid(40) + '0000'
|
|
|
}
|
|
|
}, true);
|
|
|
}
|
|
|
if ($('.s-verify-fail').size()) {
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
EVENT: 'YB_STUDENT_ATTCT_RESULT',
|
|
|
op: 'YB_STUDENT_ATTCT_RESULT',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
SRC_ID: 5,
|
|
|
ATTCT_RES: 1,
|
|
|
FAILURE_CAUSE: ''
|
|
|
}
|
|
|
}, true);
|
|
|
}
|
|
|
} else {
|
|
|
// 埋点 学生营销宣传首页
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({
|
|
|
EVENT: 'YB_STUDENT_HOME',
|
|
|
C_ID: C_ID,
|
|
|
SRC_ID: 1
|
|
|
op: 'YB_STUDENT_HOME',
|
|
|
param: {
|
|
|
C_ID: C_ID
|
|
|
}
|
|
|
}, true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}, 3000);
|
|
|
|
|
|
|
|
|
function uuid() {
|
|
|
var s = [];
|
|
|
var hexDigits = '0123456789abcdef';
|
|
|
for (var i = 0; i < 36; i++) {
|
|
|
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
|
}
|
|
|
s[14] = '4'; // bits 12-15 of the time_hi_and_version field to 0010
|
|
|
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01
|
|
|
s[8] = s[13] = s[18] = s[23] = '-';
|
|
|
|
|
|
var uuid = s.join('');
|
|
|
return uuid;
|
|
|
}
|
|
|
|
|
|
|
|
|
$('.swiper-slide', '.banner-top').click(function() {
|
...
|
...
|
@@ -238,13 +276,15 @@ $('.swiper-slide', '.banner-top').click(function() { |
|
|
var tid = $(this).parents('.s-section').data('template-id');
|
|
|
|
|
|
options = {
|
|
|
EVENT: 'YB_STUDENT_VIP_FLR',
|
|
|
op: 'YB_STUDENT_VIP_FLR',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
F_ID: tid || 1,
|
|
|
F_NAME: '焦点图',
|
|
|
F_URL: url,
|
|
|
F_INDEX: 1,
|
|
|
I_INDEX: index
|
|
|
}
|
|
|
};
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo(options, true);
|
...
|
...
|
@@ -259,13 +299,15 @@ $('.s-activity', '.s-section').click(function() { |
|
|
var tid = $(this).parents('.s-section').data('template-id');
|
|
|
|
|
|
options = {
|
|
|
EVENT: 'YB_STUDENT_VIP_FLR',
|
|
|
op: 'YB_STUDENT_VIP_FLR',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
F_ID: tid,
|
|
|
F_NAME: '学生专属活动',
|
|
|
F_URL: url,
|
|
|
F_INDEX: 3,
|
|
|
I_INDEX: index
|
|
|
}
|
|
|
};
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo(options, true);
|
...
|
...
|
@@ -274,20 +316,32 @@ $('.s-activity', '.s-section').click(function() { |
|
|
$('.good-info', '.goods-list').click(function() {
|
|
|
var options;
|
|
|
|
|
|
// var url = $(this).find('.good-detail-img').find('.good-thumb').attr('href');
|
|
|
// var index = $(this).index();
|
|
|
// var tid = $(this).parents('.s-section').data('template-id');
|
|
|
var index = $(this).index;
|
|
|
var index = $(this).index();
|
|
|
var goodids = $(this).find('.good-thumb').attr('href').match(/"product_skn":([^}]+)/, 'g');
|
|
|
var goodid = goodids && goodids.length === 2 ? goodids[1] : '';
|
|
|
|
|
|
options = {
|
|
|
EVENT: 'YB_STUDENT_VIP_GDS_LIST',
|
|
|
op: 'YB_STUDENT_VIP_GDS_LIST',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
PRD_NUM: index,
|
|
|
PRD_ID: goodid,
|
|
|
ACTION_ID: 0,
|
|
|
ACTION_ID: 1,
|
|
|
SORT_TYPE: 4,
|
|
|
REC_ID: Date.now()
|
|
|
REC_ID: uuid(40) + '0000'
|
|
|
}
|
|
|
};
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo(options, true);
|
|
|
}
|
|
|
});
|
|
|
$('.s-renzhen').click(function() {
|
|
|
var options = {
|
|
|
op: 'YB_STUDENT_ATTCT_SUBMIT',
|
|
|
param: {
|
|
|
C_ID: C_ID,
|
|
|
SRC_ID: 1
|
|
|
}
|
|
|
};
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo(options, true);
|
...
|
...
|
|