Authored by 郭成尧

'maidian-data-modified'

... ... @@ -291,17 +291,6 @@ function submitOrder() {
return;
}
/* tar add 161116 */
if (res.unionCookie) {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
param: JSON.stringify({
unionCookie: res.unionCookie
})
}, true);
}
}
if (res.code === 200) {
if (payType === 2) {
... ... @@ -310,8 +299,25 @@ function submitOrder() {
} else {
url = '/home/orders/pay?order_code=' + res.data.order_code;
}
/* tar add 161116 */
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
param: JSON.stringify({
op: 'YB_SC_TOPAY_CLICK',
param: JSON.stringify({
C_ID: window._ChannelVary[cookie('_Channel')],
ORDER_CODE: res.data.order_code,
PRD_NUM: $('#goods-num').val(),
ORDER_AMOUNT: res.data.order_amount,
UNIONCOOKIE: res.data.unionCookie,
})
})
}, true);
}
window.setCookie('order-info', '');
// window.location.href = url;
window.location.href = url;
} else if (res.message) {
tip.show(res.message);
}
... ...
... ... @@ -84,6 +84,7 @@
{{> me/order/good}}
{{/each}}
<div class="goods-num">共{{num}}件商品 合计<span>{{goodsPrice}}</span></div>
<input type="hidden" id="goods-num" value="{{num}}">
</section>
<section class="block">
... ...