homepageL.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div class="allPage">
  3. <div class="packageL">
  4. <topPage :CocoFlowList="CocoFlowList" ref="topPageRef"></topPage>
  5. <div style="height: 30px;width: 100%;"></div>
  6. <botPage :hotApp="hotApp" ref="botPageRef"></botPage>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. import topPage from '../components/topPage'
  12. import botPage from '../components/botPage'
  13. import { mapGetters } from 'vuex';
  14. import { API_CONFIG } from "@/common/apiConfig";
  15. export default {
  16. computed: {
  17. ...mapGetters(['userinfo']),
  18. },
  19. components:{
  20. topPage,
  21. botPage
  22. },
  23. data() {
  24. return {
  25. CocoFlowList:[],
  26. hotApp:[]
  27. }
  28. },
  29. methods: {
  30. getData(){
  31. let params = [
  32. {
  33. functionName: API_CONFIG.ajax_allApp.functionName, // 调用存储过程的名称
  34. uid: this.userinfo.userid, //组织id
  35. cn: this.userinfo.schoolArea ? this.userinfo.schoolArea : this.userinfo.orgArea, //学校id
  36. },
  37. ];
  38. // 发起请求
  39. this.$ajax
  40. .post(API_CONFIG.baseUrl, params)
  41. .then((res) => {
  42. console.log(res);
  43. let data = res.data
  44. this.CocoFlowList = data[0]
  45. this.hotApp = [data[1],data[2],data[3],data[4],]
  46. })
  47. .catch((err) => {
  48. console.error("请求失败,错误信息:", err);
  49. });
  50. }
  51. },
  52. }
  53. </script>
  54. <style scoped>
  55. .allPage{
  56. width: 100%;
  57. justify-content: center;
  58. height: 100%;
  59. overflow: auto;
  60. }
  61. .packageL{
  62. padding: 24px;
  63. box-sizing: border-box;
  64. margin: auto;
  65. max-width: 1280px;
  66. }
  67. /* 整个滚动条轨道 */
  68. ::-webkit-scrollbar {
  69. width: 10px; /* 垂直滚动条宽度 */
  70. height: 10px; /* 水平滚动条高度 */
  71. }
  72. /* 滚动条轨道背景 */
  73. ::-webkit-scrollbar-track {
  74. background: #f1f1f1;
  75. border-radius: 5px;
  76. }
  77. /* 滚动条滑块 */
  78. ::-webkit-scrollbar-thumb {
  79. background: #888;
  80. border-radius: 5px;
  81. }
  82. /* 鼠标悬停时的滑块 */
  83. ::-webkit-scrollbar-thumb:hover {
  84. background: #555;
  85. }
  86. </style>