components.scss 16 KB

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