| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { |
| | | getWebViewUrl |
| | | } from "@/utils/index.js"; |
| | | import WebViewPlus from "@/components/WebViewPlus.vue"; |
| | | import { getWebViewUrl } from "@/utils/index.js"; |
| | | import WebViewPlus from "@/components/WebViewPlus.vue"; |
| | | |
| | | const viewUrl = getWebViewUrl("/QrCodeScanner"); |
| | | const viewUrl = getWebViewUrl("/QrCodeScanner"); |
| | | |
| | | const onPostMessage = (data) => { |
| | | if (data.type === 'browser') { |
| | | uni.navigateTo({ |
| | | url: '/subPackages/browser/index?url=' + encodeURIComponent(data.data.url) |
| | | }); |
| | | } |
| | | }; |
| | | const onPostMessage = (data) => { |
| | | if (data.type === "browser") { |
| | | // #ifndef MP-WEIXIN |
| | | uni.navigateTo({ |
| | | url: |
| | | "/subPackages/browser/index?url=" + encodeURIComponent(data.data.url), |
| | | }); |
| | | // #endif |
| | | } |
| | | }; |
| | | |
| | | onLoad(() => {}); |
| | | onLoad(() => {}); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page-wrap { |
| | | font-size: 20px; |
| | | } |
| | | .page-wrap { |
| | | font-size: 20px; |
| | | } |
| | | </style> |