123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- {extend name="default/base/base_seller" /}
- {block name="seller_btn"}
- {if isset($isPlatformStore) || config('ds_config.promotion_bargain_price')==0}
- <a class="dssc-btn dssc-btn-green" href="{:url('Sellerpromotionbargain/bargain_add')}"><i class="iconfont"></i>{$Think.lang.bargain_add}</a>
- {else /}
- {notempty name="current_bargain_quota"}
- <a class="dssc-btn dssc-btn-green" style="right:100px" href="{:url('Sellerpromotionbargain/bargain_add')}"><i class="iconfont"></i>{$Think.lang.bargain_add}</a>
- <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionbargain/bargain_quota_add')}" title=""><i class="iconfont"></i>{$Think.lang.package_renewal}</a>
- {else }
- <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionbargain/bargain_quota_add')}" title=""><i class="iconfont"></i>{$Think.lang.purchase_package}</a>
- {/notempty}
- {/if}
- {/block}
- {block name="seller_main"}
- {if isset($isPlatformStore) || config('ds_config.promotion_bargain_price')==0}
- <div class="alert alert-block mt10">
- <ul>
- <li>{$Think.lang.click_add_activity_button}</li>
- <li>{$Think.lang.click_delete_button}</li>
- </ul>
- </div>
- {else }
- <div class="alert alert-block mt10">
- {notempty name="current_bargain_quota"}
- <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>
- {else /}
- <strong>{$Think.lang.please_package_first}</strong>
- {/notempty}
- <ul>
- <li>{$Think.lang.bargain_explain1}</li>
- <li>{$Think.lang.bargain_explain2}</li>
- <li>{$Think.lang.bargain_explain3}</li>
- <li>4、<strong style="color: red">{$Think.lang.period_settlement_deduct}</strong>。</li>
- </ul>
- </div>
- {/if}
- <form method="get">
- <table class="search-form">
- <tr>
- <td> </td>
- <th>{$Think.lang.ds_state}</th>
- <td class="w100"><select name="state">
- <option value="">{$Think.lang.ds_please_choose}</option>
- {notempty name="bargain_state_array"}
- {foreach name="bargain_state_array" item="val"}
- <option value="{$key}" {if $Request.get.state!='' && $key==$Request.get.state}selected{/if}>{$val}</option>
- {/foreach}
- {/notempty}
- </select></td>
- <th class="w110">{$Think.lang.bargain_name}</th>
- <td class="w160"><input type="text" class="text w150" name="bargain_name" value="{$Request.get.bargain_name}"/></td>
- <td class="w70 tc">
- <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
- </td>
- </tr>
- </table>
- </form>
- <table class="dssc-default-table">
- <thead>
- <tr>
- <th class="">{$Think.lang.bargain_name}</th>
- <th class="">{$Think.lang.bargain_goods}</th>
- <th class="w100">{$Think.lang.bargain_state}</th>
- <th class="w100">{$Think.lang.sellerpromotionbargain_floorprice}</th>
- <th class="w100">{$Think.lang.sellerpromotionbargain_limit}</th>
- <th class="w100">{$Think.lang.sellerpromotionbargain_time}</th>
- <th class="w150">{$Think.lang.sellerpromotionbargain_total}</th>
- <th class="w150">{$Think.lang.sellerpromotionbargain_max}</th>
- <th class="w200">{$Think.lang.bargain_time}</th>
- <th class="w100">{$Think.lang.ds_handle}</th>
- </tr>
- </thead>
- <tbody id="bargain_list">
- {notempty name="bargain_list"}
- {foreach name="bargain_list" item="val"}
- <tr class="bd-line">
- <td>{$val.bargain_name}</td>
- <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>
- <td>{$val.bargain_state_text}</td>
- <td>{$val.bargain_floorprice}</td>
- <td>{$val.bargain_limit}</td>
- <td>{$val.bargain_time}{$Think.lang.hour}</td>
- <td>{$val.bargain_total}</td>
- <td>{$val.bargain_max}</td>
- <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>
- <td class="dscs-table-handle tc">
- {if $val.editable}
- <span>
- <a href="{:url('Sellerpromotionbargain/bargain_edit',['bargain_id'=>$val.bargain_id])}" class="btn-blue">
- <i class="iconfont"></i>
- <p>{$Think.lang.ds_edit}</p>
- </a>
- </span>
- {/if}
- {if in_array($val.bargain_state,array(2,3))}
- <span>
- <a href="{:url('Sellerpromotionbargain/bargain_order',['bargain_id'=>$val.bargain_id])}"
- class="btn-green">
- <i class="iconfont"></i>
- <p>{$Think.lang.ds_manage_bargain}</p>
- </a>
- </span>
- {/if}
- {if $val.editable}
- <span>
- <a href="javascript:;" dstype="btn_end_bargain" data-bargain-id={$val.bargain_id} class="btn-red">
- <i class="iconfont"></i>
- <p>{$Think.lang.ds_end_bargain}</p>
- </a>
- </span>
- {/if}
- </td>
- </tr>
- {/foreach}
- {else /}
- <tr id="bargain_list_norecord">
- <td class="norecord" colspan="7">
- <div class="warning-option"><i class="iconfont"></i><span>{$Think.lang.no_record}</span>
- </div>
- </td>
- </tr>
- {/notempty}
- </tbody>
- <tfoot>
- {notempty name="bargain_list"}
- <tr>
- <td colspan="7">
- <div class="pagination">{$show_page|raw}</div>
- </td>
- </tr>
- {/notempty}
- </tfoot>
- </table>
- <form id="submit_form" action="" method="post">
- <input type="hidden" id="bargain_id" name="bargain_id" value="">
- </form>
- <script type="text/javascript">
- $(document).ready(function () {
- $('[dstype="btn_end_bargain"]').on('click', function () {
- var action = "{:url('Sellerpromotionbargain/bargain_end')}";
- var bargain_id = $(this).attr('data-bargain-id');
- layer.confirm('{$Think.lang.ds_ensure_end}', {
- btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
- title: false,
- }, function () {
- $('#submit_form').attr('action', action);
- $('#bargain_id').val(bargain_id);
- ds_ajaxpost('submit_form', 'url', "{:url('Sellerpromotionbargain/index')}");
- });
- });
- });
- </script>
- {/block}
|