Merge branch 'master' of https://git.yuzhankeji.cn/UzTech/water_uni
@@ -43,9 +43,12 @@ const goutCover = (case_id, data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查看尿酸
|
// 查看尿酸
|
||||||
const lastLog = () => {
|
const lastLog = type => {
|
||||||
return request({
|
return request({
|
||||||
url: 'gout/result/last_log'
|
url: 'gout/result/last_log',
|
||||||
|
data: {
|
||||||
|
type
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"aliasPath": "/purine/index",
|
"aliasPath": "/purine/index",
|
||||||
"name": "purineIndex",
|
"name": "purineIndex",
|
||||||
"style":{
|
"style":{
|
||||||
"navigationBarTitleText":"嘌呤列表"
|
"navigationBarTitleText":"健康饮食"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/purine/details",
|
"path": "pages/purine/details",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"name": "uricacidIndex",
|
"name": "uricacidIndex",
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style":{
|
"style":{
|
||||||
"navigationBarTitleText":"尿酸值"
|
"navigationBarTitleText":"记录"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/uricacid/list",
|
"path": "pages/uricacid/list",
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
"name": "uricacidList",
|
"name": "uricacidList",
|
||||||
"auth": true,
|
"auth": true,
|
||||||
"style":{
|
"style":{
|
||||||
"navigationBarTitleText":"尿酸列表"
|
"navigationBarTitleText":"记录列表"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/attestation/index",
|
"path": "pages/attestation/index",
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
}],
|
}],
|
||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
"selectedColor": "#6a7df3",
|
"selectedColor": "#4490ff",
|
||||||
"color": "#9d9d9d",
|
"color": "#9d9d9d",
|
||||||
"iconWidth": "26px",
|
"iconWidth": "26px",
|
||||||
"spacing": "0",
|
"spacing": "0",
|
||||||
|
|||||||
@@ -4,17 +4,12 @@
|
|||||||
<rich-text :nodes="detailsImg"></rich-text>
|
<rich-text :nodes="detailsImg"></rich-text>
|
||||||
</view>
|
</view>
|
||||||
<view class="exhibition-receive">
|
<view class="exhibition-receive">
|
||||||
<view class="exhibition-receive-btn" @click="popLogin" v-if="!detailsData.hasLogin">
|
<view class="exhibition-receive-btn exhibition-receive-btn-50" @click="popClick">
|
||||||
参与活动
|
记录三高
|
||||||
</view>
|
</view>
|
||||||
<block v-else>
|
<view class="exhibition-receive-btn exhibition-receive-btn-50">
|
||||||
<view class="exhibition-receive-btn" @click="popClick" v-if="canSample">
|
活动分享
|
||||||
参与活动
|
</view>
|
||||||
</view>
|
|
||||||
<view class="exhibition-receive-btn active" v-else>
|
|
||||||
已参与
|
|
||||||
</view>
|
|
||||||
</block>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="popBack" v-if="popShow"></view>
|
<view class="popBack" v-if="popShow"></view>
|
||||||
@@ -124,7 +119,10 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 商品详情数据
|
// 商品详情数据
|
||||||
detailsInfo() {
|
detailsInfo() {
|
||||||
goods(this.$Route.query.id).then(res => {
|
goods(2).then(res => {
|
||||||
|
|
||||||
|
console.log(res)
|
||||||
|
|
||||||
this.detailsData = res
|
this.detailsData = res
|
||||||
this.detailsImg = res.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')
|
this.detailsImg = res.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')
|
||||||
this.canSample = res.canSample
|
this.canSample = res.canSample
|
||||||
@@ -315,16 +313,17 @@
|
|||||||
|
|
||||||
.exhibition-receive {
|
.exhibition-receive {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
display: flex;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
padding: 17rpx 30rpx;
|
padding: 17rpx 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
.exhibition-receive-btn {
|
.exhibition-receive-btn {
|
||||||
background-color: #ff8260;
|
background-color: $mian-color;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 88rpx;
|
line-height: 88rpx;
|
||||||
@@ -335,6 +334,10 @@
|
|||||||
color: #a9a9a9;
|
color: #a9a9a9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.exhibition-receive-btn-50{
|
||||||
|
width: 50%;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-btn button[size="mini"] {
|
.site-btn button[size="mini"] {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<view class="tools-box tools-flex">
|
<view class="tools-box tools-flex">
|
||||||
<view class="item item-sm" @click="$Router.push({name: 'purineIndex'})">
|
<view class="item item-sm" @click="$Router.push({name: 'purineIndex'})">
|
||||||
<view class="item-content">
|
<view class="item-content">
|
||||||
<view class="title">嘌呤查询</view>
|
<view class="title">健康饮食</view>
|
||||||
<view class="submit">知识小科普</view>
|
<view class="submit">食品知识小科普</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="item-icon" src="@/static/icons/tool_icon_00.png" mode="widthFix"></image>
|
<image class="item-icon" src="@/static/icons/tool_icon_00.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
<view class="tabs">
|
||||||
|
<view class="tabs-item" :class="tabType == 'hyperglycemia' ? 'active': ''" @click="onTab('hyperglycemia')">血糖记录</view>
|
||||||
|
<view class="tabs-item" :class="tabType == 'hyperlipidemia' ? 'active': ''" @click="onTab('hyperlipidemia')">血脂记录</view>
|
||||||
|
<view class="tabs-item" :class="tabType == 'hypertension' ? 'active': ''" @click="onTab('hypertension')">血压记录</view>
|
||||||
|
</view>
|
||||||
<view class="While">
|
<view class="While">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="top-time">
|
<view class="top-time">
|
||||||
{{ lastData.log ? lastData.log.created_at : '您还没有上传过尿酸值' }}
|
{{ lastData.log ? lastData.log.created_at : '您还没有上传过血糖值' }}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="lastData.log" class="top-record" @click="$Router.push({name: 'uricacidList', params: {id: lastData.caseId}})">
|
<view v-if="lastData.log" class="top-record" @click="$Router.push({name: 'uricacidList', params: {id: lastData.caseId}})">
|
||||||
所有记录
|
所有记录
|
||||||
@@ -19,17 +24,17 @@
|
|||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
<view class="uricacid-tips">
|
<view class="uricacid-tips">
|
||||||
<text>男性尿酸指标 {{ lastData.Newscope.man }}</text>
|
<text>男性血糖指标 {{ lastData.Newscope.man }}</text>
|
||||||
<text>女性尿酸指标 {{ lastData.Newscope.woman }}</text>
|
<text>女性血糖指标 {{ lastData.Newscope.woman }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="While analyse">
|
<view class="While analyse">
|
||||||
<view class="analyse-title">
|
<view class="analyse-title">
|
||||||
尿酸趋势分析
|
血糖趋势分析
|
||||||
</view>
|
</view>
|
||||||
<view class="analyse-text" v-if="lastData.log">
|
<view class="analyse-text" v-if="lastData.log">
|
||||||
当前尿酸值为{{ lastData.log.quantity }}umol,
|
当前血糖值为{{ lastData.log.quantity }}umol,
|
||||||
<block v-if="lastData.Newscope.scope">
|
<block v-if="lastData.Newscope.scope">
|
||||||
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '高于' : '低于' }}{{ lastData.Newscope.scope.max }}umol
|
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '高于' : '低于' }}{{ lastData.Newscope.scope.max }}umol
|
||||||
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '您的尿酸水平偏高,根据治疗指南需要进行治疗干预。需要生活控制(多喝水,饮食控制、并发症危险因素的控制、碱化尿液),配合药物治疗。具体情况请遵循医嘱。' : '您的尿酸水平控制很棒,请继续保持' }}
|
{{ lastData.log.quantity > lastData.Newscope.scope.max ? '您的尿酸水平偏高,根据治疗指南需要进行治疗干预。需要生活控制(多喝水,饮食控制、并发症危险因素的控制、碱化尿液),配合药物治疗。具体情况请遵循医嘱。' : '您的尿酸水平控制很棒,请继续保持' }}
|
||||||
@@ -104,7 +109,8 @@
|
|||||||
cover : {
|
cover : {
|
||||||
showpath: '',
|
showpath: '',
|
||||||
path : ''
|
path : ''
|
||||||
}
|
},
|
||||||
|
tabType : 'hyperglycemia'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -112,9 +118,14 @@
|
|||||||
this.lastInfo();
|
this.lastInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 切换数据
|
||||||
|
onTab(e){
|
||||||
|
this.tabType = e;
|
||||||
|
this.lastInfo()
|
||||||
|
},
|
||||||
// 尿酸数据
|
// 尿酸数据
|
||||||
lastInfo() {
|
lastInfo() {
|
||||||
lastLog().then(res => {
|
lastLog(this.tabType).then(res => {
|
||||||
this.lastData.Newscope = res.scope
|
this.lastData.Newscope = res.scope
|
||||||
this.lastData.log = res.log
|
this.lastData.log = res.log
|
||||||
this.lastData.caseId = res.case.gout_case_id
|
this.lastData.caseId = res.case.gout_case_id
|
||||||
@@ -189,8 +200,27 @@
|
|||||||
.content{
|
.content{
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #f3f4f6;
|
background: #f3f4f6;
|
||||||
|
min-height: calc(100vh - 60px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabs{
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 0 0 10rpx 10rpx;
|
||||||
|
box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: .05);
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
.tabs-item{
|
||||||
|
line-height: 100rpx;
|
||||||
|
color: #888;
|
||||||
|
&.active{
|
||||||
|
font-weight: bold;
|
||||||
|
color: $mian-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.While {
|
.While {
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
@@ -246,7 +276,7 @@
|
|||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
.analyse-btn {
|
.analyse-btn {
|
||||||
background-color: #6e79ec;
|
background-color: #4490ff;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 80rpx;
|
border-radius: 80rpx;
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
<view class="tabs">
|
||||||
|
<view class="tabs-item" :class="tabType == 'hyperglycemia' ? 'active': ''" @click="onTab('hyperglycemia')">血糖记录</view>
|
||||||
|
<view class="tabs-item" :class="tabType == 'hyperlipidemia' ? 'active': ''" @click="onTab('hyperlipidemia')">血脂记录</view>
|
||||||
|
<view class="tabs-item" :class="tabType == 'hypertension' ? 'active': ''" @click="onTab('hypertension')">血压记录</view>
|
||||||
|
</view>
|
||||||
<block v-if="LogArr.length > 0">
|
<block v-if="LogArr.length > 0">
|
||||||
<view class="While list">
|
<view class="While list">
|
||||||
<view class="list-label" v-for="(item, index) in LogArr" :key="index" @click="showSee(item.gout_case_log_id)">
|
<view class="list-label" v-for="(item, index) in LogArr" :key="index" @click="showSee(item.gout_case_log_id)">
|
||||||
@@ -84,7 +89,8 @@
|
|||||||
LogId : '', //记录id
|
LogId : '', //记录id
|
||||||
recordShow : false,
|
recordShow : false,
|
||||||
page : {}, //分页信息
|
page : {}, //分页信息
|
||||||
lodingStats : false //加载状态
|
lodingStats : false ,//加载状态
|
||||||
|
tabType : 'hyperglycemia'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -92,10 +98,17 @@
|
|||||||
this.lastInfo();
|
this.lastInfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 切换数据
|
||||||
|
onTab(e){
|
||||||
|
this.tabType = e;
|
||||||
|
this.page = {};
|
||||||
|
this.lastInfo()
|
||||||
|
},
|
||||||
// 尿酸数据
|
// 尿酸数据
|
||||||
lastInfo(page) {
|
lastInfo(page) {
|
||||||
ListLog(this.$Route.query.id,{
|
ListLog(this.$Route.query.id,{
|
||||||
page : page || ''
|
page : page || 1,
|
||||||
|
type : this.tabType
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let listArr = this.LogArr,
|
let listArr = this.LogArr,
|
||||||
newData = []
|
newData = []
|
||||||
@@ -185,8 +198,27 @@
|
|||||||
.content{
|
.content{
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #f3f4f6;
|
background: #f3f4f6;
|
||||||
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabs{
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 0 0 10rpx 10rpx;
|
||||||
|
box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: .05);
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
.tabs-item{
|
||||||
|
line-height: 100rpx;
|
||||||
|
color: #888;
|
||||||
|
&.active{
|
||||||
|
font-weight: bold;
|
||||||
|
color: $mian-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.While {
|
.While {
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 3.5 KiB |