From 372197c31cf016d9dd5cd0ae1eed1ea467e03161 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Mon, 2 May 2022 09:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=A0=E5=8F=82useid?= =?UTF-8?q?=E4=B8=BAopenid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 2 +- pages/login/index.js | 2 +- pages/out/index.js | 2 +- pages/share/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index c1f3759..51b6bf9 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -78,7 +78,7 @@ Page({ openid = this.data.userInfo.openid } wx.navigateTo({ - url: '/pages/out/index?index=1&openid=' + openid+ '&gameid=1&type=1&url='+url + url: '/pages/out/index?index=1&userid=' + openid+ '&gameid=1&type=1&url='+url }) }, saoma() { diff --git a/pages/login/index.js b/pages/login/index.js index e45c89d..50d9965 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -83,7 +83,7 @@ Page({ }, leave(){ wx.navigateTo({ - url: '/pages/out/index?index=1&openid='+ this.data.userInfo.openid+'&gameid=1'+'&type=2&url=' + getApp().globalData.gameurl, + url: '/pages/out/index?index=1&userid='+ this.data.userInfo.openid+'&gameid=1'+'&type=2&url=' + getApp().globalData.gameurl, }) }, // 绑定用户头像信息 diff --git a/pages/out/index.js b/pages/out/index.js index ca6aa39..4c194e7 100644 --- a/pages/out/index.js +++ b/pages/out/index.js @@ -15,7 +15,7 @@ Page({ userid: options.userid, gameid: options.gameid, type: options.type, - allurl: options.url +`?openid=${options.openid||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}` + allurl: options.url +`?userid=${options.userid||0}&gameid=${options.gameid||0}&type=${options.type==2?2:1}` }) console.log(this.data.web) console.log(this.data.index) diff --git a/pages/share/index.js b/pages/share/index.js index fe72395..8ce2243 100644 --- a/pages/share/index.js +++ b/pages/share/index.js @@ -16,7 +16,7 @@ Page({ let userInfo = getApp().globalData.userInfo console.log(userInfo) wx.navigateTo({ - url: `/pages/out/index?index=1&openid=${userInfo.openid}&gameid=1&type=2&url=`+ getApp().globalData.gameurl + url: `/pages/out/index?index=1&userid=${userInfo.openid}&gameid=1&type=2&url=`+ getApp().globalData.gameurl }) }, /**