From 2da5869dd6178470a248b69e8e808c3fb4c2bd02 Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Tue, 6 Feb 2024 17:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=E4=B8=8E?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/article/index.js | 14 +- api/goods/index.js | 5 + pages.json | 2 +- pages/activity/newPeople.vue | 17 +- pages/activity/newsshop.vue | 5 +- pages/activity/presale.vue | 2 +- pages/activity/presaleRule.vue | 5 - pages/activity/ranking.vue | 3 +- pages/activity/seckill.vue | 3 +- pages/index/index.vue | 84 ++++++---- pages/news/article/add.vue | 114 ++++++++++++-- pages/news/article/classify.vue | 48 +++++- pages/news/article/detail.vue | 2 +- pages/news/article/index.vue | 42 ++--- pages/news/coupon/index.vue | 4 +- pages/news/park/browsingHistory.vue | 168 +++++++++++++++----- pages/serve/pay.vue | 234 ++++++++++++++++++++++++++++ pages/user/vip/goods.vue | 12 +- utils/request/index.js | 2 +- 19 files changed, 623 insertions(+), 143 deletions(-) create mode 100644 pages/serve/pay.vue diff --git a/api/article/index.js b/api/article/index.js index 1914fcb..892b1f7 100644 --- a/api/article/index.js +++ b/api/article/index.js @@ -4,14 +4,18 @@ import request from '@/utils/request' const api = { list: 'article/list', detail: 'article/detail', - del: 'storeKeeper/articleDelete', - edit: 'storeKeeper/articleEdit', - add: 'storeKeeper/articleAdd', + del: 'article/delete', + edit: 'article/edit', + add: 'article/add', articleCatList: 'article.category/list', - articleCatAdd: 'storeKeeper/articleCatAdd', - articleCatDelete: 'storeKeeper/articleCatDelete', + articleCatAdd: 'article/addCategory', + articleCatDelete: 'article/articleCatDelete', articleCatEdit: 'storeKeeper/articleCatEdit' } +// 文章分类列表 新增 +export function articleCatAdd(param, option) { + return request.post(api.articleCatAdd, param, option) +} // 文章分类列表 export function articleCatList(param, option) { return request.get(api.articleCatList, param, option) diff --git a/api/goods/index.js b/api/goods/index.js index 741348e..ed4ab14 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -17,6 +17,11 @@ const api = { export const browseHistoryList = (param, option) => { return request.get('goods/browseLog', param, option) } + +// 商品浏览记录 删除 +export const browseHistoryDel = (param, option) => { + return request.post('goods/browseDel', param, option) +} // 取消预约 export const canlpresale = (data) => { diff --git a/pages.json b/pages.json index ae7d714..8621520 100644 --- a/pages.json +++ b/pages.json @@ -531,7 +531,7 @@ { "path": "article/detail", "style": { - "navigationBarTitleText": "文章详情", + "navigationBarTitleText": "", "enablePullDownRefresh": false } }, diff --git a/pages/activity/newPeople.vue b/pages/activity/newPeople.vue index c6cb1a6..5f33273 100644 --- a/pages/activity/newPeople.vue +++ b/pages/activity/newPeople.vue @@ -35,19 +35,18 @@ ¥{{item.goods_price_min}} - 200+条评论 99%好评率 + {{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率 - + @@ -255,12 +243,16 @@ color: #3B3B3B; } .desc{ + font-size: 26rpx; + color: #999; + height: 100rpx; + line-height: 50rpx; word-break: break-all; - text-overflow: ellipsis; - overflow: hidden; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; + text-overflow: ellipsis; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; } } } diff --git a/pages/news/coupon/index.vue b/pages/news/coupon/index.vue index db58136..f45e714 100644 --- a/pages/news/coupon/index.vue +++ b/pages/news/coupon/index.vue @@ -1,7 +1,7 @@