From 30261f183adba4a02558de35b94617d4dd799703 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Thu, 19 Sep 2024 01:21:26 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 9 +++ assets/css/v12-style.less | 4 +- pages/cart.vue | 112 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 117 insertions(+), 8 deletions(-) diff --git a/api/user.js b/api/user.js index 059e450..ebfe155 100644 --- a/api/user.js +++ b/api/user.js @@ -576,4 +576,13 @@ export function getUserSpreadRule(param) { */ export function getHistory(params) { return request.get('/history/list', params) +} + +/** + * 购物车猜你喜欢 + * @param {*} params + * @returns + */ +export function getUserLike(params) { + return request.get('/cart/guessYouLike',params) } \ No newline at end of file diff --git a/assets/css/v12-style.less b/assets/css/v12-style.less index 5cbea89..a5a4b62 100644 --- a/assets/css/v12-style.less +++ b/assets/css/v12-style.less @@ -3,8 +3,8 @@ @dark-color: #333333; @white-color: #fff; -@colors: #C52733, #333333, #fff, #666, #F0F0F0, #999999, #E92727; -@classnames: primary, dark, white, secondary-dark, grey, dark1, red; +@colors: #C52733, #333333, #fff, #666, #F0F0F0, #999999, #E92727, #FFC543; +@classnames: primary, dark, white, secondary-dark, grey, dark1, red, yellow; /*=====================================*/ each(@colors, { diff --git a/pages/cart.vue b/pages/cart.vue index 4f85e0b..14b98ce 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -23,8 +23,7 @@ - + + + + + + + + + + + + + + + {{ item.storeName }} + + + {{ item.bestContent }} + + + + {{ item.couponName }} + + + + + {{ item.price }} + + + + + + + + + - + \ No newline at end of file