特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
3.9 KiB

2 months ago
  1. <template>
  2. <view class="page">
  3. <image src="/static/image/home/banner.png" mode="aspectFill"
  4. class="bgImage"></image>
  5. <view class="box">
  6. <view class="boss-box">
  7. <image src="/static/image/center/headImage.png"
  8. class="headImage"
  9. mode="aspectFill"></image>
  10. <view class="info">
  11. <view class="title">
  12. 李先生<text></text>
  13. </view>
  14. <view class="desc">
  15. 广州有限公司 · 老板
  16. <view class="vip">
  17. vip
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="firm">
  23. <view class="title">
  24. 任职企业
  25. </view>
  26. <view class="firm-info">
  27. <image src="/static/image/center/headImage.png"
  28. class="image"
  29. mode="aspectFill"></image>
  30. <view class="info">
  31. <view class="name">
  32. 广州有限公司
  33. </view>
  34. <view class="desc">
  35. 0-20
  36. </view>
  37. </view>
  38. </view>
  39. <view class="album">
  40. <uv-album :urls="urls"></uv-album>
  41. </view>
  42. </view>
  43. <view class="list-work">
  44. <view class="text">
  45. 发布职位<text>19</text>
  46. </view>
  47. <view style="margin: 20rpx;"
  48. @click="$utils.navigateTo('/pages_order/work/userDetail?id=' + item.id)"
  49. :key="index"
  50. v-for="(item, index) in list">
  51. <workItem :item="item"/>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import userHead from '../components/user/userHead.vue'
  59. import mixinList from '@/mixins/list.js'
  60. import workItem from '@/components/list/workList/workItem.vue'
  61. export default {
  62. mixins : [mixinList],
  63. components : {
  64. userHead,
  65. workItem,
  66. },
  67. data() {
  68. return {
  69. id : 0,
  70. detail : {},
  71. collectionFlag : false,
  72. mixinsListApi : 'employeeQueryJobList',
  73. urls: ['https://via.placeholder.com/400x200.png/3c9cff/fff'],
  74. }
  75. },
  76. onLoad({id}) {
  77. this.id = id
  78. },
  79. onShow() {
  80. // this.getDetail()
  81. },
  82. methods: {
  83. getDetail(){
  84. let data = {
  85. jobId : this.id
  86. }
  87. if(uni.getStorageSync('token')){
  88. data.token = uni.getStorageSync('token')
  89. }
  90. this.$api('employeeQueryJobById', data, res => {
  91. if(res.code == 200){
  92. this.detail = res.result.employJob
  93. this.collectionFlag = res.result.collectionFlag
  94. }
  95. })
  96. },
  97. }
  98. }
  99. </script>
  100. <style scoped lang="scss">
  101. .page{
  102. min-height: 100vh;
  103. .bgImage{
  104. width: 100%;
  105. height: 500rpx;
  106. }
  107. .box{
  108. margin-top: -100rpx;
  109. .boss-box{
  110. background-color: #fff;
  111. margin: 20rpx;
  112. border-radius: 20rpx;
  113. padding: 20rpx;
  114. position: relative;
  115. box-shadow: 0 0 10rpx 10rpx #00000009;
  116. padding-top: 140rpx;
  117. .headImage{
  118. border-radius: 50%;
  119. width: 150rpx;
  120. height: 150rpx;
  121. position: absolute;
  122. top: -50rpx;
  123. left: 30rpx;
  124. }
  125. .info{
  126. padding: 0 20rpx;
  127. line-height: 46rpx;
  128. .title{
  129. font-weight: 900;
  130. font-size: 32rpx;
  131. }
  132. .desc{
  133. display: flex;
  134. align-items: center;
  135. font-size: 24rpx;
  136. .vip{
  137. padding: 4rpx 20rpx;
  138. border-radius: 20rpx;
  139. border: 1rpx solid #EF7834;
  140. color: #EF7834;
  141. margin-left: 30rpx;
  142. }
  143. }
  144. }
  145. }
  146. .firm{
  147. background-color: #fff;
  148. margin: 20rpx;
  149. border-radius: 20rpx;
  150. padding: 20rpx;
  151. position: relative;
  152. box-shadow: 0 0 10rpx 10rpx #00000009;
  153. .title{
  154. font-size: 32rpx;
  155. font-weight: 900;
  156. padding: 20rpx;
  157. }
  158. .firm-info{
  159. display: flex;
  160. .image{
  161. width: 140rpx;
  162. height: 140rpx;
  163. border-radius: 20rpx;
  164. }
  165. .info{
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: space-around;
  169. margin-left: 30rpx;
  170. font-size: 26rpx;
  171. .name{
  172. font-weight: 900;
  173. }
  174. .desc{
  175. }
  176. }
  177. }
  178. .album{
  179. padding: 20rpx 0;
  180. }
  181. }
  182. .list-work{
  183. .text{
  184. background-color: #fff;
  185. padding: 26rpx;
  186. font-weight: 900;
  187. text{
  188. font-weight: 500;
  189. color: #666666;
  190. font-size: 26rpx;
  191. margin-left: 20rpx;
  192. }
  193. }
  194. }
  195. }
  196. }
  197. </style>