Files
lilishop-ui/buyer/src/api/shopentry.js
田香琪 d4cd6e0936 feat(buyer): 增强商品详情与支付逻辑
- 引入 buyerLogin 工具,优化商品详情页的链接跳转逻辑,确保未登录用户能正确重定向到登录页面
- 更新商品 SKU 详情 API,支持未登录状态下的访问
- 修改支付 API,新增 skipMessage 参数以控制支付提示信息
- 改进商品列表与支付页面的用户体验,确保更流畅的操作流程
- 规范化商品类型与库存提示,提升用户体验
2026-08-05 14:17:39 +08:00

92 lines
1.8 KiB
JavaScript

import request, {
Method
} from '@/plugins/request.js'
// 店铺分页列表
export function shopList (params) {
return request({
url: '/buyer/store/store',
needToken: true,
method: Method.GET,
params
})
}
// 申请店铺第一步-填写企业信息
export function applyFirst (params) {
return request({
url: '/buyer/store/store/apply/first',
needToken: true,
method: Method.PUT,
params
})
}
// 申请店铺第一步-填写企业信息
export function applySecond (params) {
return request({
url: '/buyer/store/store/apply/second',
needToken: true,
method: Method.PUT,
params
})
}
// 申请店铺第一步-填写企业信息
export function applyThird (params) {
return request({
url: '/buyer/store/store/apply/third',
needToken: true,
method: Method.PUT,
params
})
}
// 店铺详情
export function getDetailById (id) {
return request({
url: `/buyer/store/store/get/detail/${id}`,
needToken: false,
optionalToken: true,
method: Method.GET
})
}
// 店铺分类
export function getCateById (id) {
return request({
url: `/buyer/store/store/label/get/${id}`,
needToken: true,
method: Method.GET
})
}
// 店铺入驻协议
export function agreement () {
return request({
url: `/buyer/other/article/type/STORE_REGISTER`,
needToken: true,
method: Method.GET
})
}
// 获取当前登录会员的店铺信息
export function applyStatus () {
return request({
url: `/buyer/store/store/apply`,
needToken: true,
method: Method.GET,
loading: false
})
}
/**
* 获取自提点信息
* @param storeId
*/
export function getStoreAddress(storeId,params) {
return request({
url: `/buyer/store/address/page/${storeId}`,
method: Method.GET,
params
});
}