index.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_presell_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionpresell/presell_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.presell_add}</a>
  5. {else /}
  6. {notempty name="current_presell_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionpresell/presell_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.presell_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionpresell/presell_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.package_renewal}</a>
  9. {else }
  10. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionpresell/presell_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.purchase_package}</a>
  11. {/notempty}
  12. {/if}
  13. {/block}
  14. {block name="seller_main"}
  15. {if isset($isPlatformStore) || config('ds_config.promotion_presell_price')==0}
  16. <div class="alert alert-block mt10">
  17. <ul>
  18. <li>{$Think.lang.click_add_activity_button}</li>
  19. <li>{$Think.lang.click_delete_button}</li>
  20. </ul>
  21. </div>
  22. {else }
  23. <div class="alert alert-block mt10">
  24. {notempty name="current_presell_quota"}
  25. <strong>{$Think.lang.overdue_package}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_presell_quota.presellquota_endtime|date="Y-m-d H:i:s"}</strong>
  26. {else /}
  27. <strong>{$Think.lang.please_package_first}</strong>
  28. {/notempty}
  29. <ul>
  30. <li>{$Think.lang.presell_explain1}</li>
  31. <li>{$Think.lang.presell_explain2}</li>
  32. <li>{$Think.lang.presell_explain3}</li>
  33. <li>4、<strong style="color: red">{$Think.lang.period_settlement_deduct}</strong>。</li>
  34. </ul>
  35. </div>
  36. {/if}
  37. <form method="get">
  38. <table class="search-form">
  39. <tr>
  40. <td>&nbsp;</td>
  41. <th>{$Think.lang.ds_state}</th>
  42. <td class="w100"><select name="state">
  43. <option value="">{$Think.lang.ds_please_choose}</option>
  44. {notempty name="presell_state_array"}
  45. {foreach name="presell_state_array" item="val"}
  46. <option value="{$key}" {if $Request.get.state!='' && $key==$Request.get.state}selected{/if}>{$val}</option>
  47. {/foreach}
  48. {/notempty}
  49. </select></td>
  50. <th class="w110">{$Think.lang.presell_goods_name}</th>
  51. <td class="w160"><input type="text" class="text w150" name="goods_name" value="{$Request.get.goods_name}"/></td>
  52. <td class="w70 tc">
  53. <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
  54. </td>
  55. </tr>
  56. </table>
  57. </form>
  58. <table class="dssc-default-table">
  59. <thead>
  60. <tr>
  61. <th class="">{$Think.lang.presell_goods}</th>
  62. <th class="w150">{$Think.lang.presell_price}</th>
  63. <th class="w150">{$Think.lang.presell_type}</th>
  64. <th class="w150">{$Think.lang.presell_state}</th>
  65. <th class="w200">{$Think.lang.presell_time}</th>
  66. <th class="w150">{$Think.lang.ds_handle}</th>
  67. </tr>
  68. </thead>
  69. <tbody id="presell_list">
  70. {notempty name="presell_list"}
  71. {foreach name="presell_list" item="val"}
  72. <tr class="bd-line">
  73. <td><a href="{:url('Goods/index',['goods_id'=>$val.goods_id])}" target="_blank">{$val.goods_name}</a></td>
  74. <td>{$val.presell_price}</td>
  75. <td>{if $val.presell_type==1}{$Think.lang.presell_type_1}{else}{$Think.lang.presell_type_2}{/if}</td>
  76. <td>{$val.presell_state_text}</td>
  77. <td class="goods-time">{$val.presell_start_time|date="Y-m-d H:i"}<br>~<br>{$val.presell_end_time|date="Y-m-d H:i"}</td>
  78. <td class="dscs-table-handle tc">
  79. {if $val.editable}
  80. <span>
  81. <a href="{:url('Sellerpromotionpresell/presell_edit',['presell_id'=>$val.presell_id])}" class="btn-blue">
  82. <i class="iconfont">&#xe731;</i>
  83. <p>{$Think.lang.ds_edit}</p>
  84. </a>
  85. </span>
  86. {/if}
  87. {if $val.editable}
  88. <span>
  89. <a href="javascript:;" dstype="btn_end_presell" data-presell-id={$val.presell_id} class="btn-red">
  90. <i class="iconfont">&#xe725;</i>
  91. <p>{$Think.lang.ds_end_presell}</p>
  92. </a>
  93. </span>
  94. {/if}
  95. </td>
  96. </tr>
  97. {/foreach}
  98. {else /}
  99. <tr id="presell_list_norecord">
  100. <td class="norecord" colspan="7">
  101. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  102. </div>
  103. </td>
  104. </tr>
  105. {/notempty}
  106. </tbody>
  107. <tfoot>
  108. {notempty name="presell_list"}
  109. <tr>
  110. <td colspan="7">
  111. <div class="pagination">{$show_page|raw}</div>
  112. </td>
  113. </tr>
  114. {/notempty}
  115. </tfoot>
  116. </table>
  117. <form id="submit_form" action="" method="post">
  118. <input type="hidden" id="presell_id" name="presell_id" value="">
  119. </form>
  120. <script type="text/javascript">
  121. $(document).ready(function () {
  122. $('[dstype="btn_end_presell"]').on('click', function () {
  123. var action = "{:url('Sellerpromotionpresell/presell_end')}";
  124. var presell_id = $(this).attr('data-presell-id');
  125. layer.confirm('{$Think.lang.ds_ensure_end}', {
  126. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  127. title: false,
  128. }, function () {
  129. $('#submit_form').attr('action', action);
  130. $('#presell_id').val(presell_id);
  131. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionpresell/index')}");
  132. });
  133. });
  134. });
  135. </script>
  136. {/block}