mgdiscount_store.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. {if isset($isPlatformStore) || config('ds_config.mgdiscount_price')==0}
  4. {else /}
  5. {notempty name="current_mgdiscount_quota"}
  6. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionmgdiscount/mgdiscount_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.set_renewal}</a>
  7. {else }
  8. <a class="dssc-btn dssc-btn-acidblue" href="{:url('Sellerpromotionmgdiscount/mgdiscount_quota_add')}" title=""><i class="iconfont">&#xe6a1;</i>{$Think.lang.mgdiscount_quota_add}</a>
  9. {/notempty}
  10. {/if}
  11. {/block}
  12. {block name="seller_main"}
  13. {if isset($isPlatformStore) || config('ds_config.mgdiscount_price')==0}
  14. <div class="alert alert-block mt10">
  15. <ul>
  16. <li>1、{$Think.lang.mgdiscount_explain2}</li>
  17. <li>2、{$Think.lang.mgdiscount_explain3}</li>
  18. </ul>
  19. </div>
  20. {else }
  21. <div class="alert alert-block mt10">
  22. {notempty name="current_mgdiscount_quota"}
  23. <strong>{$Think.lang.set_expiration_time}{$Think.lang.ds_colon}</strong><strong style="color:#F00;">{$current_mgdiscount_quota.mgdiscountquota_endtime|date="Y-m-d H:i:s"}</strong>
  24. {else /}
  25. <strong>{$Think.lang.please_buy_package_first}</strong>
  26. {/notempty}
  27. <ul>
  28. <li>1、{$Think.lang.mgdiscount_explain1}</li>
  29. <li>2、{$Think.lang.mgdiscount_explain2}</li>
  30. <li>3、{$Think.lang.mgdiscount_explain3}</li>
  31. <li>4、<strong style="color: red">{$Think.lang.deduction_settlement_payment_days}</strong>。</li>
  32. </ul>
  33. </div>
  34. {/if}
  35. <div class="dssc-form-default">
  36. <form id="add_form" action="" method="post" enctype="multipart/form-data">
  37. <dl>
  38. <dt><i class="required">*</i>{$Think.lang.whether_open_membership_discount}</dt>
  39. <dd>
  40. <input type="radio" name="store_mgdiscount_state" value="0" {if $store.store_mgdiscount_state==0}checked{/if}/>
  41. <label>{$Think.lang.ds_no}</label>
  42. <input type="radio" name="store_mgdiscount_state" value="1" {if $store.store_mgdiscount_state==1}checked{/if}/>
  43. <label>{$Think.lang.ds_yes}</label>
  44. </dd>
  45. </dl>
  46. {foreach name="mgdiscount_store_arr" item="v" key="k" }
  47. <dl>
  48. <dt><i class="required">*</i>{$v.level_name}</dt>
  49. <dd>
  50. <input class="w60 text" name="mgdiscount_store[{$k}][level_discount]" type="text" value="{$v.level_discount|default=''}" maxlength="30" />
  51. <span>{$Think.lang.ds_xianshi_flag}</span>
  52. <p class="hint">{$Think.lang.setting_indicates_no_discount}</p>
  53. </dd>
  54. </dl>
  55. {/foreach}
  56. <div class="bottom">
  57. <input type="submit" class="submit" value="{$Think.lang.ds_submit}">
  58. </div>
  59. </form>
  60. </div>
  61. <script>
  62. $(function () {
  63. $('#add_form').validate({
  64. errorPlacement: function (error, element) {
  65. var error_td = element.parents('dd');
  66. error_td.append(error);
  67. },
  68. submitHandler: function (form) {
  69. ds_ajaxpost('add_form', 'url', "{:url('Sellerpromotionmgdiscount/mgdiscount_store')}")
  70. },
  71. rules: {
  72. },
  73. messages: {
  74. }
  75. });
  76. });
  77. </script>
  78. {/block}