detail.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view>
  3. <view class="main">
  4. <view class="title">{{ item.title }}</view>
  5. <view class="price" v-if="item.type == 0">{{ item.salary == '面议' ? item.salary : item.salary + '/月' }}</view>
  6. <view class="desc">{{ item.experience }} · {{ item.positionName }} · {{ item.type == 0 ? '全职' : '兼职' }}</view>
  7. </view>
  8. <view class="bos">
  9. <view class="ms" style="margin-top: 0px">
  10. <view class="mtitle">职位描述</view>
  11. <u-parse :content="item.contents" class="item"></u-parse>
  12. </view>
  13. <!--企业信息-->
  14. <view v-if="item.type == 0">
  15. <view class="ms" @click="go('/pages/job/enterprise/detail?id=' + enterprise.id)">
  16. <view class="icon gs">&#xe646;</view>
  17. <view class="con">
  18. <view class="mti">{{ enterprise.name }}</view>
  19. <view class="address omit">{{ enterprise.address }}</view>
  20. </view>
  21. <text class="icon more">&#xe62b;</text>
  22. </view>
  23. <map :latitude="item.latitude" :longitude="item.longitude" :markers="covers"></map>
  24. </view>
  25. </view>
  26. <view class="mfooter">
  27. <view class="cn">
  28. <view class="tob">
  29. <text class="icon">&#xe637;</text>
  30. <view class="mtt">分享</view>
  31. </view>
  32. <view class="tob">
  33. <text class="icon">&#xe626;</text>
  34. <view class="mtt">收藏</view>
  35. </view>
  36. <button class="btn" @click="send()">
  37. <text class="icon">&#xe652;</text>
  38. <text>投递简历</text>
  39. </button>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. item: {},
  49. enterprise: {},
  50. covers: []
  51. };
  52. },
  53. onLoad(e) {
  54. this.http.request({
  55. url: '/app/position/detail/' + e.id,
  56. success: (res) => {
  57. this.item = res.data.data.position;
  58. this.enterprise = res.data.data.enterprise;
  59. this.covers.push({ latitude: this.item.latitude, longitude: this.item.longitude });
  60. }
  61. });
  62. },
  63. methods: {
  64. go(url) {
  65. uni.navigateTo({ url: url });
  66. },
  67. //投递简历
  68. send() {
  69. this.http.request({
  70. url: '/app/deliver/send/' + this.item.id,
  71. success: (res) => {
  72. uni.showModal({content: '投递成功,等待企业回应',showCancel: false});
  73. }
  74. });
  75. }
  76. }
  77. };
  78. </script>
  79. <style lang="scss">
  80. .title {
  81. font-weight: bold;
  82. }
  83. .price {
  84. padding-top: 5px;
  85. font-size: 15px;
  86. font-weight: bold;
  87. color: #ff5722;
  88. }
  89. .desc {
  90. padding-top: 5px;
  91. font-size: 14px;
  92. }
  93. .bos {
  94. background-color: white;
  95. padding: 20px;
  96. border-radius: 25px;
  97. .ms {
  98. margin-top: 20px;
  99. overflow: hidden;
  100. .mtitle {
  101. font-weight: bold;
  102. margin-bottom: 10px;
  103. }
  104. .item {
  105. font-size: 14px;
  106. padding-top: 7px;
  107. }
  108. .gs {
  109. float: left;
  110. width: 50px;
  111. height: 50px;
  112. border-radius: 50%;
  113. background-color: #f1f1f1;
  114. text-align: center;
  115. font-size: 30px;
  116. line-height: 47px;
  117. }
  118. .con {
  119. float: left;
  120. padding-left: 10px;
  121. width: 70%;
  122. .mti {
  123. font-weight: bold;
  124. padding-bottom: 5px;
  125. }
  126. .address {
  127. font-size: 13px;
  128. }
  129. }
  130. .more {
  131. float: right;
  132. margin-top: 14px;
  133. }
  134. }
  135. map {
  136. border-radius: 8px;
  137. overflow: hidden;
  138. margin-top: 15px;
  139. width: 100%;
  140. height: 150px;
  141. }
  142. }
  143. .mfooter {
  144. background-color: white;
  145. bottom: 0px;
  146. border-top: 1px solid $line;
  147. .cn {
  148. padding: 10px 10px 18px 10px;
  149. overflow: hidden;
  150. .tob {
  151. margin-right: 15px;
  152. float: left;
  153. color: $font-c;
  154. .icon {
  155. font-size: 28px;
  156. }
  157. .mtt {
  158. font-size: 14px;
  159. }
  160. }
  161. .btn {
  162. float: right;
  163. margin-top: 5px;
  164. }
  165. }
  166. }
  167. </style>