home.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <div id="home">
  3. <!-- <nut-navbar>
  4. &nbsp;
  5. <template v-slot:left>
  6. 关闭
  7. </template>
  8. <template v-slot:right> </template>
  9. <template v-slot:more-icon>
  10. &nbsp;
  11. </template>
  12. </nut-navbar> -->
  13. <test-user></test-user>
  14. <el-image style="width: 100%; height: 10rem" :src="url"></el-image>
  15. <el-row type="flex" align="middle" class="menu_list">
  16. <!-- drawerTalk = true" -->
  17. <el-col :span="6" class="list_border" @click.native="toHtml('/talkList.html#/')">
  18. <el-col :span="24"><div class="el-icon-school icon_zoom"></div></el-col>
  19. <el-col :span="24">
  20. <el-link type="info" :underline="false">宣讲会</el-link>
  21. </el-col>
  22. <!-- <el-drawer :visible.sync="drawerTalk" direction="btt">
  23. <template #title>
  24. <el-row>
  25. <el-col :span="20">选择查看类型</el-col>
  26. </el-row>
  27. </template>
  28. <el-row class="drawer__row">
  29. <el-col :span="24" @click.native="toHtml('/talkList.html#/?type=in')">
  30. <el-button type="text">校内宣讲会</el-button>
  31. </el-col>
  32. <el-col :span="24" @click.native="toHtml('/talkList.html#/?type=out')">
  33. <el-button type="text">校外宣讲会</el-button>
  34. </el-col>
  35. </el-row>
  36. </el-drawer> -->
  37. </el-col>
  38. <!-- drawerJobfair = true -->
  39. <el-col :span="6" class="list_border" @click.native="toHtml('/jobfairList.html#/')">
  40. <el-col :span="24"><div class="el-icon-s-custom icon_zoom"></div></el-col>
  41. <el-col :span="24">
  42. <el-link type="info" :underline="false">招聘会</el-link>
  43. </el-col>
  44. <el-drawer :visible.sync="drawerJobfair" direction="btt">
  45. <template #title>
  46. <el-row>
  47. <el-col :span="20">选择查看类型</el-col>
  48. </el-row>
  49. </template>
  50. <el-row class="drawer__row">
  51. <el-col :span="24" @click.native="toHtml('/jobfairList.html#/?type=in')">
  52. <el-button type="text">校内招聘会</el-button>
  53. </el-col>
  54. <el-col :span="24" @click.native="toHtml('/jobfairList.html#/?type=out')">
  55. <el-button type="text">校外招聘会</el-button>
  56. </el-col>
  57. </el-row>
  58. </el-drawer>
  59. </el-col>
  60. <el-col :span="6" class="list_border">
  61. <el-col :span="24"><div class="el-icon-s-platform icon_zoom"></div></el-col>
  62. <el-col :span="24"><el-link type="info" :underline="false" href="/jobinfoList.html">在线招聘</el-link></el-col>
  63. </el-col>
  64. <el-col :span="6" class="list_border" @click.native="toHtml('', 'check')">
  65. <el-col :span="24"><div class="el-icon-user icon_zoom"></div></el-col>
  66. <el-col :span="24"><el-link type="info" :underline="false">个人中心</el-link></el-col>
  67. </el-col>
  68. <!-- <el-drawer :visible.sync="drawerCenter" direction="btt">
  69. <template #title>
  70. <el-row>
  71. <el-col :span="20">选择类型</el-col>
  72. </el-row>
  73. </template>
  74. <el-row class="drawer__row">
  75. <el-col :span="24" >
  76. <el-button type="text">学生个人中心</el-button>
  77. </el-col>
  78. <el-col :span="24" @click.native="toHtml('', 'check')">
  79. <el-button type="text">企业中心</el-button>
  80. </el-col>
  81. </el-row>
  82. </el-drawer> -->
  83. </el-row>
  84. <!-- list部分 -->
  85. <div class="list">
  86. <el-row class="tip" type="flex">
  87. <el-col :span="16"> test<b class="tip_en">TEST</b> </el-col>
  88. <el-col :span="8" class="more">
  89. 查看更多
  90. </el-col>
  91. </el-row>
  92. <el-row type="flex" v-for="(item, index) in list" :key="index" class="data_list">
  93. <el-col :span="6"> 【{{ item.type === 1 ? '测试1' : '其他类型' }}】 </el-col>
  94. <el-col :span="18">{{ item.title }}</el-col>
  95. </el-row>
  96. </div>
  97. <div class="list">
  98. <el-row class="tip" type="flex">
  99. <el-col :span="16"> test1<b class="tip_en">TEST1</b> </el-col>
  100. <el-col :span="8" class="more">
  101. 查看更多
  102. </el-col>
  103. </el-row>
  104. <el-row type="flex" v-for="(item, index) in list" :key="index" class="data_list">
  105. <el-col :span="6"> 【{{ item.type === 1 ? '测试1' : '招聘' }}】 </el-col>
  106. <el-col :span="18">{{ item.title }}</el-col>
  107. </el-row>
  108. </div>
  109. <div class="list">
  110. <el-row class="tip" type="flex">
  111. <el-col :span="24"> 联系我们<b class="tip_en">CONTACT</b> </el-col>
  112. </el-row>
  113. <el-row style="font-size: 0.85rem;padding: 0 0.6rem;">
  114. <el-col :span="24">联系地址: 吉林省长春市朝阳区卫星路6543号,综合楼C区203室 </el-col>
  115. <el-col :span="24">邮政编码: 130000</el-col>
  116. <el-col :span="24">服务热线: 0431-88888888</el-col>
  117. </el-row>
  118. </div>
  119. <div class="list">
  120. <el-row class="tip" type="flex">
  121. <el-col :span="24"> 关注我们<b class="tip_en">WECHAT</b> </el-col>
  122. </el-row>
  123. qrcode
  124. </div>
  125. </div>
  126. </template>
  127. <script>
  128. import { mapActions, mapState } from 'vuex';
  129. import testUser from '@/components/test-user.vue';
  130. export default {
  131. name: 'home',
  132. props: {},
  133. components: {
  134. testUser,
  135. },
  136. data: () => ({
  137. url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
  138. list: [
  139. { type: '1', title: '测试标题1' },
  140. { type: '1', title: '测试标题2' },
  141. { type: '1', title: '测试标题3' },
  142. { type: '1', title: '测试标题4' },
  143. { type: '1', title: '测试标题5' },
  144. ],
  145. drawerTalk: false,
  146. drawerJobfair: false,
  147. drawerCenter: false,
  148. }),
  149. created() {},
  150. computed: {
  151. ...mapState({
  152. user: state => state.user.user,
  153. }),
  154. },
  155. methods: {
  156. toHtml(uri, type) {
  157. if (type) {
  158. let url = '';
  159. if (typeof this.user === 'object') {
  160. this.user.corpid === undefined ? (url = '/student.html#/') : (url = 'http://hr.smart.jilinjobswx.cn/mobile');
  161. } else {
  162. url = '/register.html#/';
  163. }
  164. window.location.href = url;
  165. } else {
  166. window.location.href = uri;
  167. }
  168. },
  169. },
  170. };
  171. </script>
  172. <style lang="less" scoped>
  173. .title {
  174. height: 3rem;
  175. }
  176. .menu_list {
  177. padding: 0 1rem;
  178. }
  179. .list_border {
  180. border: 0.0625rem solid #ebeced;
  181. height: 3.5rem;
  182. text-align: center;
  183. padding: 0.3rem 0;
  184. }
  185. .icon_zoom {
  186. zoom: 1.5;
  187. }
  188. .list_word {
  189. // line-height: 5rem;
  190. font-size: 0.625rem;
  191. }
  192. .list {
  193. margin-bottom: 0.7rem;
  194. }
  195. .tip {
  196. border-left: 0.1875rem solid #25b6ed;
  197. color: #000;
  198. font-size: 1.2rem;
  199. margin-bottom: 0.6rem;
  200. padding: 0.5rem 0 0.5rem 0.8rem;
  201. }
  202. .tip_en {
  203. margin-left: 0.5rem;
  204. color: #ccc;
  205. font-size: 1rem;
  206. font-style: italic;
  207. }
  208. .more {
  209. text-align: right;
  210. margin-right: 0.5rem;
  211. color: #ccc;
  212. font-size: 1rem;
  213. }
  214. .data_list {
  215. font-size: 0.85rem;
  216. overflow: hidden;
  217. white-space: nowrap;
  218. text-overflow: ellipsis;
  219. }
  220. .drawer__row {
  221. .el-col {
  222. border-bottom: 0.0625rem solid #eee;
  223. text-align: center;
  224. }
  225. }
  226. </style>