| | |
| | | } |
| | | var that =this |
| | | this.lessTime = Math.floor( Number(that.info.confirmCountdown || 0)/1000) ; |
| | | if(lessTime>0){ |
| | | if(this.lessTime>0){ |
| | | this.timer = setInterval(function(){ |
| | | let h = Math.floor(that.lessTime/60/60) ; |
| | | let m = Math.floor((that.lessTime - h*60*60)/60); |
| | |
| | | this.isPushlishor =false |
| | | this.isAcceptor =false |
| | | this.$u.api.getDetail(param).then(res =>{ |
| | | console.error("=============================",res.data.releaseMemberId,res.data.acceptMemberId,that.userInfo.id) |
| | | |
| | | if(res.code ===200){ |
| | | if(that.userInfo.id === res.data.releaseMemberId ){ |
| | | //如果是发单方 |
| | |
| | | //如果是接单方 |
| | | that.isAcceptor =true |
| | | } |
| | | if(that.isAcceptor ||that.isAcceptor ){ |
| | | if(that.isAcceptor ||that.isPushlishor ){ |
| | | that.info = res.data |
| | | if(that.userInfo.id === that.info.releaseMemberId ){ |
| | | //如果是发单方 |