This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
corala
/
biguiyuan
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
修改bug
dev
corala
3 years ago
parent
8735d25f0b
commit
a1b5eb669f
4 changed files
with
6 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
app.js
+2
-0
pages/index/index.js
+1
-1
pages/login/index.js
+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
})
},
/**
Write
Preview
Loading…
Cancel
Save