transact_info.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="title">交易详情</div>
  5. <div class="packing">
  6. <!-- <table class="datatitle data" border="0" style="border-collapse:collapse;">
  7. <tr>
  8. <td>产品ID</td>
  9. <td>产品编码</td>
  10. <td>主图</td>
  11. <td>商品名称</td>
  12. <td>每包条数</td>
  13. <td>数量</td>
  14. <td>每包单价</td>
  15. <td>总条数</td>
  16. <td>总金额</td>
  17. <td>币种</td>
  18. </tr>
  19. </table> -->
  20. <ul class="setting">
  21. <div class="need">
  22. {if !empty($info['transaction_info'])}
  23. {if !empty($info['transaction_info']['paypal_account_id'])}
  24. <li>
  25. <em>paypal账号:</em>
  26. <b>{$info['transaction_info']['paypal_account_id']}</b>
  27. </li>
  28. {/if}
  29. {if !empty($info['transaction_info']['transaction_id'])}
  30. <li>
  31. <em>交易号:</em>
  32. <b>{$info['transaction_info']['transaction_id']}</b>
  33. </li>
  34. {/if}
  35. {if !empty($info['transaction_info']['transaction_initiation_date'])}
  36. <li>
  37. <em>交易创建日期:</em>
  38. <b>{$info['transaction_info']['transaction_initiation_date']}</b>
  39. </li>
  40. {/if}
  41. {if !empty($info['transaction_info']['transaction_updated_date'])}
  42. <li>
  43. <em>交易更新日期:</em>
  44. <b>{$info['transaction_info']['transaction_updated_date']}</b>
  45. </li>
  46. {/if}
  47. {if !empty($info['transaction_info']['transaction_amount'])}
  48. <li>
  49. <em>交易金额:</em>
  50. <b>{$info['transaction_info']['transaction_amount']['currency_code']}{$info['transaction_info']['transaction_amount']['value']}</b>
  51. </li>
  52. {/if}
  53. {if !empty($info['transaction_info']['fee_amount'])}
  54. <li>
  55. <em>手续费:</em>
  56. <b>{$info['transaction_info']['fee_amount']['currency_code']}{$info['transaction_info']['fee_amount']['value']}</b>
  57. </li>
  58. {/if}
  59. {if !empty($info['transaction_info']['insurance_amount'])}
  60. <li>
  61. <em>保险金额:</em>
  62. <b>{$info['transaction_info']['insurance_amount']['currency_code']}{$info['transaction_info']['insurance_amount']['value']}</b>
  63. </li>
  64. {/if}
  65. {if !empty($info['transaction_info']['shipping_amount'])}
  66. <li>
  67. <em>运费:</em>
  68. <b>{$info['transaction_info']['shipping_amount']['currency_code']}{$info['transaction_info']['shipping_amount']['value']}</b>
  69. </li>
  70. {/if}
  71. {if !empty($info['transaction_info']['transaction_note'])}
  72. <li>
  73. <em>备注:</em>
  74. <b>{$info['transaction_info']['transaction_note']}</b>
  75. </li>
  76. {/if}
  77. {/if}
  78. {if !empty($info['payer_info'])}
  79. <li>
  80. <em>account_id:</em>
  81. <b>{$info['payer_info']['account_id']}</b>
  82. </li>
  83. <li>
  84. <em>email_address:</em>
  85. <b>{$info['payer_info']['email_address']}</b>
  86. </li>
  87. <li>
  88. <em>phone_number:</em>
  89. <b>{$info['payer_info']['phone_number']['national_number']}</b>
  90. </li>
  91. <li>
  92. <em>payer_name:</em>
  93. <b>{$info['payer_info']['payer_name']['alternate_full_name']}</b>
  94. </li>
  95. {/if}
  96. {if !empty($info['shipping_info'])}
  97. {foreach $info['shipping_info']['address'] as $k=>$v}
  98. <li>
  99. <em>{$k}:</em>
  100. <b>{$v}</b>
  101. </li>
  102. {/foreach}
  103. {/if}
  104. </div>
  105. <div style="clear:both;"></div>
  106. </ul>
  107. <div class="need"><input type="hidden" name="id" value="{$fullorder['id']}" /><input type="hidden" name="cost" value="{$fullorder['cost']}" /></div>
  108. <input type="hidden" name="et" value="{isset($et) ?$et : '0'}" />
  109. <div class="button"><font class="fh">关 闭</font></div>
  110. </div>
  111. <div class="zm none"></div>
  112. <script type="text/javascript">var addedit="/fullorder/editoff/";var fh="/fullorder/data/";
  113. $(document).ready(function() {
  114. datasort();
  115. var index = $("select[name='printtype']").find("option:selected").index();
  116. if(index == 0)
  117. {
  118. var e = $("select[name=express]").find("option:selected").val();
  119. var c = $("select[name=country]").find("option:selected").val();
  120. $.ajax({
  121. url: "/fullorder/customs/",
  122. data: "e="+e+"&c="+c,
  123. type: "POST",
  124. dataType: "json",
  125. success: function(a) {
  126. if (a && a.success) {
  127. $("input[name=customs]").val(a.money);
  128. for(i=0;i<a.msg.length;i++)
  129. {
  130. $("select[name=productdescription]").append("<option value='"+a.msg[i]['id']+"'>"+a.msg[i]['title']+"</option>");
  131. }
  132. $(".productdescription").show();
  133. $(".customs").show();
  134. } else {
  135. $(".productdescription").hide();
  136. $(".customs").hide();
  137. }
  138. }
  139. });
  140. }else
  141. {
  142. $(".productdescription").hide();
  143. $(".customs").hide();
  144. }
  145. });
  146. function datasort() {
  147. var num = $('.packing .datatitle tr').children().length;
  148. $('.data tr td').css("width","5%");
  149. $(".data tr").each(function() {
  150. $(this).find('td:eq(0)').css("width","8%");
  151. $(this).find('td:eq(1)').css("width","8%");
  152. $(this).find('td:eq(3)').css("width","35%");
  153. });}
  154. </script>
  155. <script src="{$theme}js/fullorder-addedit.js?v=2018010190001"></script>
  156. {Template footer}