diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index deedd6931f8fb90e5c97ac0e16a101dc44b8b31c..d5e80dfae2079bc27d35308346d46303afa385f8 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -1,90 +1,90 @@
-
-
-
-
-
-
-
- 以下是部分模板示例,更多模板见插件市场:
-
-
-
-
- {{ item.name }}
-
-
-
-
-
+
+
+
+
+
+
+ 以下是部分模板示例,更多模板见插件市场:
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
- {{ page.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+ },
+ {
+ id: 'calendar',
+ url: 'calendar',
+ name: '日历',
+ open: false,
+ pages: [] as Page[],
+ },{
+ id: 'schema',
+ url: 'schema',
+ name: '打开外部链接',
+ open: false,
+ pages: [] as Page[],
+ },
+ ] as ListItem[],
+ arrowUpIcon: '/static/icons/arrow-up.png',
+ arrowDownIcon: '/static/icons/arrow-down.png',
+ arrowRightIcon: '/static/icons/arrow-right.png',
+ }
+ },
+ methods: {
+ triggerCollapse(index: number, item: ListItem) {
+ if (item.pages.length == 0) {
+ const page: Page = {
+ name: item.name,
+ enable: item.enable,
+ url: item.url!,
+ }
+ this.goDetailPage(page)
+ return
+ }
+ for (var i = 0; i < this.list.length; ++i) {
+ if (index == i) {
+ this.list[i].open = !this.list[i].open
+ } else {
+ this.list[i].open = false
+ }
+ }
+ },
+ goDetailPage(e: Page) {
+ if (e.enable == false) {
+ uni.showToast({
+ icon: 'none',
+ title: '暂不支持',
+ })
+ return
+ }
+ const url =
+ e.url.indexOf('platform') > -1
+ ? e.url
+ : `/pages/template/${e.url}/${e.url}`
+ uni.navigateTo({
+ url,
+ })
+ },
+ },
+}
+
+
+