preview.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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="add()">
  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. resumeDeliverId: 0,
  41. item: {}
  42. };
  43. },
  44. onLoad(e) {
  45. this.resumeDeliverId = 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. add() {
  55. uni.showModal({
  56. title: '提示',
  57. content: '确定发送兼职邀请',
  58. success: (res) => {
  59. if (res.confirm) {
  60. this.http.request({
  61. url: '/app/deliver/agreeApplication/' + this.resumeDeliverId,
  62. success: (res) => {
  63. //通知模板订阅消息
  64. uni.requestSubscribeMessage({
  65. tmplIds: ['bxOGj5FbyGHSevmWf9yzwpSZDjlFZPnGBeqGgIj9w_o', 'pyUsW2HqOcXmFETHFUDjuH-ekf05QVc29k0tRaY9wP8'],
  66. complete: (c) => {
  67. uni.showModal({
  68. title: '提示',
  69. content: '发送成功,等待对方同意',
  70. showCancel: false,
  71. success: (res) => {
  72. uni.$emit('agreeApplication');
  73. uni.navigateBack();
  74. }
  75. });
  76. }
  77. });
  78. }
  79. });
  80. }
  81. }
  82. });
  83. },
  84. call() {
  85. uni.makePhoneCall({
  86. phoneNumber: this.item.phone
  87. });
  88. }
  89. }
  90. };
  91. </script>
  92. <style lang="scss"></style>