| | |
| | | }, |
| | | methods: { |
| | | handleCancel(){ |
| | | const { info } = this |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '这是一个模态弹窗', |
| | | content: '您确认要撤回当前申请吗?', |
| | | success: function (res) { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | driverCarRevoke({ |
| | | id: info.id, info: '' |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | | } |
| | | } |
| | | }); |
| | | // driverCarRevoke |
| | | }, |
| | | handleEdit(){}, |
| | | handleAga(){}, |
| | | handleEdit(){ |
| | | uni.navigateTo({ |
| | | url: '/pages/driver/reserved?id=' + this.info.id |
| | | }) |
| | | }, |
| | | handleAga(){ |
| | | const { info } = this |
| | | uni.navigateTo({ |
| | | url: `/pages/driver/reserved?id=${info.id}&type=reject` |
| | | }) |
| | | }, |
| | | getDetail(id) { |
| | | driverApplyDetail({id}).then(res => { |
| | | this.info = res.data |
| | |
| | | .item { |
| | | display: flex; |
| | | margin-bottom: 48rpx; |
| | | |
| | | position: relative; |
| | | .separate { |
| | | position: absolute; |
| | | width: 4rpx; |
| | | height: calc( 100% - 52rpx ); |
| | | background-color: #eeeeee; |
| | | left: 40rpx; |
| | | top: 90rpx; |
| | | } |
| | | .avatar_wrap { |
| | | width: 80rpx; |
| | | height: 80rpx; |
| | |
| | | bottom: 0; |
| | | } |
| | | |
| | | .separate { |
| | | position: absolute; |
| | | width: 4rpx; |
| | | height: 100%; |
| | | background-color: #eeeeee; |
| | | left: 50%; |
| | | transform: translate(-50%, 0); |
| | | bottom: -80rpx; |
| | | } |
| | | } |
| | | |
| | | .content { |