components.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. /******************** 公共组件样式 ********************/
  2. /***** view *****/
  3. view{box-sizing: border-box;}
  4. /***** 对齐方式 *****/
  5. .ezy-tl{text-align: left;}
  6. .ezy-tc{text-align: center;}
  7. .ezy-tr{text-align: right;}
  8. /***** 超出省略 *****/
  9. // 文本超出省略号显示 (一行)
  10. @mixin single-line-ellipsis() {text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;white-space: nowrap;word-break: break-all;}
  11. // 文本超出省略号显示 (多行)
  12. @mixin multi-line-ellipsis($rows: 3){-webkit-line-clamp:$rows;text-overflow: ellipsis;-o-text-overflow: ellipsis;overflow: hidden;word-wrap: break-word;display: -webkit-box;white-space: normal !important;-webkit-box-orient: vertical;}
  13. /***** 页面背景图 *****/
  14. // no-repeat cover
  15. @mixin dljt-no-repeat-cover($position: center) {
  16. background-position: $position;background-size: cover;background-repeat: no-repeat;
  17. }
  18. // no-repeat contain
  19. @mixin dljt-no-repeat-contain($position: center) {
  20. background-position: $position;background-size: contain;background-repeat: no-repeat;
  21. }
  22. /***** 富文本处理 *****/
  23. @mixin ezy-rich-text() {
  24. white-space: pre-wrap;text-align: justify;
  25. div,p,span{margin: 0;padding: 0;}
  26. img{max-width: 100%;}
  27. .ql-align-center{text-align: center}
  28. .ql-align-right{text-align: right}
  29. // 9号字
  30. .ql-size-9px{font-size: 18rpx;}
  31. // 12号字
  32. .ql-size-12px{font-size: 24rpx;}
  33. // 14号字
  34. .ql-size-14px{font-size: 28rpx;}
  35. // 16号字
  36. .ql-size-16px{font-size: 32rpx;}
  37. // 18号字
  38. .ql-size-18px{font-size: 36rpx;}
  39. // 24号字
  40. .ql-size-24px{font-size: 48rpx;}
  41. // 32号字
  42. .ql-size-32px{font-size: 64rpx;}
  43. // 单倍行距
  44. .line-height-lineHeight1{line-height: 1;}
  45. // 1.5倍行距
  46. .line-height-lineHeight1-5{line-height: 1.5;}
  47. // 2倍行距
  48. .line-height-lineHeight2{line-height: 2;}
  49. // 2.5倍行距
  50. .line-height-lineHeight2-5{line-height: 2.5;}
  51. // 3倍行距
  52. .line-height-lineHeight3{line-height: 3;}
  53. }
  54. /***** 标题栏 *****/
  55. // 三个元素
  56. .phone-navBar-box{
  57. display: flex;align-items: center;justify-content: space-between;background-color: #fff;
  58. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  59. .nav-bar-icon{
  60. width: 24rpx;height: 38rpx;
  61. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  62. }
  63. .nav-bar-title{font-size: 36rpx;color: #333;}
  64. // 考试数字
  65. .nav-bar-other{
  66. font-size: 30rpx;color: #fff;margin-right: 2%;
  67. .key-note{color: #ffff01;}
  68. }
  69. // 文字按钮
  70. .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;}
  71. // 图标
  72. .nav-bar-icon-box{
  73. .nav-bar-right-icon{font-size: 42rpx;color: #666;}
  74. .nav-bar-right-icon + .nav-bar-right-icon{margin-left: 24rpx;}
  75. }
  76. }
  77. // 两个元素
  78. .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
  79. display: flex;align-items: center;justify-content: center;background-color: #fff;
  80. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  81. .nav-bar-title{
  82. font-size: 32rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
  83. }
  84. .nav-bar-icon{
  85. width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(32rpx + var(--status-bar-height));
  86. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  87. }
  88. .bar-ml10{margin-left: 10rpx;}
  89. .nav-bar-btn{font-size: 24rpx;position: absolute;right: 20rpx;
  90. line-height: 50rpx;border-radius: 8rpx;padding: 0 10rpx;}
  91. }
  92. // 仅一个返回按钮
  93. .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
  94. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  95. }
  96. /******************** 网站组件样式 ********************/
  97. // 顶部菜单
  98. .dljt-navBar-box{
  99. width: 100%;height: 120rpx;@include dljt-no-repeat-cover();
  100. display: flex;align-items: center;justify-content: space-between;
  101. background-image: url("@/static/images/common/dljt-navBar-bj.png");
  102. position: fixed;top: 0;z-index: 3;
  103. .uni-navbar--shadow{box-shadow: none;border-bottom: 0;}
  104. .uni-navbar__header-btns{display: none;}
  105. .uni-navbar__header-container{justify-content: space-between;align-items: center;width: 100%;}
  106. .dljt-logo-box{
  107. width: 495rpx;height: 110rpx;@include dljt-no-repeat-cover();
  108. background-image: url("@/static/images/common/website-logo.gif");
  109. }
  110. .dljt-menu-box{
  111. width: 50rpx;height: 34rpx;@include dljt-no-repeat-cover();
  112. background-image: url("@/static/images/common/menu-icon.png");
  113. }
  114. }
  115. .head-collapse-box{
  116. width: 100%;height: calc(100vh - 100rpx)!important;background-color: #0041b7!important;overflow-y: auto;
  117. position: absolute;top: 120rpx;left: 0;right: 0;bottom: 100rpx;z-index: 99;
  118. .uni-collapse-item__title-box{background-color: #0041b7!important;font-size: 32rpx;color: #fff;}
  119. .uni-collapse-item--animation{
  120. transform: rotate(270deg);
  121. .uni-icons{font-size: 32rpx!important;color: #fff!important;}
  122. }
  123. .uni-collapse-item__title-arrow-active{transform: rotate(360deg);}
  124. .head-collapse-item{
  125. margin: 0 16rpx;
  126. .uni-collapse-item__title-text{font-size: 32rpx;}
  127. .uni-collapse-item__title{padding: 16rpx 0;}
  128. .open{padding-bottom: 16rpx;}
  129. .uni-collapse-item__wrap{background-color: #0041b7!important;}
  130. }
  131. .head-item-text{background-color: #fff;margin:0 16rpx 16rpx;font-size: 32rpx;
  132. border-radius: 8rpx;color: #333;padding: 32rpx 16rpx;box-sizing: border-box;}
  133. .active{color: #fff;background-color: #45bcf4;}
  134. }
  135. // 底部footer
  136. .dljt-footer-box{
  137. width: 100%;height: 120rpx;background-color: #01356e;box-sizing: border-box;padding: 0 24rpx;
  138. display: flex;align-items: center;justify-content: space-between;
  139. .footer-logo-box{
  140. width: 350rpx;height: 78rpx;@include dljt-no-repeat-cover();
  141. background-image: url("@/static/images/common/website-logo.png");
  142. }
  143. .footer-text-box{
  144. font-size: 16rpx;color: #fff;text-align:right;
  145. view + view{margin-top: 2rpx;}
  146. }
  147. }
  148. // 底部tab-bar
  149. .dljt-tab-bar-box{
  150. width: 100%;height: 100rpx;background: #fff;z-index: 99999;
  151. position: fixed;bottom: 0;left: 0;right: 0;font-size: 0;
  152. display: flex;align-items: center;border-top: 1rpx solid #89b0db;background-color: #fff;
  153. .bar-item{
  154. width: 25%;font-size: 28rpx;color: #333;text-align: center;
  155. display: flex;flex-direction: column;align-items: center;}
  156. icon{width: 48rpx;height: 48rpx;@include dljt-no-repeat-cover();margin-bottom: 2rpx;}
  157. .active{color: #003399;}
  158. .sy-cion{background-image: url("@/static/images/tabbar/unselect/website-icon1.png");}
  159. .xydt-cion{background-image: url("@/static/images/tabbar/unselect/website-icon2.png");}
  160. .zsjy-cion{background-image: url("@/static/images/tabbar/unselect/website-icon3.png");}
  161. .lxfs-cion{background-image: url("@/static/images/tabbar/unselect/website-icon4.png");}
  162. .active .sy-cion{background-image: url("@/static/images/tabbar/select/website-icon1.png");}
  163. .active .xydt-cion{background-image: url("@/static/images/tabbar/select/website-icon2.png");}
  164. .active .zsjy-cion{background-image: url("@/static/images/tabbar/select/website-icon3.png");}
  165. .active .lxfs-cion{background-image: url("@/static/images/tabbar/select/website-icon4.png");}
  166. }
  167. // 页面box
  168. .dljt-page-box{
  169. width: 100%;height: auto;position: relative;padding:120rpx 0 0;
  170. }
  171. .dljt-page-box::before{
  172. content: ''; width: 100%;height: 260rpx;display: block;@include dljt-no-repeat-cover(bottom);
  173. background-image: url("@/static/images/index/dljt-page-bj.png");
  174. position: absolute;top: 120rpx;z-index: 1;
  175. }
  176. //页面标题
  177. .dljt-page-title{
  178. color: #fff;font-size: 0;text-align: center;font-weight: bold;margin: 20rpx auto;
  179. }
  180. /* 导航 */
  181. .dljt-breadcrumb-box{
  182. display: flex;align-items: center;padding: 12rpx 6rpx;box-sizing: border-box;border-bottom: 1rpx solid #ccc;margin-bottom: 16rpx;
  183. .breadcrumb-text,.breadcrumb-active{font-size: 26rpx;color: #333;}
  184. .breadcrumb-active{color: #1752a0;}
  185. .breadcrumb-jt{
  186. width: 25rpx;height: 25rpx;transform: rotate(270deg);margin: 0 6rpx;
  187. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/nav-bar-jt-bottom.svg");}
  188. }
  189. /* container */
  190. .dljt-container-box{width: 100%;position: relative;z-index: 2;}
  191. .dljt-page-content-box{width: 92%;margin: 0 auto 50rpx;background-color: #fff;
  192. box-shadow: 0 1rpx 3rpx 0 #227ECE;box-sizing: border-box;padding: 4rpx 10rpx 0;}
  193. /* 无限滚动区域 */
  194. .uni-scroll-view-content{height: calc(100vh - 420rpx)}
  195. /*左侧图片右侧内容列表区域*/
  196. .list-item-box{
  197. display: flex;margin:32rpx 12rpx;cursor: pointer;position: relative;
  198. .list-img{width: 300rpx;height: 200rpx;}
  199. .list-time-box{
  200. width: 80rpx;height: 80rpx;background-color: rgba(0,64,194,0.7);
  201. color: #fff;position: absolute;top: 0;left: 0;text-align: center;
  202. .time-data{font-size: 32rpx;border-bottom: 1rpx solid #e9ffff;margin: 4rpx 10rpx;padding-bottom: 2rpx;}
  203. .time-year{font-size: 18rpx;}
  204. }
  205. .time-red-box{
  206. background-color: rgba(153,0,0,0.7);
  207. .time-data{border-bottom: 1rpx solid #fff;}
  208. }
  209. .list-right-box{
  210. margin-left: 20rpx;flex: 1;border-bottom: 1rpx dashed #999;
  211. .list-name{color: #000;font-size: 28rpx;@include multi-line-ellipsis(2);line-height: 1.5;
  212. word-wrap: break-word;word-break: break-all; }
  213. .list-line{width: 50rpx;height: 6rpx;background-color: #1460b6;margin: 16rpx 0;}
  214. .list-content{font-size: 24rpx;@include multi-line-ellipsis(2);color: #666;line-height: 1.5;
  215. word-wrap: break-word;word-break: break-all;}
  216. }
  217. &:first-child{margin:10rpx 12rpx 32rpx;}
  218. }
  219. /* 左侧日期右侧内容列表区域 */
  220. .data-content-item{
  221. display: flex;align-items:center;margin:32rpx 12rpx;border-bottom: 1rpx dashed #999;padding-bottom: 20rpx;cursor: pointer;
  222. .list-time-box{
  223. width: 100rpx;height: 100rpx;background-color:#4d7bd3;border-bottom: 2rpx solid #0145c0;
  224. color: #fff;text-align: center;flex-shrink: 0;
  225. .time-data{font-size: 36rpx;border-bottom: 1rpx solid #e9ffff;margin: 6rpx;padding-bottom: 6rpx;}
  226. .time-year{font-size: 22rpx;}
  227. }
  228. .list-title-box{font-size: 28rpx;margin-left: 16rpx;color: #333;@include multi-line-ellipsis(2);line-height: 1.5;}
  229. &:first-child{margin:10rpx 12rpx 32rpx;}
  230. }
  231. /* 视频列表区域 */
  232. .video-item-box{
  233. width: 48%;height: 220rpx;display: inline-block;position: relative;margin:0 1% 16rpx;cursor: pointer;
  234. img,.el-image,uni-image{width: 100%;height: 220rpx;}
  235. .video-play-btn{
  236. width: 60rpx;height: 60rpx;position: absolute;left: 50%;top: 50%;transform: translate(-30rpx, -30rpx);transition: all .3s;
  237. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/video-play-btn.png");cursor: pointer;
  238. }
  239. .video-play-btn:hover{width: 66rpx;height: 66rpx;transform: translate(-33rpx, -33rpx);}
  240. .video-mask-box{
  241. width: 100%;box-sizing: border-box;padding:12rpx;font-size: 24rpx;
  242. position: absolute;left: 0;bottom: 0;right:0;color: #fff;line-height: 1;
  243. background: linear-gradient(to bottom, rgba(132,164,226,0), #84A4E2);
  244. .video-data,.video-title{font-weight: bold;}
  245. .video-title{margin-top: 8rpx;}
  246. }
  247. }
  248. /* 底部返回按钮*/
  249. .return-footer-box{
  250. display: flex;justify-content: space-between;align-items: center;
  251. .footer-right{flex-shrink: 0}
  252. // .dljt-return-btn{width: 133rpx;height: 40rpx;display: inline-block;margin: 24rpx 0;cursor: pointer;flex-shrink: 0;margin-left: auto;
  253. // @include dljt-no-repeat-cover;background-image: url("@/static/images/common/return-btn.png");}
  254. .dljt-down-btn{width: 238rpx;height: 60rpx;display: inline-block;margin: 24rpx 0;margin-left: auto;
  255. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/down-btn.png");}
  256. .dljt-down-btn + .dljt-return-btn{margin-left: 16rpx;}
  257. }
  258. /* 富文本详情页 */
  259. .dljt-detail-box{
  260. height: calc(100vh - 410rpx);box-sizing: border-box;padding: 24rpx;overflow-y: auto;
  261. .detail-title{color: #000;text-align: center;font-size: 32rpx;font-weight: bold;line-height: 1.5;}
  262. .detail-data{color: #666;text-align: center;font-size: 26rpx;margin-top: 24rpx;}
  263. .dljt-editor-box{
  264. font-size: 26rpx;font-weight: normal;white-space: pre-wrap;color: #333;word-break: break-all;
  265. img{max-width: 100%;}
  266. .img-center-top{margin: 32rpx auto 0;display: block;}
  267. div[data-w-e-type="video"]{text-align: center}
  268. span{margin: 0;padding: 0;}
  269. p{margin: 16rpx 0;padding: 0;}
  270. }
  271. .dljt-pdf-box{}
  272. }