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

260 lines
4.9 KiB

1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
11 months ago
1 year ago
11 months ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year 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.minPrice }}
  10. <!-- <text>-{{ detail.maxPrice }}</text> -->
  11. </view>
  12. <view class="line">
  13. <!-- <view>
  14. <image src="../static/work/address.png" mode=""></image>
  15. {{ detail.workAge }}
  16. </view> -->
  17. <view>
  18. <!-- <image src="../static/work/g.png" mode=""></image> -->
  19. 工龄{{ detail.workYear }}
  20. </view>
  21. <view>
  22. <!-- <image src="../static/work/x.png" mode=""></image> -->
  23. <!-- {{ detail.school }} -->
  24. 该职位位于{{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
  25. </view>
  26. </view>
  27. <!-- <view class="line">
  28. 该职位位于{{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
  29. </view> -->
  30. <!-- <view class="userHead">
  31. <userHead :headImage="detail.headImage"
  32. :name="detail.name" :phoneCall="detail.phone"/>
  33. </view> -->
  34. <view class="info">
  35. <view class="title2">
  36. <text>职位要求</text>
  37. </view>
  38. <view
  39. class="text"
  40. v-html="detail.school">
  41. </view>
  42. </view>
  43. <view class="address">
  44. <view class="title2">
  45. 工作地址
  46. </view>
  47. <!--
  48. 深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东
  49. -->
  50. <view class="line"
  51. style="justify-content: space-between;">
  52. {{ detail.address }}
  53. <uv-icon
  54. size="30rpx"
  55. color="666"
  56. name="arrow-right"
  57. ></uv-icon>
  58. </view>
  59. <!-- <view class="tag-list">
  60. <view>
  61. 距您14.6千米
  62. </view>
  63. </view> -->
  64. </view>
  65. <view class="info">
  66. <view class="title2">
  67. <text>职位详情</text>
  68. <view>
  69. <uv-icon
  70. size="30rpx"
  71. color="666"
  72. name="star"
  73. ></uv-icon>
  74. 收藏
  75. </view>
  76. </view>
  77. <view class="tag-list">
  78. <view v-for="(t, i) in detail.iconText && detail.iconText.split('、')">
  79. {{ t }}
  80. </view>
  81. </view>
  82. <view
  83. class="text"
  84. v-html="detail.jobDetails">
  85. </view>
  86. <!-- <view
  87. class="text">
  88. <uv-parse :content="detail.workDetail"></uv-parse>
  89. </view> -->
  90. </view>
  91. </view>
  92. <commentList
  93. @getData="getData"
  94. :list="list"
  95. :params="params"
  96. />
  97. </view>
  98. </template>
  99. <script>
  100. import mixinsList from '@/mixins/list.js'
  101. import commentList from '../components/list/comment/commentList.vue'
  102. export default {
  103. mixins: [mixinsList],
  104. components : {
  105. commentList,
  106. },
  107. data() {
  108. return {
  109. id : 0,
  110. detail : {},
  111. collectionFlag : false,
  112. mixinsListApi : 'getCommentPage',
  113. params : {
  114. type : '2',
  115. orderId : '',
  116. name : '',
  117. },
  118. }
  119. },
  120. onLoad(options) {
  121. this.id = options.id
  122. this.queryParams.type = this.params.type
  123. this.queryParams.orderId = options.id
  124. this.params.orderId = options.id
  125. // 设置分享路径
  126. this.share.path = '/pages_order/work/workDetail?id=' + this.id
  127. },
  128. onPullDownRefresh() {
  129. this.getDetail()
  130. },
  131. onShow() {
  132. this.getDetail()
  133. },
  134. methods: {
  135. getDetail(){
  136. let data = {
  137. id : this.id
  138. }
  139. if(uni.getStorageSync('token')){
  140. data.token = uni.getStorageSync('token')
  141. }
  142. this.$api('getJobDetail', data, res => {
  143. if(res.code == 200){
  144. this.params.name = res.result.title
  145. this.detail = res.result
  146. this.detail.jobDetails = this.$utils.stringFormatHtml(res.result.jobDetails)
  147. this.collectionFlag = res.result.collectionFlag
  148. // 设置分享信息
  149. this.share.title = res.result.title
  150. }
  151. })
  152. },
  153. }
  154. }
  155. </script>
  156. <style scoped lang="scss">
  157. .page{
  158. .box{
  159. padding: 30rpx;
  160. background-color: #fff;
  161. .title{
  162. font-size: 34rpx;
  163. font-weight: 900;
  164. padding-bottom: 20rpx;
  165. }
  166. .title2{
  167. margin: 20rpx 0;
  168. font-size: 28rpx;
  169. font-weight: 900;
  170. display: flex;
  171. justify-content: space-between;
  172. align-items: center;
  173. view{
  174. display: flex;
  175. align-items: center;
  176. justify-content: center;
  177. }
  178. }
  179. .price{
  180. font-size: 30rpx;
  181. font-weight: 900;
  182. color: $uni-color;
  183. }
  184. .line{
  185. display: flex;
  186. font-size: 24rpx;
  187. color: #666666;
  188. margin-top: 30rpx;
  189. image{
  190. width: 30rpx;
  191. height: 30rpx;
  192. }
  193. &>view{
  194. margin-right: 50rpx;
  195. display: flex;
  196. justify-content: center;
  197. align-items: center;
  198. }
  199. }
  200. .userHead{
  201. padding: 50rpx 0;
  202. border-bottom: 1px solid #00000011;
  203. }
  204. .address{
  205. padding: 30rpx 0;
  206. .line{
  207. margin-top: 20rpx;
  208. }
  209. }
  210. .info{
  211. margin: 20rpx 0;
  212. .text{
  213. font-size: 24rpx;
  214. color: #666666;
  215. line-height: 44rpx;
  216. }
  217. }
  218. }
  219. }
  220. .tag-list{
  221. display: flex;
  222. flex-wrap: wrap;
  223. }
  224. .tag-list > view{
  225. margin: 10rpx;
  226. padding: 10rpx;
  227. background-color: #EFF2F1;
  228. font-size: 24rpx;
  229. border-radius: 10rpx;
  230. }
  231. </style>