|
@ -2,7 +2,10 @@ |
|
|
<up-list @scrolltolower="scrolltolower"> |
|
|
<up-list @scrolltolower="scrolltolower"> |
|
|
<up-list-item> |
|
|
<up-list-item> |
|
|
<view v-if="list && list.length > 0"> |
|
|
<view v-if="list && list.length > 0"> |
|
|
<view class="mb28 container-list-item" v-for="(item, index) in list" :key="item.id"> |
|
|
|
|
|
|
|
|
<view class="mb28 container-list-item" |
|
|
|
|
|
@click.stop="toOrderDetail(item.id)" |
|
|
|
|
|
v-for="(item, index) in list" |
|
|
|
|
|
:key="item.id"> |
|
|
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> |
|
|
<view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx"> |
|
|
<view>{{ orderStatus[item.status] }}</view> |
|
|
<view>{{ orderStatus[item.status] }}</view> |
|
|
<view>本单酬劳 |
|
|
<view>本单酬劳 |
|
@ -10,24 +13,41 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="container-list"> |
|
|
<view class="container-list"> |
|
|
<view class="flex-between flex mb28" v-for="(pet, index) in item.h5OrderVO.petVOList"> |
|
|
|
|
|
|
|
|
<view class="flex-between flex mb28" |
|
|
|
|
|
:key="index" |
|
|
|
|
|
style="justify-content: flex-start;" |
|
|
|
|
|
v-for="(pet, index) in item.h5OrderVO.petVOList"> |
|
|
<up-image style="flex-shrink:0" class="mr20" width="70px" height="70px" |
|
|
<up-image style="flex-shrink:0" class="mr20" width="70px" height="70px" |
|
|
:src="pet.photo" shape="circle"></up-image> |
|
|
:src="pet.photo" shape="circle"></up-image> |
|
|
<view> |
|
|
|
|
|
<view class="font28 col3">服务天数: 共{{ pet.orderServiceText.length }}天 I {{ pet.orderServiceText.join(',') }} |
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: column;gap: 20rpx;"> |
|
|
|
|
|
<!-- <view class="font28 col3">服务天数: 共{{ pet.orderServiceText.length }}天 I {{ pet.orderServiceText.join(',') }} |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view class="font28 col3">服务天数: 共{{ pet.orderServiceText.length }}天 I |
|
|
|
|
|
{{ pet.orderServiceText.length >= 2 ? `${pet.orderServiceText[0]},${pet.orderServiceText[pet.orderServiceText.length - 1]}` : pet.orderServiceText.join(',') }} |
|
|
</view> |
|
|
</view> |
|
|
<view style="margin: 18rpx 0">期望上门时间:早</view> |
|
|
|
|
|
<view>{{ pet.breed }}{{ pet.bodyType }} | {{ pet.productNameText.join('+') }}</view> |
|
|
|
|
|
|
|
|
<!-- <view style="margin: 18rpx 0">期望上门时间:早</view> --> |
|
|
|
|
|
<view>{{ pet.breed }}{{ pet.bodyType }} | {{ pet.productNameText.join(',') }}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="mb28 address">{{ item.address }}</view> |
|
|
<view class="mb28 address">{{ item.address }}</view> |
|
|
<view class="mb28" v-if="item.type == 0">订单为系统派发,请确认订单信息后再抢单</view> |
|
|
<view class="mb28" v-if="item.type == 0">订单为系统派发,请确认订单信息后再抢单</view> |
|
|
<view class="flex flex-between"> |
|
|
<view class="flex flex-between"> |
|
|
<up-button type="primary" text="打卡记录" @click="showServicePopup(item)" shape="circle" |
|
|
|
|
|
class="mr20" color="#FFAA48"></up-button> |
|
|
|
|
|
<up-button type="primary" text="宠物档案" @click="toPet(item)" shape="circle" class="mr20" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <up-button type="primary" text="订单详情" |
|
|
|
|
|
shape="circle" |
|
|
|
|
|
class="mr20" color="#FFAA48"></up-button> --> |
|
|
|
|
|
|
|
|
|
|
|
<up-button type="primary" text="打卡记录" |
|
|
|
|
|
@click.stop="showServicePopup(item)" |
|
|
|
|
|
shape="circle" |
|
|
|
|
|
class="mr20" color="#FFAA48"></up-button> |
|
|
|
|
|
|
|
|
|
|
|
<up-button type="primary" text="宠物档案" |
|
|
|
|
|
@click.stop="toPet(item)" shape="circle" class="mr20" |
|
|
color="#FFAA48"></up-button> |
|
|
color="#FFAA48"></up-button> |
|
|
<up-button type="primary" text="服务档案" @click="toService(item)" shape="circle" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<up-button type="primary" text="服务档案" |
|
|
|
|
|
@click.stop="toService(item)" shape="circle" |
|
|
color="#FFAA48"></up-button> |
|
|
color="#FFAA48"></up-button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -92,6 +112,13 @@ import PetServicePopup from './petServicePopup.vue'; |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 跳转订单详情 |
|
|
|
|
|
const toOrderDetail = (id) => { |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/otherPages/orderTakingManage/detail/index?id=${id}&type=my` |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 显示服务时间弹窗 |
|
|
// 显示服务时间弹窗 |
|
|
function showServicePopup(item) { |
|
|
function showServicePopup(item) { |
|
|
// 如果是已完成状态,直接跳转到打卡记录页面 |
|
|
// 如果是已完成状态,直接跳转到打卡记录页面 |
|
|