Compare commits
2 Commits
727c9fd2f6
...
d60c3c9b70
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d60c3c9b70 | ||
![]() |
93c477323b |
@ -1,8 +1,8 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://www.nuoyunr.com',
|
// baseUrl: 'https://www.nuoyunr.com',
|
||||||
// baseUrl: 'http://192.168.1.4:48080',
|
baseUrl: 'http://192.168.1.4:48080',
|
||||||
baseUrl: "http://localhost:48080",
|
// baseUrl: "http://localhost:48080",
|
||||||
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
|
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
|
||||||
baseImageUrl: 'https://www.nuoyunr.com/minio/',
|
baseImageUrl: 'https://www.nuoyunr.com/minio/',
|
||||||
wsUrl: 'wss://www.nuoyunr.com',
|
wsUrl: 'wss://www.nuoyunr.com',
|
||||||
|
@ -162,6 +162,10 @@ export default {
|
|||||||
data: dataObj
|
data: dataObj
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.getActive()
|
this.getActive()
|
||||||
|
uni.showToast({
|
||||||
|
title: '礼包领取成功!',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
this.canClick = true
|
this.canClick = true
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
import {getUserInfoRequest} from "@/utils/common.js";
|
import {getUserInfoRequest} from "@/utils/common.js";
|
||||||
import {getToken,setUserInfo} from '@/utils/auth.js'
|
import {getToken,setUserInfo} from '@/utils/auth.js'
|
||||||
|
import {getUserInfo} from "../../utils/auth";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
tabBarVue,
|
tabBarVue,
|
||||||
@ -111,8 +112,8 @@
|
|||||||
},
|
},
|
||||||
//获取当前登录用户信息
|
//获取当前登录用户信息
|
||||||
async getServer() {
|
async getServer() {
|
||||||
console.log("获取用户信息")
|
await getUserInfoRequest()
|
||||||
this.customInfo = getUserInfoRequest()
|
this.customInfo = JSON.parse(getUserInfo())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,17 +60,17 @@ export function tansParams(params) {
|
|||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
export async function getUserInfoRequest(){
|
export async function getUserInfoRequest(){
|
||||||
const res = await request({
|
request({
|
||||||
url: "/userClient/customer/getUserCustomer",
|
url: "/userClient/customer/getUserCustomer",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params:{}
|
params:{}
|
||||||
|
}).then(res=>{
|
||||||
|
if(!res.data){
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/my/register'
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
setUserInfo(JSON.stringify(res.data))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(!res.data){
|
|
||||||
uni.reLaunch({
|
|
||||||
url: '/pages/my/register'
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
setUserInfo(JSON.stringify(res.data))
|
|
||||||
return res.data
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user