|
@@ -606,6 +606,18 @@ export function collectGetCollectSet(option) {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 用户收藏(单个收藏)
|
|
|
+ */
|
|
|
+export function collectUserCollect(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/Collect/userCollect',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
* 获取用户收藏列表
|
|
|
*/
|
|
|
export function collectGetUserCollectList(option) {
|
|
@@ -630,6 +642,17 @@ export function collectCancelCollect(option) {
|
|
|
// Trolley 购物车
|
|
|
|
|
|
/**
|
|
|
+ * 获取购物车列表
|
|
|
+ */
|
|
|
+export function trolleyGetTrolleyList(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/Trolley/getTrolleyList',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
* 商品添加购物车(按规格加入)
|
|
|
*/
|
|
|
export function trolleyAddTrolley(option) {
|
|
@@ -639,3 +662,96 @@ export function trolleyAddTrolley(option) {
|
|
|
...option,
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 某商品是否添加到购物
|
|
|
+ */
|
|
|
+export function trolleyGetTrolleyByGoodsId(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/Trolley/getTrolleyByGoodsId',
|
|
|
+ method: 'POST',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+// UserRank 会员区域代理&&分销
|
|
|
+
|
|
|
+/**
|
|
|
+ * 申请(编辑)成为区域代理
|
|
|
+ */
|
|
|
+export function userRankApplyAgency(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/User_rank/applyAgency',
|
|
|
+ method: 'POST',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+// /**
|
|
|
+// * 验证区域代理
|
|
|
+// */
|
|
|
+export function userRankCheckAgency(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/User_rank/checkAgency',
|
|
|
+ method: 'POST',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取我的区域申请记录
|
|
|
+ */
|
|
|
+export function userRankGetAgencyApply(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/User_rank/getAgencyApply',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 申请(编辑)成为分销商
|
|
|
+ */
|
|
|
+export function userRankApplyPartner(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/User_rank/applyPartner',
|
|
|
+ method: 'POST',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取成为分销商记录申请记录
|
|
|
+ */
|
|
|
+export function userRankGetPartnerApply(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/User_rank/getPartnerApply',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+// Order 订单
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取订单列表
|
|
|
+ */
|
|
|
+export function orderGetOrderList(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/Order/getOrderList',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 获取订单详情
|
|
|
+ */
|
|
|
+export function orderGetOrderDetail(option) {
|
|
|
+ return request({
|
|
|
+ url: '/api/Order/getOrderDetail',
|
|
|
+ method: 'GET',
|
|
|
+ ...option,
|
|
|
+ });
|
|
|
+}
|
|
|
+
|