This commit is contained in:
闫晓茹 2024-05-08 13:40:38 +08:00
parent 12ee94ff23
commit de6f7760b2

View File

@ -10,10 +10,6 @@
<view class="health" v-if="tabscurrent==0">
<healthindex></healthindex>
</view>
<!-- 疾病预警 -->
<view class="disease">
</view>
<!-- 健康处方 -->
<view class="" v-if="tabscurrent==2">
<Precords></Precords>
@ -22,7 +18,7 @@
<view class="disease" v-if="tabscurrent==1">
<view class="btnleftalls">
<view class="btnleftall">
<view class="btnleft" @tap="diseasecv">
<view class="btnleft" @tap="diseasecv(item)">
脑血管疾病
</view>
<view class="btnleft" @tap="diseaselc">
@ -299,7 +295,7 @@
</u-table>
</u-popup>
<u-toast ref="uToast" />
</view>
</template>
@ -340,7 +336,7 @@
backgroundColor: '#26A888',
},
datalist: null,
identity: '370522196411282177',
identity: '',
cvdEvaRecord: {},
lcdEvaRecord: {},
ckdEvaRecord: {},
@ -351,30 +347,70 @@
methods: {
goodsOrderinfo() {
// this.identity=uni.getStorageSync('userinfo').cardNo
this.identity = uni.getStorageSync('userinfo').cardNo
// console.log(this.identity)
riskWarning(this.identity).then(res => {
console.log(res)
if (res.code == 200) {
this.cvdEvaRecord = res.data.cvdEvaRecord
this.lucaEvaRecord = res.data.lucaEvaRecord
this.lcdEvaRecord = res.data.lcdEvaRecord
this.ckdEvaRecord = res.data.ckdEvaRecord
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error'
})
}
})
},
//
diseasecv() {
diseasecv(item) {
console.log(item)
console.log(this.cvdEvaRecord)
if (this.cvdEvaRecord) {
this.open = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
},
//
diseaselc() {
if (this.lcdEvaRecord) {
this.lookopen = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
},
//
diseaselu() {
if (this.lucaEvaRecord) {
this.openfeiai = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
},
diseaseck() {
if (this.ckdEvaRecord) {
this.lookopenck = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
},
getServerData() {
//