first commit

This commit is contained in:
wangxiaowei
2025-10-22 22:56:36 +08:00
commit 90c54df48b
302 changed files with 54312 additions and 0 deletions

28
pages/webview/webview.vue Normal file
View File

@ -0,0 +1,28 @@
<template>
<view>
<web-view :src="url" @onPostMessage="handlePostMessage"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: ''
}
},
onLoad(e) {
this.url = e.url;
},
methods: {
// webview向外部发送消息
handlePostMessage: function(data) {
console.log("接收到消息:" + JSON.stringify(data.detail));
},
}
}
</script>
<style>
</style>