fourPayProject/51pay-uni/components/h5/webView.vue
2025-03-31 10:14:11 +08:00

33 lines
517 B
Vue

<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
import {
getToken
} from '@/utils/auth'
import config from '@/config'
export default {
data() {
return {
url: '' //指向网页跳转的连接
}
},
onLoad(option) {
if (option.url) {
var that = this
that.url = option.url
} else {
var that = this
that.url = config.baseUrl + 'app/h5/authH5?token=' + getToken() //携带账号密码,自动登录
}
},
methods: {
}
}
</script>