vue页面
<template>
<view class="u-wrap">
<!-- 导航栏 -->
<u-navbar class="heard-nav" :background="background" titleColor="#FFFFFF"
:title="navbarTitle" :titleSize="background.titleSize" title-width="460" back-icon-color="white">
</u-navbar>
<view class="content">
<!-- <web-view src="/hybrid/html/local.html"></web-view> -->
<web-view :src="webViewUrl" @message="getMessage"></web-view>
</view>
</view>
</template>
onShow() {
//获取accessToken
uni.request({
method:'POST',
url: 'https://open.ys7.com/api/lapp/token/get', //仅为示例,并非真实接口地址。
data: {
appKey:'萤石云创建应用后获取',
appSecret:'萤石云创建应用后获取'
},
header: