Authored by zhangxiaoru

确认订单埋点

... ... @@ -301,6 +301,9 @@ function submitOrder() {
}
if (res.code === 200) {
var PRD_SKN = [],
PRD_SKU = [];
if (payType === 2) {
// 货到付款的进入订单页面
... ... @@ -309,6 +312,14 @@ function submitOrder() {
url = '/home/orders/pay?order_code=' + res.data.order_code;
}
var PRD_SKN = [],
PRD_SKU = [];
$('.order-good').each(function() {
PRD_SKN.push($(this).data('id'));
PRD_SKU.push($(this).data('skn'));
})
/* tar add 161116 */
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
... ... @@ -319,6 +330,8 @@ function submitOrder() {
PRD_NUM: $('#goods-num').val(),
ORDER_AMOUNT: res.data.order_amount,
UNIONCOOKIE: res.data.unionCookie || '',
PRD_SKN: PRD_SKN.join(','),
PRD_SKU: PRD_SKU.join(',')
})
}, true);
}
... ...
<div class="order-good" data-id="{{id}}">
<div class="order-good" data-id="{{id}}" data-skn="{{skn}}">
<div class="thumb-wrap">
{{#if link}}
<a href="{{link}}"><img class="thumb lazy" data-original="{{thumb}}"></a>
... ...
... ... @@ -493,6 +493,7 @@ class CartModel
$oneGoods = array();
$oneGoods['id'] = $single['product_sku'];
$oneGoods['skn'] = $single['product_skn'];
$oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 160);
$oneGoods['name'] = $single['product_name'];
$oneGoods['color'] = $single['color_name'];
... ...
... ... @@ -374,7 +374,7 @@ class IndexController extends AbstractAction
$this->setTitle('确认订单');
$this->setNavHeader('确认订单', $returnUrl, false); // 不显示右上角home按钮
//print_r($data);
$this->_view->display('order-ensure', $data);
}
... ...
... ... @@ -17,10 +17,10 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关
#dev环境
define('API_URL', 'http://api-test2.yohops.com:9999/');
define('SERVICE_URL', 'http://service-test2.yohops.com:9999/');
define('API_URL', 'http://api-test3.yohops.com:9999/');
define('SERVICE_URL', 'http://service-test3.yohops.com:9999/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
define('SERVICE_NOTIFY', 'http://service-test2.yohops.com:9999/');
define('SERVICE_NOTIFY', 'http://service-test3.yohops.com:9999/');
$application = new Application(APPLICATION_PATH . '/configs/application.developer.ini');
$application->bootstrap()->run();
... ...