|
|
@ -52,7 +52,7 @@ |
|
|
|
服务地址 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
重庆市南岸区长嘉汇18栋9-2 |
|
|
|
{{ orderDetail.address }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -61,28 +61,26 @@ |
|
|
|
<view class="form-title"> |
|
|
|
服务内容和酬劳 |
|
|
|
</view> |
|
|
|
<view class="text2 flex"> |
|
|
|
<view @click="petInfo" class="text2 flex"> |
|
|
|
查看宠物信息 |
|
|
|
<u-icon name="arrow-right-double" color="#F5F5F5" size="10"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line1"> |
|
|
|
</view> |
|
|
|
<view class="pet_information box-size"> |
|
|
|
<view v-for="pet in orderDetail.appletPetList" :key="pet.id" class="pet_information box-size"> |
|
|
|
<view class="flex pet_item box-size"> |
|
|
|
<view class="img" :style="{borderRadius:'100rpx'}"> |
|
|
|
<image |
|
|
|
src="https://k.sinaimg.cn/n/sinakd20118/751/w690h861/20240406/8eda-d4d56e3bface126bd5806ff981a09314.jpg/w700d1q75cms.jpg" |
|
|
|
mode=""></image> |
|
|
|
<image :src="pet.headImage" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
<view class="flex name"> |
|
|
|
<view class="name_text"> |
|
|
|
小咪 |
|
|
|
{{ pet.nickName }} |
|
|
|
</view> |
|
|
|
<image src="" mode=""></image> |
|
|
|
</view> |
|
|
|
银渐层短毛猫(小型猫) |
|
|
|
{{ pet.type }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="pet- level"> |
|
|
@ -103,7 +101,7 @@ |
|
|
|
合计 |
|
|
|
</view> |
|
|
|
<view class="money_text"> |
|
|
|
¥ 455 |
|
|
|
¥ {{ orderDetail.price }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -128,7 +126,7 @@ |
|
|
|
下单时间: |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
2024-12-45 12:32:41 |
|
|
|
{{ orderDetail.createTime }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line1"> |
|
|
@ -138,72 +136,200 @@ |
|
|
|
支付时间: |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
2024-12-45 12:32:41 |
|
|
|
{{ orderDetail.payTime }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="bottom"> |
|
|
|
<view class="bottom_button level" :style="{ borderRadius: '41rpx' }"> |
|
|
|
<view @click="rushToBuyAnOrder" class="bottom_button level" :style="{ borderRadius: '41rpx' }"> |
|
|
|
立即抢单 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view> |
|
|
|
<u-popup :show="show" mode="center" @close="close" @open="open"> |
|
|
|
<view class="success"> |
|
|
|
<view class="pop_top"> |
|
|
|
|
|
|
|
<up-popup :show="showConfirmOrder" mode="bottom" @close="close" @open="open" :round="10" :closeable="true" |
|
|
|
:safeAreaInsetBottom="false" |
|
|
|
:customStyle="{padding:'60rpx 20rpx 40rpx 20rpx;position:relative;height:auto;background:#F6F5F8;'}"> |
|
|
|
<view> |
|
|
|
<view style="position:absolute;top: 20rpx;left:0;text-align: center;width: 100%;"> |
|
|
|
订单信息 |
|
|
|
</view> |
|
|
|
<view style="text-align: center;"> |
|
|
|
请全部确认后接单 |
|
|
|
</view> |
|
|
|
<view class="order-confirmation"> |
|
|
|
<view class="confirmation-item"> |
|
|
|
<view class="confirmation-base"> |
|
|
|
<view class="title"> |
|
|
|
服务日期 |
|
|
|
</view> |
|
|
|
<view class="desc"> |
|
|
|
共两天:12-09,01-09 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u--text text="请立即添加服务顾问,并提供订单编码" size="12rpx" color="#707070" align="center"></u--text> |
|
|
|
<view class="pop_image"> |
|
|
|
<u--image src="https://xxx.com/album/1.jpg" shape="square" width="100rpx" |
|
|
|
height="100rpx"></u--image> |
|
|
|
<view class="ok"> |
|
|
|
<view class="btn"> |
|
|
|
点击确定 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="code" :style="{ borderRadius: '6rpx' }"> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="confirmation-item"> |
|
|
|
<view class="confirmation-base"> |
|
|
|
<view class="title"> |
|
|
|
服务地址 |
|
|
|
</view> |
|
|
|
<view class="desc"> |
|
|
|
xxx省xx市 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="ok"> |
|
|
|
<view class="btn"> |
|
|
|
点击确定 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="copy" :style="{ borderRadius: '40rpx' }"> |
|
|
|
<u--text text="复制订单编号" size="12rpx" color="#FFFFFF" align="center" |
|
|
|
line-height="50rpx"></u--text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="confirmation-item"> |
|
|
|
<view class="confirmation-base"> |
|
|
|
<view class="title"> |
|
|
|
服务宠物 |
|
|
|
</view> |
|
|
|
<view class="desc"> |
|
|
|
<view class=""> |
|
|
|
中华田园犬 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
中华田园犬2 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cancel" :style="{ borderRadius: '50rpx' }"> |
|
|
|
<u-icon name="close-circle" color="#707070" size="40"></u-icon> |
|
|
|
<view class="ok"> |
|
|
|
<view class="btn"> |
|
|
|
点击确定 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
<u-button @click="show = true">打开</u-button> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<view class="handbook"> |
|
|
|
接单即接受 |
|
|
|
<text class="text">《伴宠师手册》</text> |
|
|
|
</view> |
|
|
|
<up-button @click="conform" color="#FFBF60" text="确定" shape="circle"></up-button> |
|
|
|
</view> |
|
|
|
</up-popup> |
|
|
|
|
|
|
|
<!-- 抢单成功 --> |
|
|
|
<up-popup :show="showOrderSuccess" mode="center" @close="orderSuccessClose" @open="orderSuccessOpen" :zIndex="999" |
|
|
|
:round="10" :safeAreaInsetBottom="false" :customStyle="{padding:'40rpx 20rpx',width:'80%'}"> |
|
|
|
<view> |
|
|
|
<view class="success-desc"> |
|
|
|
请立即添加服务顾问,并提供订单编码 |
|
|
|
</view> |
|
|
|
<view class="qr-code"> |
|
|
|
<image class="code-img" src="https://img.xjishu.com/img/zl/2018/6/30/1241359458913.gif" |
|
|
|
mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
<view class="input"> |
|
|
|
<up-input placeholder="" border="none" v-model="value" disabled |
|
|
|
:customStyle="{height:'60rpx','text-indent': '20rem'}"></up-input> |
|
|
|
</view> |
|
|
|
<up-button @click="noneOrder" color="#FFBF60" text="复制订单编号" shape="circle"></up-button> |
|
|
|
</view> |
|
|
|
</up-popup> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
show: false |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
open() { |
|
|
|
// console.log('open'); |
|
|
|
}, |
|
|
|
close() { |
|
|
|
this.show = false |
|
|
|
// console.log('close'); |
|
|
|
} |
|
|
|
<script setup> |
|
|
|
import { |
|
|
|
ref, |
|
|
|
computed |
|
|
|
} from 'vue' |
|
|
|
import { |
|
|
|
onLoad |
|
|
|
} from '@dcloudio/uni-app' |
|
|
|
import { |
|
|
|
getByOrderId |
|
|
|
} from "@/api/receivingHall/index.js" |
|
|
|
import { |
|
|
|
onShow |
|
|
|
} from '@dcloudio/uni-app' |
|
|
|
import order from '../../../api/order/order' |
|
|
|
import { |
|
|
|
startByOrderId |
|
|
|
} from "@/api/receivingHall/index.js" |
|
|
|
import { |
|
|
|
useStore |
|
|
|
} from "vuex" |
|
|
|
|
|
|
|
onLoad((options) => { |
|
|
|
orderId.value = options.id || null; |
|
|
|
}); |
|
|
|
|
|
|
|
onShow(() => { |
|
|
|
getDetail(); |
|
|
|
}) |
|
|
|
|
|
|
|
const store = useStore(); |
|
|
|
const orderId = ref(null); |
|
|
|
const orderDetail = ref({}); |
|
|
|
const showConfirmOrder = ref(false); |
|
|
|
const showOrderSuccess = ref(false); |
|
|
|
const value = ref("45619491656") |
|
|
|
const userInfo = computed(() => { |
|
|
|
return store.getters.userInfo |
|
|
|
}) |
|
|
|
|
|
|
|
// 抢单 |
|
|
|
const rushToBuyAnOrder = () => { |
|
|
|
open() |
|
|
|
} |
|
|
|
|
|
|
|
// 查看宠物信息 |
|
|
|
const petInfo = () => { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/otherPages/orderTakingManage/pet/index" |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const open = () => { |
|
|
|
showConfirmOrder.value = true; |
|
|
|
} |
|
|
|
|
|
|
|
const close = () => { |
|
|
|
showConfirmOrder.value = false; |
|
|
|
} |
|
|
|
|
|
|
|
const orderSuccessClose = () => { |
|
|
|
showOrderSuccess.value = false; |
|
|
|
}; |
|
|
|
|
|
|
|
const orderSuccessOpen = () => { |
|
|
|
showOrderSuccess.value = true; |
|
|
|
}; |
|
|
|
|
|
|
|
const conform = async () => { |
|
|
|
close(); |
|
|
|
let response = await startByOrderId({ |
|
|
|
id: orderId.value, |
|
|
|
userId: userInfo.value.userId |
|
|
|
}) |
|
|
|
if (response.code == 200 && response.data) { |
|
|
|
uni.showToast({ |
|
|
|
title: '接单成功~', |
|
|
|
icon: "none" |
|
|
|
}); |
|
|
|
orderSuccessOpen(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// export default { |
|
|
|
// data() { |
|
|
|
// return { |
|
|
|
// value: '' |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// methods: { |
|
|
|
// change(e) { |
|
|
|
// console.log('change', e); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
const getDetail = async () => { |
|
|
|
let response = await getByOrderId({ |
|
|
|
id: orderId.value |
|
|
|
}); |
|
|
|
if (response.code == 200 && response.data) { |
|
|
|
orderDetail.value = response.data; |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
@ -224,4 +350,76 @@ |
|
|
|
// background-color: red; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.order-confirmation { |
|
|
|
.confirmation-item { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
background: white; |
|
|
|
padding: 20rpx; |
|
|
|
border-radius: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
margin: 20rpx 0rpx; |
|
|
|
|
|
|
|
.confirmation-base { |
|
|
|
width: 75%; |
|
|
|
|
|
|
|
.title { |
|
|
|
font-size: 34rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.desc { |
|
|
|
color: #999999; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ok { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
width: 25%; |
|
|
|
|
|
|
|
.btn { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
background: #FFBF60; |
|
|
|
color: white; |
|
|
|
width: 100%; |
|
|
|
height: 60rpx; |
|
|
|
border-radius: 30rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.handbook { |
|
|
|
color: #999999; |
|
|
|
margin: 10rpx 0rpx; |
|
|
|
|
|
|
|
.text { |
|
|
|
color: #FFBF60; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.success-desc { |
|
|
|
text-align: center; |
|
|
|
color: #787878; |
|
|
|
font-size: 32rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.qr-code { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
margin: 40rpx 0rpx; |
|
|
|
|
|
|
|
.code-img { |
|
|
|
width: 160rpx; |
|
|
|
height: 160rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.input { |
|
|
|
margin-bottom: 40rpx; |
|
|
|
} |
|
|
|
</style> |