|
@@ -8,7 +8,6 @@
|
|
<!-- #ifdef H5 || MP-WEIXIN -->
|
|
<!-- #ifdef H5 || MP-WEIXIN -->
|
|
@clickLeft="showClickEvent()"
|
|
@clickLeft="showClickEvent()"
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
-
|
|
|
|
color="#FFFFFF" fixed="true" :border="false">
|
|
color="#FFFFFF" fixed="true" :border="false">
|
|
<view slot="left">
|
|
<view slot="left">
|
|
<view class=" flex align-center margin-left">
|
|
<view class=" flex align-center margin-left">
|
|
@@ -254,8 +253,11 @@
|
|
<view class="example-title">从左侧滑出</view>
|
|
<view class="example-title">从左侧滑出</view>
|
|
<button @click="showDrawer">显示抽屉</button>
|
|
<button @click="showDrawer">显示抽屉</button>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="example">
|
|
|
|
|
|
+ <!-- <view class="example">
|
|
<button @click="showPopup('signIn',null)">显示 每日签到</button>
|
|
<button @click="showPopup('signIn',null)">显示 每日签到</button>
|
|
|
|
+ </view> -->
|
|
|
|
+ <view class="example" style="margin-top: 10rpx;">
|
|
|
|
+ <button @click="onNavToDirection">跳转校准页面</button>
|
|
</view>
|
|
</view>
|
|
<view style="height: 100rpx;"></view>
|
|
<view style="height: 100rpx;"></view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
@@ -264,7 +266,7 @@
|
|
<view class="flex flex-direction justify-center align-center task-up-button">
|
|
<view class="flex flex-direction justify-center align-center task-up-button">
|
|
<image style="width: 156rpx; height: 32rpx;" src="../../../static/personal/slideUp.png" @tap="showModal"
|
|
<image style="width: 156rpx; height: 32rpx;" src="../../../static/personal/slideUp.png" @tap="showModal"
|
|
data-target="slideUpModal"></image>
|
|
data-target="slideUpModal"></image>
|
|
- <view style="width: 100%;,height: 36rpx; background-color: #FFFFFF; color: #FFFFFF;">|</view>
|
|
|
|
|
|
+ <view style="width: 100%;height: 36rpx; background-color: #FFFFFF; color: #FFFFFF;"></view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 右下角导航栏 -->
|
|
<!-- 右下角导航栏 -->
|
|
@@ -853,6 +855,12 @@
|
|
});
|
|
});
|
|
//钱包信息
|
|
//钱包信息
|
|
this.getUserWallets();
|
|
this.getUserWallets();
|
|
|
|
+
|
|
|
|
+ //测试socket
|
|
|
|
+ // console.log('test*******************************');
|
|
|
|
+ // this.$testWS.connectSocket(()=>{
|
|
|
|
+ // this.$testWS.sendSocketMessage('unity');
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
_self.bHide = false;
|
|
_self.bHide = false;
|
|
@@ -915,9 +923,9 @@
|
|
// 计算屏幕剩余高度 填补剩余高度
|
|
// 计算屏幕剩余高度 填补剩余高度
|
|
let phoneHeight = this.systemInfo.windowHeight;
|
|
let phoneHeight = this.systemInfo.windowHeight;
|
|
|
|
|
|
- console.log('计算屏幕剩余高度 ===:', phoneHeight);
|
|
|
|
|
|
+ console.log('计算屏幕剩余高度 ===:', phoneHeight,this.systemInfo);
|
|
// 计算组件的高度
|
|
// 计算组件的高度
|
|
- _self.scrollviewHight = phoneHeight - this.navHeight - this.tabbarHeight - 16;
|
|
|
|
|
|
+ _self.scrollviewHight = phoneHeight - this.navHeight - this.tabbarHeight - 16 - this.systemInfo.statusBarHeight;
|
|
// let view = uni.createSelectorQuery().select('#nav-bar');
|
|
// let view = uni.createSelectorQuery().select('#nav-bar');
|
|
// view.boundingClientRect(data => {
|
|
// view.boundingClientRect(data => {
|
|
// // console.log('data===:', data);
|
|
// // console.log('data===:', data);
|
|
@@ -969,7 +977,9 @@
|
|
'gStopSimulateBLEUpdate',
|
|
'gStopSimulateBLEUpdate',
|
|
'getActionJumpTask',
|
|
'getActionJumpTask',
|
|
'setActionJumpTask', 'getLevelList',
|
|
'setActionJumpTask', 'getLevelList',
|
|
- 'getUserWallets', 'setGoldAndDiamond'
|
|
|
|
|
|
+ 'getUserWallets', 'setGoldAndDiamond',
|
|
|
|
+ 'onConvertDeviceData',
|
|
|
|
+ 'showDrawerById','showPopupById'
|
|
]),
|
|
]),
|
|
BasicsSteps() {
|
|
BasicsSteps() {
|
|
this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1
|
|
this.basics = this.basics == this.basicsList.length - 1 ? 0 : this.basics + 1
|
|
@@ -1357,8 +1367,22 @@
|
|
//这个是普通打击模式
|
|
//这个是普通打击模式
|
|
this.$refs.boxingPostRef.onBLEHandleUpdate(data);
|
|
this.$refs.boxingPostRef.onBLEHandleUpdate(data);
|
|
} else if (this.BLEConnectDevice.usageMode == "ropeSkipping") {
|
|
} else if (this.BLEConnectDevice.usageMode == "ropeSkipping") {
|
|
- //跳绳蓝牙反馈
|
|
|
|
- this.$refs.actionJumpRef.onBLERopeUpdate(data);
|
|
|
|
|
|
+
|
|
|
|
+ this.onConvertDeviceData({
|
|
|
|
+ data: data,
|
|
|
|
+ callback: (outData) => {
|
|
|
|
+ // this.outBLEData = {
|
|
|
|
+ // acc: outData.convertAcc,
|
|
|
|
+ // gyro: outData.convertGyro
|
|
|
|
+ // }
|
|
|
|
+ // console.log(JSON.stringify(outData),JSON.stringify(data));
|
|
|
|
+ data.acc = outData.convertAcc;
|
|
|
|
+ data.gyro = outData.convertGyro;
|
|
|
|
+ //跳绳蓝牙反馈
|
|
|
|
+ this.$refs.actionJumpRef.onBLERopeUpdate(data);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2557,145 +2581,145 @@
|
|
|
|
|
|
},
|
|
},
|
|
showDrawer() {
|
|
showDrawer() {
|
|
- uni.getSubNVueById('personal-drawer').show('slide-in-left', 200);
|
|
|
|
|
|
+ // uni.getSubNVueById('personal-drawer').show('slide-in-left', 200);
|
|
|
|
+ // {id:'personal-drawer'}
|
|
|
|
+ this.showDrawerById();
|
|
},
|
|
},
|
|
showPopup(type, item) {
|
|
showPopup(type, item) {
|
|
console.log(type, item);
|
|
console.log(type, item);
|
|
- switch (type) {
|
|
|
|
- case 'levelReward':
|
|
|
|
- uni.$emit('reward-popup', {
|
|
|
|
- title: '奖励',
|
|
|
|
- content: '',
|
|
|
|
- type: type,
|
|
|
|
- item: {
|
|
|
|
- gold: item.rewardGold,
|
|
|
|
- diamond: item.rewardDiamond,
|
|
|
|
- honor: item.rewardHonor
|
|
|
|
- },
|
|
|
|
- operationItem: item
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case 'prompt':
|
|
|
|
- // 向 popup 传递消息
|
|
|
|
- uni.$emit('reward-popup', {
|
|
|
|
- title: '奖励',
|
|
|
|
- content: '',
|
|
|
|
- type: type,
|
|
|
|
- item: {
|
|
|
|
- gold: item.rewardGold,
|
|
|
|
- diamond: item.rewardDiamond,
|
|
|
|
- honor: item.rewardHonor.explain
|
|
|
|
- },
|
|
|
|
- operationItem: item
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case 'unlock':
|
|
|
|
- // 向 popup 传递消息
|
|
|
|
- uni.$emit('reward-popup', {
|
|
|
|
- title: '解锁关卡',
|
|
|
|
- content: '',
|
|
|
|
- type: type,
|
|
|
|
- item: {
|
|
|
|
- consumeGold: item.consumeGold,
|
|
|
|
- consumeDiamond: item.consumeDiamond
|
|
|
|
- },
|
|
|
|
- operationItem: item
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case 'signIn':
|
|
|
|
- // 向 popup 传递消息
|
|
|
|
- uni.$emit('reward-popup', {
|
|
|
|
- title: '每日签到',
|
|
|
|
- content: '',
|
|
|
|
- type: type,
|
|
|
|
- lists: [{
|
|
|
|
- name: 'gold',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'diamond',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sDiamond.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-diamond@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'gold',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'gold',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: false
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'diamond',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sDiamond.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-diamond@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: false
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'gold',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: false
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: 'gold',
|
|
|
|
- width: 28,
|
|
|
|
- height: 28,
|
|
|
|
- url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
- selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
- explain: '',
|
|
|
|
- value: 20,
|
|
|
|
- isSelect: false
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- default:
|
|
|
|
- uni.showToast({
|
|
|
|
- title: 'showPopup 类型为空',
|
|
|
|
- })
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
- const subNVue = uni.getSubNVueById('personal-popup')
|
|
|
|
- subNVue.show('zoom-out', 250)
|
|
|
|
- // #endif
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ this.showPopupById({type,item});
|
|
|
|
+ // switch (type) {
|
|
|
|
+ // case 'levelReward':
|
|
|
|
+ // uni.$emit('reward-popup', {
|
|
|
|
+ // title: '奖励',
|
|
|
|
+ // content: '',
|
|
|
|
+ // type: type,
|
|
|
|
+ // item: {
|
|
|
|
+ // gold: item.rewardGold,
|
|
|
|
+ // diamond: item.rewardDiamond,
|
|
|
|
+ // honor: item.rewardHonor
|
|
|
|
+ // },
|
|
|
|
+ // operationItem: item
|
|
|
|
+ // });
|
|
|
|
+ // break;
|
|
|
|
+ // case 'prompt':
|
|
|
|
+ // // 向 popup 传递消息
|
|
|
|
+ // uni.$emit('reward-popup', {
|
|
|
|
+ // title: '奖励',
|
|
|
|
+ // content: '',
|
|
|
|
+ // type: type,
|
|
|
|
+ // item: {
|
|
|
|
+ // gold: item.rewardGold,
|
|
|
|
+ // diamond: item.rewardDiamond,
|
|
|
|
+ // honor: item.rewardHonor
|
|
|
|
+ // },
|
|
|
|
+ // operationItem: item
|
|
|
|
+ // });
|
|
|
|
+ // break;
|
|
|
|
+ // case 'unlock':
|
|
|
|
+ // // 向 popup 传递消息
|
|
|
|
+ // uni.$emit('reward-popup', {
|
|
|
|
+ // title: '解锁关卡',
|
|
|
|
+ // content: '',
|
|
|
|
+ // type: type,
|
|
|
|
+ // item: {
|
|
|
|
+ // consumeGold: item.consumeGold,
|
|
|
|
+ // consumeDiamond: item.consumeDiamond
|
|
|
|
+ // },
|
|
|
|
+ // operationItem: item
|
|
|
|
+ // });
|
|
|
|
+ // break;
|
|
|
|
+ // case 'signIn':
|
|
|
|
+ // // 向 popup 传递消息
|
|
|
|
+ // uni.$emit('reward-popup', {
|
|
|
|
+ // title: '每日签到',
|
|
|
|
+ // content: '',
|
|
|
|
+ // type: type,
|
|
|
|
+ // lists: [{
|
|
|
|
+ // name: 'gold',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'diamond',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sDiamond.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-diamond@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'gold',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'gold',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: false
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'diamond',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sDiamond.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-diamond@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: false
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'gold',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: false
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // name: 'gold',
|
|
|
|
+ // width: 28,
|
|
|
|
+ // height: 28,
|
|
|
|
+ // url: '../../../static/common/sideBar/sGold.png',
|
|
|
|
+ // selectedUrl: '../../../static/common/subNVue/sign/sign-grey-gold@2x.png',
|
|
|
|
+ // explain: '',
|
|
|
|
+ // value: 20,
|
|
|
|
+ // isSelect: false
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // });
|
|
|
|
+ // break;
|
|
|
|
+
|
|
|
|
+ // default:
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: 'showPopup 类型为空',
|
|
|
|
+ // })
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
+ // // #ifdef APP-PLUS
|
|
|
|
+ // const subNVue = uni.getSubNVueById('personal-popup')
|
|
|
|
+ // subNVue.show('zoom-out', 250)
|
|
|
|
+ // // #endif
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2905,6 +2929,12 @@
|
|
unregisterPopupEvent() {
|
|
unregisterPopupEvent() {
|
|
uni.$off('reward-popup-page')
|
|
uni.$off('reward-popup-page')
|
|
uni.$off('drawer-page')
|
|
uni.$off('drawer-page')
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ onNavToDirection(){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'../directionOfDetection/directionOfDetection'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -3566,17 +3596,17 @@
|
|
.task-up-button {
|
|
.task-up-button {
|
|
z-index: 10;
|
|
z-index: 10;
|
|
|
|
|
|
- /* #ifndef APP-PLUS-NVUE */
|
|
|
|
|
|
+ /* #ifndef APP-PLUS */
|
|
position: absolute;
|
|
position: absolute;
|
|
/* #endif */
|
|
/* #endif */
|
|
- /* #ifdef APP-PLUS-NVUE */
|
|
|
|
|
|
+ /* #ifdef APP-PLUS */
|
|
position: fixed;
|
|
position: fixed;
|
|
/* #endif */
|
|
/* #endif */
|
|
bottom: -10px;
|
|
bottom: -10px;
|
|
right: 0;
|
|
right: 0;
|
|
left: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
margin: auto;
|
|
- width: 750rpx;
|
|
|
|
|
|
+ width: 100%;
|
|
height: 68rpx;
|
|
height: 68rpx;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|