index.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {extend name="admin@main"}
  2. {block name="content"}
  3. <div class="layui-tab layui-tab-card think-bg-white">
  4. <ul class="layui-tab-title notselect">
  5. <li data-type="store-config-type-sms1">配置信息</li>
  6. <li data-type="store-config-type-sms2">用户协议</li>
  7. <li data-type="store-config-type-sms2">关于我们</li>
  8. <li data-type="store-config-type-sms2">隐私政策</li>
  9. <li data-type="store-config-type-sms2">代理商须知</li>
  10. <li data-type="store-config-type-sms2">分销条款</li>
  11. <li data-type="store-config-type-sms2">退款退货说明</li>
  12. <li data-type="store-config-type-sms2">会员权益</li>
  13. <li data-type="store-config-type-sms2">积分获取方式</li>
  14. <li data-type="store-config-type-sms2">签到规则</li>
  15. <li data-type="store-config-type-sms2">注销须知</li>
  16. <li data-type="store-config-type-sms2">客服设置</li>
  17. </ul>
  18. <div class="layui-tab-content">
  19. <div class="layui-tab-item">{include file='official/platform-set'}</div>
  20. <div class="layui-tab-item">{include file='official/index-agreement'}</div>
  21. <div class="layui-tab-item">{include file='official/index-about-us'}</div>
  22. <div class="layui-tab-item">{include file='official/index-privacy'}</div>
  23. <div class="layui-tab-item">{include file='official/index-agent-notice'}</div>
  24. <div class="layui-tab-item">{include file='official/index-partner-item'}</div>
  25. <div class="layui-tab-item">{include file='official/index-refund-desc'}</div>
  26. <div class="layui-tab-item">{include file='official/index-user-equity'}</div>
  27. <div class="layui-tab-item">{include file='official/index-integral-channel'}</div>
  28. <div class="layui-tab-item">{include file='official/index-sign-rule'}</div>
  29. <div class="layui-tab-item">{include file='official/index-write-off'}</div>
  30. <div class="layui-tab-item">{include file='official/index-customer-service'}</div>
  31. </div>
  32. </div>
  33. <script>
  34. (function (storage) {
  35. (function (type, $default, $checked) {
  36. $default = $('.layui-tab ul.layui-tab-title li:first');
  37. $checked = $('.layui-tab ul.layui-tab-title li[data-type="' + type + '"]');
  38. ($checked.length > 0 ? $checked : $default).trigger('click');
  39. })(layui.data(storage)['type'] || '');
  40. $('.layui-tab ul.layui-tab-title li[data-type]').on('click', function () {
  41. layui.data(storage, {key: 'type', value: this.getAttribute('data-type')});
  42. });
  43. })('store-config-type');
  44. </script>
  45. {/block}