update:样式修改&单脚交换跳绳检验
This commit is contained in:
parent
b3b3adf61b
commit
7868aef948
@ -74,6 +74,10 @@ Page({
|
|||||||
|
|
||||||
// 创建运动实例
|
// 创建运动实例
|
||||||
this.sport = SportBase.create(options.sportKey);
|
this.sport = SportBase.create(options.sportKey);
|
||||||
|
if(options.sportKey == 'Rope-Skipping'){
|
||||||
|
console.log('降低單脚跳验证精度')
|
||||||
|
this.sport.rules.base.rules[1].offset = 60
|
||||||
|
}
|
||||||
|
|
||||||
// 运动计数回调
|
// 运动计数回调
|
||||||
this.sport.onTick = (cnt, times) => {
|
this.sport.onTick = (cnt, times) => {
|
||||||
|
@ -23,7 +23,7 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
if(wx.getStorageSync('roleId') && wx.getStorageSync('roleId') == 3 ){
|
if(wx.getStorageSync('roleId') && wx.getStorageSync('roleId') == 5 ){
|
||||||
this.setData({
|
this.setData({
|
||||||
isTrainee:true
|
isTrainee:true
|
||||||
},()=>{
|
},()=>{
|
||||||
|
@ -173,6 +173,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-right: 20rpx;
|
padding-right: 20rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.more{
|
.more{
|
||||||
|
@ -10,7 +10,8 @@ page {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: radial-gradient(50.00% 50.00% at 50% 50%,rgb(59, 255, 235),rgba(38, 165, 246, 0) 100%);
|
/* background: radial-gradient(50.00% 50.00% at 50% 50%,rgb(59, 255, 235) 800rpx,rgba(38, 165, 246, 0) 100%); */
|
||||||
|
background: linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -31,8 +32,8 @@ page {
|
|||||||
|
|
||||||
/* 内容区域(在遮罩上层) */
|
/* 内容区域(在遮罩上层) */
|
||||||
.login-content {
|
.login-content {
|
||||||
position: absolute;
|
/* position: absolute;
|
||||||
z-index: 2;
|
z-index: 2; */
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -110,10 +111,10 @@ page {
|
|||||||
|
|
||||||
.page-content{
|
.page-content{
|
||||||
/* background-color: rgb(247, 247, 247); */
|
/* background-color: rgb(247, 247, 247); */
|
||||||
background: linear-gradient(190deg, #359cfd 0%, #f7f7f7 800rpx, #f7f7f7 100%);
|
/* background: linear-gradient(190deg, #359cfd 0%, #f7f7f7 800rpx, #f7f7f7 100%); */
|
||||||
position: relative;
|
/* position: relative; */
|
||||||
/* padding: 0 30rpx; */
|
/* padding: 0 30rpx; */
|
||||||
box-sizing: border-box;
|
/* box-sizing: border-box; */
|
||||||
/* padding-bottom: 300rpx; */
|
/* padding-bottom: 300rpx; */
|
||||||
min-height: 100vh;
|
/* min-height: 100vh; */
|
||||||
}
|
}
|
@ -13,18 +13,31 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="tp">
|
<!-- <view class="tp">
|
||||||
<view class="table-t">
|
<view class="table-t">
|
||||||
<view class="no-b no-r">最大心率</view>
|
<view class="no-b no-r">最大心率</view>
|
||||||
<view class="no-b no-r">最小心率</view>
|
<view class="no-b no-r">最小心率</view>
|
||||||
<view class="no-b no-r">平均心率</view>
|
<view class="no-b">平均心率</view>
|
||||||
<view class="no-b">中高强度时长(分钟)</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="table-t">
|
<view class="table-t">
|
||||||
<view class="no-r">{{reportDetail.maxHR || '- -'}}</view>
|
<view class="no-r">{{reportDetail.maxHR || '- -'}}</view>
|
||||||
<view class="no-r">{{reportDetail.minHR || '- -'}}</view>
|
<view class="no-r">{{reportDetail.minHR || '- -'}}</view>
|
||||||
<view class="no-r">{{reportDetail.avgHR || '- -'}}</view>
|
<view >{{reportDetail.avgHR || '- -'}}</view>
|
||||||
<view>{{reportDetail.highIntensity || '- -'}}</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
|
<view class="heart-box">
|
||||||
|
<view class="heart-item ">
|
||||||
|
<view>最大心率</view>
|
||||||
|
<view class="heart-text3">{{reportDetail.maxHR || '- -'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="heart-item heart-min">
|
||||||
|
<view>最小心率</view>
|
||||||
|
<view class="heart-text2">{{reportDetail.minHR || '- -'}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="heart-item heart-max">
|
||||||
|
<view>平均心率</view>
|
||||||
|
<view class="heart-text1">{{reportDetail.avgHR || '- -'}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -338,4 +338,56 @@
|
|||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-box{
|
||||||
|
display: flex;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-item{
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: rgba(214, 114, 114, 0.5);
|
||||||
|
border-radius: 20rpx;
|
||||||
|
height: 130rpx;
|
||||||
|
margin: 0 20rpx;
|
||||||
|
|
||||||
|
/* box-shadow: 0 0 10rpx rgb(223, 222, 222); */
|
||||||
|
padding-top: 10rpx;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .heart-item:nth-child(1){
|
||||||
|
box-shadow: 0 0 10rpx rgba(200, 85, 85, 0.5);
|
||||||
|
}
|
||||||
|
.heart-item:nth-child(3){
|
||||||
|
box-shadow: 0 0 10rpx rgba(114, 214, 156, 0.5);
|
||||||
|
} */
|
||||||
|
.heart-min{
|
||||||
|
background-color: rgba(146, 146, 146,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-max{
|
||||||
|
background-color: rgba(92, 200, 85,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-text1{
|
||||||
|
color: rgb(14, 172, 3);
|
||||||
|
font-size: 38rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-text2{
|
||||||
|
color: rgb(80, 80, 80);
|
||||||
|
font-size: 38rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-text3{
|
||||||
|
color: rgb(211, 13, 13);
|
||||||
|
font-size: 38rpx;
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user