123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- {include file="default/base/mall_top" /}
- <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
- <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
- <div class="dsc-header">
- <div class="logo">
- <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
- </div>
- <ul class="dsc-flow">
- <li class=""><i class="iconfont"></i>
- <p>{$Think.lang.cart_index_ensure_order}</p>
- <sub></sub>
- <div class="hr"></div>
- </li>
- <li class=""><i class="iconfont"></i>
- <p>{$Think.lang.cart_index_ensure_info}</p>
- <sub></sub>
- <div class="hr"></div>
- </li>
- <li class="current"><i class="iconfont"></i>
- <p>{$Think.lang.cart_index_payment}</p>
- <sub></sub>
- <div class="hr"></div>
- </li>
- <li class=""><i class="iconfont"></i>
- <p>{$Think.lang.cart_index_buy_finish}</p>
- <sub></sub>
- <div class="hr"></div>
- </li>
- </ul>
- </div>
- <div class="dsc-line"></div>
- <div class="dsc-main">
- <div class="dsc-title">
- <h3>{$Think.lang.cart_index_payment}</h3>
- <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>
- </div>
- <form action="{:url('Payment/real_order')}" method="POST" id="buy_form">
- <input type="hidden" name="pay_sn" value="{$pay_info.pay_sn}">
- <input type="hidden" id="payment_code" name="payment_code" value="">
- <div class="dsc-receipt-info">
- <div class="dsc-receipt-info-title">
- <h3>
- {$order_remind}
- {if condition="$pay_amount_online gt 0"}
- {$Think.lang.online_payment_amount}:<strong>¥{$pay_amount_online}</strong>
- {/if}
- </h3>
- </div>
- <table class="dsc-table-style">
- <thead>
- <tr>
- <th class="w50"></th>
- <th class="w200 tl">{$Think.lang.order_number}</th>
- <th class="tl w150">{$Think.lang.payment_method}</th>
- <th class="tl">{$Think.lang.amount_of}</th>
- <th class="w150">{$Think.lang.logistics}</th>
- </tr>
- </thead>
- <tbody>
- {if count($order_list)>1}
- <tr>
- <th colspan="20">{$Think.lang.different_businesses}{:count($order_list)}{$Think.lang.different_suborder_deliveries}</th>
- </tr>
- {/if}
- {foreach name="order_list" item="order" key="key" }
- <tr>
- <td></td>
- <td class="tl">{$order.order_sn}</td>
- <td class="tl">{$order.payment_state}</td>
- <td class="tl">¥{$order.order_amount}</td>
- <td>{$Think.lang.courier}</td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- </div>
-
- <!-- S 预存款 & 充值卡 -->
- {if $pay_amount_online>0 && (!empty($available_pd_amount) || !empty($available_rcb_amount))}
- <div id="pd_panel">
- <div class="pd-account" colspan="6"><div class="dsc-pd-account">
- {notempty name="available_rcb_amount"}
- <div class="mt5 mb5">
- <label>
- <input type="checkbox" class="vm mr5" value="1" name="rcb_pay">
- {$Think.lang.use_top_up_cards}:<em>{$available_rcb_amount}</em>{$Think.lang.ds_yuan}
- </label>
- </div>
- {/notempty}
- {notempty name="available_pd_amount"}
- <div class="mt5 mb5">
- <label>
- <input type="checkbox" class="vm mr5" value="1" name="pd_pay">
- {$Think.lang.pre_deposit}:<em>{$available_pd_amount}</em>{$Think.lang.ds_yuan})</label>
- </div>
- {/notempty}
- {if !empty($available_pd_amount) && !empty($available_rcb_amount)}
- <div class="mt5 mb5">{$Think.lang.system_priority} </div>
- {/if}
- <div id="pd_password" style="display: none">{$Think.lang.pay_the_password}({$Think.lang.pay_the_password_tips}):
- <input type="password" class="text w120" value="" name="password" id="pay-password" maxlength="35" autocomplete="off">
- <input type="hidden" value="" name="password_callback" id="password_callback">
- <a class="dsc-btn-mini dsc-btn-orange" id="pd_pay_submit" href="javascript:void(0)">{$Think.lang.use}</a>
- {if !$member_paypwd}
- {$Think.lang.no_payment_password_set},<a href="{:url('Membersecurity/auth',['type'=>'modify_paypwd'])}" target="_blank">{$Think.lang.set_up_immediately}</a>
- {/if}
- </div>
- </div>
- </div>
- </div>
- {/if}
- <!-- E 预存款 -->
- <div class="dsc-receipt-info">
- {notempty name="payment_list"}
- <div class="dsc-receipt-info-title">
- <h3>{$Think.lang.choose_online_payment}</h3>
- </div>
- <ul class="dsc-payment-list">
- {foreach name="payment_list" item="val"}
- {if $val.payment_code=='allinpay'}
- {php}$sub_payment_list=array('W01','A01','Q01','U01');{/php}
- <input type="hidden" id="{$val.payment_code}_sub_payment_code" name="paytype" value="">
- {else}
- {php}$sub_payment_list=array('');{/php}
- {/if}
- {foreach name="sub_payment_list" item="sub"}
- <li payment_code="{$val.payment_code}" sub_payment_code="{$sub}">
- <label for="pay_{$val.payment_code}">
- <i></i>
- <div class="logo" for="pay_{$val.payment_code}"> <img src="{$Think.HOME_SITE_ROOT}/images/payment/{$val.payment_code}{notempty name='sub'}_{$sub}{/notempty}_logo.gif" /> </div>
- </label>
- </li>
- {/foreach}
- {/foreach}
- </ul>
- {else /}
- {if $pay_amount_online>0}
- <div class="nopay">{$Think.lang.satisfy_condition_means_payment}</div>
- {/if}
- {/notempty}
- </div>
- {if $pay_amount_online > 0}
- <div class="dsc-bottom tc mb50"><a href="javascript:void(0);" id="next_button" class="dsc-btn dsc-btn-green"><i class="iconfont"></i>{$Think.lang.confirm_submit_payment}</a></div>
- {/if}
- </form>
- </div>
- <script type="text/javascript">
- $(function(){
- var ifSubmit=false
- $('.dsc-payment-list > li').on('click',function(){
- $('.dsc-payment-list > li').removeClass('using');
- $(this).addClass('using');
- $('#payment_code').val($(this).attr('payment_code'));
- if($(this).attr('sub_payment_code')!=''){
- $('#'+$(this).attr('payment_code')+'_sub_payment_code').val($(this).attr('sub_payment_code'));
- }
- });
- $('.dsc-payment-list > li:eq(0)').click()
- $('#next_button').on('click',function(){
- if ($('#payment_code').val() == '') {
- layer.alert('{$Think.lang.cart_step2_choose_pay_method}');return false;
- }
- if (($('input[name="pd_pay"]').prop('checked') || $('input[name="rcb_pay"]').prop('checked')) && $('#password_callback').val()==''){
- ifSubmit=true
- $('#pd_pay_submit').click()
- return false;
- }
- $('#buy_form').submit();
- });
-
- {if !empty($available_pd_amount) || !empty($available_rcb_amount)}
- function showPaySubmit() {
- if ($('input[name="pd_pay"]').prop('checked') || $('input[name="rcb_pay"]').prop('checked')) {
- $('#pay-password').val('');
- $('#password_callback').val('');
- $('#pd_password').show();
- } else {
- $('#pd_password').hide();
- }
- }
- $('#pd_pay_submit').on('click',function(){
- if ($('#pay-password').val() == '') {
- ifSubmit=false
- layer.alert('{$Think.lang.enter_payment_password}');return;
- }
- $('#password_callback').val('');
- var url = HOMESITEURL+'/Buy/check_pd_pwd.html'
- $.post(url, {'password':$('#pay-password').val()}, function(data){
- if (data == '1') {
- $('#password_callback').val('1');
- $('#pd_password').hide();
- if(ifSubmit){
- $('#buy_form').submit();
- }
- } else {
- ifSubmit=false
- $('#pay-password').val('');
- layer.alert('{$Think.lang.payment_password_error}');return;
- }
- });
- });
- {/if}
- {if !empty($available_rcb_amount)}
- $('input[name="rcb_pay"]').on('change',function(){
- showPaySubmit();
- if ($(this).prop('checked') && !$('input[name="pd_pay"]').prop('checked')) {
- if ({$available_rcb_amount} >= parseFloat($('#orderTotal').html())) {
- $('input[name="pd_pay"]').prop('checked',false).prop('disabled',true);
- }
- } else {
- $('input[name="pd_pay"]').prop('disabled',false);
- }
- });
- {/if}
- {if !empty($available_pd_amount)}
- $('input[name="pd_pay"]').on('change',function(){
- showPaySubmit();
- if ($(this).prop('checked') && !$('input[name="rcb_pay"]').prop('checked')) {
- if ({$available_pd_amount} >= parseFloat($('#orderTotal').html())) {
- $('input[name="rcb_pay"]').prop('checked',false).prop('disabled',true);
- }
- } else {
- $('input[name="rcb_pay"]').prop('disabled',false);
- }
- });
- {/if}
- });
- </script>
- <style>
- .pd-account { background-color: #FFAA01; padding: 2px;}
- </style>
- {include file="default/base/mall_footer" /}
|