From a68bf43112907c14ed75e0f544f4f09f1f0abcb1 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 28 Aug 2026 13:56:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20uni-cms-article=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=8A=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-cms-article/pages/detail/preview.uvue | 11 + .../uni-cms-article/pages/detail/preview.vue | 255 ++++++++++++++++++ .../uni-cms-article/pages/list/list.vue | 0 uni_modules/uni-cms-article/pages_init.json | 37 +++ .../uniCloud/database/db_init.json | 23 ++ .../database/opendb-search-hot.schema.json | 31 +++ .../database/opendb-search-log.schema.json | 45 ++++ 7 files changed, 402 insertions(+) create mode 100644 uni_modules/uni-cms-article/pages/detail/preview.uvue create mode 100644 uni_modules/uni-cms-article/pages/detail/preview.vue create mode 100644 uni_modules/uni-cms-article/pages/list/list.vue create mode 100644 uni_modules/uni-cms-article/pages_init.json create mode 100644 uni_modules/uni-cms-article/uniCloud/database/db_init.json create mode 100644 uni_modules/uni-cms-article/uniCloud/database/opendb-search-hot.schema.json create mode 100644 uni_modules/uni-cms-article/uniCloud/database/opendb-search-log.schema.json diff --git a/uni_modules/uni-cms-article/pages/detail/preview.uvue b/uni_modules/uni-cms-article/pages/detail/preview.uvue new file mode 100644 index 0000000..39cdaf2 --- /dev/null +++ b/uni_modules/uni-cms-article/pages/detail/preview.uvue @@ -0,0 +1,11 @@ + + + + + diff --git a/uni_modules/uni-cms-article/pages/detail/preview.vue b/uni_modules/uni-cms-article/pages/detail/preview.vue new file mode 100644 index 0000000..80c8004 --- /dev/null +++ b/uni_modules/uni-cms-article/pages/detail/preview.vue @@ -0,0 +1,255 @@ + + + + + diff --git a/uni_modules/uni-cms-article/pages/list/list.vue b/uni_modules/uni-cms-article/pages/list/list.vue new file mode 100644 index 0000000..e69de29 diff --git a/uni_modules/uni-cms-article/pages_init.json b/uni_modules/uni-cms-article/pages_init.json new file mode 100644 index 0000000..5f3c69b --- /dev/null +++ b/uni_modules/uni-cms-article/pages_init.json @@ -0,0 +1,37 @@ + +{ + "pages": [ + { + "path": "uni_modules/uni-cms-article/pages/list/list", + "style": { + "navigationStyle": "custom", + "backgroundColor": "#FFFFFF", + "disableScroll": true + } + }, + { + "path": "uni_modules/uni-cms-article/pages/search/search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, { + "path": "uni_modules/uni-cms-article/pages/detail/detail", + "style": { + "navigationBarTitleText": "", + "backgroundColor": "#FFFFFF" + } + }, { + "path": "uni_modules/uni-cms-article/pages/detail/preview", + "style": { + "navigationBarTitleText": "", + "backgroundColor": "#FFFFFF" + } + }, { + "path": "uni_modules/uni-cms-article/pages/webview/webview", + "style": { + "navigationBarTitleText": "" + } + } + ] +} diff --git a/uni_modules/uni-cms-article/uniCloud/database/db_init.json b/uni_modules/uni-cms-article/uniCloud/database/db_init.json new file mode 100644 index 0000000..c00926f --- /dev/null +++ b/uni_modules/uni-cms-article/uniCloud/database/db_init.json @@ -0,0 +1,23 @@ +{ + "uni-cms-unlock-record": { + "data": [], + "index": [ + { + "IndexName": "unique_article_trans_", + "MgoKeySchema": { + "MgoIndexKeys": [{ + "Name": "unique_id", + "Direction": "1" + },{ + "Name": "article_id", + "Direction": "1" + },{ + "Name": "trans_id", + "Direction": "1" + }], + "MgoIsUnique": false + } + } + ] + } +} diff --git a/uni_modules/uni-cms-article/uniCloud/database/opendb-search-hot.schema.json b/uni_modules/uni-cms-article/uniCloud/database/opendb-search-hot.schema.json new file mode 100644 index 0000000..3476e07 --- /dev/null +++ b/uni_modules/uni-cms-article/uniCloud/database/opendb-search-hot.schema.json @@ -0,0 +1,31 @@ +{ + "bsonType": "object", + "required": [ + "content", + "count" + ], + "permission": { + "read": true, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "content": { + "bsonType": "string", + "description": "搜索内容" + }, + "count": { + "bsonType": "int", + "description": "搜索次数" + }, + "create_date": { + "bsonType": "timestamp", + "description": "统计时间" + } + }, + "version": "0.0.1" +} \ No newline at end of file diff --git a/uni_modules/uni-cms-article/uniCloud/database/opendb-search-log.schema.json b/uni_modules/uni-cms-article/uniCloud/database/opendb-search-log.schema.json new file mode 100644 index 0000000..c30c9d2 --- /dev/null +++ b/uni_modules/uni-cms-article/uniCloud/database/opendb-search-log.schema.json @@ -0,0 +1,45 @@ +{ + "bsonType": "object", + "required": [ + "content" + ], + "permission": { + "read": false, + "create": true, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "user_id": { + "bsonType": "string", + "description": "搜索人id,参考uni-id-users表" + }, + "device_id": { + "bsonType": "string", + "description": "设备id" + }, + "platform": { + "bsonType": "string", + "description": "设备平台,如:mp-weixin、app-plus等" + }, + "content": { + "bsonType": "string", + "description": "搜索内容" + }, + "ip": { + "bsonType": "string", + "description": "客户端IP地址", + "forceDefaultValue": { + "$env": "clientIP" + } + }, + "create_date": { + "bsonType": "timestamp", + "description": "统计时间" + } + }, + "version": "0.0.1" +}