index.js 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //import * as WxJsApi from '@/utils/wxJsApi.js'
  2. import * as API from '@/apis/hr/news.js'
  3. export default {
  4. data() {
  5. return {
  6. company:{},
  7. info:{},
  8. isReady:false,
  9. }
  10. },
  11. components: {
  12. },
  13. onLoad(op){
  14. this.id=op.id;
  15. },
  16. methods: {
  17. getInfo(){
  18. uni.showLoading({
  19. title: '加载中'
  20. })
  21. API.getLabourDetails(this.id).then((res)=>{
  22. this.company=res.data;
  23. this.info=res.data.labourServices;
  24. uni.hideLoading()
  25. this.$nextTick(()=>{
  26. var list =document.getElementsByClassName("resumeInfo-main")[0].getElementsByTagName("img");
  27. for(var i=0;i<list.length;i++){
  28. list[i].style='width: 100%;height: 100%;'
  29. }
  30. })
  31. }).catch(error => {
  32. uni.showToast({
  33. title:error
  34. })
  35. })
  36. },
  37. },onReady(){
  38. this.getInfo();
  39. this.isReady=true;
  40. },onShow(){
  41. if(this.isReady){
  42. }
  43. },
  44. }