|
@@ -25,10 +25,10 @@
|
|
|
if (wx.getUserProfile) {
|
|
|
this.canIUseGetUserProfile = true;
|
|
|
}
|
|
|
- uni.setStorageSync('dinnerId', '1806258588536201217')
|
|
|
- if(e.id){
|
|
|
- uni.setStorageSync('dinnerId', e.id)
|
|
|
- }
|
|
|
+ // uni.setStorageSync('dinnerId', '1806258588536201217')
|
|
|
+ // if(e.id){
|
|
|
+ // uni.setStorageSync('dinnerId', e.id)
|
|
|
+ // }
|
|
|
|
|
|
let infoData = uni.getStorageSync('infoData');
|
|
|
if(infoData){
|
|
@@ -63,10 +63,7 @@
|
|
|
success: async (loginRes) => {
|
|
|
console.log('数据:', loginRes)
|
|
|
// 发送code到开发者服务器换取用户信息
|
|
|
- const result = await this.$request('post', '/auth/miniLogin', {
|
|
|
- tenantId: '000000',
|
|
|
- code: loginRes.code
|
|
|
- })
|
|
|
+ const result = await this.$request('post', '/system/appUser/miniLogin?tenantId=000000&code='+loginRes.code)
|
|
|
console.log('登录成功:', result);
|
|
|
if (result && result.data !== false) {
|
|
|
// 保存token
|
|
@@ -88,7 +85,7 @@
|
|
|
}
|
|
|
// 更新用户信息
|
|
|
const id = uni.getStorageSync('appUserId');
|
|
|
- console.log('id', id)
|
|
|
+ // console.log('id', id)
|
|
|
uni.setStorageSync("userName", res.userInfo.nickName);
|
|
|
const userInfo = {
|
|
|
"userId": id,
|