diff --git a/components/vote-card/vote-card.vue b/components/vote-card/vote-card.vue
new file mode 100644
index 0000000..e389731
--- /dev/null
+++ b/components/vote-card/vote-card.vue
@@ -0,0 +1,330 @@
+
+
+
+
+
+ 单选
+ 多选
+ 双选PK
+
+
+ {{ vote.spec.title }}
+
+
+
+ 已结束
+ 进行中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ checkData.extendData.title }}
+
+ {{checkData.extendData.percent }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ checkData.extendData.title }}
+
+ {{checkData.extendData.percent }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{checkData.extendData.percent }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b2d997a..31d493b 100644
--- a/pages.json
+++ b/pages.json
@@ -279,6 +279,32 @@
}
}
}
+ },
+ {
+ "path": "votes/votes",
+ "style": {
+ "navigationBarTitleText": "投票列表",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "vote-detail/vote-detail",
+ "style": {
+ "navigationBarTitleText": "投票详情",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
}
]
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7d00a6f..6b99de3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,93 +1,132 @@
-
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabbar/about/about.vue b/pages/tabbar/about/about.vue
index 37d3dc1..cbb5dbd 100644
--- a/pages/tabbar/about/about.vue
+++ b/pages/tabbar/about/about.vue
@@ -1,593 +1,610 @@
-
-
-
-
-
- {{ bloggerInfo.nickname }}
-
- {{ bloggerInfo.description || '这个博主很懒,竟然没写介绍~' }}
-
-
-
-
+
+
+
+
+
+ {{ bloggerInfo.nickname }}
+
+ {{ bloggerInfo.description || '这个博主很懒,竟然没写介绍~' }}
+
+
+
+
-
-
-
-
-
-
-
-
-
- 内容数量
-
-
-
-
-
- 访客数量
-
-
-
-
-
- 分类总数
-
-
-
-
-
-
-
- 评论数量
-
+
+
+
+
+
+
+
+
+
+ 内容数量
+
+
+
+
+
+ 访客数量
+
+
+
+
+
+ 分类总数
+
+
+
+
+
+
+
+ 评论数量
+
-
-
-
-
- 点赞数量
-
-
-
-
-
+
+
+
+
+ 点赞数量
+
+
+
+
+
-
-
-
-
-
-
-
- {{ nav.rightText }}
-
-
-
-
-
-
-
- {{ copyrightConfig.content }}
-
-
+
+
+
+
+
+
+
+ {{ nav.rightText }}
+
+
+
+
+
+
+
+ {{ copyrightConfig.content }}
+
+
+ &::after {
+ border: none;
+ border-radius: 0;
+ transform: initial;
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue
index 24eb04e..cd3cd3a 100644
--- a/pages/tabbar/home/home.vue
+++ b/pages/tabbar/home/home.vue
@@ -1,617 +1,739 @@
-
-
-
-
-
-
-
- 搜索内容...
-
-
- {{ appInfo.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 精选分类
-
-
-
-
- 查看更多
-
-
-
-
-
- 还没有任何分类~
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 搜索内容...
+
+
+ {{ appInfo.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 最新列表
-
-
-
-
- 查看更多
-
-
-
-
-
-
-
-
-
-
-
-
- {{ loadMoreText }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+ 精选分类
+
+
+
+
+ 查看更多
+
+
+
+
+
+ 还没有任何分类~
+
+
+
+
+
+
+
+
+
+
+
+ 最新列表
+
+
+
+
+ 查看更多
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ loadMoreText }}
+
+
+
-
-
-
+
+
+
+ .ani-item {
+ width: 50%;
+ }
+ }
+
+ .nav-box {
+ padding: 24rpx 8rpx;
+ background-color: #ffff;
+ overflow: hidden;
+ margin-bottom: 24rpx;
+ }
+
+ .nav-list {
+ align-items: center;
+ // justify-content: space-between;
+ justify-content: space-around;
+ }
+
+ .nav-item {
+ font-size: 26rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 12rpx;
+ }
+
+ .nav-item-icon {
+ padding: 24rpx;
+ // border-radius: 24rpx 32rpx 24rpx 32rpx;
+ border-radius: 24rpx;
+ // border: 2rpx solid #fff;
+ }
+
+ .nav-item-text {
+ font-size: 24rpx;
+ }
+
\ No newline at end of file
diff --git a/pagesA/articles/articles.vue b/pagesA/articles/articles.vue
index 2332b53..ae35901 100644
--- a/pagesA/articles/articles.vue
+++ b/pagesA/articles/articles.vue
@@ -1,62 +1,70 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
- 文章
- 瞬间
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 文章
+ 瞬间
+
+ {{ item.title }}
- {{ item.title }}
-
-
-
-
- 最近更新时间:{{ {d: item.updateTimestamp, f: 'yyyy年MM月dd日 HH点mm分ss秒'} | formatTime }}
-
-
+
-
-
+
-
+
-
-
+
+
+
@@ -71,7 +79,10 @@
import MarkdownConfig from '@/common/markdown/markdown.config.js';
import mpHtml from '@/components/mp-html/components/mp-html/mp-html.vue';
+
+ import pluginAvailable from "@/common/mixins/pluginAvailable.js"
export default {
+ mixins: [pluginAvailable],
components: {
tmSkeleton,
tmSearch,
@@ -92,7 +103,7 @@
},
queryParams: {
keyword: "",
- limit: 5,
+ limit: 50,
highlightPreTag: "",
highlightPostTag: ""
},
@@ -111,17 +122,21 @@
return this.haloConfigs.auditConfig.auditModeEnabled
},
},
- onLoad() {
+ async onLoad() {
this.fnSetPageTitle('内容搜索');
- },
- created() {
+ // 检查插件
+ this.setPluginId(this.NeedPluginIds.PluginSearchWidget)
+ this.setPluginError("阿偶,检测到当前插件没有安装或者启用,无法使用瞬间功能哦,请联系管理员")
+ if (!await this.checkPluginAvailable()) return
if (!this.queryParams.keyword) {
this.loading = 'success'
} else {
this.fnGetData();
}
},
+
onPullDownRefresh() {
+ if (!this.uniHaloPluginAvailable) return;
this.fnResetSetAniWaitIndex();
this.fnGetData();
},
diff --git a/pagesA/vote-detail/vote-detail.vue b/pagesA/vote-detail/vote-detail.vue
new file mode 100644
index 0000000..b261545
--- /dev/null
+++ b/pagesA/vote-detail/vote-detail.vue
@@ -0,0 +1,680 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 投票信息
+
+
+
+ 投票类型:单选
+ 多选
+ 双选PK
+
+
+ 投票状态:已结束
+ 进行中
+
+
+ 投票方式:匿名
+ 不匿名
+
+
+ 投票说明:{{ vote.spec.remark||"暂无说明" }}
+
+
+ 截止时间:{{ {d: vote.spec.endDate, f: 'yyyy-MM-dd HH:mm'} | formatTime }}
+
+
+
+
+
+
+ 投票内容
+
+ {{ vote.spec.title }}
+
+
+
+ 投票选项 (最多选择 {{ vote.spec.maxVotes }} 项)
+
+
+
+
+
+
+ {{option.title }}
+
+
+ {{option.percent }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{option.title }}
+
+
+ {{option.percent }}%
+
+
+
+
+
+
+
+
+
+
+ {{option.percent }}%
+
+
+
+
+
+
+
+
+
+
+ 投票统计
+
+ {{ vote.stats.voteCount }}
+ 人已参与
+
+
+
+
+ 不允许匿名投票
+ 您已参与投票
+ 提交投票
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pagesA/votes/votes.vue b/pagesA/votes/votes.vue
new file mode 100644
index 0000000..4e3ce21
--- /dev/null
+++ b/pagesA/votes/votes.vue
@@ -0,0 +1,395 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ loadMoreText }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tm-vuetify/components/tm-checkbox/tm-checkbox.vue b/tm-vuetify/components/tm-checkbox/tm-checkbox.vue
index eb22cd3..99077af 100644
--- a/tm-vuetify/components/tm-checkbox/tm-checkbox.vue
+++ b/tm-vuetify/components/tm-checkbox/tm-checkbox.vue
@@ -2,7 +2,7 @@
-
+
({})
}
},
data() {
diff --git a/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue b/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue
index 46c8b03..56d79e4 100644
--- a/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue
+++ b/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue
@@ -17,6 +17,10 @@
*
*/
export default {
+ options: {
+ virtualHost: true,
+ styleIsolation: 'shared'
+ },
name:'tm-groupcheckbox',
props:{
// 最大选择数量
diff --git a/tm-vuetify/components/tm-radio/tm-radio.vue b/tm-vuetify/components/tm-radio/tm-radio.vue
index f2f365f..2b5342e 100644
--- a/tm-vuetify/components/tm-radio/tm-radio.vue
+++ b/tm-vuetify/components/tm-radio/tm-radio.vue
@@ -2,7 +2,7 @@
-
+