common.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. .service_none{
  2. display: none !important;
  3. }
  4. .clearfix:after {
  5. content: ".";
  6. display: block;
  7. height: 0;
  8. clear: both;
  9. visibility: hidden;
  10. }
  11. .container{
  12. width: 100%;
  13. height: 100%;
  14. }
  15. /*android一像素兼容*/
  16. ::-webkit-scrollbar{
  17. width: 0;
  18. height: 0;
  19. color: transparent;
  20. display:none;
  21. }
  22. button {
  23. display: block;
  24. margin-left: auto;
  25. margin-right: auto;
  26. padding-left: 0;
  27. padding-right: 0;
  28. box-sizing: border-box;
  29. font-size: $font-size-28;
  30. text-align: center;
  31. text-decoration: none;
  32. line-height: 36rpx;
  33. border-radius: 0;
  34. -webkit-tap-highlight-color: transparent;
  35. overflow: hidden;
  36. color: $text-color;
  37. background-color: #FFFFFF;
  38. }
  39. button::after{
  40. border: none;
  41. border-radius: 0;
  42. }
  43. /*输入框样式*/
  44. .text-input{
  45. display: flex;
  46. align-items: center;
  47. position: relative;
  48. width: 654rpx;
  49. height: 40rpx;
  50. padding: 24rpx;
  51. margin: 0 auto;
  52. background: #F7F7F7;
  53. .input{
  54. width: 100%;
  55. height: 100%;
  56. background: #F7F7F7;
  57. font-size: $font-size-28;
  58. line-height: 40rpx;
  59. color: #333333;
  60. }
  61. &.b-b{
  62. margin: 32rpx 0;
  63. }
  64. }
  65. /*空列表显示样式*/
  66. .empty-container {
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. flex-direction: column;
  71. position: fixed;
  72. left: 0;
  73. top: 0;
  74. right: 0;
  75. bottom: 0;
  76. background: $bg-color;
  77. // padding-bottom: 120rpx;
  78. border-top: 1px solid #EBEBEB;
  79. .club-empty-image{
  80. width: 300rpx;
  81. height: 180rpx;
  82. margin-bottom: 20rpx;
  83. }
  84. &-image {
  85. width: 332rpx;
  86. height: 260rpx;
  87. margin-bottom: 10rpx;
  88. margin-top: -120rpx;
  89. }
  90. .error-text{
  91. font-size: $font-size-28;
  92. color: #999999;
  93. line-height: 88rpx;
  94. }
  95. .txt{
  96. font-size: $font-size-28;
  97. color: #999999;
  98. line-height: 44rpx;
  99. }
  100. .login-btn{
  101. width: 600rpx;
  102. height: 88rpx;
  103. font-size: $font-size-28;
  104. line-height: 88rpx;
  105. color: #FFFFFF;
  106. margin: 0 auto;
  107. text-align: center;
  108. background: $btn-confirm;
  109. border-radius: 44rpx;
  110. margin-top: 40rpx;
  111. }
  112. }
  113. /*弹窗*/
  114. .model-warp.none{
  115. display: none;
  116. }
  117. .model-warp.show{
  118. display: block;
  119. }
  120. .model-warp{
  121. width: 100%;
  122. height: 100%;
  123. background: rgba(0,0,0,.5);
  124. position: fixed;
  125. top: 0;
  126. left: 0;
  127. z-index: 8888;
  128. transition: all 0.4s;
  129. &.none{
  130. display: none;
  131. }
  132. &.show{
  133. display: block;
  134. }
  135. .model-alert{
  136. width: 518rpx;
  137. height: 280rpx;
  138. position: absolute;
  139. background: $bg-color;
  140. left: 0;
  141. right: 0;
  142. bottom: 0;
  143. top: 0;
  144. margin: auto;
  145. border-radius: 20rpx;
  146. .alert-content{
  147. width: 466rpx;
  148. height: 100rpx;
  149. padding: 40rpx 26rpx;
  150. .t-h1,.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,rich-text.p,rich-text.h2{
  237. padding: 0 24rpx;
  238. }
  239. }
  240. .rich-text-temp {
  241. rich-text.div, rich-text.h4, rich-text.p {
  242. line-height: 58rpx;
  243. }
  244. rich-text.h4, rich-text.p {
  245. font-size: 30rpx;
  246. }
  247. rich-text.div {
  248. margin-bottom: 30rpx;
  249. font-size: 28rpx;
  250. }
  251. rich-text.img {
  252. width: 100%;
  253. height: auto;
  254. }
  255. }
  256. .form-item {
  257. display: flex;
  258. color: $text-color;
  259. margin-top: 74rpx;
  260. font-size: 26rpx;
  261. .asterisk {
  262. color: #FF2A2A;
  263. margin-right: 10rpx;
  264. }
  265. }
  266. // 表单提交button
  267. .submit-btn {
  268. position: fixed;
  269. left: 24rpx;
  270. right: 24rpx;
  271. bottom: 34rpx;
  272. z-index: 95;
  273. display: flex;
  274. align-items: center;
  275. justify-content: center;
  276. width: 702rpx;
  277. height: 88rpx;
  278. font-size: $font-size-28;
  279. line-height: 88rpx;
  280. color: #FFFFFF;
  281. text-align: center;
  282. background: $btn-confirm;
  283. border-radius: 44rpx;
  284. }
  285. // 小红点
  286. .uni-badge--small {
  287. -webkit-transform: scale(.8);
  288. -ms-transform: scale(.8);
  289. transform: scale(.8);
  290. -webkit-transform-origin: center center;
  291. -ms-transform-origin: center center;
  292. transform-origin: center center;
  293. }
  294. .uni-badge {
  295. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  296. -webkit-box-sizing: border-box;
  297. box-sizing: border-box;
  298. font-size: 12px;
  299. line-height: 1;
  300. display: inline-block;
  301. padding: 3px 6px;
  302. color: #333;
  303. border-radius: 100px;
  304. background-color: #f1f1f1;
  305. }
  306. .uni-badge-error {
  307. color: #fff;
  308. background-color: #dd524d;
  309. }
  310. /* 加入购物模态层*/
  311. @keyframes showPopup {
  312. 0% {
  313. opacity: 0;
  314. }
  315. 100% {
  316. opacity: 1;
  317. }
  318. }
  319. @keyframes hidePopup {
  320. 0% {
  321. opacity: 1;
  322. }
  323. 100% {
  324. opacity: 0;
  325. }
  326. }
  327. @keyframes showLayer {
  328. 0% {
  329. transform: translateY(0);
  330. }
  331. 100% {
  332. transform: translateY(-100%);
  333. }
  334. }
  335. @keyframes hideLayer {
  336. 0% {
  337. transform: translateY(-100%);
  338. }
  339. 100% {
  340. transform: translateY(0);
  341. }
  342. }
  343. @keyframes showAmnation {
  344. 0% {
  345. top: -12rpx;
  346. opacity: 0;
  347. }
  348. 50% {
  349. top: -60rpx;
  350. opacity: 1;
  351. }
  352. 100% {
  353. top: -100rpx;
  354. opacity: 0;
  355. }
  356. }
  357. @keyframes hideAmnation {
  358. 0% {
  359. top: -100rpx;
  360. opacity: 0;
  361. }
  362. 100% {
  363. top: -12rpx;
  364. opacity: 0;
  365. }
  366. }