普兆健康管家前端代码仓库
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.

294 lines
6.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="page__view">
  3. <navbar bgColor="#FFFFFF" >
  4. <image class="nav-icon" src="@/static/image/icon-nav.png" mode="widthFix"></image>
  5. </navbar>
  6. <view class="content">
  7. <productSwiper :list="productSwiperList"></productSwiper>
  8. <view class="section">
  9. <sectionHeader title="个性推荐" desc="Personal Recommendation"></sectionHeader>
  10. <recommend-swiper :list="recommendList"></recommend-swiper>
  11. <health-records-intro :list="detectionStepList"></health-records-intro>
  12. </view>
  13. <view class="section">
  14. <achievement-intro :list="achievementList"></achievement-intro>
  15. </view>
  16. <view class="section">
  17. <sectionHeader title="团队成员背景" desc="Background of Team Members"></sectionHeader>
  18. <team-bg-intro :list="medicineList"></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 :articleList="followReasonList" :wayList="followWayList"></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. productSwiperList: [],
  55. recommendList: [],
  56. detectionStepList: [],
  57. achievementList: [],
  58. medicineList: [],
  59. followReasonList: [],
  60. followWayList: [],
  61. }
  62. },
  63. onLoad() {
  64. this.productSwiperList = [
  65. {
  66. id: '001',
  67. url: '',
  68. arr: [
  69. { text: '你是独一无二的', class: 'font1' },
  70. { text: '你的健康数据也是', class: 'font2' },
  71. { text: '普兆,即精准', class: 'font3' },
  72. ],
  73. btns: [
  74. { text: '全部产品', path: '/pages_order/auth/wxLogin' },
  75. { text: '定制健康档案', path: '/pages_order/auth/wxLogin' },
  76. ],
  77. },
  78. {
  79. id: '002',
  80. url: '',
  81. arr: [
  82. { text: '你是独一无二的', class: 'font1' },
  83. { text: '你的健康数据也是', class: 'font2' },
  84. { text: '普兆,即精准', class: 'font3' },
  85. ],
  86. btns: [
  87. { text: '全部产品', path: '/pages_order/auth/wxLogin' },
  88. { text: '定制健康档案', path: '/pages_order/auth/wxLogin' },
  89. ],
  90. },
  91. {
  92. id: '003',
  93. url: '',
  94. arr: [
  95. { text: '你是独一无二的', class: 'font1' },
  96. { text: '你的健康数据也是', class: 'font2' },
  97. { text: '普兆,即精准', class: 'font3' },
  98. ],
  99. btns: [
  100. { text: '全部产品', path: '/pages_order/auth/wxLogin' },
  101. { text: '定制健康档案', path: '/pages_order/auth/wxLogin' },
  102. ],
  103. },
  104. ]
  105. this.recommendList = [
  106. {
  107. id: '001',
  108. url: '',
  109. arr: [
  110. { text: '你的身体在“说话”', class: 'font1' },
  111. { text: '你听懂了吗?', class: 'font2' },
  112. { text: '5分钟问卷', class: 'font3' },
  113. ],
  114. btn: { text: 'Al定制方案', path: '/pages_order/auth/wxLogin' },
  115. },
  116. {
  117. id: '002',
  118. url: '',
  119. arr: [
  120. { text: '你的健康', class: 'font1' },
  121. { text: '需要“管理员”', class: 'font2' },
  122. { text: '私人营养师全程跟进', class: 'font3' },
  123. ],
  124. btn: { text: '领取管家', path: '/pages_order/auth/wxLogin' },
  125. },
  126. {
  127. id: '003',
  128. url: '',
  129. arr: [
  130. { text: '你的身体在“说话”', class: 'font1' },
  131. { text: '你听懂了吗?', class: 'font2' },
  132. { text: '5分钟问卷', class: 'font3' },
  133. ],
  134. btn: { text: 'Al定制方案', path: '/pages_order/auth/wxLogin' },
  135. },
  136. ]
  137. this.detectionStepList = [
  138. {
  139. id: '001',
  140. title: '定制检测',
  141. url: '',
  142. desc: '测评读懂你的身体语言,完成定制化检测。',
  143. },
  144. {
  145. id: '002',
  146. title: '定制检测',
  147. url: '',
  148. desc: '用数据精准跟踪你的健康档案。',
  149. },
  150. {
  151. id: '003',
  152. title: '定制检测',
  153. url: '',
  154. desc: '测评读懂你的身体语言,完成定制化检测。',
  155. },
  156. ]
  157. this.achievementList = [
  158. {
  159. id: '001',
  160. url: '',
  161. },
  162. {
  163. id: '002',
  164. url: '',
  165. },
  166. {
  167. id: '003',
  168. url: '',
  169. },
  170. ]
  171. this.medicineList = [
  172. {
  173. id: '001',
  174. url: '',
  175. zh: '维生素D',
  176. en: 'Vitamin D',
  177. },
  178. {
  179. id: '002',
  180. url: '',
  181. zh: '维生素B2',
  182. en: 'Vitamin B2',
  183. },
  184. {
  185. id: '003',
  186. url: '',
  187. zh: '维生素P',
  188. en: 'Vitamin P',
  189. },
  190. {
  191. id: '004',
  192. url: '',
  193. zh: '维生素M',
  194. en: 'Vitamin M',
  195. },
  196. {
  197. id: '005',
  198. url: '',
  199. zh: '维生素B1',
  200. en: 'Vitamin B1',
  201. },
  202. {
  203. id: '006',
  204. url: '',
  205. zh: '维生素C',
  206. en: 'Vitamin C',
  207. },
  208. ]
  209. this.followReasonList = [
  210. {
  211. id: '001',
  212. url: '',
  213. path: '/pages_order/auth/wxLogin',
  214. },
  215. {
  216. id: '002',
  217. url: '',
  218. path: '/pages_order/auth/wxLogin',
  219. },
  220. {
  221. id: '003',
  222. url: '',
  223. path: '/pages_order/auth/wxLogin',
  224. },
  225. ]
  226. this.followWayList = [
  227. {
  228. id: '001',
  229. title: '公众号',
  230. desc: 'PETUAL MEDICAL',
  231. url: '/pages_order/static/index/wx.png',
  232. path: '/pages_order/auth/wxLogin',
  233. },
  234. {
  235. id: '002',
  236. title: '健康伙伴',
  237. desc: 'PETUAL MEDICAL',
  238. url: '/pages_order/static/index/group.png',
  239. path: '/pages_order/auth/wxLogin',
  240. },
  241. {
  242. id: '003',
  243. title: '官方号',
  244. desc: 'PETUAL MEDICAL',
  245. url: '/pages_order/static/index/xhs.png',
  246. path: '/pages_order/auth/wxLogin',
  247. },
  248. ]
  249. },
  250. methods: {
  251. },
  252. }
  253. </script>
  254. <style scoped lang="scss">
  255. .page__view {
  256. width: 100vw;
  257. min-height: 100vh;
  258. background-color: $uni-bg-color;
  259. position: relative;
  260. }
  261. .nav-icon {
  262. width: 200rpx;
  263. height: auto;
  264. vertical-align: top;
  265. }
  266. .content {
  267. // padding: 80rpx 32rpx 182rpx 32rpx;
  268. padding: 70rpx 0 182rpx 0;
  269. }
  270. .section {
  271. margin-top: 80rpx;
  272. }
  273. </style>