From 946bb52c03e28edcc5a9051da0ce1eef6bc17230 Mon Sep 17 00:00:00 2001
From: JaylenTech <350683609@qq.com>
Date: Tue, 8 Feb 2022 19:55:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6=E6=BC=94?=
=?UTF-8?q?=E7=A4=BA=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=96=B9=E4=BE=BF=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=EF=BC=8C=E5=8E=BB=E9=99=A4tn-button=E7=9A=84=E9=BB=98=E8=AE=A4?=
=?UTF-8?q?=E8=83=8C=E6=99=AF=E8=89=B2=EF=BC=8Ctn-avatar=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8Dtn-avatar-group=E6=9C=80=E5=BC=80=E5=A7=8B=E5=A4=B4?=
=?UTF-8?q?=E5=83=8F=E8=BF=9B=E8=A1=8C=E4=BA=86=E5=81=8F=E7=A7=BB=E3=80=81?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=E7=9A=84bug=EF=BC=8Ctn-badge=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8Ctn-collap?=
=?UTF-8?q?se-item=E4=BF=AE=E5=A4=8D=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?=
=?UTF-8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98=EF=BC=8C=E6=BB=9A=E5=8A=A8?=
=?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=A7=BB=E9=99=A4=E9=BB=98=E8=AE=A4=E8=83=8C?=
=?UTF-8?q?=E6=99=AF=E9=A2=9C=E8=89=B2=E5=92=8C=E5=AD=97=E4=BD=93=E5=A4=A7?=
=?UTF-8?q?=E5=B0=8F=EF=BC=8Ctn-count-down=E4=BF=AE=E5=A4=8D=E6=97=B6?=
=?UTF-8?q?=E9=97=B4=E5=8D=95=E4=BD=8D=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=8Ctn-nav-bar=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8F=AF=E8=BF=9B=E8=A1=8C=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E7=9A=84=E5=9B=BE=E6=A0=87=EF=BC=8Ctn-step=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E7=82=B9=E5=87=BB=E6=AD=A5=E9=AA=A4=E8=BF=9B=E8=A1=8C?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=EF=BC=8Ctn-loading=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=BF=80=E6=B4=BB=E9=A2=9C=E8=89=B2=E5=87=BA?=
=?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=EF=BC=8Ctn-tag=E7=A7=BB=E9=99=A4?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=EF=BC=8C?=
=?UTF-8?q?=E4=BC=98=E5=8C=96=E9=98=B4=E5=BD=B1=E5=A4=A7=E5=B0=8Fcss?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
basicPage/avatar/avatar.vue | 339 +++----
basicPage/badge/badge.vue | 239 ++---
basicPage/border/border.vue | 210 ++---
basicPage/button/button.vue | 279 ++----
basicPage/color/color.vue | 93 +-
basicPage/flex-layout/flex-layout.vue | 523 ++++-------
basicPage/shadow/shadow.vue | 127 +--
basicPage/tag/tag.vue | 291 ++----
basicPage/test/test.vue | 245 -----
componentsPage/action-sheet/action-sheet.vue | 2 +-
componentsPage/calendar/calendar.vue | 2 +-
componentsPage/collapse/collapse.vue | 221 ++---
componentsPage/count-down/count-down.vue | 188 +---
componentsPage/count-scroll/count-scroll.vue | 118 +--
componentsPage/count-to/count-to.vue | 118 +--
componentsPage/fab/fab.vue | 196 ++++
componentsPage/form/form.vue | 2 +-
componentsPage/image-upload/image-upload.vue | 2 +-
.../index-list/avatar/index-list.vue | 70 ++
componentsPage/index-list/base/index-list.vue | 63 ++
componentsPage/index-list/index-list.vue | 73 +-
componentsPage/list/list.vue | 565 ++++++-----
componentsPage/loading/loading.vue | 129 ++-
componentsPage/modal/modal.vue | 6 +-
componentsPage/nav-bar/nav-bar.vue | 100 +-
componentsPage/notice-bar/notice-bar.vue | 311 ++-----
componentsPage/number-box/number-box.vue | 191 +---
componentsPage/picker/picker.vue | 2 +-
componentsPage/popup/popup.vue | 2 +-
componentsPage/progress/progress.vue | 231 ++---
componentsPage/rate/rate.vue | 203 ++--
componentsPage/read-more/read-more.vue | 149 +--
componentsPage/scroll-list/scroll-list.vue | 115 +--
componentsPage/select/select.vue | 2 +-
componentsPage/slider/slider.vue | 198 +---
componentsPage/steps/steps.vue | 165 ++--
componentsPage/sticky/sticky.vue | 72 +-
componentsPage/swipe-action/swipe-action.vue | 205 ++--
componentsPage/swiper/swiper.vue | 229 +----
componentsPage/switch/switch.vue | 167 ++--
componentsPage/tabs/tabs.vue | 255 +----
componentsPage/tips/tips.vue | 2 +-
componentsPage/toast/toast.vue | 4 +-
.../verification-code/verification-code.vue | 2 +-
libs/components/demo-title.vue | 90 ++
libs/components/dynamic-demo-template.vue | 31 +-
libs/components/multiple-options-demo.vue | 147 +++
libs/components/nav-index-button.vue | 2 +-
mock/components_page.js | 5 +
mock/template_page.js | 95 +-
pages.json | 45 +-
pages/template/template.vue | 66 +-
pages/tuniao/tuniao.vue | 15 -
templatePage/health/qrcode/qrcode.vue | 106 ++-
templatePage/home/course/course.vue | 86 +-
templatePage/home/screen/screen.vue | 102 +-
templatePage/life/browser/browser.vue | 238 -----
templatePage/life/candle/candle.vue | 625 +++++++++++++
templatePage/life/pano/pano.vue | 23 +
templatePage/life/plus/plus.vue | 51 +-
templatePage/login/demo1/demo1.vue | 2 +-
templatePage/login/demo2/demo2.vue | 4 +-
templatePage/login/demo3/demo3.vue | 401 ++++++++
templatePage/login/demo4/demo4.vue | 420 +++++++++
templatePage/time/clock/clock.vue | 874 ++++++++++++++++++
.../tn-avatar-group/tn-avatar-group.vue | 36 +-
tuniao-ui/components/tn-avatar/tn-avatar.vue | 4 +-
tuniao-ui/components/tn-badge/tn-badge.vue | 15 +-
tuniao-ui/components/tn-button/tn-button.vue | 18 +-
.../tn-collapse-item/tn-collapse-item.vue | 4 +
.../tn-column-notice/tn-column-notice.vue | 4 +-
.../tn-count-down/tn-count-down.vue | 6 +-
tuniao-ui/components/tn-fab/tn-fab.vue | 523 +++++++++++
.../components/tn-form-item/tn-form-item.vue | 2 +-
.../tn-image-upload/tn-image-upload.vue | 81 +-
.../components/tn-list-view/tn-list-view.vue | 19 +-
tuniao-ui/components/tn-modal/tn-modal.vue | 39 +-
.../components/tn-nav-bar/tn-nav-bar.vue | 31 +-
tuniao-ui/components/tn-popup/tn-popup.vue | 11 +-
.../tn-row-notice/tn-row-notice.vue | 4 +-
tuniao-ui/components/tn-steps/tn-steps.vue | 44 +-
tuniao-ui/components/tn-sticky/tn-sticky.vue | 3 +
tuniao-ui/components/tn-switch/tn-switch.vue | 2 +-
tuniao-ui/components/tn-tabbar/tn-tabbar.vue | 1 +
.../tn-tabs-swiper/tn-tabs-swiper.vue | 2 +-
tuniao-ui/components/tn-tabs/tn-tabs.vue | 2 +-
tuniao-ui/components/tn-tag/tn-tag.vue | 11 +-
tuniao-ui/libs/config/zIndex.js | 1 +
tuniao-ui/libs/css/color.scss | 2 +-
tuniao-ui/libs/css/main.scss | 9 +
tuniao-ui/libs/css/style.h5.scss | 3 -
tuniao-ui/libs/css/style.mp.scss | 3 -
tuniao-ui/libs/function/colorUtils.js | 8 +-
tuniao-ui/theme.scss | 1 +
94 files changed, 6296 insertions(+), 4727 deletions(-)
delete mode 100644 basicPage/test/test.vue
create mode 100644 componentsPage/fab/fab.vue
create mode 100644 componentsPage/index-list/avatar/index-list.vue
create mode 100644 componentsPage/index-list/base/index-list.vue
create mode 100644 libs/components/demo-title.vue
create mode 100644 libs/components/multiple-options-demo.vue
delete mode 100644 templatePage/life/browser/browser.vue
create mode 100644 templatePage/life/candle/candle.vue
create mode 100644 templatePage/life/pano/pano.vue
create mode 100644 templatePage/login/demo3/demo3.vue
create mode 100644 templatePage/login/demo4/demo4.vue
create mode 100644 templatePage/time/clock/clock.vue
create mode 100644 tuniao-ui/components/tn-fab/tn-fab.vue
diff --git a/basicPage/avatar/avatar.vue b/basicPage/avatar/avatar.vue
index 7db362f..c1bdc66 100644
--- a/basicPage/avatar/avatar.vue
+++ b/basicPage/avatar/avatar.vue
@@ -1,6 +1,6 @@
-
+
头像
@@ -8,38 +8,104 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -48,30 +114,13 @@
diff --git a/basicPage/badge/badge.vue b/basicPage/badge/badge.vue
index e1a2afe..b8f8e90 100644
--- a/basicPage/badge/badge.vue
+++ b/basicPage/badge/badge.vue
@@ -1,6 +1,6 @@
-
+
微标
@@ -8,40 +8,66 @@
-
-
-
- {{ value }}
-
-
-
-
-
- {{ value }}
+
+
+ 0
+ 0
+ 99
+ 99+
+
+
+
+
+
+ 0
+ 0
+ 99
+ 99+
+
+
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+ 99+
-
-
+
+
+ 99+
+
+
+
+
+ 99+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -50,151 +76,30 @@
diff --git a/basicPage/border/border.vue b/basicPage/border/border.vue
index 303a649..a3c9e82 100644
--- a/basicPage/border/border.vue
+++ b/basicPage/border/border.vue
@@ -1,6 +1,6 @@
-
+
边框
@@ -8,13 +8,100 @@
-
-
- tuniao
-
+
+
+ 四周边框
+
+
+ 顶部边框
+
+
+ 右边边框
+
+
+ 下面边框
+
+
+ 左边边框
+
+
+
+
+
+ 四周边框
+
+
+ 顶部边框
+
+
+ 右边边框
+
+
+ 下面边框
+
+
+ 左边边框
+
+
+
+
+
+ 四周边框
+
+
+ 顶部边框
+
+
+ 右边边框
+
+
+ 下面边框
+
+
+ 左边边框
+
+
+
+
+
+ 隐藏上边框
+
+
+ 隐藏右边框
+
+
+ 隐藏下边框
+
+
+ 隐藏左边框
+
+
+ 隐藏上边框
+
+
+ 隐藏右边框
+
+
+ 隐藏下边框
+
+
+ 隐藏左边框
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -23,117 +110,32 @@
diff --git a/basicPage/button/button.vue b/basicPage/button/button.vue
index 01d67a9..02183f5 100644
--- a/basicPage/button/button.vue
+++ b/basicPage/button/button.vue
@@ -1,6 +1,6 @@
-
+
按钮
@@ -8,31 +8,77 @@
-
-
- 演示按钮
-
-
-
-
-
+
+ 按钮
+
+
+
+
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+
+
+ 按钮
+ 按钮
+ 按钮
+
+
+ 按钮
+
+
+
+
+ 按钮
+ 按钮
+
+
+
+
+
+
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+
+
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+
+
+
+
+
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+
+
+
+
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+ 按钮
+ 镂空无边框
+
+
+
+ 按钮
+
+
+
+ 按钮
+
+
+
@@ -41,190 +87,23 @@
diff --git a/basicPage/color/color.vue b/basicPage/color/color.vue
index f9fc54f..d0cc126 100644
--- a/basicPage/color/color.vue
+++ b/basicPage/color/color.vue
@@ -28,12 +28,10 @@
@@ -41,8 +39,18 @@
-
-
+
+
图鸟基础配色
@@ -342,18 +350,23 @@
},
// 当前选中的颜色序号
currentColorIndex: 0,
- colorSelectFlag: false,
+ // 内容容器滚动容器滚动的位置
+ containerScrollTop: 0,
+ // 标记是否正在更新数据
+ isUpdateColorInfo: false,
+ // 内容区域刷新标志
+ containerRefreshFlag: false,
// 当前选中颜色的色值信息
selectColorInfo: {}
}
},
onLoad() {
- this.initScrollViewHeight()
+
},
onReady() {
// 等待加载组件完成
setTimeout(() => {
- this.getPickerColorItemInfo()
+ this.initScrollViewHeight()
}, 10)
},
methods: {
@@ -362,11 +375,39 @@
// 获取当前屏幕的安全高度
uni.getSystemInfo({
success: (systemInfo) => {
- this.scrollViewStyle.height = systemInfo.safeArea.height - this.vuex_custom_bar_height + systemInfo
- .statusBarHeight + 'px'
+ this.scrollViewStyle.height = (systemInfo.safeArea.height - this.vuex_custom_bar_height + systemInfo.statusBarHeight) + 'px'
+ this.getPickerColorItemInfo()
}
})
},
+ // 内容容器滚动事件
+ containerScroll(e) {
+ // console.log(e);
+ // this.containerScrollTop = e.detail.scrollTop
+ },
+ // 内容scroll-view下拉刷新事件
+ containerRefresh(e) {
+ // console.log(e);
+ if (this.containerRefreshFlag) return
+ this.containerRefreshFlag = true
+ setTimeout(() => {
+ this.containerRefreshFlag = false
+ }, 10)
+ if (this.currentColorIndex - 1 < 0 || this.isUpdateColorInfo) return
+ this.pickerColorClick(this.currentColorIndex - 1)
+
+ },
+ // 内容scroll-view滚动到底部触发事件
+ containerScrollLower(e) {
+ // console.log(e);
+ if (e.detail.direction === 'bottom') {
+ // console.log(e.detail.direction);
+ // 触发底部
+ // if (this.currentColorIndex + 1 > this.colorList.length || this.isUpdateColorInfo) return
+ // console.log('update');
+ // this.pickerColorClick(this.currentColorIndex + 1)
+ }
+ },
// 获取色值列表的位置信息
getPickerColorItemInfo() {
// 获取picker容器的信息
@@ -399,7 +440,7 @@
},
// 色值选择
pickerColorClick(index) {
- if (this.colorSelectFlag === false || index === this.currentColorIndex) {
+ if (index === this.currentColorIndex) {
return
}
this.currentColorIndex = index
@@ -408,23 +449,27 @@
},
// 设置选中圆环信息
updatePickerColorSelectItem() {
- // 先设置已选中状态为false,然后再设置选中圆环的位置信息,等待动画执行完毕后在设置已选中状态为true
- this.colorSelectFlag = false
-
const colorInfos = this.pickerColorInfos[this.currentColorIndex]
this.colorSelectItemStyle.top = colorInfos.x - uni.upx2px(40) + 'px'
this.colorSelectItemStyle.left = colorInfos.y - uni.upx2px(40) + 'px'
-
- setTimeout(() => {
- this.colorSelectFlag = true
- }, 10)
},
// 设置选中颜色的信息
updateSelectColorInfo() {
if (this.currentColorIndex === 0) {
return
}
- this.selectColorInfo = this.colorList[this.currentColorIndex - 1]
+ this.isUpdateColorInfo = true
+ this.$t.messageUtils.loading('加载中...')
+ // this.containerScrollTop = Math.random()
+ setTimeout(() => {
+ // this.containerScrollTop = 0
+ this.selectColorInfo = this.colorList[this.currentColorIndex - 1]
+ this.$t.messageUtils.closeLoading()
+ this.isUpdateColorInfo = false
+ }, 10)
+ // setTimeout(() => {
+
+ // }, 1000)
}
}
}
@@ -580,7 +625,8 @@
border-radius: 50%;
position: absolute;
top: 0;
- transform: rotate(225deg);
+ // transform: rotate(225deg);
+ transform: rotate(45deg);
&.right-circle {
right: 0;
@@ -596,9 +642,9 @@
// transition: transform 0.3s cubic-bezier(0,.13,0,1.43);
}
- &--active {
- transform: rotate(45deg);
- }
+ // &--active {
+ // transform: rotate(45deg);
+ // }
}
}
}
@@ -619,6 +665,8 @@
padding: 30rpx;
overflow: hidden;
transform-origin: 0 50%;
+ // opacity: 0;
+ // transition: opacity 0.2s ease;
// transform: scaleX(0) rotate(-90deg);
// transform: rotateY(-90deg);
// transform: scaleX(0);
@@ -628,6 +676,7 @@
// transform: scaleX(1) rotate(0deg);
// transform: rotateY(0deg);
// transform: scaleX(1);
+ opacity: 1;
}
&--title {
diff --git a/basicPage/flex-layout/flex-layout.vue b/basicPage/flex-layout/flex-layout.vue
index 5bbc5a2..3e04056 100644
--- a/basicPage/flex-layout/flex-layout.vue
+++ b/basicPage/flex-layout/flex-layout.vue
@@ -1,22 +1,14 @@
-
+
Flex布局
-
-
-
-
+
-
-
- 固定尺寸 & 元素
-
-
-
+
xs(20%)
@@ -27,14 +19,9 @@
xl(80%)
full(100%)
-
+
-
-
- 应用示例1
-
-
-
+
@@ -65,27 +52,9 @@
-
+
-
-
-
-
- 比例布局 & 元素
-
-
-
+
1
1
@@ -99,277 +68,225 @@
2
3
-
-
-
-
- 应用示例1
-
-
-
-
-
-
-
-
-
-
-
+
-
-
- 应用示例2
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
- 应用示例3
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
- 应用示例4
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
- 应用示例5
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
-
- 应用示例6
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 应用示例7
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
- 应用示例8
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
- 应用示例9
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
- 应用示例10
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
- 应用示例11
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
- 应用示例12
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
- 应用示例13
-
-
-
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
- 应用示例14
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
- 水平对齐 & justify
-
-
-
+
start
start
@@ -390,29 +307,17 @@
between
between
-
+
-
-
- 应用示例1
-
-
-
+
-
-
+
-
-
- 应用示例2
-
-
-
-
+
@@ -433,27 +338,17 @@
-
+
-
-
- 应用示例3
-
-
-
+
-
+
-
-
- 应用示例4
-
-
-
+
@@ -474,27 +369,17 @@
-
+
-
-
- 应用示例5
-
-
-
+
-
+
-
-
- 应用示例6
-
-
-
+
@@ -515,16 +400,9 @@
-
+
-
-
-
- 垂直对齐 & align
-
-
-
-
+
left
top
@@ -537,8 +415,9 @@
left
bottom
-
-
+
+
+
@@ -547,8 +426,10 @@
diff --git a/basicPage/tag/tag.vue b/basicPage/tag/tag.vue
index cc431cf..2cb0f44 100644
--- a/basicPage/tag/tag.vue
+++ b/basicPage/tag/tag.vue
@@ -1,6 +1,6 @@
-
+
标签
@@ -8,37 +8,85 @@
-
-
-
- 演示标签
-
-
-
+
+ 标签
+
+
+
+
+ 标签
+ 标签
+ 标签
+
+
+ 标签
+ 标签
+
+
+
+
+
+ 标签
+ 标签
+ 标签
+ 标签
+ 标签
+
+
+
+
+
+ 标签
+ 标签
+ 标签
+ 标签
+
+
+ 标签
+ 标签
+ 标签
+ 标签
+
+
+
+
+
+ 标签
+ 标签
+ 标签
+
+
+
+
+
+
+ 99+
+
+
-
+
-
+
2
-
+
-
+
2
-
-
+
+
+
+
@@ -47,213 +95,38 @@
-
-
diff --git a/basicPage/test/test.vue b/basicPage/test/test.vue
deleted file mode 100644
index 418dcda..0000000
--- a/basicPage/test/test.vue
+++ /dev/null
@@ -1,245 +0,0 @@
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/componentsPage/action-sheet/action-sheet.vue b/componentsPage/action-sheet/action-sheet.vue
index 94ba0f7..caf0b4e 100644
--- a/componentsPage/action-sheet/action-sheet.vue
+++ b/componentsPage/action-sheet/action-sheet.vue
@@ -9,7 +9,7 @@
- 弹出ActionSheet
+ 弹出ActionSheet
diff --git a/componentsPage/calendar/calendar.vue b/componentsPage/calendar/calendar.vue
index ae38add..f61e250 100644
--- a/componentsPage/calendar/calendar.vue
+++ b/componentsPage/calendar/calendar.vue
@@ -10,7 +10,7 @@
- 弹出日历
+ 弹出日历
{{ result }}
diff --git a/componentsPage/collapse/collapse.vue b/componentsPage/collapse/collapse.vue
index 7801b13..2bf48d1 100644
--- a/componentsPage/collapse/collapse.vue
+++ b/componentsPage/collapse/collapse.vue
@@ -1,6 +1,6 @@
-
+
Collapse折叠面板
@@ -8,28 +8,65 @@
-
-
-
-
+
+
+
+
{{ item.content }}
-
-
- 广州
- 深圳
- 佛山
-
-
- 12月
- 11月
- 10月
+
+
+
+
+
+
+ {{ item.content }}
+
-
-
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
@@ -37,158 +74,46 @@
diff --git a/componentsPage/count-down/count-down.vue b/componentsPage/count-down/count-down.vue
index d0845a6..079c9d4 100644
--- a/componentsPage/count-down/count-down.vue
+++ b/componentsPage/count-down/count-down.vue
@@ -1,6 +1,6 @@
-
+
countdown倒计时
@@ -8,26 +8,48 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -35,134 +57,22 @@
diff --git a/componentsPage/count-scroll/count-scroll.vue b/componentsPage/count-scroll/count-scroll.vue
index e10cf8c..8a3ca84 100644
--- a/componentsPage/count-scroll/count-scroll.vue
+++ b/componentsPage/count-scroll/count-scroll.vue
@@ -1,6 +1,6 @@
-
+
countScroll数字滚动
@@ -8,16 +8,37 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -26,85 +47,22 @@
diff --git a/componentsPage/count-to/count-to.vue b/componentsPage/count-to/count-to.vue
index 3fe03fb..dbfb106 100644
--- a/componentsPage/count-to/count-to.vue
+++ b/componentsPage/count-to/count-to.vue
@@ -1,6 +1,6 @@
-
+
countTo数字跳转
@@ -8,16 +8,37 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -26,85 +47,22 @@
diff --git a/componentsPage/fab/fab.vue b/componentsPage/fab/fab.vue
new file mode 100644
index 0000000..81ae498
--- /dev/null
+++ b/componentsPage/fab/fab.vue
@@ -0,0 +1,196 @@
+
+
+
+
+
+ fab悬浮按钮
+
+
+
+
+
+ 请点击下边悬浮按钮
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/componentsPage/form/form.vue b/componentsPage/form/form.vue
index 3ae1d16..619d911 100644
--- a/componentsPage/form/form.vue
+++ b/componentsPage/form/form.vue
@@ -58,7 +58,7 @@
勾选同意当前协议
- 提交
+ 提交
diff --git a/componentsPage/image-upload/image-upload.vue b/componentsPage/image-upload/image-upload.vue
index 42e8986..f155d08 100644
--- a/componentsPage/image-upload/image-upload.vue
+++ b/componentsPage/image-upload/image-upload.vue
@@ -57,7 +57,7 @@
- 上传
+ 上传
清空列表
diff --git a/componentsPage/index-list/avatar/index-list.vue b/componentsPage/index-list/avatar/index-list.vue
new file mode 100644
index 0000000..994ef44
--- /dev/null
+++ b/componentsPage/index-list/avatar/index-list.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+ IndexList索引列表
+
+
+
+
+
+
+
+
+
+ {{ data_item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/componentsPage/index-list/base/index-list.vue b/componentsPage/index-list/base/index-list.vue
new file mode 100644
index 0000000..dfde1f4
--- /dev/null
+++ b/componentsPage/index-list/base/index-list.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+ IndexList索引列表
+
+
+
+
+
+
+
+
+ {{ data_item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/componentsPage/index-list/index-list.vue b/componentsPage/index-list/index-list.vue
index 9fa4f94..099c5f0 100644
--- a/componentsPage/index-list/index-list.vue
+++ b/componentsPage/index-list/index-list.vue
@@ -7,15 +7,9 @@
-
-
-
-
-
- {{ data_item.name }}
-
-
-
+
@@ -24,68 +18,23 @@
diff --git a/componentsPage/list/list.vue b/componentsPage/list/list.vue
index 8f3ca99..66a4cab 100644
--- a/componentsPage/list/list.vue
+++ b/componentsPage/list/list.vue
@@ -1,6 +1,6 @@
-
+
列表
@@ -8,37 +8,197 @@
-
-
-
-
- 设置
+
+
+
+
+
+ 设置
+
+
+ 菜单一
+ 菜单二
+ 菜单三
+
+
+
+
+ 菜单一
+ 菜单二
+ 菜单三
+
+
+
+
+
+
+
+ 普通列表
+
+
+
+
+ 圆角列表
+
+
+
+
+
+
+
+ 图标 + 文字
+
-
-
- 选项 {{ index }}
-
+
+
+
+
+
+
+
+ 图片 + 文字
+
+
+
+
+
+
+
+
+
+ 文本
+
+
+ 定一个小目标吧
+
+
+
+
+
+
+
+
+
+ 按钮
+
+
+
+ 上传
+
+
+
+
+
+
+
+
+
+
+ 标签
+
+
+ 篮球
+ 足球
+ 小球
+
+
+
+
+
+
+
+
+
+ 头像组
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 小图鸟
+ 欢迎使用图鸟UI,图鸟UI专做UI界面100年
+
+
+ 13:14
+
+ 99
+
+
+
+
+
+
+
+
+
+
+ 小图鸟
+ 欢迎使用图鸟UI,图鸟UI专做UI界面100年
+
+
+ 13:14
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+ 下划线
+
+
+
+
+
+ 长下划线
+
+
+
+
+
+ 箭头
+
+
+
+
+
+ 无边距箭头
+
+
+
+
+
@@ -47,260 +207,159 @@
diff --git a/componentsPage/loading/loading.vue b/componentsPage/loading/loading.vue
index a24ce86..80bea5a 100644
--- a/componentsPage/loading/loading.vue
+++ b/componentsPage/loading/loading.vue
@@ -1,6 +1,6 @@
-
+
Loading加载动画
@@ -8,14 +8,57 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -24,79 +67,17 @@
diff --git a/componentsPage/modal/modal.vue b/componentsPage/modal/modal.vue
index f2aaa52..7338178 100644
--- a/componentsPage/modal/modal.vue
+++ b/componentsPage/modal/modal.vue
@@ -9,7 +9,7 @@
- 弹出模态框
+ 弹出模态框
@@ -41,7 +41,7 @@
- 获取验证码
+ 获取验证码
@@ -77,7 +77,7 @@
},
{
text: '确定',
- backgroundColor: 'tn-bg-red',
+ backgroundColor: 'tn-bg-indigo',
fontColor: '#FFFFFF'
}
],
diff --git a/componentsPage/nav-bar/nav-bar.vue b/componentsPage/nav-bar/nav-bar.vue
index 4dc8809..878f661 100644
--- a/componentsPage/nav-bar/nav-bar.vue
+++ b/componentsPage/nav-bar/nav-bar.vue
@@ -3,34 +3,58 @@
- navBar导航栏
+ navBar导航栏
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 图鸟科技
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -48,9 +72,11 @@
return {
searchValue: '',
mode: 'normal',
- height: 46,
+ height: 0,
backgroundColor: '#FFFFFF',
+ fontColor: '',
alpha: false,
+ bottomShadow: true,
tips: ['无需依赖额外的样式文件','使用tn-toast组件'],
sectionList: [
@@ -59,9 +85,8 @@
section: [
{
title: '高度',
- optional: ['默认','46','80'],
- methods: 'heightChange',
- current: 1
+ optional: ['默认','38','80'],
+ methods: 'heightChange'
},
{
title: '样式',
@@ -70,8 +95,13 @@
},
{
title: '背景颜色',
- optional: ['默认','#01BEFF','透明'],
+ optional: ['默认','#01BEFF','tn-bg-grey','tn-main-gradient-indigo','透明'],
methods: 'backgroundColorChange'
+ },
+ {
+ title: '底部阴影',
+ optional: ['默认','隐藏'],
+ methods: 'bottomShadowChange'
}
]
}
@@ -105,17 +135,27 @@
switch(event.index) {
case 0:
this.backgroundColor = '#FFFFFF'
+ this.fontColor = ''
this.alpha = false
break
case 1:
+ case 2:
+ case 3:
+ this.fontColor = '#FFFFFF'
this.backgroundColor = event.name
this.alpha = false
break
- case 2:
+ case 4:
+ this.backgroundColor = ''
+ this.fontColor = ''
this.alpha = true
break
}
},
+ // 切换底部阴影
+ bottomShadowChange(event) {
+ this.bottomShadow = event.index === 0 ? true : false
+ }
},
}
diff --git a/componentsPage/notice-bar/notice-bar.vue b/componentsPage/notice-bar/notice-bar.vue
index 9389e22..580a666 100644
--- a/componentsPage/notice-bar/notice-bar.vue
+++ b/componentsPage/notice-bar/notice-bar.vue
@@ -1,6 +1,6 @@
-
+
noticeBar通知栏
@@ -8,36 +8,57 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -46,10 +67,10 @@
diff --git a/componentsPage/number-box/number-box.vue b/componentsPage/number-box/number-box.vue
index b098e9d..f65d6ae 100644
--- a/componentsPage/number-box/number-box.vue
+++ b/componentsPage/number-box/number-box.vue
@@ -1,6 +1,6 @@
-
+
numberBox步进输入
@@ -8,22 +8,42 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -32,140 +52,29 @@
diff --git a/componentsPage/picker/picker.vue b/componentsPage/picker/picker.vue
index 8c50188..1a36401 100644
--- a/componentsPage/picker/picker.vue
+++ b/componentsPage/picker/picker.vue
@@ -9,7 +9,7 @@
- 弹出Picker
+ 弹出Picker
{{ result }}
diff --git a/componentsPage/popup/popup.vue b/componentsPage/popup/popup.vue
index 5e21202..04cd8ee 100644
--- a/componentsPage/popup/popup.vue
+++ b/componentsPage/popup/popup.vue
@@ -9,7 +9,7 @@
- 弹出弹框
+ 弹出弹框
diff --git a/componentsPage/progress/progress.vue b/componentsPage/progress/progress.vue
index 278f7fe..1622a74 100644
--- a/componentsPage/progress/progress.vue
+++ b/componentsPage/progress/progress.vue
@@ -1,38 +1,68 @@
-
+
Progress进度条
-
-
-
-
-
- 加载中
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 加载中
-
-
-
- 加载中
-
+
+
+
+
+
+
+
+ 加载中
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -41,163 +71,26 @@
diff --git a/componentsPage/read-more/read-more.vue b/componentsPage/read-more/read-more.vue
index 15318de..c1c1f2c 100644
--- a/componentsPage/read-more/read-more.vue
+++ b/componentsPage/read-more/read-more.vue
@@ -1,6 +1,6 @@
-
+
ReadMore查看更多
@@ -8,22 +8,31 @@
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -32,10 +41,10 @@
diff --git a/componentsPage/scroll-list/scroll-list.vue b/componentsPage/scroll-list/scroll-list.vue
index c246e17..ace9829 100644
--- a/componentsPage/scroll-list/scroll-list.vue
+++ b/componentsPage/scroll-list/scroll-list.vue
@@ -1,6 +1,6 @@
-
+
ScrollList横向滚动
@@ -8,14 +8,8 @@
-
-
+
+
@@ -31,7 +25,47 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 傻北
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 傻北
+
+
+
+
+
+
+
+
+
@@ -40,72 +74,25 @@
diff --git a/componentsPage/sticky/sticky.vue b/componentsPage/sticky/sticky.vue
index 0201776..d4c1fed 100644
--- a/componentsPage/sticky/sticky.vue
+++ b/componentsPage/sticky/sticky.vue
@@ -1,6 +1,6 @@
-
+
sticky吸顶
@@ -8,11 +8,24 @@
-
-
- 图鸟科技
+
+
+ 普通吸顶
-
+
+
+ 有距离吸顶
+
+
+
+
+
+
+ 不允许吸顶
+
+
+
+
@@ -21,69 +34,34 @@
diff --git a/componentsPage/swipe-action/swipe-action.vue b/componentsPage/swipe-action/swipe-action.vue
index 6c192a4..f31db6d 100644
--- a/componentsPage/swipe-action/swipe-action.vue
+++ b/componentsPage/swipe-action/swipe-action.vue
@@ -1,126 +1,134 @@
-
+
swipeAction滑动菜单
-
-
-
-
-
-
-
-
-
- 基本使用
+
+
+
+
+
+
+
-
- 向左滑动即可看到
+
+
+ 基本使用
+
+
+ 向左滑动即可看到
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 多菜单
+
+
+
+
+
+
+
+
+
+
-
- 向左滑动即可看到
+
+
+ 多菜单
+
+
+ 向左滑动即可看到
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 带图标菜单
+
+
+
+
+
+
+
+
+
+
-
- 向左滑动即可看到
+
+
+ 带图标菜单
+
+
+ 向左滑动即可看到
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 单图标菜单
+
+
+
+
+
+
+
+
+
+
-
- 向左滑动即可看到
+
+
+ 单图标菜单
+
+
+ 向左滑动即可看到
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关联打开滑动菜单
+
+
+
+
+
+
+
+
+
+
-
- 向左滑动即可看到,同时只能打开一个菜单
+
+
+ 关联打开滑动菜单
+
+
+ 向左滑动即可看到,同时只能打开一个菜单
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 非关联打开滑动菜单
+
+
+
+
+
+
+
+
+
+
-
- 向左滑动即可看到,允许同时打开多个菜单
+
+
+ 非关联打开滑动菜单
+
+
+ 向左滑动即可看到,允许同时打开多个菜单
+
-
-
-
-
+
+
+
+
+
@@ -128,8 +136,10 @@
diff --git a/componentsPage/swiper/swiper.vue b/componentsPage/swiper/swiper.vue
index d0019d1..c77e782 100644
--- a/componentsPage/swiper/swiper.vue
+++ b/componentsPage/swiper/swiper.vue
@@ -1,6 +1,6 @@
-
+
Swiper轮播图
@@ -8,214 +8,63 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
diff --git a/componentsPage/switch/switch.vue b/componentsPage/switch/switch.vue
index b86b55a..cfdfd26 100644
--- a/componentsPage/switch/switch.vue
+++ b/componentsPage/switch/switch.vue
@@ -1,6 +1,6 @@
-
+
Switch开光
@@ -8,18 +8,57 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -28,104 +67,30 @@
diff --git a/componentsPage/tabs/tabs.vue b/componentsPage/tabs/tabs.vue
index 15f43de..8181a51 100644
--- a/componentsPage/tabs/tabs.vue
+++ b/componentsPage/tabs/tabs.vue
@@ -1,6 +1,6 @@
-
+
tabs标签
@@ -8,26 +8,34 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -36,14 +44,20 @@
diff --git a/componentsPage/tips/tips.vue b/componentsPage/tips/tips.vue
index b91a815..622897f 100644
--- a/componentsPage/tips/tips.vue
+++ b/componentsPage/tips/tips.vue
@@ -9,7 +9,7 @@
- 弹出Tips
+ 弹出Tips
diff --git a/componentsPage/toast/toast.vue b/componentsPage/toast/toast.vue
index e60956c..c8cabb5 100644
--- a/componentsPage/toast/toast.vue
+++ b/componentsPage/toast/toast.vue
@@ -9,7 +9,7 @@
- 弹出Toast
+ 弹出Toast
@@ -102,7 +102,7 @@
break
case 2:
this.icon = ''
- this.image = '/static/logo1.png'
+ this.image = '/static/favicon.ico'
break
}
this.openToast()
diff --git a/componentsPage/verification-code/verification-code.vue b/componentsPage/verification-code/verification-code.vue
index 9a23681..e48c42c 100644
--- a/componentsPage/verification-code/verification-code.vue
+++ b/componentsPage/verification-code/verification-code.vue
@@ -15,7 +15,7 @@
- {{ tips }}
+ {{ tips }}
diff --git a/libs/components/demo-title.vue b/libs/components/demo-title.vue
new file mode 100644
index 0000000..d787426
--- /dev/null
+++ b/libs/components/demo-title.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/components/dynamic-demo-template.vue b/libs/components/dynamic-demo-template.vue
index d3e26b3..d6ca993 100644
--- a/libs/components/dynamic-demo-template.vue
+++ b/libs/components/dynamic-demo-template.vue
@@ -2,7 +2,7 @@
-
+
@@ -91,6 +91,11 @@
fullWindowsScroll: {
type: Boolean,
default: false
+ },
+ // 没有演示内容
+ noDemo: {
+ type: Boolean,
+ default: false
}
},
computed: {
@@ -217,15 +222,19 @@
}
}).exec()
} else {
- uni.createSelectorQuery().in(this).select('.demo-container').boundingClientRect(data => {
- if (data.bottom >= systemInfo.safeArea.height) {
- this.sectionScrollFlag = false
- } else {
- this.sectionScrollFlag = true
- const containerBaseHeight = systemInfo.safeArea.height - data.bottom
- this.sectionScrollViewStyle.height = (containerBaseHeight - navBarHeight) + systemInfo.statusBarHeight - uni.upx2px(75) + 'px'
- }
- }).exec()
+ if (!this.noDemo) {
+ uni.createSelectorQuery().in(this).select('.demo-container').boundingClientRect(data => {
+ if (data.bottom >= systemInfo.safeArea.height) {
+ this.sectionScrollFlag = false
+ } else {
+ this.sectionScrollFlag = true
+ const containerBaseHeight = systemInfo.safeArea.height - data.bottom
+ this.sectionScrollViewStyle.height = (containerBaseHeight - navBarHeight) + systemInfo.statusBarHeight - uni.upx2px(75) + 'px'
+ }
+ }).exec()
+ } else {
+ this.sectionScrollFlag = false
+ }
}
}
@@ -544,7 +553,7 @@
display: block;
&:last-child {
- padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
+ padding-bottom: calc(70rpx + env(safe-area-inset-bottom));
}
}
diff --git a/libs/components/multiple-options-demo.vue b/libs/components/multiple-options-demo.vue
new file mode 100644
index 0000000..f3644b6
--- /dev/null
+++ b/libs/components/multiple-options-demo.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/libs/components/nav-index-button.vue b/libs/components/nav-index-button.vue
index 2af5a14..1a7fba6 100644
--- a/libs/components/nav-index-button.vue
+++ b/libs/components/nav-index-button.vue
@@ -44,7 +44,7 @@
if (pages && pages.length > 0) {
const indexPath = this.indexPath || '/pages/index/index'
const firstPage = pages[0]
- if (!firstPage.route || firstPage.route != indexPath.substring(1, indexPath.length)) {
+ if (pages.length == 1 && (!firstPage.route || firstPage.route != indexPath.substring(1, indexPath.length))) {
uni.reLaunch({
url: indexPath
})
diff --git a/mock/components_page.js b/mock/components_page.js
index ffd2965..52ba0f8 100644
--- a/mock/components_page.js
+++ b/mock/components_page.js
@@ -76,6 +76,11 @@ export default {
icon: 'star',
title: 'swipeAction滑动菜单',
url: '/componentsPage/swipe-action/swipe-action'
+ },
+ {
+ icon: 'star',
+ title: 'fab悬浮按钮',
+ url: '/componentsPage/fab/fab'
}
]
},
diff --git a/mock/template_page.js b/mock/template_page.js
index 194913f..3e258d8 100644
--- a/mock/template_page.js
+++ b/mock/template_page.js
@@ -8,14 +8,28 @@ export default {
backgroundColor: 'tn-cool-bg-color-1',
list: [
{
- icon: 'order',
+ icon: 'send',
title: '火箭登录',
+ author: '可我会像',
url: '/templatePage/login/demo1/demo1'
},
{
- icon: 'order',
+ icon: 'send',
title: '粒子登录',
+ author: '可我会像',
url: '/templatePage/login/demo2/demo2'
+ },
+ {
+ icon: 'send',
+ title: '背景登录',
+ author: '可我会像',
+ url: '/templatePage/login/demo3/demo3'
+ },
+ {
+ icon: 'send',
+ title: '简约登录',
+ author: '可我会像',
+ url: '/templatePage/login/demo4/demo4'
}
]
},
@@ -24,56 +38,65 @@ export default {
backgroundColor: 'tn-cool-bg-color-1',
list: [
{
- icon: 'order',
+ icon: 'send',
title: '音乐首页',
+ author: '可我会像',
url: '/templatePage/home/music/music'
},
{
- icon: 'order',
+ icon: 'send',
title: '课程首页',
+ author: '可我会像',
url: '/templatePage/home/course/course'
},
{
- icon: 'order',
+ icon: 'send',
title: '设计首页',
+ author: '可我会像',
url: '/templatePage/home/design/design'
},
{
- icon: 'order',
+ icon: 'send',
title: '招聘首页',
+ author: '可我会像',
url: '/templatePage/home/job/job'
},
{
- icon: 'order',
+ icon: 'send',
title: '投屏首页',
+ author: '可我会像',
url: '/templatePage/home/screen/screen'
},
{
- icon: 'order',
+ icon: 'send',
title: '壁纸首页',
+ author: '可我会像',
url: '/templatePage/home/wallpaper/wallpaper'
},
]
},
{
- title: '其他页面',
+ title: '骚气页面',
backgroundColor: 'tn-cool-bg-color-1',
list: [
{
- icon: 'order',
+ icon: 'send',
title: '健康码',
+ author: '可我会像',
url: '/templatePage/health/qrcode/qrcode'
},
{
- icon: 'order',
+ icon: 'send',
title: '全屏轮播',
+ author: '可我会像',
url: '/templatePage/life/fullpage/fullpage'
},
{
- icon: 'order',
- title: '浏览器',
- url: '/templatePage/life/browser/browser'
+ icon: 'like-break',
+ title: '时钟',
+ author: '可我会像',
+ url: '/templatePage/time/clock/clock'
}
]
},
@@ -82,26 +105,60 @@ export default {
backgroundColor: 'tn-cool-bg-color-1',
list: [
{
- icon: 'order',
+ icon: 'send',
title: '加载动画',
+ author: '可我会像',
url: '/templatePage/animate/loading/loading'
},
{
- icon: 'order',
+ icon: 'send',
title: '随机粒子',
+ author: 'Jaylen',
url: '/templatePage/animate/particle/particle'
},
{
- icon: 'order',
+ icon: 'send',
title: '相册图集',
+ author: '你的小可爱',
url: '/templatePage/animate/photo/photo'
},
{
- icon: 'order',
+ icon: 'send',
title: '镂空效果',
+ author: '你的小可爱',
url: '/templatePage/animate/hollow/hollow'
}
]
- }
+ },
+ {
+ title: '群友力献',
+ backgroundColor: 'tn-cool-bg-color-1',
+ list: [
+ {
+ icon: 'send',
+ title: '3D全景',
+ author: '可我会像 & 芊云全景',
+ url: '/templatePage/life/pano/pano'
+ },
+ {
+ icon: 'like-break',
+ title: '隔壁的小生',
+ author: '隔壁的小生',
+ url: '/templatePage/life/candle/candle'
+ },
+ {
+ icon: 'like-break',
+ title: '阿凡提·污克西西',
+ author: '阿凡提·污克西西',
+ url: '/templatePage/life/candle/candle'
+ },
+ {
+ icon: 'like-break',
+ title: '期待你的加入',
+ author: '期待你的加入',
+ url: '/templatePage/life/candle/candle'
+ }
+ ]
+ }
]
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index af19c93..86765eb 100644
--- a/pages.json
+++ b/pages.json
@@ -14,14 +14,6 @@
"subPackages": [{
"root": "basicPage",
"pages": [
- {
- "path": "test/test",
- "style": {
- "navigationStyle":"default",
- "navigationBarTitleText": "测试页面",
- "enablePullDownRefresh": false
- }
- },
{
"path": "flex-layout/flex-layout",
"style": {
@@ -298,6 +290,13 @@
"enablePullDownRefresh": false
// "pageOrientation": "landscape"
}
+ }, {
+ "path": "fab/fab",
+ "style": {
+ "navigationBarTitleText": "fab悬浮按钮",
+ "enablePullDownRefresh": false
+ // "pageOrientation": "landscape"
+ }
}
]
},{
@@ -315,7 +314,19 @@
"navigationBarTitleText": "粒子登录",
"enablePullDownRefresh": false
}
- }, {
+ },{
+ "path": "login/demo3/demo3",
+ "style": {
+ "navigationBarTitleText": "背景登录",
+ "enablePullDownRefresh": false
+ }
+ },{
+ "path": "login/demo4/demo4",
+ "style": {
+ "navigationBarTitleText": "简约登录",
+ "enablePullDownRefresh": false
+ }
+ },{
"path": "health/qrcode/qrcode",
"style": {
"navigationBarTitleText": "健康码",
@@ -363,6 +374,12 @@
"navigationBarTitleText": "全屏轮播",
"enablePullDownRefresh": false
}
+ },{
+ "path": "life/pano/pano",
+ "style": {
+ "navigationBarTitleText": "3D全景",
+ "enablePullDownRefresh": false
+ }
},{
"path": "life/plus/plus",
"style": {
@@ -370,9 +387,15 @@
"enablePullDownRefresh": false
}
},{
- "path": "life/browser/browser",
+ "path": "life/candle/candle",
"style": {
- "navigationBarTitleText": "浏览器",
+ "navigationBarTitleText": "敬请期待",
+ "enablePullDownRefresh": false
+ }
+ },{
+ "path": "time/clock/clock",
+ "style": {
+ "navigationBarTitleText": "时钟",
"enablePullDownRefresh": false
}
},{
diff --git a/pages/template/template.vue b/pages/template/template.vue
index 5072026..8228a51 100644
--- a/pages/template/template.vue
+++ b/pages/template/template.vue
@@ -1,5 +1,6 @@
-
+
+
@@ -20,11 +21,19 @@
getRandomCoolBg(content_index)
]"
>
-
- {{ content_item.title }}
+
+
+ {{ content_item.title }}
+
+
+
+
-
-
+
+
+
+ {{ content_item.author }}
+
@@ -32,7 +41,7 @@
-
+
@@ -109,19 +118,40 @@
padding: 0rpx 12rpx 0rpx;
justify-content: space-between;
+
+
/* 列表元素 start */
.nav-list-item {
padding: 50rpx 30rpx 36rpx 30rpx;
border-radius: 12rpx;
width: 100%;
- margin: 0 18rpx 40rpx;
+ margin: 0 18rpx 90rpx;
background-size: cover;
background-position: center;
position: relative;
z-index: 99;
- display: flex;
- align-items: center;
- justify-content: space-between;
+ // display: flex;
+ // align-items: center;
+ // justify-content: space-between;
+
+
+ .author-title{
+ position: absolute;
+ z-index: -1;
+ background-color: #FFFFFF;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ bottom: -100%;
+ border-radius: 10upx;
+ opacity: 1;
+ transform: scale(1);
+
+ .title {
+ color: #000000;
+ text-align: left;
+ }
+ }
/* 元素标题 start */
.nav-link {
@@ -160,6 +190,22 @@
border-radius: 5000rpx;
}
/* 元素图标 end */
+
+ /* 作者信息 start*/
+ .author {
+ // background-color: red;
+ box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.12);
+ border-radius: 0 0 15rpx 15rpx;
+ position: absolute;
+ width: 85%;
+ line-height: 50rpx;
+ left: 50%;
+ bottom: -50rpx;
+ transform: translateX(-50%);
+ z-index: -1;
+ text-align: center;
+ }
+ /* 作者信息 end*/
}
/* 列表元素 end */
}
diff --git a/pages/tuniao/tuniao.vue b/pages/tuniao/tuniao.vue
index aa5901e..d476889 100644
--- a/pages/tuniao/tuniao.vue
+++ b/pages/tuniao/tuniao.vue
@@ -57,15 +57,6 @@
-
-
-
-
-
- 图鸟UI
- 会员版
-
-
@@ -160,12 +151,6 @@
appId: 'wxa698b1eee960632f'
})
},
- // 跳转到图鸟UI会员版
- navTuniaoUI() {
- uni.navigateToMiniProgram({
- appId: 'wxf3d81a452b88ff4b'
- })
- },
// 跳转到会员协议
navPlus() {
diff --git a/templatePage/health/qrcode/qrcode.vue b/templatePage/health/qrcode/qrcode.vue
index 2c77876..89fc8bc 100644
--- a/templatePage/health/qrcode/qrcode.vue
+++ b/templatePage/health/qrcode/qrcode.vue
@@ -131,7 +131,7 @@
-
+
@@ -144,7 +144,7 @@
@@ -177,6 +177,36 @@
+
+
+
+
+
+
@@ -516,4 +546,76 @@
}
}
/* 移动背景部分 end*/
+
+ /* 底部tabbar start*/
+ .footerfixed{
+ position: fixed;
+ width: 100%;
+ bottom: 0;
+ z-index: 999;
+ background-color: #FFFFFF;
+ box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
+ }
+
+ .tabbar {
+ display: flex;
+ align-items: center;
+ min-height: 110rpx;
+ justify-content: space-between;
+ padding: 0;
+ height: calc(110rpx + env(safe-area-inset-bottom) / 2);
+ padding-bottom: calc(env(safe-area-inset-bottom) / 2);
+ }
+
+ .tabbar .action {
+ font-size: 22rpx;
+ position: relative;
+ flex: 1;
+ text-align: center;
+ padding: 0;
+ display: block;
+ height: auto;
+ line-height: 1;
+ margin: 0;
+ overflow: initial;
+ }
+
+ .tabbar .action .bar-icon {
+ width: 100rpx;
+ position: relative;
+ display: block;
+ height: auto;
+ margin: 0 auto 10rpx;
+ text-align: center;
+ font-size: 42rpx;
+ // line-height: 50rpx;
+ }
+
+ .tabbar .action .bar-icon image {
+ width: 50rpx;
+ height: 50rpx;
+ display: inline-block;
+ }
+
+ .tabbar .action .bar-circle {
+ position: relative;
+ display: block;
+ margin: -60rpx auto 20rpx;
+ text-align: center;
+ font-size: 52rpx;
+ line-height: 90rpx;
+ background-color: #01BEFF;
+ width: 90rpx !important;
+ height: 90rpx !important;
+ overflow: hidden;
+ border-radius: 50%;
+ box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(1, 190, 255, 0.5);
+ }
+
+ .tabbar .action .bar-circle image {
+ width: 60rpx;
+ height: 60rpx;
+ display: inline-block;
+ margin: 15rpx auto 15rpx;
+ }
diff --git a/templatePage/home/course/course.vue b/templatePage/home/course/course.vue
index 0c842c8..65c8630 100644
--- a/templatePage/home/course/course.vue
+++ b/templatePage/home/course/course.vue
@@ -129,7 +129,7 @@
-
+
@@ -160,6 +160,41 @@
+
+
@@ -644,4 +679,53 @@
border-radius: 20rpx 20rpx 0 0;
}
/* 文章内容 end*/
+
+ /* 底部tabbar start*/
+ .footerfixed{
+ position: fixed;
+ width: 100%;
+ bottom: 0;
+ z-index: 999;
+ background-color: #FFFFFF;
+ box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
+ }
+
+ .tabbar {
+ display: flex;
+ align-items: center;
+ min-height: 110rpx;
+ justify-content: space-between;
+ padding: 0;
+ height: calc(110rpx + env(safe-area-inset-bottom) / 2);
+ padding-bottom: calc(env(safe-area-inset-bottom) / 2);
+ }
+
+ .tabbar .action {
+ font-size: 22rpx;
+ position: relative;
+ flex: 1;
+ text-align: center;
+ padding: 0;
+ display: block;
+ height: auto;
+ line-height: 1;
+ margin: 0;
+ overflow: initial;
+ }
+
+ .tabbar .action .bar-icon {
+ width: 100rpx;
+ position: relative;
+ display: block;
+ height: auto;
+ margin: 0 auto 10rpx;
+ text-align: center;
+ font-size: 42rpx;
+ }
+
+ .tabbar .action .bar-icon image {
+ width: 50rpx;
+ height: 50rpx;
+ display: inline-block;
+ }
diff --git a/templatePage/home/screen/screen.vue b/templatePage/home/screen/screen.vue
index 380efb6..00db99d 100644
--- a/templatePage/home/screen/screen.vue
+++ b/templatePage/home/screen/screen.vue
@@ -134,7 +134,7 @@
-
+
@@ -182,6 +182,34 @@
+
+
+
@@ -601,4 +629,76 @@
}
}
/* 移动背景部分 end*/
+
+ /* 底部tabbar start*/
+ .footerfixed{
+ position: fixed;
+ width: 100%;
+ bottom: 0;
+ z-index: 999;
+ background-color: #FFFFFF;
+ box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
+ }
+
+ .tabbar {
+ display: flex;
+ align-items: center;
+ min-height: 110rpx;
+ justify-content: space-between;
+ padding: 0;
+ height: calc(110rpx + env(safe-area-inset-bottom) / 2);
+ padding-bottom: calc(env(safe-area-inset-bottom) / 2);
+ }
+
+ .tabbar .action {
+ font-size: 22rpx;
+ position: relative;
+ flex: 1;
+ text-align: center;
+ padding: 0;
+ display: block;
+ height: auto;
+ line-height: 1;
+ margin: 0;
+ overflow: initial;
+ }
+
+ .tabbar .action .bar-icon {
+ width: 100rpx;
+ position: relative;
+ display: block;
+ height: auto;
+ margin: 0 auto 10rpx;
+ text-align: center;
+ font-size: 42rpx;
+ // line-height: 50rpx;
+ }
+
+ .tabbar .action .bar-icon image {
+ width: 50rpx;
+ height: 50rpx;
+ display: inline-block;
+ }
+
+ .tabbar .action .bar-circle {
+ position: relative;
+ display: block;
+ margin: -30rpx auto 20rpx;
+ text-align: center;
+ font-size: 52rpx;
+ line-height: 90rpx;
+ background-color: #FFCA28;
+ width: 90rpx !important;
+ height: 90rpx !important;
+ overflow: hidden;
+ border-radius: 50%;
+ box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(255, 202, 40, 0.5);
+ }
+
+ .tabbar .action .bar-circle image {
+ width: 60rpx;
+ height: 60rpx;
+ display: inline-block;
+ margin: 15rpx auto 15rpx;
+ }
diff --git a/templatePage/life/browser/browser.vue b/templatePage/life/browser/browser.vue
deleted file mode 100644
index 67badfe..0000000
--- a/templatePage/life/browser/browser.vue
+++ /dev/null
@@ -1,238 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 测试,未写完
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/templatePage/life/candle/candle.vue b/templatePage/life/candle/candle.vue
new file mode 100644
index 0000000..d6b0ddb
--- /dev/null
+++ b/templatePage/life/candle/candle.vue
@@ -0,0 +1,625 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 敬请期待
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templatePage/life/pano/pano.vue b/templatePage/life/pano/pano.vue
new file mode 100644
index 0000000..18b68cd
--- /dev/null
+++ b/templatePage/life/pano/pano.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/templatePage/life/plus/plus.vue b/templatePage/life/plus/plus.vue
index ef79526..eb5d915 100644
--- a/templatePage/life/plus/plus.vue
+++ b/templatePage/life/plus/plus.vue
@@ -18,10 +18,14 @@
图鸟UI Plus会员,初步定价
- 699¥ /
+ 399¥
+ 699¥
+
+ ————
+ /
终身
- (大约等于两个前端页面价格)
+ (大约等于1个前端页面价格)
@@ -53,7 +57,7 @@
也希望大家能喜欢这个项目
- (不喜勿喷,东东还在努力成长)
+ (不喜勿喷,北北还在努力成长)
@@ -70,32 +74,34 @@
项目正式开始于2021年10月,于12月30上线
(期间断断续续的在接单恰饭)
+
灵感来源于我的上一个原创项目
(项目初衷是拓展业务,寻求商务合作)
+
- 感恩你的支持
+ 会员特权
+ ①会员尊享更多酷炫模板,模板持续更新
+ ②优先响应会员页面模板需求,icon需求
+ ③会员版本更新,在会员群进行代码发送
+ ④有什么好的建议,可以提出来,多沟通
+
+
+
+ 关于作者
+ 蔡北北,95年,广州
+ 浮夸UI设计
+ 菜鸡软件开发
+ 祭天产品经理
+ 背锅项目经理
+ 努力往CTO去发展
+
+
+
+ 北北感恩你的支持
-
- 待补充....
-
-
- 待补充....
-
-
- 待补充....
-
-
- 待补充....
-
-
- 待补充....
-
-
- 待补充....
-
@@ -162,5 +168,4 @@
align-self: flex-start;
}
-
diff --git a/templatePage/login/demo1/demo1.vue b/templatePage/login/demo1/demo1.vue
index 0949d43..d904e17 100644
--- a/templatePage/login/demo1/demo1.vue
+++ b/templatePage/login/demo1/demo1.vue
@@ -76,7 +76,7 @@
- {{ tips }}
+ {{ tips }}
diff --git a/templatePage/login/demo2/demo2.vue b/templatePage/login/demo2/demo2.vue
index 746878a..3aed31b 100644
--- a/templatePage/login/demo2/demo2.vue
+++ b/templatePage/login/demo2/demo2.vue
@@ -79,7 +79,7 @@
- {{ tips }}
+ {{ tips }}
@@ -131,7 +131,7 @@
diff --git a/templatePage/login/demo3/demo3.vue b/templatePage/login/demo3/demo3.vue
new file mode 100644
index 0000000..91e798a
--- /dev/null
+++ b/templatePage/login/demo3/demo3.vue
@@ -0,0 +1,401 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 登录
+
+
+ 注册
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tips }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentModeIndex === 0 ? '登录' : '注册'}}
+
+ 忘记密码?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templatePage/login/demo4/demo4.vue b/templatePage/login/demo4/demo4.vue
new file mode 100644
index 0000000..8feddba
--- /dev/null
+++ b/templatePage/login/demo4/demo4.vue
@@ -0,0 +1,420 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 欢迎回来
+
+
+ 你是不是傻,菜的一撇的北北
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tips }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tips }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentModeIndex === 0 ? '登录' : '注册'}}
+
+
+
+
+ 前往登录
+
+
+
+
+ 账号注册
+ 忘记密码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templatePage/time/clock/clock.vue b/templatePage/time/clock/clock.vue
new file mode 100644
index 0000000..dd31b79
--- /dev/null
+++ b/templatePage/time/clock/clock.vue
@@ -0,0 +1,874 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue b/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue
index 848c1b2..4a7f11c 100644
--- a/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue
+++ b/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue
@@ -1,6 +1,6 @@
-
+
{
+ let style = {}
+ if (this._checkSizeIsInline()) {
+ switch(this.size) {
+ case 'sm':
+ style.marginLeft = index != 0 ? `${-48 * this.gap}rpx` : ''
+ break
+ case 'lg':
+ style.marginLeft = index != 0 ? `${-96 * this.gap}rpx` : ''
+ break
+ case 'xl':
+ style.marginLeft = index != 0 ? `${-128 * this.gap}rpx` : ''
+ break
+ }
+ } else {
+ const size = Number(this.size.replace(/(px|rpx)/g, '')) || 64
+ style.marginLeft = index != 0 ? `-${size * this.gap}rpx` : ''
}
- } else {
- const size = Number(this.size.replace(/(px|rpx)/g, '')) || 64
- style.marginLeft = `-${size * this.gap}rpx`
+ return style
}
- return style
}
},
data() {
diff --git a/tuniao-ui/components/tn-avatar/tn-avatar.vue b/tuniao-ui/components/tn-avatar/tn-avatar.vue
index fb28d48..96e7100 100644
--- a/tuniao-ui/components/tn-avatar/tn-avatar.vue
+++ b/tuniao-ui/components/tn-avatar/tn-avatar.vue
@@ -112,7 +112,7 @@
// 设置显示角标后,角标大小
badgeSize: {
type: Number,
- default: 28
+ default: 0
},
// 角标背景颜色
badgeBgColor: {
@@ -226,7 +226,7 @@
align-items: center;
justify-content: center;
background-color: $tn-font-holder-color;
- color: #FFFFFF;
+ // color: #FFFFFF;
white-space: nowrap;
position: relative;
width: 64rpx;
diff --git a/tuniao-ui/components/tn-badge/tn-badge.vue b/tuniao-ui/components/tn-badge/tn-badge.vue
index a7c73cf..5e1747d 100644
--- a/tuniao-ui/components/tn-badge/tn-badge.vue
+++ b/tuniao-ui/components/tn-badge/tn-badge.vue
@@ -37,7 +37,7 @@
// 外边距
margin: {
type: String,
- default: '0'
+ default: ''
},
// 是否为一个点
dot: {
@@ -52,12 +52,12 @@
// top
top: {
type: [String, Number],
- default: '0'
+ default: ''
},
// right
right: {
type: [String, Number],
- default: '0'
+ default: ''
},
// 居中 对齐右上角
translateCenter: {
@@ -87,6 +87,7 @@
if (this.radius !== 0) {
style.width = this.radius + 'rpx'
style.height = this.radius + 'rpx'
+ style.lineHeight = this.radius + 'rpx'
// style.borderRadius = (this.radius * 8) + 'rpx'
}
@@ -142,17 +143,17 @@
.tn-badge {
width: auto;
height: auto;
- line-height: 1;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
- font-size: 18rpx;
- background-color: $tn-main-color;
- color: #FFFFFF;
+ font-size: 20rpx;
+ background-color: #FFFFFF;
+ // color: #FFFFFF;
border-radius: 100rpx;
padding: 4rpx 8rpx;
+ line-height: initial;
&--dot {
width: 8rpx;
diff --git a/tuniao-ui/components/tn-button/tn-button.vue b/tuniao-ui/components/tn-button/tn-button.vue
index 2910988..820ce2f 100644
--- a/tuniao-ui/components/tn-button/tn-button.vue
+++ b/tuniao-ui/components/tn-button/tn-button.vue
@@ -129,7 +129,7 @@
// 阴影
if (this.shadow) {
- if (this.backgroundColorClass !== '') {
+ if (this.backgroundColorClass !== '' && this.backgroundColorClass.indexOf('tn-bg') != -1) {
const color = this.backgroundColor.slice(this.backgroundColor.lastIndexOf('-') + 1)
clazz += ` tn-shadow-${color}`
} else {
@@ -202,15 +202,20 @@
if (!this.backgroundColorClass) {
if (this.plain) {
- style.borderColor = this.backgroundColorStyle || '#01BEFF'
+ style.borderColor = this.backgroundColorStyle || '#080808'
} else {
- style.backgroundColor = this.backgroundColorStyle || '#01BEFF'
+ style.backgroundColor = this.backgroundColorStyle || '#FFFFFF'
}
}
// 设置阴影
if (this.shadow && !this.backgroundColorClass) {
- style.boxShadow = `6rpx 6rpx 8rpx ${(this.backgroundColorStyle || '#01BEFF')}10`
+ if (this.backgroundColorStyle.indexOf('#') != -1) {
+ style.boxShadow = `6rpx 6rpx 8rpx ${(this.backgroundColorStyle || '#000000')}10`
+ } else if (this.backgroundColorStyle.indexOf('rgb') != -1 || this.backgroundColorStyle.indexOf('rgba') != -1 || !this.backgroundColorStyle) {
+ style.boxShadow = `6rpx 6rpx 8rpx ${(this.backgroundColorStyle || 'rgba(0, 0, 0, 0.1)')}`
+ }
+
}
return style
@@ -278,12 +283,11 @@
text-align: center;
text-decoration: none;
overflow: visible;
- margin-left: inherit;
transform: translate(0rpx, 0rpx);
- margin-right: inherit;
// background-color: $tn-mai
border-radius: 12rpx;
- color: #FFFFFF;
+ // color: $tn-font-color;
+ margin: 0;
&--plain {
background-color: transparent !important;
diff --git a/tuniao-ui/components/tn-collapse-item/tn-collapse-item.vue b/tuniao-ui/components/tn-collapse-item/tn-collapse-item.vue
index 05763b2..62a9493 100644
--- a/tuniao-ui/components/tn-collapse-item/tn-collapse-item.vue
+++ b/tuniao-ui/components/tn-collapse-item/tn-collapse-item.vue
@@ -195,7 +195,9 @@
font-size: 30rpx;
line-height: 1;
padding: 24rpx 0;
+ padding-left: 24rpx;
text-align: left;
+ background-color: #FFFFFF;
&__title {
flex: 1;
@@ -226,6 +228,8 @@
font-size: 28rpx;
color: $tn-font-color;
text-align: left;
+ background-color: #FFFFFF;
+ padding-left: 24rpx;
}
}
}
diff --git a/tuniao-ui/components/tn-column-notice/tn-column-notice.vue b/tuniao-ui/components/tn-column-notice/tn-column-notice.vue
index e4ec36a..d5d795b 100644
--- a/tuniao-ui/components/tn-column-notice/tn-column-notice.vue
+++ b/tuniao-ui/components/tn-column-notice/tn-column-notice.vue
@@ -134,8 +134,8 @@
fontStyle() {
return (type) => {
let style = {}
- style.color = this.fontColorStyle ? this.fontColorStyle : '#080808'
- style.fontSize = this.fontSizeStyle ? this.fontSizeStyle : '26rpx'
+ style.color = this.fontColorStyle ? this.fontColorStyle : ''
+ style.fontSize = this.fontSizeStyle ? this.fontSizeStyle : ''
if (type === 'leftIcon' && this.leftIconSize) {
style.fontSize = this.leftIconSize + 'rpx'
}
diff --git a/tuniao-ui/components/tn-count-down/tn-count-down.vue b/tuniao-ui/components/tn-count-down/tn-count-down.vue
index b601de7..7a97943 100644
--- a/tuniao-ui/components/tn-count-down/tn-count-down.vue
+++ b/tuniao-ui/components/tn-count-down/tn-count-down.vue
@@ -11,7 +11,7 @@
+
+
+
+
+ {{ item.text || '' }}
+
+
+
+
+ {{ item.text || '' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tuniao-ui/components/tn-form-item/tn-form-item.vue b/tuniao-ui/components/tn-form-item/tn-form-item.vue
index c5a58ef..9e9725c 100644
--- a/tuniao-ui/components/tn-form-item/tn-form-item.vue
+++ b/tuniao-ui/components/tn-form-item/tn-form-item.vue
@@ -332,7 +332,7 @@
validation(trigger, callback = ()=>{}) {
// 校验之前先获取需要校验的值
this.fieldValue = this.parent.model[this.prop]
- // blur和唱歌是否有当前方式的校验规则
+ // blur和change是否有当前方式的校验规则
let rules = this.getFilterRule(trigger)
// 判断是否有验证规则,如果没有规则,也调用回调方法,否则父组件tn-form会因为
// 对count变量的统计错误而无法进入上一层的回调
diff --git a/tuniao-ui/components/tn-image-upload/tn-image-upload.vue b/tuniao-ui/components/tn-image-upload/tn-image-upload.vue
index 50fa434..74dbfd6 100644
--- a/tuniao-ui/components/tn-image-upload/tn-image-upload.vue
+++ b/tuniao-ui/components/tn-image-upload/tn-image-upload.vue
@@ -1,51 +1,52 @@
-
-
+
+
+ >
+
+
+
+
+
+ 点击重试
+
+
-
-
-
- 点击重试
-
-
-
+
@@ -320,7 +321,7 @@
this.showToast('超出可允许文件大小')
} else {
if (maxCount <= lists.length) {
- this.$emit('on-exceed', val, list, this.index)
+ this.$emit('on-exceed', val, lists, this.index)
this.showToast('超出最大允许的文件数')
return
}
@@ -426,7 +427,7 @@
this.$t.messageUtils.closeLoading()
this.uploading = false
this.uploadFile(index + 1)
- this.$emit('on-change', res, index, this.list, this.index)
+ this.$emit('on-change', res, index, this.lists, this.index)
}
})
this.lists[index].uploadTask = task
diff --git a/tuniao-ui/components/tn-list-view/tn-list-view.vue b/tuniao-ui/components/tn-list-view/tn-list-view.vue
index 69321f2..810e335 100644
--- a/tuniao-ui/components/tn-list-view/tn-list-view.vue
+++ b/tuniao-ui/components/tn-list-view/tn-list-view.vue
@@ -145,7 +145,7 @@