1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/hr/news.js'
- export default {
- data() {
- return {
- company:{},
- info:{},
- isReady:false,
- }
- },
- components: {
-
- },
- onLoad(op){
-
- this.id=op.id;
- },
- methods: {
- getInfo(){
- uni.showLoading({
- title: '加载中'
- })
- API.getLabourDetails(this.id).then((res)=>{
- this.company=res.data;
- this.info=res.data.labourServices;
- uni.hideLoading()
- this.$nextTick(()=>{
- var list =document.getElementsByClassName("resumeInfo-main")[0].getElementsByTagName("img");
- for(var i=0;i<list.length;i++){
- list[i].style='width: 100%;height: 100%;'
- }
- })
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- },
-
- },onReady(){
- this.getInfo();
- this.isReady=true;
- },onShow(){
- if(this.isReady){
-
- }
- },
- }
|