style.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. .red {
  2. color: $jd-color;
  3. }
  4. page {
  5. background: #fff;
  6. }
  7. .num-icon {
  8. position: absolute;
  9. right: 5rpx;
  10. top: 5rpx;
  11. padding: 2rpx 6rpx;
  12. border-top: 4rpx;
  13. border: 2rpx solid $jd-color;
  14. color: $jd-color;
  15. font-size: 22rpx;
  16. border-radius: 200px;
  17. line-height: 18rpx;
  18. }
  19. .detail-btn {
  20. display: flex;
  21. align-items: center;
  22. > .to-buy {
  23. background-image: linear-gradient(135deg, #ffba0d, #ffc30d 69%, #ffcf0d);
  24. }
  25. > .to-store-car {
  26. background-image: linear-gradient(135deg, #f2140c, #f2270c 70%, #f24d0c);
  27. }
  28. > .to-store-btn {
  29. flex: 1;
  30. width: 100%;
  31. margin: 0 5rpx;
  32. height: 80rpx;
  33. text-align: center;
  34. line-height: 80rpx;
  35. color: #fff;
  36. font-size: 26rpx;
  37. border-radius: 214px;
  38. padding: 0;
  39. }
  40. > .pt-buy {
  41. line-height: 1.2;
  42. display: flex;
  43. align-items: center;
  44. flex-direction: column;
  45. justify-content: center;
  46. font-size: 22rpx;
  47. }
  48. }
  49. .desc-bold {
  50. flex: 8;
  51. font-weight: 700;
  52. color: #262626;
  53. line-height: 42rpx;
  54. font-size: 32rpx;
  55. }
  56. .-goods-desc {
  57. padding: 36rpx 0 24rpx 0;
  58. font-size: 24rpx;
  59. color: #666;
  60. display: -webkit-box;
  61. -webkit-box-orient: vertical;
  62. -webkit-line-clamp: 2;
  63. overflow: hidden;
  64. }
  65. .-goods-flex {
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. }
  70. .icons,.favorite {
  71. flex: 1;
  72. font-size: 22rpx;
  73. color: #262626;
  74. display: flex;
  75. flex-direction: column;
  76. align-items: center;
  77. }
  78. .-goods-price {
  79. flex: 8;
  80. color: $jd-color;
  81. font-size: 32rpx;
  82. line-height: 1;
  83. /deep/ .price {
  84. font-size: 60rpx;
  85. }
  86. }
  87. .-goods-name {
  88. margin-top: 24rpx;
  89. }
  90. .top-radius-0 {
  91. margin-top: 0 !important;
  92. border-top-left-radius: 0 !important;
  93. border-top-right-radius: 0 !important;
  94. }
  95. .-goods-msg {
  96. min-height: 120rpx;
  97. margin-top: 24rpx;
  98. }
  99. .recommend-item {
  100. // padding: 0 !important;
  101. margin: 20rpx 0rpx;
  102. overflow: hidden;
  103. border-radius: 12rpx;
  104. /deep/ .u-image__image {
  105. // width: 228rpx;
  106. height: 228rpx;
  107. border-radius: 12rpx !important;
  108. }
  109. }
  110. .detail_padding {
  111. padding: 12px 20rpx 0 20rpx;
  112. > .tips {
  113. color: #000;
  114. font-size: 30rpx;
  115. font-weight: 400;
  116. margin-bottom: 28rpx;
  117. }
  118. }
  119. .headerRow {
  120. height: 44px; //默认uni navbar就是44px
  121. display: flex;
  122. align-items: center;
  123. width: 100%;
  124. // background: #fff !important;
  125. > .headerList {
  126. flex: 8;
  127. }
  128. justify-content: space-between;
  129. }
  130. .scroll-hide {
  131. opacity: 0;
  132. transition: all 0.5s;
  133. }
  134. .cur {
  135. color: $main-color;
  136. }
  137. .cur::after {
  138. content: "";
  139. height: 6rpx;
  140. background: $main-color;
  141. width: 100%;
  142. position: absolute;
  143. bottom: 0;
  144. left: 0;
  145. }
  146. .header-only-back {
  147. background: transparent;
  148. }
  149. .header,
  150. .header-only-back {
  151. padding-left: 10rpx;
  152. position: fixed;
  153. top: var(--status-bar-height);
  154. width: 100%;
  155. z-index: 8;
  156. height: 90rpx;
  157. font-size: 30rpx;
  158. transition: all 0.5s;
  159. }
  160. /deep/ .u-navbar {
  161. padding-left: 10rpx;
  162. }
  163. .nav-item {
  164. flex: 2;
  165. position: relative;
  166. justify-content: center;
  167. height: 100%;
  168. display: flex;
  169. align-items: center;
  170. }
  171. .header {
  172. color: #666666;
  173. background-color: #fff;
  174. .tab-bar {
  175. width: 100%;
  176. color: #666;
  177. font-weight: 400;
  178. view {
  179. padding: 0 3px;
  180. }
  181. }
  182. &.bg-none {
  183. background: transparent;
  184. }
  185. }
  186. .page-bottom {
  187. position: fixed;
  188. bottom: 0;
  189. left: 0;
  190. z-index: 9;
  191. background: #fff;
  192. height: 100rpx;
  193. width: 100%;
  194. display: flex;
  195. border-top: 2rpx solid #f2f2f2;
  196. box-sizing: border-box;
  197. > .icon-btn {
  198. display: flex;
  199. align-items: center;
  200. flex: 1;
  201. > .icon-btn-item {
  202. flex: 1;
  203. position: relative;
  204. text-align: center;
  205. font-size: 22rpx;
  206. color: #262626;
  207. display: flex;
  208. flex-direction: column;
  209. width: 100%;
  210. height: 100%;
  211. align-items: center;
  212. justify-content: center;
  213. > .icon-btn-name {
  214. margin: 4rpx 0;
  215. }
  216. }
  217. }
  218. > .detail-btn {
  219. flex: 1.5;
  220. }
  221. }
  222. .main-page {
  223. height: calc(100% - var(--status-bar-height));
  224. overflow: hidden;
  225. }
  226. .icon-back {
  227. padding-right: 10rpx;
  228. }
  229. .icon-list {
  230. border-left: 2rpx solid rgb(194, 194, 194);
  231. padding-left: 10rpx;
  232. }
  233. .backs,
  234. .bg-back {
  235. width: 150rpx;
  236. border: 2rpx solid #e8e8e8;
  237. border-radius: 100px;
  238. display: flex;
  239. align-items: center;
  240. justify-content: center;
  241. padding: 8rpx 0;
  242. }
  243. .bg-back {
  244. background: rgba($color: #fff, $alpha: 0.8);
  245. }
  246. .backs {
  247. text-align: center;
  248. font-size: 42rpx;
  249. }
  250. .headerImg {
  251. width: 50rpx;
  252. height: 50rpx;
  253. vertical-align: middle;
  254. }
  255. .shareImg {
  256. width: 36rpx;
  257. height: 36rpx;
  258. vertical-align: middle;
  259. }
  260. .item-spec-value {
  261. box-sizing: border-box;
  262. margin: 10rpx;
  263. padding: 10rpx 20rpx;
  264. float: left;
  265. }
  266. .item-spec-value {
  267. background: #ededed;
  268. }
  269. page {
  270. background: #f0f0f0;
  271. height: 100%;
  272. }
  273. .product-container {
  274. .header-line {
  275. height: 1px;
  276. background: #f2f2f2;
  277. position: fixed;
  278. top: 90rpx;
  279. left: 0;
  280. right: 0;
  281. z-index: 999;
  282. transition: all 0.5s;
  283. &.scroll-hide {
  284. background: none;
  285. }
  286. }
  287. .scroll-page {
  288. width: 100%;
  289. height: 100%;
  290. }
  291. /* 弹出层 */
  292. .popup {
  293. position: fixed;
  294. left: 0;
  295. top: 0;
  296. right: 0;
  297. bottom: -1px;
  298. z-index: 9;
  299. background: rgba(0, 0, 0, 0.5);
  300. .mask {
  301. position: absolute;
  302. left: 0;
  303. top: 30%;
  304. right: 0;
  305. bottom: 0;
  306. background: #fff;
  307. .title {
  308. position: relative;
  309. height: 90rpx;
  310. line-height: 90rpx;
  311. font-size: 32rpx;
  312. text-align: center;
  313. border-bottom: 1px solid #f2f2f2;
  314. span {
  315. position: absolute;
  316. right: 30rpx;
  317. font-size: 40rpx;
  318. }
  319. }
  320. .con-cuxiao {
  321. padding: 30rpx 30rpx 0 30rpx;
  322. > text {
  323. font-size: 26rpx;
  324. color: #999;
  325. }
  326. }
  327. }
  328. }
  329. }
  330. .u-mode-light-error {
  331. border: none;
  332. }
  333. .showBack {
  334. height: 60rpx;
  335. line-height: 60rpx;
  336. position: fixed;
  337. margin-top: calc(10px);
  338. z-index: 8;
  339. width: 100%;
  340. /deep/ .u-row {
  341. width: 100%;
  342. }
  343. }
  344. .showBox {
  345. width: 100%;
  346. height: 90rpx;
  347. background: #ff6262;
  348. color: #fff;
  349. padding: 0 20rpx;
  350. /deep/ .price {
  351. font-size: 36rpx;
  352. font-weight: 400;
  353. text-align: left;
  354. letter-spacing: 1px;
  355. color: #ffffff;
  356. line-height: 90rpx;
  357. overflow: hidden;
  358. text-overflow: ellipsis;
  359. white-space: nowrap;
  360. }
  361. }
  362. .status_bar {
  363. background: #fff;
  364. height: var(--status-bar-height);
  365. }