general.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <template>
  2. <view class="index-page">
  3. <view class="index-navbar">
  4. <view style="position: relative;height: 392rpx;">
  5. <image class="index-bg" src="../static/images/index-header.png" mode=""></image>
  6. <u-navbar :fixed="false" bgColor='rgba(0,0,0,0)' placeholder :safeAreaInsetTop="true"
  7. @leftClick="return1"></u-navbar>
  8. <view class="header">
  9. <image style="width: 104rpx;height: 104rpx;" :src="detail.school.logo" mode=""></image>
  10. <view class="font">
  11. <text class="title">{{detail.title}}</text>
  12. <text
  13. class="active">活动时间:{{(detail.start_time).replaceAll('-','.')}}-{{(detail.end_time).replaceAll("-",".").slice(-5)}}</text>
  14. </view>
  15. </view>
  16. <view class="u-flex" style="box-sizing: border-box; padding: 18rpx 24rpx;height: 70rpx;">
  17. <view class="u-flex">
  18. <text class="font1" style="margin-right: 14rpx;">工作城市</text>
  19. <u-icon name="arrow-down-fill" size="8"></u-icon>
  20. </view>
  21. <view class="u-flex" style="margin-left: 54rpx;">
  22. <text class="font1" style="margin-right: 14rpx;">职位类型</text>
  23. <u-icon name="arrow-down-fill" size="8"></u-icon>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="contant">
  28. <view class="list" @click="togongsi(item.id)" v-for="(item,index) in company_list" :key = "item.id">
  29. <view class="u-flex u-row-between">
  30. <view class="title">
  31. <text class="title">{{item.company.name}}</text>
  32. <text class="jianjie">{{item.company.categoryindustry.name}} {{item.company.stage.name}} {{item.company.scale.name}}</text>
  33. </view>
  34. <image style="width: 93rpx;height: 92rpx;" :src="item.company.logo" mode=""></image>
  35. </view>
  36. <view class="bottom">
  37. <view class="u-flex" style="margin-top: 18rpx;">
  38. <image style="width: 28rpx;height: 28rpx;" src="../static/images/address.png" mode="">
  39. </image>
  40. <text class="font" v-for="(city,cityindex) in item.city.slice(0,2)" :key="city.apply.id">{{city.city}}</text>
  41. <text class="font" v-if="item.city.length == 1">{{item.city.length}}个城市</text>
  42. <text class="font" v-else>等{{item.city.length}}个城市</text>
  43. </view>
  44. <view class="u-flex" style="margin-top: 32rpx;">
  45. <image style="width: 28rpx;height: 28rpx;" src="../static/images/woek.png" mode=""></image>
  46. <text class="font" v-for="(job,index) in item.activityjobinfo.slice(0,2)" :key="job.apply.id">{{job.job_name}}</text>
  47. <text class="font" v-if="item.activityjobinfo.length == 1">{{item.activityjobinfo.length}}个岗位</text>
  48. <text class="font" v-else>等{{item.activityjobinfo.length}}个岗位</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view style="height: 70vh;display: flex;justify-content: center;align-items: center;" v-if="company_list.length == 0">
  54. <u-empty text="暂无数据" mode="list"></u-empty>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. import {
  61. get_detail,
  62. get_company_list
  63. } from "@/units/inquire.js"
  64. export default {
  65. data() {
  66. return {
  67. id: '',
  68. detail: {
  69. start_time:"",
  70. end_time:""
  71. },
  72. job_id: "",
  73. city_id: '',
  74. company_list: [],
  75. }
  76. },
  77. onLoad(option) {
  78. this.id = option.id
  79. this.getdetail()
  80. this.getcompanylist()
  81. },
  82. onReachBottom() {
  83. },
  84. methods: {
  85. getcompanylist() {
  86. get_company_list({
  87. id: this.id,
  88. category_job_id: this.job_id,
  89. city_id: this.city_id
  90. }).then(res => {
  91. this.company_list = res.data
  92. })
  93. },
  94. return1() {
  95. uni.navigateBack()
  96. },
  97. togongsi(id) {
  98. uni.navigateTo({
  99. url: "/pagesB/general-info?id="+id
  100. })
  101. },
  102. getdetail() {
  103. get_detail({
  104. id: this.id
  105. }).then(res => {
  106. this.detail = res.data
  107. })
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. page {}
  114. .index-page {
  115. background-color: #F3F3F3;
  116. min-height: 100vh;
  117. .contant {
  118. background: #F3F3F3;
  119. height: 100%;
  120. padding: 0 24rpx;
  121. .title {
  122. .title {
  123. font-size: 34rpx;
  124. font-family: SFPro-Medium, SFPro;
  125. font-weight: 500;
  126. color: #222222;
  127. display: block;
  128. }
  129. .jianjie {
  130. font-size: 24rpx;
  131. font-family: SFPro-Regular, SFPro;
  132. font-weight: 400;
  133. color: #555555;
  134. display: block;
  135. margin-top: 10rpx;
  136. }
  137. }
  138. .list {
  139. background: #FFFFFF;
  140. border-radius: 16rpx;
  141. padding: 28rpx;
  142. margin-top: 20rpx;
  143. }
  144. .bottom {
  145. margin-top: 32rpx;
  146. border-top: 2rpx solid #F3F3F3;
  147. .font {
  148. margin-left: 14rpx;
  149. font-size: 24rpx;
  150. font-family: SFPro-Regular, SFPro;
  151. font-weight: 400;
  152. color: #888888;
  153. }
  154. }
  155. }
  156. .font1 {
  157. font-size: 24rpx;
  158. font-family: PingFangSC-Regular, PingFang SC;
  159. font-weight: 400;
  160. color: #1A1C24;
  161. }
  162. .header {
  163. height: 144rpx;
  164. border-bottom: 2rpx solid #F3F3F3;
  165. padding: 20rpx 24rpx;
  166. display: flex;
  167. align-items: center;
  168. box-sizing: border-box;
  169. .font {
  170. margin-left: 16rpx;
  171. .title {
  172. width: 534rpx;
  173. height: 44rpx;
  174. font-size: 32rpx;
  175. font-family: PingFangSC-Medium, PingFang SC;
  176. font-weight: 500;
  177. color: #1A1C24;
  178. line-height: 44rpx;
  179. display: block;
  180. }
  181. .active {
  182. height: 34rpx;
  183. font-size: 24rpx;
  184. font-family: SFPro-Regular, SFPro;
  185. font-weight: 400;
  186. color: #444444;
  187. line-height: 28rpx;
  188. display: block;
  189. margin-top: 18rpx;
  190. }
  191. }
  192. }
  193. .index-navbar {
  194. position: sticky;
  195. top: 0;
  196. left: 0;
  197. width: 750rpx;
  198. z-index: 100;
  199. .header-down {
  200. height: 92rpx;
  201. padding: 20rpx 24rpx;
  202. box-sizing: border-box;
  203. .font {
  204. font-size: 40rpx;
  205. font-family: PingFangSC-Medium, PingFang SC;
  206. font-weight: 500;
  207. color: #222222;
  208. }
  209. .right-item {
  210. padding: 0 16rpx;
  211. height: 52rpx;
  212. background: #F3F3F3;
  213. border-radius: 4rpx;
  214. margin-left: 20rpx;
  215. .text {
  216. margin-right: 4rpx;
  217. font-size: 26rpx;
  218. font-family: PingFangSC-Regular, PingFang SC;
  219. font-weight: 400;
  220. color: #666666;
  221. }
  222. }
  223. .down-left {
  224. .text {
  225. margin-right: 4rpx;
  226. font-size: 26rpx;
  227. font-family: PingFangSC-Medium, PingFang SC;
  228. font-weight: 500;
  229. color: #222222;
  230. }
  231. }
  232. }
  233. .index-bg {
  234. position: absolute;
  235. top: 0;
  236. left: 0;
  237. z-index: -1;
  238. width: 750rpx;
  239. height: 392rpx;
  240. }
  241. }
  242. .index-header {
  243. flex: 1;
  244. padding: 0 32rpx;
  245. height: 50rpx;
  246. .index-search {
  247. width: 200rpx;
  248. height: 64rpx;
  249. background: #FFFFFF;
  250. border-radius: 20rpx;
  251. padding: 0 28rpx;
  252. .text1 {
  253. font-size: 24rpx;
  254. font-family: PingFangSC-Regular, PingFang SC;
  255. font-weight: 400;
  256. color: #999999;
  257. margin-left: 16rpx;
  258. }
  259. }
  260. .index-tabs {
  261. text:first-child {
  262. font-size: 36rpx;
  263. font-family: PingFangSC-Medium, PingFang SC;
  264. font-weight: 500;
  265. color: #222222;
  266. }
  267. text:last-child {
  268. width: 76rpx;
  269. height: 12rpx;
  270. background: linear-gradient(270deg, #208EFF 0%, rgba(28, 159, 227, 0) 100%);
  271. margin-top: -20rpx;
  272. border-radius: 100rpx;
  273. }
  274. }
  275. }
  276. }
  277. ::v-deep .u-navbar__content__left {
  278. padding: 0 !important;
  279. }
  280. ::v-deep .u-icon__icon {
  281. margin-left: 11rpx !important;
  282. }
  283. </style>