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;