Bläddra i källkod

Merge branch 'master' of http://192.168.0.115:3000/chenzhiguang/macao_army

xzw 3 år sedan
förälder
incheckning
221b3b938d
3 ändrade filer med 36 tillägg och 0 borttagningar
  1. 14 0
      ZAJSG/Model.html
  2. 9 0
      macaoApplets/pages/index/index.js
  3. 13 0
      model-page/Model.html

+ 14 - 0
ZAJSG/Model.html

@@ -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>

+ 9 - 0
macaoApplets/pages/index/index.js

@@ -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 - 0
model-page/Model.html

@@ -13,10 +13,23 @@
         html {
             overflow: hidden;
         }
+        .img{
+            position: fixed;
+            left: 50%;
+            transform: translateX(-50%);
+            color: #010101;
+            z-index: 999999;
+            bottom: 20px;
+            pointer-events: none;
+            opacity: 0.9;
+        }
     </style>
 </head>
 
 <body>
+    <div class="img">
+        按住鼠标轮轴或ctrl+鼠标左键可进行移动文物查看
+    </div>
     <script>
         var getQueryVariable = function(variable){
             var query = window.location.search.substring(1);