123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- {extend name="default/base/base_seller" /}
- {block name="seller_main"}
- <div class="wrap">
- <div class="step-title"><em>{$Think.lang.store_deliver_first_step}</em>{$Think.lang.store_deliver_confirm_trade}</div>
- <form name="deliver_form" method="POST" id="deliver_form" action="{:url('Sellerdeliver/send',['order_id'=>$order_info.order_id])}" >
- <input type="hidden" id="shipping_express_id" value="{$order_info['extend_order_common']['shipping_express_id']}" name="shipping_express_id">
- <input type="hidden" id="shipping_type" value="" name="shipping_type">
- <input type="hidden" value="{$order_info['extend_order_common']['reciver_name']}" name="reciver_name" id="reciver_name">
- <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['area']}" name="reciver_area" id="reciver_area">
- <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['street']}" name="reciver_street" id="reciver_street">
- <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['mob_phone']}" name="reciver_mob_phone" id="reciver_mob_phone">
- <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['tel_phone']}" name="reciver_tel_phone" id="reciver_tel_phone">
- <table class="dssc-default-table order deliver">
- <tbody>
- {notempty name="order_info"}
- <tr>
- <td colspan="20" class="sep-row"></td>
- </tr>
- <tr>
- <th colspan="20"><a href="{:url('Sellerorder/print_order',['order_id'=>$order_info.order_id])}" target="_blank" class="fr" title="{$Think.lang.store_show_order_printorder}"/><i class="print-order"></i></a><span class="fr mr30"></span><span class="ml10">{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}{$order_info.order_sn}</span><span class="ml20">{$Think.lang.store_order_add_time}{$Think.lang.ds_colon}<em class="goods-time">{$order_info.add_time|date="Y-m-d H:i:s"}</em></span>
- </tr>
- {foreach name="$order_info.extend_order_goods" item="goods_info" key="k" }
- <tr>
- <td class="bdl w10"></td>
- <td class="w50"><div class="pic-thumb"><a href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}" target="_blank"><img src="{:goods_thumb($goods_info, 240)}" /></a></div></td>
- <td class="tl"><dl class="goods-name">
- <dt><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}">{$goods_info.goods_name}</a></dt>
- <dd><strong>¥{$goods_info.goods_price}</strong> x <em>{$goods_info.goods_num}</em>{$Think.lang.piece}</dd>
- </dl></td>
- {if (count($order_info['extend_order_goods']) > 1 && $k ==0) || (count($order_info['extend_order_goods']) == 1)}
- <td class="bdl bdr order-info w500" rowspan="{:count($order_info['extend_order_goods'])}"><dl>
- <dt>{$Think.lang.store_deliver_shipping_amount}{$Think.lang.ds_colon}</dt>
- <dd>
- {if !empty($order_info['shipping_fee']) && $order_info['shipping_fee'] != '0.00'}
- {$order_info.shipping_fee}
- {else/}
- {$Think.lang.ds_common_shipping_free}
- {/if}
- </dd>
- </dl>
- <dl>
- <dt>{$Think.lang.store_deliver_forget}{$Think.lang.ds_colon}</dt>
- <dd>
- <textarea name="deliver_explain" cols="100" rows="2" class="w400 tip-t" title="{$Think.lang.store_deliver_forget_tips}">{$order_info['extend_order_common']['deliver_explain']}</textarea>
- </dd>
- </dl>
- </td>
- {/if}
- </tr>
- {/foreach}
- <tr>
- <td colspan="20" class="tl bdl bdr" style="padding:8px" id="address"><strong class="fl">{$Think.lang.store_deliver_buyer_adress}{$Think.lang.ds_colon}</strong><span id="buyer_address_span">{$order_info['extend_order_common']['reciver_name']} {$order_info['extend_order_common']['reciver_info']['phone']} {$order_info['extend_order_common']['reciver_info']['address']}</span>
- <a href="javascript:void(0)" ds_type="dialog" dialog_title="{$Think.lang.store_deliver_buyer_adress}" dialog_id="edit_buyer_address" uri="{:url('Sellerdeliver/buyer_address_edit',['order_id'=>$order_info.order_id])}" dialog_width="550" class="dssc-btn-mini fr"><i class="iconfont"></i>{$Think.lang.ds_edit}</a></td>
- </tr>
- {else /}
- <tr>
- <td colspan="20" class="norecord"><i> </i><span>{$Think.lang.no_record}</span></td>
- </tr>
- {/notempty}
- </tbody>
- </table>
- <div class="step-title mt30"><em>{$Think.lang.store_deliver_second_step}</em>{$Think.lang.store_deliver_confirm_daddress}</div>
- <div class="deliver-sell-info"><strong class="fl">{$Think.lang.store_deliver_my_daddress}{$Think.lang.ds_colon}</strong>
- {empty name="daddress_info"}
- <a href="{:url('sellerdeliverset/index')}" class="dssc-btn-mini fr"><i class="iconfont"></i>{$Think.lang.ds_new}</a>
- <span id="seller_address_span">
- {$Think.lang.store_deliver_none_set}
- </span>
- {else /}
- <a href="javascript:void(0);" onclick="ajax_form('modfiy_daddress', '{$Think.lang.store_deliver_select_daddress}', '{:url('Sellerdeliver/send_address_select',['order_id'=>$order_info.order_id])}', 640, 0);" class="dssc-btn-mini fr"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
- <span id="seller_address_span">
- {$daddress_info.seller_name} {$daddress_info.daddress_telphone} {$daddress_info.area_info} {$daddress_info.daddress_detail}
- </span>
- {/empty}
- </div>
- {notempty name="daddress_info"}
- <input type="hidden" name="daddress_id" id="daddress_id" value="{$daddress_info.daddress_id}">
- {/notempty}
- <div class="step-title mt30"><em></em>{$Think.lang.store_deliver_third_step}{$Think.lang.store_deliver_express_select}</div>
- <div class="alert alert-success">{$Think.lang.through_shipping_settings}-><a href="{:url('Sellerdeliverset/express')}" target="_parent" >{$Think.lang.store_deliver_default_express}</a>{$Think.lang.common_cargo_logistics}<span class="red">[{$Think.lang.store_deliver_express_wx}]</span>{$Think.lang.tab_operation}。</div>
- <div class="dssc-goods-spec">
- <div class="spec-tabmenu">
- <ul class="tab pngFix">
- {if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}
- <li id="eli0" class="selected"><a href="javascript:void(0);" onclick="etab(0)">{$Think.lang.eorder}</a></li>
- {/if}
- <li id="eli1" class="{if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}normal{else}selected{/if}"><a href="javascript:void(0);" onclick="etab(1)">{$Think.lang.store_deliver_express_zx}</a></li>
- <li id="eli2" class="normal"><a href="javascript:void(0);" onclick="etab(2)">{$Think.lang.store_deliver_express_wx}</a></li>
- </ul>
- </div>
- </div>
- {if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}
- <table class="dssc-default-table order" id="texpress0">
- <tbody>
- <tr>
- <td class="bdl w150">{$Think.lang.store_deliver_company_name}</td>
- <td class="bdr w90 tc">{$Think.lang.ds_handle}</td>
- </tr>
- {notempty name="my_express_list"}
- <tr>
- <td class="bdl">
- <select id="temp_shipping_express_id0">
- {foreach name="my_express_list" item="v" key="k" }
- {php}if (!isset($express_list[$v])) continue;{/php}
- <option value="{$v}" {if $v==$order_info.extend_order_common.shipping_express_id}selected{/if}>{$express_list[$v]['express_name']}</option>
- {/foreach}
- </select>
- </td>
- <td class="bdl bdr tc"><a ds_type='eb' ds_value="eorder" href="javascript:void(0);" class="dssc-btn">{$Think.lang.ds_common_button_confirm}</a></td>
- </tr>
- {/notempty}
- </tbody>
- </table>
- {/if}
- <table class="dssc-default-table order" id="texpress1" {if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}style="display:none"{/if}>
- <tbody>
- <tr>
- <td class="bdl w150">{$Think.lang.store_deliver_company_name}</td>
- <td class="w250">{$Think.lang.store_deliver_shipping_code}</td>
- <td class="bdr w90 tc">{$Think.lang.ds_handle}</td>
- </tr>
- {notempty name="my_express_list"}
- <tr>
- <td class="bdl">
- <select id="temp_shipping_express_id">
- {foreach name="my_express_list" item="v" key="k" }
- {php}if (!isset($express_list[$v])) continue;{/php}
- <option value="{$v}" {if $v==$order_info.extend_order_common.shipping_express_id}selected{/if}>{$express_list[$v]['express_name']}</option>
- {/foreach}
- </select>
- </td>
- <td class="bdl"><input name="shipping_code" value="{$order_info.shipping_code}" type="text" class="text w200 tip-r" title="{$Think.lang.store_deliver_shipping_code_tips}" maxlength="20" /></td>
- <td class="bdl bdr tc"><a ds_type='eb' href="javascript:void(0);" class="dssc-btn">{$Think.lang.ds_common_button_confirm}</a></td>
- </tr>
- {/notempty}
- </tbody>
- </table>
- <table class="dssc-default-table order" id="texpress2" style="display:none">
- <tbody>
- <tr>
- <td colspan="2"></td>
- </tr>
- <tr>
- <td class="bdl tr">{$Think.lang.store_deliver_no_deliver_tips}</td>
- <td class="bdr tl w400"> <a ds_type='eb' ds_value="none" href="javascript:void(0);" class="dssc-btn">{$Think.lang.ds_common_button_confirm}</a></td>
- </tr>
- <tr>
- <td colspan="2"></td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- <script type="text/javascript">
- function etab(t){
- if (t==0){
- $('#eli0').removeClass('normal').addClass('selected');
- $('#eli1').removeClass('selected').addClass('normal');
- $('#eli2').removeClass('selected').addClass('normal');
- $('#texpress0').css('display','');
- $('#texpress1').css('display','none');
- $('#texpress2').css('display','none');
- }else if (t==1){
- $('#eli0').removeClass('selected').addClass('normal');
- $('#eli1').removeClass('normal').addClass('selected');
- $('#eli2').removeClass('selected').addClass('normal');
- $('#texpress0').css('display','none');
- $('#texpress1').css('display','');
- $('#texpress2').css('display','none');
- }else{
- $('#eli0').removeClass('selected').addClass('normal');
- $('#eli1').removeClass('selected').addClass('normal');
- $('#eli2').removeClass('normal').addClass('selected');
- $('#texpress0').css('display','none');
- $('#texpress1').css('display','none');
- $('#texpress2').css('display','');
- }
- }
- $(function(){
- $('a[ds_type="eb"]').on('click',function(){
- var shipping_express_id
- var shipping_type=$(this).attr('ds_value')
- if (shipping_type=='none'){
- shipping_express_id=0
- $('input[name="shipping_code"]').val('')
- }else if(shipping_type=='eorder'){
- shipping_express_id=$('#temp_shipping_express_id0').val()
- $('input[name="shipping_code"]').val('')
- }else{
- shipping_express_id=$('#temp_shipping_express_id').val()
- if($('input[name="shipping_code"]').val()==''){
- layer.alert('{$Think.lang.store_deliver_shipping_code_pl}');return false;
- }
- }
- $('#shipping_type').val(shipping_type);
- $('#shipping_express_id').val(shipping_express_id);
- ds_ajaxpost('deliver_form', 'url', "{:url('Sellerdeliver/index')}")
- });
-
- $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
- $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
- $('.checkall_s').click(function(){
- var if_check = $(this).prop('checked');
- $('.checkitem').each(function(){
- if(!this.disabled)
- {
- $(this).prop('checked', if_check);
- }
- });
- $('.checkall_s').prop('checked', if_check);
- });
- {if $order_info.shipping_code != ''}
- $('input[ds_value="{$order_info.extend_order_common.shipping_express_id}"]').val('{$order_info.shipping_code}');
- $('td[ds_value="{$order_info.extend_order_common.shipping_express_id}"]').html('{$order_info.extend_order_common.deliver_explain}');
- {/if}
- $('#my_address_add').click(function(){
- ajax_form('my_address_add', '{$Think.lang.store_deliver_add_daddress}' , "{:url('Sellerdeliver/send_address_edit',['order_id'=>$order_info.order_id])}", 550,0);
- });
- });
- </script>
- {/block}
|