2023-3-8
完善功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import store from '../store/index';
|
||||
export default {
|
||||
// qq 237524947 wx15d4269d3210863d
|
||||
// BASEURI: 'http://5rygzr.natappfree.cc/api/',
|
||||
// BASEURI: 'http://br68s5.natappfree.cc/api/',
|
||||
BASEURI: 'http://mall.yyundong.com/portalapi/api/',
|
||||
// BASEURI: 'http://192.168.31.52:8083/api/',
|
||||
ADMINURI: 'http://mall.yyundong.com/adminapi/',
|
||||
@@ -78,8 +78,8 @@ export default {
|
||||
memberTagList: 'single/user/memberTag/list', // 商户列表
|
||||
addStoreComment: 'single/store/addStoreComment', // 商户addStoreComment
|
||||
memberBlanceLogList: 'single/user/memberBlanceLog/list',
|
||||
mesList: 'sys/message/list',// GET 参数为空,获取用户消息通知列表,(需要先判断用户是已经登录状态)
|
||||
mesInfo: 'sys/message/info',// GET 参数为 id:消息ID,获取消息详情
|
||||
mesList: 'sys/message/list', // GET 参数为空,获取用户消息通知列表,(需要先判断用户是已经登录状态)
|
||||
mesInfo: 'sys/message/info', // GET 参数为 id:消息ID,获取消息详情
|
||||
},
|
||||
build: {
|
||||
getBuildNoticeByPage: 'single/build/getBuildNoticeByPage', // 所有社区和房间
|
||||
@@ -262,7 +262,7 @@ export default {
|
||||
|
||||
let token = uni.getStorageSync('token') || '';
|
||||
let fullurl = this.BASEURI + endpoint;
|
||||
console.log("fullurl",fullurl);
|
||||
console.log("fullurl", fullurl);
|
||||
var contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
data.authorization = token;
|
||||
@@ -281,11 +281,18 @@ export default {
|
||||
uni.hideLoading();
|
||||
}
|
||||
|
||||
console.log('error', error);
|
||||
console.log('res', res);
|
||||
if (undefined == res || 'undefined' == res) {
|
||||
console.log('index');
|
||||
uni.navigateTo({
|
||||
url: `/pages/public/login`
|
||||
})
|
||||
uni.showToast({
|
||||
title: '网络错误',
|
||||
icon: 'none'
|
||||
});
|
||||
return;
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/public/login`
|
||||
// })
|
||||
}
|
||||
if (res.data.msg == 'User token expired!') {
|
||||
console.log('User token expired');
|
||||
@@ -315,7 +322,7 @@ export default {
|
||||
return res.data.data;
|
||||
} else {
|
||||
console.log(">>>>>=");
|
||||
console.log(">>>>>=",res.data);
|
||||
console.log(">>>>>=", res.data);
|
||||
if (res.data) {
|
||||
if (!res.data.msg) {
|
||||
res.data.msg = res.data.data;
|
||||
|
||||
Reference in New Issue
Block a user