筛查结果

This commit is contained in:
shidongli 2023-11-09 17:21:48 +08:00
parent 8ea608775f
commit c4308674e7
2 changed files with 23 additions and 29 deletions

View File

@ -1,5 +1,5 @@
<template>
<view class="app">
<view class="app" v-if="prejectlist.data">
<view class="content" v-for="(item,index) in prejectlist" @tap="result(item)">
<view class="big">{{item.projectName}}
</view>
@ -8,6 +8,10 @@
</view>
</view>
</view>
<view class="app" v-else>
<u-empty mode="order" icon-size='220' text="暂无筛查结果"></u-empty>
</view>
</template>
<script>
@ -18,16 +22,16 @@
data() {
return {
prejectlist:{},
userinfo:{}
prejectlist: {},
userinfo: {}
};
},
onShow() {
this.userinfo=uni.getStorageSync('userinfo');
var patientId=this.userinfo.id
projectTypedata(patientId).then(res=>{
this.prejectlist=res.data
this.userinfo = uni.getStorageSync('userinfo');
var patientId = this.userinfo.id
projectTypedata(patientId).then(res => {
this.prejectlist = res.data
console.log(res)
})
@ -35,15 +39,15 @@
},
methods: {
resultstype(){
resultstype() {
},
//
result(item){
result(item) {
console.log(item)
uni.navigateTo({
url: `/pagesB/screeningResult/screeningResult?projectId=${item.projectId}`
});
uni.navigateTo({
url: `/pagesB/screeningResult/screeningResult?projectId=${item.projectId}`
});
console.log(item)
}

View File

@ -1,5 +1,5 @@
<template>
<view class="app">
<view class="app" v-if="prejectlist.data">
<view class="content" v-for="(item,index) in prejectlist">
<view class="big">{{item.projectName}}
</view>
@ -10,19 +10,9 @@
详情
</view>
</view>
<!-- <view class="content">
<view class="big">眼底筛查
</view>
<view class="servename">
2023-12-12 12:12:12
</view>
<view class="appoint" @tap="goapponint">
详情
</view>
</view> -->
</view>
<view class="app" v-else>
<u-empty mode="order" icon-size='220' text="暂无筛查记录"></u-empty>
</view>
</template>
@ -42,8 +32,8 @@
var patientId=this.userinfo.id
projectTypedata(patientId).then(res=>{
this.prejectlist=res.data
})
// this.resultstype();
},