@@ -14,10 +14,24 @@
html {
overflow: hidden;
}
+ .img{
+ position: fixed;
+ left: 50%;
+ transform: translateX(-50%);
+ color: #fff;
+ z-index: 999999;
+ color: #010101;
+ bottom: 20px;
+ pointer-events: none;
+ opacity: 0.9;
+ }
</style>
</head>
<body>
+ <div class="img">
+ 按住鼠标轮轴或ctrl+鼠标左键可进行移动文物查看
+ </div>
<div id="ui">
<!-- <div id="introductionWrap" class="animated">
<span id="name"></span>
@@ -8,6 +8,15 @@ Page({
},
onLoad() {
+ onShow(){
+ wx.setKeepScreenOn({
+ keepScreenOn: true,
+ success(){
+ console.log('1111111');
+ },
+ fail(){}
+ })
switchType(e) {
let type = e.target.dataset && e.target.dataset.type || 'map';
this.setData({
@@ -13,10 +13,23 @@
<script>
var getQueryVariable = function(variable){
var query = window.location.search.substring(1);