merge
This commit is contained in:
77
pages/user/files.vue
Normal file
77
pages/user/files.vue
Normal file
@@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="files">
|
||||
<view class="name">
|
||||
性别
|
||||
</view>
|
||||
<view class="text">
|
||||
{{ recordsData.sex == 1 ? '男' : '女' }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="files">
|
||||
<view class="name">
|
||||
年龄
|
||||
</view>
|
||||
<view class="text">
|
||||
{{ recordsData.age }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="files">
|
||||
<view class="name">
|
||||
身高
|
||||
</view>
|
||||
<view class="text">
|
||||
{{ recordsData.height }}cm
|
||||
</view>
|
||||
</view>
|
||||
<view class="files">
|
||||
<view class="name">
|
||||
体重
|
||||
</view>
|
||||
<view class="text">
|
||||
{{ recordsData.weight }}kg
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { records } from '@/apis/interfaces/user'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
recordsData: ''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 获取首页
|
||||
this.getGuide()
|
||||
},
|
||||
methods: {
|
||||
// 引导图片
|
||||
getGuide(){
|
||||
records().then(res => {
|
||||
this.recordsData = res
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.files {
|
||||
display: flex;
|
||||
padding: $padding;
|
||||
box-sizing: border-box;
|
||||
border-bottom: $border-color 2rpx solid;
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
.name {
|
||||
flex: 1;
|
||||
}
|
||||
.text {
|
||||
color: $text-gray;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -89,7 +89,7 @@
|
||||
ZH钱包
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
</view>
|
||||
<view class="btns-box-item">
|
||||
<view class="btns-box-item" @click="onFiles">
|
||||
<image class="icon" src="@/static/user/userIcon_02.png" mode="widthFix"></image>
|
||||
健康档案
|
||||
<uni-icons class="forward" type="forward" color="#999"></uni-icons>
|
||||
@@ -183,7 +183,13 @@
|
||||
if(this.userInfo.is_wallet) this.$Router.push({name: 'WalletProperty'})
|
||||
else this.$Router.push({name: 'WalletAdd'})
|
||||
}
|
||||
},
|
||||
},
|
||||
// 个人档案
|
||||
onFiles(){
|
||||
if(this.isLogin()){
|
||||
this.$Router.push({name: 'indexFiles'})
|
||||
}
|
||||
},
|
||||
// 按钮导航
|
||||
onBtn(name, params){
|
||||
if(this.isLogin()){
|
||||
|
||||
Reference in New Issue
Block a user