Browse Source

bgm 关闭 录屏截屏 白边

DGJ 1 year ago
parent
commit
85ad0a0401

+ 3 - 3
miniprogram/components/xr-classic-show/index.wxml

@@ -6,8 +6,8 @@
     <xr-asset-load type="gltf" asset-id="gltf-Jiaolong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/JiaoLong.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-YinLong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/YingLong_0128.glb" />
 
-    <xr-asset-load type="gltf" asset-id="gltf-luanniao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/fenghuang_0128.glb" />
-    <xr-asset-load type="gltf" asset-id="gltf-fuzhu" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shenlu_0128.glb" />
+    <xr-asset-load type="gltf" asset-id="gltf-luanniao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/fenghuang_0129.glb" />
+    <xr-asset-load type="gltf" asset-id="gltf-fuzhu" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shenlu_anim_0129.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-qiling" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shizi_0128.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-denglong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/DengLong3.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-paopao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/PaoPao1.glb" />
@@ -82,7 +82,7 @@
       </xr-node>
     </xr-node>
     
-    <xr-node position="-40 2 0" anim-keyframe="anim_lu" anim-autoplay="clip:parent">
+    <xr-node position="-40 2 0" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent4">
       <xr-node position="0 0 -10" rotation="0 0 0">
         <xr-gltf 
     wx:if="false"

+ 5 - 4
miniprogram/components/xr-classic-showsix/index.wxml

@@ -1,14 +1,14 @@
 <xr-scene ar-system="modes:Plane ; planeMode: 1;" bind:ready="handleReady" bind:ar-ready="handleARReady">
 
-
+ 
   <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
     <xr-asset-load type="gltf" asset-id="gltf-kun" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/kun_0128.glb" />
 
     <xr-asset-load type="gltf" asset-id="gltf-Jiaolong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/JiaoLong.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-YinLong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/YingLong_0128.glb" />
 
-    <xr-asset-load type="gltf" asset-id="gltf-luanniao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/fenghuang_0128.glb" />
-    <xr-asset-load type="gltf" asset-id="gltf-fuzhu" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shenlu_0128.glb" />
+    <xr-asset-load type="gltf" asset-id="gltf-luanniao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/fenghuang_0129.glb" />
+    <xr-asset-load type="gltf" asset-id="gltf-fuzhu" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shenlu_anim_0129.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-qiling" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/shizi_0128.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-denglong" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/DengLong3.glb" />
     <xr-asset-load type="gltf" asset-id="gltf-paopao" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXModel/PaoPao1.glb" />
@@ -83,7 +83,7 @@
       </xr-node>
     </xr-node>
     
-    <xr-node position="-40 2 0" anim-keyframe="anim_lu" anim-autoplay="clip:parent">
+    <xr-node position="-40 2 0" anim-keyframe="anim_kun_long_ni" anim-autoplay="clip:parent4">
       <xr-node position="0 0 -10" rotation="0 0 0">
         <xr-gltf 
     wx:if="false"
@@ -194,6 +194,7 @@
     <xr-light type="directional" rotation="40 170 0" color="1 1 1" intensity="5" />
   </xr-node>
 
+
 </xr-scene>
 
 

+ 0 - 47
miniprogram/components/xr-demo-viewer/index.wxml

@@ -3,52 +3,5 @@
     <block bind:sceneReady="handleSceneReady">
       <slot></slot>
     </block>
-    <view class="intro">
-      <view class="intro-detail">
-        <view class="intro-title" ><text>{{title}}</text> <button class="share" open-type="share">分享给好友</button></view>
-        <view class="description">{{intro}}</view>
-        <slot name="intro"></slot>
-      </view>
-    </view>
-    <view wx:if="{{hint.length > 0}}">
-      <view class="hint-wrap">
-        <text class="hint-words" >{{hint}}</text>
-      </view>
-    </view>
-    <view wx:if="{{code.length > 0}}">
-      <view class="intro">
-        <view class="intro-detail">
-          <view class="title">代码演示</view>
-          <view class="code-inner">
-            <rich-text nodes="{{code}}"></rich-text>
-          </view>
-        </view>
-      </view>
-    </view>
-    <view wx:if="{{js.length > 0}}">
-      <view class="intro">
-        <view class="intro-detail">
-          <view class="title">脚本演示</view>
-          <view class="code-inner">
-            <rich-text nodes="{{js}}"></rich-text>
-          </view>
-        </view>
-      </view>
-    </view>
-    <view wx:if="{{json.length > 0}}">
-      <view class="intro">
-        <view class="intro-detail">
-          <view class="title">动画数据结构</view>
-          <view class="code-inner">
-            <rich-text nodes="{{json}}"></rich-text>
-          </view>
-        </view>
-      </view>
-    </view>
-    <view class="holder"></view>
   </scroll-view>
-  <view class="back-btn-wrap" wx:if="{{showBackBtn}}" bind:tap="onClickBack">
-    <view class="back-line-t"></view>
-    <view class="back-line-b"></view>
-  </view>
 </view>

+ 66 - 0
miniprogram/pages/ar-classic/circle-progress/index.ts

@@ -0,0 +1,66 @@
+// pages/ar-classic/circle-progress/index.ts
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 8 - 4
miniprogram/pages/ar-classic/scene-classic-show/index.js

@@ -56,10 +56,11 @@ Page({
     wx.setInnerAudioOption({
       obeyMuteSwitch:false
      })
-    this.bgm = wx.createInnerAudioContext({});
-    this.bgm.src = 'https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXBGM.MP3';
-    this.bgm.play();
-    this.bgm.loop=true;
+     this.bgm = wx.createInnerAudioContext({});
+     this.bgm.src = 'https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXBGM.MP3';
+     this.bgm.play();
+     this.bgm.loop=true;
+      
   },
   onShow(){
     this.setData({log:'OnShow'});
@@ -117,6 +118,9 @@ Page({
 
    
   },
+  onUnload(){ 
+    this.bgm.stop(); 
+  },
 
   handleReady: function({detail}) {
     this.setData({

+ 2 - 2
miniprogram/pages/ar-classic/scene-classic-show/index.wxml

@@ -1,11 +1,11 @@
 <xr-demo-viewer
- style="width: 701rpx; height: 844rpx; display: inline; box-sizing: content-box">
+ style="width: 701rpx; height: 844rpx; display: inline;">
      <xr-classic-video
         disable-scroll
         id="main-frame"
         width="{{renderWidth}}"
         height="{{renderHeight}}"
-        style="width:150%;height:100%;display:block;"
+        style="width:{{renderWidth}}rpx;height:{{renderHeight}}rpx;display:block;"
         markerImg="{{markerImg}}"
         bind:arTrackerState="handleARTrackerState"
         bind:assetsProgress="handleProgress"

+ 7 - 4
miniprogram/pages/ar-classic/scene-classic-showsix/index.js

@@ -56,10 +56,10 @@ Page({
     wx.setInnerAudioOption({
       obeyMuteSwitch:false
      })
-    this.bgm = wx.createInnerAudioContext({});
-    this.bgm.src = 'https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXBGM.MP3';
-    this.bgm.play();
-    this.bgm.loop=true;
+     this.bgm = wx.createInnerAudioContext({});
+     this.bgm.src = 'https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXBGM.MP3';
+     this.bgm.play();
+     this.bgm.loop=true;
   },
   onShow(){
     this.setData({log:'OnShow'});
@@ -117,6 +117,9 @@ Page({
 
    
   },
+  onUnload(){ 
+    this.bgm.stop(); 
+  },
 
   handleReady: function({detail}) {
     this.setData({

+ 2 - 2
miniprogram/pages/ar-classic/scene-classic-showsix/index.wxml

@@ -1,11 +1,11 @@
 <xr-demo-viewer
- style="width: 701rpx; height: 844rpx; display: inline; box-sizing: content-box">
+ style="width: 701rpx; height: 844rpx; display: inline;">
      <xr-classic-video
         disable-scroll
         id="main-frame"
         width="{{renderWidth}}"
         height="{{renderHeight}}"
-        style="width:150%;height:100%;display:block;"
+        style="width:{{renderWidth}}rpx;height:{{renderHeight}}rpx;display:block;"
         markerImg="{{markerImg}}"
         bind:arTrackerState="handleARTrackerState"
         bind:assetsProgress="handleProgress"