<template>
|
<view class="box">
|
<image class="bg-image" src="/static/images/tabbar/loginbg.png" mode="scaleToFill"></image>
|
<!-- 报告卡片 -->
|
<view class="padding-l" v-for="(item,index) in reportlist" :key="index">
|
<div class="card" @click="ReportDetails(item.tjNumber)">
|
<div class="card_sty">
|
<!-- <div class="card_left">
|
<span class="card_left_txt1">{{item.tjNumber}}</span>
|
<span class="card_left_txt2">{{item.cusSex ? "女" :"男" }}</span>
|
</div> -->
|
<div class="card_right">
|
|
<div class="card_right1">
|
<span class="card_right_txt3">体检号:{{item.tjNumber}}</span>
|
<span class="card_right_txt2">泾川县人民医院体检中心</span>
|
</div>
|
<view class="card_right3">
|
<span
|
style="display: flex;align-items: center;justify-content: center;">{{item.status}}</span>
|
</view>
|
</div>
|
</div>
|
</div>
|
</view>
|
|
|
<!-- <div class="warm">
|
<text>温馨提示:如需下载或打印结果,请使用电脑访问:www.xaltjdkj.com</text>
|
</div> -->
|
</view>
|
|
</template>
|
|
<script>
|
import {
|
getTiJianList,
|
} from "@/api/system/tjrecord";
|
|
export default {
|
name: 'App',
|
data() {
|
return {
|
Height: 0,
|
reportlist: [],
|
cusIdCard: ""
|
}
|
},
|
//生命周期方法 —— 页面加载时
|
onLoad(option) {
|
this.cusIdCard = option.cusIdCard;
|
this.getList();
|
},
|
methods: {
|
/** 查询体检报告列表 */
|
getList() {
|
console.log(this.cusIdCard);
|
getTiJianList({
|
idCard: this.cusIdCard
|
}).then((response) => {
|
this.reportlist = response.data;
|
})
|
.catch((err) => {
|
console.log(err,"123");
|
});
|
|
},
|
|
|
|
ReportDetails(tjNumber) {
|
uni.navigateTo({
|
url: `/pages/tjrecorddetail/tjrecorddetail?tjNumber=${tjNumber}`
|
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss">
|
.box {
|
width: 100%;
|
min-height: 1240rpx;
|
// background: linear-gradient(180deg, #fd8b4d, #f4f8f7, #f7f7f7 100%, );
|
}
|
|
.bg-image {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 100vw;
|
height: 100vh;
|
z-index: -1;
|
left: 50%;
|
transform: translateX(-50%);
|
object-fit: cover;
|
}
|
|
.report {
|
padding-top: 30px;
|
display: flex;
|
justify-content: space-around;
|
}
|
|
.report_sty {
|
background-color: #ffffff;
|
width: 350rpx;
|
height: 200rpx;
|
border-radius: 10%;
|
display: flex;
|
flex-direction: row;
|
align-items: center;
|
justify-content: space-around;
|
}
|
|
.report_img {
|
width: 35px;
|
height: 35px;
|
}
|
|
.report_sty1 {
|
display: flex;
|
flex-direction: column;
|
align-items: flex-start;
|
}
|
|
.report_txt1 {
|
font-size: 20px;
|
font-weight: 800;
|
}
|
|
.report_txt2 {
|
font-size: 12px;
|
color: #838383;
|
|
}
|
|
.card {
|
// margin-top: 20px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
.card_sty {
|
margin-top: 10px;
|
width: 670rpx;
|
height: 150rpx;
|
border-radius: 8px 8px 8px 8px;
|
background-color: #fff;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
|
.card_left {
|
width: 120rpx;
|
height: 103rpx;
|
border-right: 1px solid #ccc;
|
display: flex;
|
align-items: center;
|
flex-direction: column;
|
}
|
|
.card_left_txt1 {
|
margin-top: 2px;
|
font-size: 14px;
|
}
|
|
.card_left_txt2 {
|
font-size: 14px;
|
color: #838383;
|
}
|
|
.card_right {
|
display: flex;
|
}
|
|
.card_right1 {
|
margin-top: 10px;
|
margin-left: 10px;
|
width: 450rpx;
|
height: 103rpx;
|
display: flex;
|
flex-direction: column;
|
|
}
|
|
.card_right_txt1 {
|
font-size: 14px;
|
}
|
|
.card_right_txt2 {
|
font-size: 14px;
|
padding-top: 15rpx;
|
}
|
|
.card_right_txt3 {
|
font-size: 14px;
|
}
|
|
.card_right2 {
|
width: 50rpx;
|
height: 150rpx;
|
font-size: 14px;
|
color: #fff;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
border-radius: 16rpx 0px 0px 16rpx;
|
background-color: #6FB7FE;
|
}
|
|
.card_right_txt4 {
|
font-size: 24rpx;
|
color: #fff;
|
margin-top: 8rpx;
|
}
|
|
.warm {
|
width: 100%;
|
//height: 0;
|
color: LightSlateGray;
|
/*开启绝对定位*/
|
position: absolute;
|
left: 5%;
|
bottom: 2%;
|
}
|
|
.card_right3 {
|
width: 50px;
|
height: 20px;
|
margin-left: 10px;
|
margin-top: 20px;
|
border-radius: 5px 5px 5px 5px;
|
background-color: #419FFD;
|
color: #fff;
|
}
|
</style>
|