diff --git a/pagesB/threeHundredAndSixty/threeHundredAndSixty.vue b/pagesB/threeHundredAndSixty/threeHundredAndSixty.vue
index 7b3fd8b..cc2366b 100644
--- a/pagesB/threeHundredAndSixty/threeHundredAndSixty.vue
+++ b/pagesB/threeHundredAndSixty/threeHundredAndSixty.vue
@@ -10,10 +10,6 @@
-
-
-
-
@@ -22,7 +18,7 @@
-
+
脑血管疾病
@@ -299,7 +295,7 @@
-
+
@@ -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() {
//模拟从服务器获取数据时的延时