const platform = uni.getSystemInfoSync().platform
// 创建一个webview
const webview = plus.webview.create('',BaseUrl);
// 通过webview打开链接,后面加referer表示该链接是从哪里打开的,请填写申请h5支付的域名,比如:http://www.baidu.com,需要已备案
switch(platform){
case 'android':
webview.loadURL(web_url,{'Referer':BaseUrl});
break;
case 'ios':
webview.loadURL(web_url,{'Referer':BaseUrl+'://'});
break;
default:
break;
}
09-22
949
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-07
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交