Commit 8f391b6f by junxiang wang

日常备份

parent 6d0da0d1
<!DOCTYPE html>
<html>
<head>
<title>度假到丹寨</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<script src="/libs/rem.js"></script>
<style>
*{
margin: 0;
padding: 0;
border:none;
}
.page-wrap{
position: absolute;
width: 100%;
height: 100%;
background-image: url("/images/feature/feature-bg.png");
background-size: cover;
background-repeat: no-repeat;
background-position: bottom center;
}
.logo{
margin:30px 0 0 20px;
height: 14px;
display: block;
}
.title{
position: absolute;
width: 235px;
bottom: 207px;
left: 50%;
transform: translateX(-50%);
}
.mtitle{
position: absolute;
height: 15px;
bottom: 162px;
left: 50%;
transform: translateX(-50%);
}
.go{
position: absolute;
height: 63px;
bottom: 18px;
left: 50%;
transform: translateX(-50%);
}
</style>
<!-- <script src="/libs/vue/vue.js"></script>-->
</head>
<body id="app">
<div class="page-wrap">
<img class="logo" src="/images/load/logo.png" />
<img class="title" src="/images/load/title.png" />
<img class="mtitle" src="/images/load/mtitle.png" />
<img onclick="toPano()" class="go" src="/images/load/go.png" />
</div>
<script>
function toPano() {
location.href = '/vr.html'
}
</script>
</body>
</html>
......@@ -12,6 +12,10 @@
margin: 0;
padding: 0;
border: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.page-wrap {
......@@ -20,58 +24,83 @@
bottom: 0;
left: 0;
right: 0;
background-image: url("/images/load/hello.png");
background-image: url("./images/load/hello.png");
background-size: cover;
background-repeat: no-repeat;
background-position: bottom center;
}
.logo {
margin: 30px 0 0 20px;
height: 14px;
margin: 0.46rem 0 0 0.35rem;
height: 0.43rem;
display: block;
}
.title {
position: absolute;
width: 235px;
bottom: 207px;
width: 4.24rem;
top: 1.88rem;
left: 50%;
transform: translateX(-50%);
}
.mtitle {
position: absolute;
height: 15px;
bottom: 162px;
width: 5.84rem;
top:9.04rem;
left: 50%;
transform: translateX(-50%);
}
.go {
position: absolute;
height: 63px;
bottom: 18px;
width: 2.49rem;
bottom: 0.31rem;
left: 50%;
transform: translateX(-50%);
}
</style>
<!-- <script src="/libs/vue/vue.js"></script>-->
<script src="/libs/axios.min.js"></script>
<script src="./libs/jweixin-1.6.0.js"></script>
<script src="./libs/rem.js"></script>
<!-- <script src="./libs/vue/vue.js"></script>-->
<script src="./libs/axios.min.js"></script>
</head>
<body id="app">
<div class="page-wrap">
<img class="logo" src="/images/load/logo.png"/>
<img class="title" src="/images/load/title.png"/>
<img class="mtitle" src="/images/load/mtitle.png"/>
<img onclick="toPano()" class="go" src="/images/load/go.png"/>
<img class="logo" src="./images/logo.png"/>
<img class="title" src="./images/load/title.png"/>
<img class="mtitle" src="./images/load/mtitle.png"/>
<img onclick="toPano()" class="go" src="./images/load/go.png"/>
</div>
<script src="/libs/helper.js"></script>
<script src="./libs/helper.js"></script>
<script>
function _init_wx_jssdk(){
if(wx){
wx.updateAppMessageShareData({
title: FRONT_TITLE, // 分享标题
desc: FRONT_DESC, // 分享描述
link: FRONT_URL, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
// imgUrl: currentInfo.small_image, // 分享图标
success: function () {
// 设置成功
}
})
wx.updateTimelineShareData({
title: FRONT_TITLE, // 分享标题
link: FRONT_URL, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
// imgUrl: currentInfo.small_image, // 分享图标
success: function () {
// 设置成功
}
})
}
}
async function init_applcation() {
if(!checkIsLogin()){
var code = getQueryByString(location.href,'code')
//没有登录情况下
if(code){
......@@ -83,15 +112,35 @@ async function init_applcation() {
location.href = url
return;
}
}else{
await WX_JSSDK_INIT(this).then(wxEnv=>{
console.log(wxEnv)
_init_wx_jssdk()
}).catch(err=>{
console.log(err)
})
}
}
init_applcation()
function toPano() {
location.href = '/tour.html'
location.href = './tour.html'
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?568952c801c9a9a5e4c9d1755db5f9b2";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
const apiBaseUrl = 'https://wanda-holiday-tapi.bdideal.com'
//const frontUrl = 'https://wanda-holiday-tapi.bdideal.com'
const FRONT_URL = 'https://wanda-h5.bdideal.com/danzhai-holiday-test/index.html' //用于分享出去的链接
const FRONT_TITLE = '度假到丹寨' //默认分享标题
const FRONT_DESC = '旅游小镇步行街全长 1.5 公里,拥有三个主题街区、三座非遗小院、三大斗艺场,以及四大广场,集苗侗非遗体验、演出、文创、美食于一体。这里文化氛围浓厚,月月有主题,周周有活动,定期举行长桌宴、祭尤节、苗族盛装巡游、翻鼓节等盛大活动。' //默认分享概述
/**
* 检测是否登录
......@@ -133,15 +137,17 @@ const WX_JSSDK_INIT = (vm, jsApiListList) => new Promise((resolve, reject) => {
// let {origin,pathname} = location
// `${origin}${pathname}`,//
$get('/wechat/info?url='+encodeURI(location.href.split('#')[0])).then((res) => {
var path = location.href.split('#')[0]
$get('/wechat/info?url='+path).then((res) => {
const config = res.data
console.log(res)
// 线上环境,听服务器的,本地的一律调试
const debug = !!res.data.debug// process.env.NODE_ENV === 'production'?config.debug?true:false:true
const jsApiList = jsApiListList || ['onMenuShareAppMessage', 'onMenuShareTimeline', 'openLocation', 'getLocation', 'scanQRCode', 'chooseImage', 'previewImage', 'uploadImage']
// const jsApiList = jsApiListList || ['onMenuShareAppMessage', 'onMenuShareTimeline', 'openLocation', 'getLocation', 'scanQRCode', 'chooseImage', 'previewImage', 'uploadImage']
// ['chooseImage', 'previewImage', 'uploadImage', 'openLocation','getLocation', 'chooseWXPay', 'getSystemInfo', 'onMenuShareAppMessage','onMenuShareTimeline','scanQRCode'];
const { noncestr, timestamp, appId, signature } = config
const { nonceStr, timestamp, appId, signature,jsApiList } = config
setWxConfig({ debug, appId, timestamp,nonceStr, signature, jsApiList })
......
......@@ -22,6 +22,9 @@ class Swiper {
isAddDot = false,
startP, disX, disY, index;
var VUEInstance = config.vm
if (lis.length < 3) {
throw ("image number need 3+");
}
......@@ -121,6 +124,7 @@ class Swiper {
}
dots[index].className = 'active';
}
VUEInstance.swiperActive = index
}
function setTimer() {
if (autoPlay) {
......
<!DOCTYPE html>
<html>
<head>
<title>度假到丹寨</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<script src="/libs/rem.js"></script>
<style>
*{
margin: 0;
padding: 0;
border:none;
}
.full-img{
width: 100%;
vertical-align: top;
}
</style>
<!-- <script src="/libs/vue/vue.js"></script>-->
</head>
<body id="app">
<img class="full-img" src="/images/route.png" />
<script>
</script>
</body>
</html>
......@@ -550,6 +550,7 @@
3.0, easeOutQuad,
set(control.usercontrol, all);
tween(view.fovmax, get(lp_fovmax));
jscall(littleplanetintro_onready_callback());
);
);
);
......
<!DOCTYPE html>
<html>
<head>
<title>度假到丹寨</title>
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<style>
@-ms-viewport { width: device-width; }
@media only screen and (min-device-width: 800px) { html { overflow:hidden; } }
html { height:100%; }
body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
a{ color:#AAAAAA; text-decoration:underline; }
a:hover{ color:#FFFFFF; text-decoration:underline; }
</style>
</head>
<body>
<script src="tour.js"></script>
<div id="title" style="width:100%; height:20px; padding:5px; font-size:16px;"><b>krpano - MAKE VTOUR - Virtual Tour Editor</b> <span style="font-size:10px; font-style:italic; color:#777777;">// 1. set the startup views / 2. add hotspots / 3. edit the titles / 4. save and overwrite the original tour.xml</span></div>
<div id="pano" style="width:100%; height:95%;">
<noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
<script>
var vars = {};
vars["plugin[vtoureditor].url"] = "plugins/vtoureditor.swf";
vars["plugin[vtoureditor].keep"] = true;
embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", flash:"only", passQueryParameters:false, vars:vars});
function resize()
{
var th = document.getElementById("title").clientHeight;
var ph = (typeof(window.innerHeight) == 'number') ? window.innerHeight : ((document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : ((document.body && document.body.clientHeight) ? document.body.clientHeight : 500));
document.getElementById("pano").style.height = (ph-th)+"px"
}
window.onresize = resize;
resize();
</script>
</div>
</body>
</html>
......@@ -9,12 +9,12 @@
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
</head>
<body id="app">
<script src="/libs/helper.js"></script>
<script src="../../libs/helper.js"></script>
<script>
async function init_applcation() {
var code = getQueryByString(location.href,'code')
if(code){
location.href = `/index.html?code=${code}`
location.href = `../../index.html?code=${code}`
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment