123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- //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 {
- id:"",
- showcompany:false,
- companyId:"",
- info:{
- messageDetail:{},
- company:{}
- },
- isReady:false,
- src: '/static/img/head/png',
- }
- },
- components: {
- CompanyInfo
- },
- onReachBottom() {
-
- if(this.showcompany){
- this.$refs.refCompanyInfo.myLoadmore()
- }
- },
- onLoad(op){
- this.id=op.id;
- },
- methods: {
- changeAgree(i){
- uni.showLoading({
- title:"加载中",mask:true,
- })
-
-
- API.changeAgree({
- messageId:this.id,
- isAgree:i
- }).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;
- if(this.info.company){
- this.companyId=this.info.company.id
-
- }
- uni.hideLoading()
- }).catch(error => {
- uni.showToast({
- title:error
- })
- })
-
- }
-
- },onReady(){
- this.getInfo()
- this.isReady=true;
- },onShow(){
- if(this.isReady){
-
- }
- },
- }
|