diff --git a/src/api/platform/cart.js b/src/api/platform/cart.js new file mode 100644 index 0000000..add285e --- /dev/null +++ b/src/api/platform/cart.js @@ -0,0 +1,10 @@ +import request from "@/utils/request"; + +// 查询购物车列表 +export function listCart(query) { + return request({ + url: "/platform/cart/list", + method: "get", + params: query, + }); +} diff --git a/src/views/platform/buyDetail.vue b/src/views/platform/buyDetail.vue new file mode 100644 index 0000000..ed0ed85 --- /dev/null +++ b/src/views/platform/buyDetail.vue @@ -0,0 +1,92 @@ + + + \ No newline at end of file diff --git a/src/views/platform/cart.vue b/src/views/platform/cart.vue new file mode 100644 index 0000000..3ca83c8 --- /dev/null +++ b/src/views/platform/cart.vue @@ -0,0 +1,64 @@ + + \ No newline at end of file diff --git a/src/views/platform/discount.vue b/src/views/platform/discount.vue new file mode 100644 index 0000000..1879151 --- /dev/null +++ b/src/views/platform/discount.vue @@ -0,0 +1,98 @@ + + + \ No newline at end of file diff --git a/src/views/platform/result/card.vue b/src/views/platform/result/card.vue new file mode 100644 index 0000000..203558c --- /dev/null +++ b/src/views/platform/result/card.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file diff --git a/src/views/platform/result/collect.vue b/src/views/platform/result/collect.vue new file mode 100644 index 0000000..ac8c525 --- /dev/null +++ b/src/views/platform/result/collect.vue @@ -0,0 +1,65 @@ + + + \ No newline at end of file diff --git a/src/views/platform/result/history.vue b/src/views/platform/result/history.vue new file mode 100644 index 0000000..0548b60 --- /dev/null +++ b/src/views/platform/result/history.vue @@ -0,0 +1,72 @@ + + + \ No newline at end of file diff --git a/src/views/platform/walletDetail.vue b/src/views/platform/walletDetail.vue new file mode 100644 index 0000000..2500049 --- /dev/null +++ b/src/views/platform/walletDetail.vue @@ -0,0 +1,132 @@ + + + \ No newline at end of file diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 6139c3e..0025d42 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -128,18 +128,30 @@ - 钱包明细 - 购买明细 + + + + + + - 浏览记录 - 收藏记录 - 购物车 + + + + + + + + + - 优惠券 + + + @@ -174,10 +186,16 @@ import { getAvatar } from "@/utils"; import baseForm from "./profile/baseForm" import platformAddress from "@/views/platform/address" import platformFollower from "@/views/platform/follower" +import platformCart from "@/views/platform/cart" +import platformCollect from "@/views/platform/result/collect" +import platformHistory from "@/views/platform/result/history" +import platformDiscount from "@/views/platform/discount" +import platformBuyDetail from "@/views/platform/buyDetail" +import platformWalletDetail from "@/views/platform/walletDetail" export default { name: "User", dicts: ['sys_normal_disable', 'sys_user_sex'], - components: { baseForm, platformAddress, platformFollower }, + components: { baseForm, platformAddress, platformFollower, platformCart, platformCollect, platformDiscount, platformHistory, platformBuyDetail, platformWalletDetail }, data() { return { // 遮罩层 @@ -451,7 +469,11 @@ export default { } }; -