<template>
    <view>
        <web-view :src="url"></web-view>
    </view>
</template>

<script>
    import { wechatCode } from '@/apis/interfaces/authUrl'
    export default {
    	data() {
    		return {
                 url: '' // 外部链接地址
            }
        },
        onLoad(options) {
            // 获取微信code
            wechatCode({
                code: options.code
            }).then(res => {
                // , params: {openid: res.openid}
                this.$Router.push({name: 'Index'})
            }).catch(err => {
            	uni.showToast({
            		title: err.message,
            		icon: "none"
            	})
            })
        },
    }
</script>

<style>
</style>
