index.vue 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="content">
  3. <image-search v-if="searchType==='image'" />
  4. <text-search v-if="searchType==='text'" />
  5. <voice-search v-if="searchType==='voice'" />
  6. </view>
  7. </template>
  8. <script>
  9. import textSearch from '@/views/patientItems/search/text/index'
  10. import imageSearch from '@/views/patientItems/search/image/index'
  11. import voiceSearch from '@/views/patientItems/search/voice/index'
  12. export default{
  13. components:{
  14. textSearch,imageSearch,voiceSearch
  15. },
  16. data(){
  17. return{
  18. searchType:"image"
  19. }
  20. },
  21. onLoad(options) {
  22. let type=options.type;
  23. this.searchType=type;
  24. let title="诊断";
  25. if(type==="image"){
  26. title="医学影像诊断";
  27. }else if(type==="text"){
  28. title="文本诊断";
  29. }else if(type==="voice"){
  30. title="语音诊断";
  31. }
  32. uni.setNavigationBarTitle({
  33. title
  34. })
  35. }
  36. }
  37. </script>
  38. <style>
  39. </style>