diff --git a/api/activity.js b/api/activity.js new file mode 100644 index 0000000..319099c --- /dev/null +++ b/api/activity.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// api地址 +const api = { + data: 'sharp.home/data', + list: 'sharp.goods/list', + getImage: 'goods/getCommonConfig', + getImage: 'goods/getCommonConfig', + getImage: 'goods/getCommonConfig', + chartsGoodsJing: 'goods/chartsGoodsJing', + chartsGoodsList: "goods/chartsGoodsList", + brandList: 'goods/brandList', + charts: "goods/charts" +} +// 新品 +export const brandList = (data) => { + return request.get(api.brandList, data) +} +// 预售专区 +export const list = () => { + return request.get(api.list, {}, { + load: false + }) +} +// 秒杀活动首页 +export const data = () => { + return request.get(api.data, {}, { + load: false + }) +} +// 轮播 +export const getImage = (data) => { + return request.get(api.getImage, data) +} +// 排行精选 +export const chartsGoodsJing = (data) => { + return request.get(api.chartsGoodsJing, data) +} +// 排行精选商品 +export const chartsGoodsList = (data) => { + return request.get(api.chartsGoodsList, data) +} +// 排行类 +export const charts = (data) => { + return request.get(api.charts, data) +} diff --git a/api/order.js b/api/order.js index 1113f06..98f78eb 100644 --- a/api/order.js +++ b/api/order.js @@ -9,9 +9,14 @@ const api = { cancel: 'order/cancel', extractQrcode: 'order/extractQrcode', receipt: 'order/receipt', - pay: 'order/pay' + pay: 'order/pay', + del:'order/del', + orderfast:'order/orderfast' +} +// 催单 +export function orderfast(param, option) { + return request.get(api.orderfast, param, option) } - // 当前用户待处理的订单数量 export function todoCounts(param, option) { return request.get(api.todoCounts, param, option) @@ -46,3 +51,11 @@ export function receipt(orderId, data) { export function extractQrcode(orderId, param) { return request.get(api.extractQrcode, { orderId, ...param }) } +// 核销二维码 +export function del(orderId, param) { + return request.get(api.del, { orderId, ...param }) +} +// // 删除订单 +// export function delete(orderId, param) { +// return request.get(api.delete, { orderId, ...param }) +// } \ No newline at end of file diff --git a/api/order/comment.js b/api/order/comment.js index f0d57b8..7960a66 100644 --- a/api/order/comment.js +++ b/api/order/comment.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // api地址 const api = { list: 'order.comment/list', - submit: 'order.comment/submit' + submit: 'order.comment/submit', } // 待评价订单商品列表 diff --git a/api/user/vip.js b/api/user/vip.js new file mode 100644 index 0000000..ff6171a --- /dev/null +++ b/api/user/vip.js @@ -0,0 +1,21 @@ +import request from '@/utils/request' + +// api地址 +const api = { + brandList: 'goods/brandList', + category: 'category/list', + getImage: 'goods/getCommonConfig', +} + +// 大牌 +export const brandList = (data) => { + return request.get(api.brandList, data) +} +// 分类 +export const category = (data) => { + return request.get(api.category, data) +} +// 轮播 +export const getImage = (data) => { + return request.get(api.getImage, data) +} diff --git a/pages.json b/pages.json index 32615b1..68da053 100644 --- a/pages.json +++ b/pages.json @@ -786,6 +786,34 @@ "enablePullDownRefresh": false } }, + { + "path": "charts", + "style": { + "navigationBarTitleText": "排行榜列表", + "enablePullDownRefresh": false + } + }, + { + "path": "ranking", + "style": { + "navigationBarTitleText": "排行榜", + "enablePullDownRefresh": false + } + }, + { + "path": "newGoods", + "style": { + "navigationBarTitleText": "新品首发", + "enablePullDownRefresh": false + } + }, + { + "path": "seckill", + "style": { + "navigationBarTitleText": "限时抢购", + "enablePullDownRefresh": false + } + }, { "path": "presaleRule", "style": { @@ -819,7 +847,7 @@ } ] - }, + }, { "root": "pages/news1/", "pages": [{ @@ -902,5 +930,6 @@ "easycom": { "autoscan": true, "custom": {} - } -} \ No newline at end of file + }, + "sitemapLoaction": "sitemap.json" +} diff --git a/pages/activity/charts.vue b/pages/activity/charts.vue index 47f41ec..fd3dcda 100644 --- a/pages/activity/charts.vue +++ b/pages/activity/charts.vue @@ -1,43 +1,44 @@