修改
This commit is contained in:
parent
12ee94ff23
commit
de6f7760b2
@ -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)
|
||||
this.cvdEvaRecord = res.data.cvdEvaRecord
|
||||
this.lucaEvaRecord = res.data.lucaEvaRecord
|
||||
this.lcdEvaRecord = res.data.lcdEvaRecord
|
||||
this.ckdEvaRecord = res.data.ckdEvaRecord
|
||||
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() {
|
||||
this.open = true
|
||||
diseasecv(item) {
|
||||
console.log(item)
|
||||
console.log(this.cvdEvaRecord)
|
||||
if (this.cvdEvaRecord) {
|
||||
this.open = true
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无内容',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 心
|
||||
diseaselc() {
|
||||
this.lookopen = true
|
||||
if (this.lcdEvaRecord) {
|
||||
this.lookopen = true
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无内容',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
// 肺癌
|
||||
diseaselu() {
|
||||
this.openfeiai = true
|
||||
if (this.lucaEvaRecord) {
|
||||
this.openfeiai = true
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无内容',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
},
|
||||
diseaseck() {
|
||||
this.lookopenck = true
|
||||
if (this.ckdEvaRecord) {
|
||||
this.lookopenck = true
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无内容',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
getServerData() {
|
||||
//模拟从服务器获取数据时的延时
|
||||
|
||||
Loading…
Reference in New Issue
Block a user