general.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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>
  54. </view>
  55. </template>
  56. <script>
  57. import {
  58. get_detail,
  59. get_company_list
  60. } from "@/units/inquire.js"
  61. export default {
  62. data() {
  63. return {
  64. id: '',
  65. detail: {},
  66. job_id: "",
  67. city_id: '',
  68. company_list: [],
  69. }
  70. },
  71. onLoad(option) {
  72. this.id = option.id
  73. this.getdetail()
  74. this.getcompanylist()
  75. },
  76. onReachBottom() {
  77. },
  78. methods: {
  79. getcompanylist() {
  80. get_company_list({
  81. id: this.id,
  82. category_job_id: this.job_id,
  83. city_id: this.city_id
  84. }).then(res => {
  85. this.company_list = res.data
  86. })
  87. },
  88. return1() {
  89. uni.navigateBack()
  90. },
  91. togongsi(id) {
  92. uni.navigateTo({
  93. url: "/pagesB/general-info?id="+id
  94. })
  95. },
  96. getdetail() {
  97. get_detail({
  98. id: this.id
  99. }).then(res => {
  100. this.detail = res.data
  101. })
  102. }
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. page {}
  108. .index-page {
  109. background-color: #F3F3F3;
  110. min-height: 100vh;
  111. .contant {
  112. background: #F3F3F3;
  113. height: 100%;
  114. padding: 0 24rpx;
  115. .title {
  116. .title {
  117. font-size: 34rpx;
  118. font-family: SFPro-Medium, SFPro;
  119. font-weight: 500;
  120. color: #222222;
  121. display: block;
  122. }
  123. .jianjie {
  124. font-size: 24rpx;
  125. font-family: SFPro-Regular, SFPro;
  126. font-weight: 400;
  127. color: #555555;
  128. display: block;
  129. margin-top: 10rpx;
  130. }
  131. }
  132. .list {
  133. background: #FFFFFF;
  134. border-radius: 16rpx;
  135. padding: 28rpx;
  136. margin-top: 20rpx;
  137. }
  138. .bottom {
  139. margin-top: 32rpx;
  140. border-top: 2rpx solid #F3F3F3;
  141. .font {
  142. margin-left: 14rpx;
  143. font-size: 24rpx;
  144. font-family: SFPro-Regular, SFPro;
  145. font-weight: 400;
  146. color: #888888;
  147. }
  148. }
  149. }
  150. .font1 {
  151. font-size: 24rpx;
  152. font-family: PingFangSC-Regular, PingFang SC;
  153. font-weight: 400;
  154. color: #1A1C24;
  155. }
  156. .header {
  157. height: 144rpx;
  158. border-bottom: 2rpx solid #F3F3F3;
  159. padding: 20rpx 24rpx;
  160. display: flex;
  161. align-items: center;
  162. box-sizing: border-box;
  163. .font {
  164. margin-left: 16rpx;
  165. .title {
  166. width: 534rpx;
  167. height: 44rpx;
  168. font-size: 32rpx;
  169. font-family: PingFangSC-Medium, PingFang SC;
  170. font-weight: 500;
  171. color: #1A1C24;
  172. line-height: 44rpx;
  173. display: block;
  174. }
  175. .active {
  176. height: 34rpx;
  177. font-size: 24rpx;
  178. font-family: SFPro-Regular, SFPro;
  179. font-weight: 400;
  180. color: #444444;
  181. line-height: 28rpx;
  182. display: block;
  183. margin-top: 18rpx;
  184. }
  185. }
  186. }
  187. .index-navbar {
  188. position: sticky;
  189. top: 0;
  190. left: 0;
  191. width: 750rpx;
  192. z-index: 100;
  193. .header-down {
  194. height: 92rpx;
  195. padding: 20rpx 24rpx;
  196. box-sizing: border-box;
  197. .font {
  198. font-size: 40rpx;
  199. font-family: PingFangSC-Medium, PingFang SC;
  200. font-weight: 500;
  201. color: #222222;
  202. }
  203. .right-item {
  204. padding: 0 16rpx;
  205. height: 52rpx;
  206. background: #F3F3F3;
  207. border-radius: 4rpx;
  208. margin-left: 20rpx;
  209. .text {
  210. margin-right: 4rpx;
  211. font-size: 26rpx;
  212. font-family: PingFangSC-Regular, PingFang SC;
  213. font-weight: 400;
  214. color: #666666;
  215. }
  216. }
  217. .down-left {
  218. .text {
  219. margin-right: 4rpx;
  220. font-size: 26rpx;
  221. font-family: PingFangSC-Medium, PingFang SC;
  222. font-weight: 500;
  223. color: #222222;
  224. }
  225. }
  226. }
  227. .index-bg {
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. z-index: -1;
  232. width: 750rpx;
  233. height: 392rpx;
  234. }
  235. }
  236. .index-header {
  237. flex: 1;
  238. padding: 0 32rpx;
  239. height: 50rpx;
  240. .index-search {
  241. width: 200rpx;
  242. height: 64rpx;
  243. background: #FFFFFF;
  244. border-radius: 20rpx;
  245. padding: 0 28rpx;
  246. .text1 {
  247. font-size: 24rpx;
  248. font-family: PingFangSC-Regular, PingFang SC;
  249. font-weight: 400;
  250. color: #999999;
  251. margin-left: 16rpx;
  252. }
  253. }
  254. .index-tabs {
  255. text:first-child {
  256. font-size: 36rpx;
  257. font-family: PingFangSC-Medium, PingFang SC;
  258. font-weight: 500;
  259. color: #222222;
  260. }
  261. text:last-child {
  262. width: 76rpx;
  263. height: 12rpx;
  264. background: linear-gradient(270deg, #208EFF 0%, rgba(28, 159, 227, 0) 100%);
  265. margin-top: -20rpx;
  266. border-radius: 100rpx;
  267. }
  268. }
  269. }
  270. }
  271. ::v-deep .u-navbar__content__left {
  272. padding: 0 !important;
  273. }
  274. ::v-deep .u-icon__icon {
  275. margin-left: 11rpx !important;
  276. }
  277. </style>