shop.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <view class="box">
  3. <view class="topbox">
  4. <view class="sstop">
  5. <image src="../../static/timg/icon_search@2x.png" mode="" class="sstopimg"></image>
  6. <input type="text" placeholder="请输入商品名称" class="sstopInput">
  7. </view>
  8. <scroll-view scroll-x="true" class="scroll-Y" >
  9. <view class="classificationBox">
  10. <view class="classification" v-for="(item,index) in 8">
  11. <view class="classificationName">分类名称一</view>
  12. <view class="classificationHx"></view>
  13. </view>
  14. </view>
  15. </scroll-view>
  16. <view class="paixuBox">
  17. <view class="paixuLine">
  18. 默认排序
  19. </view>
  20. <view class="paixuLine">
  21. 销量
  22. </view>
  23. <view class="paixuLine">
  24. 价格
  25. </view>
  26. </view>
  27. <scroll-view scroll-Y="true" class="scroll-Y goodsSw" >
  28. <view class="goodsBox">
  29. <view class="hotGoodsLine" v-for="(item,index) in 5">
  30. <view>
  31. <image src="../../static/timg/nocar.png" mode="" class="hotGoodsLineImg"></image>
  32. </view>
  33. <view class="hotGoodsLineRIght">
  34. <view class="goodsName">德国马牌 Continental 全新升级6代 TechContct德国马牌 Continental 全新升级6代 TechContct</view>
  35. <view class="Sold">已售 999</view>
  36. <view class="goodsPrice">
  37. <view class="goodsPrice1">店庆价</view>
  38. <view class="goodsPrice2">¥</view>
  39. <view class="goodsPrice3">999</view>
  40. <view class="goodsPrice3">¥893</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </scroll-view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. components: {
  52. },
  53. data() {
  54. return {
  55. userInfo:'',
  56. }
  57. },
  58. onLoad() {
  59. this.userInfo = uni.getStorageSync("userInfo");
  60. //this.getOrderTimes()
  61. },
  62. methods: {
  63. }
  64. }
  65. </script>
  66. <style scoped lang="less">
  67. .box{
  68. background: #F4F5F7;
  69. min-height: 100vh;
  70. }
  71. .sstopInput{
  72. width: 626rpx;
  73. height: 72rpx;
  74. background: #F4F5F7;
  75. border-radius: 36rpx;
  76. line-height: 72rpx;
  77. font-size: 28rpx;
  78. padding-left: 76rpx;
  79. }
  80. .sstop{
  81. position: relative;
  82. padding-top: 24rpx;
  83. padding-left: 24rpx;
  84. background: #ffffff;
  85. }
  86. .sstopimg{
  87. width: 40rpx;
  88. height: 40rpx;
  89. position: absolute;
  90. left: 44rpx;
  91. top: 40rpx;
  92. }
  93. .scroll-Y{
  94. background: #ffffff;
  95. width: 750rpx;
  96. }
  97. .classificationBox{
  98. display: flex;
  99. padding-bottom: 12rpx;
  100. }
  101. .classificationName{
  102. white-space: nowrap;
  103. font-size: 28rpx;
  104. color: #3C3C3C;
  105. line-height: 40rpx;
  106. padding:24rpx 24rpx 8rpx 24rpx;
  107. }
  108. .classificationHx{
  109. width: 40rpx;
  110. height: 4rpx;
  111. background: #F03B3B;
  112. margin: 0 auto;
  113. }
  114. .paixuBox{
  115. width: 750rpx;
  116. height: 72rpx;
  117. background: #FFFFFF;
  118. margin-top: 20rpx;
  119. display: flex;
  120. justify-content: space-around;
  121. }
  122. .paixuLine{
  123. line-height: 37rpx;font-size: 26rpx;color: #666666;padding-top: 18rpx;
  124. }
  125. .hotGoodsLine{
  126. margin-top: 20rpx;
  127. padding: 20rpx;
  128. background: #FFFFFF;
  129. border-radius: 16rpx;
  130. display: flex;
  131. }
  132. .hotGoodsLineImg{
  133. width: 208rpx;
  134. height: 194rpx;
  135. border-radius: 16rpx;
  136. border: 1px solid #EEEEEE;
  137. }
  138. .goodsName{
  139. font-size: 28rpx;
  140. font-family: PingFangSC-Regular, PingFang SC;
  141. font-weight: 400;
  142. color: #333333;
  143. line-height: 40rpx;
  144. text-overflow: -o-ellipsis-lastline;
  145. overflow: hidden;
  146. text-overflow: ellipsis;
  147. display: -webkit-box;
  148. -webkit-line-clamp: 2;
  149. line-clamp: 2;
  150. -webkit-box-orient: vertical;
  151. }
  152. .hotGoodsLineRIght{
  153. padding-left: 24rpx;
  154. }
  155. .goodsPrice{
  156. display: flex;
  157. padding-top: 10rpx;
  158. }
  159. .goodsPrice1{
  160. font-size: 24rpx;
  161. font-weight: 400;
  162. color: #F03B3B;
  163. }
  164. .goodsPrice2{
  165. font-size: 22rpx;
  166. font-weight: 400;
  167. color: #F03B3B;
  168. }
  169. .goodsPrice3{
  170. font-size: 32rpx;
  171. font-weight: 400;
  172. color: #F03B3B;
  173. }
  174. .goodsPrice3{
  175. font-size: 24rpx;
  176. font-weight: 400;
  177. color: #999999;
  178. }
  179. .Sold{
  180. font-weight: 400;
  181. color: #999999;
  182. font-size: 24rpx;
  183. padding-top: 8rpx;
  184. }
  185. </style>