index.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. Page {
  2. width: 100%;
  3. height: 100%;
  4. background-color: #F7F7F7;
  5. }
  6. .container {
  7. width: 100%;
  8. height: 100%;
  9. background-color: #F7F7F7;
  10. /* 门店的标题 */
  11. .shop {
  12. border-top: 1rpx solid #ECECEC;
  13. width: 100%;
  14. background-color: #F7F7F7;
  15. padding-top: 20rpx;
  16. position: fixed;
  17. z-index: 99;
  18. >.title {
  19. display: flex;
  20. justify-content: space-between;
  21. padding: 0 40rpx;
  22. height: 80rpx;
  23. line-height: 80rpx;
  24. background-color: #fff;
  25. }
  26. .shop-info {
  27. width: 100%;
  28. height: 220rpx;
  29. border: 1rpx solid #ECECEC;
  30. display: flex;
  31. flex-direction: row;
  32. justify-content: space-between;
  33. align-items: center;
  34. padding: 20rpx 30rpx;
  35. box-sizing: border-box;
  36. margin-bottom: 10rpx;
  37. background-color: #fff;
  38. >.shopimg {
  39. width: 150rpx;
  40. height: 150rpx;
  41. >.img {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. }
  46. .shopmsg {
  47. flex: 2;
  48. height: 200rpx;
  49. margin-left: 50rpx;
  50. display: flex;
  51. flex-direction: column;
  52. justify-content: space-around;
  53. >.shopview {
  54. display: flex;
  55. justify-content: space-between;
  56. }
  57. /* 处理定位图标上移的问题 */
  58. >.shop-address {
  59. position: relative;
  60. padding-left: 45rpx;
  61. .address-icon {
  62. position: absolute;
  63. top: -6rpx;
  64. left: 0;
  65. }
  66. }
  67. /* 新品促销标签 */
  68. .mark {
  69. width: 105rpx;
  70. height: 30rpx;
  71. line-height: 30rpx;
  72. text-align: center;
  73. border-radius: 30rpx;
  74. }
  75. .discount {
  76. color: #E359A8;
  77. border: 1px solid#E359A8;
  78. }
  79. .new {
  80. border: 1px solid #80CB5F;
  81. color: #80CB5F;
  82. }
  83. }
  84. }
  85. /* 未获得授权时显示获取授权按钮 */
  86. .user-location-btn{
  87. width: 100%;
  88. height: 220rpx;
  89. border-top:1rpx solid #ECECEC ;
  90. background-color: #fff;
  91. position: relative;
  92. .location-btn{
  93. background-color: #ECECEC;
  94. padding: 0;
  95. width: 50%;
  96. height: 50%;
  97. line-height: 100rpx;
  98. color: #21ad50;
  99. position: absolute;
  100. left: 50%;
  101. top: 28%;
  102. transform: translate(-50%);
  103. }
  104. }
  105. }
  106. .product {
  107. overflow-y: auto;
  108. padding-top: 320rpx;
  109. /* .weui-tabs {
  110. .weui-tabs-bar__wrp {
  111. .weui-tabs-bar__content {
  112. height: 100rpx;
  113. line-height: 99rpx;
  114. white-space: nowrap;
  115. display: flex;
  116. justify-content: space-around;
  117. border-bottom: 1rpx solid #ECECEC;
  118. }
  119. }
  120. } */
  121. .productinfo {
  122. width: 95%;
  123. height: 380rpx;
  124. padding: 10rpx 0;
  125. margin: 0 auto;
  126. .product-item {
  127. position: relative;
  128. width: 100%;
  129. height: 380rpx;
  130. border-radius: 20rpx;
  131. background-size: cover;
  132. background-position: center;
  133. .product-desc {
  134. height: 380rpx;
  135. color: #fff;
  136. position: absolute;
  137. color: #fff;
  138. top: 210rpx;
  139. left: 20rpx;
  140. letter-spacing: 2rpx;
  141. font-weight: 100;
  142. }
  143. .order {
  144. position: absolute;
  145. right: 40rpx;
  146. bottom: 20rpx;
  147. width: 100rpx;
  148. height: 100rpx;
  149. border-radius: 50%;
  150. background-color: #098932;
  151. color: #fff;
  152. >view {
  153. width: 70rpx;
  154. height: 70rpx;
  155. line-height: 35rpx;
  156. letter-spacing: 5rpx;
  157. text-align: center;
  158. font-size: 14px;
  159. margin: 18rpx;
  160. }
  161. }
  162. .gray {
  163. background-color: #999;
  164. }
  165. }
  166. &:first-child {
  167. margin-top: 10rpx;
  168. }
  169. }
  170. }
  171. }
  172. .fw700 {
  173. font-weight: 500;
  174. font-size: 18px;
  175. }