preview.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="resume">
  3. <view class="row">
  4. <!--个人信息-->
  5. <view class="top">
  6. <view class="sm6">
  7. <view class="name">
  8. <text>{{ item.name ? item.name : '姓名' }}</text>
  9. </view>
  10. <view class="item">年龄:{{ item.age }},性别:{{ item.sex }}</view>
  11. <view class="item">工作经验:{{ item.experience }}年</view>
  12. <view class="item">手机号码:{{ item.phone }}</view>
  13. <view class="item">电子邮箱:{{ item.email }}</view>
  14. </view>
  15. <image :src="item.avatar ? ip + item.avatar : '../../../static/ls.jpg'" mode="widthFix" class="tx" v-if="item.avatar"></image>
  16. </view>
  17. </view>
  18. <!--个人优势-->
  19. <view class="row">
  20. <view class="label">
  21. <text class="title">个人优势</text>
  22. </view>
  23. <view class="item">{{ item.advantage }}</view>
  24. </view>
  25. <!--求职期望-->
  26. <view class="row">
  27. <view class="label">
  28. <text class="title">求职期望</text>
  29. </view>
  30. <view class="item">工作城市:{{ item.cityName }}</view>
  31. <view class="item">意向工作:{{ item.positionName }}</view>
  32. <view class="item">期望薪资:{{ item.salary }}</view>
  33. </view>
  34. <button class="btn" @click="invite()">
  35. <text class="icon">&#xe6a3;</text>
  36. <text>面试邀请</text>
  37. </button>
  38. <button class="btn" @click="call()">
  39. <text class="icon">&#xe644;</text>
  40. <text>拨打电话</text>
  41. </button>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. ip: this.http.ip,
  49. id: '',
  50. item: {}
  51. };
  52. },
  53. onLoad(e) {
  54. this.id = e.id;
  55. this.http.request({
  56. url: '/app/deliver/detail/' + e.id,
  57. success: (res) => {
  58. this.item = res.data.data;
  59. }
  60. });
  61. },
  62. methods: {
  63. invite() {
  64. uni.showModal({
  65. title: '提示',
  66. content: '确定发送面试邀请',
  67. success: (res) => {
  68. if (res.confirm) {
  69. this.http.request({
  70. url: '/app/deliver/invite/' + this.id,
  71. success: (res) => {
  72. uni.showToast({ title: '发送成功' });
  73. }
  74. });
  75. }
  76. }
  77. });
  78. },
  79. call() {
  80. uni.makePhoneCall({
  81. phoneNumber: this.item.phone
  82. });
  83. }
  84. }
  85. };
  86. </script>
  87. <style lang="scss"></style>