ZuheList.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="container commodity-list-wrapper" :style="{'overflow':(showSkeleton? 'hidden' : 'auto'),'height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  3. <view class="good-search clearfix" v-if="searchStatus">
  4. <view id="shop">
  5. <view class="style addstyle ">单一商品</view>
  6. <view class="style zuhe">组合商品</view>
  7. </view>
  8. <view class="search-from name">
  9. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  10. <input class="input"
  11. type="text"
  12. focus
  13. confirm-type="search"
  14. v-model="searchInputVal"
  15. placeholder="请输入商品关键词"
  16. @input="onShowClose"
  17. @confirm="searchOpertor"
  18. maxlength="20"/>
  19. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  20. </view>
  21. <view class="search-btn">
  22. <button class="search-btn" type="default" @click.stop="searchOpertor">搜索</button>
  23. </view>
  24. </view>
  25. <list-skeleton v-if="showSkeleton"></list-skeleton>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. components: {
  31. },
  32. data() {
  33. return {
  34. };
  35. },
  36. }
  37. </script>
  38. <style>
  39. .commodity-list-wrapper {
  40. scroll-view {
  41. height: 100%;
  42. }
  43. .style{
  44. width: 128rpx;
  45. height: 64rpx;
  46. background: #fff;
  47. font-size: 26rpx;
  48. display: inline-block;
  49. border-radius: 10rpx;
  50. text-align: center;
  51. line-height: 64rpx;
  52. border: 2rpx solid #EEEEEE;
  53. position: relative;
  54. margin-right: 12rpx;
  55. }
  56. .danyi i{
  57. color: #E15616;
  58. position: absolute;
  59. top: 20rpx;
  60. right: 4rpx;
  61. font-weight: bold
  62. }
  63. .addstyle{
  64. background: linear-gradient(-42deg, transparent 28rpx, #E15616 0) top right;
  65. color: #FFFFFF;
  66. }
  67. .show-more-btn {
  68. width: 276rpx;
  69. height: 52rpx;
  70. line-height: 52rpx;
  71. border: 2rpx solid #D8D8D8;
  72. background: #F7F7F7;
  73. font-size: 26rpx;
  74. margin: 26rpx 0;
  75. position: absolute;
  76. left: 50%;
  77. margin-left: -138rpx;
  78. }
  79. }
  80. .good-search{
  81. height: 64rpx;
  82. width: 702rpx;
  83. padding: 24rpx;
  84. background: #FFFFFF;
  85. display: flex;
  86. align-items: center;
  87. margin-bottom: 20rpx;
  88. position: fixed;
  89. top: 0;
  90. left: 0;
  91. z-index: 999;
  92. .search-from{
  93. width: 330rpx;
  94. height: 64rpx;
  95. background: #F7F7F7;
  96. border-radius: 14rpx;
  97. float: left;
  98. position: relative;
  99. .input{
  100. // width: 500rpx;
  101. height: 64rpx;
  102. float: left;
  103. line-height: 64rpx;
  104. color: $text-color;
  105. font-size: $font-size-24;
  106. }
  107. .icon-iconfonticonfontsousuo1{
  108. width: 64rpx;
  109. height: 64rpx;
  110. line-height: 64rpx;
  111. text-align: center;
  112. display: block;
  113. font-size: $font-size-38;
  114. float: left;
  115. color: #999999;
  116. }
  117. .icon-shanchu1{
  118. font-size: $font-size-32;
  119. color: #999999;
  120. position: absolute;
  121. width: 64rpx;
  122. height: 64rpx;
  123. line-height: 64rpx;
  124. top: 0;
  125. right: 0;
  126. text-align: center;
  127. z-index: 10;
  128. }
  129. }
  130. .search-btn{
  131. // width: 90rpx;
  132. line-height: 64rpx;
  133. text-align: center;
  134. font-size: $font-size-28;
  135. color: $color-system;
  136. float: left;
  137. background: #FFFFFF;
  138. margin-left: 10rpx
  139. }
  140. }
  141. }
  142. </style>