12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/hr/resume.js'
- import resumeInfo from '@/pages/job/personal/install/resume/resume.vue'
- import ResumeItem from '@/components/hr/ResumeItem.vue'
- export default {
- data() {
- return {
- isDeliver:false,
- isCollect:false,
- list:[],
- id:"",
- info:{},
- isReady:false,
- src: '/static/img/head/png',
- }
- },
- components: {
- resumeInfo,ResumeItem
- },
- onLoad(op){
-
- this.id=op.id;
- },
- methods: {
- getInfo(info){
- this.info=info.resume;
- this.isCollect=info.isCollect;
- },
- deliverBtn(){
-
- if(this.info){
- uni.makePhoneCall({
- phoneNumber: this.info.userTel //仅为示例
- });
- }
-
- },collectBtn(){
- uni.showLoading({
- title: '加载中'
- })
- this.isCollect=!this.isCollect
-
- API.collectResume(this.id,this.isCollect?1:0).then((res)=>{
-
- uni.hideLoading()
-
- }).catch(error => {
- uni.showToast({
- title:error
- })
- })
- },
- getRelevantList(){
- API.getRelevantList(this.id).then((res)=>{
- this.list=res.data.data;
-
- uni.hideLoading()
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- },
- setId(id){
- this.id=id;
-
- this.$refs.info.setId(this.id)
- },
- },onReady(){
- this.$refs.info.setId(this.id)
- this.isReady=true;
- },onShow(){
- if(this.isReady){
-
- }
- },
- }
|