//import * as WxJsApi from '@/utils/wxJsApi.js' import * as API from '@/apis/common.js' import CompanyInfo from '@/components/job/companyInfo.vue' export default { data() { return { show:false, id:"", showcompany:false, companyId:"", context:"", info:{ messageDetail:{}, company:{} }, isReady:false, src: '/static/img/head/png', } }, components: { CompanyInfo }, onLoad(op){ this.id=op.id; }, onReachBottom() { if(this.showcompany){ this.$refs.refCompanyInfo.myLoadmore() } }, methods: { changeAgree(i){ uni.showLoading({ title:"加载中",mask:true, }) API.changeAgree({ messageId:this.id, isAgree:i, remark:this.context }).then((res)=>{ //this.info=res.data; this.info.isAgree=i; // uni.hideLoading() uni.showToast({ title:"操作成功" }) }).catch(error => { uni.showToast({ title:error }) }) }, getInfo(){ uni.showLoading({ title:"加载中",mask:true, }) API.messageDetail(this.id).then((res)=>{ this.info=res.data; this.companyId=this.info.company.id uni.hideLoading() }).catch(error => { uni.showToast({ title:error }) }) } },onReady(){ this.getInfo() this.isReady=true; },onShow(){ if(this.isReady){ } }, }