瑶都万能墙
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.

224 lines
4.7 KiB

4 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="工作详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="box">
  5. <view class="title">
  6. {{ detail.title }}
  7. </view>
  8. <view class="price">
  9. {{ detail.salaryLow }}-{{ detail.salaryUp }}
  10. </view>
  11. <view class="line">
  12. <!-- <view>
  13. <image src="../static/work/address.png" mode=""></image>
  14. {{ detail.workAge }}
  15. </view> -->
  16. <view>
  17. <image src="../static/work/g.png" mode=""></image>
  18. {{ detail.workAge }}
  19. </view>
  20. <view>
  21. <image src="../static/work/x.png" mode=""></image>
  22. {{ detail.qulification }}
  23. </view>
  24. </view>
  25. <view class="line">
  26. 该职位位于{{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
  27. </view>
  28. <!-- <view class="userHead">
  29. <userHead :headImage="detail.headImage"
  30. :name="detail.name" :phoneCall="detail.phone"/>
  31. </view> -->
  32. <view class="address">
  33. <view class="title2">
  34. 工作地址
  35. </view>
  36. <!--
  37. 深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东
  38. -->
  39. <view class="line"
  40. style="justify-content: space-between;">
  41. {{ detail.workAddress }}
  42. <uv-icon
  43. size="30rpx"
  44. color="666"
  45. name="arrow-right"
  46. ></uv-icon>
  47. </view>
  48. <view class="tag-list">
  49. <view>
  50. 距您14.6千米
  51. </view>
  52. </view>
  53. </view>
  54. <view class="info">
  55. <view class="title2">
  56. <text>职位详情</text>
  57. <view>
  58. <uv-icon
  59. size="30rpx"
  60. color="666"
  61. name="star"
  62. ></uv-icon>
  63. 收藏
  64. </view>
  65. </view>
  66. <view class="tag-list">
  67. <view v-for="(t, i) in detail.tab && detail.tab.split('、')">
  68. {{ t }}
  69. </view>
  70. </view>
  71. <view
  72. class="text"
  73. v-html="text">
  74. </view>
  75. <!-- <view
  76. class="text">
  77. <uv-parse :content="detail.workDetail"></uv-parse>
  78. </view> -->
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. let text = `岗位要求
  85. 1全日制大专以上学历艺术设计类相关专业;
  86. 2两年以上平面品牌视觉设计等相关工作经验能独立完成项目的设计工作 3C数码/个护健 类产品服务经验优先有乙方工作经验佳;
  87. 3具备一定的设计提案能力能完整的呈现设计思路与创意能清晰的表达设计逻辑与思考;
  88. 4热爱设计平面基本功扎实拥有优良的审美与创意想法对版式色彩把控能力强;对工作富有责任心具备团队沟通与协作能力;
  89. 5精通 PSAICDR 等平面设计软件能独立完成日常平面设计工作内容熟练使用 PPT/Keynote能完成提案内容的材料美化工作
  90. `
  91. export default {
  92. components : {
  93. },
  94. data() {
  95. return {
  96. text : '',
  97. id : 0,
  98. detail : {
  99. title : 'Java工程师',
  100. salaryLow : 9000,
  101. salaryUp : 12000,
  102. tab : '应届生、包吃',
  103. workAddress : '长沙',
  104. },
  105. collectionFlag : false,
  106. }
  107. },
  108. onLoad({id}) {
  109. this.id = id
  110. },
  111. onShow() {
  112. this.text = this.$utils.stringFormatHtml(text)
  113. this.getData()
  114. },
  115. methods: {
  116. getData(){
  117. let data = {
  118. jobId : this.id
  119. }
  120. if(uni.getStorageSync('token')){
  121. data.token = uni.getStorageSync('token')
  122. }
  123. this.$api('employeeQueryJobById', data, res => {
  124. if(res.code == 200){
  125. this.detail = res.result.employJob
  126. this.collectionFlag = res.result.collectionFlag
  127. }
  128. })
  129. },
  130. }
  131. }
  132. </script>
  133. <style scoped lang="scss">
  134. .page{
  135. background-color: #fff;
  136. min-height: 100vh;
  137. .box{
  138. padding: 30rpx;
  139. .title{
  140. font-size: 34rpx;
  141. font-weight: 900;
  142. padding-bottom: 20rpx;
  143. }
  144. .title2{
  145. font-size: 28rpx;
  146. font-weight: 900;
  147. display: flex;
  148. justify-content: space-between;
  149. align-items: center;
  150. view{
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. }
  155. }
  156. .price{
  157. font-size: 30rpx;
  158. font-weight: 900;
  159. color: $uni-color;
  160. }
  161. .line{
  162. display: flex;
  163. font-size: 24rpx;
  164. color: #666666;
  165. margin-top: 30rpx;
  166. image{
  167. width: 30rpx;
  168. height: 30rpx;
  169. }
  170. &>view{
  171. margin-right: 50rpx;
  172. display: flex;
  173. justify-content: center;
  174. align-items: center;
  175. }
  176. }
  177. .userHead{
  178. padding: 50rpx 0;
  179. border-bottom: 1px solid #00000011;
  180. }
  181. .address{
  182. padding: 30rpx 0;
  183. .line{
  184. margin-top: 20rpx;
  185. }
  186. }
  187. .info{
  188. .text{
  189. font-size: 24rpx;
  190. color: #666666;
  191. line-height: 44rpx;
  192. }
  193. }
  194. }
  195. }
  196. .tag-list{
  197. display: flex;
  198. flex-wrap: wrap;
  199. }
  200. .tag-list > view{
  201. margin: 10rpx;
  202. padding: 10rpx;
  203. background-color: #EFF2F1;
  204. font-size: 24rpx;
  205. border-radius: 10rpx;
  206. }
  207. </style>