12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //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){
-
- }
- },
- }
|