球星卡微信小程序
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.

92 lines
1.9 KiB

  1. <template>
  2. <view class="flex-col page">
  3. <view class="flex-col section_2">
  4. <view class="flex-col section_3">
  5. <view class="justify-between search">
  6. <u-input class="search-input" v-model="value" :focus="inputFocus" @focus="focusEvent" @blur="blurEvent" placeholder="请输入评级编号" border="surround" :clearable="true" ></u-input>
  7. <view class="flex-col items-center text-wrapper" @click="search">
  8. <text>搜索</text>
  9. </view>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. value: '',
  20. inputFocus: true
  21. };
  22. },
  23. methods: {
  24. search(){
  25. console.log('搜索', this.value);
  26. this.$url('/packages/ratingQueryDetail/ratingQueryDetail');
  27. },
  28. focusEvent(){
  29. this.inputFocus = true;
  30. },
  31. blurEvent(){
  32. this.inputFocus = false;
  33. }
  34. }
  35. };
  36. </script>
  37. <style scoped lang="css">
  38. .page {
  39. background-color: #f6f6f6;
  40. width: 100%;
  41. overflow-y: auto;
  42. height: 100%;
  43. }
  44. .search-input{
  45. width: 492rpx;
  46. height: 84rpx;
  47. }
  48. .section_2 {
  49. padding: 32rpx 32rpx 16rpx;
  50. flex: 1 1 auto;
  51. background-color: rgb(255, 255, 255);
  52. overflow-y: auto;
  53. }
  54. .section_3 {
  55. padding: 6rpx 0;
  56. background-color: rgb(246, 246, 246);
  57. border-radius: 10rpx;
  58. }
  59. .search {
  60. margin-left: 31rpx;
  61. margin-right: 6rpx;
  62. }
  63. .group_4 {
  64. align-self: center;
  65. color: rgb(195, 195, 195);
  66. font-size: 28rpx;
  67. font-weight: 500;
  68. line-height: 40rpx;
  69. white-space: nowrap;
  70. }
  71. .text-wrapper {
  72. padding: 20rpx 0;
  73. color: rgb(255, 255, 255);
  74. font-size: 32rpx;
  75. font-weight: 500;
  76. line-height: 44rpx;
  77. white-space: nowrap;
  78. background-color: rgb(231, 162, 63);
  79. border-radius: 6rpx;
  80. width: 130rpx;
  81. height: 84rpx;
  82. }
  83. .image_6 {
  84. margin-bottom: 4rpx;
  85. width: 37rpx;
  86. height: 34rpx;
  87. }
  88. .text_2 {
  89. margin-left: 10rpx;
  90. }
  91. </style>