|
|
@ -29,18 +29,18 @@ |
|
|
<view class="card-con-txt1"> |
|
|
<view class="card-con-txt1"> |
|
|
<view class="card-con-txt1-left"> |
|
|
<view class="card-con-txt1-left"> |
|
|
<image :src="$util.img('/uniapp_src/static/images/index/score.png')" class="overlay-image"></image> |
|
|
<image :src="$util.img('/uniapp_src/static/images/index/score.png')" class="overlay-image"></image> |
|
|
<view class="card-con-txt1-left-txt top">{{memberIndexData.tx.score}}</view> |
|
|
<view class="card-con-txt1-left-txt top">{{physicalTestInfo.calculateChildHealthScore}}</view> |
|
|
<view class="card-con-txt1-left-txt top1">综合评分</view> |
|
|
<view class="card-con-txt1-left-txt top1">综合评分</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="card-con-txt1-right"> |
|
|
<view class="card-con-txt1-right"> |
|
|
<view style="color: #AAAAAA;padding: 5rpx;">数据测评时间:{{$util.formatToDateTime(memberIndexData.tx.create_time,'Y-m-d')}}</view> |
|
|
<view style="color: #AAAAAA;padding: 5rpx;">数据测评时间:{{$util.formatToDateTime(physicalTestInfo.created_at,'Y-m-d')}}</view> |
|
|
<view style="display: flex;justify-content: space-around;margin-top: 20rpx;"> |
|
|
<view style="display: flex;justify-content: space-around;margin-top: 20rpx;"> |
|
|
<view> |
|
|
<view> |
|
|
<view style="font-size: 48rpx;color: #29d3b4;">{{memberIndexData.tx.height * 100}}</view> |
|
|
<view style="font-size: 48rpx;color: #29d3b4;">{{physicalTestInfo.height}}</view> |
|
|
<view style="color: #AAAAAA;font-size: 30rpx;">身高(CM)</view> |
|
|
<view style="color: #AAAAAA;font-size: 30rpx;">身高(CM)</view> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<view style="font-size: 48rpx;color: #29d3b4;">{{memberIndexData.tx.weight}}</view> |
|
|
<view style="font-size: 48rpx;color: #29d3b4;">{{physicalTestInfo.weight}}</view> |
|
|
<view style="color: #AAAAAA;font-size: 30rpx;">体重(KG)</view> |
|
|
<view style="color: #AAAAAA;font-size: 30rpx;">体重(KG)</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -170,6 +170,13 @@ |
|
|
}, |
|
|
}, |
|
|
thisPath:'',//当前页面的路径(默认'') |
|
|
thisPath:'',//当前页面的路径(默认'') |
|
|
openPath:'',//正确的跳转路径(默认'') |
|
|
openPath:'',//正确的跳转路径(默认'') |
|
|
|
|
|
|
|
|
|
|
|
physicalTestInfo:{ |
|
|
|
|
|
created_at:'',//测评时间 |
|
|
|
|
|
calculateChildHealthScore:'0',//综合评分 |
|
|
|
|
|
height:'0',//身高 |
|
|
|
|
|
weight:'0',//体重 |
|
|
|
|
|
},//体测报告详情 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
@ -186,11 +193,36 @@ |
|
|
//学生页面初始化 |
|
|
//学生页面初始化 |
|
|
async init(){ |
|
|
async init(){ |
|
|
await this.member_init() |
|
|
await this.member_init() |
|
|
|
|
|
await this.getPhysicalTestList() |
|
|
this.getMemberIndex() |
|
|
this.getMemberIndex() |
|
|
this.getList() |
|
|
this.getList() |
|
|
this.getJobAssignmentsInfo() |
|
|
this.getJobAssignmentsInfo() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获取体测列表 |
|
|
|
|
|
async getPhysicalTestList(){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
page: 1,//当前页码 |
|
|
|
|
|
limit: 1,//每页返回数据条数 |
|
|
|
|
|
total: 1,//数据总条数 |
|
|
|
|
|
resource_id:this.member_info.id,//学生资源表id |
|
|
|
|
|
} |
|
|
|
|
|
let res = await apiRoute.xy_physicalTest(params) |
|
|
|
|
|
if(res.code != 1){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.msg, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log('tc',res.data) |
|
|
|
|
|
|
|
|
|
|
|
let arr = res.data.data |
|
|
|
|
|
if(arr.length){ |
|
|
|
|
|
this.physicalTestInfo = arr[0] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async openViewHome_COPY(){ |
|
|
async openViewHome_COPY(){ |
|
|
|