xinelu-applet-ui/pagesC/Screeningrecords/Screeningrecords.vue

103 lines
1.9 KiB
Vue
Raw Normal View History

2023-09-27 18:00:42 +08:00
<template>
2023-11-09 17:21:48 +08:00
<view class="app" v-if="prejectlist.data">
2023-10-19 13:26:38 +08:00
<view class="content" v-for="(item,index) in prejectlist">
<view class="big">{{item.projectName}}
2023-09-27 18:00:42 +08:00
</view>
<view class="servename">
2023-10-19 13:26:38 +08:00
{{item.createTime}}
2023-09-27 18:00:42 +08:00
</view>
2023-10-19 13:26:38 +08:00
<view class="appoint" @tap="goapponint(item)">
2023-09-27 18:00:42 +08:00
详情
</view>
</view>
2023-11-09 17:21:48 +08:00
</view>
<view class="app" v-else>
<u-empty mode="order" icon-size='220' text="暂无筛查记录"></u-empty>
2023-09-27 18:00:42 +08:00
</view>
</template>
<script>
2023-10-19 13:26:38 +08:00
import {
projectTypedata
} from '@/api/pagesB/SelectItem/SelectItem.js'
2023-09-27 18:00:42 +08:00
export default {
data() {
2023-10-19 13:26:38 +08:00
return {
prejectlist:{},
2023-11-09 09:26:50 +08:00
userinfo:{}
2023-10-19 13:26:38 +08:00
};
},
onShow() {
2023-11-09 09:26:50 +08:00
this.userinfo=uni.getStorageSync('userinfo');
var patientId=this.userinfo.id
projectTypedata(patientId).then(res=>{
2023-10-19 13:26:38 +08:00
this.prejectlist=res.data
2023-11-09 17:21:48 +08:00
2023-10-19 13:26:38 +08:00
})
// this.resultstype();
2023-09-27 18:00:42 +08:00
},
2023-10-19 13:26:38 +08:00
2023-09-27 18:00:42 +08:00
methods: {
2023-10-19 13:26:38 +08:00
goapponint(item) {
console.log(item)
2023-09-27 18:00:42 +08:00
uni.navigateTo({
2023-10-19 13:26:38 +08:00
url: `/pagesC/Screeningdetails/Screeningdetails?projectId=${item.projectId}`
2023-09-27 18:00:42 +08:00
});
},
},
}
</script>
<style lang="scss">
.app {
2023-09-28 10:14:35 +08:00
height: 100vh;
2023-09-27 18:00:42 +08:00
background-color: #F7F5F5;
padding: 30rpx 0 0 0;
2023-09-28 14:12:35 +08:00
overflow: scroll;
2023-09-27 18:00:42 +08:00
.content {
position: relative;
width: 95%;
height: 183rpx;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx;
margin: 15rpx auto;
.servename {
padding: 0 50rpx 0 50rpx;
font-size: 28rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #868585;
line-height: 38rpx;
}
.appoint {
position: absolute;
right: 5%;
top: 50%;
transform: translateY(-50%);
width: 169rpx;
height: 61rpx;
background: #26A888;
border-radius: 5rpx;
line-height: 61rpx;
text-align: center;
color: #fff;
}
.big {
padding: 35rpx 50rpx 30rpx 50rpx;
font-size: 32rpx;
font-family: Source Han Sans CN;
font-weight: 500;
color: #000000;
line-height: 38rpx;
}
}
}
2023-09-28 10:11:05 +08:00
</style>