update:优化个人训练字段
This commit is contained in:
@@ -67,8 +67,8 @@ const createDefaultTrainingData = () => ({
|
|||||||
hit_rate: 0,
|
hit_rate: 0,
|
||||||
endurance_shoot_speed: 0,
|
endurance_shoot_speed: 0,
|
||||||
total_calories: 0,
|
total_calories: 0,
|
||||||
overtake_rate: 0,
|
|
||||||
},
|
},
|
||||||
|
beat_percent: 0,
|
||||||
radar_max: 0,
|
radar_max: 0,
|
||||||
radar: {
|
radar: {
|
||||||
dimensions: defaultRadarDimensions,
|
dimensions: defaultRadarDimensions,
|
||||||
@@ -289,8 +289,8 @@ const loadPersonalTrainingData = async () => {
|
|||||||
hit_rate: result?.stats?.hit_rate ?? 0,
|
hit_rate: result?.stats?.hit_rate ?? 0,
|
||||||
endurance_shoot_speed: result?.stats?.endurance_shoot_speed ?? 0,
|
endurance_shoot_speed: result?.stats?.endurance_shoot_speed ?? 0,
|
||||||
total_calories: result?.stats?.total_calories ?? 0,
|
total_calories: result?.stats?.total_calories ?? 0,
|
||||||
overtake_rate: result?.stats?.overtake_rate ?? 0,
|
|
||||||
},
|
},
|
||||||
|
beat_percent: result?.beat_percent ?? 0,
|
||||||
radar_max: result?.radar_max ?? 0,
|
radar_max: result?.radar_max ?? 0,
|
||||||
radar: {
|
radar: {
|
||||||
dimensions:
|
dimensions:
|
||||||
@@ -477,7 +477,7 @@ onShow(async () => {
|
|||||||
/>
|
/>
|
||||||
<view class="record-bubble-copy">
|
<view class="record-bubble-copy">
|
||||||
<view class="record-main">
|
<view class="record-main">
|
||||||
已超越<text class="record-main-highlight">{{ formatValue(trainingData.stats.overtake_rate) }}%</text>对手
|
已超越<text class="record-main-highlight">{{ formatValue(trainingData.beat_percent) }}%</text>对手
|
||||||
</view>
|
</view>
|
||||||
<view class="record-sub-row">
|
<view class="record-sub-row">
|
||||||
<text class="record-sub-text">我的训练记录</text>
|
<text class="record-sub-text">我的训练记录</text>
|
||||||
|
|||||||
Reference in New Issue
Block a user