|
@@ -1,56 +1,73 @@
|
|
|
<template>
|
|
|
<view class="warp">
|
|
|
- <view class="nav">
|
|
|
+ <!-- <view class="nav">
|
|
|
<view class="item" :class="index==1?'item-active':''" @click="clickNav(1)">
|
|
|
预定中
|
|
|
</view>
|
|
|
<view class="item" :class="index==2?'item-active':''" @click="clickNav(2)">
|
|
|
已取消
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="content1">
|
|
|
<view class="row1">
|
|
|
<view class="left">
|
|
|
- 路线:北京→定州,出发时间:2022-12-03 01:01
|
|
|
+ 路线:{{dataObj.route}},出发时间:{{dataObj.departureTime}}
|
|
|
</view>
|
|
|
<view class="btn" @click="toMyFb">
|
|
|
查看我的发布
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row2">
|
|
|
- 重要提示:请确认已经和预订乘客电话确认拼车,乘客预订列表只作为车主查看记录,方便出发前联系使用,具体以电话确认拼车为准,如电话确认不拼车就取消乘客的预订即可,确认拼车可要求乘客在线预付定金。
|
|
|
+ 重要提示:请确认已经和预订乘客电话确认拼车,乘客预订列表只作为车主查看记录,方便出发前联系使用,具体以电话确认拼车为准,如电话确认不拼车就取消乘客的预订即可。
|
|
|
</view>
|
|
|
</view>
|
|
|
<mescroll-body ref="mescrollRef" @up="upCallback">
|
|
|
<view class="content3 infoList" v-for="(item,index) in infoList">
|
|
|
<view class="row1">
|
|
|
<view class="left">
|
|
|
- 2022-12-03 01:01 (周六)
|
|
|
+ {{item.departureTime}}
|
|
|
+ </view>
|
|
|
+ <view class="right" v-if="item.status=='已接受'" style="color: #19be6b;">
|
|
|
+ {{item.status}}
|
|
|
+ </view>
|
|
|
+ <view class="right" v-if="item.status=='已拒绝'" style="color: red;">
|
|
|
+ {{item.status}}
|
|
|
+ </view>
|
|
|
+ <view class="right" v-if="item.status=='已预约'">
|
|
|
+ {{item.status}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row2">
|
|
|
- 路线:北京→定州
|
|
|
+ 路线:{{item.route}}
|
|
|
</view>
|
|
|
<view class="row3">
|
|
|
- 出发地
|
|
|
+ 出发地:{{item.startPlace}}
|
|
|
</view>
|
|
|
<view class="row3">
|
|
|
- 到达地
|
|
|
+ 到达地:{{item.endPlace}}
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ 手机:{{item.phone}}
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- 手机
|
|
|
+ 人数:{{item.numberPeople}}
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- 人数
|
|
|
+ 价格:{{item.price}}
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- 说明
|
|
|
+ <view class="">
|
|
|
+ 说明:
|
|
|
+ </view>
|
|
|
+ <view class="">
|
|
|
+ {{item.explain?item.explain:'无说明'}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="row4">
|
|
|
- <view class="btn">
|
|
|
+ <view class="btn" @click="submit(1,item.id)">
|
|
|
接受
|
|
|
</view>
|
|
|
- <view class="btn">
|
|
|
+ <view class="btn" @click="submit(2,item.id)">
|
|
|
拒绝
|
|
|
</view>
|
|
|
|
|
@@ -58,6 +75,7 @@
|
|
|
</view>
|
|
|
|
|
|
</mescroll-body>
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -93,16 +111,55 @@
|
|
|
data() {
|
|
|
return {
|
|
|
index: 1,
|
|
|
- infoList: []
|
|
|
+ infoList: [],
|
|
|
+ dataObj: {}
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {},
|
|
|
+ onLoad(options) {
|
|
|
+ this.dataObj = JSON.parse(options.obj)
|
|
|
+ console.log(this.dataObj)
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ submit(type, id) {
|
|
|
+ uni.showLoading({
|
|
|
+ mask: true,
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ console.log(type)
|
|
|
+ let _status = ""
|
|
|
+ if (type == 1) {
|
|
|
+ _status = '已接受'
|
|
|
+ } else {
|
|
|
+ _status = '已拒绝'
|
|
|
+ }
|
|
|
+ this.$request.baseRequest('pincheMakeAppointmentApp', 'update', {
|
|
|
+ pincheMakeAppointment: JSON.stringify({
|
|
|
+ status: _status,
|
|
|
+ id: id
|
|
|
+ })
|
|
|
+ }, failres => {
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ uni.hideLoading()
|
|
|
+ }).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.showToast({
|
|
|
+ mask: true,
|
|
|
+ title: res.errmsg
|
|
|
+ })
|
|
|
+ this.mescroll.resetUpScroll();
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
upCallback(page) {
|
|
|
- this.$request.baseRequest('admin.gubi.gubiTransaction', 'list', {
|
|
|
+ this.$request.baseRequest('pincheMakeAppointmentApp', 'list', {
|
|
|
pageNum: page.num,
|
|
|
pageSize: page.size,
|
|
|
+ remark2: this.dataObj.id
|
|
|
}, failres => {
|
|
|
console.log('res+++++', failres.errmsg)
|
|
|
this.$refs.uToast.show({
|