index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!-- 分销中心 -->
  2. <template>
  3. <s-layout navbar="inner" class="index-wrap" title="分销中心" :bgStyle="bgStyle" :onShareAppMessage="shareInfo">
  4. <!-- 分销商信息 -->
  5. <commission-info />
  6. <!-- 账户信息 -->
  7. <account-info />
  8. <!-- 菜单栏 -->
  9. <commission-menu />
  10. <!-- 分销记录 -->
  11. <commission-log />
  12. <!-- 权限弹窗 -->
  13. <commission-auth />
  14. </s-layout>
  15. </template>
  16. <script setup>
  17. import { computed } from 'vue';
  18. import commissionInfo from './components/commission-info.vue';
  19. import accountInfo from './components/account-info.vue';
  20. import commissionLog from './components/commission-log.vue';
  21. import commissionMenu from './components/commission-menu.vue';
  22. import commissionAuth from './components/commission-auth.vue';
  23. import sheep from '@/sheep';
  24. const shareInfo = computed(() => {
  25. return sheep.$platform.share.getShareInfo({
  26. params: {
  27. page: '6',
  28. },
  29. }, {
  30. type: 'user',
  31. });
  32. });
  33. const bgStyle = {
  34. color: '#F7D598',
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. :deep(.page-main) {
  39. background-size: 100% 100% !important;
  40. }
  41. </style>