xinelu-applet-ui/pagesB/SelectItem/SelectItem.vue

99 lines
1.8 KiB
Vue
Raw Normal View History

2023-10-08 15:54:14 +08:00
<template>
2023-11-09 17:21:48 +08:00
<view class="app" v-if="prejectlist.data">
2023-10-16 16:03:32 +08:00
<view class="content" v-for="(item,index) in prejectlist" @tap="result(item)">
2023-10-10 17:35:36 +08:00
<view class="big">{{item.projectName}}
2023-10-08 15:54:14 +08:00
</view>
2023-10-16 16:03:32 +08:00
<view class="servename">
2023-10-08 15:54:14 +08:00
查看筛查结果
</view>
</view>
</view>
2023-11-09 17:21:48 +08:00
<view class="app" v-else>
<u-empty mode="order" icon-size='220' text="暂无筛查结果"></u-empty>
</view>
2023-10-08 15:54:14 +08:00
</template>
<script>
2023-10-10 17:35:36 +08:00
import {
projectTypedata
} from '@/api/pagesB/SelectItem/SelectItem.js'
2023-10-08 15:54:14 +08:00
export default {
data() {
2023-10-13 10:17:42 +08:00
2023-10-10 17:35:36 +08:00
return {
2023-11-09 17:21:48 +08:00
prejectlist: {},
userinfo: {}
2023-10-10 17:35:36 +08:00
};
},
onShow() {
2023-11-09 17:21:48 +08:00
this.userinfo = uni.getStorageSync('userinfo');
var patientId = this.userinfo.id
projectTypedata(patientId).then(res => {
this.prejectlist = res.data
2023-10-10 17:35:36 +08:00
console.log(res)
2023-10-13 10:17:42 +08:00
2023-10-10 17:35:36 +08:00
})
// this.resultstype();
2023-10-08 15:54:14 +08:00
},
methods: {
2023-11-09 17:21:48 +08:00
resultstype() {
2023-10-13 10:17:42 +08:00
2023-10-10 17:35:36 +08:00
},
2023-10-08 15:54:14 +08:00
// 查看筛查结果
2023-11-09 17:21:48 +08:00
result(item) {
2023-10-13 10:17:42 +08:00
console.log(item)
2023-11-09 17:21:48 +08:00
uni.navigateTo({
url: `/pagesB/screeningResult/screeningResult?projectId=${item.projectId}`
});
2023-10-10 17:35:36 +08:00
console.log(item)
2023-10-08 15:54:14 +08:00
}
// goapponint() {
// uni.navigateTo({
// url: '/pagesC/Screeningdetails/Screeningdetails'
// });
// },
},
}
</script>
<style lang="scss">
.app {
height: 100vh;
background-color: #F7F5F5;
padding: 30rpx 0 0 0;
overflow: scroll;
.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;
}
.big {
padding: 35rpx 50rpx 30rpx 50rpx;
font-size: 32rpx;
font-family: Source Han Sans CN;
font-weight: 500;
color: #000000;
line-height: 38rpx;
}
}
}
2023-10-10 17:35:36 +08:00
</style>