Showing
2 changed files
with
3 additions
and
2 deletions
@@ -5,9 +5,9 @@ window.criteo_q = window.criteo_q || []; | @@ -5,9 +5,9 @@ window.criteo_q = window.criteo_q || []; | ||
5 | window.criteo_q.push( | 5 | window.criteo_q.push( |
6 | { event: "setAccount", account: [16184] }, | 6 | { event: "setAccount", account: [16184] }, |
7 | { event: "setSiteType", type: "d" }, | 7 | { event: "setSiteType", type: "d" }, |
8 | - { event: "trackTransaction" , id: "{{orderId}}", item: [ | 8 | + { event: "trackTransaction" , id: "{{orderNum}}", item: [ |
9 | {{#each items}} | 9 | {{#each items}} |
10 | - { id: "{{id}}", price: "{{price}}", quantity: "{{quantity}}"} | 10 | + { id: "{{order_id}}", price: "{{goods_price}}", quantity: "{{buy_number}}"} |
11 | {{#unless @last}} | 11 | {{#unless @last}} |
12 | , | 12 | , |
13 | {{/unless}} | 13 | {{/unless}} |
@@ -601,6 +601,7 @@ class PayModel | @@ -601,6 +601,7 @@ class PayModel | ||
601 | $result['data'] = array( | 601 | $result['data'] = array( |
602 | 'pay' => $amount, | 602 | 'pay' => $amount, |
603 | 'orderNum' => $orderData['order_code'], | 603 | 'orderNum' => $orderData['order_code'], |
604 | + 'items' => $orderData['order_goods'], // 订单商品 | ||
604 | 'checkOrderUrl' => Helpers::url('/home/orders/detail', array('orderCode' => $orderData['order_code'])), | 605 | 'checkOrderUrl' => Helpers::url('/home/orders/detail', array('orderCode' => $orderData['order_code'])), |
605 | 'payMode' => ($orderData['payment_type'] == 1 ? '在线支付' : '货到付款'), | 606 | 'payMode' => ($orderData['payment_type'] == 1 ? '在线支付' : '货到付款'), |
606 | 'currency' => $orderData['yoho_give_coin'], | 607 | 'currency' => $orderData['yoho_give_coin'], |
-
Please register or login to post a comment