Authored by weiqingting

添加 app_version 到 User-Agent

... ... @@ -103,8 +103,6 @@ const getPlatForm = (req) => {
yoho.app_version = versions && versions.length === 2 ? versions[1] : '';
yoho.app_version = yoho.app_version || req.query.app_version || '';
console.log('yoho.app_version');
console.log(yoho.app_version);
if (yoho.app_version) {
yoho.app_version = _.toString(yoho.app_version);
arrs = yoho.app_version.split('.');
... ...
... ... @@ -416,14 +416,6 @@ $(document).on('click', '.s-submit', function() {
location.href = data.data;
} else {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
EVENT: 'YB_STUDENT_ATTCT_SUBMIT',
C_ID: C_ID,
SRC_ID: 5,
SUBMIT_RES: 2
}, false);
}
tip.show(data.message);
}
... ...
... ... @@ -273,18 +273,20 @@ $('.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 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 goodids = $(this).find('.good-thumb').attr('href').match(/"product_skn":([^}]+)/, 'g');
var goodid = goodids && goodids.length === 2 ? goodids[1] : '';
options = {
EVENT: 'YB_STUDENT_VIP_FLR',
C_ID: C_ID,
F_ID: tid || 4,
F_NAME: '学生专享专区',
F_URL: url,
F_INDEX: 4,
I_INDEX: index
EVENT: 'YB_STUDENT_VIP_GDS_LIST',
PRD_NUM: index,
PRD_ID: goodid,
ACTION_ID: 0,
SORT_TYPE: 4,
REC_ID: Date.now()
};
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo(options, true);
... ...