File tree Expand file tree Collapse file tree 2 files changed +1
-49
lines changed
miniprogram/packageXRFrame/pages/index Expand file tree Collapse file tree 2 files changed +1
-49
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ import '../../xr-custom/assets/effect-last-record-final'
1515
1616import list from './data/index'
1717
18- let lastOpened = false
19- let lastCount = 0
2018let first = true
2119
2220Page ( {
5250 }
5351
5452 if ( path === '/pages/scene-last-record/index' ) {
55- this . handleLastRecord ( )
5653 return
5754 }
5855
@@ -65,50 +62,5 @@ Page({
6562 } ,
6663 } )
6764 }
68- } ,
69- async handleLastRecord ( ) {
70- if ( lastOpened ) {
71- return
72- }
73-
74- lastCount += 1
75- // if (Math.random() >= (0.34 + lastCount * 0.1)) {
76- // return;
77- // }
78-
79- const root = this . data . root
80- lastOpened = true
81-
82- wx . request ( {
83- url : 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/last-gate.txt' ,
84- success ( res ) {
85- wx . showModal ( {
86- title : '一把钥匙' ,
87- content : res . data ,
88- confirmText : '探寻真实' ,
89- cancelText : '放下钥匙' ,
90- success ( res ) {
91- if ( res . cancel ) {
92- wx . onAppShow ( ( result ) => {
93- lastOpened = false
94- } )
95- return
96- }
97-
98- wx . navigateTo ( {
99- url : root + '/pages/scene-last-record/index' ,
100- success : ( ) => {
101- wx . onAppShow ( ( result ) => {
102- lastOpened = false
103- } )
104- }
105- } )
106- }
107- } )
108- } ,
109- fail ( err ) {
110- lastOpened = false
111- }
112- } )
11365 }
11466} )
Original file line number Diff line number Diff line change 11
22<scroll-view class="main" scroll-y="{{true}}">
3- <view class="slogen-wrap" bind:tap="handleLastRecord" >
3+ <view class="slogen-wrap">
44 <view class="slogen">XR<view class="special">Frame</view></view>
55 <view class="intro">
66 小程序低成本高性能XR解决方案
You can’t perform that action at this time.
0 commit comments