From 898b8166551a84320bc31d901d3b4ddd4df6d138 Mon Sep 17 00:00:00 2001 From: cs10086 <1291454411@qq.com> Date: Fri, 13 Jun 2025 20:45:47 +0800 Subject: [PATCH] test --- components/cloud-image.vue | 13 +- index.html | 4 + package.json | 27 +- pages.json | 689 +++++++------- pages/editor/editor.vue | 72 -- pages/my/my.vue | 34 + pages/preview/preview.vue | 167 ---- pages2/setting/setting.vue | 462 +++++---- .../cloudfunctions/article_info/index.obj.js | 110 ++- .../cms-articles-log/package.json | 8 +- .../cloudfunctions/comments/index.obj.js | 4 +- .../ext-storage-co/index.obj.js | 62 +- .../ext-storage-co/package.json | 19 +- .../uni-cms-articles/index.obj.js | 171 ++++ .../cloudfunctions/user-info/index.obj.js | 37 +- .../cloudfunctions/user-info/package.json | 2 +- .../database/comment_like.schema.json | 40 +- .../database/opendb-admin-menus.schema.json | 60 +- .../database/opendb-app-list.schema.json | 365 +------ .../database/opendb-banner.schema.json | 55 +- .../database/opendb-news-articles.schema.json | 166 +--- .../opendb-news-categories.schema.json | 51 +- .../database/opendb-news-comments.schema.json | 69 +- .../database/opendb-news-favorite.schema.json | 47 +- .../database/opendb-search-hot.schema.json | 28 +- .../database/opendb-search-log.schema.json | 32 +- .../database/opendb-sms-log.schema.json | 64 +- .../database/opendb-sms-task.schema.json | 82 +- .../database/opendb-tempdata.schema.json | 23 +- uniCloud-alipay/database/package.json | 3 +- .../database/uni-id-scores.schema.json | 45 +- .../database/uni-id-tag.schema.json | 53 +- .../database/uni-id-users.schema.json | 472 +-------- .../database/uni-pay-orders.schema.json | 253 +---- .../uni-stat-app-versions.schema.json | 39 +- .../uni-stat-error-source-map.schema.json | 62 +- .../database/uni-stat-pay-result.schema.json | 170 +--- .../components/hb-comment/hb-comment.vue | 162 +++- .../database/opendb-verify-codes.schema.json | 46 +- .../uni-cms-article/common/parse-image-url.js | 34 +- .../list-template/left-small-cover.vue | 1 + .../render-article-detail/index.vue | 6 +- .../uni-cms-article/pages/detail/detail.vue | 898 +++++++++++++++--- .../uni-cms-article/pages/detail/preview.vue | 255 ----- .../uni-cms-article/pages/list/list.nvue | 34 +- .../uniCloud/database/db_init.json | 23 - .../database/uni-cms-articles.schema.ext.js | 1 + .../database/uni-cms-articles.schema.json | 441 +++++---- uni_modules/uni-list/changelog.md | 2 + .../uni-list-item/uni-list-item.vue | 4 +- uni_modules/uni-list/package.json | 2 +- .../database/uni-media-library.schema.json | 66 +- 52 files changed, 2250 insertions(+), 3785 deletions(-) delete mode 100644 pages/editor/editor.vue delete mode 100644 pages/preview/preview.vue delete mode 100644 uni_modules/uni-cms-article/pages/detail/preview.vue delete mode 100644 uni_modules/uni-cms-article/uniCloud/database/db_init.json diff --git a/components/cloud-image.vue b/components/cloud-image.vue index be3bc9b..603aeaf 100644 --- a/components/cloud-image.vue +++ b/components/cloud-image.vue @@ -1,6 +1,6 @@ @@ -51,7 +51,7 @@ }, watch: { src:{ - handler(src) { + async handler(src) { if (src&&src.substring(0, 8) == "cloud://") { uniCloud.getTempFileURL({ @@ -59,7 +59,14 @@ }).then(res=>{ this.cSrc = res.fileList[0].tempFileURL }) - }else{ + } else if (src&&src.substring(0, 8) == "qiniu://") { + console.log(src) + const uniCloudStorageExtCo = uniCloud.importObject("ext-storage-co"); + const res = await uniCloudStorageExtCo.getTempFileURL({src: src}); + console.log(res.fileList[0].tempFileURL) + this.cSrc = res.fileList[0].tempFileURL + + } else { this.cSrc = src } }, diff --git a/index.html b/index.html index c3ff205..1bc7027 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,10 @@ + + + + - - diff --git a/pages/my/my.vue b/pages/my/my.vue index 3f75419..52e5460 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -83,6 +83,18 @@ arrow: true, type: 'my_follow' }, + { + name: '新增文章', + icon: '/static/center/icon-follow.png', + arrow: true, + type: 'edit_cms' + }, + { + name: '文章管理', + icon: '/static/center/icon-follow.png', + arrow: true, + type: 'cms_list' + }, { name: '提现', icon: '/static/center/withdraw.png', @@ -218,6 +230,28 @@ url: "/pages2/replyCommentList/replyCommentList" }) } + } else if (e.type === "cms_list") { + let token = uni.getStorageSync("uni_id_token"); + console.log(token); + + if (!token) { + this.toLogin(); + } else { + uni.navigateTo({ + url: "/pages2/edit_list/edit_list" + }) + } + } else if (e.type === "edit_cms") { + let token = uni.getStorageSync("uni_id_token"); + console.log(token); + + if (!token) { + this.toLogin(); + } else { + uni.navigateTo({ + url: "/pages2/editCms/editCms" + }) + } } else if (e.type === "my_collect") { let token = uni.getStorageSync("uni_id_token"); console.log(token); diff --git a/pages/preview/preview.vue b/pages/preview/preview.vue deleted file mode 100644 index 89af6ef..0000000 --- a/pages/preview/preview.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - - - diff --git a/pages2/setting/setting.vue b/pages2/setting/setting.vue index 925a784..d8d5214 100644 --- a/pages2/setting/setting.vue +++ b/pages2/setting/setting.vue @@ -1,21 +1,12 @@