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 class="estimate">风险评估</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -42,6 +43,14 @@
})
},
gosurveySubject(item) {
if (!uni.getStorageSync('userinfo')) {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
} else {
if (item.surveySubject == 1001) {
uni.navigateTo({
url: `/questionnaire/hypertension/hypertension?item=${encodeURIComponent(JSON.stringify(item))}`
@ -75,6 +84,7 @@
url: `/questionnaire/Footdisease/Footdisease?item=${encodeURIComponent(JSON.stringify(item))}`
})
}
}
},
info() {
surveylist(this.query).then(res => {