123456789101112131415161718192021222324252627282930 |
- <template>
- <view>
- <web-view :src="src"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- src: '' //H5页面路径
- }
- },
- onLoad(option) {
- // console.log(option,'option')
- this.src = option.src
- // 开启分享
- uni.showShareMenu({
- withShareTicket: true,
- menus: ['shareAppMessage', 'shareTimeline']
- })
- },
- methods: {
-
- }
- }
- </script>
- <style>
- </style>
|