diff --git a/env/.env b/env/.env index 5c616b4..a722e68 100644 --- a/env/.env +++ b/env/.env @@ -1,5 +1,5 @@ VITE_APP_TITLE = '茶艺师管理端' -VITE_APP_PORT = 9003 +VITE_APP_PORT = 9002 VITE_UNI_APPID = '__UNI__932EB7D' VITE_WX_APPID = 'wx1a89a1b47d08b83e' @@ -10,17 +10,17 @@ VITE_APP_PUBLIC_BASE=/ # 登录页面 VITE_LOGIN_URL = '/pages/login/login' # 第一个请求地址 -VITE_SERVER_BASEURL = 'https://76458.com' +VITE_SERVER_BASEURL = 'https://cz.stnav.com' -VITE_UPLOAD_BASEURL = 'https://76458.com/upload' +VITE_UPLOAD_BASEURL = 'https://cz.stnav.com/upload' # h5是否需要配置代理 VITE_APP_PROXY=true VITE_APP_PROXY_PREFIX = '/storeapi' # 第二个请求地址 (目前alova中可以使用) -VITE_SERVER_BASEURL = 'https://76458.com' +VITE_SERVER_BASEURL = 'https://cz.stnav.com' # 上传图片请求地址 -VITE_UPLOAD_BASEURL = 'https://76458.com/storeapi/upload/image' -VITE_UPLOAD_IMAGE_URL = 'https://76458.com/' \ No newline at end of file +VITE_UPLOAD_BASEURL = 'https://cz.stnav.com/storeapi/upload/image' +VITE_UPLOAD_IMAGE_URL = 'https://cz.stnav.com/' \ No newline at end of file diff --git a/src/api/login.ts b/src/api/login.ts index 07697da..9c5b9ed 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -43,7 +43,7 @@ export function login(loginForm: ILoginForm) { * @param loginForm 登录表单 */ export function mobileLogin(loginForm: IMobileLoginForm) { - return http.Post('/storeapi/storeLogin/account', + return http.Post('/teamapi/TeamLogin/account', loginForm, { meta: { ignoreAuth: true } // 忽略认证 @@ -51,19 +51,11 @@ export function mobileLogin(loginForm: IMobileLoginForm) { ) } -/** - * 获取用户信息 - */ -export function getUserInfo() { - return http.Post('/storeapi/user/info') -} - /** * 退出登录 */ export function logout() { - return http.Post('/storeapi/storeLogin/logout') -} + return http.Post('/teamapi/TeamLogin/logout')} /** * 获取微信登录凭证 diff --git a/src/api/user.ts b/src/api/user.ts index 7c86bee..041ca2a 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -3,14 +3,6 @@ import type { IUserAddressListResult, IUserAddressDetailsResult, IUserCouponList import type { IOrderListResult } from '@/api/types/teaSpecialist-order' import type { IUserResult } from '@/api/types/user' - -/** - * 获取用户个人信息 - */ -export function getUserInfo() { - return http.Post('/storeapi/user/info') -} - /** * 修改用户信息 */ @@ -27,6 +19,14 @@ export function updateUserInfo(data: IUpdateUserInfoParams) { return http.Post('/storeapi/user/updateUser', data) } + +/** + * 获取用户信息 + */ +export function getUserInfo() { + return http.Post('/teamapi/user/info') +} + /** * 获取流水明细 */ diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 90f0238..0a7acb5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,7 +1,7 @@ { "layout": "tabbar", - "needLogin": false, + "needLogin": true, "style": { // 'custom' 表示开启自定义导航栏,默认 'default' "navigationStyle": "custom", @@ -12,27 +12,11 @@