detail.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /**
  2. * 头部
  3. */
  4. .header {
  5. background-repeat: no-repeat;
  6. background-position: center;
  7. background-size: cover;
  8. border-bottom-left-radius: 100rpx;
  9. border-bottom-right-radius: 100rpx;
  10. height: 310rpx;
  11. /* #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU */
  12. height: 360rpx;
  13. /* #endif */
  14. }
  15. /**
  16. * 顶部
  17. */
  18. .header-top {
  19. padding-right: 250rpx;
  20. /* #ifdef MP-ALIPAY || MP-TOUTIAO */
  21. padding-top: 20rpx !important;
  22. padding-right: 20rpx;
  23. /* #endif */
  24. /* #ifdef H5 || APP */
  25. padding-right: 20rpx;
  26. /* #endif */
  27. padding-bottom: 10px;
  28. }
  29. .nav-back {
  30. width: 30px;
  31. background: rgb(0 0 0 / 60%);
  32. height: 30px;
  33. line-height: 30px;
  34. }
  35. .nav-search {
  36. width: calc(100% - 90rpx);
  37. /* #ifdef MP-ALIPAY || MP-TOUTIAO || H5 || APP */
  38. width: 100%;
  39. /* #endif */
  40. }
  41. /**
  42. * 头部内容
  43. */
  44. .header-content {
  45. top: 140rpx;
  46. /* #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU */
  47. top: 200rpx;
  48. /* #endif */
  49. width: calc(100% - 80rpx);
  50. box-shadow: 0 0 8px rgb(0 0 0 / 6%);
  51. }
  52. .header-content .address-content {
  53. width: calc(100% - 220rpx);
  54. }
  55. .header-content .icon-list {
  56. right: 20rpx;
  57. bottom: 20rpx;
  58. }
  59. .header-content .icon-list .icon-item {
  60. width: 50rpx;
  61. height: 50rpx;
  62. line-height: 50rpx;
  63. }
  64. .header-content .icon-item .badge-icon {
  65. top: -10px;
  66. right: 2px;
  67. }
  68. .header-content .icon-list .icon-item:not(:last-child) {
  69. margin-right: 15rpx;
  70. }
  71. .header-content .logo {
  72. width: 110rpx;
  73. height: 110rpx !important;
  74. }
  75. .header-content .base-right {
  76. width: calc(100% - 130rpx);
  77. }
  78. .header-content .base-right .title-length-limit {
  79. width: calc(100% - 110rpx);
  80. }
  81. .header-content .base-right .use-type-icon {
  82. border-top-left-radius: 50rpx;
  83. border-bottom-left-radius: 50rpx;
  84. top: 20rpx;
  85. right: -1px;
  86. padding: 5rpx 20rpx;
  87. box-shadow: -1px 1px 3px rgb(0 0 0 / 10%);
  88. }
  89. /**
  90. * 桌码
  91. */
  92. .tablecode {
  93. background: rgb(255 255 255 / 60%);
  94. padding: 2rpx 20rpx;
  95. /* #ifdef MP-ALIPAY || MP-TOUTIAO */
  96. margin-top: 15rpx;
  97. /* #endif */
  98. }
  99. /**
  100. * 中间内容
  101. */
  102. .content {
  103. margin-top: 80rpx;
  104. height: calc(100vh - 440rpx);
  105. /* #ifdef H5 || APP */
  106. height: calc(100vh - 390rpx);
  107. /* #endif */
  108. /* #ifdef MP-ALIPAY || MP-TOUTIAO */
  109. height: calc(100vh - 400rpx);
  110. /* #endif */
  111. }
  112. /**
  113. * 左侧导航
  114. */
  115. .left-content-actual {
  116. padding-bottom: 120rpx;
  117. }
  118. .left-content {
  119. width: 180rpx;
  120. }
  121. .left-content .item {
  122. height: 80rpx;
  123. line-height: 80rpx;
  124. padding: 0 10rpx;
  125. border-left: 3px solid #fff;
  126. border-right: 3px solid #fff;
  127. overflow: hidden;
  128. }
  129. .left-content .item:not(:last-child) {
  130. border-bottom: 1px solid #f1f1f1 !important;
  131. }
  132. .left-content .active {
  133. background: #f5f5f5;
  134. border-width: 0 0 0 3px;
  135. border-right: 3px solid #f5f5f5 !important;
  136. }
  137. .left-content .badge-icon {
  138. top: -16rpx;
  139. right: 26rpx;
  140. }
  141. /**
  142. * 右侧内容
  143. */
  144. .right-content-actual {
  145. padding-bottom: calc(105rpx + env(safe-area-inset-bottom));
  146. }
  147. .right-content {
  148. width: calc(100% - 220rpx);
  149. }
  150. .right-content-actual .word-list {
  151. position: sticky;
  152. top: 0;
  153. right: 0;
  154. background: #f5f5f5;
  155. z-index: 1;
  156. padding: 0 1px 20rpx 1px;
  157. }
  158. .goods-list .goods-img {
  159. width: 160rpx;
  160. height: 160rpx !important;
  161. }
  162. .goods-list .goods-base {
  163. width: calc(100% - 180rpx);
  164. }
  165. .goods-list .goods-base-content {
  166. min-height: 100rpx;
  167. }
  168. .goods-list .goods-base .simple-desc {
  169. line-height: 30rpx;
  170. min-height: 30rpx;
  171. max-height: 58rpx;
  172. }
  173. .goods-list .goods-base .sales-price {
  174. width: calc(100% - 160rpx);
  175. }
  176. .goods-list .goods-base .buy-number {
  177. min-width: 32rpx;
  178. }
  179. /**
  180. * 底部导航
  181. */
  182. .botton-nav {
  183. width: calc(100% - 40rpx);
  184. left: auto;
  185. bottom: calc(20rpx + env(safe-area-inset-bottom));
  186. line-height: 80rpx;
  187. z-index: 6;
  188. max-width: calc(800px - 40rpx);
  189. margin-left: 20rpx;
  190. }
  191. .botton-nav .cart .badge-icon {
  192. top: -20rpx;
  193. right: -2rpx;
  194. }
  195. .botton-nav .cart-total-price {
  196. width: calc(100% - 260rpx);
  197. }
  198. .botton-nav button {
  199. top: 0;
  200. right: 0;
  201. line-height: 88rpx;
  202. height: 88rpx;
  203. border: 0;
  204. /* #ifdef MP-QQ */
  205. padding-top: 0;
  206. padding-bottom: 0;
  207. /* #endif */
  208. }
  209. /**
  210. * 购物车
  211. */
  212. .cart-mask {
  213. left: 0;
  214. top: 0;
  215. background: rgb(0, 0, 0, 0.6);
  216. z-index: 5;
  217. }
  218. .cart-content {
  219. left: 20rpx;
  220. bottom: calc(130rpx + env(safe-area-inset-bottom));
  221. width: calc(100% - 40rpx);
  222. z-index: 6;
  223. max-width: calc(800px - 40rpx);
  224. }
  225. .cart-content .cart-list {
  226. max-height: 60vh;
  227. }
  228. .cart-content .cart-list .goods-img {
  229. width: 120rpx;
  230. height: 120rpx !important;
  231. }
  232. .cart-content .cart-list .goods-base {
  233. width: calc(100% - 140rpx);
  234. }
  235. .cart-content .cart-list .goods-base-content {
  236. min-height: 60rpx;
  237. }