Compare commits
2 Commits
e803664125
...
49b2280732
Author | SHA1 | Date | |
---|---|---|---|
![]() |
49b2280732 | ||
![]() |
25664afcd6 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ node_modules
|
||||
dist
|
||||
.DS_Store
|
||||
*.local
|
||||
README_files
|
||||
|
20
README.md
20
README.md
@ -54,12 +54,7 @@ https:://apis.haibao.shop
|
||||
```shell
|
||||
10. 蓝湖设计稿
|
||||
|
||||
(https://lanhuapp.com/link/#/invite?sid=lX0Wgp6X
|
||||
分享人: yishanglangu
|
||||
团队名称: 海保世贸的团队的团队
|
||||
相关项目: 国际保税贸易系统
|
||||
链接有效期: 长期
|
||||
)
|
||||
(https://lanhuapp.com/link/#/ 分享人: yishanglangu团队名称: 海保世贸的团队的团队相关项目: 国际保税贸易系统链接有效期: 长期)
|
||||
```
|
||||
|
||||
```shell
|
||||
@ -68,18 +63,23 @@ https:://apis.haibao.shop
|
||||
```
|
||||
|
||||
```shell
|
||||
12. PC端首页 https://apis.haibao.shop
|
||||
12. PC端首页 https://www.haibao.shop
|
||||
13. 后台地址 https://apis.haibao.shop/index.html#/admin
|
||||
14. 部分原型 [](https://haimaoproj.helloai001.com/)
|
||||
16. 系统 介绍,脑图等资料归档 https://www.tapd.cn/34542034/personal_documents/show/1134542034001000049?file_type=word
|
||||
17. 公众号 “保税贸易” 小程序 “海保世贸”
|
||||
18. 系统logo 域名| apis.haibao.shop/static/logo.png 系统名称 海保世贸
|
||||
19. 在线上传小程序素材接口: https://apis.haibao.shop/apidoc/#/api?appKey=shop&key=app%255Cshop%255Ccontroller%255CCommonController%2540uploadStatic&title=%25E4%25B8%2593%25E9%2597%25A8%25E4%25B8%258A%25E4%25BC%25A0%25E5%2589%258D%25E7%25AB%25AF%25E7%25B4%25A0%25E6%259D%2590-%25E4%25B8%258D%25E7%2599%25BB%25E9%2599%2586&shareKey=
|
||||
前端可以定一个 素材域名: htts://apis.haibao.shop 然后拼接url; 后期上cdn 再改配置域名即可
|
||||
18. 系统域名 https://apis.haibao.shop
|
||||
19. 系统logo https://haibao.shop/static/logo.png 系统名称 海保世贸
|
||||
20. 在线上传小程序素材接口: https://apis.haibao.shop.haibao.shop/apidoc/#/api?appKey=shop&key=app%255Cshop%255Ccontroller%255CCommonController%2540uploadStatic&title=%25E4%25B8%2593%25E9%2597%25A8%25E4%25B8%258A%25E4%25BC%25A0%25E5%2589%258D%25E7%25AB%25AF%25E7%25B4%25A0%25E6%259D%2590-%25E4%25B8%258D%25E7%2599%25BB%25E9%2599%2586&shareKey=
|
||||
前端可以定一个 素材域名: htts://apis.haibao.shop.haibao.shop 然后拼接url; 后期上cdn 再改配置域名即可
|
||||
|
||||
|
||||
20. 阿里巴巴子图库在线链接 https://at.alicdn.com/t/c/font_5002758_yrm4fmoyoo.css
|
||||
|
||||
21. 系统图片不能放在 本地 专门上传素材 接口:https://apis.haibao.shop/apidoc/#/api?appKey=shop&key=app%255Cshop%255Ccontroller%255CCommonController%2540uploadStatic&title=%25E4%25B8%2593%25E9%2597%25A8%25E4%25B8%258A%25E4%25BC%25A0%25E5%2589%258D%25E7%25AB%25AF%25E7%25B4%25A0%25E6%259D%2590-%25E4%25B8%258D%25E7%2599%25BB%25E9%2599%2586&shareKey=
|
||||

|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "uni-app-joy-shop",
|
||||
"name": "海保世贸",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "uni-app-joy-shop",
|
||||
"name": "uni-app-hbsm",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-alpha-3081220230802001",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "uni-app-joyshop",
|
||||
"name": "uni-app-hbsm",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"dev:app": "uni -p app",
|
||||
|
@ -14,7 +14,7 @@ export const addCartApi = (data: addCartItem) => {
|
||||
}
|
||||
>({
|
||||
method: 'POST',
|
||||
url: '/userCart/add',
|
||||
url: 'shop/userCart/add',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -30,7 +30,7 @@ export const getCartApi = (data: PageParams) => {
|
||||
}
|
||||
>({
|
||||
method: 'GET',
|
||||
url: '/userCart',
|
||||
url: 'shop/userCart',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -43,7 +43,7 @@ export const getCartApi = (data: PageParams) => {
|
||||
export const deleteCartApi = (data: { id: string[] | number[] }) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/userCart/delete',
|
||||
url: 'shop/userCart/delete',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -57,7 +57,7 @@ export const deleteCartApi = (data: { id: string[] | number[] }) => {
|
||||
export const putCartApi = (data: editCartItem) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: `/userCart/edit`,
|
||||
url: `shop/userCart/edit`,
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -70,7 +70,7 @@ export const putCartApi = (data: editCartItem) => {
|
||||
export const putCartSelectedAllApi = (data: { selected: boolean }) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/userCart/selectAll',
|
||||
url: 'shop/userCart/selectAll',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -78,6 +78,6 @@ export const putCartSelectedAllApi = (data: { selected: boolean }) => {
|
||||
export const getCartTotalNumApi = () => {
|
||||
return request<number>({
|
||||
method: 'GET',
|
||||
url: '/userCart/totalNum',
|
||||
url: 'shop/userCart/totalNum',
|
||||
})
|
||||
}
|
||||
|
@ -6,14 +6,14 @@ import { request } from '@/utils/request'
|
||||
export const getCategoryApi = () => {
|
||||
return request<categoryTopItem[]>({
|
||||
method: 'GET',
|
||||
url: '/goods/classify',
|
||||
url: 'shop/goods/classify',
|
||||
})
|
||||
}
|
||||
|
||||
export const getTopCategoryApi = () => {
|
||||
return request<categoryTopItem[]>({
|
||||
method: 'GET',
|
||||
url: '/goods/topClassify',
|
||||
url: 'shop/goods/topClassify',
|
||||
})
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ export const getClassifyDetailApi = (
|
||||
) => {
|
||||
return request<PageResult<goodsListItem[]>>({
|
||||
method: 'GET',
|
||||
url: '/goods/classifyDetail',
|
||||
url: 'shop/goods/classifyDetail',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -32,6 +32,6 @@ export const getClassifyDetailApi = (
|
||||
export const getAllClassifyADatapi = () => {
|
||||
return request<categoryTopItem[]>({
|
||||
method: 'GET',
|
||||
url: '/goods/allClassify',
|
||||
url: 'shop/goods/allClassify',
|
||||
})
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import { request } from '@/utils/request'
|
||||
export const getSettingApi = () => {
|
||||
return request<settingItem>({
|
||||
method: 'GET',
|
||||
url: '/common/setting',
|
||||
url: '/shop/common/setting',
|
||||
})
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ export const uploadApi = (filePath: string): Promise<AnyObject> => {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.uploadFile({
|
||||
url: `/common/upload?driver=${uploadSetting.mode}`,
|
||||
url: `/shop/common/upload?driver=${uploadSetting.mode}`,
|
||||
filePath,
|
||||
name: 'file',
|
||||
success: (res) => {
|
||||
@ -95,7 +95,7 @@ export const sendSmsCode = (data: {
|
||||
password?: string
|
||||
}) => {
|
||||
return request({
|
||||
url: '/common/sendSmsCode',
|
||||
url: 'shop/common/sendSmsCode',
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
@ -103,7 +103,7 @@ export const sendSmsCode = (data: {
|
||||
|
||||
export const getAreaDataApi = () => {
|
||||
return request({
|
||||
url: '/common/area',
|
||||
url: 'shop/common/area',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import { request } from '@/utils/request'
|
||||
// 领券中心
|
||||
export const getCouponListApi = (data: PageParams) => {
|
||||
return request<PageResult<couponListItem[]>>({
|
||||
url: '/coupon/center',
|
||||
url: 'shop/coupon/center',
|
||||
method: 'GET',
|
||||
data,
|
||||
})
|
||||
@ -14,7 +14,7 @@ export const getCouponListApi = (data: PageParams) => {
|
||||
// 领券操作
|
||||
export const receiveCouponApi = (id: number) => {
|
||||
return request<{ id: number }>({
|
||||
url: '/coupon/receive',
|
||||
url: 'shop/coupon/receive',
|
||||
method: 'POST',
|
||||
data: {
|
||||
id,
|
||||
@ -29,7 +29,7 @@ export const getMyCouponListApi = (
|
||||
},
|
||||
) => {
|
||||
return request<PageResult<couponListItem[]>>({
|
||||
url: '/userCoupon/list',
|
||||
url: 'shop/userCoupon/list',
|
||||
method: 'GET',
|
||||
data,
|
||||
})
|
||||
|
@ -4,6 +4,6 @@ import { request } from '@/utils/request'
|
||||
export const getDeliveryCompanyApi = () => {
|
||||
return request<deliveryCompanyItem[]>({
|
||||
method: 'GET',
|
||||
url: '/delivery/company',
|
||||
url: 'shop/delivery/company',
|
||||
})
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import { request } from '@/utils/request'
|
||||
|
||||
export const getFavoriteListApi = (data: PageParams) => {
|
||||
return request<PageResult<favoriteItem[]>>({
|
||||
url: '/userFavorite/list',
|
||||
url: 'shop/userFavorite/list',
|
||||
method: 'GET',
|
||||
data,
|
||||
})
|
||||
@ -12,7 +12,7 @@ export const getFavoriteListApi = (data: PageParams) => {
|
||||
|
||||
export const postAddFavoriteApi = (data: { goods_id: number }) => {
|
||||
return request({
|
||||
url: '/userFavorite/add',
|
||||
url: 'shop/userFavorite/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
@ -20,7 +20,7 @@ export const postAddFavoriteApi = (data: { goods_id: number }) => {
|
||||
|
||||
export const postCancelFavoriteApi = (data: { goods_id: string | number; is_all?: boolean }) => {
|
||||
return request({
|
||||
url: '/userFavorite/delete',
|
||||
url: 'shop/userFavorite/delete',
|
||||
method: 'POST',
|
||||
data,
|
||||
})
|
||||
|
@ -11,7 +11,7 @@ import { request } from '@/utils/request'
|
||||
export const getGoodsListApi = (data?: PageParams & goodsListParams) => {
|
||||
return request<PageResult<goodsListItem>>({
|
||||
method: 'GET',
|
||||
url: '/goods',
|
||||
url: '/shop/goods',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -19,7 +19,7 @@ export const getGoodsListApi = (data?: PageParams & goodsListParams) => {
|
||||
export const getGoodsByIdApi = (id: number) => {
|
||||
return request<goodsResult>({
|
||||
method: 'GET',
|
||||
url: '/goods/detail',
|
||||
url: '/shop/goods/detail',
|
||||
data: {
|
||||
id,
|
||||
},
|
||||
@ -29,7 +29,7 @@ export const getGoodsByIdApi = (id: number) => {
|
||||
export const getGoodsServiceApi = (service_ids: string) => {
|
||||
return request<goodsServiceItem[]>({
|
||||
method: 'GET',
|
||||
url: '/goods/service',
|
||||
url: '/shop/goods/service',
|
||||
data: {
|
||||
service_ids,
|
||||
},
|
||||
@ -39,7 +39,7 @@ export const getGoodsServiceApi = (service_ids: string) => {
|
||||
export const getShareInfoApi = (id: number) => {
|
||||
return request<goodsShareResult>({
|
||||
method: 'GET',
|
||||
url: '/goods/share',
|
||||
url: '/shop/goods/share',
|
||||
data: {
|
||||
id,
|
||||
},
|
||||
|
@ -9,7 +9,7 @@ import { request } from '@/utils/request'
|
||||
export const getBannerApi = (type: number = 1) => {
|
||||
return request<bannerItem[]>({
|
||||
method: 'GET',
|
||||
url: '/advert/banner',
|
||||
url: '/shop/advert/banner',
|
||||
data: {
|
||||
type,
|
||||
},
|
||||
@ -24,7 +24,7 @@ export const getBannerApi = (type: number = 1) => {
|
||||
export const getGoodsListApi = (data?: PageParams) => {
|
||||
return request<PageResult<goodsListItem>>({
|
||||
method: 'GET',
|
||||
url: '/goods',
|
||||
url: '/shop/goods',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -37,13 +37,13 @@ export const getGoodsListApi = (data?: PageParams) => {
|
||||
export const getNoticeBartApi = () => {
|
||||
return request<noticeBarItem[]>({
|
||||
method: 'GET',
|
||||
url: '/advert/noticeBar',
|
||||
url: '/shop/advert/noticeBar',
|
||||
})
|
||||
}
|
||||
|
||||
export const getHotRecommendApi = () => {
|
||||
return request<hotRecommendItem[]>({
|
||||
method: 'GET',
|
||||
url: '/advert/hotRecommend',
|
||||
url: '/shop/advert/hotRecommend',
|
||||
})
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ type loginParams = {
|
||||
export const testLoginApi = (phone: string) => {
|
||||
return request<loginResult>({
|
||||
method: 'POST',
|
||||
url: '/login/testLogin',
|
||||
url: 'shop/login/testLogin',
|
||||
data: {
|
||||
phone,
|
||||
},
|
||||
@ -28,7 +28,7 @@ export const getSessionByLoginCodeApi = (login_code: string) => {
|
||||
unionid: string
|
||||
}>({
|
||||
method: 'GET',
|
||||
url: '/login/getSessionByLoginCode',
|
||||
url: 'shop/login/getSessionByLoginCode',
|
||||
data: {
|
||||
login_code,
|
||||
},
|
||||
@ -41,7 +41,7 @@ export const getSessionByLoginCodeApi = (login_code: string) => {
|
||||
export const miniAppLoginApi = (data: loginParams) => {
|
||||
return request<loginResult>({
|
||||
method: 'POST',
|
||||
url: '/login/miniAppLogin',
|
||||
url: 'shop/login/miniAppLogin',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -51,7 +51,7 @@ export const checkLoginIegalityApi = (login_code: string) => {
|
||||
login_by_phone: boolean
|
||||
}>({
|
||||
method: 'POST',
|
||||
url: '/login/checkLoginIegality',
|
||||
url: 'shop/login/checkLoginIegality',
|
||||
data: {
|
||||
login_code,
|
||||
},
|
||||
@ -62,7 +62,7 @@ export const quickLoginApi = (login_code: string) => {
|
||||
return request<loginResult>(
|
||||
{
|
||||
method: 'POST',
|
||||
url: '/login/quickLogin',
|
||||
url: 'shop/login/quickLogin',
|
||||
data: {
|
||||
login_code,
|
||||
},
|
||||
@ -75,7 +75,7 @@ export const quickLoginApi = (login_code: string) => {
|
||||
export const logout = () => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/login/logout',
|
||||
url: 'shop/login/logout',
|
||||
data: {
|
||||
refresh_token: useMemberStore().profile?.refresh_token,
|
||||
},
|
||||
@ -85,7 +85,7 @@ export const logout = () => {
|
||||
export const loginByPhone = (data: { phone: string; sms_captcha_code: string }) => {
|
||||
return request<loginResult>({
|
||||
method: 'POST',
|
||||
url: '/login/phone',
|
||||
url: 'shop/login/phone',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -106,7 +106,7 @@ export const registerApi = (data: {
|
||||
}) => {
|
||||
return request<loginResult>({
|
||||
method: 'POST',
|
||||
url: '/login/register',
|
||||
url: 'shop/login/register',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -117,7 +117,7 @@ export const bindWxInfo = (data: {
|
||||
}) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/login/bind',
|
||||
url: 'shop/login/bind',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
@ -10,14 +10,14 @@ import { request } from '@/utils/request'
|
||||
export const getMemberProfileApi = () => {
|
||||
return request<profileDetail>({
|
||||
method: 'GET',
|
||||
url: '/user/info',
|
||||
url: 'shop/user/info',
|
||||
})
|
||||
}
|
||||
|
||||
export const putMemberProfileApi = (data: profileParams) => {
|
||||
return request<profileDetail>({
|
||||
method: 'POST',
|
||||
url: '/user/edit',
|
||||
url: 'shop/user/edit',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -25,7 +25,7 @@ export const putMemberProfileApi = (data: profileParams) => {
|
||||
export const getBalanceLogApi = (data: balanceLogParams) => {
|
||||
return request<balanceLogResult>({
|
||||
method: 'GET',
|
||||
url: '/user/balanceLog',
|
||||
url: 'shop/user/balanceLog',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -34,7 +34,7 @@ export const getBalanceLogApi = (data: balanceLogParams) => {
|
||||
export const getDashboardApi = () => {
|
||||
return request<dashboardResult>({
|
||||
method: 'GET',
|
||||
url: '/user/dashboard',
|
||||
url: 'shop/user/dashboard',
|
||||
})
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ export const getDashboardApi = () => {
|
||||
export const changePasswordApi = (data: { old_password: string; new_password: string }) => {
|
||||
return request<boolean>({
|
||||
method: 'POST',
|
||||
url: '/user/changePassword',
|
||||
url: 'shop/user/changePassword',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -63,7 +63,7 @@ export const resetPasswordApi = (data: {
|
||||
}) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/user/resetPassword',
|
||||
url: 'shop/user/resetPassword',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -73,7 +73,7 @@ export const verificationApi = (data: { password: string; sms_captcha_code: stri
|
||||
verificationToken: string
|
||||
}>({
|
||||
method: 'POST',
|
||||
url: '/user/verification',
|
||||
url: 'shop/user/verification',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -85,7 +85,7 @@ export const changeBindApi = (data: {
|
||||
}) => {
|
||||
return request({
|
||||
method: 'POST',
|
||||
url: '/user/changeBind',
|
||||
url: 'shop/user/changeBind',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
@ -17,9 +17,9 @@ import type {
|
||||
} from '@/types/order'
|
||||
import { request } from '@/utils/request'
|
||||
|
||||
const orderUrl = '/order'
|
||||
const refundUrl = '/orderRefund'
|
||||
const evaluateUrl = '/orderEvaluate'
|
||||
const orderUrl = 'shop/order'
|
||||
const refundUrl = 'shop/orderRefund'
|
||||
const evaluateUrl = 'shop/orderEvaluate'
|
||||
|
||||
/**
|
||||
* 获取购物车下单前信息
|
||||
|
@ -4,7 +4,7 @@ export const payOrderApi = (data: { id: number; pay_way: string }) => {
|
||||
return request<WechatMiniprogram.RequestPaymentOption>(
|
||||
{
|
||||
method: 'POST',
|
||||
url: '/order/pay',
|
||||
url: 'shop/order/pay',
|
||||
data,
|
||||
},
|
||||
false,
|
||||
@ -15,7 +15,7 @@ export const postPayNotifyApi = (data: { id: number; pay_way: string }) => {
|
||||
return request(
|
||||
{
|
||||
method: 'POST',
|
||||
url: '/order/payNotify',
|
||||
url: 'shop/order/payNotify',
|
||||
data,
|
||||
},
|
||||
false,
|
||||
|
@ -5,7 +5,7 @@ import { request } from '@/utils/request'
|
||||
export const getRechargeCenterApi = () => {
|
||||
return request<rechargeCenter>({
|
||||
method: 'GET',
|
||||
url: '/recharge/center',
|
||||
url: 'shop/recharge/center',
|
||||
})
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ export const getRechargeCenterApi = () => {
|
||||
export const postRechargeApi = (data: rechargePlanParams) => {
|
||||
return request<WechatMiniprogram.RequestPaymentOption>({
|
||||
method: 'POST',
|
||||
url: '/recharge/recharge',
|
||||
url: 'shop/recharge/recharge',
|
||||
data,
|
||||
})
|
||||
}
|
||||
@ -30,7 +30,7 @@ export const postRechargeApi = (data: rechargePlanParams) => {
|
||||
export const getRechargeOrderListApi = (data: PageParams) => {
|
||||
return request<PageResult<rechargeOrderListItem[]>>({
|
||||
method: 'GET',
|
||||
url: '/recharge/orderList',
|
||||
url: 'shop/recharge/orderList',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ const url = ref('')
|
||||
|
||||
if (isDev) {
|
||||
// dev模式请求域名
|
||||
url.value = 'http://localhost:8000'
|
||||
url.value = 'https://apis.haibao.shop'
|
||||
} else {
|
||||
// build模式请求域名
|
||||
url.value = 'http://localhost:8000'
|
||||
url.value = 'https://api.haibao.shop'
|
||||
}
|
||||
|
||||
/**
|
||||
@ -19,4 +19,4 @@ export const apiUrl = url.value
|
||||
/**
|
||||
* api应用名
|
||||
*/
|
||||
export const apiName = '/shop'
|
||||
export const apiName = '/'
|
||||
|
@ -12,11 +12,12 @@ const Interceptor = {
|
||||
//拼接请求地址
|
||||
if (!/^https?:\/\//.test(options.url)) {
|
||||
// /api是系统保留的接口,不代理
|
||||
if (options.url.startsWith('/api')) {
|
||||
options.url = apiUrl + options.url
|
||||
} else {
|
||||
options.url = apiUrl + apiName + options.url
|
||||
}
|
||||
// if (options.url.startsWith('/api')) {
|
||||
// options.url = apiUrl + options.url
|
||||
// } else {
|
||||
// options.url = apiUrl + apiName + options.url
|
||||
// }
|
||||
options.url = apiUrl +'/'+ options.url
|
||||
}
|
||||
//请求超时 10s
|
||||
options.timeout = 10000
|
||||
@ -63,7 +64,7 @@ const loginFail = (res: any) => {
|
||||
useMemberStore().clearProfile()
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '登录解锁更多精彩,是否继续?',
|
||||
content: '登录体验保税,是否继续?',
|
||||
confirmText: '去登录',
|
||||
cancelText: '再看看',
|
||||
success: function (res) {
|
||||
|
Loading…
Reference in New Issue
Block a user