detail.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. if (res.data.code == 7979) {
  73. uni.showModal({
  74. title: '提示',
  75. content: res.data.msg,
  76. showCancel: false,
  77. success: (res) => {
  78. uni.navigateTo({ url: '/pages/user/resume/index' });
  79. }
  80. });
  81. } else {
  82. uni.showModal({ content: '投递成功,等待企业回应', showCancel: false });
  83. }
  84. }
  85. });
  86. }
  87. }
  88. };
  89. </script>
  90. <style lang="scss">
  91. .title {
  92. font-weight: bold;
  93. }
  94. .price {
  95. padding-top: 5px;
  96. font-size: 15px;
  97. font-weight: bold;
  98. color: #ff5722;
  99. }
  100. .desc {
  101. padding-top: 5px;
  102. font-size: 14px;
  103. }
  104. .bos {
  105. background-color: white;
  106. padding: 20px;
  107. border-radius: 25px;
  108. .ms {
  109. margin-top: 20px;
  110. overflow: hidden;
  111. .mtitle {
  112. font-weight: bold;
  113. margin-bottom: 10px;
  114. }
  115. .item {
  116. font-size: 14px;
  117. padding-top: 7px;
  118. }
  119. .gs {
  120. float: left;
  121. width: 50px;
  122. height: 50px;
  123. border-radius: 50%;
  124. background-color: #f1f1f1;
  125. text-align: center;
  126. font-size: 30px;
  127. line-height: 47px;
  128. }
  129. .con {
  130. float: left;
  131. padding-left: 10px;
  132. width: 70%;
  133. .mti {
  134. font-weight: bold;
  135. padding-bottom: 5px;
  136. }
  137. .address {
  138. font-size: 13px;
  139. }
  140. }
  141. .more {
  142. float: right;
  143. margin-top: 14px;
  144. }
  145. }
  146. map {
  147. border-radius: 8px;
  148. overflow: hidden;
  149. margin-top: 15px;
  150. width: 100%;
  151. height: 150px;
  152. }
  153. }
  154. .mfooter {
  155. background-color: white;
  156. bottom: 0px;
  157. border-top: 1px solid $line;
  158. .cn {
  159. padding: 10px 10px 18px 10px;
  160. overflow: hidden;
  161. .tob {
  162. margin-right: 15px;
  163. float: left;
  164. color: $font-c;
  165. .icon {
  166. font-size: 28px;
  167. }
  168. .mtt {
  169. font-size: 14px;
  170. }
  171. }
  172. .btn {
  173. float: right;
  174. margin-top: 5px;
  175. }
  176. }
  177. }
  178. </style>