index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. dscs-table-handle{extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.promotion_pintuan_price')==0}
  4. <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionpintuan/pintuan_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.pintuan_add}</a>
  5. {else /}
  6. {notempty name="current_pintuan_quota"}
  7. <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionpintuan/pintuan_add')}"><i class="iconfont">&#xe6db;</i>{$Think.lang.pintuan_add}</a>
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionpintuan/pintuan_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('Sellerpromotionpintuan/pintuan_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_pintuan_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_pintuan_quota"}
  25. <strong>{$Think.lang.overdue_package}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_pintuan_quota.pintuanquota_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.pintuan_explain1}</li>
  31. <li>{$Think.lang.pintuan_explain2}</li>
  32. <li>3、<strong style="color: red">{$Think.lang.period_settlement_deduct}</strong>。</li>
  33. </ul>
  34. </div>
  35. {/if}
  36. <form method="get">
  37. <table class="search-form">
  38. <tr>
  39. <td>&nbsp;</td>
  40. <th>{$Think.lang.ds_state}</th>
  41. <td class="w100"><select name="state">
  42. {notempty name="pintuan_state_array"}
  43. <option value="">{$Think.lang.ds_please_choose}...</option>
  44. {foreach name="pintuan_state_array" item="val" key="key"}
  45. <option value="{$key}" {if condition="$Request.get.state != '' && $Request.get.state eq $key"}selected{/if}>{$val}</option>
  46. {/foreach}
  47. {/notempty}
  48. </select></td>
  49. <th class="w110">{$Think.lang.pintuan_name}</th>
  50. <td class="w160"><input type="text" class="text w150" name="pintuan_name" value="{$Request.get.pintuan_name}"/></td>
  51. <td class="w70 tc">
  52. <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
  53. </td>
  54. </tr>
  55. </table>
  56. </form>
  57. <table class="dssc-default-table">
  58. <thead>
  59. <tr>
  60. <th class="w300">{$Think.lang.pintuan_name}</th>
  61. <th class="w100">{$Think.lang.pintuan_state}</th>
  62. <th class="w100">{$Think.lang.pintuan_count}</th>
  63. <th class="w100">{$Think.lang.pintuan_ok_count}</th>
  64. <th class="w150">{$Think.lang.pintuan_starttime}</th>
  65. <th class="w150">{$Think.lang.pintuan_end_time}</th>
  66. <th class="w100">{$Think.lang.pintuan_limit_number}</th>
  67. <th class="w200">{$Think.lang.ds_handle}</th>
  68. </tr>
  69. </thead>
  70. <tbody id="pintuan_list">
  71. {notempty name="pintuan_list"}
  72. {foreach name="pintuan_list" item="val"}
  73. <tr class="bd-line">
  74. <td><a href="{$Think.config.ds_config.h5_site_url}/home/goodsdetail?goods_id={$val.pintuan_goods_id}" target="_blank">{$val.pintuan_name}</a></td>
  75. <td>{$val.pintuan_state_text}</td>
  76. <td>{$val.pintuan_count}</td>
  77. <td>{$val.pintuan_ok_count}</td>
  78. <td class="goods-time">{$val.pintuan_starttime|date="Y-m-d H:i"}</td>
  79. <td class="goods-time">{$val.pintuan_end_time|date="Y-m-d H:i"}</td>
  80. <td>{$val.pintuan_limit_number}</td>
  81. <td class="dscs-table-handle tc">
  82. {if $val.editable}
  83. <span>
  84. <a href="{:url('Sellerpromotionpintuan/pintuan_edit',['pintuan_id'=>$val.pintuan_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('Sellerpromotionpintuan/pintuan_manage',['pintuan_id'=>$val.pintuan_id])}"
  92. class="btn-green">
  93. <i class="iconfont">&#xe734;</i>
  94. <p>{$Think.lang.ds_manage_pintuan}</p>
  95. </a>
  96. </span>
  97. {if $val.editable}
  98. <span>
  99. <a href="javascript:;" dstype="btn_end_pintuan" data-pintuan-id={$val.pintuan_id} class="btn-red">
  100. <i class="iconfont">&#xe725;</i>
  101. <p>{$Think.lang.ds_end_pintuan}</p>
  102. </a>
  103. </span>
  104. {/if}
  105. </td>
  106. </tr>
  107. {/foreach}
  108. {else /}
  109. <tr id="pintuan_list_norecord">
  110. <td class="norecord" colspan="20">
  111. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  112. </div>
  113. </td>
  114. </tr>
  115. {/notempty}
  116. </tbody>
  117. <tfoot>
  118. {notempty name="pintuan_list"}
  119. <tr>
  120. <td colspan="20">
  121. <div class="pagination">{$show_page|raw}</div>
  122. </td>
  123. </tr>
  124. {/notempty}
  125. </tfoot>
  126. </table>
  127. <form id="submit_form" action="" method="post">
  128. <input type="hidden" id="pintuan_id" name="pintuan_id" value="">
  129. </form>
  130. <script type="text/javascript">
  131. $(document).ready(function () {
  132. $('[dstype="btn_end_pintuan"]').on('click', function () {
  133. var action = "{:url('Sellerpromotionpintuan/pintuan_end')}";
  134. var pintuan_id = $(this).attr('data-pintuan-id');
  135. layer.confirm('{$Think.lang.ds_ensure_end}', {
  136. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  137. title: false,
  138. }, function () {
  139. $('#submit_form').attr('action', action);
  140. $('#pintuan_id').val(pintuan_id);
  141. ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionpintuan/index')}");
  142. });
  143. });
  144. });
  145. </script>
  146. {/block}