50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
export default {
|
|
userwxlogin(data) { //登录
|
|
return uni.api.post("/login/wx/custom/login", data);
|
|
},
|
|
productqueryProduct(data) { //获取商品信息
|
|
return uni.api.post("/product/queryProduct", data);
|
|
},
|
|
cartadd(data) { //添加到购物车
|
|
return uni.api.post("/cart/add", data);
|
|
},
|
|
cartcartList(data) { //购物车
|
|
return uni.api.get("/cart/cartList", data);
|
|
},
|
|
logincreateCardNo(data) { //获取会员码
|
|
return uni.api.get("/login/createCardNo", data);
|
|
},
|
|
cartupdateNumber(data) { //购物车更改数量
|
|
return uni.api.get("/cart/updateNumber", data);
|
|
},
|
|
ordercreatOrder(data) { //下单
|
|
return uni.api.post("/order/creatOrder", data);
|
|
},
|
|
cartclear(data) { //清空购物车
|
|
return uni.api.get("/cart/clear", data);
|
|
},
|
|
payorderPay(data) { //订单支付
|
|
return uni.api.post("/pay/orderPay", data);
|
|
},
|
|
orderorderList(data) { //订单列表
|
|
return uni.api.get("/order/orderList", data);
|
|
},
|
|
orderorderInfo(data) { //订单回显
|
|
return uni.api.get("/order/orderInfo", data);
|
|
},
|
|
loginwxuserInfo(data) { //微信用户详情
|
|
return uni.api.get("/login/wx/userInfo", data);
|
|
},
|
|
paymemeberIn(data) { //充值
|
|
return uni.api.post("/pay/memeberIn", data);
|
|
},
|
|
paymodfiyOrderInfo(data) { //查询订单支付状态
|
|
return uni.api.post("/pay/modfiyOrderInfo", data);
|
|
},
|
|
productqueryProductSku(data) { //通过选中的商品规格查询价格
|
|
return uni.api.get("/product/queryProductSku", data);
|
|
},
|
|
logingetPhoneNumber(data) { //小程序获取手机号
|
|
return uni.api.post("/login/getPhoneNumber", data);
|
|
},
|
|
} |