search-list.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="seacrh-record-index iPhone-bottom flex-common-css box-border-box">
  3. <view class="seacrh-bg"></view>
  4. <Nav title='搜索' bgckgroundBox='transparent'></Nav>
  5. <view class="s-input">
  6. <view class="input-icon">
  7. <uni-icons type="search" size="18" color="#999"></uni-icons>
  8. </view>
  9. <input v-model="search" type="text" placeholder="店铺名称或者商品名称">
  10. <view class="input-buttom fs-28 fc-f fw-500" @click="toList()">搜索</view>
  11. </view>
  12. <scroll-view scroll-y="true" class="scroll-view-css seacrh-info box-border-box p-24" @scrolltolower="scrolltolower">
  13. <view class="goos-list-box box-border-box p-24 display-flex" v-for="(item,i) in 10">
  14. <image class="left-img" src="../../static/img/my/bg.png" mode="scaleToFill"></image>
  15. <view class="flex-1">
  16. <view class="align-items-center mb-8">
  17. <view class="right-box-title fs-32 fw-600 text-overflow-ellipsis-one">蜜雪冰城(重工页店)122332323232323232323232</view>
  18. <image class="right-box-title-img" src="@/static/img/toRight.png" mode=""></image>
  19. </view>
  20. <view class="align-items-center mb-8">
  21. <image class="img-x mr-12" src="@/static/img/my/wdpj.png" mode=""></image>
  22. <view class="fs-26 fw-600 fc-FF7F00 mr-12">4.5分</view>
  23. <view class="fc-6 fs-24 mr-12">| 预计38分钟 |</view>
  24. <view class="fc-6 fs-24 mr-12">855人购买</view>
  25. </view>
  26. <view class="align-items-center flex-wrap-wrap">
  27. <view class="quan-list display-flex mr-12 mb-12" v-for="(item,i) in 3" :key="i">
  28. <view class="quan-list-1 fs-24 fc-f">券</view>
  29. <view class="quan-list-2 fs-24 fc-FB3D03">10元</view>
  30. </view>
  31. </view>
  32. <view class="goods-items-list display-flex">
  33. <view class="goods-items-list-box" v-for="(info,i) in 10">
  34. <image class="mb-12" src="@/static/img/my/bg.png" mode=""></image>
  35. <view class="mb-8 fw-600 text-overflow-ellipsis-one fs-26">AAAAAAAAAAAAAA</view>
  36. <view class="">
  37. <span class="fs-24 fc-FB3D03">¥</span>
  38. <span class="fs-32 fc-FB3D03 fw-b">3.99</span>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data(){
  50. return{
  51. search:'',
  52. }
  53. },
  54. onLoad(e) {
  55. console.log(e);
  56. this.search = e.search
  57. },
  58. onShow() {
  59. },
  60. methods:{
  61. scrolltolower(){
  62. console.log('触底刷新');
  63. },
  64. },
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .seacrh-record-index{
  69. position: relative;
  70. .seacrh-bg{
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. width: 100%;
  75. height: 376rpx;
  76. background-image: linear-gradient(to right, #C9F7FC,#F9F6E0,#F6F5F3);
  77. z-index: -1;
  78. }
  79. .s-input{
  80. margin-top: 24rpx;
  81. width: 100%;
  82. height: 72rpx;
  83. padding: 0 24rpx;
  84. box-sizing: border-box;
  85. position: relative;
  86. .input-icon{
  87. position: absolute;
  88. left: 48rpx;
  89. top: 20rpx;
  90. }
  91. input{
  92. font-size: 32rpx;
  93. width: 100%;
  94. height: 72rpx;
  95. background: #FFFFFF;
  96. border-radius: 200rpx;
  97. box-sizing: border-box;
  98. padding: 0 126rpx 0 78rpx;
  99. }
  100. .input-buttom{
  101. width: 120rpx;
  102. height: 60rpx;
  103. background: linear-gradient( 90deg, #57CAFF 0%, #41ABF5 100%);
  104. border-radius: 200rpx;
  105. text-align: center;
  106. line-height: 60rpx;
  107. position: absolute;
  108. right: 30rpx;
  109. top: 6rpx;
  110. }
  111. }
  112. .seacrh-info{
  113. margin-top: 20rpx;
  114. // border-radius: 24rpx 24rpx 0rpx 0rpx;
  115. }
  116. .goos-list-box{
  117. width: 100%;
  118. min-height: 428rpx;
  119. background: #FFFFFF;
  120. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(51,51,51,0.1);
  121. border-radius: 20rpx;
  122. margin-bottom: 20rpx;
  123. .goods-items-list{
  124. width: 530rpx;
  125. overflow-y: scroll;
  126. .goods-items-list-box{
  127. width: 140rpx;
  128. margin-right: 16rpx;
  129. image{
  130. width: 140rpx;
  131. height: 140rpx;
  132. border-radius: 12rpx
  133. }
  134. }
  135. }
  136. .left-img{
  137. width: 100rpx;
  138. height: 100rpx;
  139. border-radius: 12rpx;
  140. margin-right: 16rpx;
  141. }
  142. .img-x{
  143. width: 24rpx;
  144. height: 24rpx;
  145. }
  146. .right-box-title{
  147. width: 438rpx;
  148. }
  149. .right-box-title-img{
  150. width: 32rpx;
  151. height: 32rpx;
  152. margin-left: auto;
  153. }
  154. .quan-list{
  155. .quan-list-1{
  156. width: 32rpx;
  157. height: 34rpx;
  158. background: #FB3D03;
  159. border-radius: 5rpx 0rpx 0rpx 5rpx;
  160. text-align: center;
  161. }
  162. .quan-list-2{
  163. box-sizing: border-box;
  164. padding: 0 2rpx;
  165. height: 34rpx;
  166. border-radius: 0 5rpx 5rpx 0;
  167. border: 1rpx solid #FB3D03;
  168. text-align: center;
  169. }
  170. }
  171. }
  172. }
  173. </style>