From 775dc191c8daed1b939cee5cd6665e0d5bde735b Mon Sep 17 00:00:00 2001
From: syt <854400391@qq.com>
Date: Tue, 30 Jan 2024 22:27:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/article/index.js | 7 +-
api/goods/index.js | 8 +-
api/newFun.js | 17 +++
pages/goods/list.vue | 2 +-
pages/news/article/add.vue | 85 ++++++++------
pages/news/article/classify.vue | 60 +++-------
pages/news/article/detail.vue | 52 ++++++++-
pages/news/article/index.vue | 173 ++++++++++++++++++++++------
pages/news/park/browsingHistory.vue | 19 ++-
pages/user/index.vue | 3 +-
10 files changed, 298 insertions(+), 128 deletions(-)
create mode 100644 api/newFun.js
diff --git a/api/article/index.js b/api/article/index.js
index a5411f7..9e92141 100644
--- a/api/article/index.js
+++ b/api/article/index.js
@@ -3,7 +3,12 @@ import request from '@/utils/request'
// api地址
const api = {
list: 'article/list',
- detail: 'article/detail'
+ detail: 'article/detail',
+ del: 'article/del'
+}
+// 文章列表
+export function del(param, option) {
+ return request.post(api.del, param, option)
}
// 文章列表
diff --git a/api/goods/index.js b/api/goods/index.js
index f00b463..e780286 100644
--- a/api/goods/index.js
+++ b/api/goods/index.js
@@ -1,7 +1,8 @@
import request from '@/utils/request'
// api地址
-const api = {
+const api = {
+ browseHistory: 'cart/list',
list: 'goods/list',
detail: 'goods/detail',
basic: 'goods/basic',
@@ -10,6 +11,11 @@ const api = {
recommended: 'goods/recommended',
poster: 'goods/poster'
}
+
+// 商品浏览记录
+export const browseHistory = (param, option) => {
+ return request.get(api.browseHistory, param, option)
+}
// 商品列表
export const list = (param, option) => {
diff --git a/api/newFun.js b/api/newFun.js
new file mode 100644
index 0000000..4754d3f
--- /dev/null
+++ b/api/newFun.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+// api地址
+const api = {
+ list: 'shop/list',
+ detail: 'shop/detail'
+}
+
+// 自提门店列表
+export const inviteList = (param) => {
+ return request.get(api.list, param)
+}
+
+// 门店详情
+export const detail = (shopId) => {
+ return request.get(api.detail, { shopId })
+}
diff --git a/pages/goods/list.vue b/pages/goods/list.vue
index e92208e..0450efd 100644
--- a/pages/goods/list.vue
+++ b/pages/goods/list.vue
@@ -129,7 +129,7 @@
@@ -283,6 +258,7 @@
white-space: nowrap;
line-height: 70rpx;
padding-left: 80rpx;
+ text-align: left;
box-sizing: border-box;
&-on{
color: #FF624F;
diff --git a/pages/news/article/detail.vue b/pages/news/article/detail.vue
index a752a91..5357fdd 100644
--- a/pages/news/article/detail.vue
+++ b/pages/news/article/detail.vue
@@ -1,20 +1,60 @@
- 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB
- 2024-01-08 14:30:40
- 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB
+ {{detail.title}}
+ {{detail.createTime}}
+
diff --git a/pages/news/article/index.vue b/pages/news/article/index.vue
index 5a4bd49..8c5bf12 100644
--- a/pages/news/article/index.vue
+++ b/pages/news/article/index.vue
@@ -1,41 +1,43 @@
-
-
+
+
-
-
+
+
-
+
新增
-
+
-
+
-
-
+
+
-
- 荣耀畅玩 40 Plus 全网通5G版 绿8GB+128GB
-
- 这是文章内容这是文章内容这是文章内容这是文章内容这是文章..
-
+
+ {{a.title}}
+
-
-
+
+
@@ -157,6 +250,14 @@
font-weight: 500;
color: #3B3B3B;
}
+ .desc{
+ word-break: break-all;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ }
}
}
}
diff --git a/pages/news/park/browsingHistory.vue b/pages/news/park/browsingHistory.vue
index cb42f82..e4f2403 100644
--- a/pages/news/park/browsingHistory.vue
+++ b/pages/news/park/browsingHistory.vue
@@ -1,14 +1,14 @@
- 操作
+ {{isToggle?'操作':'编辑'}}
今天
-
+
@@ -41,10 +41,12 @@
-