修改
This commit is contained in:
parent
c75b85447c
commit
2857b778a7
@ -19,3 +19,21 @@ export function templateget(templateType) {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function timeline(userId) {
|
||||
return request({
|
||||
url: `/evaluate/record/timeline/${userId}`,
|
||||
method: 'get',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
}
|
||||
})
|
||||
}
|
||||
export function answer(recordId) {
|
||||
return request({
|
||||
url: `/evaluate/survey/answer/${recordId}`,
|
||||
method: 'get',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
}
|
||||
})
|
||||
}
|
||||
20
pages.json
20
pages.json
@ -666,7 +666,25 @@
|
||||
"navigationBarTitleText": "健康处方",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}]
|
||||
} ,{
|
||||
"path" : "History/History",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "健康自评历史记录",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "HistoryQuestionnaire/HistoryQuestionnaire",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "历史记录评估问卷",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
}],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "white",
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<view class="tophealth">
|
||||
<image src="../../static/pageC/self.png" mode=""></image>
|
||||
<span class="health">智慧健康驿站自评表</span>
|
||||
<span class="history">历史记录</span>
|
||||
<span class="history" @tap='gohistory'>历史记录</span>
|
||||
</view>
|
||||
<view class="bodyhealth" v-for="item in list" @tap='gosurveySubject(item)'>
|
||||
<image src="../../static/pageC/books.png" mode=""></image>
|
||||
@ -36,6 +36,11 @@
|
||||
this.info();
|
||||
},
|
||||
methods: {
|
||||
gohistory() {
|
||||
uni.navigateTo({
|
||||
url: '/questionnaire/History/History'
|
||||
})
|
||||
},
|
||||
gosurveySubject(item) {
|
||||
if (item.surveySubject == 1001) {
|
||||
uni.navigateTo({
|
||||
|
||||
@ -19,6 +19,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
submit
|
||||
} from '@/api/questionnaire/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -46,7 +49,19 @@
|
||||
} else if (truelist.length == 0) {
|
||||
this.list.evaluateResult = '本次评估结果为0分,3分以下者,没有脑卒中高危风险,请继续保持!'
|
||||
}
|
||||
console.log(this.list)
|
||||
submit(this.list).then(res => {
|
||||
if (truelist.length >= 3) {
|
||||
uni.redirectTo({
|
||||
url: `/questionnaire/prescription/prescription?code=1003`
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '提交成功',
|
||||
type: 'success',
|
||||
back: 1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 选中某个单选框时,由radio时触发
|
||||
radioChange(e, item, index) {
|
||||
|
||||
@ -19,6 +19,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
submit
|
||||
} from '@/api/questionnaire/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -64,7 +67,19 @@
|
||||
} else if (value >= 5) {
|
||||
this.list.evaluateResult = `您的评估结果为${value}分,5分及以上可能存在慢性阻塞性肺疾病风险,如有以下情形,请尽早就医。`
|
||||
}
|
||||
console.log(this.list)
|
||||
submit(this.list).then(res => {
|
||||
if (value >= 5) {
|
||||
uni.redirectTo({
|
||||
url: `/questionnaire/prescription/prescription?code=1004`
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '提交成功',
|
||||
type: 'success',
|
||||
back: 1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 选中某个单选框时,由radio时触发
|
||||
radioChange(e, item, index) {
|
||||
|
||||
@ -19,6 +19,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
submit
|
||||
} from '@/api/questionnaire/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -42,7 +45,19 @@
|
||||
} else if (truelist.length == 0) {
|
||||
this.list.evaluateResult = '您没有糖尿病高危风险,请继续保持!'
|
||||
}
|
||||
console.log(this.list)
|
||||
submit(this.list).then(res => {
|
||||
if (truelist.length > 0) {
|
||||
uni.redirectTo({
|
||||
url: `/questionnaire/prescription/prescription?code=1002`
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '提交成功',
|
||||
type: 'success',
|
||||
back: 1
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 选中某个单选框时,由radio时触发
|
||||
radioChange(e, item, index) {
|
||||
|
||||
@ -46,7 +46,6 @@
|
||||
} else if (truelist.length == 0) {
|
||||
this.list.evaluateResult = '您没有高血压风险,请继续保持!'
|
||||
}
|
||||
console.log(this.list)
|
||||
submit(this.list).then(res => {
|
||||
if (truelist.length > 0) {
|
||||
uni.redirectTo({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user