Browse Source

调试

dev
corala 3 years ago
parent
commit
3559bc47ce
5 changed files with 14 additions and 7 deletions
  1. +1
    -1
      app.json
  2. +1
    -1
      pages/AR/index.js
  3. +1
    -1
      pages/login/index.js
  4. +9
    -1
      pages/out/index.js
  5. +2
    -3
      pages/out/index.wxml

+ 1
- 1
app.json View File

@@ -1,7 +1,7 @@
{ {
"pages": [ "pages": [
"pages/index/index",
"pages/login/index", "pages/login/index",
"pages/index/index",
"pages/out/index", "pages/out/index",
"pages/middle/index", "pages/middle/index",
"pages/rank/index", "pages/rank/index",


+ 1
- 1
pages/AR/index.js View File

@@ -24,7 +24,7 @@ Page({
token: '', token: '',
clientHost: 'https://bd9b3490fe845642e600cf53f0cd64b8.cn1.crs.easyar.com:8443', //服务器一般不变 clientHost: 'https://bd9b3490fe845642e600cf53f0cd64b8.cn1.crs.easyar.com:8443', //服务器一般不变
jpegQuality: 0.7, //JPEG压缩质量,建议不低于70% jpegQuality: 0.7, //JPEG压缩质量,建议不低于70%
minInterval: 1000, //最短的两次CRS请求间隔
minInterval: 2000, //最短的两次CRS请求间隔
}, },
//识别到这个数组中的ID就触发内容 //识别到这个数组中的ID就触发内容
targetIds: [ targetIds: [


+ 1
- 1
pages/login/index.js View File

@@ -54,7 +54,7 @@ Page({
}, },
leave(){ leave(){
wx.navigateTo({ wx.navigateTo({
url: '../out/index?index=1',
url: '../out/index?index=1&userid='+ this.data.userid+'&gameid=1'+'&type=2',
}) })
}, },
//登录-获取token //登录-获取token


+ 9
- 1
pages/out/index.js View File

@@ -7,6 +7,10 @@ Page({
data: { data: {
web:null, web:null,
index:0, index:0,
userid: 0,// 用户ID
gameid: 0,// 游戏ID
type: 1,
allurl: 'https://cloudcreategameoss.sxycy.games/pro/games/test/3d_dance'
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
@@ -15,7 +19,11 @@ Page({
console.log(options); console.log(options);
this.setData({ this.setData({
web:options.web, web:options.web,
index:options.index
index:options.index,
userid: options.userid,
gameid: options.gameid,
type: options.type,
allurl: this.data.allurl +`?userid=${options.userid||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}`
}) })
}, },




+ 2
- 3
pages/out/index.wxml View File

@@ -1,3 +1,2 @@
<web-view wx:if="{{index==1}}" src="https://cloudcreategameoss.sxycy.games/pro/games/test/3d_dance/"></web-view>
<web-view wx:if="{{index==2}}" src="{{web}}"></web-view>

<web-view wx:if="{{index==1}}" src="{{allurl}}"></web-view>
<web-view wx:if="{{index==2}}" src="{{web}}"></web-view>

Loading…
Cancel
Save