consultation.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="page-container uni-column">
  3. <view class="title uni-row">咨询</view>
  4. </view>
  5. </template>
  6. <script setup>
  7. import { ref } from 'vue'
  8. import { onLoad, onReady, onUnload, onShow } from '@dcloudio/uni-app'
  9. const keywords = ref('')
  10. const optionList = ref([])
  11. // 检查指导书
  12. const optionList1 = ref([])
  13. // 分选标准
  14. const optionList2 = ref([])
  15. // 页面生命周期函数
  16. onLoad(() => {
  17. optionList1.value = [
  18. {
  19. title: '001 台阶径',
  20. standard: '角偏 < 0.05'
  21. },
  22. {
  23. title: '002 台阶径',
  24. standard: '角偏 < 0.04'
  25. }
  26. ]
  27. optionList2.value = [
  28. {
  29. title: '划痕',
  30. standard: '划痕描述'
  31. },
  32. {
  33. title: '划伤',
  34. standard: '划伤描述'
  35. }
  36. ]
  37. optionList.value = optionList1.value
  38. })
  39. // tabbar切换
  40. const handleTabBarClick = (val) => {
  41. switch (val) {
  42. case 1:
  43. optionList.value = optionList1.value
  44. break
  45. case 2:
  46. optionList.value = optionList2.value
  47. }
  48. currentTabName.value = val
  49. }
  50. const handleOptionChecked = (data) => {
  51. uni.$emit('addUnfitInfoEvent', {
  52. title: data.title,
  53. standard: data.standard
  54. })
  55. uni.navigateBack()
  56. }
  57. </script>
  58. <style lang="scss">
  59. .page-container {
  60. height: 100%;
  61. background-color: #ececec;
  62. font-size: 28rpx;
  63. padding: 24rpx;
  64. box-sizing: border-box;
  65. }
  66. .option-container {
  67. background-color: #ffffff;
  68. padding: 24rpx;
  69. border-radius: 12rpx;
  70. }
  71. .tab-bars {
  72. height: 56rpx;
  73. > view {
  74. flex: 1;
  75. text-align: center;
  76. .line {
  77. width: 50%;
  78. height: 2px;
  79. margin:8rpx auto 0 auto;
  80. background-color: #FFFFFF;
  81. }
  82. &.active {
  83. .line {
  84. background-color: #1684FC;
  85. }
  86. }
  87. }
  88. }
  89. .search-container {
  90. margin-top: 16rpx;
  91. align-items: center;
  92. input {
  93. flex: 1;
  94. height: 72rpx;
  95. border: 1px solid #bbbbbb;
  96. padding: 0 8rpx;
  97. box-sizing: border-box;
  98. }
  99. .btn {
  100. display: flex;
  101. flex-direction: row;
  102. width: 112rpx;
  103. height: 72rpx;
  104. align-items: center;
  105. justify-content: center;
  106. background-color: #1684FC;
  107. color: #ffffff;
  108. }
  109. }
  110. .option-item {
  111. position: relative;
  112. margin-top: 24rpx;
  113. padding-bottom: 8rpx;
  114. border-bottom: 1px solid #BBBBBB;
  115. .uni-row {
  116. padding-bottom: 16rpx;
  117. .label {
  118. width: 144rpx;
  119. }
  120. .value {
  121. flex: 1;
  122. }
  123. }
  124. .uni-row:first-child {
  125. font-size: 32rpx;
  126. font-weight: 700;
  127. }
  128. .arrow-right {
  129. position: absolute;
  130. top: 24rpx;
  131. right: 24rpx;
  132. }
  133. }
  134. </style>