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

95 lines
2.5 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. <sectionHeader title="推荐检测" @showAll="jumpToRecommendDetect"></sectionHeader>
  37. <detectRecommendSwiper></detectRecommendSwiper>
  38. </view>
  39. <view class="section">
  40. <sectionHeader title="个性化检测包" @showAll="jumpToPersonalDetect"></sectionHeader>
  41. <detectPackageViewVue></detectPackageViewVue>
  42. </view>
  43. <view class="section">
  44. <sectionHeader title="自选检测" @showAll="jumpToCustomDetect"></sectionHeader>
  45. <detectCustomView></detectCustomView>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import sectionHeader from '@/components/home/sectionHeader.vue'
  51. import detectRecommendSwiper from './detectRecommendSwiper.vue'
  52. import detectPackageViewVue from './detectPackageView.vue'
  53. import detectCustomView from './detectCustomView.vue'
  54. export default {
  55. components: {
  56. sectionHeader,
  57. detectRecommendSwiper,
  58. detectPackageViewVue,
  59. detectCustomView,
  60. },
  61. data() {
  62. return {
  63. keyword: '',
  64. }
  65. },
  66. methods: {
  67. // 搜素
  68. search() {
  69. // todo
  70. uni.navigateTo({
  71. url: '/pages/index/category?search=' + this.keyword
  72. })
  73. this.keyword = ''
  74. },
  75. jumpToRecommendDetect() {
  76. // todo
  77. },
  78. jumpToPersonalDetect() {
  79. // todo
  80. },
  81. jumpToCustomDetect() {
  82. // todo
  83. },
  84. },
  85. }
  86. </script>
  87. <style scoped lang="scss">
  88. @import '../styles/tab.scss';
  89. </style>