2023-10-27 11:17:04 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="app">
|
|
|
|
|
|
<view class="title">
|
2023-11-14 15:27:08 +08:00
|
|
|
|
诊断结果:
|
2023-10-27 11:17:04 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="text">
|
2023-11-14 15:27:08 +08:00
|
|
|
|
{{list.evaluateResult}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="title" v-if="content">
|
|
|
|
|
|
健康处方:
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="text" v-if="content">
|
2023-10-27 11:17:04 +08:00
|
|
|
|
<u-parse :html="content"></u-parse>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import {
|
|
|
|
|
|
templateget
|
|
|
|
|
|
} from '@/api/questionnaire/index.js'
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
content: null,
|
2023-11-14 15:27:08 +08:00
|
|
|
|
list: {}
|
2023-10-27 11:17:04 +08:00
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
info(code) {
|
|
|
|
|
|
templateget(code).then(res => {
|
|
|
|
|
|
let arr = res.data.content.split("");
|
|
|
|
|
|
this.content = arr.map((item) => {
|
|
|
|
|
|
return item === "\n" ? "<br>" : item
|
|
|
|
|
|
}).join("")
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
onLoad(options) {
|
2023-11-14 15:27:08 +08:00
|
|
|
|
this.list = JSON.parse(decodeURIComponent(options.list))
|
|
|
|
|
|
if (options.truelistlength > 0) {
|
|
|
|
|
|
this.info(options.code)
|
|
|
|
|
|
}
|
2023-10-27 11:17:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.app {
|
|
|
|
|
|
width: 96%;
|
|
|
|
|
|
margin: 20rpx auto;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
|
padding: 20rpx 20rpx 40rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
width: 94%;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
border-bottom: 2rpx solid #C1C1C1;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
line-height: 80rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|