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

101 lines
2.7 KiB

  1. <template>
  2. <view>
  3. <!-- 搜索栏 -->
  4. <view class="search">
  5. <uv-search
  6. v-model="keyword"
  7. placeholder="请输入要查询的内容"
  8. placeholderColor="#C6C6C6"
  9. searchIconColor="#8B8B8B"
  10. :searchIconSize="40"
  11. :inputStyle="{
  12. 'font-family': 'PingFang SC',
  13. 'font-weight': 400,
  14. 'font-size': '28rpx',
  15. 'line-height': 1.4,
  16. 'padding': '12rpx 0',
  17. }"
  18. bgColor="#fff"
  19. :showAction="false"
  20. @search="search"
  21. ></uv-search>
  22. </view>
  23. <view class="intro">
  24. <image class="bg" src="@/pages_order/static/product/intro-bg.png" mode="heightFix"></image>
  25. <view class="content">
  26. <view class="font1">你是独一无二的</view>
  27. <view class="font2">你的健康数据也是</view>
  28. <view class="font3">普兆即精准</view>
  29. <button class="flex btn">
  30. <image class="btn-icon" src="@/pages_order/static/index/btn-icon.png" mode="widthFix"></image>
  31. <text>定制健康档案</text>
  32. </button>
  33. </view>
  34. </view>
  35. <view class="section">
  36. <view class="section-header">
  37. <sectionHeader title="推荐检测" @showAll="jumpToRecommendDetect"></sectionHeader>
  38. </view>
  39. <detectRecommendSwiper></detectRecommendSwiper>
  40. </view>
  41. <view class="section">
  42. <view class="section-header">
  43. <sectionHeader title="个性化检测包" @showAll="jumpToPersonalDetect"></sectionHeader>
  44. </view>
  45. <detectPackageViewVue></detectPackageViewVue>
  46. </view>
  47. <view class="section">
  48. <view class="section-header">
  49. <sectionHeader title="自选检测" @showAll="jumpToCustomDetect"></sectionHeader>
  50. </view>
  51. <detectCustomView></detectCustomView>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. import sectionHeader from '@/components/home/sectionHeader.vue'
  57. import detectRecommendSwiper from './detectRecommendSwiper.vue'
  58. import detectPackageViewVue from './detectPackageView.vue'
  59. import detectCustomView from './detectCustomView.vue'
  60. export default {
  61. components: {
  62. sectionHeader,
  63. detectRecommendSwiper,
  64. detectPackageViewVue,
  65. detectCustomView,
  66. },
  67. data() {
  68. return {
  69. keyword: '',
  70. }
  71. },
  72. methods: {
  73. // 搜素
  74. search() {
  75. // todo
  76. uni.navigateTo({
  77. url: '/pages/index/category?search=' + this.keyword
  78. })
  79. this.keyword = ''
  80. },
  81. jumpToRecommendDetect() {
  82. // todo
  83. },
  84. jumpToPersonalDetect() {
  85. // todo
  86. },
  87. jumpToCustomDetect() {
  88. // todo
  89. },
  90. },
  91. }
  92. </script>
  93. <style scoped lang="scss">
  94. @import '../styles/tab.scss';
  95. </style>