From bb1d32a20cb770b0c84a72b6afef8bfef75a54da Mon Sep 17 00:00:00 2001 From: ld0104 <3037885725@qq.com> Date: Thu, 20 Oct 2022 19:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=BD=AE=E6=92=AD=E5=9B=BE=EF=BC=8C?= =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=EF=BC=8C=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E6=88=91=E4=BB=AC=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/public.js | 2 + api/store.js | 27 +- api/user.js | 26 + pages/activity/activity/index.vue | 22 +- pages/home/index.vue | 1867 +++++++++-------- .../Evaluations/EvaluationDetail/index.vue | 26 +- pages/shop/GoodsCollection/index.vue | 738 ++++--- pages/shop/brands/index.vue | 24 +- pages/user/AboutUs/index.vue | 21 +- pages/user/PersonalData/index.vue | 3 + pages/user/Problem/index.vue | 84 +- pages/user/coupon/GetCoupon/index.vue | 22 +- pages/user/signIn/Sign/index.vue | 1 + 13 files changed, 1582 insertions(+), 1281 deletions(-) diff --git a/api/public.js b/api/public.js index fe8d4b1..98a1139 100644 --- a/api/public.js +++ b/api/public.js @@ -17,6 +17,8 @@ export function getCanvas() { return request.get("/getCanvas?terminal=3", {}, { login: false }); } + + /** * 热门榜单 * @returns {*} diff --git a/api/store.js b/api/store.js index a9d2c5d..8469f78 100644 --- a/api/store.js +++ b/api/store.js @@ -1,4 +1,13 @@ import request from "@/utils/request"; +/** + * 获取各类轮播图 + * + */ +export function getBanner(type) { + return request.get("/menu/banner/"+type,{}, { login: false }); +} + + /* * 商品分类 @@ -209,15 +218,15 @@ export function getBrands() { login: false }); } -/** - * 添加收藏 - * - */ -export function getUserCollection(data) { - console.log(9999999966); - return request.post("/collectEvaluation/add", data, { - login: true - }); +/** + * 添加收藏 + * + */ +export function getUserCollection(data) { + console.log(9999999966); + return request.post("/collectEvaluation/add", data, { + login: true + }); } /** * diff --git a/api/user.js b/api/user.js index 32f4512..1e9644a 100644 --- a/api/user.js +++ b/api/user.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import { dataFormat } from '../utils' /** * 省市区 @@ -195,6 +196,17 @@ export function getCollectUser(page, limit, type) { type, }) } +/** + * + * 获取评测收藏 + */ +export function getCollectEvaluation(page, limit, type) { + return request.get('/collectEvaluation/user', { + page: page, + limit: limit, + type, + }) +} /* * 删除收藏产品 @@ -442,3 +454,17 @@ export function setDetection() { export function getRechargeApi() { return request.get('recharge/index') } + +/** + * 常见问题 + */ +export function getProblem() { + return request.get('/menu/problem',{}) +} +/** + * 关于我们 + */ +export function getAboutUs() { + return request.get('/menu/aboutUs',{}) +} + diff --git a/pages/activity/activity/index.vue b/pages/activity/activity/index.vue index 819de7f..9ff1eb2 100644 --- a/pages/activity/activity/index.vue +++ b/pages/activity/activity/index.vue @@ -15,7 +15,7 @@ 选品标准 - + @@ -96,7 +97,7 @@