
<template>
	<view>
		<view @click="click">播放声音</view>
		</view>
	</view>
</template>
 
<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			click:function(){
				console.log('adsafa')
				this.audioContext = uni.createInnerAudioContext();
				this.audioContext.src = '../../static/y1809.mp3';
				console.log(this.audioContext.src)
				// obeyMuteSwitch默认值为true
				// 在需要播放的地方，调用即可
				this.audioContext.play();
				
			}
			
		}
	}
</script>
 
<style>

