common.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. .clearfix:after {
  2. content: '';
  3. display: block;
  4. height: 0;
  5. clear: both;
  6. visibility: hidden;
  7. }
  8. .container {
  9. width: 100%;
  10. height: 100%;
  11. }
  12. /*android一像素兼容*/
  13. ::-webkit-scrollbar {
  14. width: 0;
  15. height: 0;
  16. color: transparent;
  17. display: none;
  18. }
  19. button {
  20. display: block;
  21. margin-left: auto;
  22. margin-right: auto;
  23. padding-left: 0;
  24. padding-right: 0;
  25. box-sizing: border-box;
  26. font-size: $font-size-28;
  27. text-align: center;
  28. text-decoration: none;
  29. line-height: 36rpx;
  30. border-radius: 0;
  31. -webkit-tap-highlight-color: transparent;
  32. overflow: hidden;
  33. color: $text-color;
  34. background-color: #ffffff;
  35. }
  36. button::after {
  37. border: none;
  38. border-radius: 0;
  39. }
  40. /*输入框样式*/
  41. .text-input {
  42. display: flex;
  43. align-items: center;
  44. position: relative;
  45. width: 654rpx;
  46. height: 40rpx;
  47. padding: 24rpx;
  48. margin: 0 auto;
  49. background: #f7f7f7;
  50. .input {
  51. width: 100%;
  52. height: 100%;
  53. background: #f7f7f7;
  54. font-size: $font-size-28;
  55. line-height: 40rpx;
  56. color: #333333;
  57. }
  58. &.b-b {
  59. margin: 32rpx 0;
  60. }
  61. }
  62. /*空列表显示样式*/
  63. .empty-container {
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. flex-direction: column;
  68. position: fixed;
  69. left: 0;
  70. top: 0;
  71. right: 0;
  72. bottom: 0;
  73. background: $bg-color;
  74. // padding-bottom: 120rpx;
  75. border-top: 1px solid #ebebeb;
  76. .club-empty-image {
  77. width: 200rpx;
  78. height: 200rpx;
  79. margin-bottom: 20rpx;
  80. }
  81. &-image {
  82. width: 290rpx;
  83. height: 230rpx;
  84. margin-bottom: 10rpx;
  85. margin-top: -120rpx;
  86. }
  87. .error-text {
  88. font-size: $font-size-28;
  89. color: #999999;
  90. line-height: 88rpx;
  91. }
  92. .txt {
  93. font-size: $font-size-28;
  94. color: #999999;
  95. line-height: 44rpx;
  96. }
  97. .login-btn {
  98. width: 600rpx;
  99. height: 88rpx;
  100. font-size: $font-size-28;
  101. line-height: 88rpx;
  102. color: #ffffff;
  103. margin: 0 auto;
  104. text-align: center;
  105. background: $btn-confirm;
  106. border-radius: 44rpx;
  107. margin-top: 40rpx;
  108. position: absolute;
  109. bottom: 10%;
  110. }
  111. }
  112. /*弹窗*/
  113. .model-warp.none {
  114. display: none;
  115. }
  116. .model-warp.show {
  117. display: block;
  118. }
  119. .model-warp {
  120. width: 100%;
  121. height: 100%;
  122. background: rgba(0, 0, 0, 0.5);
  123. position: fixed;
  124. top: 0;
  125. left: 0;
  126. z-index: 8888;
  127. transition: all 0.4s;
  128. &.none {
  129. display: none;
  130. }
  131. &.show {
  132. display: block;
  133. }
  134. .model-alert {
  135. width: 518rpx;
  136. height: 280rpx;
  137. position: absolute;
  138. background: $bg-color;
  139. left: 0;
  140. right: 0;
  141. bottom: 0;
  142. top: 0;
  143. margin: auto;
  144. border-radius: 20rpx;
  145. .alert-content {
  146. width: 466rpx;
  147. height: 100rpx;
  148. padding: 40rpx 26rpx;
  149. .t-h1,
  150. .t-p {
  151. font-size: $font-size-28;
  152. line-height: 40rpx;
  153. color: #333333;
  154. text-align: justify;
  155. padding: 10rpx;
  156. }
  157. .t-h1 {
  158. border-bottom: 1px solid $border-color;
  159. }
  160. }
  161. .model-content {
  162. width: 466rpx;
  163. height: 152rpx;
  164. padding: 40rpx 26rpx;
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. .sm {
  169. display: flex;
  170. flex: 1;
  171. line-height: 152rpx;
  172. flex-direction: column;
  173. align-items: center;
  174. text-align: center;
  175. font-size: $font-size-28;
  176. color: #333333;
  177. }
  178. }
  179. .alert-btn {
  180. width: 80%;
  181. height: 70rpx;
  182. display: flex;
  183. margin: 0 auto;
  184. .btn {
  185. flex: 1;
  186. line-height: 70rpx;
  187. font-size: $font-size-28;
  188. text-align: center;
  189. color: #ffffff;
  190. border-radius: 10rpx;
  191. padding: 0;
  192. margin: 0 15rpx;
  193. &.btn-cancel {
  194. background: $btn-cancel;
  195. }
  196. &.btn-confirm {
  197. background: $btn-confirm;
  198. }
  199. }
  200. }
  201. }
  202. }
  203. /*
  204. *上滑加载更多
  205. */
  206. .load-more {
  207. font-size: $font-size-24;
  208. color: #666;
  209. text-align: center;
  210. width: 100%;
  211. }
  212. /*底部loading*/
  213. .loading-wrapper {
  214. width: 100%;
  215. height: 60rpx;
  216. padding: 25rpx 0;
  217. color: #333;
  218. font-size: 24rpx;
  219. display: flex;
  220. align-items: center;
  221. justify-content: center;
  222. }
  223. .loading-wrapper-now text {
  224. margin-left: 6rpx;
  225. font-weight: bold;
  226. }
  227. .loading-wrapper-btm {
  228. color: #eee;
  229. .btm-text {
  230. color: #333;
  231. padding: 0 10rpx;
  232. }
  233. }
  234. /*富文本样式调整*/
  235. .product-rich-text {
  236. rich-text.h4,
  237. rich-text.p,
  238. rich-text.h2 {
  239. padding: 0 24rpx;
  240. }
  241. }
  242. .rich-text-temp {
  243. rich-text.div,
  244. rich-text.h4,
  245. rich-text.p {
  246. line-height: 58rpx;
  247. }
  248. rich-text.h4,
  249. rich-text.p {
  250. font-size: 30rpx;
  251. }
  252. rich-text.div {
  253. margin-bottom: 30rpx;
  254. font-size: 28rpx;
  255. }
  256. rich-text.img {
  257. width: 100%;
  258. height: auto;
  259. }
  260. }
  261. .form-item {
  262. display: flex;
  263. color: $text-color;
  264. margin-top: 74rpx;
  265. font-size: 26rpx;
  266. .asterisk {
  267. color: #ff457b;
  268. margin-right: 10rpx;
  269. }
  270. }
  271. // 表单提交button
  272. .submit-btn {
  273. position: fixed;
  274. left: 24rpx;
  275. right: 24rpx;
  276. bottom: 34rpx;
  277. z-index: 95;
  278. display: flex;
  279. align-items: center;
  280. justify-content: center;
  281. width: 702rpx;
  282. height: 88rpx;
  283. font-size: $font-size-28;
  284. line-height: 88rpx;
  285. color: #ffffff;
  286. text-align: center;
  287. background: $btn-confirm;
  288. border-radius: 44rpx;
  289. }
  290. // 小红点
  291. .uni-badge--small {
  292. -webkit-transform: scale(0.8);
  293. -ms-transform: scale(0.8);
  294. transform: scale(0.8);
  295. -webkit-transform-origin: center center;
  296. -ms-transform-origin: center center;
  297. transform-origin: center center;
  298. }
  299. .uni-badge {
  300. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  301. -webkit-box-sizing: border-box;
  302. box-sizing: border-box;
  303. font-size: 12px;
  304. line-height: 1;
  305. display: inline-block;
  306. padding: 3px 6px;
  307. color: #333;
  308. border-radius: 100px;
  309. background-color: #f1f1f1;
  310. }
  311. .uni-badge-error {
  312. color: #fff;
  313. background-color: #fc464c;
  314. }
  315. /* 加入购物模态层*/
  316. @keyframes showPopup {
  317. 0% {
  318. opacity: 0;
  319. }
  320. 100% {
  321. opacity: 1;
  322. }
  323. }
  324. @keyframes hidePopup {
  325. 0% {
  326. opacity: 1;
  327. }
  328. 100% {
  329. opacity: 0;
  330. }
  331. }
  332. @keyframes showLayer {
  333. 0% {
  334. transform: translateY(0);
  335. }
  336. 100% {
  337. transform: translateY(-100%);
  338. }
  339. }
  340. @keyframes hideLayer {
  341. 0% {
  342. transform: translateY(-100%);
  343. }
  344. 100% {
  345. transform: translateY(0);
  346. }
  347. }
  348. @keyframes showAmnation {
  349. 0% {
  350. top: -12rpx;
  351. opacity: 0;
  352. }
  353. 50% {
  354. top: -60rpx;
  355. opacity: 1;
  356. }
  357. 100% {
  358. top: -100rpx;
  359. opacity: 0;
  360. }
  361. }
  362. @keyframes hideAmnation {
  363. 0% {
  364. top: -100rpx;
  365. opacity: 0;
  366. }
  367. 100% {
  368. top: -12rpx;
  369. opacity: 0;
  370. }
  371. }