index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="inputBox">
  5. <img src="../../static/img/icon_search.png" alt="" class="searchImg">
  6. <input v-model="vin" type="text" placeholder="请输入17位车架号查询" class="topInput" @confirm="inputconfirm">
  7. <image src="../../static/img/icon_camera.png" mode="" class="cameraImg"></image>
  8. </view>
  9. </view>
  10. <view class="history">
  11. <view class="historyTop">
  12. <view class="historyTopTxt">历史搜索</view>
  13. <image src="../../static/img/icon_delete.png" mode="" class="historyDelImg"></image>
  14. </view>
  15. <view v-for="(item,index) in 3" class="historyLIneBox">
  16. <view class="historyLIne" @click="gogroup2('LVHFC1663G6003140')">LVHFC1663G6003140</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. vin: ''
  26. }
  27. },
  28. onLoad() {
  29. },
  30. methods: {
  31. inputconfirm(){
  32. console.log(this.vin)
  33. this.gogroup()
  34. },
  35. gogroup(){
  36. uni.navigateTo({
  37. url:'group?vin='+this.vin
  38. })
  39. },
  40. gogroup2(vin){
  41. uni.navigateTo({
  42. url:'group?vin='+vin
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped>
  49. .top{
  50. height: 96rpx;
  51. border-bottom: 1px solid #EEEEEE;
  52. padding-top: 24rpx;
  53. }
  54. .searchImg{
  55. width: 40rpx;
  56. height: 40rpx;
  57. margin-top: 16rpx;
  58. margin-left: 20rpx;
  59. }
  60. .inputBox{
  61. width: 702rpx;
  62. height: 72rpx;
  63. background: #F4F5F7;
  64. border-radius: 36rpx;
  65. margin-left: 24rpx;
  66. display:flex;
  67. position: relative;
  68. }
  69. .topInput{
  70. font-size: 28rpx;
  71. height: 72rpx;
  72. line-height: 72rpx;
  73. padding-left: 16rpx;
  74. width: 500rpx;
  75. }
  76. .cameraImg{
  77. position: absolute;
  78. width: 40rpx;
  79. height: 40rpx;
  80. top: 16rpx;
  81. right: 20rpx;
  82. }
  83. .history{
  84. padding: 24rpx;
  85. }
  86. .historyTop{
  87. display: flex;
  88. justify-content: space-between;
  89. }
  90. .historyDelImg{
  91. width: 34rpx;height: 34rpx;
  92. }
  93. .historyTopTxt{
  94. font-size: 28rpx;
  95. font-weight: 400;
  96. color: #666666;
  97. line-height: 34rpx;
  98. }
  99. .historyLIne{
  100. color: #333333;font-size: 24rpx;
  101. height: 64rpx;
  102. background: #F4F5F7;
  103. border-radius: 32rpx;
  104. line-height: 64rpx;
  105. padding: 0 24rpx;
  106. margin-top: 20rpx;
  107. }
  108. .historyLIneBox{
  109. display: flex;
  110. }
  111. </style>