|
|
|
@ -1,47 +1,76 @@ |
|
|
|
<!--体测数据--> |
|
|
|
<template> |
|
|
|
<view class="overall"> |
|
|
|
<view class="date">2021年03月12日</view> |
|
|
|
<view class="date">{{$util.formatToDateTime(surveyInfo.create_time,'Y-m-d')}}</view> |
|
|
|
|
|
|
|
<view class="content"> |
|
|
|
<view class="circle-container"> |
|
|
|
<view class="card-con-txt1-left"> |
|
|
|
<image src="@/static/images/index/score.png" class="overlay-image"></image> |
|
|
|
</view> |
|
|
|
<view class="card-con-txt1-left-txt">90</view> |
|
|
|
<view class="card-con-txt1-left-txt">{{surveyInfo.score}}</view> |
|
|
|
<view class="card-con-txt1-left-txt top1">综合评分</view> |
|
|
|
</view> |
|
|
|
<view style="height: 170rpx;"></view> |
|
|
|
<view style="display: flex;justify-content: space-around;"> |
|
|
|
<view style="text-align: center;"> |
|
|
|
<view style="color: #AAAAAA;font-size: 30rpx;padding: 15rpx 0;">身高 (CM)</view> |
|
|
|
<view style="font-size: 55rpx;color: #29d3b4;">123</view> |
|
|
|
<view style="font-size: 55rpx;color: #29d3b4;">{{surveyInfo.height}}</view> |
|
|
|
</view> |
|
|
|
<view style="text-align: center;"> |
|
|
|
<view style="color: #AAAAAA;font-size: 30rpx;padding: 15rpx 0;">体重 (KG)</view> |
|
|
|
<view style="font-size: 55rpx;color: #29d3b4;">45</view> |
|
|
|
<view style="font-size: 55rpx;color: #29d3b4;">{{surveyInfo.weight}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="coach-message"> |
|
|
|
<view> |
|
|
|
<image src="@/static/images/index/lv.png" class="drop-image"></image> |
|
|
|
</view> |
|
|
|
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">教练寄语教练寄语教练寄语教练寄语教练寄语教练寄语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练教练寄语教练寄语教练寄语教练寄语练教练语教练寄教练寄语教练寄语教练寄语教练寄语教练寄语教练</view> |
|
|
|
<view style="padding: 15rpx 0 0 5rpx;line-height: 1.6;font-size: 30rpx;color: #7F7F7F;">{{surveyInfo.content}}</view> |
|
|
|
</view> |
|
|
|
<view style="font-size: 45rpx;text-align: center;margin-top: 30%;">详细数据信息</view> |
|
|
|
<!-- <view style="font-size: 45rpx;text-align: center;margin-top: 30%;">详细数据信息</view>--> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import memberApi from '@/api/member.js'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
survey_id:'',//评测id |
|
|
|
|
|
|
|
surveyInfo:{},//评测详情 |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
this.survey_id = options.survey_id//评测id |
|
|
|
}, |
|
|
|
onShow(){ |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//初始化 |
|
|
|
async init(){ |
|
|
|
this.getInfo() |
|
|
|
}, |
|
|
|
|
|
|
|
//评测详情 |
|
|
|
async getInfo(){ |
|
|
|
let data = { |
|
|
|
survey_id:this.survey_id |
|
|
|
} |
|
|
|
let res = await memberApi.jlSurveyInfo(data) |
|
|
|
if(res.code != 1){ |
|
|
|
uni.showToast({ |
|
|
|
title: res.msg, |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
this.surveyInfo = res.data |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|