index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <template>
  2. <view class="content">
  3. <view class="store-header">
  4. <view class="home-store">
  5. <view class="store-logo"><image src="/static/logo.jpg"></image></view>
  6. <view class="store-info">
  7. <view class="name">桃奢妍商业广场</view>
  8. <view class="desc">广东省/广州市/增城区</view>
  9. </view>
  10. <view class="store-kf">联系客服</view>
  11. </view>
  12. <view class="store-address">
  13. <view class="address-info">
  14. <image src="/static/image/location.svg"></image>
  15. <view class="address">天乐社区服务中心蜀山新产业园区海亮九玺海亮九玺南区</view>
  16. </view>
  17. <view class="store-time">营业 08:00–22:30</view>
  18. </view>
  19. </view>
  20. <scroll-view class="home-goods" scroll-y scroll-with-animation>
  21. <view class="goods-title">
  22. <view class="title-left">
  23. <text>HOT DEALS</text>
  24. <view class="name">正在抢购</view>
  25. </view>
  26. <view class="title-more">全部商品 <image src="/static/image/right.svg"></image> </view>
  27. </view>
  28. <view class="goods-list">
  29. <view class="list-item" v-for="(item,index) in 10" :key="index">
  30. <view class="image">
  31. <image src="https://washmy.oss-cn-guangzhou.aliyuncs.com/storage/20260727/2e9fd491e2def96b0dd0677f43d7a31913cf959e.png"></image>
  32. <text>2.7折</text>
  33. </view>
  34. <view class="info">
  35. <view class="title">赫莲娜/HR黑绷带50ml小露珠200ml两件套 线下兑换券</view>
  36. <view class="tags"></view>
  37. <view class="tags">已售0</view>
  38. <view class="price-btn">
  39. <view class="price">¥799.00</view>
  40. <view class="price-line">¥2,999.00</view>
  41. <view class="buy-btn">立即抢购</view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </scroll-view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. title: 'Hello'
  54. }
  55. },
  56. onLoad() {
  57. },
  58. methods: {
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .content{
  64. position: fixed;
  65. z-index: 1;
  66. top: 0;
  67. left: 0;
  68. bottom: 0;
  69. right: 0;
  70. background-color: #ededed;
  71. display: flex;
  72. flex-direction: column;
  73. }
  74. .home-store{
  75. background-color: $main-color;
  76. padding: 20rpx;
  77. display: flex;
  78. align-items: center;
  79. gap: 20rpx;
  80. image {
  81. width: 92rpx;
  82. height: 92rpx;
  83. border: 2rpx solid #fff;
  84. border-radius: 20rpx;
  85. }
  86. .store-info{
  87. flex: 1;
  88. .name {
  89. color: #fff;
  90. font-weight: bold;
  91. font-size: 32rpx;
  92. }
  93. .desc {
  94. color: $main-sub-color;
  95. font-size: 28rpx;
  96. margin-top: 10rpx;
  97. }
  98. }
  99. .store-kf{
  100. background-color: #fff;
  101. color: $main-color;
  102. font-size: 24rpx;
  103. padding: 20rpx 30rpx;
  104. border-radius: 40rpx;
  105. }
  106. }
  107. .store-address {
  108. display: flex;
  109. align-self: center;
  110. width: calc(100% - 40rpx);
  111. margin: 0 auto;
  112. box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
  113. background-color: #fff;
  114. border-bottom-right-radius:20rpx;
  115. border-bottom-left-radius:20rpx;
  116. padding: 20rpx 20rpx;
  117. gap: 20rpx;
  118. color: #475569;
  119. .address-info {
  120. flex: 1 1 0%;
  121. display: flex;
  122. align-items: center;
  123. gap: 10rpx;
  124. overflow: hidden;
  125. image {
  126. width: 40rpx;
  127. height: 40rpx;
  128. }
  129. .address{
  130. flex: 1;
  131. overflow: hidden;
  132. text-overflow: ellipsis;
  133. white-space: nowrap;
  134. }
  135. }
  136. .store-time{
  137. color: #94a3b8;
  138. }
  139. }
  140. .home-goods{
  141. height: 0;
  142. flex: 1;
  143. width: 95%;
  144. margin: 20rpx auto;
  145. .list-item{
  146. display: flex;
  147. align-items: center;
  148. gap: 20rpx;
  149. background-color: #fff;
  150. padding: 20rpx;
  151. margin-top: 20rpx;
  152. border-radius: 20rpx;
  153. .info{
  154. flex: 1 1 0%;
  155. overflow: hidden;
  156. .title{
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. white-space: nowrap;
  160. font-size: 32rpx;
  161. color: #333;
  162. font-weight: 900;
  163. }
  164. .tags {
  165. color: #94a3b8;
  166. font-size: 24rpx;
  167. margin: 10rpx 0;
  168. }
  169. .price-btn{
  170. display: flex;
  171. align-items: center;
  172. gap: 20rpx;
  173. align-items: flex-end;
  174. .price{
  175. font-size: 30rpx;
  176. color: $main-color;
  177. font-weight: 900;
  178. }
  179. .price-line {
  180. color: #999999;font-size: 24rpx;text-decoration-line: line-through;
  181. }
  182. .buy-btn{
  183. margin-left: auto;
  184. margin-right: 0;
  185. background-color: $main-color;
  186. color: #fff;
  187. border-radius: 30rpx;
  188. font-size: 28rpx;
  189. padding: 10rpx 20rpx;
  190. }
  191. }
  192. }
  193. .image {
  194. height: 180rpx;
  195. overflow: hidden;display: flex;align-items: center;min-width: 180rpx;
  196. position: relative;
  197. text {
  198. background-color: $main-color;
  199. color: #fff;
  200. position: absolute;
  201. top: 10rpx;
  202. left: 10rpx;
  203. font-size: 24rpx;
  204. border-radius: 30rpx;
  205. padding: 10rpx 15rpx;
  206. }
  207. image {
  208. width: 180rpx;
  209. border-radius: 10upx;
  210. height: 100%;
  211. }
  212. }
  213. }
  214. .goods-title{
  215. display: flex;
  216. align-items: center;
  217. justify-content: space-between;
  218. .title-left{
  219. .name {
  220. font-size: 34rpx;
  221. color: #333;
  222. font-weight: 900;
  223. }
  224. text {
  225. color: $main-color;
  226. font-weight: 700;
  227. font-size: 24rpx;
  228. }
  229. }
  230. .title-more{
  231. display: flex;
  232. align-items: center;
  233. color: #94a3b8;
  234. font-size: 28rpx;
  235. image {
  236. width: 28rpx;
  237. height: 28rpx;
  238. }
  239. }
  240. }
  241. }
  242. </style>