index.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="login">
  5. <div class="w_1200">
  6. <login></login>
  7. </div>
  8. </el-col>
  9. <el-col :span="24">
  10. <el-col :span="24" class="top">
  11. <top :topInfo="topInfo"></top>
  12. </el-col>
  13. </el-col>
  14. <el-col :span="24">
  15. <el-col :span="24" class="menu" :style="`background:${backColor}`">
  16. <div class="w_1200">
  17. <slot name="native">
  18. <!-- <native></native> -->
  19. </slot>
  20. </div>
  21. </el-col>
  22. </el-col>
  23. <el-col :span="24" class="main">
  24. <div class="w_1200">
  25. <el-col :span="24" class="mainTop">
  26. <el-col :span="16" class="news">
  27. <news :news="news"></news>
  28. </el-col>
  29. <el-col :span="7" class="notice">
  30. <notice :notice="notice"></notice>
  31. </el-col>
  32. </el-col>
  33. <el-col :span="24" class="mainData">
  34. <el-col :span="7" class="RiLi">
  35. <slot name="calendar"></slot>
  36. <!-- <calendar :calendar="calendar"></calendar> -->
  37. </el-col>
  38. <el-col :span="16" class="recruit">
  39. <recruit :talksList="talksList" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList"> </recruit>
  40. </el-col>
  41. </el-col>
  42. <el-col :span="24" class="mainQuick">
  43. <el-col :span="7" class="fast">
  44. <fast></fast>
  45. </el-col>
  46. <el-col :span="16" class="cause">
  47. <cause :enterList="enterList"></cause>
  48. <!-- :enterInfoList="enterInfoList" -->
  49. </el-col>
  50. </el-col>
  51. <el-col :span="24" class="mainWheel">
  52. <el-col :span="7" class="wheelLeft">
  53. <el-col :span="24" class="lunbo">
  54. <lunbo :lunboList="lunboList"></lunbo>
  55. </el-col>
  56. <el-col :span="24" class="content">
  57. <contact :site="topInfo"></contact>
  58. </el-col>
  59. </el-col>
  60. <el-col :span="16" class="wheelRight">
  61. <el-col :span="24" class="danwei">
  62. <danwei :danweiList="danweiList"></danwei>
  63. </el-col>
  64. <el-col :span="24" class="yizhanshi">
  65. <yizhanshi :yizhanList="yizhanList"></yizhanshi>
  66. </el-col>
  67. </el-col>
  68. </el-col>
  69. <el-col :span="24" class="mainLink">
  70. <friendLink :linkImgList="linkImgList"></friendLink>
  71. </el-col>
  72. </div>
  73. </el-col>
  74. <el-col :span="24" class="down">
  75. <div class="w_1200">
  76. <footDown :topInfo="topInfo"></footDown>
  77. </div>
  78. </el-col>
  79. <el-col :span="24" class="floating" v-if="floating.value">
  80. <el-button onClick="javascript:this.parentNode.style.display='none';">关闭</el-button>
  81. <floating :floating="floating"></floating>
  82. </el-col>
  83. <el-col :span="24" class="erweima">
  84. <erweima></erweima>
  85. </el-col>
  86. </el-row>
  87. </div>
  88. </template>
  89. <script>
  90. import top from '@publics/src/layout/index/top.vue';
  91. // import native from '@publics/src/layout/index/native.vue';
  92. import news from '@publics/src/layout/index/news.vue';
  93. import notice from '@publics/src/layout/index/notice.vue';
  94. import login from '@publics/src/layout/index/login.vue';
  95. // import calendar from '@publics/src/layout/index/calendar.vue';
  96. import recruit from '@publics/src/layout/index/recruit.vue';
  97. import fast from '@publics/src/layout/index/fast.vue';
  98. import cause from '@publics/src/layout/index/cause.vue';
  99. import danwei from '@publics/src/layout/index/danwei.vue';
  100. import yizhanshi from '@publics/src/layout/index/yizhanshi.vue';
  101. import lunbo from '@publics/src/layout/index/lunbo.vue';
  102. import contact from '@publics/src/layout/index/contact.vue';
  103. import friendLink from '@publics/src/layout/index/friendLink.vue';
  104. import footDown from '@publics/src/layout/index/foot.vue';
  105. import floating from '@publics/src/layout/index/floating.vue';
  106. import erweima from '@publics/src/layout/index/erweima.vue';
  107. export default {
  108. name: 'index',
  109. props: {
  110. topInfo: null, //头部信息
  111. news: null, //新闻模块
  112. notice: null, //公告模块
  113. calendar: null, //日历(这里应该是凹槽,允许自定义组件放入)
  114. talksList: null, //校内宣讲会列表
  115. fairsList: null, //校内招聘会列表
  116. talksoutList: null, //校外宣讲会列表
  117. infoList: null, //招聘信息列表
  118. enterList: null, //吉林省事业单位
  119. danweiList: null, //事业单位
  120. lunboList: null, //轮播图
  121. yizhanList: null, //一站式招聘
  122. linkImgList: null, //友情链接
  123. downList: null, //底部
  124. floating: null, //浮窗内容
  125. },
  126. components: {
  127. top, //头部
  128. // native, //导航 slot
  129. news, //新闻
  130. notice, //通告
  131. login, //登录
  132. // calendar, //日历 slot
  133. recruit, //招聘
  134. fast, //快速链接
  135. cause, //吉林省事业单位/教师招聘
  136. danwei, //事业单位
  137. yizhanshi, //一站式
  138. lunbo, //轮播图
  139. contact, //联系
  140. friendLink, //友情链接
  141. footDown, //底部
  142. floating, //浮窗
  143. erweima, //二维码
  144. },
  145. data: () => ({
  146. backColor: '#850000',
  147. }),
  148. created() {},
  149. computed: {},
  150. methods: {},
  151. };
  152. </script>
  153. <style lang="less" scoped>
  154. .w_1200 {
  155. width: 1200px;
  156. margin: 0 auto;
  157. }
  158. .top {
  159. min-height: 300px;
  160. }
  161. .menu {
  162. height: 40px;
  163. }
  164. .main {
  165. margin: 20px 0 0 0;
  166. }
  167. .mainTop {
  168. margin: 0 0 20px 0;
  169. }
  170. .mainTop .news {
  171. height: 316px;
  172. border: 1px solid #ccc;
  173. overflow: hidden;
  174. }
  175. .mainTop .notice {
  176. float: right;
  177. width: 380px;
  178. height: 316px;
  179. border: 1px solid #ccc;
  180. overflow: hidden;
  181. }
  182. .mainData {
  183. margin: 0 0 20px 0;
  184. }
  185. .mainData .RiLi {
  186. height: 340px;
  187. border: 1px solid #ccc;
  188. }
  189. .mainData .recruit {
  190. float: right;
  191. width: 830px;
  192. height: 340px;
  193. overflow: hidden;
  194. border: 1px solid #ccc;
  195. }
  196. .mainQuick {
  197. margin: 0 0 20px 0;
  198. }
  199. .mainQuick .fast {
  200. height: 250px;
  201. }
  202. .mainQuick .cause {
  203. float: right;
  204. width: 830px;
  205. height: 315px;
  206. overflow: hidden;
  207. border: 1px solid #ccc;
  208. }
  209. .mainWheel {
  210. margin: 0 0 20px 0;
  211. }
  212. .mainWheel .wheelLeft {
  213. height: 620px;
  214. }
  215. .mainWheel .wheelLeft .lunbo {
  216. height: 270px;
  217. margin: 0 0 40px 0;
  218. overflow: hidden;
  219. }
  220. .mainWheel .wheelLeft .content {
  221. height: 310px;
  222. overflow: hidden;
  223. }
  224. .mainWheel .wheelRight {
  225. float: right;
  226. width: 830px;
  227. height: 620px;
  228. }
  229. .mainWheel .wheelRight .danwei {
  230. height: 315px;
  231. margin: 0 0 20px 0;
  232. overflow: hidden;
  233. border: 1px solid #ccc;
  234. }
  235. .mainWheel .wheelRight .yizhanshi {
  236. height: 285px;
  237. border: 1px solid #ccc;
  238. }
  239. .mainLink {
  240. margin: 0 0 20px 0;
  241. height: 150px;
  242. border: 1px solid #ccc;
  243. }
  244. .down {
  245. height: 100px;
  246. background-color: #333;
  247. }
  248. .floating {
  249. position: fixed;
  250. top: 10%;
  251. right: 10%;
  252. width: 350px;
  253. height: 140px;
  254. color: blue;
  255. background: #fff;
  256. border: 2px solid red;
  257. }
  258. /deep/.floating .el-button {
  259. position: absolute;
  260. right: 0px;
  261. padding: 3px 5px;
  262. background: #ccc;
  263. color: #000;
  264. border-radius: 0;
  265. z-index: 1;
  266. }
  267. .erweima {
  268. position: fixed;
  269. top: 30%;
  270. right: 1%;
  271. z-index: 999;
  272. width: 60px;
  273. height: 120px;
  274. }
  275. .login {
  276. position: fixed;
  277. top: 0;
  278. z-index: 1000;
  279. height: 40px;
  280. line-height: 40px;
  281. background: #cccccc9f;
  282. }
  283. </style>