|
@@ -6,20 +6,6 @@
|
|
|
<PositioningMap :address="detaile.address" />
|
|
|
</view>
|
|
|
<view class="user-info order-card">
|
|
|
- <!-- <view class="user-box">
|
|
|
- <view class="info-list">
|
|
|
- <view>被服务人员:{{ detaile.name }}</view>
|
|
|
- <view style="display: flex;">服务类别: <dict-tag :options="lrr_service_category"
|
|
|
- :value="detaile.serviceCategory" /></view>
|
|
|
- <view @click="onPhone">电话号码:<label class="phone">{{ detaile.telephone }}</label></view>
|
|
|
- <view>地址:{{ detaile.address }}</view>
|
|
|
- <view>是否有传染疾病:{{ detaile.isContagion === 1 ? '是' : '否' }}</view>
|
|
|
- <view v-if="detaile.isContagion === 1">疾病备注:{{ detaile.haveContagion }}</view>
|
|
|
- <view>备注信息:{{ detaile.remark }}</view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
-
|
|
|
<view class="handle-user">
|
|
|
<view class="handle-user-left">
|
|
|
<img src='/static/serverImg/mine/user.png' alt=""
|
|
@@ -59,19 +45,15 @@
|
|
|
import { ref } from 'vue';
|
|
|
import { onLoad, onUnload } from '@dcloudio/uni-app';
|
|
|
import { getVolunteerOrderInfo, getTimesByDate, } from '@/api/volunteer.js'
|
|
|
-import { getAddress } from '@/api/address.js'
|
|
|
import PositioningMap from '@/pages_classify/components/PositioningMap/index.vue'
|
|
|
import Slide from '@/pages_classify/components/Slide/index.vue'
|
|
|
import { useDict } from '@/utils/dict.js';
|
|
|
import DictTag from '@/components/DictTag/index.vue'
|
|
|
import { wxMakePhoneCall } from '@/utils/wxRequest.js'
|
|
|
import { computed } from 'vue';
|
|
|
-import dayjs from 'dayjs'
|
|
|
-const fileList = ref([]);
|
|
|
const orderId = ref('');
|
|
|
const detaile = ref({});
|
|
|
const verify = ref(null);
|
|
|
-const rateValue = ref(3)
|
|
|
const {
|
|
|
lrr_service_category
|
|
|
} = useDict('lrr_service_category');
|
|
@@ -85,9 +67,6 @@ const onPhone = (phone) => {
|
|
|
|
|
|
const dateData = ref('00:00:00');
|
|
|
let timer = null;
|
|
|
-// const dateData = computed(()=>{
|
|
|
-// return dayjs(new Date()).format("hh:mm:ss")
|
|
|
-// })
|
|
|
|
|
|
const slideData = computed(() => {
|
|
|
//服务已开始,待上传图片
|
|
@@ -113,7 +92,6 @@ const getOrderDetail = async () => {
|
|
|
}
|
|
|
if (res.data.secondOrder.updateTime) {
|
|
|
timer = setInterval(() => {
|
|
|
- console.log('time', res.data.secondOrder.updateTime);
|
|
|
const timeDiff = Math.abs(new Date() - new Date(res.data.secondOrder.updateTime));
|
|
|
const units = {
|
|
|
day: Math.floor(timeDiff / (1000 * 60 * 60 * 24)),
|
|
@@ -131,7 +109,6 @@ const getOrderDetail = async () => {
|
|
|
|
|
|
|
|
|
|
|
|
- console.log('xxxx', detaile.value);
|
|
|
|
|
|
} catch (error) {
|
|
|
console.log('error', error);
|
|
@@ -145,9 +122,6 @@ const getOrderDetail = async () => {
|
|
|
}
|
|
|
|
|
|
const change = (e) => {
|
|
|
- console.log('验证信息:', e)
|
|
|
- console.log('验证是否成功:' + e.state)
|
|
|
- console.log('验证次数:' + e.verification)
|
|
|
if (e.state && !orderStatus.value) {
|
|
|
|
|
|
getTimesByDate(orderId.value).then(res => {
|
|
@@ -182,14 +156,13 @@ const change = (e) => {
|
|
|
|
|
|
|
|
|
onLoad((options) => {
|
|
|
- console.log('options', options);
|
|
|
orderId.value = options.orderId;
|
|
|
getOrderDetail();
|
|
|
|
|
|
})
|
|
|
onUnload(() => {
|
|
|
+ clearInterval(timer);
|
|
|
timer = null;
|
|
|
-
|
|
|
})
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -200,10 +173,7 @@ onUnload(() => {
|
|
|
right: 0;
|
|
|
bottom: 280rpx;
|
|
|
overflow-y: auto;
|
|
|
- // padding: 12px 12px 24px;
|
|
|
- // background: rgba(245, 245, 245, 1);
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
.order-card {
|
|
|
border-radius: 8px;
|
|
|
background: rgba(255, 255, 255, 1);
|