264 lines
6.4 KiB
Vue
264 lines
6.4 KiB
Vue
<template>
|
|
<view>
|
|
<view class="box">
|
|
<view class="form lanBox">
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-height1"></view>
|
|
</view>身高
|
|
</view>
|
|
<view class="right">{{memInfo.height?memInfo.height:"0"}}cm</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-weight"></view>
|
|
</view>体重
|
|
</view>
|
|
<view class="right">{{memInfo.weight?memInfo.weight:"0"}}kg</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-bodyage"></view>
|
|
</view>年龄
|
|
</view>
|
|
<view class="right">{{memInfo.age?memInfo.age:"0岁"}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-bmi"></view>
|
|
</view>BMI
|
|
</view>
|
|
<view class="right">{{memInfo.bmi?memInfo.bmi:"0"}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-fat_w"></view>
|
|
</view>脂肪量
|
|
</view>
|
|
<view class="right">{{memInfo.fat_w?memInfo.fat_w:"0"}}%</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-fat_r"></view>
|
|
</view>脂肪率
|
|
</view>
|
|
<view class="right">{{memInfo.fat_r?memInfo.fat_r:"0"}}%</view>
|
|
</view>
|
|
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-muscleval"></view>
|
|
</view>肌肉量
|
|
</view>
|
|
<view class="right">{{memInfo.muscleval?memInfo.muscleval:"0"}}kg</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-muscle"></view>
|
|
</view>肌肉率
|
|
</view>
|
|
<view class="right">{{memInfo.muscle?memInfo.muscle:"0"}}%</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-proteinval"></view>
|
|
</view>蛋白量
|
|
</view>
|
|
<view class="right">{{memInfo.proteinval?memInfo.proteinval:'0'}}kg</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-protein"></view>
|
|
</view>蛋白率
|
|
</view>
|
|
<view class="right">{{memInfo.protein?memInfo.protein:"0"}}%</view>
|
|
</view>
|
|
<!-- -->
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-water"></view>
|
|
</view>水分
|
|
</view>
|
|
<view class="right">{{memInfo.water?memInfo.water:"0"}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-bone"></view>
|
|
</view>骨重
|
|
</view>
|
|
<view class="right">{{memInfo.bone?memInfo.bone:"0"}}kg</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-visceral"></view>
|
|
</view>内脏指数
|
|
</view>
|
|
<view class="right">{{memInfo.visceral?memInfo.visceral:"0"}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-sfr"></view>
|
|
</view>皮下脂肪
|
|
</view>
|
|
<view class="right">{{memInfo.sfr?memInfo.sfr:"0"}}%</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-kcal"></view>
|
|
</view>基础代谢率
|
|
</view>
|
|
<view class="right">{{memInfo.kcal?memInfo.kcal:'0'}}kcal</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-lbm"></view>
|
|
</view>去脂体重
|
|
</view>
|
|
<view class="right">{{memInfo.lbm?memInfo.lbm:"0"}}kg</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-bodyage"></view>
|
|
</view>体龄
|
|
</view>
|
|
<view class="right">{{memInfo.bodyage?memInfo.bodyage:"-"}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-fatlevel"></view>
|
|
</view>肥胖等级
|
|
</view>
|
|
<view class="right">{{memInfo.fatlevel?memInfo.fatlevel:'0'}}</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="lan border-bottom">
|
|
<view class="left">
|
|
<view class="view">
|
|
<view class="t-icon t-icon-body"></view>
|
|
</view>体型
|
|
</view>
|
|
<view class="right">{{memInfo.body?memInfo.body:'0'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
mapState
|
|
} from "vuex";
|
|
export default {
|
|
data() {
|
|
return {
|
|
list: {},
|
|
memInfo: {}
|
|
};
|
|
},
|
|
computed: {
|
|
...mapState(["appTheme"])
|
|
},
|
|
onLoad(options) {
|
|
// 导航栏颜色
|
|
let info = options.index
|
|
let memInfo = JSON.parse(info)
|
|
this.memInfo = memInfo
|
|
// this.list = this.weightInfo.infoList(memInfo)
|
|
// console.log(this.list)
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped="scoped" lang="scss">
|
|
.box {
|
|
min-height: 100vh;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.lanBox {
|
|
padding: 0px 15px 0;
|
|
}
|
|
|
|
.lan {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
height: 50px;
|
|
line-height: 50px;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #f7f7f7;
|
|
|
|
.left {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: left;
|
|
font-size: 14px;
|
|
padding-left: 30px;
|
|
|
|
.view {
|
|
width: 18px;
|
|
height: 18px;
|
|
position: absolute;
|
|
left: 15px;
|
|
padding: 2px;
|
|
background-color: #c7c7c7;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.t-icon,
|
|
image {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
}
|
|
|
|
.right {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
width: 50%;
|
|
min-height: 38px;
|
|
box-sizing: border-box;
|
|
line-height: 36px;
|
|
}
|
|
}
|
|
</style> |