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
修改传参useid为openid
dev
corala
3 years ago
parent
95f9e19429
commit
372197c31c
4 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
pages/index/index.js
+1
-1
pages/login/index.js
+1
-1
pages/out/index.js
+1
-1
pages/share/index.js
+ 1
- 1
pages/index/index.js
View File
@@ -78,7 +78,7 @@ Page({
openid = this.data.userInfo.openid
}
wx.navigateTo({
url: '/pages/out/index?index=1&
open
id=' + openid+ '&gameid=1&type=1&url='+url
url: '/pages/out/index?index=1&
user
id=' + openid+ '&gameid=1&type=1&url='+url
})
},
saoma() {
+ 1
- 1
pages/login/index.js
View File
@@ -83,7 +83,7 @@ Page({
},
leave(){
wx.navigateTo({
url: '/pages/out/index?index=1&
open
id='+ this.data.userInfo.openid+'&gameid=1'+'&type=2&url=' + getApp().globalData.gameurl,
url: '/pages/out/index?index=1&
user
id='+ this.data.userInfo.openid+'&gameid=1'+'&type=2&url=' + getApp().globalData.gameurl,
})
},
// 绑定用户头像信息
+ 1
- 1
pages/out/index.js
View File
@@ -15,7 +15,7 @@ Page({
userid: options.userid,
gameid: options.gameid,
type: options.type,
allurl: options.url +`?
openid=${options.open
id||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}`
allurl: options.url +`?
userid=${options.user
id||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}`
})
console.log(this.data.web)
console.log(this.data.index)
+ 1
- 1
pages/share/index.js
View File
@@ -16,7 +16,7 @@ Page({
let userInfo = getApp().globalData.userInfo
console.log(userInfo)
wx.navigateTo({
url: `/pages/out/index?index=1&
open
id=${userInfo.openid}&gameid=1&type=2&url=`+ getApp().globalData.gameurl
url: `/pages/out/index?index=1&
user
id=${userInfo.openid}&gameid=1&type=2&url=`+ getApp().globalData.gameurl
})
},
/**
Write
Preview
Loading…
Cancel
Save