|
|
@@ -112,7 +112,9 @@
|
|
|
<view style="position: relative;" >
|
|
|
<image style="position: relative; width: 400rpx;height: 170rpx;" src="/static/guide/boxingHitMid.png"></image>
|
|
|
<!-- 打击拳击柱越快或力量越大力量条会越快增长哦! -->
|
|
|
- <view style="position: absolute;top: 70rpx; left: 45rpx;right:35rpx; color: #000;">跑的越快速度条会增长越快哦!</view>
|
|
|
+ <view v-if="thisCurrentMode == 'calorieMode'" style="position: absolute;top: 70rpx; left: 45rpx;right:35rpx; color: #000;">跑的越快速度条会增长越快哦!</view>
|
|
|
+ <view v-else style="position: absolute;top: 70rpx; left: 45rpx;right:35rpx; color: #000;">打击拳击柱越快或力量越大力量条会越快增长哦!</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="guide-vertical-bar">
|
|
|
@@ -189,6 +191,11 @@
|
|
|
type: Number,
|
|
|
default: 0
|
|
|
},
|
|
|
+
|
|
|
+ currentMode:{
|
|
|
+ type: String,
|
|
|
+ default:"calorieMode"
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
data() {
|
|
|
@@ -210,17 +217,24 @@
|
|
|
DeviceObj: null,
|
|
|
|
|
|
modalObj:null,
|
|
|
+
|
|
|
+ thisCurrentMode:'',
|
|
|
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.thisCurrent = this.current;
|
|
|
+ this.thisCurrentMode = this.currentMode;
|
|
|
},
|
|
|
watch: {
|
|
|
|
|
|
current(val) {
|
|
|
// console.log("====",val);
|
|
|
this.thisCurrent = val;
|
|
|
+ },
|
|
|
+ currentMode(val) {
|
|
|
+ // console.log("====",val);
|
|
|
+ this.thisCurrentMode = val;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|