File tree 2 files changed +1
-49
lines changed
miniprogram/packageXRFrame/pages/index
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'
15
15
16
16
import list from './data/index'
17
17
18
- let lastOpened = false
19
- let lastCount = 0
20
18
let first = true
21
19
22
20
Page ( {
52
50
}
53
51
54
52
if ( path === '/pages/scene-last-record/index' ) {
55
- this . handleLastRecord ( )
56
53
return
57
54
}
58
55
@@ -65,50 +62,5 @@ Page({
65
62
} ,
66
63
} )
67
64
}
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
- } )
113
65
}
114
66
} )
Original file line number Diff line number Diff line change 1
1
2
2
<scroll-view class="main" scroll-y="{{true}}">
3
- <view class="slogen-wrap" bind:tap="handleLastRecord" >
3
+ <view class="slogen-wrap">
4
4
<view class="slogen">XR<view class="special">Frame</view></view>
5
5
<view class="intro">
6
6
小程序低成本高性能XR解决方案
You can’t perform that action at this time.
0 commit comments