index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view :class="['qn-page-' + theme]">
  3. <view class="group-ul">
  4. <view class="group-li clearfix" @click="goPage('/pageT/goodsGroup/goodsGroupDetail?id=1')">
  5. <view class="float_left">
  6. <scroll-view scroll-x="true" class="left-scroll">
  7. <view class="goods-ul">
  8. <view class="goods-li">
  9. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  10. <view class="goods-name ellipsis">测试商品测试商品</view>
  11. </view>
  12. <view class="plus-icon">
  13. <u-icon name="plus" color="#cecece" size="28"></u-icon>
  14. </view>
  15. <view class="goods-li">
  16. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  17. <view class="goods-name ellipsis">测试商品测试商品</view>
  18. </view>
  19. <view class="plus-icon">
  20. <u-icon name="plus" color="#cecece" size="28"></u-icon>
  21. </view>
  22. <view class="goods-li">
  23. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  24. <view class="goods-name ellipsis">测试商品测试商品</view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <view class="float_left dy-icon">
  30. <text class="ibonfont ibonicon"></text>
  31. </view>
  32. <view class="float_left price-right">
  33. <view class="group-price">
  34. <text>套餐价</text>
  35. <text class="primary-color">¥100.00</text>
  36. </view>
  37. <view class="save-price primary-color">
  38. 可省¥288.00
  39. </view>
  40. <view class="buy-btn primary-btn">
  41. 立即购买
  42. </view>
  43. </view>
  44. </view>
  45. <view class="group-li clearfix">
  46. <view class="float_left">
  47. <scroll-view scroll-x="true" class="left-scroll">
  48. <view class="goods-ul">
  49. <view class="goods-li">
  50. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  51. <view class="goods-name ellipsis">测试商品测试商品</view>
  52. </view>
  53. <view class="plus-icon">
  54. <u-icon name="plus" color="#cecece" size="28"></u-icon>
  55. </view>
  56. <view class="goods-li">
  57. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  58. <view class="goods-name ellipsis">测试商品测试商品</view>
  59. </view>
  60. <view class="plus-icon">
  61. <u-icon name="plus" color="#cecece" size="28"></u-icon>
  62. </view>
  63. <view class="goods-li">
  64. <image src="https://onlineimg.qianniao.vip/audit_img.jpg" mode="aspectFill"></image>
  65. <view class="goods-name ellipsis">测试商品测试商品</view>
  66. </view>
  67. </view>
  68. </scroll-view>
  69. </view>
  70. <view class="float_left dy-icon">
  71. <text class="ibonfont ibonicon"></text>
  72. </view>
  73. <view class="float_left price-right">
  74. <view class="group-price">
  75. <text>套餐价</text>
  76. <text class="primary-color">¥100.00</text>
  77. </view>
  78. <view class="save-price primary-color">
  79. 可省¥288.00
  80. </view>
  81. <view class="buy-btn primary-btn">
  82. 立即购买
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. </script>
  91. <style lang="scss" scoped>
  92. .group-ul{
  93. padding: 20rpx;
  94. .group-li{
  95. background-color: #FFFFFF;
  96. border-radius: 12rpx;
  97. padding: 20rpx;
  98. margin-bottom: 20rpx;
  99. .float_left{
  100. .left-scroll{
  101. width: 430rpx;
  102. white-space: nowrap;
  103. .goods-li{
  104. display: inline-block;
  105. vertical-align: middle;
  106. image{
  107. display: block;
  108. width: 150rpx;
  109. height: 150rpx;
  110. border-radius: 10rpx;
  111. margin: 0 auto;
  112. }
  113. text-align: center;
  114. .goods-name{
  115. width: 150rpx;
  116. height: 36rpx;
  117. line-height: 36rpx;
  118. margin-top: 10rpx;
  119. font-size: 24rpx;
  120. -webkit-line-clamp: 1;
  121. }
  122. }
  123. .plus-icon{
  124. vertical-align: middle;
  125. display: inline-block;
  126. line-height: 150rpx;
  127. padding: 0 10rpx;
  128. height: 200rpx;
  129. }
  130. }
  131. }
  132. .dy-icon{
  133. padding: 0 10rpx;
  134. line-height: 150rpx;
  135. padding: 0 10rpx;
  136. height: 200rpx;
  137. color: #cecece;
  138. .ibonicon{
  139. font-size: 26rpx;
  140. }
  141. }
  142. .price-right{
  143. color: #666666;
  144. font-size: 24rpx;
  145. text-align: center;
  146. width: 190rpx;
  147. .group-price{
  148. .primary-color{
  149. font-weight: 700;
  150. font-size: 28rpx;
  151. }
  152. }
  153. .save-price{
  154. padding: 10rpx 0;
  155. }
  156. .buy-btn{
  157. line-height: 56rpx;
  158. height: 56rpx;
  159. border-radius: 8rpx;
  160. text-align: center;
  161. color: #FFFFFF;
  162. width: 150rpx;
  163. margin: 10rpx auto 0;
  164. }
  165. }
  166. }
  167. }
  168. </style>