浏览代码

调试

dev
corala 3 年前
父节点
当前提交
3559bc47ce
共有 5 个文件被更改,包括 14 次插入7 次删除
  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 查看文件

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


+ 1
- 1
pages/AR/index.js 查看文件

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


+ 1
- 1
pages/login/index.js 查看文件

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


+ 9
- 1
pages/out/index.js 查看文件

@@ -7,6 +7,10 @@ Page({
data: {
web:null,
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);
this.setData({
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 查看文件

@@ -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>

正在加载...
取消
保存