pointcart_step1.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {include file="default/base/mall_top" /}
  2. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
  3. <div class="dsc-header">
  4. <div class="logo">
  5. <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
  6. </div>
  7. <ul class="dsc-flow dsc-point-flow">
  8. <li class=""><i class="iconfont">&#xe69a;</i>
  9. <p>{$Think.lang.pointcart_ensure_order}</p>
  10. <sub></sub>
  11. <div class="hr"></div>
  12. </li>
  13. <li class="current"><i class="iconfont">&#xe731;</i>
  14. <p>{$Think.lang.pointcart_ensure_info}</p>
  15. <sub></sub>
  16. <div class="hr"></div>
  17. </li>
  18. <li class=""><i class="iconfont">&#xe67e;</i>
  19. <p>{$Think.lang.pointcart_exchange_finish}</p>
  20. <sub></sub>
  21. <div class="hr"></div>
  22. </li>
  23. </ul>
  24. </div>
  25. <div class="dsc-line"></div>
  26. <div class="dsc-main">
  27. <div class="dsc-title">
  28. <h3>{$Think.lang.pointcart_ensure_info}</h3>
  29. <h5>{$Think.lang.information_consignee1}</h5>
  30. </div>
  31. <form method="post" id="porder_form" name="porder_form" action="{:url('Pointcart/step2')}">
  32. <div class="dsc-receipt-info">
  33. <div class="dsc-receipt-info-title">
  34. <h3>{$Think.lang.pointcart_step1_receiver_address}<a href="{:url('Memberaddress/index')}" target="_blank">[{$Think.lang.ds_manage}]</a></h3>
  35. </div>
  36. <!-- 已经存在的收获地址start -->
  37. <div class="dsc-candidate-items">
  38. {notempty name="address_list"}
  39. {foreach name="address_list" item="val"}
  40. <ul class="receive_add address_item">
  41. <li style="margin-top:0px;">
  42. <label for="address_{$val.address_id}">
  43. <input id="address_{$val.address_id}" type="radio" name="address_options" value="{$val.address_id}" {if $val.address_is_default == '1'}checked{/if}/>
  44. &nbsp;&nbsp;{$val.area_info}&nbsp;&nbsp;{$val.address_detail}&nbsp;&nbsp; {$val.address_realname}{$Think.lang.cart_step1_receiver_shou}&nbsp;&nbsp;
  45. {if $val.address_mob_phone}{$val.address_mob_phone}{else /}{$val.address_tel_phone}{/if}
  46. </label>
  47. </li>
  48. </ul>
  49. {/foreach}
  50. {else /}
  51. <div style="color:#d93600; height:25px; padding-top:3px;">{$Think.lang.information_consignee2}</div>
  52. {/notempty}
  53. </div>
  54. <!-- 已经存在的收获地址end -->
  55. </div>
  56. <!-- 留言start -->
  57. <div class="dsc-receipt-info">
  58. <div class="dsc-receipt-info-title">
  59. <h3>{$Think.lang.pointcart_step1_chooseprod}</h3>
  60. </div>
  61. <!-- 已经选择礼品start -->
  62. <table class="dsc-table-style">
  63. <thead>
  64. <tr>
  65. <th class="w20"></th>
  66. <th class="tl" colspan="2">{$Think.lang.pointcart_step1_goods_info}</th>
  67. <th class="w120">{$Think.lang.pointcart_step1_goods_num}</th>
  68. <th class="w120">{$Think.lang.pointcart_step1_goods_point}</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. {notempty name="pointprod_arr.pointprod_list"}
  73. {foreach name="pointprod_arr.pointprod_list" item="val"}
  74. <tr class="shop-list ">
  75. <td></td>
  76. <td class="w60">
  77. <a href="{:url('Pointprod/pinfo',['id'=>$val.pgoods_id])}" class="dsc-goods-thumb" target="_blank">
  78. <img src="{$val.pgoods_image_small}" alt="{$val.pgoods_name}"/>
  79. </a>
  80. </td>
  81. <td class="tl">
  82. <dl class="dsc-goods-info">
  83. <dt>
  84. <a target="_blank" href="{:url('Pointprod/pinfo',['id'=>$val.pgoods_id])}">{$val.pgoods_name}</a>
  85. </dt>
  86. </dl>
  87. </td>
  88. <td>{$val.quantity}</td>
  89. <td>{$val.onepoints}{$Think.lang.points_unit}</td>
  90. </tr>
  91. {/foreach}
  92. {/notempty}
  93. <tr>
  94. <td></td>
  95. <td colspan="20" class="tl">
  96. <label>{$Think.lang.pointcart_step1_message}{$Think.lang.ds_colon}
  97. <input type="text" class="w400 text" onclick="pcart_messageclear(this);" value="{$Think.lang.pointcart_step1_message_advice}" />
  98. </label></td>
  99. </tr>
  100. </tbody>
  101. <tfoot>
  102. <tr>
  103. <td colspan="20">
  104. <div class="dsc-all-account">{$Think.lang.pointcart_cart_allpoints}{$Think.lang.ds_colon}
  105. <em>{$pointprod_arr.pgoods_pointall}</em>{$Think.lang.points_unit}</div>
  106. </td>
  107. </tr>
  108. </tfoot>
  109. </table>
  110. <!-- 已经选择礼品end -->
  111. </div>
  112. <div class="dsc-bottom">
  113. <a href="{:url('Pointcart')}" class="dsc-btn">{$Think.lang.pointcart_step1_return_list}</a>
  114. <a id="submitpointorder" href="javascript:void(0);" class="dsc-btn dsc-btn-acidblue fr">{$Think.lang.pointcart_step1_submit}</a>
  115. </div>
  116. </form>
  117. </div>
  118. <script type="text/javascript">
  119. function pcart_messageclear(tt){
  120. if (!tt.name)
  121. {
  122. tt.value = '';
  123. tt.name = 'pcart_message';
  124. }
  125. }
  126. $("#submitpointorder").click(function(){
  127. var chooseaddress = parseInt($("input[name='address_options']:checked").val());
  128. if(!chooseaddress || chooseaddress <= 0){
  129. layer.alert('{$Think.lang.select_consignee_address}');
  130. } else {
  131. $('#porder_form').submit();
  132. }
  133. });
  134. </script>
  135. {include file="default/base/mall_footer" /}