3
0
Fork 0
web-store-retail-h5/config/goods.js

120 lines
4.0 KiB
JavaScript
Raw Permalink Normal View History

2025-03-23 09:29:40 +08:00
/*
2025-07-08 11:47:22 +08:00
* @Descripttion:
* @version:
2025-03-23 09:29:40 +08:00
* @Author: kBank
* @Date: 2022-11-23 11:10:29
*/
/*
2025-07-08 11:47:22 +08:00
* @Descripttion:
* @version:
* @Author: kBank
* @Date: 2022-11-23 11:10:29
*/
2025-03-23 09:29:40 +08:00
const http = uni.$u.http
//商品列表
2025-07-08 11:47:22 +08:00
export const getAllGoods = params =>
http.post('/sale/api/wares/query-spe-wares', params)
2025-03-23 09:29:40 +08:00
//商品详情
2025-07-08 11:47:22 +08:00
export const waresDetail = params =>
http.post('/sale/api/retail-wares/wares-detail', params)
2025-03-23 09:29:40 +08:00
//嗨粉海粉短信
2025-07-08 11:47:22 +08:00
export const verification = params =>
2025-09-02 14:20:50 +08:00
http.get('/member/api/sms/fans-verification', {})
2025-03-23 09:29:40 +08:00
//嗨粉选择省市区
2025-09-02 14:12:20 +08:00
export const getAllAreaList = _ =>
2025-09-02 14:20:50 +08:00
http.get('/system/api/area/provinceList', { params: { pkCountry: 1 } })
2025-03-23 09:29:40 +08:00
//嗨粉选择国家
2025-07-08 11:47:22 +08:00
export const getCountry = params =>
http.get('system/api/country/list', { params })
2025-03-23 09:29:40 +08:00
//海粉注册
2025-07-08 11:47:22 +08:00
export const regShareMember = params =>
http.post('/member/api/member/reg-share-member', params)
2025-03-23 09:29:40 +08:00
//hi粉注册
2025-07-08 11:47:22 +08:00
export const hiRegister = params =>
http.post('/member/api/fans/register', params)
2025-03-23 09:29:40 +08:00
//幂等性
2025-07-08 11:47:22 +08:00
export const generate = params =>
http.get('/system/api/idempotent/generate', { params })
2025-03-23 09:29:40 +08:00
//发货
2025-07-08 11:47:22 +08:00
export const deliveryList = params =>
http.get('/system/pub/enums/delivery-list', { params })
2025-03-23 09:29:40 +08:00
//海粉渠道
2025-07-08 11:47:22 +08:00
export const jxhhSource = params =>
http.get('/sale/api/t-source/list/' + params)
2025-03-23 09:29:40 +08:00
//海粉分类
2025-07-08 11:47:22 +08:00
export const optionList = params =>
http.post('/sale/api/twares-category-category/option-list', params)
2025-03-23 09:29:40 +08:00
//海粉商品
2025-07-08 11:47:22 +08:00
export const sharingWares = params =>
http.get('/sale/api/wares/sharing-zone-wares', { params })
2025-03-23 09:29:40 +08:00
//分享邮费查询
2025-07-08 11:47:22 +08:00
export const queryAdressPostage = params =>
http.post('/sale/api/order/self-order-postage', params)
2025-03-23 09:29:40 +08:00
//嗨粉分享确认订单
2025-07-08 11:47:22 +08:00
export const confirmFunShareOrder = params =>
http.post('/sale/api/order/confirm-self-fun-order', params)
2025-03-23 09:29:40 +08:00
//海粉商品详情
2025-07-08 11:47:22 +08:00
export const sharingWaresDetail = params =>
http.get('/sale/api/wares/query-spe-sharing-wares-detail', { params })
2025-03-23 09:29:40 +08:00
//海粉订单确认
2025-07-08 11:47:22 +08:00
export const confirmShareOrder = params =>
http.post('/sale/api/order/confirm-share-order', params)
2025-03-23 09:29:40 +08:00
//获取购物车
2025-07-08 11:47:22 +08:00
export const getShopping = params =>
http.get('/sale/api/shopping/getShopping', { params })
2025-03-23 09:29:40 +08:00
//分类列表
2025-07-08 11:47:22 +08:00
export const classifyList = params =>
http.get('/sale/api/area-classify/list', { params })
2025-03-23 09:29:40 +08:00
//加减购物车
2025-07-08 11:47:22 +08:00
export const plusReduceShopping = params =>
http.post('/sale/api/shopping/plusReduceShopping', params)
2025-03-23 09:29:40 +08:00
//多删购物车
2025-07-08 11:47:22 +08:00
export const batchDelShopping = params =>
http.post('/sale/api/shopping/batchDelShopping', params)
2025-03-23 09:29:40 +08:00
//添加购物车
2025-07-08 11:47:22 +08:00
export const addShopping = params =>
http.post('/sale/api/shopping/addShopping', params)
2025-03-23 09:29:40 +08:00
//菜单权限
2025-07-08 11:47:22 +08:00
export const menuList = params => http.get('/system/api/menu/list', { params })
2025-03-23 09:29:40 +08:00
//海粉分享
2025-07-08 11:47:22 +08:00
export const shareCode = params =>
http.get('/member/api/share/share-code-h5', { params })
2025-03-23 09:29:40 +08:00
//嗨粉分享
2025-07-08 11:47:22 +08:00
export const fansCode = params =>
http.get('/member/api/share/fans-code-h5', { params })
2025-03-23 09:29:40 +08:00
//获取购物车数量
2025-07-08 11:47:22 +08:00
export const getShoppingCount = params =>
http.get('/sale/api/shopping/getShoppingCount', { params })
2025-03-23 09:29:40 +08:00
//获取购物车数小
2025-07-08 11:47:22 +08:00
export const getSmallCount = params =>
http.get('/sale/api/shopping/getAreaShoppingCount', { params })
2025-03-23 09:29:40 +08:00
//获取分享前缀
2025-07-08 11:47:22 +08:00
export const prefix = params =>
http.get('/member/api/member/query-country-prefix/' + params)
2025-03-23 09:29:40 +08:00
//校验分享编号
2025-07-08 11:47:22 +08:00
export const validateMember = params =>
http.get('/member/api/member/validate-share-member/' + params)
2025-03-23 09:29:40 +08:00
//获取国家
2025-07-08 11:47:22 +08:00
export const currencyList = params =>
http.get('/system/api/country/list', { params })
2025-03-23 09:29:40 +08:00
//0元注册时
2025-07-08 11:47:22 +08:00
export const checkShare = params =>
http.get('/member/api/share/check-share-code', { params })
2025-03-23 09:29:40 +08:00
//海粉订单详情
2025-07-08 11:47:22 +08:00
export const waresinfo = params =>
http.post('/sale/api/wares/query-confirm-waresinfo', params)
2025-03-23 09:29:40 +08:00
//hi粉确认订单
2025-07-08 11:47:22 +08:00
export const fansConfirm = params =>
http.post('/sale/api/retail-order/fans-confirm-order', params)
2025-03-23 09:29:40 +08:00
//购物车注册下单校验弹框
2025-07-08 11:47:22 +08:00
export const energyShop = params =>
http.post('/sale/api/wares/query-energy-silo', params)
2025-03-23 09:29:40 +08:00
//hi粉确认订单
2025-07-08 11:47:22 +08:00
export const energyShopSilo = params =>
http.post('/sale/api/order/valid-silo', params)