|
|
@ -167,6 +167,7 @@ |
|
|
this.getAwardRecords(); |
|
|
this.getAwardRecords(); |
|
|
this.getNotice(); |
|
|
this.getNotice(); |
|
|
}else if(this.userType=='background'){ |
|
|
}else if(this.userType=='background'){ |
|
|
|
|
|
this.chartIndex = 1; |
|
|
updateTabBar.changebackground(); |
|
|
updateTabBar.changebackground(); |
|
|
this.getNeedSta(); |
|
|
this.getNeedSta(); |
|
|
this.getUserSta(); |
|
|
this.getUserSta(); |
|
|
@ -182,15 +183,20 @@ |
|
|
}, 500) |
|
|
}, 500) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
onHide() { |
|
|
|
|
|
if(this.userType=='user' && this.isPlay){ |
|
|
|
|
|
this.isPlay = false; |
|
|
|
|
|
this.innerAudioContext.pause(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.userType = uni.getStorageSync('userType'); |
|
|
this.userType = uni.getStorageSync('userType'); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
if(this.userType=='user'){ |
|
|
if(this.userType=='user'){ |
|
|
this.innerAudioContext = uni.createInnerAudioContext(); |
|
|
this.innerAudioContext = uni.createInnerAudioContext(); |
|
|
this.innerAudioContext.autoplay = false; |
|
|
this.innerAudioContext.autoplay = false; |
|
|
this.innerAudioContext.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3'; |
|
|
this.innerAudioContext.src = '../../static/audio/bgm.mp3'; |
|
|
this.innerAudioContext.onPlay(() => { |
|
|
this.innerAudioContext.onPlay(() => { |
|
|
console.log('开始播放'); |
|
|
console.log('开始播放'); |
|
|
}); |
|
|
}); |
|
|
@ -251,7 +257,7 @@ |
|
|
grid: { |
|
|
grid: { |
|
|
top: '12%', |
|
|
top: '12%', |
|
|
bottom: '12%', |
|
|
bottom: '12%', |
|
|
left: '10%', |
|
|
left: '18%', |
|
|
right: '5%' |
|
|
right: '5%' |
|
|
}, |
|
|
}, |
|
|
tooltip: {}, |
|
|
tooltip: {}, |
|
|
|