From f818161dc9d2c7fdf25d54286391c911605ec366 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com>
Date: Tue, 13 Apr 2021 17:16:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0banner=E9=BB=98=E8=AE=A4?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=B9=B6=E5=BF=BD=E7=95=A5=E8=AF=A5?=
=?UTF-8?q?=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 3 ++-
pages/list/news-list.vue | 5 ++--
uniCloud-aliyun/database/db_init.json | 37 ---------------------------
3 files changed, 5 insertions(+), 40 deletions(-)
diff --git a/.gitignore b/.gitignore
index 28f03308..f2c7bea7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@ unpackage/
node_modules
.DS_Store
uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id/config.json
-manifest.json
\ No newline at end of file
+manifest.json
+pages/grid/banner.json
\ No newline at end of file
diff --git a/pages/list/news-list.vue b/pages/list/news-list.vue
index c359c140..8d0ddbc5 100644
--- a/pages/list/news-list.vue
+++ b/pages/list/news-list.vue
@@ -27,7 +27,7 @@
-
@@ -54,6 +54,7 @@
+
@@ -107,7 +108,7 @@
},
methods: {
/**
- * 切换商品列表布局方向
+ * 切换列表布局方向
*/
select() {
this.formData.waterfall = !this.formData.waterfall;
diff --git a/uniCloud-aliyun/database/db_init.json b/uniCloud-aliyun/database/db_init.json
index de2c7bc8..06ae57c2 100644
--- a/uniCloud-aliyun/database/db_init.json
+++ b/uniCloud-aliyun/database/db_init.json
@@ -1,43 +1,6 @@
// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init
// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
{
- "opendb-banner": {
- "data": [{
- "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "open_url": "https://www.dcloud.io/",
- "title": "内容 A",
- "sort": 0,
- "category_id": "grid",
- "status": true,
- "description": "备注"
- },
- {
- "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "open_url": "https://www.dcloud.io/",
- "title": "内容 B",
- "sort": 0,
- "category_id": "grid",
- "status": true,
- "description": "备注"
- }, {
- "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "open_url": "https://www.dcloud.io/",
- "title": "内容 C",
- "sort": 0,
- "category_id": "grid",
- "status": true,
- "description": "备注"
- }, {
- "bannerfile": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "open_url": "https://www.dcloud.io/",
- "title": "内容 D",
- "sort": 0,
- "category_id": "grid",
- "status": true,
- "description": "备注"
- }
- ]
- },
"opendb-news-articles-detail": {
"data": [{
"article_status": 1,
--
GitLab