preview.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 || '' }}</text>
  9. </view>
  10. <view class="item">年龄:{{ item.age || '' }}</view>
  11. <view class="item">性别:{{ item.sex || '' }}</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.positionName || '' }}</view>
  24. </view>
  25. <button class="btn" @click="invite()">
  26. <text class="icon">&#xe6a3;</text>
  27. <text>面试邀请</text>
  28. </button>
  29. <button class="btn" @click="call()">
  30. <text class="icon">&#xe644;</text>
  31. <text>拨打电话</text>
  32. </button>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. ip: this.http.ip,
  40. id: '',
  41. item: {}
  42. };
  43. },
  44. onLoad(e) {
  45. this.id = e.id;
  46. this.http.request({
  47. url: '/app/deliver/detail/' + e.id,
  48. success: (res) => {
  49. this.item = res.data.data;
  50. }
  51. });
  52. },
  53. methods: {
  54. invite() {
  55. uni.showModal({
  56. title: '提示',
  57. content: '确定发送面试邀请',
  58. success: (res) => {
  59. if (res.confirm) {
  60. this.http.request({
  61. url: '/app/deliver/invite/' + this.id,
  62. success: (res) => {
  63. uni.showToast({ title: '发送成功' });
  64. }
  65. });
  66. }
  67. }
  68. });
  69. },
  70. call() {
  71. uni.makePhoneCall({
  72. phoneNumber: this.item.phone
  73. });
  74. }
  75. }
  76. };
  77. </script>
  78. <style lang="scss"></style>