UserHomePage.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <div class="userhome">
  3. <!-- 头部区域 -->
  4. <AccountCenterTop/>
  5. <!-- 主体区域 -->
  6. <el-container class="userhome_main">
  7. <!-- 轮播区域 -->
  8. <el-header class="userhome_main_header">
  9. <el-carousel height="38rem">
  10. <el-carousel-item v-for="item in 3" :key="item">
  11. <img src="../../assets/images/UserHomepage/carousel.png" alt="">
  12. </el-carousel-item>
  13. </el-carousel>
  14. </el-header>
  15. <!-- 主体中心区域 -->
  16. <el-container class="userhome_main_center">
  17. <!-- 左边 -->
  18. <el-aside>
  19. <!-- 我的应用区域 -->
  20. <MyApps/>
  21. <!-- 通告区域 -->
  22. <Circular/>
  23. <!-- 最新供需 -->
  24. <LastSupply/>
  25. </el-aside>
  26. <!-- 右边 -->
  27. <el-main>
  28. <!-- 系统消息 -->
  29. <SystemNotice/>
  30. <!-- 最新聊天 -->
  31. <LastChatting/>
  32. <!-- 合作商家 -->
  33. <PartnerAgents/>
  34. <!-- 联系客服 -->
  35. <div class="contact">
  36. <div class="contact_item">
  37. <img src="../../assets/images/UserHomepage/erweima.png" alt="erweima">
  38. <span class="contact_item_type">布万家小程序</span>
  39. <p class="contact_item_des">随时随地移动应用更有效,更快捷</p>
  40. </div>
  41. <div class="contact_item">
  42. <img src="../../assets/images/UserHomepage/erweima.png" alt="erweima">
  43. <span class="contact_item_type">布万家小程序</span>
  44. <p class="contact_item_des">13899938756</p>
  45. </div>
  46. </div>
  47. </el-main>
  48. </el-container>
  49. </el-container>
  50. <SystemLoginCopyBottom bgc_blue="background: #4DC2D4"/>
  51. </div>
  52. </template>
  53. <script type="text/javascript">
  54. import AccountCenterTop from '../../commonCmp/AccountCenter/AccountCenterTop.vue'
  55. import MyApps from "../../progressCmp/UserHomepage/MyApps.vue"
  56. import Circular from "../../progressCmp/UserHomepage/Circular.vue"
  57. import LastSupply from '../../progressCmp/UserHomepage/LastSupply.vue'
  58. import SystemNotice from "../../progressCmp/UserHomepage/SystemNotice.vue"
  59. import LastChatting from "../../progressCmp/UserHomepage/LastChatting.vue"
  60. import PartnerAgents from "../../progressCmp/UserHomepage/PartnerAgents.vue"
  61. import SystemLoginCopyBottom from "../../commonCmp/WesiteInherentInfo/SystemLoginCopyBottom.vue"
  62. export default {
  63. name: "UserHomePage",
  64. components: {
  65. AccountCenterTop,
  66. MyApps,
  67. Circular,
  68. LastSupply,
  69. SystemNotice,
  70. LastChatting,
  71. PartnerAgents,
  72. SystemLoginCopyBottom
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. .userhome {
  78. position: relative;
  79. width: 156.8rem;
  80. left: 50%;
  81. transform: translate(-50%);
  82. .userhome_main {
  83. width: 100%;
  84. margin: 0;
  85. padding: 0;
  86. // 设置圆点导航样式
  87. /deep/ .el-carousel__indicator--horizontal {
  88. padding: 0;
  89. width: 4rem;
  90. height: .6rem;
  91. margin-left: 1.5rem;
  92. margin-bottom: 1rem;
  93. background: rgba(255, 255, 255, .8);
  94. .el-carousel__button {
  95. width: 100%;
  96. height: .6rem;
  97. background-color: rgba(255, 255, 255, 0.8);
  98. }
  99. }
  100. /deep/ .is-active .el-carousel__button {
  101. background-color: rgba(77, 194, 212, 0.9);
  102. }
  103. // 隐藏轮播左右箭头按钮
  104. /deep/ .el-carousel__arrow {
  105. display: none;
  106. }
  107. }
  108. .el-header {
  109. width: 100%;
  110. padding: 0;
  111. margin-top: 2.5rem;
  112. height: 38rem !important;
  113. overflow: hidden;
  114. border-radius: 1rem !important;
  115. .el-carousel {
  116. height: 100%;
  117. width: 100%;
  118. }
  119. img {
  120. height: 100%;
  121. width: 100%;
  122. }
  123. }
  124. // 主体
  125. .userhome_main_center {
  126. margin-top: 3rem;
  127. // 左边
  128. .el-aside {
  129. width: 95.3rem !important;
  130. }
  131. // 右边
  132. .el-main {
  133. width: 59.5rem;
  134. margin-left: 2rem;
  135. .contact {
  136. width: 100%;
  137. height: 31rem;
  138. margin: 2rem 0 14rem 0;
  139. display: flex;
  140. justify-content: space-evenly;
  141. .contact_item {
  142. width: 14.4rem;
  143. height: 25rem;
  144. width: 14.5rem;
  145. margin-top: 6rem;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. img {
  150. height: 13rem;
  151. width: 13rem;
  152. }
  153. .contact_item_type {
  154. margin: 1rem 0;
  155. }
  156. .contact_item_des {
  157. text-align: center;
  158. }
  159. }
  160. }
  161. }
  162. }
  163. }
  164. </style>