feat:0820需求
This commit is contained in:
+11
-2
@@ -42,14 +42,23 @@ export function updateGoodsNum(data) {
|
||||
|
||||
|
||||
// 查询结算列表
|
||||
export function getSettleList(data) {
|
||||
export function getSettleList(data) {
|
||||
// return request.post('/common/getSmsCode',qs.stringify(params));
|
||||
return request({
|
||||
url: "/cart/getSettleList",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 立即购买预结算(含优惠券可用性和抵扣后金额)
|
||||
export function getDirectSettleList(data) {
|
||||
return request({
|
||||
url: "/cart/getDirectSettleList",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 结算下单
|
||||
export function settle(data) {
|
||||
|
||||
+50
-50
@@ -6,38 +6,38 @@ import request from '@/utils/request.js'; // 引入封装的方法
|
||||
export function getUserList(data) {
|
||||
// data.appId = APPID;
|
||||
return request({
|
||||
url: "/common/getSmsCode",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
url: "/common/getSmsCode",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联地区
|
||||
export function getCascadeRegion(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeRegion",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
url: "/common/getCascadeRegion",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询级联类目
|
||||
export function getCascadeCategory(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeCategory",
|
||||
method: "get",
|
||||
data,
|
||||
isShowLoading:false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 查询级联类目
|
||||
export function getCascadeCategory(data) {
|
||||
return request({
|
||||
url: "/common/getCascadeCategory",
|
||||
method: "get",
|
||||
data,
|
||||
isShowLoading: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 查询支持的银行
|
||||
export function getSupportBank(data) {
|
||||
return request({
|
||||
url: "/common/getSupportBank",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/common/getSupportBank",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export function uploadImage(params) {
|
||||
const formData = new FormData();
|
||||
formData.append("file", params.file);
|
||||
formData.append("type", params.type);
|
||||
return request.post('/common/upload/image',formData);
|
||||
return request.post('/common/upload/image', formData);
|
||||
}
|
||||
|
||||
export const uploadImg = "/common/upload/image";
|
||||
@@ -59,9 +59,9 @@ export const uploadImg = "/common/upload/image";
|
||||
*/
|
||||
export function getSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/getSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/common/getSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -71,9 +71,9 @@ export function getSharePoster(data) {
|
||||
*/
|
||||
export function generateSharePoster(data) {
|
||||
return request({
|
||||
url: "/common/generateSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/common/generateSharePoster",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -83,43 +83,43 @@ export function generateSharePoster(data) {
|
||||
*/
|
||||
export function getCarouselImage(data) {
|
||||
return request({
|
||||
url: "/common/getCarouselImage",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/common/getCarouselImage",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function getWithdraw(data) {
|
||||
return request({
|
||||
url: "/withdrawAccount/getWithdrawAccountsList",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/withdrawAccount/getWithdrawAccountsList",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function bindWithdraw(data) {
|
||||
return request({
|
||||
url: "/withdrawAccount/bindWithdrawAccount",
|
||||
method: "post",
|
||||
data,
|
||||
cha:1
|
||||
url: "/withdrawAccount/bindWithdrawAccount",
|
||||
method: "post",
|
||||
data,
|
||||
cha: 1
|
||||
});
|
||||
}
|
||||
|
||||
export function unbindWithdraw(data) {
|
||||
return request({
|
||||
url: "/withdrawAccount/unbindWithdrawAccount",
|
||||
method: "get",
|
||||
data,
|
||||
url: "/withdrawAccount/unbindWithdrawAccount",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
export function sendWithdraw(data) {
|
||||
return request({
|
||||
url: "/withdraw/withdraw",
|
||||
method: "post",
|
||||
data,
|
||||
cha:1
|
||||
url: "/withdraw/withdraw",
|
||||
method: "post",
|
||||
data,
|
||||
cha: 1
|
||||
});
|
||||
}
|
||||
|
||||
@@ -129,9 +129,9 @@ export function sendWithdraw(data) {
|
||||
*/
|
||||
export function checkAppVersion(data) {
|
||||
return request({
|
||||
url: "/common/checkAppVersion",
|
||||
method: "post",
|
||||
data,
|
||||
url: "/common/checkAppVersion",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request.js';
|
||||
|
||||
/**
|
||||
* 查询领券中心列表
|
||||
* @param {Object} data { page, pageSize }
|
||||
*/
|
||||
export function getReceiveCenterList(data) {
|
||||
return request({
|
||||
url: "/coupon/getReceiveCenterList",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 领取优惠券
|
||||
* @param {Object} data { templateId }
|
||||
*/
|
||||
export function receiveCoupon(data) {
|
||||
return request({
|
||||
url: "/coupon/receive",
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询我的优惠券列表 (分页)
|
||||
* @param {Object} data { status, page, pageSize }
|
||||
* status: 1-待使用,2-已使用,3-已过期,4-已失效;不传为全部
|
||||
*/
|
||||
export function getMyCouponPage(data) {
|
||||
return request({
|
||||
url: "/coupon/getMyCouponPage",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询商品详情优惠券列表
|
||||
* @param {Object} data { goodsId }
|
||||
*/
|
||||
export function getGoodsCouponList(data) {
|
||||
return request({
|
||||
url: "/coupon/getGoodsCouponList",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询优惠券适用商品列表 (分页)
|
||||
* @param {Object} data { templateId, sort, page, pageSize }
|
||||
*/
|
||||
export function getApplicableGoods(data) {
|
||||
return request({
|
||||
url: "/coupon/getApplicableGoods",
|
||||
method: "get",
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user