时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
5.3 KiB

  1. <template>
  2. <view>
  3. <!-- 商品图片轮播 -->
  4. <swiper :current="current" :indicator-dots="true" :circular="true" class="swiper-box">
  5. <swiper-item>
  6. <image src="../../static/tu.png" style="width: 100%; height: 100%;"></image>
  7. </swiper-item>
  8. <swiper-item>
  9. <image src="../../static/tu.png" style="width: 100%; height: 100%;"></image>
  10. </swiper-item>
  11. </swiper>
  12. <!-- 商品主要信息 -->
  13. <view class="head-info">
  14. <view class="lf-font-40">网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季 网红优惠季 网红优惠季 </view>
  15. <view class="lf-row-between lf-font-24 lf-m-t-30 lf-p-b-20">
  16. <view class="lf-flex price">
  17. <view>¥ 19.90</view>
  18. <view>¥ 39.00</view>
  19. <view>2.9</view>
  20. </view>
  21. <view>
  22. <view class="lf-color-gray">已售4.5万份</view>
  23. <view class="lf-color-primary">库存仅剩98份</view>
  24. </view>
  25. </view>
  26. <view class="label-box">
  27. <view class="label-item">过期退</view>
  28. <view class="label-item">满减优惠</view>
  29. <view class="label-item">信用付</view>
  30. </view>
  31. </view>
  32. <!-- 地址信息 -->
  33. <view class="address-box">
  34. <view class="lf-font-32 lf-font-bold">适用门店</view>
  35. <view class="lf-m-t-20 lf-row-between">
  36. <view class="lf-flex">
  37. <image class="lf-fle shop-img" src="../../static/tu.png"></image>
  38. <view class="lf-font-32 lf-m-l-20" style="max-width: 512rpx;">李大叔家的店的店的店的店的店</view>
  39. </view>
  40. <u-icon name="phone" color="#3A62FF" size="46"></u-icon>
  41. </view>
  42. <view class="lf-flex lf-m-t-20">
  43. <u-icon name="map-fill" size="60"></u-icon>
  44. <view class="lf-m-l-20 lf-font-32">南宁市青秀区 金湖广场 金浦路 地铁1号线A出口 右转200米</view>
  45. </view>
  46. </view>
  47. <!-- 商品详情 -->
  48. <view class="goods-detail">
  49. <view class="lf-font-32 lf-font-bold lf-m-b-20">商品详情</view>
  50. <image class="goods-img" src="../../static/tu.png"></image>
  51. <image class="goods-img" src="../../static/tu.png"></image>
  52. </view>
  53. <!-- 修饰专用 -->
  54. <view class="extra"></view>
  55. <!-- 吸底操作按钮 -->
  56. <view class="lf-row-between fixed-bottom">
  57. <view class="lf-flex lf-p-t-10 lf-p-b-10">
  58. <view class="lf-flex-column lf-row-center icon-item">
  59. <u-icon name="home" size="50"></u-icon>
  60. <view class="lf-m-t-1">首页</view>
  61. </view>
  62. <view class="lf-flex-column lf-row-center icon-item">
  63. <u-icon name="server-fill" size="50"></u-icon>
  64. <view class="lf-m-t-1">客服</view>
  65. </view>
  66. <view class="lf-flex-column lf-row-center icon-item">
  67. <u-icon name="heart" size="50"></u-icon>
  68. <view class="lf-m-t-1">收藏</view>
  69. </view>
  70. <view class="lf-flex-column lf-row-center icon-item">
  71. <u-icon name="share" size="50"></u-icon>
  72. <view class="lf-m-t-1">分享</view>
  73. </view>
  74. </view>
  75. <button class="btn">立即抢购</button>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. export default {
  81. data(){
  82. return {
  83. current: 0 // 轮播下标
  84. }
  85. },
  86. onLoad(){
  87. },
  88. methods: {
  89. }
  90. }
  91. </script>
  92. <style>
  93. page{
  94. background-color: #f5f5f5;
  95. overflow-x: hidden;
  96. }
  97. </style>
  98. <style lang="scss" scoped="scoped">
  99. .swiper-box{
  100. width: 750rpx;
  101. height: 520rpx;
  102. background-color: #FFFFFF;
  103. }
  104. .head-info{
  105. width: 750rpx;
  106. height: auto;
  107. box-sizing: border-box;
  108. padding: 0 32rpx;
  109. padding-top: 20rpx;
  110. background-color: #FFFFFF;
  111. .price>view:nth-of-type(1){
  112. color: #FF0000;
  113. font-size: 40rpx;
  114. margin-right: 22rpx;
  115. }
  116. .price>view:nth-of-type(2){
  117. text-decoration: line-through;
  118. color: #777777;
  119. margin-right: 22rpx;
  120. }
  121. .price>view:nth-of-type(3){
  122. width: max-content;
  123. padding: 0 18rpx;
  124. height: 46rpx;
  125. background-color: #FE9903;
  126. border-radius: 10rpx;
  127. display: flex;
  128. justify-content: center;
  129. align-items: center;
  130. color: #FFFFFF;
  131. }
  132. .label-box{
  133. min-height: 130rpx;
  134. width: 100%;
  135. border-top: 1rpx solid #E5E5E5;
  136. display: flex;
  137. flex-wrap: wrap;
  138. padding: 30rpx 0 10rpx 0;
  139. .label-item{
  140. width: 156rpx;
  141. height: 70rpx;
  142. border-radius: 10rpx;
  143. border: 2rpx solid #FE9903;
  144. display: flex;
  145. justify-content: center;
  146. align-items: center;
  147. font-size: 28rpx;
  148. color: #FE9903;
  149. margin-right: 20rpx;
  150. margin-bottom: 20rpx;
  151. }
  152. }
  153. }
  154. .address-box{
  155. width: 750rpx;
  156. height: auto;
  157. box-sizing: border-box;
  158. background-color: #FFFFFF;
  159. padding: 32rpx;
  160. margin-top: 20rpx;
  161. .shop-img{
  162. width: 60rpx;
  163. height: 60rpx;
  164. border-radius: 10rpx;
  165. }
  166. }
  167. .goods-detail{
  168. width: 750rpx;
  169. height: auto;
  170. background-color: #FFFFFF;
  171. padding: 32rpx;
  172. box-sizing: border-box;
  173. margin-top: 20rpx;
  174. .goods-img{
  175. width: 100%;
  176. }
  177. }
  178. .extra{
  179. width: 100%;
  180. height: 120rpx;
  181. padding-bottom: constant(safe-area-inset-bottom);
  182. padding-bottom: env(safe-area-inset-bottom);
  183. box-sizing: content-box;
  184. }
  185. .fixed-bottom{
  186. position: fixed;
  187. bottom: 0;
  188. left: 0;
  189. background-color: #FFFFFF;
  190. width: 100%;
  191. height: auto;
  192. padding: 0 32rpx;
  193. border-top: 1rpx solid #e5e5e5;
  194. padding-bottom: constant(safe-area-inset-bottom);
  195. padding-bottom: env(safe-area-inset-bottom);
  196. .icon-item{
  197. padding: 0 10rpx;
  198. margin-right: 16rpx;
  199. }
  200. .btn{
  201. margin: 0;
  202. padding: 0;
  203. width: 208rpx;
  204. height: 80rpx;
  205. background-color: #FE9903;
  206. color: #FFFFFF;
  207. line-height: 80rpx;
  208. font-size: 32rpx;
  209. border-radius: 42rpx;
  210. }
  211. }
  212. </style>