index.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_bargain_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionbargain/bargain_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.bargain_add}</a>
  5. {else /}
  6. {notempty name="current_bargain_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionbargain/bargain_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.bargain_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionbargain/bargain_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('Sellerpromotionbargain/bargain_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_bargain_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_bargain_quota"}
  25. <strong>{$Think.lang.overdue_package}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_bargain_quota.bargainquota_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.bargain_explain1}</li>
  31. <li>{$Think.lang.bargain_explain2}</li>
  32. <li>{$Think.lang.bargain_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="bargain_state_array"}
  45. {foreach name="bargain_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.bargain_name}</th>
  51. <td class="w160"><input type="text" class="text w150" name="bargain_name" value="{$Request.get.bargain_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.bargain_name}</th>
  62. <th class="">{$Think.lang.bargain_goods}</th>
  63. <th class="w100">{$Think.lang.bargain_state}</th>
  64. <th class="w100">{$Think.lang.sellerpromotionbargain_floorprice}</th>
  65. <th class="w100">{$Think.lang.sellerpromotionbargain_limit}</th>
  66. <th class="w100">{$Think.lang.sellerpromotionbargain_time}</th>
  67. <th class="w150">{$Think.lang.sellerpromotionbargain_total}</th>
  68. <th class="w150">{$Think.lang.sellerpromotionbargain_max}</th>
  69. <th class="w200">{$Think.lang.bargain_time}</th>
  70. <th class="w100">{$Think.lang.ds_handle}</th>
  71. </tr>
  72. </thead>
  73. <tbody id="bargain_list">
  74. {notempty name="bargain_list"}
  75. {foreach name="bargain_list" item="val"}
  76. <tr class="bd-line">
  77. <td>{$val.bargain_name}</td>
  78. <td><a href="{$Think.config.ds_config.h5_site_url}/home/goodsdetail?goods_id={$val.bargain_goods_id}&bargain_id={$val.bargain_id}" target="_blank">{$val.bargain_goods_name}</a></td>
  79. <td>{$val.bargain_state_text}</td>
  80. <td>{$val.bargain_floorprice}</td>
  81. <td>{$val.bargain_limit}</td>
  82. <td>{$val.bargain_time}{$Think.lang.hour}</td>
  83. <td>{$val.bargain_total}</td>
  84. <td>{$val.bargain_max}</td>
  85. <td class="goods-time">{$val.bargain_begintime|date="Y-m-d H:i"}<br>~<br>{$val.bargain_endtime|date="Y-m-d H:i"}</td>
  86. <td class="dscs-table-handle tc">
  87. {if $val.editable}
  88. <span>
  89. <a href="{:url('Sellerpromotionbargain/bargain_edit',['bargain_id'=>$val.bargain_id])}" class="btn-blue">
  90. <i class="iconfont">&#xe731;</i>
  91. <p>{$Think.lang.ds_edit}</p>
  92. </a>
  93. </span>
  94. {/if}
  95. {if in_array($val.bargain_state,array(2,3))}
  96. <span>
  97. <a href="{:url('Sellerpromotionbargain/bargain_order',['bargain_id'=>$val.bargain_id])}"
  98. class="btn-green">
  99. <i class="iconfont">&#xe734;</i>
  100. <p>{$Think.lang.ds_manage_bargain}</p>
  101. </a>
  102. </span>
  103. {/if}
  104. {if $val.editable}
  105. <span>
  106. <a href="javascript:;" dstype="btn_end_bargain" data-bargain-id={$val.bargain_id} class="btn-red">
  107. <i class="iconfont">&#xe725;</i>
  108. <p>{$Think.lang.ds_end_bargain}</p>
  109. </a>
  110. </span>
  111. {/if}
  112. </td>
  113. </tr>
  114. {/foreach}
  115. {else /}
  116. <tr id="bargain_list_norecord">
  117. <td class="norecord" colspan="7">
  118. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  119. </div>
  120. </td>
  121. </tr>
  122. {/notempty}
  123. </tbody>
  124. <tfoot>
  125. {notempty name="bargain_list"}
  126. <tr>
  127. <td colspan="7">
  128. <div class="pagination">{$show_page|raw}</div>
  129. </td>
  130. </tr>
  131. {/notempty}
  132. </tfoot>
  133. </table>
  134. <form id="submit_form" action="" method="post">
  135. <input type="hidden" id="bargain_id" name="bargain_id" value="">
  136. </form>
  137. <script type="text/javascript">
  138. $(document).ready(function () {
  139. $('[dstype="btn_end_bargain"]').on('click', function () {
  140. var action = "{:url('Sellerpromotionbargain/bargain_end')}";
  141. var bargain_id = $(this).attr('data-bargain-id');
  142. layer.confirm('{$Think.lang.ds_ensure_end}', {
  143. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  144. title: false,
  145. }, function () {
  146. $('#submit_form').attr('action', action);
  147. $('#bargain_id').val(bargain_id);
  148. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionbargain/index')}");
  149. });
  150. });
  151. });
  152. </script>
  153. {/block}