| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | const http = uni.$u.http | 
					
						
							|  |  |  | //幂等性
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const generate = params => | 
					
						
							|  |  |  |   http.get('/system/api/idempotent/generate', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //商品列表
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const getAllGoods = params => | 
					
						
							|  |  |  |   http.post('/sale/api/wares/query-spe-wares', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //商品详情
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const waresDetail = params => | 
					
						
							|  |  |  |   http.post('/sale/api/wares/query-spe-wares-detail', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //获取国家
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const countryList = params => | 
					
						
							|  |  |  |   http.get('/system/api/country/list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //发货
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const deliveryList = params => | 
					
						
							|  |  |  |   http.get('/system/pub/enums/delivery-list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //运输
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const transportList = params => | 
					
						
							|  |  |  |   http.get('/system/pub/enums/transport-type', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //行列表输
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const bankList = params => http.get('/system/api/bank/list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //购物车商品详情
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const shoppingWaresDetail = params => | 
					
						
							|  |  |  |   http.post('/sale/api/shopping/get-shopping-wares-detail', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //一键注册
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const quickReg = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/quick-reg', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //获取会员等级
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const memLevel = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/valid-mem-level', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //注册页面显示权限
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const registerList = params => | 
					
						
							|  |  |  |   http.get('/system/api/register-page/list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //获取地址列表
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const addressList = params => | 
					
						
							|  |  |  |   http.get('/member/api/member-address/list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //查询邮费
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const queryPostage = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/query-order-postage', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //确认注册订单-生成待支付订单
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const confirmRegOrder = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/confirm-reg-order', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //根据推荐人编号获取安置信息
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const validPcode = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/valid-p-code', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //注册订单验证安置人编号
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const validPPcode = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/valid-p-p-code', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //注册订单验证手机号
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const validPhone = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/valid-phone', params) | 
					
						
							| 
									
										
										
										
											2025-06-10 15:44:49 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //升级复购单确认
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const confirmOthOrder = params => | 
					
						
							| 
									
										
										
										
											2025-06-10 15:44:49 +08:00
										 |  |  |   http.post('/sale/api/retail-order/confirm-other-order', params) | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //嗨粉确认订单
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const confirmFunOrder = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/confirm-fun-order', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //协议
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const waresAgreement = params => | 
					
						
							|  |  |  |   http.post('/sale/api/wares/get-wares-agreement', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //海粉订单详情
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const waresinfo = params => | 
					
						
							|  |  |  |   http.post('/sale/api/wares/query-confirm-waresinfo', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //海粉订单确认
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const confirmShareOrder = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/confirm-share-order', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //删除地址
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const delAddress = data => | 
					
						
							|  |  |  |   http.delete('/member/api/member-address/' + data) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //省市区
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const areaList = params => | 
					
						
							|  |  |  |   http.get('system/api/area/get-level-list', { params }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //创客空间选择
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const list_maker = data => | 
					
						
							|  |  |  |   http.post( | 
					
						
							|  |  |  |     '/member/api/maker-space/list-maker?pageNum=' + | 
					
						
							|  |  |  |       data.pageNum + | 
					
						
							|  |  |  |       '&pageSize=' + | 
					
						
							|  |  |  |       data.pageSize, | 
					
						
							|  |  |  |     data | 
					
						
							|  |  |  |   ) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // 礼包获取邮费
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const queryAdressPostage = params => | 
					
						
							|  |  |  |   http.post('/sale/api/retail-order/self-order-postage', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | // 特殊会员完善信息
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const saveSpecial = params => | 
					
						
							|  |  |  |   http.post('/member/api/member-special/save-special', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | // 下载
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const specialExport = params => | 
					
						
							|  |  |  |   http.post('/member/api/member-special/special-export', params, { | 
					
						
							|  |  |  |     header: { 'Content-Type': 'application/x-www-form-urlencoded' }, | 
					
						
							|  |  |  |     responseType: 'blob', | 
					
						
							|  |  |  |   }) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | //特殊信息列表
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const specialList = params => | 
					
						
							|  |  |  |   http.get('/member/api/member-special/special-list', { params }) | 
					
						
							| 
									
										
										
										
											2025-04-08 17:51:03 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | // 创客空间接口
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const queryCard = params => | 
					
						
							|  |  |  |   http.post('/sale/api/wares/query-cabin-card', params) | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | //复购特殊商品列表
 | 
					
						
							| 
									
										
										
										
											2025-06-09 19:50:44 +08:00
										 |  |  | export const makerList = params => | 
					
						
							|  |  |  |   http.get('/sale/api/retail-order/list-maker-ware', { params }) |