resumeCheck.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!-- 查看非商户简历 -->
  2. <template>
  3. <view v-if="!loading" style="padding-bottom: 100upx;" class="main_width">
  4. <view class="form_item">
  5. <view style="margin-left: 3%;">
  6. <view style="color: #4A4A4A;font-size: 44upx;align-items: center;display: flex;">
  7. {{sub_data.true_name||'-'}}
  8. <navigator url="./perInfo">
  9. <image v-if="allow_edit==1" style="width: 35upx;height: 35upx;margin-left: 10upx;"
  10. src="../../static/resume_edit.png"></image>
  11. </navigator>
  12. </view>
  13. <view class="check_resume_top">
  14. <view>{{sub_data.gender||'-'}} · {{sub_data.age||'-'}}岁</view>
  15. <view>籍贯:{{sub_data.birthaddr||'-'}}</view>
  16. <view>身高:{{sub_data.body_height||'-'}}cm<text
  17. style="margin-left: 30upx;">体重:{{sub_data.body_weight||'-'}}kg</text></view>
  18. <view v-if="sys_role==0">手机号码:{{sub_data.mobile}}</view>
  19. </view>
  20. </view>
  21. <image style="width: 130upx;height: 130upx;margin-right: 3%;border-radius: 50%;"
  22. :src="sub_data.profile_photo==''?'../../static/user.png': (sub_data.profile_photo.indexOf('http://')==0||sub_data.profile_photo.indexOf('https://')==0)?sub_data.profile_photo:(serverUrl+ sub_data.profile_photo)">
  23. </view>
  24. <view style="display: block;" class="form_item" :key="item.key" v-for="(item, index) in resume_info_item_edit">
  25. <view class="rht">{{item.name}}</view>
  26. <view style="width: 94%;margin-left: 3%;margin-top: 20upx;">
  27. {{sub_data[item.key]||''}}
  28. </view>
  29. </view>
  30. <view style="display: block;" class="form_item">
  31. <view style="padding-bottom: 20upx;" class="rht">相关证书</view>
  32. <view style="width: 94%;margin-left: 3%;margin-top: 20upx;">
  33. <image :key="index" @click="check_imgs(index)" v-for="(item,index) in sub_data.certificates" :src="item"
  34. style="width: 100%;margin-bottom: 20upx;border-radius: 20upx;" mode="widthFix"></image>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="loading_text" v-else>加载中...</view>
  39. </template>
  40. <script>
  41. import commonData from '../../commonData.js'
  42. import commonFun from '../../commonFun.js'
  43. export default {
  44. data() {
  45. return {
  46. resume_info_item_edit: commonData.resume_info_item_edit, //textarea显示字段
  47. sub_data: {
  48. profile_photo: ''
  49. }, //用户信息
  50. loading: true,
  51. id: '', //对方id
  52. bizCatalog: '', //查看类型:获取某个商家TraderEntity,获取某个会员WorkerEntity
  53. allow_edit: 0, //是否显示编辑按钮
  54. sys_role: commonData.sys_role, //角色
  55. }
  56. },
  57. onLoad(e) {
  58. // 是否为查看其他人
  59. this.bizCatalog = e.bizCatalog || 'WorkerEntity'
  60. this.allow_edit = e.allow || 0
  61. this.id = e.id
  62. this.get_info()
  63. },
  64. onPullDownRefresh() {
  65. this.get_info()
  66. },
  67. methods: {
  68. check_imgs(current) {
  69. let certificates = (this.sub_data.certificates)
  70. uni.previewImage({
  71. urls: certificates,
  72. current,
  73. });
  74. },
  75. // 获取信息
  76. get_info() {
  77. uni.showLoading({
  78. title: '加载中...',
  79. mask: true,
  80. })
  81. this.loading = true
  82. let params = {
  83. bizCatalog: this.bizCatalog,
  84. handleMode: 'fetch',
  85. traderId: this.id,
  86. workerId: this.id,
  87. }
  88. console.log('简历页面请求参数')
  89. console.log(params)
  90. commonFun.requestUrl('&WsAjaxBiz=Worker&WsAjaxAction=entityDataHandle', params, res => {
  91. if (res.status) {
  92. uni.hideLoading()
  93. this.sub_data = res.data.Result
  94. console.log('简历页面获取其他个人信息')
  95. console.log(this.sub_data)
  96. }
  97. this.loading = false
  98. uni.stopPullDownRefresh()
  99. }, false)
  100. },
  101. }
  102. }
  103. </script>
  104. <style>
  105. .check_resume_top {
  106. line-height: 42upx;
  107. margin-top: 10upx;
  108. }
  109. .check_resume_top view {
  110. color: #949494;
  111. }
  112. </style>