6 changed files with 38 additions and 6 deletions
@ -0,0 +1,13 @@ |
|||||
|
<template> |
||||
|
<view @click="openLink" class="break-all text-blue-400 text-xs my-1"> {{ link }} </view> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
const props = defineProps({ link: String }); |
||||
|
|
||||
|
function openLink() { |
||||
|
uni.navigateTo({ |
||||
|
url: `/pages/deliverWebview/deliverWebview?url=${props.link}`, |
||||
|
}); |
||||
|
} |
||||
|
</script> |
||||
@ -0,0 +1,16 @@ |
|||||
|
<template> |
||||
|
<web-view :src="src"></web-view> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import { ref } from 'vue'; |
||||
|
import { onLoad } from '@dcloudio/uni-app'; |
||||
|
|
||||
|
const src = ref(''); |
||||
|
|
||||
|
onLoad(options => { |
||||
|
if (options && options.url) { |
||||
|
src.value = options.url; |
||||
|
} |
||||
|
}); |
||||
|
</script> |
||||
Loading…
Reference in new issue