mycos_info.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <div class="university_details_video">
  3. <head-component :headinfo=headinfo></head-component>
  4. <div class="page-content">
  5. <div class="page-img-box">
  6. <!-- 生涯故事1-->
  7. <div>
  8. <div class="item-box" v-for="(item,index) in list" @click="toDetail(item)">
  9. <div class="top">
  10. <p class="title" v-html="item.title"></p>
  11. <p class="details">详情 ></p>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- <div class="fenye">-->
  16. <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
  17. v-model:limit="queryParams.pageSize" @pagination="query"/>-->
  18. <xjc-pagination v-if="!loading" :total="total" :pageNum="queryParams.pageNum" :pageSize="queryParams.pageSize"
  19. @changePage="changePage"></xjc-pagination>
  20. <!-- </div>-->
  21. </div>
  22. <drag_component></drag_component>
  23. </div>
  24. </div>
  25. </template>
  26. <script setup>
  27. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  28. /*import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";*/
  29. import xjcPagination from "@/views/xjc-integratedmachine/components/xjc_pagination.vue"
  30. import {careerinformation} from '@/api/xjc-integratedmachine/environment/tscareer.js'
  31. import {ref} from "vue";
  32. const router = useRouter()
  33. const route = useRoute()
  34. const list = ref([])
  35. const total = ref(0)
  36. const entity = ref({})
  37. const headinfo = ref({})
  38. function setHeadinfo(){
  39. headinfo.value = {
  40. title: '学职资讯',
  41. user: {
  42. avatar: '头像路径',
  43. nickName: '张三'
  44. },
  45. backUrl : '/xjc-integratedmachine/environment/query_universitydb_conditions',
  46. homeUrl:'/xjc-integratedmachine/environment/index',
  47. }
  48. }
  49. onMounted(() => {
  50. setHeadinfo()
  51. query()
  52. })
  53. function toDetail(item) {
  54. router.push({
  55. path : '/xjc-integratedmachine/environment/info_detail',
  56. query :{
  57. id : item.id
  58. }
  59. })
  60. }
  61. //分页部分
  62. const queryParams = ref({
  63. pageNum: 1,
  64. pageSize: 5,
  65. type : '1'
  66. })
  67. function changePage(params) {
  68. queryParams.value.pageSize = params.value.pageSize
  69. queryParams.value.pageNum = params.value.pageNum
  70. query()
  71. }
  72. const loading = ref(false)
  73. function query() {
  74. loading.value = true
  75. careerinformation(queryParams.value).then(resp => {
  76. list.value = resp.data_list.rows
  77. total.value = resp.data_list.total
  78. loading.value = false
  79. })
  80. }
  81. </script>
  82. <style scoped>
  83. p, div {
  84. margin: 0;
  85. padding: 0;
  86. }
  87. .university_details_video {
  88. background: url('@/assets/images/environment/university-detail.png') no-repeat;
  89. background-size: 1920px 1080px;
  90. width: 100%;
  91. height: 1080px;
  92. .page-content {
  93. width: 100%;
  94. position: absolute;
  95. top: 100px;
  96. bottom: 0;
  97. display: flex;
  98. justify-content: center;
  99. }
  100. .page-img-box {
  101. width: 1832px;
  102. height: 922px;
  103. margin-top: 13px;
  104. background: rgba(255, 255, 255, 0.4);
  105. border-radius: 35px 35px 35px 35px;
  106. display: flex;
  107. flex-direction: column;
  108. /* overflow: auto;*/
  109. .item-box{
  110. width: 1750px;
  111. height: 120px;
  112. border-left: 10px solid #1EC590;
  113. background: #FFFFFF;
  114. box-shadow: 0px 2px 4px 2px rgba(0,0,0,0.09);
  115. border-radius: 5px 5px 5px 5px;
  116. margin-left: 40px;
  117. margin-top: 46px;
  118. padding-left: 40px;
  119. padding-right: 40px;
  120. .top{
  121. display: flex;
  122. justify-content: space-between;
  123. padding-top: 40px;
  124. .title{
  125. font-weight: bold;
  126. font-size: 32px;
  127. color: #000000;
  128. line-height: 36px;
  129. }
  130. .details{
  131. font-weight: 400;
  132. font-size: 20px;
  133. color: #515F6A;
  134. text-align: left;
  135. font-style: normal;
  136. text-transform: none;
  137. transform: translateY(5px);
  138. }
  139. }
  140. .content{
  141. border-top: #E6E6E6 1px solid;
  142. height: 100px;
  143. overflow: auto;
  144. padding-top: 30px;
  145. font-weight: 400;
  146. font-size: 30px;
  147. color: #333333;
  148. }
  149. }
  150. }
  151. }
  152. </style>