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

105 lines
2.9 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. <slot name="custom"></slot>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. import sectionHeader from '../sectionHeader.vue'
  57. import detectRecommendSwiper from './detectRecommendSwiper.vue'
  58. import detectPackageViewVue from './detectPackageView.vue'
  59. export default {
  60. components: {
  61. sectionHeader,
  62. detectRecommendSwiper,
  63. detectPackageViewVue,
  64. },
  65. data() {
  66. return {
  67. keyword: '',
  68. }
  69. },
  70. methods: {
  71. // 搜素
  72. search() {
  73. uni.navigateTo({
  74. url: `/pages_order/product/productList?type=1&search=${this.keyword}&title=检测`
  75. })
  76. // this.keyword = ''
  77. },
  78. jumpToRecommendDetect() {
  79. uni.navigateTo({
  80. url: `/pages_order/product/productList?type=1&homeRecommend=Y&title=推荐检测`
  81. })
  82. },
  83. jumpToPersonalDetect() {
  84. // todo
  85. uni.navigateTo({
  86. url: `/pages_order/product/productList?type=1&title=自选检测`
  87. })
  88. },
  89. jumpToCustomDetect() {
  90. uni.navigateTo({
  91. url: `/pages_order/product/productList?type=1&title=自选检测`
  92. })
  93. },
  94. },
  95. }
  96. </script>
  97. <style scoped lang="scss">
  98. @import '../styles/tab.scss';
  99. </style>