send.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="wrap">
  4. <div class="step-title"><em>{$Think.lang.store_deliver_first_step}</em>{$Think.lang.store_deliver_confirm_trade}</div>
  5. <form name="deliver_form" method="POST" id="deliver_form" action="{:url('Sellerdeliver/send',['order_id'=>$order_info.order_id])}" >
  6. <input type="hidden" id="shipping_express_id" value="{$order_info['extend_order_common']['shipping_express_id']}" name="shipping_express_id">
  7. <input type="hidden" id="shipping_type" value="" name="shipping_type">
  8. <input type="hidden" value="{$order_info['extend_order_common']['reciver_name']}" name="reciver_name" id="reciver_name">
  9. <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['area']}" name="reciver_area" id="reciver_area">
  10. <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['street']}" name="reciver_street" id="reciver_street">
  11. <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['mob_phone']}" name="reciver_mob_phone" id="reciver_mob_phone">
  12. <input type="hidden" value="{$order_info['extend_order_common']['reciver_info']['tel_phone']}" name="reciver_tel_phone" id="reciver_tel_phone">
  13. <table class="dssc-default-table order deliver">
  14. <tbody>
  15. {notempty name="order_info"}
  16. <tr>
  17. <td colspan="20" class="sep-row"></td>
  18. </tr>
  19. <tr>
  20. <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>
  21. </tr>
  22. {foreach name="$order_info.extend_order_goods" item="goods_info" key="k" }
  23. <tr>
  24. <td class="bdl w10"></td>
  25. <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>
  26. <td class="tl"><dl class="goods-name">
  27. <dt><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}">{$goods_info.goods_name}</a></dt>
  28. <dd><strong>¥{$goods_info.goods_price}</strong>&nbsp;x&nbsp;<em>{$goods_info.goods_num}</em>{$Think.lang.piece}</dd>
  29. </dl></td>
  30. {if (count($order_info['extend_order_goods']) > 1 && $k ==0) || (count($order_info['extend_order_goods']) == 1)}
  31. <td class="bdl bdr order-info w500" rowspan="{:count($order_info['extend_order_goods'])}"><dl>
  32. <dt>{$Think.lang.store_deliver_shipping_amount}{$Think.lang.ds_colon}</dt>
  33. <dd>
  34. {if !empty($order_info['shipping_fee']) && $order_info['shipping_fee'] != '0.00'}
  35. {$order_info.shipping_fee}
  36. {else/}
  37. {$Think.lang.ds_common_shipping_free}
  38. {/if}
  39. </dd>
  40. </dl>
  41. <dl>
  42. <dt>{$Think.lang.store_deliver_forget}{$Think.lang.ds_colon}</dt>
  43. <dd>
  44. <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>
  45. </dd>
  46. </dl>
  47. </td>
  48. {/if}
  49. </tr>
  50. {/foreach}
  51. <tr>
  52. <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']}&nbsp;{$order_info['extend_order_common']['reciver_info']['phone']}&nbsp;{$order_info['extend_order_common']['reciver_info']['address']}</span>
  53. <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">&#xe731;</i>{$Think.lang.ds_edit}</a></td>
  54. </tr>
  55. {else /}
  56. <tr>
  57. <td colspan="20" class="norecord"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></td>
  58. </tr>
  59. {/notempty}
  60. </tbody>
  61. </table>
  62. <div class="step-title mt30"><em>{$Think.lang.store_deliver_second_step}</em>{$Think.lang.store_deliver_confirm_daddress}</div>
  63. <div class="deliver-sell-info"><strong class="fl">{$Think.lang.store_deliver_my_daddress}{$Think.lang.ds_colon}</strong>
  64. {empty name="daddress_info"}
  65. <a href="{:url('sellerdeliverset/index')}" class="dssc-btn-mini fr"><i class="iconfont">&#xe6db;</i>{$Think.lang.ds_new}</a>
  66. <span id="seller_address_span">
  67. {$Think.lang.store_deliver_none_set}
  68. </span>
  69. {else /}
  70. <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">&#xe731;</i>{$Think.lang.ds_edit}</a>
  71. <span id="seller_address_span">
  72. {$daddress_info.seller_name}&nbsp;{$daddress_info.daddress_telphone}&nbsp;{$daddress_info.area_info}&nbsp;{$daddress_info.daddress_detail}
  73. </span>
  74. {/empty}
  75. </div>
  76. {notempty name="daddress_info"}
  77. <input type="hidden" name="daddress_id" id="daddress_id" value="{$daddress_info.daddress_id}">
  78. {/notempty}
  79. <div class="step-title mt30"><em></em>{$Think.lang.store_deliver_third_step}{$Think.lang.store_deliver_express_select}</div>
  80. <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>
  81. <div class="dssc-goods-spec">
  82. <div class="spec-tabmenu">
  83. <ul class="tab pngFix">
  84. {if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}
  85. <li id="eli0" class="selected"><a href="javascript:void(0);" onclick="etab(0)">{$Think.lang.eorder}</a></li>
  86. {/if}
  87. <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>
  88. <li id="eli2" class="normal"><a href="javascript:void(0);" onclick="etab(2)">{$Think.lang.store_deliver_express_wx}</a></li>
  89. </ul>
  90. </div>
  91. </div>
  92. {if $expresscf_kdn_if_open && !$order_info.extend_order_common.shipping_express_id}
  93. <table class="dssc-default-table order" id="texpress0">
  94. <tbody>
  95. <tr>
  96. <td class="bdl w150">{$Think.lang.store_deliver_company_name}</td>
  97. <td class="bdr w90 tc">{$Think.lang.ds_handle}</td>
  98. </tr>
  99. {notempty name="my_express_list"}
  100. <tr>
  101. <td class="bdl">
  102. <select id="temp_shipping_express_id0">
  103. {foreach name="my_express_list" item="v" key="k" }
  104. {php}if (!isset($express_list[$v])) continue;{/php}
  105. <option value="{$v}" {if $v==$order_info.extend_order_common.shipping_express_id}selected{/if}>{$express_list[$v]['express_name']}</option>
  106. {/foreach}
  107. </select>
  108. </td>
  109. <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>
  110. </tr>
  111. {/notempty}
  112. </tbody>
  113. </table>
  114. {/if}
  115. <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}>
  116. <tbody>
  117. <tr>
  118. <td class="bdl w150">{$Think.lang.store_deliver_company_name}</td>
  119. <td class="w250">{$Think.lang.store_deliver_shipping_code}</td>
  120. <td class="bdr w90 tc">{$Think.lang.ds_handle}</td>
  121. </tr>
  122. {notempty name="my_express_list"}
  123. <tr>
  124. <td class="bdl">
  125. <select id="temp_shipping_express_id">
  126. {foreach name="my_express_list" item="v" key="k" }
  127. {php}if (!isset($express_list[$v])) continue;{/php}
  128. <option value="{$v}" {if $v==$order_info.extend_order_common.shipping_express_id}selected{/if}>{$express_list[$v]['express_name']}</option>
  129. {/foreach}
  130. </select>
  131. </td>
  132. <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>
  133. <td class="bdl bdr tc"><a ds_type='eb' href="javascript:void(0);" class="dssc-btn">{$Think.lang.ds_common_button_confirm}</a></td>
  134. </tr>
  135. {/notempty}
  136. </tbody>
  137. </table>
  138. <table class="dssc-default-table order" id="texpress2" style="display:none">
  139. <tbody>
  140. <tr>
  141. <td colspan="2"></td>
  142. </tr>
  143. <tr>
  144. <td class="bdl tr">{$Think.lang.store_deliver_no_deliver_tips}</td>
  145. <td class="bdr tl w400">&emsp;<a ds_type='eb' ds_value="none" href="javascript:void(0);" class="dssc-btn">{$Think.lang.ds_common_button_confirm}</a></td>
  146. </tr>
  147. <tr>
  148. <td colspan="2"></td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. </form>
  153. </div>
  154. <script type="text/javascript">
  155. function etab(t){
  156. if (t==0){
  157. $('#eli0').removeClass('normal').addClass('selected');
  158. $('#eli1').removeClass('selected').addClass('normal');
  159. $('#eli2').removeClass('selected').addClass('normal');
  160. $('#texpress0').css('display','');
  161. $('#texpress1').css('display','none');
  162. $('#texpress2').css('display','none');
  163. }else if (t==1){
  164. $('#eli0').removeClass('selected').addClass('normal');
  165. $('#eli1').removeClass('normal').addClass('selected');
  166. $('#eli2').removeClass('selected').addClass('normal');
  167. $('#texpress0').css('display','none');
  168. $('#texpress1').css('display','');
  169. $('#texpress2').css('display','none');
  170. }else{
  171. $('#eli0').removeClass('selected').addClass('normal');
  172. $('#eli1').removeClass('selected').addClass('normal');
  173. $('#eli2').removeClass('normal').addClass('selected');
  174. $('#texpress0').css('display','none');
  175. $('#texpress1').css('display','none');
  176. $('#texpress2').css('display','');
  177. }
  178. }
  179. $(function(){
  180. $('a[ds_type="eb"]').on('click',function(){
  181. var shipping_express_id
  182. var shipping_type=$(this).attr('ds_value')
  183. if (shipping_type=='none'){
  184. shipping_express_id=0
  185. $('input[name="shipping_code"]').val('')
  186. }else if(shipping_type=='eorder'){
  187. shipping_express_id=$('#temp_shipping_express_id0').val()
  188. $('input[name="shipping_code"]').val('')
  189. }else{
  190. shipping_express_id=$('#temp_shipping_express_id').val()
  191. if($('input[name="shipping_code"]').val()==''){
  192. layer.alert('{$Think.lang.store_deliver_shipping_code_pl}');return false;
  193. }
  194. }
  195. $('#shipping_type').val(shipping_type);
  196. $('#shipping_express_id').val(shipping_express_id);
  197. ds_ajaxpost('deliver_form', 'url', "{:url('Sellerdeliver/index')}")
  198. });
  199. $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
  200. $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
  201. $('.checkall_s').click(function(){
  202. var if_check = $(this).prop('checked');
  203. $('.checkitem').each(function(){
  204. if(!this.disabled)
  205. {
  206. $(this).prop('checked', if_check);
  207. }
  208. });
  209. $('.checkall_s').prop('checked', if_check);
  210. });
  211. {if $order_info.shipping_code != ''}
  212. $('input[ds_value="{$order_info.extend_order_common.shipping_express_id}"]').val('{$order_info.shipping_code}');
  213. $('td[ds_value="{$order_info.extend_order_common.shipping_express_id}"]').html('{$order_info.extend_order_common.deliver_explain}');
  214. {/if}
  215. $('#my_address_add').click(function(){
  216. ajax_form('my_address_add', '{$Think.lang.store_deliver_add_daddress}' , "{:url('Sellerdeliver/send_address_edit',['order_id'=>$order_info.order_id])}", 550,0);
  217. });
  218. });
  219. </script>
  220. {/block}