| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="entrance-apply"> |
| | | <view class="entrance-apply_block"> |
| | | <u-button text="更换预约时间" |
| | | @click="entranceApply"></u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | onLoad(params) { |
| | | this.punchTheClockObj.tmcoa = params.tmId; |
| | | this.coalStatus = params.coalStatus; |
| | | this.timeout = params.timeout |
| | | this.entranceApplyParams.takeCoalId = params.orderPlanId |
| | | this.entranceApplyParams.filedId = params.filedId |
| | | this.entranceApplyParams.deptId = params.deptId |
| | | this.entranceApplyParams.sendDate = params.sendDate |
| | | this.entranceApplyParams.yyId = params.yyId |
| | | this.entranceApplyParams.sendDate = params.sendDate |
| | | this.yuYueSection = params.yuYueSection |
| | | this.getSetting(); //获取授权 |
| | | this.getFuzzyLocation(); //获取位置 |
| | |
| | | this.$reqPost('arrive', this.punchTheClockObj, 'params').then(res => { |
| | | console.log(res, '签到'); |
| | | if (res.code == 0) { |
| | | this.$u.toast('签到成功'); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | uni.redirectTo({ |
| | | url: `/pages/driver-page/appointment/appointment?type=入场申请&yyId=${this.entranceApplyParams.yyId}&yuYueSection=${this.yuYueSection}&takeCoalId=${this.entranceApplyParams.takeCoalId}&deptId=${this.entranceApplyParams.deptId}&filedId=${this.entranceApplyParams.filedId}&sendDate=${this.entranceApplyParams.sendDate}` |
| | | }) |
| | | }, 1000); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '签到失败'); |
| | |
| | | this.$u.toast('暂获取不到到当前位置'); |
| | | } |
| | | }, |
| | | entranceApply() { |
| | | if (this.coalStatus !== 2) { |
| | | this.$u.toast('请先签到') |
| | | return |
| | | } |
| | | if (this.timeout === '2') { |
| | | this.$u.toast('未超出预约时间,无需更换'); |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/appointment/appointment?type=入场申请&takeCoalId=${this.entranceApplyParams.takeCoalId}&yyId=${this.entranceApplyParams.yyId}&filedId=${this.entranceApplyParams.filedId}&deptId=${ |
| | | this.entranceApplyParams.deptId |
| | | }&sendDate=${this.entranceApplyParams.sendDate}&yuYueSection=${this.yuYueSection}` |
| | | }); |
| | | } |
| | | // entranceApply() { |
| | | // if (this.coalStatus !== 2) { |
| | | // this.$u.toast('请先签到') |
| | | // return |
| | | // } |
| | | // if (this.timeout === '2') { |
| | | // this.$u.toast('未超出预约时间,无需更换'); |
| | | // return |
| | | // } |
| | | // uni.navigateTo({ |
| | | // url: `/pages/driver-page/appointment/appointment?type=入场申请&takeCoalId=${this.entranceApplyParams.takeCoalId}&yyId=${this.entranceApplyParams.yyId}&filedId=${this.entranceApplyParams.filedId}&deptId=${ |
| | | // this.entranceApplyParams.deptId |
| | | // }&sendDate=${this.entranceApplyParams.sendDate}&yuYueSection=${this.yuYueSection}` |
| | | // }); |
| | | // } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | |
| | | .text { |
| | | margin-left: vww(5); |
| | | } |
| | | } |
| | | } |
| | | |
| | | .entrance-apply { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | position: fixed; |
| | | bottom: vww(50); |
| | | |
| | | &_block { |
| | | width: 50%; |
| | | |
| | | /deep/.u-button { |
| | | font-size: 28rpx; |
| | | font-weight: 300; |
| | | color: #ffffff !important; |
| | | background: #497bfb !important; |
| | | letter-spacing: 4rpx; |
| | | border-radius: 37rpx 37rpx 37rpx 37rpx !important; |
| | | box-shadow: 2rpx 3rpx 13rpx 0rpx rgba(43, 98, 239, 0.5), 0rpx 0rpx 9rpx 0rpx rgba(247, 250, 253, 0.29); |
| | | } |
| | | } |
| | | } |