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 @@