Bläddra i källkod

游戏页面添加

tags/2.2.4
海洋之声 6 år sedan
förälder
incheckning
4daac63bcb
8 ändrade filer med 26 tillägg och 6 borttagningar
  1. +2
    -1
      app.json
  2. +2
    -2
      config/config.js
  3. +13
    -0
      pages/game/index.js
  4. +6
    -0
      pages/game/index.json
  5. +1
    -0
      pages/game/index.wxml
  6. +0
    -0
      pages/game/index.wxss
  7. +1
    -2
      pages/index/index.js
  8. +1
    -1
      pages/index/index.wxss

+ 2
- 1
app.json Visa fil

@@ -28,7 +28,8 @@
"pages/passCar/choicecoupon/choicecoupon", "pages/passCar/choicecoupon/choicecoupon",
"pages/passCar/couponDetail/couponDetail", "pages/passCar/couponDetail/couponDetail",
"pages/managelicenseplate/managelicenseplate", "pages/managelicenseplate/managelicenseplate",
"pages/payrule/payrule"
"pages/payrule/payrule",
"pages/game/index"
], ],
"tabBar": { "tabBar": {
"color": "#9F9F9F", "color": "#9F9F9F",


+ 2
- 2
config/config.js Visa fil

@@ -1,6 +1,6 @@
var config = { 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", // url: "http://31adc9ce.ngrok.io/C/api",
api: { api: {
/** /**


+ 13
- 0
pages/game/index.js Visa fil

@@ -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
});
}
});

+ 6
- 0
pages/game/index.json Visa fil

@@ -0,0 +1,6 @@
{
"usingComponents": {
},
"navigationBarTitleText": "游戏"
}

+ 1
- 0
pages/game/index.wxml Visa fil

@@ -0,0 +1 @@
<web-view src="{{url}}"></web-view>

+ 0
- 0
pages/game/index.wxss Visa fil


+ 1
- 2
pages/index/index.js Visa fil

@@ -18,7 +18,7 @@ Page({
}, },
gotogame:function(){ gotogame:function(){
wx.navigateTo({ wx.navigateTo({
url: '/pages/game/game',
url: '../game/index',
}) })
}, },


@@ -115,7 +115,6 @@ Page({
data: usrdata data: usrdata
}) })
.then(res => { .then(res => {
console.log("userlogin:app", res);
app.globalData.token = res.data.token; app.globalData.token = res.data.token;
Http.setToken(res.data.token); Http.setToken(res.data.token);
that.checkUserCarStatus(); that.checkUserCarStatus();


+ 1
- 1
pages/index/index.wxss Visa fil

@@ -25,7 +25,7 @@ page {
} }


.game { .game {
display: none;
/* display: none; */
position: relative; position: relative;
width: 750rpx; width: 750rpx;
height: 200rpx; height: 200rpx;


Laddar…
Avbryt
Spara