File tree Expand file tree Collapse file tree 1 file changed +39
-39
lines changed
miniprogram/packageXRFrame/pages/index Expand file tree Collapse file tree 1 file changed +39
-39
lines changed Original file line number Diff line number Diff line change @@ -67,48 +67,48 @@ Page({
6767 }
6868 } ,
6969 async handleLastRecord ( ) {
70- if ( lastOpened ) {
71- return
72- }
73-
74- lastCount += 1
75- // if (Math.random() >= (0.34 + lastCount * 0.1)) {
76- // return;
70+ // if (lastOpened) {
71+ // return
7772 // }
7873
79- const root = this . data . root
80- lastOpened = true
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
8181
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- }
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+ // }
9797
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- } )
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+ // })
113113 }
114114} )
You can’t perform that action at this time.
0 commit comments