wxpay.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {include file='default/base/mall_top'/}
  2. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home.css">
  3. <style>
  4. .wxpayment { border-top: 2px solid #4b5b78; padding: 12px 30px 0; border: 1px solid #eee; color: #777; }
  5. .p-w-bd::after,
  6. .pay-weixin::after { clear: both; content: ""; display: table; }
  7. .p-w-hd { font-family: "Microsoft Yahei"; font-size: 18px; margin-bottom: 20px; }
  8. .p-w-bd { margin-bottom: 30px; padding-left: 130px; }
  9. .pw-box-hd img { border: 1px solid #ddd; }
  10. .p-w-box { float: left; width: 300px; }
  11. .payment-change .pc-wrap { display: block; height: 56px; line-height: 56px; padding: 0 20px; transition: all 0.1s ease 0s; }
  12. .payment-change .pc-wrap .pc-w-arrow-left { float: left; margin-right: 15px; }
  13. .payment-change .pc-wrap .pc-w-arrow-left,
  14. .payment-change .pc-wrap .pc-w-arrow-right { color: #2fa1dd; float: right; font-family: "{$Think.lang.song_typeface}"; font-size: 22px; font-style: normal; text-align: center; width: 20px; }
  15. .pw-box-ft { background: url("{$Think.HOME_SITE_ROOT}/images/payment/icon-red.png") no-repeat scroll 50px 8px #ff7674; height: 44px; padding: 8px 0 8px 125px; }
  16. .p-w-sidebar { background: url("{$Think.HOME_SITE_ROOT}/images/payment/phone-bg.png") no-repeat scroll 50px 0 rgba(0, 0, 0, 0); float: left; height: 421px; margin-top: -20px; padding-left: 50px; width: 379px; }
  17. .pw-box-ft p { color: #fff; font-size: 14px; font-weight: 700; line-height: 22px; margin: 0; }
  18. .payment-change .pc-wrap .pc-w-arrow-left { float: left; margin-right: 15px; }
  19. .payment-change .pc-wrap strong { color: #2ea7e7; cursor: pointer; float: left; font-size: 14px; margin-right: 30px; }
  20. </style>
  21. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
  22. <div class="header-login clearfix">
  23. <div class="w1200">
  24. <div class="logo">
  25. <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="dsc-main">
  30. <div class="dsc-title">
  31. <h3>{$Think.lang.cart_index_payment}</h3>
  32. <h5>{$Think.lang.order_details_can_viewed}<a href="{:url('Memberorder/index')}" target="_blank">{$Think.lang.my_order}</a>{$Think.lang.carry_out_check}。</h5>
  33. </div>
  34. <div class="dsc-receipt-info">
  35. <div class="dsc-receipt-info-title">
  36. <h3> {$Think.lang.order_submitted_successfully}:<strong>{:ds_price_format($api_pay_amount)}</strong>{$Think.lang.ds_yuan} </h3>
  37. </div>
  38. </div>
  39. <table class="dsc-table-style">
  40. <thead>
  41. <tr>
  42. <th class="w50"></th>
  43. <th class="w200 tl">{$Think.lang.order_number}</th>
  44. <th class="tl">{$Think.lang.amount_of}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {if count($order_list) > 1}
  49. <tr>
  50. <th colspan="20">{$Think.lang.different_businesses}{:count($order_list)}{$Think.lang.different_suborder_deliveries}!</th>
  51. </tr>
  52. {/if}
  53. {foreach name="order_list" item="order_info" key="key" }
  54. {if $order_info.order_type=='pd_order'}
  55. <tr>
  56. <td></td>
  57. <td class="tl">{$order_info.pdr_sn}</td>
  58. <td class="tl">{$order_info.pdr_amount}</td>
  59. </tr>
  60. {else /}
  61. <tr>
  62. <td></td>
  63. <td class="tl">{$order_info.order_sn}</td>
  64. <td class="tl">{$order_info.order_amount}</td>
  65. </tr>
  66. {/if}
  67. {/foreach}
  68. </tbody>
  69. </table>
  70. <div class="wxpayment">
  71. <!-- 微信支付 -->
  72. <div class="pay-weixin">
  73. <div class="p-w-hd">{:sprintf($Think.lang.micro_letter_to_pay,$pay_method)}</div>
  74. <div class="p-w-bd">
  75. <div class="p-w-box">
  76. <div class="pw-box-hd"> <img width="298" src="{$Think.HOME_SITE_URL}/payment/qrcode?data={:urlencode($pay_url)}"> </div>
  77. <div class="pw-box-ft">
  78. <p>{:sprintf($Think.lang.wechat_scan,$pay_method)}</p>
  79. <p>{$Think.lang.qr_code_payment}</p>
  80. </div>
  81. </div>
  82. <div class="p-w-sidebar"></div>
  83. </div>
  84. </div>
  85. <!-- 微信支付 end -->
  86. <!-- payment-change 变更支付方式 -->
  87. <div class="payment-change"> <a href="javascript:history.back(-1)" id="reChooseUrl" class="pc-wrap"> <i class="pc-w-arrow-left">&lt;</i> <strong>{$Think.lang.other_payment_methods}</strong> </a> </div>
  88. <!-- payment-change 变更支付方式 end -->
  89. </div>
  90. </div>
  91. <script>
  92. $(document).ready(function(){
  93. setInterval(queryOrderState, 3000);
  94. });
  95. function queryOrderState(){
  96. $.ajax({
  97. type: "GET",
  98. url: "{$Think.HOME_SITE_URL}/payment/query_state?{$args|raw}",
  99. data: "",
  100. dataType: "json",
  101. timeout: 4000,
  102. async:false,
  103. success: function(result) {
  104. if(result.state==1){
  105. //此处待修改
  106. if (result.type == 'real_order') {
  107. window.location.href = "{:url('Memberorder/index')}";
  108. }
  109. if(result.type == 'vr_order') {
  110. window.location.href = "{:url('Membervrorder/index')}";
  111. }
  112. if(result.type == 'pd_order') {
  113. window.location.href = "{:url('Predeposit/index')}";
  114. }
  115. }
  116. }
  117. });
  118. }
  119. </script>
  120. {include file='default/base/mall_footer'/}