mirror of
https://gitee.com/niucloud-team/javashop.git
synced 2026-05-05 08:08:12 +00:00
优化 * 平台端 站点端界面改版优化 * 插件支持多选批量升级 * 万能表单 日期组件、时间组件优化 * 万能表单完善语言包 * 微信开放平台管理端优化,增加小程序撤回审核、授权记录 * 插件支持多选批量升级 * 升级框架/插件时,增加是否备份、是否云编译等控制选项 * 操作日志增加清空功能 * 站点端`本地存储`调整为`默认存储`,若无配置,则使用管理端设置的默认存储方式及配置 * 后台提现列表样式优化 * 隐私协议弹框样式优化 * 待付款订单界面优化 * 商品列表 推广支持微信小程序二维码 * 商品分类列表 推广支持微信小程序二维码 * 优惠券列表 推广支持微信小程序二维码 * 重构限时折扣活动,支持添加N个商品,提供扩展性 * 限时折扣增加批量设置减钱、促销价 * 商品搜索页面增加 搜索关键字、排行榜 * 订单退款详情、优惠券领取记录、退款维权详情改为抽屉弹框样式 新增 * 增加升级记录 * 增加备份记录,支持手动备份、恢复等功能 * 增加主题风格,自定义配色功能 * 自定义链接支持扩展,增加万能表单选择 * 自定义页面增加弹窗广告设置 * 平台端增加清理缓存功能 * 增加定时清理计划任务日志数据 * 牛云短信功能 * 会员增加身份证、备注等信息 * 个人资料增加万能表单 * 后台会员列表增加全选所有页/全选当前页,方便批量操作 * 自定义页面增加弹窗广告设置 * 增加定时清理计划任务 * 站点增加初始化操作,用于清空整个站点数据 * 支持第三方云编译服务搭建 * 商品列表,商品分类展示限时折扣标识 * 价格展示逻辑调整,同时参与会员价、限时折扣,优先展示最低价 * 商品榜单列表增加会员价、限时折扣标识 * 商品收藏列表、足迹列表,显示会员价/限时折扣展示 * 同城配送功能新增预约时间设置,支持用户选择具体配送时段,提升配送体验。 * 自定义商品详情 * 增加商品排序设置 * 增加门店自提核销功能 * 优惠券列表增加发劵功能 * 商品列表、商品详情增加副标题展示 * 商品增加视频 * 后台增加`关闭售后`按钮 * 添加/编辑商品,支持选择多个参数模板 * 商品详情左上角返回增加悬浮菜单导航 * 商品品牌支持自定义样式设置 * 商品标签增加复制功能 * 增加商品搜索设置 * 增加商品编码唯一性设置 * 自定义链接增加选择商品、选择商品分类、选择优惠券、选择积分商品 * 满减送列表增加批量关闭、删除功能 * 后台商品列表增加批量操作(商品标签、商品服务、虚拟销量、商品分类、商品品牌、商品海报、是否赠品、配送设置、批量修改库存)
283 lines
6.4 KiB
TypeScript
283 lines
6.4 KiB
TypeScript
import request from '@/utils/request'
|
|
|
|
/********************************* 物流公司 ***************************************/
|
|
/**
|
|
* 获取物流公司分页列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getCompanyPageList(params: Record<string, any>) {
|
|
return request.get(`shop/delivery/company`, { params })
|
|
}
|
|
|
|
/**
|
|
* 获取物流公司列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getCompanyList(params: Record<string, any>) {
|
|
return request.get(`shop/delivery/company/list`, { params })
|
|
}
|
|
|
|
/**
|
|
* 获取物流公司详情
|
|
* @param company_id 物流公司company_id
|
|
* @returns
|
|
*/
|
|
export function getCompanyInfo(company_id: number) {
|
|
return request.get(`shop/delivery/company/${ company_id }`);
|
|
}
|
|
|
|
/**
|
|
* 添加物流公司
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addCompany(params: Record<string, any>) {
|
|
return request.post('shop/delivery/company', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑物流公司
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editCompany(params: Record<string, any>) {
|
|
return request.put(`shop/delivery/company/${ params.company_id }`, params, {
|
|
showErrorMessage: true,
|
|
showSuccessMessage: true
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除物流公司
|
|
* @param company_id
|
|
* @returns
|
|
*/
|
|
export function deleteCompany(company_id: number) {
|
|
return request.delete(`shop/delivery/company/${ company_id }`, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/********************************* 运费模版 ***************************************/
|
|
/**
|
|
* 获取运费模版分页列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getShippingTemplatePageList(params: Record<string, any>) {
|
|
return request.get(`shop/shipping/template`, { params })
|
|
}
|
|
|
|
/**
|
|
* 获取运费模版列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getShippingTemplateList(params: Record<string, any>) {
|
|
return request.get(`shop/shipping/template/list`, { params })
|
|
}
|
|
|
|
/**
|
|
* 获取物运费模版详情
|
|
* @param template_id 运费模版template_id
|
|
* @returns
|
|
*/
|
|
export function getShippingTemplateInfo(template_id: number) {
|
|
return request.get(`shop/shipping/template/${ template_id }`);
|
|
}
|
|
|
|
/**
|
|
* 添加运费模版
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addShippingTemplate(params: Record<string, any>) {
|
|
return request.post('shop/shipping/template', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑运费模版
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editShippingTemplate(params: Record<string, any>) {
|
|
return request.put(`shop/shipping/template/${ params.template_id }`, params, {
|
|
showErrorMessage: true,
|
|
showSuccessMessage: true
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除运费模版
|
|
* @param template_id
|
|
* @returns
|
|
*/
|
|
export function deleteShippingTemplate(template_id: number) {
|
|
return request.delete(`shop/shipping/template/${ template_id }`, {
|
|
showErrorMessage: true,
|
|
showSuccessMessage: true
|
|
})
|
|
}
|
|
|
|
/********************************* 自提门店 ***************************************/
|
|
/**
|
|
* 获取自提门店列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getStoreList(params: Record<string, any>) {
|
|
return request.get(`shop/delivery/store`, { params })
|
|
}
|
|
|
|
/**
|
|
* 获取自提门店详情
|
|
* @param store_id 自提门店store_id
|
|
* @returns
|
|
*/
|
|
export function getStoreInfo(store_id: number) {
|
|
return request.get(`shop/delivery/store/${ store_id }`);
|
|
}
|
|
|
|
/**
|
|
* 获取初始化页面信息
|
|
* @returns
|
|
*/
|
|
export function getStoreInit() {
|
|
return request.get(`shop/delivery/store/init`)
|
|
}
|
|
|
|
/**
|
|
* 添加自提门店
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addStore(params: Record<string, any>) {
|
|
return request.post('shop/delivery/store', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑自提门店
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editStore(params: Record<string, any>) {
|
|
return request.put(`shop/delivery/store/${ params.store_id }`, params, {
|
|
showErrorMessage: true,
|
|
showSuccessMessage: true
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除自提门店
|
|
* @param store_id
|
|
* @returns
|
|
*/
|
|
export function deleteStore(store_id: number) {
|
|
return request.delete(`shop/delivery/store/${ store_id }`, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/********************************* 物流查询 ***************************************/
|
|
/**
|
|
* 设置 物流查询配置
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function setDeliverySearch(params: Record<string, any>) {
|
|
return request.post('shop/delivery/search', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 获取 物流查询配置
|
|
* @returns
|
|
*/
|
|
export function getDeliverySearch() {
|
|
return request.get('shop/delivery/search')
|
|
}
|
|
|
|
/**
|
|
* 获取 物流管理配置
|
|
* @returns
|
|
*/
|
|
export function getShopDeliveryList() {
|
|
return request.get('shop/delivery/deliveryList')
|
|
}
|
|
|
|
/**
|
|
* 物流管理设置
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function setShopDeliveryConfig(params: Record<string, any>) {
|
|
return request.put(`shop/delivery/setConfig`, params, { showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 获取 配送员列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getShopDelivery(params: Record<string, any>) {
|
|
return request.get('shop/delivery/staff', { params })
|
|
}
|
|
|
|
/**
|
|
* 获取配送员信息
|
|
* @param staff_id
|
|
* @returns
|
|
*/
|
|
export function getShopDeliverInfo(staff_id: number) {
|
|
return request.get(`shop/delivery/staff/${ staff_id }`);
|
|
}
|
|
|
|
/**
|
|
* 添加配送员
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addShopDeliver(params: Record<string, any>) {
|
|
return request.post('shop/delivery/staff', params, { showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑配送员
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editShopDeliver(params: Record<string, any>) {
|
|
return request.put(`shop/delivery/staff/${ params.deliver_id }`, params, { showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 删除配送员
|
|
* @param staff_id
|
|
* @returns
|
|
*/
|
|
export function deleteShopDeliver(staff_id: number) {
|
|
return request.delete(`shop/delivery/staff/${ staff_id }`)
|
|
}
|
|
|
|
/**
|
|
* 获取同城配送设置
|
|
* @returns
|
|
*/
|
|
export function getLocal() {
|
|
return request.get('shop/local');
|
|
}
|
|
|
|
/**
|
|
* 设置同城配送
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function setLocal(params: Record<string, any>) {
|
|
return request.put('shop/local', params, { showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 三方配送
|
|
* @returns
|
|
*/
|
|
export function getThird() {
|
|
return request.get('shop/third/init')
|
|
}
|