From 4daac63bcbc1549b955ea94a9e3bb054de112683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E6=B4=8B=E4=B9=8B=E5=A3=B0?= Date: Wed, 10 Oct 2018 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 3 ++- config/config.js | 4 ++-- pages/game/index.js | 13 +++++++++++++ pages/game/index.json | 6 ++++++ pages/game/index.wxml | 1 + pages/game/index.wxss | 0 pages/index/index.js | 3 +-- pages/index/index.wxss | 2 +- 8 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 pages/game/index.js create mode 100644 pages/game/index.json create mode 100644 pages/game/index.wxml create mode 100644 pages/game/index.wxss diff --git a/app.json b/app.json index c904db5..ac57f7a 100644 --- a/app.json +++ b/app.json @@ -28,7 +28,8 @@ "pages/passCar/choicecoupon/choicecoupon", "pages/passCar/couponDetail/couponDetail", "pages/managelicenseplate/managelicenseplate", - "pages/payrule/payrule" + "pages/payrule/payrule", + "pages/game/index" ], "tabBar": { "color": "#9F9F9F", diff --git a/config/config.js b/config/config.js index 4bf7899..0e92883 100755 --- a/config/config.js +++ b/config/config.js @@ -1,6 +1,6 @@ var config = { - // url: "https://ciformall.youlane.cn/C/api", - url:"https://c.malls.iformall.com/C/api", + url: "https://ciformall.youlane.cn/C/api", + // url:"https://c.malls.iformall.com/C/api", // url: "http://31adc9ce.ngrok.io/C/api", api: { /** diff --git a/pages/game/index.js b/pages/game/index.js new file mode 100644 index 0000000..7998e45 --- /dev/null +++ b/pages/game/index.js @@ -0,0 +1,13 @@ +let app = getApp(); +Page({ + data: { + token:'', + url:'https://mp.weixin.qq.com/' + }, + onLoad() { + console.log("https://mp.weixin.qq.com/?token="+app.globalData.token,222) + this.setData({ + url:"https://mp.weixin.qq.com/"+app.globalData.token + }); + } +}); \ No newline at end of file diff --git a/pages/game/index.json b/pages/game/index.json new file mode 100644 index 0000000..7efcfed --- /dev/null +++ b/pages/game/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + + }, + "navigationBarTitleText": "游戏" +} \ No newline at end of file diff --git a/pages/game/index.wxml b/pages/game/index.wxml new file mode 100644 index 0000000..77a6354 --- /dev/null +++ b/pages/game/index.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pages/game/index.wxss b/pages/game/index.wxss new file mode 100644 index 0000000..e69de29 diff --git a/pages/index/index.js b/pages/index/index.js index ce82542..b307b53 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -18,7 +18,7 @@ Page({ }, gotogame:function(){ wx.navigateTo({ - url: '/pages/game/game', + url: '../game/index', }) }, @@ -115,7 +115,6 @@ Page({ data: usrdata }) .then(res => { - console.log("userlogin:app", res); app.globalData.token = res.data.token; Http.setToken(res.data.token); that.checkUserCarStatus(); diff --git a/pages/index/index.wxss b/pages/index/index.wxss index f6b3a0e..9f64224 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -25,7 +25,7 @@ page { } .game { - display: none; + /* display: none; */ position: relative; width: 750rpx; height: 200rpx;