acdr-ui/dist/build/mp-weixin/sheep/api/trade/cart.js

2 lines
557 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";const t=require("../../request/index.js"),e={addCart:e=>t.request({url:"/trade/cart/add",method:"POST",data:e,custom:{showSuccess:!0,successMsg:"已添加到购物车~"}}),updateCartCount:e=>t.request({url:"/trade/cart/update-count",method:"PUT",data:e}),updateCartSelected:e=>t.request({url:"/trade/cart/update-selected",method:"PUT",data:e}),deleteCart:e=>t.request({url:"/trade/cart/delete",method:"DELETE",params:{ids:e}}),getCartList:()=>t.request({url:"/trade/cart/list",method:"GET",custom:{showLoading:!1,auth:!0}})};exports.CartApi=e;