components.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. // 三个元素
  24. .phone-navBar-box{
  25. display: flex;align-items: center;justify-content: space-between;background-color: #fff;
  26. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  27. .nav-bar-icon{
  28. width: 24rpx;height: 38rpx;
  29. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  30. }
  31. .nav-bar-title{font-size: 36rpx;color: #333;}
  32. // 考试数字
  33. .nav-bar-other{
  34. font-size: 30rpx;color: #fff;margin-right: 2%;
  35. .key-note{color: #ffff01;}
  36. }
  37. // 文字按钮
  38. .text-btn{font-size: 26rpx;color: #666;padding-top: 4rpx;box-sizing: border-box;}
  39. // 图标
  40. .nav-bar-icon-box{
  41. .nav-bar-right-icon{font-size: 42rpx;color: #666;}
  42. .nav-bar-right-icon + .nav-bar-right-icon{margin-left: 24rpx;}
  43. }
  44. }
  45. // 两个元素
  46. .icon-title-navBar-box,.icon-title-bjcolor-navBar-box{
  47. display: flex;align-items: center;justify-content: center;background-color: #fff;
  48. padding: calc(20rpx + var(--status-bar-height)) 20rpx 20rpx;box-sizing: border-box;position: relative;
  49. .nav-bar-title{
  50. font-size: 32rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
  51. }
  52. .nav-bar-icon{
  53. width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: calc(32rpx + var(--status-bar-height));
  54. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  55. }
  56. .bar-ml10{margin-left: 10rpx;}
  57. .nav-bar-btn{font-size: 24rpx;position: absolute;right: 20rpx;
  58. line-height: 50rpx;border-radius: 8rpx;padding: 0 10rpx;}
  59. }
  60. // 仅一个返回按钮
  61. .phone-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
  62. background-image: url("@/static/images/common/nav-bar-jt.svg");@include dljt-no-repeat-cover();
  63. }
  64. /******************** 网站组件样式 ********************/
  65. // 顶部菜单
  66. .dljt-navBar-box{
  67. width: 100%;height: 120rpx;@include dljt-no-repeat-cover();
  68. display: flex;align-items: center;justify-content: space-between;
  69. background-image: url("@/static/images/common/dljt-navBar-bj.png");
  70. position: fixed;top: 0;z-index: 3;
  71. .uni-navbar--shadow{box-shadow: none;border-bottom: 0;}
  72. .uni-navbar__header-btns{display: none;}
  73. .uni-navbar__header-container{justify-content: space-between;align-items: center;width: 100%;}
  74. .dljt-logo-box{
  75. width: 495rpx;height: 110rpx;@include dljt-no-repeat-cover();
  76. background-image: url("@/static/images/common/website-logo.gif");
  77. }
  78. .dljt-menu-box{
  79. width: 50rpx;height: 34rpx;@include dljt-no-repeat-cover();
  80. background-image: url("@/static/images/common/menu-icon.png");
  81. }
  82. }
  83. .head-collapse-box{
  84. width: 100%;height: calc(100vh - 100rpx)!important;background-color: #0041b7!important;overflow-y: auto;
  85. position: fixed;top: 120rpx;left: 0;right: 0;bottom: 100rpx;z-index: 99;
  86. .uni-collapse-item__title-box{background-color: #0041b7!important;font-size: 32rpx;color: #fff;}
  87. .uni-collapse-item--animation{
  88. transform: rotate(270deg);
  89. .uni-icons{font-size: 32rpx!important;color: #fff!important;}
  90. }
  91. .uni-collapse-item__title-arrow-active{transform: rotate(360deg);}
  92. .head-collapse-item{
  93. margin: 0 16rpx;
  94. .uni-collapse-item__title-text{font-size: 32rpx;}
  95. .uni-collapse-item__title{padding: 16rpx 0;}
  96. .open{padding-bottom: 16rpx;}
  97. .uni-collapse-item__wrap{background-color: #0041b7!important;}
  98. }
  99. .head-item-text{background-color: #fff;margin:0 16rpx 16rpx;font-size: 32rpx;
  100. border-radius: 8rpx;color: #333;padding: 32rpx 16rpx;box-sizing: border-box;}
  101. .active{color: #fff;background-color: #45bcf4;}
  102. }
  103. // 底部footer
  104. .dljt-footer-box{
  105. width: 100%;height: 120rpx;background-color: #01356e;box-sizing: border-box;padding: 0 24rpx;
  106. display: flex;align-items: center;justify-content: space-between;
  107. .footer-logo-box{
  108. width: 350rpx;height: 78rpx;@include dljt-no-repeat-cover();
  109. background-image: url("@/static/images/common/website-logo.png");
  110. }
  111. .footer-text-box{
  112. font-size: 16rpx;color: #fff;text-align:right;
  113. view + view{margin-top: 2rpx;}
  114. }
  115. }
  116. // 底部tab-bar
  117. .dljt-tab-bar-box{
  118. width: 100%;height: 100rpx;background: #fff;z-index: 99999;
  119. position: fixed;bottom: 0;left: 0;right: 0;font-size: 0;
  120. display: flex;align-items: center;border-top: 1rpx solid #89b0db;background-color: #fff;
  121. .bar-item{
  122. width: 25%;font-size: 28rpx;color: #333;text-align: center;
  123. display: flex;flex-direction: column;align-items: center;}
  124. icon{width: 48rpx;height: 48rpx;@include dljt-no-repeat-cover();margin-bottom: 2rpx;}
  125. .active{color: #003399;}
  126. .sy-cion{background-image: url("@/static/images/tabbar/unselect/website-icon1.png");}
  127. .xydt-cion{background-image: url("@/static/images/tabbar/unselect/website-icon2.png");}
  128. .zsjy-cion{background-image: url("@/static/images/tabbar/unselect/website-icon3.png");}
  129. .lxfs-cion{background-image: url("@/static/images/tabbar/unselect/website-icon4.png");}
  130. .active .sy-cion{background-image: url("@/static/images/tabbar/select/website-icon1.png");}
  131. .active .xydt-cion{background-image: url("@/static/images/tabbar/select/website-icon2.png");}
  132. .active .zsjy-cion{background-image: url("@/static/images/tabbar/select/website-icon3.png");}
  133. .active .lxfs-cion{background-image: url("@/static/images/tabbar/select/website-icon4.png");}
  134. }
  135. // 页面box
  136. .dljt-page-box{
  137. width: 100%;height: auto;position: relative;padding:120rpx 0 0;
  138. }
  139. .dljt-page-box::before{
  140. content: ''; width: 100%;height: 260rpx;display: block;@include dljt-no-repeat-cover(bottom);
  141. background-image: url("@/static/images/index/dljt-page-bj.png");
  142. position: absolute;top: 120rpx;z-index: 1;
  143. }
  144. //页面标题
  145. .dljt-page-title{
  146. color: #fff;font-size: 0;text-align: center;font-weight: bold;margin: 20rpx auto;
  147. }
  148. // 详情页前面带竖杠的标题
  149. .dljt-detail-title{
  150. display: inline-block;color: #333;margin-bottom: 16rpx;
  151. .title-text{font-size:28rpx;display: flex;align-items: center;margin: 0;color:#00369a;}
  152. .title-text:before{content: ' ';width: 8rpx;height: 26rpx;background-color:#00369a;border-radius: 4rpx;
  153. margin-right: 6rpx;}
  154. }
  155. // 视频标题
  156. .dljt-video-title{
  157. display: inline-block;font-weight: 700;color: #333;margin-bottom: 24rpx;
  158. .video-text{font-size:28rpx;display: flex;align-items: center;margin: 0;color:#1460b6;font-weight: bold}
  159. .video-text:before{
  160. content:'';width: 56rpx;height: 44rpx;margin:0 12rpx 0 0;
  161. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/video-icon.png");}
  162. }
  163. /* 导航 */
  164. .dljt-breadcrumb-box{
  165. display: flex;align-items: center;padding: 12rpx 6rpx;box-sizing: border-box;border-bottom: 1rpx solid #ccc;margin-bottom: 16rpx;
  166. .breadcrumb-text,.breadcrumb-active{font-size: 26rpx;color: #333;}
  167. .breadcrumb-active{color: #1752a0;}
  168. .breadcrumb-jt{
  169. width: 25rpx;height: 25rpx;transform: rotate(270deg);margin: 0 6rpx;
  170. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/nav-bar-jt-bottom.svg");}
  171. }
  172. /* 详情页蓝色标题*/
  173. .dljt-blue-title{color: #1752a0;font-size: 30rpx;text-align: center;margin-bottom: 54rpx;}
  174. /* container */
  175. .dljt-container-box{width: 100%;position: relative;z-index: 2;}
  176. .dljt-page-content-box{width: 92%;margin: 0 auto 50rpx;background-color: #fff;
  177. box-shadow: 0 1rpx 3rpx 0 #227ECE;box-sizing: border-box;padding: 4rpx 10rpx 0;}
  178. /* 无限滚动区域 */
  179. .dljt-scroll-view{
  180. height: calc(100vh - 410rpx);
  181. .uni-scroll-view-content{height: calc(100vh - 410rpx);}
  182. }
  183. /*左侧图片右侧内容列表区域*/
  184. .list-item-box{
  185. display: flex;margin:32rpx 12rpx;cursor: pointer;position: relative;
  186. .list-img{width: 300rpx;height: 200rpx;}
  187. .list-time-box{
  188. width: 80rpx;height: 80rpx;background-color: rgba(0,64,194,0.7);
  189. color: #fff;position: absolute;top: 0;left: 0;text-align: center;
  190. .time-data{font-size: 32rpx;border-bottom: 1rpx solid #e9ffff;margin: 4rpx 10rpx;padding-bottom: 2rpx;}
  191. .time-year{font-size: 18rpx;}
  192. }
  193. .time-red-box{
  194. background-color: rgba(153,0,0,0.7);
  195. .time-data{border-bottom: 1rpx solid #fff;}
  196. }
  197. .list-right-box{
  198. margin-left: 20rpx;flex: 1;border-bottom: 1rpx dashed #999;
  199. .list-name{color: #000;font-size: 28rpx;@include multi-line-ellipsis(2);line-height: 1.5;
  200. word-wrap: break-word;word-break: break-all; }
  201. .list-line{width: 50rpx;height: 6rpx;background-color: #1460b6;margin: 16rpx 0;}
  202. .list-content{font-size: 24rpx;@include multi-line-ellipsis(2);color: #666;line-height: 1.5;
  203. word-wrap: break-word;word-break: break-all;}
  204. }
  205. &:first-child{margin:10rpx 12rpx 32rpx;}
  206. }
  207. /* 左侧日期右侧内容列表区域 */
  208. .data-content-item{
  209. display: flex;align-items:center;margin:32rpx 12rpx;border-bottom: 1rpx dashed #999;padding-bottom: 20rpx;cursor: pointer;
  210. .list-time-box{
  211. width: 100rpx;height: 100rpx;background-color:#4d7bd3;border-bottom: 2rpx solid #0145c0;
  212. color: #fff;text-align: center;flex-shrink: 0;
  213. .time-data{font-size: 36rpx;border-bottom: 1rpx solid #e9ffff;margin:4rpx 6rpx;padding-bottom: 4rpx;}
  214. .time-year{font-size: 22rpx;}
  215. }
  216. .list-title-box{font-size: 28rpx;margin-left: 16rpx;color: #333;@include multi-line-ellipsis(2);line-height: 1.5;}
  217. &:first-child{margin:10rpx 12rpx 32rpx;}
  218. }
  219. /* 视频列表区域 */
  220. .video-item-box{
  221. width: 48%;height: 220rpx;display: inline-block;position: relative;margin:0 1% 16rpx;cursor: pointer;
  222. img,.el-image,uni-image{width: 100%;height: 220rpx;}
  223. .video-play-btn{
  224. display: none;
  225. width: 60rpx;height: 60rpx;position: absolute;left: 50%;top: 50%;transform: translate(-30rpx, -30rpx);transition: all .3s;
  226. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/video-play-btn.png");cursor: pointer;
  227. }
  228. .video-play-btn:hover{width: 66rpx;height: 66rpx;transform: translate(-33rpx, -33rpx);}
  229. .video-mask-box{
  230. width: 100%;box-sizing: border-box;padding:12rpx;font-size: 24rpx;
  231. position: absolute;left: 0;bottom: 0;right:0;color: #fff;line-height: 1;
  232. background: linear-gradient(to bottom, rgba(132,164,226,0), #84A4E2);
  233. .video-data,.video-title{font-weight: bold;}
  234. .video-title{margin-top: 8rpx;}
  235. }
  236. }
  237. /* 优秀毕业生照片列表 */
  238. .photo-item-box{
  239. width: 31%;border: 1px solid #ccc;padding: 10rpx;box-sizing: border-box;
  240. background-color: #fff;margin-bottom: 16rpx;cursor: pointer;display: inline-block;
  241. img,uni-image{width: 100%;height: 148rpx;}
  242. .photo-mask-box{
  243. .mask-title{font-size: 28rpx;color: #333;margin-top: 6rpx;@include single-line-ellipsis;}
  244. .mask-data{font-size: 24rpx;color: #666;margin-top: 6rpx;@include single-line-ellipsis;}
  245. }
  246. }
  247. .photo-item-box +.photo-item-box:not(:nth-child(3n+1)){margin-left: 2%;}
  248. /**/
  249. .xyry-item-row{
  250. border-bottom: 1rpx dashed #ccc;margin: 32rpx;display: flex;padding-bottom: 16rpx;cursor: pointer;
  251. .xyry-icon{width: 42rpx;height: 42rpx;display: block;@include dljt-no-repeat-cover;margin-right: 16rpx;
  252. background-image: url("@/static/images/xygk/xyry-icon.png");flex-shrink: 0}
  253. .xyry-title{font-size: 28rpx;line-height: 1.5;color: #333;min-height: 45rpx;display: flex;align-items: center;}
  254. }
  255. /* 底部返回按钮*/
  256. .return-footer-box{
  257. display: flex;justify-content: space-between;align-items: center;
  258. .footer-right{flex-shrink: 0}
  259. // .dljt-return-btn{width: 133rpx;height: 40rpx;display: inline-block;margin: 24rpx 0;cursor: pointer;flex-shrink: 0;margin-left: auto;
  260. // @include dljt-no-repeat-cover;background-image: url("@/static/images/common/return-btn.png");}
  261. .dljt-down-btn{width: 238rpx;height: 60rpx;display: inline-block;margin: 24rpx 0;margin-left: auto;
  262. @include dljt-no-repeat-cover;background-image: url("@/static/images/common/down-btn.png");}
  263. .dljt-down-btn + .dljt-return-btn{margin-left: 16rpx;}
  264. }
  265. /* 富文本详情页 */
  266. .dljt-detail-box{
  267. height: calc(100vh - 410rpx);box-sizing: border-box;padding: 24rpx;overflow-y: auto;
  268. .detail-title{color: #000;text-align: center;font-size: 32rpx;font-weight: bold;line-height: 1.5;}
  269. .detail-data{color: #666;text-align: center;font-size: 26rpx;margin-top: 24rpx;}
  270. .dljt-editor-box{
  271. font-size: 26rpx;font-weight: normal;white-space: pre-wrap;
  272. color: #333;word-break: break-all;line-height: 1.5;
  273. img{max-width: 100%;}
  274. .img-center-top{margin: 32rpx auto 0;display: block;}
  275. div[data-w-e-type="video"]{text-align: center}
  276. span{margin: 0;padding: 0;}
  277. p{margin: 16rpx 0;padding: 0;}
  278. }
  279. uni-video{margin: 0 auto;display: block;margin-bottom: 24rpx;}
  280. .pdf-container{
  281. border: 0;
  282. .pdf-btn-box{
  283. icon{
  284. width: 46rpx;height: 46rpx;@include dljt-no-repeat-cover;vertical-align: top;
  285. background-image: url("@/static/images/common/link-icon.png");}
  286. text{
  287. color: #00369a;display: inline-block;vertical-align: middle;margin-right: 10rpx;margin-left: 16rpx;
  288. line-height: 30rpx;text-decoration: none;padding: 12rpx 0;vertical-align: top;}
  289. }
  290. }
  291. }
  292. /* 分类 */
  293. .dljt-classify-box{
  294. .classify-item{display:inline-block;font-size: 28rpx;border: 1rpx solid #ccc;color: #333;padding:12rpx 16rpx;margin-right: 16rpx;cursor: pointer}
  295. .active{background-color: #00369a;color: #fff;border: 1rpx solid #00369a;}
  296. }
  297. /* 链接模块*/
  298. .dljt-link-box{
  299. margin: 42rpx 0;
  300. .link-item-box{
  301. margin-bottom: 16rpx;
  302. a{
  303. color: #00369a;display: inline-block;vertical-align: middle;margin-right: 10rpx;margin-left: 16rpx;
  304. line-height: 30rpx;text-decoration: none;padding: 12rpx 0;vertical-align: top;}
  305. icon{
  306. width: 46rpx;height: 46rpx;@include dljt-no-repeat-cover;vertical-align: top;
  307. background-image: url("@/static/images/common/link-icon.png");}
  308. .link-text{line-height: 40rpx;text-decoration: underline;padding: 6rpx 0;}
  309. }
  310. }
  311. /* 表格 */
  312. .dljt-table-box{
  313. margin: 16rpx 0;border: 1rpx solid #ccc;font-size: 28rpx;
  314. .table-th-row,.table-td-row{
  315. display: flex;
  316. >view{display: flex;align-items: center;padding: 16rpx;}
  317. view{box-sizing: border-box;border-right: 1rpx solid #ccc;}
  318. view:last-child{border-right: 0;}
  319. view.item-center{text-align: center}
  320. .table-btn{color: #1a6ac3;border-bottom: 1rpx solid #1a6ac3;cursor: pointer}
  321. }
  322. .table-th-row{background-color: #1a6ac3;color: #fff;text-align:center;}
  323. .table-td-row{background-color: #fff;color: #333;border-top: 1rpx solid #ccc;}
  324. }
  325. /* pdf浮层*/
  326. .dljt-pdf-popup{
  327. .pdf-popup-box{height:100vh;padding: 0;margin: 0;z-index: 9;position: relative;}
  328. .dljt-pdf-view{margin-top: 86rpx;}
  329. .pdf-return-btn{z-index: 4;position: relative;}
  330. }