记录体重曲线模块配合调整字段,及处理没有任何体重展示形式
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
"path": "pages/evaluation/list",
|
"path": "pages/evaluation/list",
|
||||||
"name": "EvaluationList",
|
"name": "EvaluationList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "评测列表",
|
"navigationBarTitleText": "健康评测",
|
||||||
"navigationBarBackgroundColor": "#34CE98",
|
"navigationBarBackgroundColor": "#34CE98",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,12 +40,12 @@
|
|||||||
<!-- 曲线模块 -->
|
<!-- 曲线模块 -->
|
||||||
<view v-if="tabbarId === 1">
|
<view v-if="tabbarId === 1">
|
||||||
<!-- 健康测评 -->
|
<!-- 健康测评 -->
|
||||||
<u-image :src="require('@/static/imgs/health1.png')" class="eval-img" @click="$Router.push({ name: 'EvaluationList' })" :lazy-load="true" radius="10rpx" mode="widthFix" width="100%" />
|
<u-image v-if="chartData.categories.length>0" :src="require('@/static/imgs/health1.png')" class="eval-img" @click="$Router.push({ name: 'EvaluationList' })" :lazy-load="true" radius="10rpx" mode="widthFix" width="100%" />
|
||||||
<view class="curve">
|
<view class="curve" v-if="chartData.categories.length>0">
|
||||||
<view class="title"> 体重 <span>单位:公斤</span> </view>
|
<view class="title"> 体重 <span>单位:公斤</span> </view>
|
||||||
<u-icon @click="addWeightShow = true" name="edit-pen-fill" color="#34ce98" size="20" :bold="true" label="更新" labelPos="right" labelSize="13" labelColor="#999" space="4" />
|
<u-icon @click="addWeightShow = true" name="edit-pen-fill" color="#34ce98" size="20" :bold="true" label="更新" labelPos="right" labelSize="13" labelColor="#999" space="4" />
|
||||||
</view>
|
</view>
|
||||||
<view class="charts-box"> <qiun-data-charts type="area" :chartData="chartData" background="none" /> </view>
|
<view class="charts-box" v-if="chartData.categories.length>0"> <qiun-data-charts type="area" :chartData="chartData" background="none" /> </view>
|
||||||
<view class="progress-top">
|
<view class="progress-top">
|
||||||
<view class="add-weight" @click="addWeightShow = true">记录体重</view>
|
<view class="add-weight" @click="addWeightShow = true">记录体重</view>
|
||||||
<view class="des-title">只显示最近七次测量记录</view>
|
<view class="des-title">只显示最近七次测量记录</view>
|
||||||
@@ -104,8 +104,10 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
tabbarId: 0,
|
tabbarId: 0,
|
||||||
chartData: {
|
chartData: {
|
||||||
"categories": ["1/1","1/2","1/3","1/4","1/5","1/6","1/7"],
|
// "categories": ["1/1","1/2","1/3","1/4","1/5","1/6","1/7"],
|
||||||
"series": [{"name": "最近七天进度","data": [55,51,53.3,50.3,53.3]}]
|
// "series": [{"name": "最近七天进度","data": [55,51,53.3,50.3,53.3]}]
|
||||||
|
categories:[],
|
||||||
|
series:[{name: "",data: []}]
|
||||||
}, // 曲线部分 start
|
}, // 曲线部分 start
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -208,6 +210,15 @@
|
|||||||
height:500rpx;
|
height:500rpx;
|
||||||
margin-top: $margin;
|
margin-top: $margin;
|
||||||
}
|
}
|
||||||
|
.no-weight{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #999;
|
||||||
|
font-size: $title-size-m;
|
||||||
|
}
|
||||||
// curve
|
// curve
|
||||||
.curve{
|
.curve{
|
||||||
margin-top: $margin;
|
margin-top: $margin;
|
||||||
|
|||||||
BIN
static/imgs/no-weight.png
Normal file
BIN
static/imgs/no-weight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
Reference in New Issue
Block a user