zhuanjia.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <div id="context">
  3. <el-col :span="24" class="one">
  4. <el-col :span="7" class="oneLeft">
  5. <el-image :src="zhuanjiainfo.imgpath" style="height:210px"> </el-image>
  6. </el-col>
  7. <el-col :span="17" class="oneRight">
  8. <p class="textOver">姓名 {{ zhuanjiainfo.name }}</p>
  9. <p>
  10. <span>民族:{{ zhuanjiainfo.gender || '暂无' }}</span>
  11. <span>出生年月:{{ zhuanjiainfo.birth || '暂无' }}/{{ zhuanjiainfo.priceunit || '暂无' }}</span>
  12. </p>
  13. <p>
  14. <span> 毕业院校:{{ zhuanjiainfo.school }} </span>
  15. <span>所学专业:{{ zhuanjiainfo.major_studied }}</span>
  16. </p>
  17. <p>
  18. <span>学历:{{ zhuanjiainfo.eduback || '暂无' }}</span>
  19. <span>学位:{{ zhuanjiainfo.degree || '暂无' }}</span>
  20. </p>
  21. <p>
  22. <span>办公电话:{{ zhuanjiainfo.tel || '暂无' }}</span>
  23. <span>邮箱:{{ zhuanjiainfo.email || '暂无' }}</span>
  24. </p>
  25. </el-col>
  26. <el-col :span="24" class="oneRight">
  27. <div>
  28. <p>
  29. <span>职务:{{ zhuanjiainfo.position || '暂无' }}</span
  30. ><span>从事专业:{{ zhuanjiainfo.email || '暂无' }}</span>
  31. <span>住址:{{ zhuanjiainfo.email || '暂无' }}</span>
  32. <span>可供咨询领域:{{ zhuanjiainfo.email || '暂无' }}</span>
  33. </p>
  34. </div>
  35. <div></div>
  36. <div></div>
  37. <div></div>
  38. <div>
  39. <p>工作简介:</p>
  40. <p class="job_profile" v-if="job_profile != ''">{{ zhuanjiainfo.job_profile || '暂无' }}</p>
  41. <p class="job_profile1" v-else>{{ zhuanjiainfo.job_profile || '暂无' }}</p>
  42. <el-button size="mini" v-if="zhuanjiainfo.job_profile != null">
  43. <span v-if="job_profile != ''" @click="job_profileMore()">更多</span>
  44. <span v-else @click="job_profileMore1()">收起</span>
  45. </el-button>
  46. </div>
  47. </el-col>
  48. </el-col>
  49. </div>
  50. </template>
  51. <script>
  52. export default {
  53. name: 'context',
  54. props: {
  55. zhuanjiainfo: null,
  56. },
  57. components: {},
  58. data: () => ({
  59. scope: '123',
  60. job_profile: '123',
  61. }),
  62. created() {},
  63. computed: {},
  64. methods: {
  65. scopeMore() {
  66. this.scope = '';
  67. },
  68. // 收起
  69. scopeMore1() {
  70. this.scope = '123';
  71. },
  72. // 更多
  73. job_profileMore() {
  74. this.introduction = '';
  75. },
  76. // 收起
  77. job_profileMore1() {
  78. this.introduction = '123';
  79. },
  80. },
  81. };
  82. </script>
  83. <style lang="less" scoped>
  84. p {
  85. padding: 0;
  86. margin: 0;
  87. }
  88. .textOver {
  89. overflow: hidden;
  90. text-overflow: ellipsis;
  91. white-space: nowrap;
  92. }
  93. // .textOver{}
  94. // overflow: hidden;
  95. // text-overflow: ellipsis;
  96. // -webkit-line-clamp: 3;
  97. // word-break: break-all;
  98. // display: -webkit-box;
  99. // -webkit-box-orient: vertical;
  100. // }
  101. .style {
  102. height: 100vh;
  103. }
  104. .style .info {
  105. position: relative;
  106. top: -450px;
  107. }
  108. .style .top {
  109. position: relative;
  110. top: 0;
  111. width: 100%;
  112. text-align: center;
  113. z-index: 999;
  114. height: 230px;
  115. margin: 0 0 20px 0;
  116. }
  117. .style .top p:first-child {
  118. font-size: 50px;
  119. color: #fff;
  120. }
  121. .style .top p:last-child {
  122. font-size: 30px;
  123. color: #fff;
  124. position: absolute;
  125. width: 100%;
  126. top: 170px;
  127. }
  128. .one {
  129. min-height: 550px;
  130. padding: 20px;
  131. .oneLeft {
  132. height: 210px;
  133. overflow: hidden;
  134. img {
  135. height: 100px;
  136. }
  137. }
  138. .oneRight {
  139. padding: 0 15px;
  140. p {
  141. font-size: 16px;
  142. padding: 0 0 20px 0;
  143. span {
  144. display: inline-block;
  145. width: 50%;
  146. }
  147. }
  148. p:first-child {
  149. font-size: 20px;
  150. font-weight: bold;
  151. padding: 20px 0;
  152. }
  153. p:nth-child(2) span:last-child {
  154. color: red;
  155. font-weight: bold;
  156. }
  157. }
  158. .oneDown {
  159. border-top: 1px dashed #ccc;
  160. margin: 30px 0 0 0;
  161. padding: 30px 0 0 0;
  162. div {
  163. padding: 0 0 15px 0;
  164. p {
  165. font-size: 18px;
  166. }
  167. p:first-child {
  168. color: #333;
  169. font-weight: bold;
  170. padding: 0 0 10px 0;
  171. }
  172. }
  173. div:nth-child(2) p span:last-child {
  174. color: #409eff;
  175. padding: 0 10px;
  176. }
  177. div:nth-child(2) p span:last-child:hover {
  178. cursor: pointer;
  179. }
  180. div:nth-child(3) .moreScope {
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. -webkit-line-clamp: 6;
  184. word-break: break-all;
  185. display: -webkit-box;
  186. -webkit-box-orient: vertical;
  187. }
  188. div:nth-child(3) .moreScope1 {
  189. overflow: none;
  190. }
  191. div:nth-child(3) .el-button {
  192. float: right;
  193. }
  194. div:nth-child(5) .job_profileMore {
  195. overflow: hidden;
  196. text-overflow: ellipsis;
  197. -webkit-line-clamp: 6;
  198. word-break: break-all;
  199. display: -webkit-box;
  200. -webkit-box-orient: vertical;
  201. }
  202. div:nth-child(5) .job_profileMore1 {
  203. overflow: none;
  204. }
  205. div:last-child .el-button {
  206. float: right;
  207. }
  208. }
  209. .mainDown {
  210. height: 50px;
  211. line-height: 50px;
  212. text-align: center;
  213. }
  214. }
  215. </style>