common.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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: 300rpx;
  78. height: 180rpx;
  79. margin-bottom: 20rpx;
  80. }
  81. &-image {
  82. width: 386rpx;
  83. height: 286rpx;
  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. }
  109. }
  110. /*弹窗*/
  111. .model-warp.none{
  112. display: none;
  113. }
  114. .model-warp.show{
  115. display: block;
  116. }
  117. .model-warp{
  118. width: 100%;
  119. height: 100%;
  120. background: rgba(0,0,0,.5);
  121. position: fixed;
  122. top: 0;
  123. left: 0;
  124. z-index: 8888;
  125. transition: all 0.4s;
  126. &.none{
  127. display: none;
  128. }
  129. &.show{
  130. display: block;
  131. }
  132. .model-alert{
  133. width: 518rpx;
  134. height: 280rpx;
  135. position: absolute;
  136. background: $bg-color;
  137. left: 0;
  138. right: 0;
  139. bottom: 0;
  140. top: 0;
  141. margin: auto;
  142. border-radius: 20rpx;
  143. .alert-content{
  144. width: 466rpx;
  145. height: 100rpx;
  146. padding: 40rpx 26rpx;
  147. .t-h1,.t-p{
  148. font-size: $font-size-28;
  149. line-height: 40rpx;
  150. color: #333333;
  151. text-align:justify;
  152. padding: 10rpx;
  153. }
  154. .t-h1{
  155. border-bottom: 1px solid $border-color;
  156. }
  157. }
  158. .model-content{
  159. width: 466rpx;
  160. height: 152rpx;
  161. padding: 40rpx 26rpx;
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. .sm{
  166. display: flex;
  167. flex: 1;
  168. line-height: 152rpx;
  169. flex-direction: column;
  170. align-items: center;
  171. text-align: center;
  172. font-size: $font-size-28;
  173. color: #333333;
  174. }
  175. }
  176. .alert-btn{
  177. width: 80%;
  178. height: 70rpx;
  179. display: flex;
  180. margin: 0 auto;
  181. .btn{
  182. flex: 1;
  183. line-height: 70rpx;
  184. font-size: $font-size-28;
  185. text-align: center;
  186. color: #FFFFFF;
  187. border-radius: 10rpx;
  188. padding: 0;
  189. margin: 0 15rpx;
  190. &.btn-cancel{
  191. background: $btn-cancel;
  192. }
  193. &.btn-confirm{
  194. background: $btn-confirm;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. /*
  201. *上滑加载更多
  202. */
  203. .load-more {
  204. font-size: $font-size-24;
  205. color: #666;
  206. text-align: center;
  207. width: 100%;
  208. }
  209. /*底部loading*/
  210. .loading-wrapper {
  211. width: 100%;
  212. height: 60rpx;
  213. padding: 25rpx 0;
  214. color: #333;
  215. font-size: 24rpx;
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. }
  220. .loading-wrapper-now text {
  221. margin-left: 6rpx;
  222. font-weight: bold;
  223. }
  224. .loading-wrapper-btm {
  225. color: #eee;
  226. .btm-text {
  227. color: #333;
  228. padding: 0 10rpx;
  229. }
  230. }
  231. .form-item {
  232. display: flex;
  233. color: $text-color;
  234. margin-top: 74rpx;
  235. font-size: 26rpx;
  236. .asterisk {
  237. color: #FF2A2A;
  238. margin-right: 10rpx;
  239. }
  240. }
  241. // 表单提交button
  242. .submit-btn {
  243. position: fixed;
  244. left: 24rpx;
  245. right: 24rpx;
  246. bottom: 34rpx;
  247. z-index: 95;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. width: 702rpx;
  252. height: 88rpx;
  253. font-size: $font-size-28;
  254. line-height: 88rpx;
  255. color: #FFFFFF;
  256. text-align: center;
  257. background: $btn-confirm;
  258. border-radius: 44rpx;
  259. }
  260. // 小红点
  261. .uni-badge--small {
  262. -webkit-transform: scale(.8);
  263. -ms-transform: scale(.8);
  264. transform: scale(.8);
  265. -webkit-transform-origin: center center;
  266. -ms-transform-origin: center center;
  267. transform-origin: center center;
  268. }
  269. .uni-badge {
  270. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  271. -webkit-box-sizing: border-box;
  272. box-sizing: border-box;
  273. font-size: 12px;
  274. line-height: 1;
  275. display: inline-block;
  276. padding: 3px 6px;
  277. color: #333;
  278. border-radius: 100px;
  279. background-color: #f1f1f1;
  280. }
  281. .uni-badge-error {
  282. color: #fff;
  283. background-color: #dd524d;
  284. }
  285. /* 加入购物模态层*/
  286. @keyframes showPopup {
  287. 0% {
  288. opacity: 0;
  289. }
  290. 100% {
  291. opacity: 1;
  292. }
  293. }
  294. @keyframes hidePopup {
  295. 0% {
  296. opacity: 1;
  297. }
  298. 100% {
  299. opacity: 0;
  300. }
  301. }
  302. @keyframes showLayer {
  303. 0% {
  304. transform: translateY(0);
  305. }
  306. 100% {
  307. transform: translateY(-100%);
  308. }
  309. }
  310. @keyframes hideLayer {
  311. 0% {
  312. transform: translateY(-100%);
  313. }
  314. 100% {
  315. transform: translateY(0);
  316. }
  317. }
  318. @keyframes showAmnation {
  319. 0% {
  320. top: -12rpx;
  321. opacity: 0;
  322. }
  323. 50% {
  324. top: -60rpx;
  325. opacity: 1;
  326. }
  327. 100% {
  328. top: -100rpx;
  329. opacity: 0;
  330. }
  331. }
  332. @keyframes hideAmnation {
  333. 0% {
  334. top: -100rpx;
  335. opacity: 0;
  336. }
  337. 100% {
  338. top: -12rpx;
  339. opacity: 0;
  340. }
  341. }
  342. /* 优惠券标签样式*/
  343. .coupon-tags {
  344. height: 32rpx;
  345. box-sizing: border-box;
  346. border-radius: 8rpx;
  347. background-color: #fff1eb;
  348. line-height: 28rpx;
  349. color: #f94b4b;
  350. text-align: center;
  351. display: inline-block;
  352. padding: 0 4rpx;
  353. font-size:18rpx;
  354. border: 1px solid #f94b4b;
  355. float: left;
  356. margin-right: 10rpx;
  357. }
  358. /* 促销标签样式*/
  359. .floor-tags{
  360. height: 32rpx;
  361. box-sizing: border-box;
  362. border-radius: 8rpx;
  363. background-color: #FFFFFF;
  364. line-height: 28rpx;
  365. color: $color-system;
  366. text-align: center;
  367. display: inline-block;
  368. padding:0 4rpx;
  369. font-size: 18rpx !important;
  370. border: 1px solid #F3B574;
  371. float: left;
  372. margin-right: 8rpx;
  373. }
  374. /* 会员标签样式*/
  375. .svip-tags{
  376. padding-left: 44rpx;
  377. height: 32rpx;
  378. position: relative;
  379. float: left;
  380. .tags{
  381. width: 60rpx;
  382. height: 32rpx;
  383. background-color: #333333;
  384. text-align: center;
  385. line-height: 32rpx;
  386. font-size: 20rpx;
  387. color: #F0CB72;
  388. position: absolute;
  389. left: 0;
  390. top: 0;
  391. border-radius: 8rpx 16rpx 0 8rpx;
  392. &.none{
  393. border-radius: 8rpx;
  394. }
  395. }
  396. .price{
  397. height: 32rpx;
  398. box-sizing: border-box;
  399. border-radius:0 8rpx 8rpx 0;
  400. background-color: #F0CB72;
  401. line-height: 32rpx !important;
  402. color: #333333 !important;
  403. text-align: center;
  404. padding:0 9rpx 0 22rpx;
  405. font-size: 20rpx;
  406. float: left;
  407. }
  408. }