batch_send.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <div class="eject_con">
  2. <div id="warning" class="alert alert-error"></div>
  3. <form method="post" action="{:url('Sellerdeliver/batch_send')}" id="plate_form" class='batch_send_form'>
  4. <input type="hidden" name="order_id" value="{$Request.param.order_id}" />
  5. {if $order_list}
  6. <dl>
  7. <dd style="width:100%">
  8. <label>发货方式</label>
  9. {if $expresscf_kdn_if_open}
  10. <label class="radio-label">
  11. <i class="radio-common">
  12. <input type="radio" value="1" name="shipping_type">
  13. </i>
  14. <span>{$Think.lang.eorder}</span>
  15. </label>
  16. {/if}
  17. <label class="radio-label">
  18. <i class="radio-common selected">
  19. <input type="radio" value="2" name="shipping_type" checked="checked">
  20. </i>
  21. <span>{$Think.lang.store_deliver_express_zx}</span>
  22. </label>
  23. <label class="radio-label">
  24. <i class="radio-common">
  25. <input type="radio" value="3" name="shipping_type">
  26. </i>
  27. <span>{$Think.lang.store_deliver_express_wx}</span>
  28. </label>
  29. </dd>
  30. </dl>
  31. <dl>
  32. <dd style="width:100%">
  33. <p>
  34. <label>{$Think.lang.member_show_deliver_info}</label>
  35. <select name="daddress_id">
  36. <option>{$Think.lang.ds_please_choose}</option>
  37. {notempty name="daddress_list"}
  38. {foreach name="daddress_list" key="k" item="daddress_info"}
  39. <option value="{$daddress_info.daddress_id}" {if $k==0}selected{/if}>{$daddress_info.seller_name}&nbsp;{$daddress_info.daddress_telphone}&nbsp;{$daddress_info.area_info}&nbsp;{$daddress_info.daddress_detail}</option>
  40. {/foreach}
  41. {/notempty}
  42. </select>
  43. </p>
  44. </dd>
  45. </dl>
  46. <dl class="express_id">
  47. <dd>
  48. <p>
  49. <label>{$Think.lang.store_deliver_express_title}</label>
  50. <select name="express_id">
  51. <option>{$Think.lang.ds_please_choose}</option>
  52. {notempty name="my_express_list"}
  53. {foreach name="my_express_list" key="k" item="v"}
  54. <option value="{$v.express_id}" {if $k==0}selected{/if}>{$v.express_name}</option>
  55. {/foreach}
  56. {/notempty}
  57. </select>
  58. </p>
  59. </dd>
  60. </dl>
  61. {foreach name='order_list' item="val"}
  62. <dl>
  63. <dd>
  64. <p>{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}{$val.order_sn}</p>
  65. <p class="shipping_code">{$Think.lang.store_order_shipping_no}<input name="send[{$val.order_id}][shipping_code]" type="text" class="text w200 tip-r" /></p>
  66. </dd>
  67. </dl>
  68. {/foreach}
  69. <div class="bottom">
  70. <input type="submit" class="submit" value="{$Think.lang.ds_submit}"/>
  71. </div>
  72. {else}
  73. <p>{$Think.lang.order_send_message}</p>
  74. {/if}
  75. </form>
  76. </div>
  77. <style>
  78. .batch_send_form{padding-left:20px;max-height: 500px;overflow: hidden;overflow-y: auto !important}
  79. .batch_send_form p input{vertical-align: middle;}
  80. </style>
  81. <script>
  82. $(function(){
  83. $('#plate_form').submit(function(){
  84. ds_ajaxpost('plate_form');
  85. return false;
  86. });
  87. $('.radio-label').click(function(){
  88. switch($(this).find('input[name=shipping_type]').val()){
  89. case '1':
  90. $('.express_id').show()
  91. $('.shipping_code').hide()
  92. break
  93. case '2':
  94. $('.express_id').show()
  95. $('.shipping_code').show()
  96. break
  97. case '3':
  98. $('.express_id').hide()
  99. $('.shipping_code').hide()
  100. break
  101. }
  102. })
  103. });
  104. </script>