This commit is contained in:
2023-10-27 14:12:44 +08:00
parent 12f5fbc302
commit c9a7affa10

View File

@ -14,6 +14,7 @@
</view> </view>
<view class="estimate">风险评估</view> <view class="estimate">风险评估</view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -42,38 +43,47 @@
}) })
}, },
gosurveySubject(item) { gosurveySubject(item) {
if (item.surveySubject == 1001) { if (!uni.getStorageSync('userinfo')) {
uni.navigateTo({ this.$refs.uToast.show({
url: `/questionnaire/hypertension/hypertension?item=${encodeURIComponent(JSON.stringify(item))}` title: '您未登录,请先登录',
}) type: 'error',
} else if (item.surveySubject == 1002) { duration: '1000',
uni.navigateTo({ url: '/pages/login/login'
url: `/questionnaire/diabetes/diabetes?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1003) {
uni.navigateTo({
url: `/questionnaire/cerebralapoplexy/cerebralapoplexy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1004) {
uni.navigateTo({
url: `/questionnaire/copd/copd?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1005) {
uni.navigateTo({
url: `/questionnaire/chronicdisease/chronicdisease?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1006) {
uni.navigateTo({
url: `/questionnaire/nephropathy/nephropathy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1007) {
uni.navigateTo({
url: `/questionnaire/Ophthalmopathy/Ophthalmopathy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1008) {
uni.navigateTo({
url: `/questionnaire/Footdisease/Footdisease?item=${encodeURIComponent(JSON.stringify(item))}`
}) })
} else {
if (item.surveySubject == 1001) {
uni.navigateTo({
url: `/questionnaire/hypertension/hypertension?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1002) {
uni.navigateTo({
url: `/questionnaire/diabetes/diabetes?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1003) {
uni.navigateTo({
url: `/questionnaire/cerebralapoplexy/cerebralapoplexy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1004) {
uni.navigateTo({
url: `/questionnaire/copd/copd?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1005) {
uni.navigateTo({
url: `/questionnaire/chronicdisease/chronicdisease?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1006) {
uni.navigateTo({
url: `/questionnaire/nephropathy/nephropathy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1007) {
uni.navigateTo({
url: `/questionnaire/Ophthalmopathy/Ophthalmopathy?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else if (item.surveySubject == 1008) {
uni.navigateTo({
url: `/questionnaire/Footdisease/Footdisease?item=${encodeURIComponent(JSON.stringify(item))}`
})
}
} }
}, },
info() { info() {