跳转小程序报告解读

wenjuan
yanzai 1 year ago
parent e8f1b82761
commit 7407f9daf4

@ -95,7 +95,7 @@ class FenzhenController extends Controller
public function info() public function info()
{ {
$id = request('id'); $id = request('id');
$info = DB::table('orders')->where(['id' => $id])->whereIn('status', [2, 4])->get(); $info = DB::table('orders')->where(['id' => $id])->whereIn('status', [2, 4])->first();
if (!$info) return \Yz::echoError1("查询就诊人订单失败"); if (!$info) return \Yz::echoError1("查询就诊人订单失败");
return \Yz::Return(true, "获取成功", [ return \Yz::Return(true, "获取成功", [
'info' => [ 'info' => [

@ -4,10 +4,22 @@
* userbgcx * userbgcx
* date2024年9月20日 20:05:05 * date2024年9月20日 20:05:05
*/ */
import { ref, computed } from "vue"; import {
import { $image, $api, $response } from "@/api"; ref,
import { onShow } from "@dcloudio/uni-app"; computed
import { useStore } from "@/store"; } from "vue";
import {
$image,
$api,
$response
} from "@/api";
import {
onShow
} from "@dcloudio/uni-app";
import wx from 'weixin-js-sdk'
import {
useStore
} from "@/store";
const $store = useStore(); const $store = useStore();
let tabIndex = ref(0); // let tabIndex = ref(0); //
const bgcx_list = ref(null); const bgcx_list = ref(null);
@ -56,6 +68,11 @@ const routesDeatils = (val) => {
}; };
const tzroutes = (url) => { const tzroutes = (url) => {
if (url == 'bgjd') {
wx.miniProgram.navigateTo({
url: '/pages/other/entry/index?path=/pages/outpatient/doctor-appointment/index&scene=1035&hospitalAreaId=6&departmentCode=A0030077&subDepartmentCode=4773794195699464904'
})
}
// //
$store.setTjbgInfo([]); $store.setTjbgInfo([]);
uni.navigateTo({ uni.navigateTo({
@ -76,27 +93,18 @@ onShow(() => {
</view> </view>
<view class="bgcx pl-10rpx pr-10rpx"> <view class="bgcx pl-10rpx pr-10rpx">
<view class="bgcx_header"> <view class="bgcx_header">
<view <view @click="tzroutes('bgjd')" class="bgcx_header_bgcolor"
@click="tzroutes('bgjd')" style="background: linear-gradient(-30deg, #3bcda9, #3dcbd1)">
class="bgcx_header_bgcolor"
style="background: linear-gradient(-30deg, #3bcda9, #3dcbd1)"
>
<view class="bgcx_header_text"> 报告解读 </view> <view class="bgcx_header_text"> 报告解读 </view>
<image src="@/static/assets/slices/bgjd.png"></image> <image src="@/static/assets/slices/bgjd.png"></image>
</view> </view>
<view <view @click="tzroutes('bgdb')" class="bgcx_header_bgcolor"
@click="tzroutes('bgdb')" style="background: linear-gradient(-30deg, #fec546, #ffae22)">
class="bgcx_header_bgcolor"
style="background: linear-gradient(-30deg, #fec546, #ffae22)"
>
<view class="bgcx_header_text"> 报告对比 </view> <view class="bgcx_header_text"> 报告对比 </view>
<image src="@/static/assets/slices/bgdb.png"></image> <image src="@/static/assets/slices/bgdb.png"></image>
</view> </view>
<view <view @click="tzroutes('qsfx')" class="bgcx_header_bgcolor"
@click="tzroutes('qsfx')" style="background: linear-gradient(-30deg, #8bbafe, #7898fe)">
class="bgcx_header_bgcolor"
style="background: linear-gradient(-30deg, #8bbafe, #7898fe)"
>
<view class="bgcx_header_text"> 趋势分析 </view> <view class="bgcx_header_text"> 趋势分析 </view>
<image src="@/static/assets/slices/xsfx.png"></image> <image src="@/static/assets/slices/xsfx.png"></image>
</view> </view>
@ -104,24 +112,12 @@ onShow(() => {
<view class="bgcx_fullReport"> <view class="bgcx_fullReport">
<view class="text-#123531 text-34rpx"> 全部报告 </view> <view class="text-#123531 text-34rpx"> 全部报告 </view>
<view class="bgcx_fullReport_query mb-38rpx"> <view class="bgcx_fullReport_query mb-38rpx">
<view <view @click="gettjbgInfo(0)" :class="tabIndex == 0 ? 'bgcx_fullReport_query_button_active' : ''"
@click="gettjbgInfo(0)" class="bgcx_fullReport_query_button">全部</view>
:class="tabIndex == 0 ? 'bgcx_fullReport_query_button_active' : ''" <view @click="gettjbgInfo(1)" :class="tabIndex == 1 ? 'bgcx_fullReport_query_button_active' : ''"
class="bgcx_fullReport_query_button" class="bgcx_fullReport_query_button">已出报告</view>
>全部</view <view @click="gettjbgInfo(2)" :class="tabIndex == 2 ? 'bgcx_fullReport_query_button_active' : ''"
> class="bgcx_fullReport_query_button">未出报告</view>
<view
@click="gettjbgInfo(1)"
:class="tabIndex == 1 ? 'bgcx_fullReport_query_button_active' : ''"
class="bgcx_fullReport_query_button"
>已出报告</view
>
<view
@click="gettjbgInfo(2)"
:class="tabIndex == 2 ? 'bgcx_fullReport_query_button_active' : ''"
class="bgcx_fullReport_query_button"
>未出报告</view
>
</view> </view>
<view v-for="(val, i) in bgcx_list" :key="i" @click="routesDeatils(val)"> <view v-for="(val, i) in bgcx_list" :key="i" @click="routesDeatils(val)">
<view class="flex items-center"> <view class="flex items-center">
@ -130,21 +126,15 @@ onShow(() => {
{{ val["登记时间"] }} {{ val["登记时间"] }}
</view> </view>
</view> </view>
<view <view class="mt-29rpx mb-40rpx bg-#239EA3 rounded-20rpx flex"
class="mt-29rpx mb-40rpx bg-#239EA3 rounded-20rpx flex" style="box-shadow: 0rpx 2rpx 10rpx 0rpx rgba(141, 141, 141, 0.25)">
style="box-shadow: 0rpx 2rpx 10rpx 0rpx rgba(141, 141, 141, 0.25)"
>
<view class="flex-1 pb-25rpx bg-#fff rounded-20rpx"> <view class="flex-1 pb-25rpx bg-#fff rounded-20rpx">
<view <view v-show="!val.is_read"
v-show="!val.is_read" class="rounded-5rpx position-absolute right-94rpx text-#239EA3 rounded-rt-20rpx mt-3rpx w-70rpx h-36rpx bg-#F3F9F9 b-0 b-1 b-solid b-#E9F5F5 text-22rpx text-center">
class="rounded-5rpx position-absolute right-94rpx text-#239EA3 rounded-rt-20rpx mt-3rpx w-70rpx h-36rpx bg-#F3F9F9 b-0 b-1 b-solid b-#E9F5F5 text-22rpx text-center"
>
未读 未读
</view> </view>
<view <view v-show="val.is_read"
v-show="val.is_read" class="rounded-5rpx position-absolute right-94rpx rounded-rt-20rpx m-3rpx w-70rpx h-36rpx text-#ED6907 bg-#FCF5F0 b-0 b-1 b-solid b-#F9E1CF text-22rpx text-center">
class="rounded-5rpx position-absolute right-94rpx rounded-rt-20rpx m-3rpx w-70rpx h-36rpx text-#ED6907 bg-#FCF5F0 b-0 b-1 b-solid b-#F9E1CF text-22rpx text-center"
>
已读 已读
</view> </view>
<view class="flex mt--20rpx mt-36rpx"> <view class="flex mt--20rpx mt-36rpx">
@ -168,9 +158,7 @@ onShow(() => {
</view> </view>
</view> </view>
</view> </view>
<view <view class="text-#fff w-26rpx ml-16rpx mr-16rpx text-26rpx mt-26rpx line-height-[1.2]">
class="text-#fff w-26rpx ml-16rpx mr-16rpx text-26rpx mt-26rpx line-height-[1.2]"
>
体检报告 体检报告
</view> </view>
</view> </view>

Loading…
Cancel
Save