|
|
@@ -13,6 +13,7 @@
|
|
|
<img v-if="item.state === 3" src="../../static/waiting.png" />
|
|
|
<img v-if="item.state === 4" src="../../static/cancel.png" />
|
|
|
<img v-if="item.state === 5" src="../../static/unAppoint.png" />
|
|
|
+ <img v-if="item.state === 6" src="../../static/verification.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="list-info">
|
|
|
@@ -103,7 +104,7 @@ onPullDownRefresh(() => {
|
|
|
currentPage.value = 1
|
|
|
listData.value = []
|
|
|
getMyData()
|
|
|
- setTimeout(function() {
|
|
|
+ setTimeout(function () {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}, 500)
|
|
|
})
|
|
|
@@ -148,6 +149,10 @@ const typeList = ref([
|
|
|
{
|
|
|
text: '已爽约',
|
|
|
value: 5
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '爽约已核销',
|
|
|
+ value: 6
|
|
|
}
|
|
|
])
|
|
|
// 筛选条件时间列表
|
|
|
@@ -208,11 +213,11 @@ const handleChange = () => {
|
|
|
}
|
|
|
|
|
|
// 我已上车按钮回调
|
|
|
-const handleOnCar = id => {
|
|
|
+const handleOnCar = (id) => {
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '确定已经上车吗?',
|
|
|
- success: res => {
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
handleOnCarRequest(id)
|
|
|
} else if (res.cancel) {
|
|
|
@@ -222,7 +227,7 @@ const handleOnCar = id => {
|
|
|
}
|
|
|
|
|
|
// 已上车请求
|
|
|
-const handleOnCarRequest = async id => {
|
|
|
+const handleOnCarRequest = async (id) => {
|
|
|
const res = await myRequest({
|
|
|
url: '/appBoarding.action',
|
|
|
data: {
|
|
|
@@ -244,11 +249,11 @@ const handleOnCarRequest = async id => {
|
|
|
}
|
|
|
|
|
|
// 取消预约按钮回调
|
|
|
-const handleCancel = id => {
|
|
|
+const handleCancel = (id) => {
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '确定取消预约吗?',
|
|
|
- success: res => {
|
|
|
+ success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
handleCancelRequest(id)
|
|
|
} else if (res.cancel) {
|
|
|
@@ -257,7 +262,7 @@ const handleCancel = id => {
|
|
|
})
|
|
|
}
|
|
|
// 取消预约请求
|
|
|
-const handleCancelRequest = async id => {
|
|
|
+const handleCancelRequest = async (id) => {
|
|
|
const res = await myRequest({
|
|
|
url: '/appcancelOrder.action',
|
|
|
data: {
|
|
|
@@ -279,7 +284,7 @@ const handleCancelRequest = async id => {
|
|
|
}
|
|
|
|
|
|
// 筛选下拉框确定选择回调
|
|
|
-const getConveyData = Obj => {
|
|
|
+const getConveyData = (Obj) => {
|
|
|
// console.log(Obj)
|
|
|
result_state.value = Obj.typeIndex
|
|
|
date_state.value = Obj.timeIndex - 0 + 1
|
|
|
@@ -311,11 +316,10 @@ const getConveyData = Obj => {
|
|
|
border-bottom: 1rpx solid #e6e6e6;
|
|
|
|
|
|
.list-img {
|
|
|
- width: 121rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
height: 34rpx;
|
|
|
|
|
|
img {
|
|
|
- // width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|