소스 검색

游戏页面添加

tags/2.2.4
海洋之声 6 년 전
부모
커밋
4daac63bcb
8개의 변경된 파일26개의 추가작업 그리고 6개의 파일을 삭제
  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 파일 보기

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


+ 2
- 2
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: {
/**


+ 13
- 0
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
});
}
});

+ 6
- 0
pages/game/index.json 파일 보기

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

+ 1
- 0
pages/game/index.wxml 파일 보기

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

+ 0
- 0
pages/game/index.wxss 파일 보기


+ 1
- 2
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();


+ 1
- 1
pages/index/index.wxss 파일 보기

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

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


불러오는 중...
취소
저장