<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<script type="text/javascript" src="./uni.webview.1.5.3.js">
|
|
</script>
|
|
|
|
|
|
<!-- 这是你的代码 -->
|
|
<script type='text/javascript'>
|
|
function handleBeforeCloseWindow() {
|
|
uni.navigateBack(-1)
|
|
}
|
|
|
|
function getQueryVariable(variable)
|
|
{
|
|
var query = window.location.search.substring(1);
|
|
var vars = query.split("&");
|
|
for (var i=0;i<vars.length;i++) {
|
|
var pair = vars[i].split("=");
|
|
if(pair[0] == variable){return pair[1];}
|
|
}
|
|
return(false);
|
|
}
|
|
</script>
|
|
<script type='text/javascript'>
|
|
(function(a, b, c, d, e, j, s) {
|
|
a[d] = a[d] || function() {
|
|
(a[d].a = a[d].a || []).push(arguments)
|
|
};
|
|
j = b.createElement(c),
|
|
s = b.getElementsByTagName(c)[0];
|
|
j.async = true;
|
|
j.charset = 'UTF-8';
|
|
j.src = 'https://static.meiqia.com/widget/loader.js';
|
|
s.parentNode.insertBefore(j, s);
|
|
})(window, document, 'script', '_MEIQIA');
|
|
_MEIQIA('entId', '474768e6253865b24f810f64857bc3f7');
|
|
_MEIQIA('withoutBtn');
|
|
_MEIQIA('beforeCloseWindow', handleBeforeCloseWindow);
|
|
|
|
// _MEIQIA('metadata', {
|
|
// name: '智子', // 美洽默认字段
|
|
// address: '半人马座阿尔法星', // 美洽默认字段
|
|
// aaa: 'bla bla bla', // 自定义字段
|
|
// xyz: 'lalala' // 自定义字段
|
|
// });
|
|
|
|
let loca = getQueryVariable('loca')
|
|
|
|
console.log(loca);
|
|
|
|
_MEIQIA('language', loca)
|
|
|
|
_MEIQIA('allSet', function(){
|
|
_MEIQIA('showPanel');
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|