|
@@ -14,16 +14,16 @@ Vue.mixin(globalMixins);
|
|
|
import store from "./store";
|
|
import store from "./store";
|
|
|
Vue.prototype.$store = store;
|
|
Vue.prototype.$store = store;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+//点击声效
|
|
|
var innerAudioContext = uni.createInnerAudioContext();
|
|
var innerAudioContext = uni.createInnerAudioContext();
|
|
|
innerAudioContext.autoplay = false;
|
|
innerAudioContext.autoplay = false;
|
|
|
innerAudioContext.src = constants.imgUrl+'/hit.mp3';
|
|
innerAudioContext.src = constants.imgUrl+'/hit.mp3';
|
|
|
innerAudioContext.onPlay(() => {
|
|
innerAudioContext.onPlay(() => {
|
|
|
- console.log('开始播放');
|
|
|
|
|
|
|
+ //console.log('开始播放')
|
|
|
});
|
|
});
|
|
|
innerAudioContext.onError((res) => {
|
|
innerAudioContext.onError((res) => {
|
|
|
- console.log(res.errMsg);
|
|
|
|
|
- console.log(res.errCode);
|
|
|
|
|
|
|
+ //console.log(res.errMsg)
|
|
|
|
|
+ //console.log(res.errCode)
|
|
|
})
|
|
})
|
|
|
Vue.prototype.$innerAudioContext = innerAudioContext;
|
|
Vue.prototype.$innerAudioContext = innerAudioContext;
|
|
|
|
|
|