普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.3 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view class="page__view">
  3. <navbar bgColor="#FFFFFF" >
  4. <image class="nav-icon" :src="configList.icon_nav_dark" mode="widthFix"></image>
  5. </navbar>
  6. <view class="content">
  7. <productSwiper></productSwiper>
  8. <view class="section">
  9. <sectionHeader title="个性推荐" desc="Personal Recommendation"></sectionHeader>
  10. <recommend-swiper></recommend-swiper>
  11. <health-records-intro></health-records-intro>
  12. </view>
  13. <view class="section">
  14. <achievement-intro></achievement-intro>
  15. </view>
  16. <view class="section">
  17. <sectionHeader title="团队成员背景" desc="Background of Team Members"></sectionHeader>
  18. <team-bg-intro></team-bg-intro>
  19. </view>
  20. <view class="section">
  21. <sectionHeader desc="Background of Team Members">
  22. <template #title>
  23. 关注我们<br/>参与更多健康活动
  24. </template>
  25. </sectionHeader>
  26. <follow-us-intro></follow-us-intro>
  27. </view>
  28. </view>
  29. <tabber select="home" />
  30. </view>
  31. </template>
  32. <script>
  33. import tabber from '@/components/base/tabbar.vue'
  34. import sectionHeader from '@/components/home/sectionHeader.vue'
  35. import productSwiper from '@/components/home/productSwiper.vue'
  36. import recommendSwiper from '@/pages_order/home/recommendSwiper.vue'
  37. import healthRecordsIntro from '@/pages_order/home/healthRecordsIntro.vue'
  38. import achievementIntro from '@/pages_order/home/achievementIntro.vue'
  39. import teamBgIntro from '@/pages_order/home/teamBgIntro.vue'
  40. import followUsIntro from '@/pages_order/home/followUsIntro.vue'
  41. export default {
  42. components: {
  43. productSwiper,
  44. sectionHeader,
  45. recommendSwiper,
  46. healthRecordsIntro,
  47. achievementIntro,
  48. teamBgIntro,
  49. followUsIntro,
  50. tabber,
  51. },
  52. data() {
  53. return {
  54. }
  55. },
  56. onLoad() {
  57. if(uni.getStorageSync('token')){
  58. this.$store.commit('getUserInfo')
  59. }
  60. },
  61. methods: {
  62. },
  63. }
  64. </script>
  65. <style scoped lang="scss">
  66. .page__view {
  67. width: 100vw;
  68. min-height: 100vh;
  69. background-color: $uni-bg-color;
  70. position: relative;
  71. }
  72. .nav-icon {
  73. width: 200rpx;
  74. height: auto;
  75. vertical-align: top;
  76. }
  77. .content {
  78. // padding: 80rpx 32rpx 182rpx 32rpx;
  79. width: 100vw;
  80. padding: 70rpx 0 182rpx 0;
  81. box-sizing: border-box;
  82. overflow-x: hidden;
  83. overflow-y: auto;
  84. }
  85. .section {
  86. margin-top: 80rpx;
  87. }
  88. </style>