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

162 lines
4.1 KiB

  1. <template>
  2. <view>
  3. <view class="section">
  4. <view class="header">
  5. <!-- todo -->
  6. <view>普兆医疗与诺贝尔奖实验室强强联合</view>
  7. <view>累计服务<text class="highlight">100,000+</text>用户</view>
  8. </view>
  9. <view class="content">
  10. <!-- todo: check -->
  11. <view class="card" v-for="item in list" :key="item.id" @click="openVideoPopup(item.video)">
  12. <image class="card-img" :src="item.image" mode="scaleToFill"></image>
  13. </view>
  14. <view class="intro" style="margin-top: 80rpx;">
  15. <view>
  16. <!-- 我们携手<text class="highlight">营养学博士医学博士</text>以及<text class="highlight">人工智能算法工程师</text>组建了一支顶尖的专业团队 -->
  17. <uv-parse :content="configList.home_doctor_text_1"></uv-parse>
  18. </view>
  19. <view class="flex desc">
  20. <image class="desc-img" :src="configList.home_doctor_bg" mode="scaleToFill"></image>
  21. <view class="desc-text">
  22. <!-- 团队依托<text class="highlight">先进的AI智能算法世界领先的检测手段与设备</text>充分考量用户个人的独特性参考国人的生活方式地域差异以及饮食习惯<br/>
  23. 为每一位客户建立个人专属健康档案并量身定制个性化的健康管理方案 -->
  24. <uv-parse :content="configList.home_doctor_text_2"></uv-parse>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="section">
  31. <view class="header">
  32. <!-- todo -->
  33. <view><text class="highlight">ISO 15189</text>为标准建立</view>
  34. <view>高标准的质量管理体系</view>
  35. </view>
  36. <view class="content" style="margin-top: 16rpx;">
  37. <view class="intro">
  38. <!-- todo -->
  39. 合作实验室以<text class="highlight">ISO 15189</text>为标准建立质量管理体系 保证实验室的有效且可靠的运营
  40. </view>
  41. <!-- todo -->
  42. <image class="intro-img" src="@/pages_order/static/temp-2.png" mode="scaleToFill"></image>
  43. </view>
  44. </view>
  45. <!-- todo: check -->
  46. <videoPopup ref="videoPopup"></videoPopup>
  47. </view>
  48. </template>
  49. <script>
  50. import videoPopup from './videoPopup.vue'
  51. export default {
  52. components: {
  53. videoPopup,
  54. },
  55. data() {
  56. return {
  57. list: [],
  58. }
  59. },
  60. created() {
  61. this.getData()
  62. },
  63. methods: {
  64. async getData() {
  65. try {
  66. this.list = await this.$fetch('getVideo')
  67. } catch (err) {
  68. }
  69. },
  70. openVideoPopup(url) {
  71. this.$refs.videoPopup.open(url)
  72. },
  73. },
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. .header {
  78. text-align: center;
  79. font-family: PingFang SC;
  80. font-weight: 600;
  81. font-size: 40rpx;
  82. line-height: 1.4;
  83. color: #252545;
  84. .highlight {
  85. font-size: 64rpx;
  86. font-weight: 600;
  87. line-height: 1.4;
  88. font-family: PingFang SC;
  89. color: transparent;
  90. background-image: linear-gradient(to right, #4B348F, #845CFA);
  91. background-clip: text;
  92. display: inline-block;
  93. }
  94. }
  95. .content {
  96. padding: 24rpx 32rpx 0 32rpx;
  97. }
  98. .card {
  99. font-size: 0;
  100. overflow: hidden;
  101. border-radius: 32rpx;
  102. background-image: linear-gradient(to right, #FAFAFF, #F3F3F3);
  103. box-shadow: -5rpx -5rpx 20rpx 0 #FFFFFF,
  104. 10rpx 10rpx 20rpx 0 #AAAACC80,
  105. 4rpx 4rpx 10rpx 0 #AAAACC40,
  106. -2rpx -2rpx 5rpx 0 #FFFFFF;
  107. & + & {
  108. margin-top: 32rpx;
  109. }
  110. &-img {
  111. width: 100%;
  112. height: calc((100vw - 32rpx*2) * 100 / 344);
  113. }
  114. }
  115. .intro {
  116. font-family: PingFang SC;
  117. font-size: 32rpx;
  118. font-weight: 400;
  119. line-height: 1.4;
  120. color: #616161;
  121. .highlight {
  122. font-weight: 600;
  123. color: #252545;
  124. }
  125. .desc {
  126. margin-top: 40rpx;
  127. align-items: flex-start;
  128. font-size: 28rpx;
  129. &-img {
  130. width: 366rpx;
  131. height: 472rpx;
  132. flex: none;
  133. }
  134. &-text {
  135. padding-top: 24rpx;
  136. }
  137. }
  138. &-img {
  139. width: 100%;
  140. height: calc((100vw - 32rpx*2) * 200 / 343);
  141. margin-top: 40rpx;
  142. }
  143. }
  144. </style>