index.js 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //import * as WxJsApi from '@/utils/wxJsApi.js'
  2. import * as API from '@/apis/hr/my.js'
  3. import TabbarHr from '@/components/TabbarHr.vue'
  4. export default {
  5. data() {
  6. return {
  7. info:{
  8. },
  9. hr:{},
  10. isReady:false,
  11. src: '/static/img/head.png',
  12. background: {
  13. backgroundColor: '#2295ff',
  14. },
  15. }
  16. },
  17. components: {
  18. TabbarHr
  19. },
  20. onLoad(op){
  21. //this.id=op.id;
  22. },
  23. methods: {
  24. getInfo(){
  25. uni.showLoading({
  26. title: '加载中'
  27. })
  28. API.getAboutMe().then((res)=>{
  29. // this.company=res.data.company
  30. this.info=res.data;
  31. this.hr=res.data.hr;
  32. uni.hideLoading()
  33. }).catch(error => {
  34. uni.showToast({
  35. title:error
  36. })
  37. })
  38. },
  39. },onReady(){
  40. this.getInfo()
  41. this.isReady=true;
  42. },onShow(){
  43. if(this.isReady){
  44. }
  45. },
  46. }