common.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. ::-webkit-scrollbar {
  7. display: none;
  8. width: 0;
  9. height: 0;
  10. color: transparent;
  11. }
  12. view,
  13. text {
  14. box-sizing: border-box;
  15. word-wrap: break-word;
  16. }
  17. input {
  18. box-sizing: border-box;
  19. }
  20. button {
  21. margin: 0;
  22. padding: 0;
  23. }
  24. button::after {
  25. border: none;
  26. }
  27. .container {
  28. width: 100%;
  29. min-height: 100vh;
  30. font-size: 28rpx;
  31. }
  32. text {
  33. display: block;
  34. }
  35. button {
  36. text-align: center;
  37. border-radius: 8rpx;
  38. }
  39. /* border 1px样式 */
  40. .border_bottom,
  41. .border_top,
  42. .border_all {
  43. position: relative;
  44. }
  45. .border_top::after {
  46. position: absolute;
  47. content: "";
  48. width: 100%;
  49. left: 0;
  50. top: 0;
  51. height: 1px;
  52. padding: 0 32rpx;
  53. box-sizing: border-box;
  54. background-color: #e5e5e5;
  55. -webkit-transform: scale(1, 0.5);
  56. transform: scale(1, 0.5);
  57. -webkit-transform-origin: center bottom;
  58. transform-origin: center bottom;
  59. }
  60. .border_bottom::after {
  61. position: absolute;
  62. content: "";
  63. width: 100%;
  64. left: 0;
  65. bottom: 0;
  66. height: 1px;
  67. padding: 0 32rpx;
  68. box-sizing: border-box;
  69. background-color: #e5e5e5;
  70. -webkit-transform: scale(1, 0.5);
  71. transform: scale(1, 0.5);
  72. -webkit-transform-origin: center bottom;
  73. transform-origin: center bottom;
  74. }
  75. .border_all::before {
  76. content: "";
  77. display: block;
  78. position: absolute;
  79. width: 200%;
  80. height: 200%;
  81. border: 1px solid #d9d9d9;
  82. border-radius: 10rpx;
  83. transform-origin: 0 0;
  84. transform: scale(0.5, 0.5);
  85. -webkit-transform: scale(0.5, 0.5);
  86. box-sizing: border-box;
  87. }
  88. // 无数据
  89. .nodata {
  90. text-align: center;
  91. display: block;
  92. color: #666666;
  93. padding: 200rpx 0;
  94. margin: 0 auto;
  95. .nodata_ico {
  96. width: 374rpx;
  97. height: 288rpx;
  98. margin-bottom: 30rpx;
  99. }
  100. .nodata_img {
  101. width: 374rpx;
  102. height: 288rpx;
  103. margin-bottom: 50rpx;
  104. }
  105. }
  106. // 单行省略
  107. .text_oneLine {
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. white-space: nowrap;
  111. }
  112. /* 2行省略 */
  113. .text_twoLine {
  114. text-overflow: -o-ellipsis-lastline;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. display: -webkit-box;
  118. -webkit-line-clamp: 2;
  119. line-clamp: 2;
  120. -webkit-box-orient: vertical;
  121. }
  122. .select-box {
  123. width: 100%;
  124. .box {
  125. height: 95prx;
  126. line-height: 95rpx;
  127. text-align: center;
  128. font-size: 32rpx;
  129. border-bottom: 1rpx solid #ebebeb;
  130. }
  131. .box-bottom {
  132. border-bottom: none !important;
  133. }
  134. }
  135. .slot-content {
  136. width: 100%;
  137. padding: 50rpx;
  138. text-align: center;
  139. font-size: 32rpx;
  140. color: #0f1826;
  141. line-height: 48rpx;
  142. }
  143. // 禁止拷贝
  144. .forbid-copy {
  145. -webkit-user-select: none;
  146. -khtml-user-select: none;
  147. -moz-user-select: none;
  148. -ms-user-select: none;
  149. user-select: none;
  150. }
  151. .cancel-attention {
  152. flex-shrink: 0;
  153. padding: 5rpx 28rpx;
  154. border-radius: 37rpx 37rpx 37rpx 37rpx;
  155. font-weight: 400;
  156. font-size: 24rpx;
  157. background-color: #f0f0f0;
  158. color: #999999;
  159. }
  160. .free-charge {
  161. position: fixed;
  162. display: flex;
  163. align-items: center;
  164. bottom: 320rpx;
  165. right: 41rpx;
  166. height: 156rpx;
  167. z-index: 888;
  168. }
  169. .footer-free-charge {
  170. z-index: 99999;
  171. }
  172. .report-content-title {
  173. font-weight: 500;
  174. font-size: 36rpx;
  175. line-height: 50rpx;
  176. color: #333333;
  177. }
  178. // 统一顶部蓝色的卡片
  179. .global_card_content {
  180. padding: 22rpx 20rpx;
  181. border-radius: 8rpx;
  182. border-top: 10rpx solid #376cbb;
  183. }
  184. // 统一标题
  185. .global_title {
  186. color: #333333;
  187. font-size: 32rpx;
  188. font-weight: 600;
  189. line-height: 40rpx;
  190. }
  191. // 统一内容
  192. .global_content {
  193. margin-top: 20rpx;
  194. padding: 0 12rpx;
  195. font-size: 22rpx;
  196. line-height: 30rpx;
  197. font-weight: 400;
  198. color: #999999;
  199. background-color: #f8f8fa;
  200. border-radius: 4rpx;
  201. }
  202. .global_activity_content {
  203. margin-top: 20rpx;
  204. padding: 5rpx 12rpx;
  205. font-size: 24rpx;
  206. line-height: 34rpx;
  207. font-weight: 400;
  208. color: #333;
  209. background-color: #f8f8fa;
  210. border-radius: 4rpx;
  211. }
  212. // 居中
  213. .global_content_center {
  214. display: flex;
  215. align-items: center;
  216. justify-content: center;
  217. }
  218. // 统一二级筛选栏
  219. .global_two_tabs {
  220. height: 96rpx;
  221. width: 100%;
  222. display: flex;
  223. align-items: center;
  224. overflow-x: auto;
  225. border-top: 0.5rpx solid #dcdfe6;
  226. border-bottom: 0.5rpx solid #dcdfe6;
  227. padding: 0 30rpx;
  228. background-color: #fff;
  229. .item {
  230. display: flex;
  231. align-items: center;
  232. height: 64rpx;
  233. padding: 24rpx;
  234. border-radius: 100rpx;
  235. color: #333;
  236. font-size: 28rpx;
  237. background-color: #f8f8fa;
  238. flex-shrink: 0;
  239. margin-right: 15rpx;
  240. }
  241. .tabs-active {
  242. background-color: #e5efff;
  243. color: #376cbb;
  244. }
  245. }
  246. .global_one_tabs {
  247. display: flex;
  248. width: 100%;
  249. height: 96rpx;
  250. overflow-x: auto;
  251. background-color: #fff;
  252. .item {
  253. width: 120rpx;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. color: #333;
  258. font-size: 28rpx;
  259. line-height: 44rpx;
  260. flex-shrink: 0;
  261. }
  262. .tabs-active {
  263. position: relative;
  264. color: #376cbb;
  265. font-weight: 600;
  266. &::before {
  267. content: "";
  268. position: absolute;
  269. bottom: 15rpx;
  270. left: 50%;
  271. transform: translateX(-50%);
  272. width: 32rpx;
  273. height: 6rpx;
  274. background-color: #376cbb;
  275. border-radius: 10rpx;
  276. }
  277. }
  278. }
  279. .global_pv-ollect {
  280. flex: end;
  281. display: flex;
  282. align-items: center;
  283. justify-content: space-between;
  284. image {
  285. width: 26rpx;
  286. height: 26rpx;
  287. margin-right: 10rpx;
  288. }
  289. .pv {
  290. width: 30rpx;
  291. height: 30rpx;
  292. margin-right: 10rpx;
  293. }
  294. view {
  295. display: flex;
  296. align-items: center;
  297. margin-left: 20rpx;
  298. }
  299. }
  300. .share-line-content {
  301. position: relative;
  302. width: 100%;
  303. height: 100vh;
  304. padding: 30rpx;
  305. background: url("https://hzstatic.hzinsights.com/yx_xcx/share-line-bg.png") no-repeat;
  306. background-size: 100% 100%;
  307. .share-content-box {
  308. position: absolute;
  309. top: 225rpx;
  310. left: 50%;
  311. padding: 170rpx 46rpx 100rpx;
  312. overflow: hidden;
  313. transform: translateX(-50%);
  314. width: calc(100% - 60rpx);
  315. height: 690rpx;
  316. background: url("https://hzstatic.hzinsights.com/yx_xcx/share-content.png") no-repeat;
  317. background-size: 100% 100%;
  318. box-sizing: border-box;
  319. color: #b98756;
  320. .share-content {
  321. max-height: 460rpx;
  322. overflow: hidden;
  323. }
  324. .share-title {
  325. font-weight: 800;
  326. font-size: 32rpx;
  327. margin-bottom: 30rpx;
  328. }
  329. .share-item {
  330. width: 100%;
  331. font-size: 28rpx;
  332. display: flex;
  333. margin-bottom: 20rpx;
  334. text:nth-child(1) {
  335. font-weight: 800;
  336. flex-shrink: 0;
  337. width: 132rpx;
  338. text-align: right;
  339. padding-right: 20rpx;
  340. }
  341. text:nth-child(2) {
  342. color: #b98756;
  343. }
  344. }
  345. .share-image {
  346. display: block;
  347. margin-top: 30rpx;
  348. width: 608rpx;
  349. height: 370rpx;
  350. }
  351. .item-special {
  352. width: 176rpx;
  353. height: 48rpx;
  354. margin-bottom: 5rpx;
  355. }
  356. }
  357. .share-report-go_cygx_xcx {
  358. position: absolute;
  359. width: 419rpx;
  360. height: 75rpx;
  361. right: 30rpx;
  362. bottom: 20rpx;
  363. }
  364. }