Commit a600a3ba by shuaizhihui

切换版本

parent 84971f80
...@@ -36,7 +36,7 @@ App({ ...@@ -36,7 +36,7 @@ App({
console.log(err); console.log(err);
} }
}) })
wx.setStorageSync('appId', 'wx7d7fbc0e6746baf5'); wx.setStorageSync('appId', 'wx788dccacb6777ca3');
wx.setKeepScreenOn({ wx.setKeepScreenOn({
keepScreenOn: true keepScreenOn: true
}); });
......
...@@ -111,7 +111,7 @@ Component({ ...@@ -111,7 +111,7 @@ Component({
wxGetUserInfo(){ wxGetUserInfo(){
wx.login({ wx.login({
success: res => { success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', { API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code code: res.code
}, function(res) { }, function(res) {
if(res.code == 200){ if(res.code == 200){
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.17.0", "libVersion": "2.17.0",
"appid": "wx7d7fbc0e6746baf5", "appid": "wx788dccacb6777ca3",
"projectname": "小奔体育", "projectname": "小奔体育",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
......
...@@ -225,7 +225,7 @@ Page({ ...@@ -225,7 +225,7 @@ Page({
} }
wx.login({ wx.login({
success: res => { success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', { API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code code: res.code
}, function(res) { }, function(res) {
API.getData('/px/user/getUserInfo', { }, function (ress) { API.getData('/px/user/getUserInfo', { }, function (ress) {
......
...@@ -31,7 +31,7 @@ Page({ ...@@ -31,7 +31,7 @@ Page({
}) })
wx.login({ wx.login({
success: res => { success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/auth', { API.getData('/wx/user/wx788dccacb6777ca3/auth', {
code: res.code code: res.code
}, function(res) { }, function(res) {
wx.hideLoading(); wx.hideLoading();
...@@ -94,7 +94,7 @@ Page({ ...@@ -94,7 +94,7 @@ Page({
wx.showLoading({title: '登录中',}) wx.showLoading({title: '登录中',})
postData.encryptedData = e.detail.encryptedData; postData.encryptedData = e.detail.encryptedData;
postData.iv = e.detail.iv; postData.iv = e.detail.iv;
postData.appId = 'wx7d7fbc0e6746baf5'; postData.appId = 'wx788dccacb6777ca3';
var _this = this; var _this = this;
if (e.detail.errMsg == 'getPhoneNumber:ok'){ if (e.detail.errMsg == 'getPhoneNumber:ok'){
...@@ -108,7 +108,7 @@ Page({ ...@@ -108,7 +108,7 @@ Page({
wxLogin(){ wxLogin(){
wx.login({ wx.login({
success: res => { success: res => {
API.getData('/wx/user/wx7d7fbc0e6746baf5/getOpenId', { code: res.code }, function (res) { API.getData('/wx/user/wx788dccacb6777ca3/getOpenId', { code: res.code }, function (res) {
postData.sessionKey = res.data.sessionKey; postData.sessionKey = res.data.sessionKey;
postData.openId = res.data.openId; postData.openId = res.data.openId;
}, function () { }, function () {
......
...@@ -56,7 +56,7 @@ Page({ ...@@ -56,7 +56,7 @@ Page({
wx.login({ wx.login({
success: res => { success: res => {
console.log('1'); console.log('1');
API.getData('/wx/user/wx7d7fbc0e6746baf5/getOpenId', { API.getData('/wx/user/wx788dccacb6777ca3/getOpenId', {
code: res.code code: res.code
}, function (res) { }, function (res) {
console.log('登录',res) console.log('登录',res)
...@@ -102,7 +102,7 @@ Page({ ...@@ -102,7 +102,7 @@ Page({
phone: _this.data.phoneNum, phone: _this.data.phoneNum,
smsCode: _this.data.smsCode, smsCode: _this.data.smsCode,
openId: openId, openId: openId,
appId: 'wx7d7fbc0e6746baf5', appId: 'wx788dccacb6777ca3',
}, },
function(res) { function(res) {
console.log(res); console.log(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment