yanzai 1 year ago
commit 4829bf79bb

@ -130,12 +130,14 @@ class FenzhenController extends Controller
}
}
$end_status = 0;
$tip_check_show = false;
foreach ($time_line as $time_line_item) {
if ($time_line_item['status'] == 4) {
$end_status += 1;
}
}
if (count($time_line) <= $end_status + 1) {
$tip_check_show = true;
$time_line[count($time_line) - 1]['status'] = 4;
}
// -1 报告未出 不能预约 报告解读 不显示
@ -251,13 +253,16 @@ class FenzhenController extends Controller
}
}
}
if (!$tip_check_show) {
$res['data']['end_time'] = date('H:i', $last_time);
}
$check_tip = false;
if ($error_day == -1) {
$et = $info->appointment_date . strtotime($res['data']['end_time']);
// $et = '2024-10-10 00:00:00';
if (!!$tip_check_show) {
$et = $info->appointment_date . ' ' . $res['data']['end_time'] . ':00';
$check_tip = (time() - strtotime($et)) > (60 * 20);
}
}
return \Yz::Return(true, "获取成功", [
'info' => [
'name' => $info->name,

@ -29,7 +29,8 @@
const fenzhen_list = ref(false);
const check_tip_show = ref(false);
const checkTipShow = () => {
const checkTipShow = (show) => {
if (!!show) {
check_tip_show.value = true
uni.showModal({
title: '提示',
@ -41,6 +42,7 @@
}
});
}
}
const getFenzhenList = async (loading = true) => {
if (!!loading) {
uni.showLoading();
@ -52,7 +54,7 @@
$response(response, () => {
fenzhen_list.value = response.data;
if (!check_tip_show.value) {
checkTipShow()
checkTipShow(response.data.check_tip)
}
setTimeout(() => {
if (!!window.location.href.includes('/pages/user/fenzhen/fenzhen') &&
@ -270,7 +272,8 @@
<view class="more_wrapper mt-20rpx" v-if="i.more === fenzhen_active && !!fenzhen_info">
<template v-for="(item, index) in fenzhen_info.list" :key="index">
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 1">
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA"
v-if="item.status == 1 || item.status == 2">
<view class="text-#000000 text-30rpx">{{ item.name }}</view>
<view class="center">
<text @click="qijian(item)"

Loading…
Cancel
Save