index.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_xianshi_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionxianshi/xianshi_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.xianshi_add}</a>
  5. {else /}
  6. {notempty name="current_xianshi_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionxianshi/xianshi_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.xianshi_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionxianshi/xianshi_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.set_renewal}</a>
  9. {else }
  10. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionxianshi/xianshi_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.xianshi_quota_add}</a>
  11. {/notempty}
  12. {/if}
  13. {/block}
  14. {block name="seller_main"}
  15. {if isset($isPlatformStore) || config('ds_config.promotion_xianshi_price')==0}
  16. <div class="alert alert-block mt10">
  17. <ul>
  18. <li>{$Think.lang.information_discount_activities1}</li>
  19. <li>{$Think.lang.information_discount_activities2}</li>
  20. </ul>
  21. </div>
  22. {else }
  23. <div class="alert alert-block mt10">
  24. {notempty name="current_xianshi_quota"}
  25. <strong>{$Think.lang.overdue_set_meal}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_xianshi_quota.xianshiquota_endtime|date="Y-m-d H:i:s"}</strong>
  26. {else /}
  27. <strong>{$Think.lang.please_buy_set_meal}</strong>
  28. {/notempty}
  29. <ul>
  30. <li>{$Think.lang.xianshi_explain1}</li>
  31. <li>{$Think.lang.xianshi_explain2}</li>
  32. <li>{$Think.lang.xianshi_explain3}</li>
  33. <li>4、<strong style="color: red">{$Think.lang.deduction_settlement_payment_days}</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. {notempty name="xianshi_state_array"}
  44. {foreach name="xianshi_state_array" item="val"}
  45. <option value="{$key}" {if $key==$Request.get.state}selected{/if}>{$val}</option>
  46. {/foreach}
  47. {/notempty}
  48. </select></td>
  49. <th class="w110">{$Think.lang.xianshi_name}</th>
  50. <td class="w160"><input type="text" class="text w150" name="xianshi_name" value="{$Request.get.xianshi_name}"/></td>
  51. <td class="w70 tc"><input type="submit" class="submit" value="{$Think.lang.ds_search}"/></td>
  52. </tr>
  53. </table>
  54. </form>
  55. <table class="dssc-default-table">
  56. <thead>
  57. <tr>
  58. <th class="w30"></th>
  59. <th >{$Think.lang.xianshi_name}</th>
  60. <th class="w200">{$Think.lang.start_time}</th>
  61. <th class="w200">{$Think.lang.end_time}</th>
  62. <th class="w150">{$Think.lang.buy_lower_limit}</th>
  63. <th class="w150">{$Think.lang.ds_state}</th>
  64. <th class="w250">{$Think.lang.ds_handle}</th>
  65. </tr>
  66. </thead>
  67. <tbody id="xianshi_list">
  68. {notempty name="xianshi_list"}
  69. {foreach name="xianshi_list" item="val"}
  70. <tr class="bd-line">
  71. <td></td>
  72. <td >
  73. <dl>
  74. <dt class="tc">{$val.xianshi_name}</dt>
  75. </dl>
  76. </td>
  77. <td class="goods-time">{$val.xianshi_starttime|date="Y-m-d H:i"}</td>
  78. <td class="goods-time">{$val.xianshi_end_time|date="Y-m-d H:i"}</td>
  79. <td>{$val.xianshi_lower_limit}</td>
  80. <td>{$val.xianshi_state_text}</td>
  81. <td class="dscs-table-handle tc">
  82. {if $val.editable}
  83. <span>
  84. <a href="{:url('Sellerpromotionxianshi/xianshi_edit',['xianshi_id'=>$val.xianshi_id])}" class="btn-blue">
  85. <i class="iconfont">&#xe731;</i>
  86. <p>{$Think.lang.ds_edit}</p>
  87. </a>
  88. </span>
  89. {/if}
  90. <span>
  91. <a href="{:url('Sellerpromotionxianshi/xianshi_manage',['xianshi_id'=>$val.xianshi_id])}"
  92. class="btn-green">
  93. <i class="iconfont">&#xe734;</i>
  94. <p>{$Think.lang.ds_manage}</p>
  95. </a>
  96. </span>
  97. <span>
  98. <a href="javascript:;" dstype="btn_del_xianshi" data-xianshi-id={$val.xianshi_id} class="btn-red">
  99. <i class="iconfont">&#xe725;</i>
  100. <p>{$Think.lang.ds_delete}</p>
  101. </a>
  102. </span>
  103. </td>
  104. </tr>
  105. {/foreach}
  106. {else /}
  107. <tr id="xianshi_list_norecord">
  108. <td class="norecord" colspan="20">
  109. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  110. </div>
  111. </td>
  112. </tr>
  113. {/notempty}
  114. </tbody>
  115. <tfoot>
  116. {notempty name="xianshi_list"}
  117. <tr>
  118. <td colspan="20">
  119. <div class="pagination">{$show_page|raw}</div>
  120. </td>
  121. </tr>
  122. {/notempty}
  123. </tfoot>
  124. </table>
  125. <form id="submit_form" action="" method="post">
  126. <input type="hidden" id="xianshi_id" name="xianshi_id" value="">
  127. </form>
  128. <script type="text/javascript">
  129. $(document).ready(function () {
  130. $('[dstype="btn_del_xianshi"]').on('click', function () {
  131. var action = "{:url('Sellerpromotionxianshi/xianshi_del')}";
  132. var xianshi_id = $(this).attr('data-xianshi-id');
  133. layer.confirm('{$Think.lang.ds_ensure_del}', {
  134. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  135. title: false,
  136. }, function () {
  137. $('#submit_form').attr('action', action);
  138. $('#xianshi_id').val(xianshi_id);
  139. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionxianshi/index')}")
  140. });
  141. });
  142. });
  143. </script>
  144. {/block}