Browse Source

修改bug

dev
corala 3 years ago
parent
commit
a1b5eb669f
4 changed files with 6 additions and 3 deletions
  1. +2
    -1
      app.js
  2. +2
    -0
      pages/index/index.js
  3. +1
    -1
      pages/login/index.js
  4. +1
    -1
      pages/share/index.js

+ 2
- 1
app.js View File

@@ -21,7 +21,8 @@ App({
},
globalData: {
userInfo: null,
token: ''
token: '',
gameurl: ''// 游戏链接
},
//登录-获取token
loginGettoken(){


+ 2
- 0
pages/index/index.js View File

@@ -29,6 +29,8 @@ Page({
if (res.data.code == 0) {
let data = res.data.data
if(data.miniType==0){
getApp().globalData.gameurl=data.linkUrl
console.log(getApp().globalData.gameurl)
that.tabindex(data.linkUrl)
}else{
wx.navigateTo({


+ 1
- 1
pages/login/index.js View File

@@ -83,7 +83,7 @@ Page({
},
leave(){
wx.navigateTo({
url: '/pages/out/index?index=1&userid='+ this.data.userid+'&gameid=1'+'&type=2',
url: '/pages/out/index?index=1&userid='+ this.data.userid+'&gameid=1'+'&type=2&url=' + getApp().globalData.gameurl,
})
},
// 绑定用户头像信息


+ 1
- 1
pages/share/index.js View File

@@ -18,7 +18,7 @@ Page({
let userInfo = getApp().globalData.userInfo
console.log(userInfo)
wx.navigateTo({
url: `/pages/out/index?index=1&userid=${userInfo.id}&gameid=1&type=2`,
url: `/pages/out/index?index=1&userid=${userInfo.id}&gameid=1&type=2&url=`+ getApp().globalData.gameurl
})
},
/**


Loading…
Cancel
Save