时空网前端
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.

221 lines
5.4 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. goods_id: 0
  85. }
  86. },
  87. onLoad(options){
  88. this.goods_id = options.id;
  89. },
  90. methods: {
  91. }
  92. }
  93. </script>
  94. <style>
  95. page{
  96. background-color: #f5f5f5;
  97. overflow-x: hidden;
  98. }
  99. </style>
  100. <style lang="scss" scoped="scoped">
  101. .swiper-box{
  102. width: 750rpx;
  103. height: 520rpx;
  104. background-color: #FFFFFF;
  105. }
  106. .head-info{
  107. width: 750rpx;
  108. height: auto;
  109. box-sizing: border-box;
  110. padding: 0 32rpx;
  111. padding-top: 20rpx;
  112. background-color: #FFFFFF;
  113. .price>view:nth-of-type(1){
  114. color: #FF0000;
  115. font-size: 40rpx;
  116. margin-right: 22rpx;
  117. }
  118. .price>view:nth-of-type(2){
  119. text-decoration: line-through;
  120. color: #777777;
  121. margin-right: 22rpx;
  122. }
  123. .price>view:nth-of-type(3){
  124. width: max-content;
  125. padding: 0 18rpx;
  126. height: 46rpx;
  127. background-color: #FE9903;
  128. border-radius: 10rpx;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. color: #FFFFFF;
  133. }
  134. .label-box{
  135. min-height: 130rpx;
  136. width: 100%;
  137. border-top: 1rpx solid #E5E5E5;
  138. display: flex;
  139. flex-wrap: wrap;
  140. padding: 30rpx 0 10rpx 0;
  141. .label-item{
  142. width: 156rpx;
  143. height: 70rpx;
  144. border-radius: 10rpx;
  145. border: 2rpx solid #FE9903;
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. font-size: 28rpx;
  150. color: #FE9903;
  151. margin-right: 20rpx;
  152. margin-bottom: 20rpx;
  153. }
  154. }
  155. }
  156. .address-box{
  157. width: 750rpx;
  158. height: auto;
  159. box-sizing: border-box;
  160. background-color: #FFFFFF;
  161. padding: 32rpx;
  162. margin-top: 20rpx;
  163. .shop-img{
  164. width: 60rpx;
  165. height: 60rpx;
  166. border-radius: 10rpx;
  167. }
  168. }
  169. .goods-detail{
  170. width: 750rpx;
  171. height: auto;
  172. background-color: #FFFFFF;
  173. padding: 32rpx;
  174. box-sizing: border-box;
  175. margin-top: 20rpx;
  176. .goods-img{
  177. width: 100%;
  178. }
  179. }
  180. .extra{
  181. width: 100%;
  182. height: 120rpx;
  183. padding-bottom: constant(safe-area-inset-bottom);
  184. padding-bottom: env(safe-area-inset-bottom);
  185. box-sizing: content-box;
  186. }
  187. .fixed-bottom{
  188. position: fixed;
  189. bottom: 0;
  190. left: 0;
  191. background-color: #FFFFFF;
  192. width: 100%;
  193. height: auto;
  194. padding: 0 32rpx;
  195. border-top: 1rpx solid #e5e5e5;
  196. padding-bottom: constant(safe-area-inset-bottom);
  197. padding-bottom: env(safe-area-inset-bottom);
  198. .icon-item{
  199. padding: 0 10rpx;
  200. margin-right: 16rpx;
  201. }
  202. .btn{
  203. margin: 0;
  204. padding: 0;
  205. width: 208rpx;
  206. height: 80rpx;
  207. background-color: #FE9903;
  208. color: #FFFFFF;
  209. line-height: 80rpx;
  210. font-size: 32rpx;
  211. border-radius: 42rpx;
  212. }
  213. }
  214. </style>