index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_wholesale_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionwholesale/wholesale_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.wholesale_add}</a>
  5. {else /}
  6. {notempty name="current_wholesale_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionwholesale/wholesale_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.wholesale_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionwholesale/wholesale_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('Sellerpromotionwholesale/wholesale_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.wholesale_quota_add}</a>
  11. {/notempty}
  12. {/if}
  13. {/block}
  14. {block name="seller_main"}
  15. {if isset($isPlatformStore) || config('ds_config.promotion_wholesale_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_wholesale_quota"}
  25. <strong>{$Think.lang.overdue_set_meal}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_wholesale_quota.wholesalequota_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.wholesale_explain1}</li>
  31. <li>{$Think.lang.wholesale_explain2}</li>
  32. <li>{$Think.lang.wholesale_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="wholesale_state_array"}
  44. {foreach name="wholesale_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.wholesale_name}</th>
  50. <td class="w160"><input type="text" class="text w150" name="wholesale_name" value="{$Request.get.wholesale_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="w100"></th>
  59. <th class="tl">{$Think.lang.wholesale_name}</th>
  60. <th class="w200">{$Think.lang.start_time}</th>
  61. <th class="w200">{$Think.lang.end_time}</th>
  62. <th class="w200">{$Think.lang.ds_state}</th>
  63. <th class="w200">{$Think.lang.ds_handle}</th>
  64. </tr>
  65. </thead>
  66. <tbody id="wholesale_list">
  67. {notempty name="wholesale_list"}
  68. {foreach name="wholesale_list" item="val"}
  69. <tr class="bd-line">
  70. <td></td>
  71. <td class="tc">
  72. <dl class="goods-name">
  73. <dt>{$val.goods_name}</dt>
  74. </dl>
  75. </td>
  76. <td class="goods-time">{$val.wholesale_starttime|date="Y-m-d H:i"}</td>
  77. <td class="goods-time">{$val.wholesale_end_time|date="Y-m-d H:i"}</td>
  78. <td>{$val.wholesale_state_text}</td>
  79. <td class="dscs-table-handle tc">
  80. {if $val.editable}
  81. <span>
  82. <a href="{:url('Sellerpromotionwholesale/wholesale_edit',['wholesale_id'=>$val.wholesale_id])}" class="btn-blue">
  83. <i class="iconfont">&#xe731;</i>
  84. <p>{$Think.lang.ds_edit}</p>
  85. </a>
  86. </span>
  87. {/if}
  88. <span>
  89. <a href="javascript:;" dstype="btn_del_wholesale" data-wholesale-id={$val.wholesale_id} class="btn-red">
  90. <i class="iconfont">&#xe725;</i>
  91. <p>{$Think.lang.ds_delete}</p>
  92. </a>
  93. </span>
  94. </td>
  95. </tr>
  96. {/foreach}
  97. {else /}
  98. <tr id="wholesale_list_norecord">
  99. <td class="norecord" colspan="20">
  100. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  101. </div>
  102. </td>
  103. </tr>
  104. {/notempty}
  105. </tbody>
  106. <tfoot>
  107. {notempty name="wholesale_list"}
  108. <tr>
  109. <td colspan="20">
  110. <div class="pagination">{$show_page|raw}</div>
  111. </td>
  112. </tr>
  113. {/notempty}
  114. </tfoot>
  115. </table>
  116. <form id="submit_form" action="" method="post">
  117. <input type="hidden" id="wholesale_id" name="wholesale_id" value="">
  118. </form>
  119. <script type="text/javascript">
  120. $(document).ready(function () {
  121. $('[dstype="btn_del_wholesale"]').on('click', function () {
  122. var action = "{:url('Sellerpromotionwholesale/wholesale_del')}";
  123. var wholesale_id = $(this).attr('data-wholesale-id');
  124. layer.confirm('{$Think.lang.ds_ensure_del}', {
  125. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  126. title: false,
  127. }, function () {
  128. $('#submit_form').attr('action', action);
  129. $('#wholesale_id').val(wholesale_id);
  130. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionwholesale/index')}")
  131. });
  132. });
  133. });
  134. </script>
  135. {/block}