Authored by weiqingting

添加 app_version 到 User-Agent

@@ -103,8 +103,6 @@ const getPlatForm = (req) => { @@ -103,8 +103,6 @@ const getPlatForm = (req) => {
103 103
104 yoho.app_version = versions && versions.length === 2 ? versions[1] : ''; 104 yoho.app_version = versions && versions.length === 2 ? versions[1] : '';
105 yoho.app_version = yoho.app_version || req.query.app_version || ''; 105 yoho.app_version = yoho.app_version || req.query.app_version || '';
106 - console.log('yoho.app_version');  
107 - console.log(yoho.app_version);  
108 if (yoho.app_version) { 106 if (yoho.app_version) {
109 yoho.app_version = _.toString(yoho.app_version); 107 yoho.app_version = _.toString(yoho.app_version);
110 arrs = yoho.app_version.split('.'); 108 arrs = yoho.app_version.split('.');
@@ -416,14 +416,6 @@ $(document).on('click', '.s-submit', function() { @@ -416,14 +416,6 @@ $(document).on('click', '.s-submit', function() {
416 416
417 location.href = data.data; 417 location.href = data.data;
418 } else { 418 } else {
419 - if (window._yas && window._yas.sendCustomInfo) {  
420 - window._yas.sendCustomInfo({  
421 - EVENT: 'YB_STUDENT_ATTCT_SUBMIT',  
422 - C_ID: C_ID,  
423 - SRC_ID: 5,  
424 - SUBMIT_RES: 2  
425 - }, false);  
426 - }  
427 tip.show(data.message); 419 tip.show(data.message);
428 } 420 }
429 421
@@ -273,18 +273,20 @@ $('.s-activity', '.s-section').click(function() { @@ -273,18 +273,20 @@ $('.s-activity', '.s-section').click(function() {
273 }); 273 });
274 $('.good-info', '.goods-list').click(function() { 274 $('.good-info', '.goods-list').click(function() {
275 var options; 275 var options;
276 - var url = $(this).find('.good-detail-img').find('.good-thumb').attr('href');  
277 - var index = $(this).index();  
278 - var tid = $(this).parents('.s-section').data('template-id'); 276 + // var url = $(this).find('.good-detail-img').find('.good-thumb').attr('href');
  277 + // var index = $(this).index();
  278 + // var tid = $(this).parents('.s-section').data('template-id');
  279 + var index = $(this).index;
  280 + var goodids = $(this).find('.good-thumb').attr('href').match(/"product_skn":([^}]+)/, 'g');
  281 + var goodid = goodids && goodids.length === 2 ? goodids[1] : '';
279 282
280 options = { 283 options = {
281 - EVENT: 'YB_STUDENT_VIP_FLR',  
282 - C_ID: C_ID,  
283 - F_ID: tid || 4,  
284 - F_NAME: '学生专享专区',  
285 - F_URL: url,  
286 - F_INDEX: 4,  
287 - I_INDEX: index 284 + EVENT: 'YB_STUDENT_VIP_GDS_LIST',
  285 + PRD_NUM: index,
  286 + PRD_ID: goodid,
  287 + ACTION_ID: 0,
  288 + SORT_TYPE: 4,
  289 + REC_ID: Date.now()
288 }; 290 };
289 if (window._yas && window._yas.sendCustomInfo) { 291 if (window._yas && window._yas.sendCustomInfo) {
290 window._yas.sendCustomInfo(options, true); 292 window._yas.sendCustomInfo(options, true);