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

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