index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="app-content">
  3. <!-- <view class="header"><liu-search :hotList="hotList" @input="input" @change="change"></liu-search><view class="up"></view></view> -->
  4. <liu-search :hotList="hotList" :historyList="historyList" @input="input" @change="change"></liu-search>
  5. </view>
  6. </template>
  7. <script>
  8. import Nav from '../../components/header/nav.vue'
  9. export default {
  10. data() {
  11. return {
  12. navname: '我的记录',
  13. hotList: ['HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410'],//热门搜索
  14. historyList: ['HU7410','HU7410','HU7410','HU7410']
  15. }
  16. },
  17. created(option) {
  18. },
  19. onLoad(){
  20. },
  21. onUnload() {
  22. },
  23. onShow() {
  24. },
  25. mounted() {
  26. },
  27. components: {
  28. Nav
  29. },
  30. methods: {
  31. //搜索内容
  32. change(e) {
  33. console.log('搜索内容:' + e)
  34. },
  35. //input事件
  36. input(e){
  37. console.log('搜索框输入的内容:' + e)
  38. },
  39. },
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .app-content{
  44. >.header{
  45. width: 100%;
  46. height: 4.375rem;
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. // background: rgba(49,85,99,1);
  51. color: rgb(16, 17, 22);
  52. font-family: Noto Sans SC;
  53. font-size: 1rem;
  54. position: relative;
  55. >.log{
  56. width: .375rem;
  57. height: .75rem;
  58. font-size: .75rem;
  59. position: absolute;
  60. left: 1.5rem;
  61. background: url('../../static/ico@1x.png') no-repeat;
  62. background-size: 100% 100%;
  63. }
  64. >.up{
  65. width: .8456rem;
  66. height: .8456rem;
  67. position: absolute;
  68. right: 1.5rem;
  69. background: url('../../static/search.png') no-repeat;
  70. background-size: 100% 100%;
  71. // color: rgb(37, 121, 160);
  72. // font-family: Noto Sans SC;
  73. // font-size: .875rem;
  74. // font-weight: 500;
  75. }
  76. }
  77. >.nav{
  78. height: 2rem;
  79. display: flex;
  80. align-items: center;
  81. padding: 0 .75rem 0 .75rem;
  82. >.nav_list{
  83. margin: 0 .75rem 0 .75rem;
  84. color: rgb(16, 17, 22);
  85. font-family: Noto Sans SC;
  86. font-size: 14px;
  87. height: 100%;
  88. }
  89. >.nav_lists{
  90. margin: 0 .75rem 0 .75rem;
  91. color: rgb(37, 121, 160);
  92. font-family: Noto Sans SC;
  93. font-size: 14px;
  94. font-size: 14px;
  95. height: 100%;
  96. border-bottom: 2px solid rgb(37, 121, 160);
  97. }
  98. }
  99. >.content{
  100. margin-left: 1.5rem;
  101. >.list{
  102. height: 3.375rem;
  103. display: flex;
  104. align-items: center;
  105. border-bottom: 1px solid rgb(238, 238, 238);
  106. position: relative;
  107. color: rgb(0, 0, 0);
  108. font-family: Noto Sans SC;
  109. font-size: 13px;
  110. font-weight: 400;
  111. >p{
  112. color: rgb(0, 0, 0);
  113. font-family: Noto Sans SC;
  114. font-size: 13px;
  115. font-weight: 400;
  116. margin-right: 2.1875rem;
  117. }
  118. >.listup{
  119. width: .25rem;
  120. height: .5rem;
  121. background: url('../../static/icos.png') no-repeat;
  122. background-size: 100% 100%;
  123. position: absolute;
  124. right: 1.5rem;
  125. }
  126. }
  127. >.picturearea{
  128. margin-top: 1.875rem;
  129. >.name{
  130. color: rgb(0, 0, 0);
  131. font-family: Noto Sans SC;
  132. font-size: .8125rem;
  133. font-weight: 500;
  134. }
  135. >.content_list{
  136. width: 100%;
  137. display: flex;
  138. margin-top: 1.25rem;
  139. >.mg{
  140. width: 5.5rem;
  141. height: 5.5rem;
  142. background: rgb(197, 207, 211);
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. margin-right: .625rem;
  147. >.mg_lg{
  148. width: 1.75rem;
  149. height: 1.75rem;
  150. background: url('../../static/shi.png') no-repeat;
  151. background-size: 100% 100%;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. </style>