From 8e35b74d861bd6b6da6981e74e033b3d90f430fc Mon Sep 17 00:00:00 2001
From: cs10086086 <1291454411@qq.com>
Date: Thu, 20 Mar 2025 19:32:09 +0800
Subject: [PATCH] info
---
App.vue | 5 +-
main.js | 3 +
pages.json | 676 ++++-----
pages/my/my.vue | 149 +-
.../arctcleCollectList/arctcleCollectList.vue | 10 +-
pages2/historyList/historyList.vue | 81 +-
pages2/replyCommentList/replyCommentList.vue | 7 +-
uni.scss | 4 +
.../database/cms-articles-collect.schema.json | 2 +-
.../components/hb-comment/hb-comment.vue | 94 +-
.../uni-cms-article/pages/detail/detail.uvue | 2 +-
.../uni-cms-article/pages/detail/detail.vue | 872 ++++++++++--
.../uni-cms-article/pages/list/list.nvue | 139 +-
.../uni-cms-article/pages/search/search.nvue | 1217 +++++++++--------
uni_modules/uni-id-pages/common/store.js | 2 +-
.../database/uni-id-users.schema.json | 974 ++++++-------
.../pages/personalpage/personalpage.vue | 773 +++++++++--
17 files changed, 3170 insertions(+), 1840 deletions(-)
diff --git a/App.vue b/App.vue
index d271472..fbc4eb0 100644
--- a/App.vue
+++ b/App.vue
@@ -15,6 +15,9 @@
-
diff --git a/main.js b/main.js
index a652dbd..5f1f4be 100644
--- a/main.js
+++ b/main.js
@@ -1,5 +1,8 @@
import App from './App'
+import uView from '@/uni_modules/uview-ui'
+Vue.use(uView)
+
// ================== Vue2 逻辑 ================== //
// #ifndef VUE3
import Vue from 'vue'
diff --git a/pages.json b/pages.json
index 1f6e5fb..4848430 100644
--- a/pages.json
+++ b/pages.json
@@ -1,326 +1,352 @@
{
- "pages": [{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "首页"
- }
- },
- {
- "path": "pages/articleContentDetail/articleContentDetail",
- "style": {
- "navigationBarTitleText": "鱼水情"
- }
- },
- {
- "path": "pages/editor/editor",
- "style": {
- "navigationBarTitleText": "编辑文章"
- }
- },
- {
- "path": "pages/my/my",
- "style": {
- "navigationBarTitleText": "个人中心"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/register/register",
- "style": {
- "navigationBarTitleText": "注册"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
- "style": {
- "navigationBarTitleText": "登录"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/login/login-withpwd",
- "style": {
- "navigationBarTitleText": "账号密码登录"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/login/login-smscode",
- "style": {
- "navigationBarTitleText": "手机验证码登录"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/userinfo",
- "style": {
- "navigationBarTitleText": "个人资料"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",
- "style": {
- "navigationBarTitleText": "绑定手机号码"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/register/register-by-email",
- "style": {
- "navigationBarTitleText": "邮箱验证码注册"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/retrieve/retrieve",
- "style": {
- "navigationBarTitleText": "重置密码"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",
- "style": {
- "navigationBarTitleText": "通过邮箱重置密码"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/common/webview/webview",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "修改密码"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/register/register-admin",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "注册管理员账号"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "设置密码"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",
- "style": {
- "navigationBarTitleText": "注销账号"
- }
- },
- {
- "path": "uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify",
- "style": {
- "enablePullDownRefresh": false,
- "navigationBarTitleText": "实名认证"
- }
- },
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTitleText": "login"
- }
- },
- {
- "path": "pages/test/test",
- "style": {
- "navigationBarTitleText": "test"
- }
- },
- {
- "path": "pages/preview/preview",
- "style": {
- "navigationBarTitleText": "preview"
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/article/list/list",
- "style": {
- "navigationBarTitleText": "文章列表"
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/article/add/add",
- "style": {
- "leftWindow": false,
- "navigationBarTitleText": "新增文章",
- "topWindow": true
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/article/edit/edit",
- "style": {
- "leftWindow": false,
- "navigationBarTitleText": "编辑文章",
- "topWindow": true
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/categories/list/list",
- "style": {
- "navigationBarTitleText": "分类列表"
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/categories/add/add",
- "style": {
- "navigationBarTitleText": "新增分类"
- }
- },
- {
- "path": "uni_modules/uni-cms/pages/categories/edit/edit",
- "style": {
- "navigationBarTitleText": "编辑分类"
- }
- },
- {
- "path": "uni_modules/uni-media-library/pages/index/index",
- "style": {
- "navigationBarTitleText": "媒体库"
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/list/list",
- "style": {
- "backgroundColor": "#FFFFFF",
- "disableScroll": true,
- "navigationStyle": "custom"
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/list/slist",
- "style": {
- "backgroundColor": "#FFFFFF",
- "disableScroll": true,
- "navigationStyle": "custom"
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/search/search",
- "style": {
- "navigationBarTitleText": "搜索"
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/detail/detail",
- "style": {
- "backgroundColor": "#FFFFFF",
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/detail/preview",
- "style": {
- "backgroundColor": "#FFFFFF",
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "uni_modules/uni-cms-article/pages/webview/webview",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "uni_modules/uni-pay/pages/success/success",
- "style": {
- "backgroundColor": "#F8F8F8",
- "navigationBarTitleText": "支付成功"
- }
- },
- {
- "path": "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview",
- "style": {
- "backgroundColor": "#F8F8F8",
- "navigationBarTitleText": "ad"
- }
- },
- {
- "path": "uni_modules/uni-pay/pages/pay-desk/pay-desk",
- "style": {
- "backgroundColor": "#F8F8F8",
- "navigationBarTitleText": "收银台"
- }
- },
- {
- "path": "uni_modules/zetank-personalpage/pages/personalpage/personalpage",
- "style": {
- "navigationBarTitleText": "个人主页",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom",
- "app-plus": {
- "bounce": "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
- },
- "mp-alipay": {
- "allowsBounceVertical": "NO"
- } // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
- }
-
- }
- ],
- "subPackages": [{
- "root": "pages2",
- "pages": [{
- "path": "historyList/historyList",
- "style": {
- "backgroundColor": "#F8F8F8",
- "navigationBarTitleText": "历史浏览"
- }
- },
- {
- "path": "arctcleCollectList/arctcleCollectList",
- "style": {
- "navigationBarTitleText": "我的收藏"
- }
- },
- {
- "path": "arctcleLikeList/arctcleLikeList",
- "style": {
- "navigationBarTitleText": "我的喜欢"
- }
- },
- {
- "path": "replyCommentList/replyCommentList",
- "style": {
- "navigationBarTitleText": ""
- }
- }
-
- ]
- }],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "军歌嘹亮",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- "uniIdRouter": {},
- "tabBar": {
- "color": "#7A7E83",
- "selectedColor": "#3cc51f",
- "borderStyle": "black",
- "backgroundColor": "#ffffff",
- "list": [{
- "pagePath": "uni_modules/uni-cms-article/pages/list/list",
- "text": "首页"
- },
- {
- "pagePath": "uni_modules/uni-cms-article/pages/list/slist",
- "text": "搜索"
- },
- {
- "pagePath": "pages/my/my",
- "text": "我的"
- }
- ]
- }
-}
\ No newline at end of file
+ "easycom" : {
+ "^u-(.*)" : "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
+ },
+ "pages" : [
+ {
+ "path" : "pages/index/index",
+ "style" : {
+ "navigationBarTitleText" : "首页"
+ }
+ },
+ {
+ "path" : "pages/articleContentDetail/articleContentDetail",
+ "style" : {
+ "navigationBarTitleText" : "鱼水情"
+ }
+ },
+ {
+ "path" : "pages/editor/editor",
+ "style" : {
+ "navigationBarTitleText" : "编辑文章"
+ }
+ },
+ {
+ "path" : "pages/my/my",
+ "style" : {
+ "navigationBarTitleText" : "个人中心"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/register/register",
+ "style" : {
+ "navigationBarTitleText" : "注册"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/login/login-withoutpwd",
+ "style" : {
+ "navigationBarTitleText" : "登录"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/login/login-withpwd",
+ "style" : {
+ "navigationBarTitleText" : "账号密码登录"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/login/login-smscode",
+ "style" : {
+ "navigationBarTitleText" : "手机验证码登录"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/userinfo",
+ "style" : {
+ "navigationBarTitleText" : "个人资料"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",
+ "style" : {
+ "navigationBarTitleText" : "绑定手机号码"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/register/register-by-email",
+ "style" : {
+ "navigationBarTitleText" : "邮箱验证码注册"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/retrieve/retrieve",
+ "style" : {
+ "navigationBarTitleText" : "重置密码"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",
+ "style" : {
+ "navigationBarTitleText" : "通过邮箱重置密码"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/common/webview/webview",
+ "style" : {
+ "enablePullDownRefresh" : false,
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",
+ "style" : {
+ "enablePullDownRefresh" : false,
+ "navigationBarTitleText" : "修改密码"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/register/register-admin",
+ "style" : {
+ "enablePullDownRefresh" : false,
+ "navigationBarTitleText" : "注册管理员账号"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",
+ "style" : {
+ "enablePullDownRefresh" : false,
+ "navigationBarTitleText" : "设置密码"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",
+ "style" : {
+ "navigationBarTitleText" : "注销账号"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify",
+ "style" : {
+ "enablePullDownRefresh" : false,
+ "navigationBarTitleText" : "实名认证"
+ }
+ },
+ {
+ "path" : "pages/login/login",
+ "style" : {
+ "navigationBarTitleText" : "login"
+ }
+ },
+ {
+ "path" : "pages/test/test",
+ "style" : {
+ "navigationBarTitleText" : "test"
+ }
+ },
+ {
+ "path" : "pages/preview/preview",
+ "style" : {
+ "navigationBarTitleText" : "preview"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/article/list/list",
+ "style" : {
+ "navigationBarTitleText" : "文章列表"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/article/add/add",
+ "style" : {
+ "leftWindow" : false,
+ "navigationBarTitleText" : "新增文章",
+ "topWindow" : true
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/article/edit/edit",
+ "style" : {
+ "leftWindow" : false,
+ "navigationBarTitleText" : "编辑文章",
+ "topWindow" : true
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/categories/list/list",
+ "style" : {
+ "navigationBarTitleText" : "分类列表"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/categories/add/add",
+ "style" : {
+ "navigationBarTitleText" : "新增分类"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms/pages/categories/edit/edit",
+ "style" : {
+ "navigationBarTitleText" : "编辑分类"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-media-library/pages/index/index",
+ "style" : {
+ "navigationBarTitleText" : "媒体库"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/list/list",
+ "style" : {
+ "backgroundColor" : "#FFFFFF",
+ "disableScroll" : true,
+ "navigationStyle" : "custom"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/list/slist",
+ "style" : {
+ "backgroundColor" : "#FFFFFF",
+ "disableScroll" : true,
+ "navigationStyle" : "custom"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/search/search",
+ "style" : {
+ "navigationBarTitleText" : "搜索"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/detail/detail",
+ "style" : {
+ "backgroundColor" : "#FFFFFF",
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/detail/preview",
+ "style" : {
+ "backgroundColor" : "#FFFFFF",
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "uni_modules/uni-cms-article/pages/webview/webview",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "uni_modules/uni-pay/pages/success/success",
+ "style" : {
+ "backgroundColor" : "#F8F8F8",
+ "navigationBarTitleText" : "支付成功"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview",
+ "style" : {
+ "backgroundColor" : "#F8F8F8",
+ "navigationBarTitleText" : "ad"
+ }
+ },
+ {
+ "path" : "uni_modules/uni-pay/pages/pay-desk/pay-desk",
+ "style" : {
+ "backgroundColor" : "#F8F8F8",
+ "navigationBarTitleText" : "收银台"
+ }
+ },
+ {
+ "path" : "uni_modules/zetank-personalpage/pages/personalpage/personalpage",
+ "style" : {
+ "app-plus" : {
+ "bounce" : "none"
+ },
+ "enablePullDownRefresh" : false,
+ "mp-alipay" : {
+ "allowsBounceVertical" : "NO"
+ },
+ "navigationBarTitleText" : "个人主页"
+ }
+ }
+ ],
+ "subPackages" : [
+ {
+ "root" : "pages2",
+ "easycom" : {
+ "^u-(.*)" : "../../uni_modules/uview-ui/components/u-$1/u-$1.vue"
+ },
+ "pages" : [
+ {
+ "path" : "historyList/historyList",
+ "style" : {
+ "backgroundColor" : "#F8F8F8",
+ "navigationBarTitleText" : "历史浏览"
+ }
+ },
+ {
+ "path" : "arctcleCollectList/arctcleCollectList",
+ "style" : {
+ "navigationBarTitleText" : "我的收藏"
+ }
+ },
+ {
+ "path" : "arctcleLikeList/arctcleLikeList",
+ "style" : {
+ "navigationBarTitleText" : "我的喜欢"
+ }
+ },
+ {
+ "path" : "replyCommentList/replyCommentList",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "balance/balance",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "withdraw/withdraw",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ },
+ {
+ "path" : "setting/setting",
+ "style" : {
+ "navigationBarTitleText" : ""
+ }
+ }
+ ]
+ }
+ ],
+ "globalStyle" : {
+ "navigationBarTextStyle" : "black",
+ "navigationBarTitleText" : "军歌嘹亮",
+ "navigationBarBackgroundColor" : "#F8F8F8",
+ "backgroundColor" : "#F8F8F8"
+ },
+ "uniIdRouter" : {},
+ "tabBar" : {
+ "color" : "#7A7E83",
+ "selectedColor" : "#3cc51f",
+ "borderStyle" : "black",
+ "backgroundColor" : "#ffffff",
+ "list" : [
+ {
+ "pagePath" : "uni_modules/uni-cms-article/pages/list/list",
+ "text" : "首页"
+ },
+ {
+ "pagePath" : "uni_modules/uni-cms-article/pages/list/slist",
+ "text" : "搜索"
+ },
+ {
+ "pagePath" : "pages/my/my",
+ "text" : "我的"
+ }
+ ]
+ }
+}
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 213577b..03b612f 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -25,7 +25,7 @@
@click="toSetting()">
-
+
@@ -157,7 +153,7 @@
return item;
},
async listLoad(data) {
- if(data[0].article_id) {
+ if(data.length !== 0) {
const listData = data.map(item => {
if (typeof item.article_id.thumbnail === 'string') {
item.article_id[0].thumbnail = [item.article_id[0].thumbnail]
@@ -179,6 +175,10 @@
this.listData = this.loadType === 'loadMore' ? this.listData.concat(listData) : listData
this.loadType = null
+ } else {
+
+ this.listData = this.loadType === 'loadMore' ? this.listData.concat([]) : []
+ this.loadType = null
}
},
diff --git a/pages2/historyList/historyList.vue b/pages2/historyList/historyList.vue
index 59992ac..4613aef 100644
--- a/pages2/historyList/historyList.vue
+++ b/pages2/historyList/historyList.vue
@@ -26,7 +26,18 @@
-
+
+
+
+ 该文章已被下架或删除
+
+
+ {{ "最近访问于:文章不存在"}}
+
+
+
+
+
-
- 111
-
+
@@ -159,13 +168,18 @@
return item;
},
async listLoad(data) {
+ if (data.lenght === 0) return;
+ console.log(data);
if(data[0].article_id) {
const listData = data.map(item => {
+ if (item.article_id.length === 0 ) return;
if (typeof item.article_id.thumbnail === 'string') {
item.article_id[0].thumbnail = [item.article_id[0].thumbnail]
}
- item.article_id[0].user_id = item.user_id[0];
console.log(item);
+ item.article_id[0].user_id = item.user_id[0];
+
+
item.article_id[0].last_view_time = new Date(item.last_view_time).getTime();
return item.article_id[0];
})
@@ -174,6 +188,7 @@
// 处理腾讯云文件链接
for (const article of listData) {
+ if (!article) continue;
const parseImages = await parseImageUrl(article.thumbnail)
article.thumbnail = parseImages ? parseImages.map(image => image.src) : []
@@ -272,7 +287,8 @@
}
-
\ No newline at end of file
diff --git a/pages2/replyCommentList/replyCommentList.vue b/pages2/replyCommentList/replyCommentList.vue
index d02a2ce..52e096c 100644
--- a/pages2/replyCommentList/replyCommentList.vue
+++ b/pages2/replyCommentList/replyCommentList.vue
@@ -216,7 +216,9 @@
update_time: new Date().getTime(item.update_time)
})
})
- this.listData = listData;
+
+ this.listData = this.loadType === 'loadMore' ? this.listData.concat(listData) : listData
+ this.loadType = null
},
// 初始化导航栏大小
initNavBarSize() {
@@ -252,9 +254,12 @@
// 刷新
refresh() {
this.loadType = 'refresh'
+ console.log(this.$refs.udb);
this.$refs.udb.loadData({
clear: true
}, () => {
+
+ console.log(1);
uni.stopPullDownRefresh()
// #ifdef APP-NVUE
this.showRefresh = false
diff --git a/uni.scss b/uni.scss
index b9249e9..004b7b5 100644
--- a/uni.scss
+++ b/uni.scss
@@ -14,6 +14,10 @@
/* 颜色变量 */
+/* uni.scss */
+@import '@/uni_modules/uview-ui/theme.scss';
+@import '@/uni_modules/uview-ui/index.scss';
+
/* 行为相关颜色 */
$uni-color-primary: #007aff;
$uni-color-success: #4cd964;
diff --git a/uniCloud-alipay/database/cms-articles-collect.schema.json b/uniCloud-alipay/database/cms-articles-collect.schema.json
index 2dae666..ba3ed0b 100644
--- a/uniCloud-alipay/database/cms-articles-collect.schema.json
+++ b/uniCloud-alipay/database/cms-articles-collect.schema.json
@@ -2,7 +2,7 @@
"bsonType": "object",
"required": ["user_id", "article_id", "last_view_time", "first_view_time"],
"permission": {
- "read": "doc.user_id == auth.uid || 'admin' in auth.role", // 用户仅查看自己记录
+ "read": true, // 用户仅查看自己记录
"create": "auth.uid != null", // 登录用户自动记录
"update": "false", // 日志不可修改
"delete": "'admin' in auth.role" // 仅管理员可删除
diff --git a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
index 0551d1b..09a95ee 100644
--- a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
+++ b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
@@ -1,7 +1,7 @@
+
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -165,11 +155,6 @@
data() {
return {
content: "",
- page: {
- total: 0,
- pageSize: 5,
- currentPage: 1
- },
templateSrc: "https://env-00jxt5y29hrd.normal.cloudstatic.cn/static/static/bg.jpg?expire_at=1741142837&er_sign=291c5dab058782f6472cf8792735686d",
where: '"article_status" == 1', // 查询条件
showRefresh: false, // 是否显示刷新按钮
@@ -184,8 +169,6 @@
}
},
onLoad() {
- console.log(5);
- this.getPage();
},
async onReady() {
@@ -204,18 +187,19 @@
dialogClose() {
console.log('点击关闭')
},
+ inputDialogToggle() {
+ this.$refs.inputDialog.open()
+ },
btn(item) {
- if (item in [1, 3, 4, 5, 6, 7]) {
+ if (item === 0) {
+ this.inputDialogToggle();
+ } if ([1, 3, 4, 5, 6, 7].indexOf(item) !== -1) {
uni.switchTab({
url: "/uni_modules/uni-cms-article/pages/list/slist"
})
- }
- if (item === 0) {
- this.content = "老兵直播";
} else if (item === 2) {
let token = uni.getStorageSync("uni_id_token");
console.log(token);
-
if (!token) {
uni.navigateTo({
url:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=weixin"
@@ -236,11 +220,6 @@
}
return item;
},
- async getPage() {
- let res = await uniCloud.importObject("uni-cms-articles").getTotal();
- console.log(res);
- this.page.total = res.total;
- },
change(currentPage, type) { // 当前页改变
this.page.currentPage = currentPage;
diff --git a/uni_modules/uni-cms-article/pages/search/search.nvue b/uni_modules/uni-cms-article/pages/search/search.nvue
index fb3a3a9..6ecb9da 100644
--- a/uni_modules/uni-cms-article/pages/search/search.nvue
+++ b/uni_modules/uni-cms-article/pages/search/search.nvue
@@ -10,7 +10,7 @@
-
+
@@ -22,8 +22,9 @@