From 86f1443b420f6fc6f6e843eebcdc01c44d82485d Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Mon, 2 Feb 2026 10:55:40 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E5=88=A0=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=95=86=E5=93=81=E6=B5=8F=E8=A7=88=E8=B6=B3=E8=BF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 6 +++++- pages/user/History/index.vue | 40 ++++++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/api/user.js b/api/user.js index dd1ed6d..bc264e6 100644 --- a/api/user.js +++ b/api/user.js @@ -578,6 +578,10 @@ export function getHistory(params) { return request.get('/history/list', params) } +export function deleteHistory(id) { + return request.delete(`/history/${id}`) +} + /** * 购物车猜你喜欢 * @param {*} params @@ -598,4 +602,4 @@ export function queryUserGuide(params) { export function setUserGuide(params) { return request.post('/user/guide/status', params) -} \ No newline at end of file +} diff --git a/pages/user/History/index.vue b/pages/user/History/index.vue index 66a3887..c47ee13 100644 --- a/pages/user/History/index.vue +++ b/pages/user/History/index.vue @@ -27,6 +27,13 @@ class="v12-white v12-radius-20 history-card" @click="goodsDetail(historyItem)" > + + +