IM商家端不显示问题

master
2023-02-09 15:13:55 +08:00
parent 826ba41866
commit 70757e8adf
4 changed files with 27 additions and 27 deletions

View File

@ -4,7 +4,7 @@ VUE_APP_API_BASE_URL=https://im-api.pickmall.cn
VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket
VUE_APP_COMMON=https://common-api.pickmall.cn VUE_APP_COMMON=https://common-api.pickmall.cn
VUE_APP_BUYER=https://buyer-api.pickmall.cn VUE_APP_BUYER=https://buyer-api.pickmall.cn
VUE_APP_SELLER=https://seller-api.pickmall.cn VUE_APP_SELLER=https://store-api.pickmall.cn
VUE_APP_WEBSITE_NAME="LiLi IM" VUE_APP_WEBSITE_NAME="LiLi IM"
VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/ VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/
VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/ VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/

View File

@ -4,7 +4,7 @@ VUE_APP_API_BASE_URL=https://im-api.pickmall.cn
VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket
VUE_APP_COMMON=https://common-api.pickmall.cn VUE_APP_COMMON=https://common-api.pickmall.cn
VUE_APP_BUYER=https://buyer-api.pickmall.cn VUE_APP_BUYER=https://buyer-api.pickmall.cn
VUE_APP_SELLER=https://seller-api.pickmall.cn VUE_APP_SELLER=https://store-api.pickmall.cn
VUE_APP_WEBSITE_NAME="LiLi IM" VUE_APP_WEBSITE_NAME="LiLi IM"
VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/ VUE_APP_PC_URL=https://pc-b2b2c.pickmall.cn/
VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/ VUE_APP_PC_STORE=https://store-b2b2c.pickmall.cn/

View File

@ -23,22 +23,22 @@ export const ServeGetStoreDetail = (storeId) => {
// 获取用户历史足迹 // 获取用户历史足迹
export const ServeGetFootPrint = (params) => { export const ServeGetFootPrint = (params) => {
return get(`${config.BASE_BUYER}/buyer/member/footprint`,params); return get(`${config.BASE_BUYER}/buyer/member/footprint`, params);
}; };
// 商家获取用户历史足迹 // 商家获取用户历史足迹
export const ServeStoreGetFootPrint = (params) => { export const ServeStoreGetFootPrint = (params) => {
return get(`${config.BASE_SELLER}/store/member/footprint`,params); return get(`${config.BASE_SELLER}/store/member/footprint`, params);
}; };
// 获取用户订单列表信息 // 获取用户订单列表信息
export const ServeGetOrderPrint = (params) => { export const ServeGetOrderPrint = (params) => {
return get(`${config.BASE_BUYER}/buyer/order/order`,params); return get(`${config.BASE_BUYER}/buyer/order/order`, params);
}; };
// 商家获取用户订单列表信息 // 商家获取用户订单列表信息
export const ServeStoreGetOrderPrint = (params) => { export const ServeStoreGetOrderPrint = (params) => {
return get(`${config.BASE_SELLER}/store/order/order`,params); return get(`${config.BASE_SELLER}/store/order/order`, params);
}; };
// 获取商品信息 // 获取商品信息

View File

@ -9,7 +9,7 @@ const USER_SETTING = 'LILI-SETTING'
* *
* @param {String} token * @param {String} token
*/ */
export function setToken(token) { export function setToken (token) {
return localStorage.setItem( return localStorage.setItem(
USER_TOKEN, USER_TOKEN,
token token
@ -19,7 +19,7 @@ export function setToken(token) {
/** /**
* 获取授权token * 获取授权token
*/ */
export function getToken() { export function getToken () {
return localStorage.getItem(USER_TOKEN) return localStorage.getItem(USER_TOKEN)
} }
@ -28,14 +28,14 @@ export function getToken() {
* *
* @param {Object} data * @param {Object} data
*/ */
export function setUserInfo(data) { export function setUserInfo (data) {
localStorage.setItem(USER_INFO, JsBase64.Base64.encode(JSON.stringify(data))) localStorage.setItem(USER_INFO, JsBase64.Base64.encode(JSON.stringify(data)))
} }
/** /**
* 获取用户信息 * 获取用户信息
*/ */
export function getUserInfo() { export function getUserInfo () {
const data = JsBase64.Base64.decode(localStorage.getItem(USER_INFO) || '') const data = JsBase64.Base64.decode(localStorage.getItem(USER_INFO) || '')
return data ? JSON.parse(data) : {} return data ? JSON.parse(data) : {}
} }
@ -43,7 +43,7 @@ export function getUserInfo() {
/** /**
* 获取用户本地缓存的设置信息 * 获取用户本地缓存的设置信息
*/ */
export function getUserSettingCache() { export function getUserSettingCache () {
const data = localStorage.getItem(USER_SETTING) const data = localStorage.getItem(USER_SETTING)
return data ? JSON.parse(data) : {} return data ? JSON.parse(data) : {}
} }
@ -53,14 +53,14 @@ export function getUserSettingCache() {
* *
* @param {Object} state 用户设置相关信息 * @param {Object} state 用户设置相关信息
*/ */
export function setUserSettingCache(state) { export function setUserSettingCache (state) {
localStorage.setItem(USER_SETTING, JSON.stringify(state)) localStorage.setItem(USER_SETTING, JSON.stringify(state))
} }
/** /**
* 删除用户相关缓存信息 * 删除用户相关缓存信息
*/ */
export function removeAll() { export function removeAll () {
localStorage.removeItem(USER_TOKEN) localStorage.removeItem(USER_TOKEN)
localStorage.removeItem(USER_INFO) localStorage.removeItem(USER_INFO)
localStorage.removeItem(USER_SETTING) localStorage.removeItem(USER_SETTING)