index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="content">
  3. <view class="title">
  4. <text class="tl-1">AI</text>
  5. <text>辅助诊断</text>
  6. </view>
  7. <view class="list">
  8. <view class="item" v-for="item in items" :key="item.id" @click="linkTo(item.id)">
  9. <view class="icon">
  10. <text class="zhcx-iconfont" :class="item.icon" :style="{color:item.color}"></text>
  11. </view>
  12. <view class="text">
  13. <text>{{item.name}}</text>
  14. </view>
  15. <view class="link">
  16. <text class="xiangzuo zhcx-iconfont"></text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. name:"patient-index",
  25. data() {
  26. return {
  27. items:[
  28. {
  29. id:1,
  30. name:'医学影像检索',
  31. icon:"zhcx-icon-tupian",
  32. color:"#00bfff"
  33. },
  34. {
  35. id:2,
  36. name:'文本检索',
  37. icon:"zhcx-icon-sousuo",
  38. color:"#fa6400"
  39. },
  40. {
  41. id:3,
  42. name:'语音检索',
  43. icon:"zhcx-icon-yuyin",
  44. color:"#17b18f"
  45. }
  46. ]
  47. }
  48. },
  49. methods: {
  50. linkTo(id){
  51. let type="image";
  52. if(id===2){
  53. type="text";
  54. }else if(id===3){
  55. type="voice";
  56. }
  57. uni.navigateTo({
  58. url:"/views/patientItems/search/index?type="+type
  59. })
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .content{
  66. &{
  67. padding: 0 24upx;
  68. }
  69. .title {
  70. font-size: 38upx;
  71. padding: 58upx 0 49upx 0;
  72. font-weight: 600;
  73. .tl-1{
  74. color: #3384ff;
  75. padding-right: 8upx;
  76. }
  77. }
  78. .list{
  79. .item{
  80. height: 160upx;
  81. margin-top: 24upx;
  82. display: flex;
  83. justify-content: flex-start;
  84. align-items: center;
  85. position: relative;
  86. .icon{
  87. .zhcx-iconfont{
  88. font-size: 55upx;
  89. }
  90. padding-right: 79upx;
  91. }
  92. .text{
  93. font-size: 32upx;
  94. color: #333;
  95. }
  96. .link{
  97. position: absolute;
  98. right: 34upx;
  99. }
  100. }
  101. }
  102. }
  103. </style>