Skip to content

Commit a57a3ae

Browse files
committed
修改 h5 动画,修复 loadMore
1 parent 208adb3 commit a57a3ae

3 files changed

Lines changed: 29 additions & 31 deletions

File tree

‎components/uni-load-more/uni-load-more.vue‎

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
<template>
22
<view class="uni-load-more">
33
<view v-show="status === 'loading' && showIcon" class="uni-load-more__img">
4-
<view class="load1">
5-
<view class="uni-load-view_wrapper" :style="{background:color}" />
6-
<view class="uni-load-view_wrapper" :style="{background:color}" />
7-
<view class="uni-load-view_wrapper" :style="{background:color}" />
8-
<view class="uni-load-view_wrapper" :style="{background:color}" />
4+
<view class="load1 load">
5+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
6+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
7+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
8+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
99
</view>
10-
<view class="load2">
11-
<view class="uni-load-view_wrapper" :style="{background:color}" />
12-
<view class="uni-load-view_wrapper" :style="{background:color}" />
13-
<view class="uni-load-view_wrapper" :style="{background:color}" />
14-
<view class="uni-load-view_wrapper" :style="{background:color}" />
10+
<view class="load2 load">
11+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
12+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
13+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
14+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
1515
</view>
16-
<view class="load3">
17-
<view class="uni-load-view_wrapper" :style="{background:color}" />
18-
<view class="uni-load-view_wrapper" :style="{background:color}" />
19-
<view class="uni-load-view_wrapper" :style="{background:color}" />
20-
<view class="uni-load-view_wrapper" :style="{background:color}" />
16+
<view class="load3 load">
17+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
18+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
19+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
20+
<view :style="{ background: color }" class="uni-load-view_wrapper" />
2121
</view>
2222
</view>
23-
<text :style="{color:color}" class="uni-load-more__text">{{ status === 'more' ? contentText.contentdown : (status === 'loading' ? contentText.contentrefresh : contentText.contentnomore) }}</text>
23+
<text :style="{ color: color }" class="uni-load-more__text">
24+
{{ status === 'more' ? contentText.contentdown : status === 'loading' ? contentText.contentrefresh : contentText.contentnomore }}
25+
</text>
2426
</view>
2527
</template>
2628

@@ -80,11 +82,11 @@
8082
margin-right: 10px
8183
}
8284
83-
.uni-load-more__img>.uni-load-view_wrapper {
85+
.uni-load-more__img>.load {
8486
position: absolute
8587
}
8688
87-
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper {
89+
.uni-load-more__img>.load .uni-load-view_wrapper {
8890
width: 6px;
8991
height: 2px;
9092
border-top-left-radius: 1px;
@@ -96,25 +98,25 @@
9698
animation: load 1.56s ease infinite
9799
}
98100
99-
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(1) {
101+
.uni-load-more__img>.load .uni-load-view_wrapper:nth-child(1) {
100102
transform: rotate(90deg);
101103
top: 2px;
102104
left: 9px
103105
}
104106
105-
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(2) {
107+
.uni-load-more__img>.load .uni-load-view_wrapper:nth-child(2) {
106108
transform: rotate(180deg);
107109
top: 11px;
108110
right: 0
109111
}
110112
111-
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(3) {
113+
.uni-load-more__img>.load .uni-load-view_wrapper:nth-child(3) {
112114
transform: rotate(270deg);
113115
bottom: 2px;
114116
left: 9px
115117
}
116118
117-
.uni-load-more__img>.uni-load-view_wrapper .uni-load-view_wrapper:nth-child(4) {
119+
.uni-load-more__img>.load .uni-load-view_wrapper:nth-child(4) {
118120
top: 11px;
119121
left: 0
120122
}
@@ -191,4 +193,4 @@
191193
opacity: .2
192194
}
193195
}
194-
</style>
196+
</style>

‎pages.json‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -887,21 +887,19 @@
887887
"enablePullDownRefresh": true
888888
}
889889
},
890-
// #ifndef H5
891890
{
892891
"path": "animation/animation",
893892
"style": {
894893
"navigationBarTitleText": "创建动画"
895894
}
896895
},
897-
// #endif
898896
{
899897
"path": "get-node-info/get-node-info",
900898
"style": {
901899
"navigationBarTitleText": "节点信息"
902900
}
903901
},
904-
// #ifdef APP-PLUS || MP-WEIXIN || MP-BAIDU
902+
// #ifdef APP-PLUS || MP-WEIXIN || MP-BAIDU || H5
905903
{
906904
"path": "intersection-observer/intersection-observer",
907905
"style": {
@@ -1061,7 +1059,7 @@
10611059
"navigationBarTitleText": "SQLite"
10621060
}
10631061
},
1064-
// #ifndef H5
1062+
// #ifndef H5
10651063
{
10661064
"path": "brightness/brightness",
10671065
"style": {
@@ -1146,4 +1144,4 @@
11461144
}
11471145
]
11481146
}
1149-
}
1147+
}

‎pages/tabBar/API/API.vue‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,10 @@ export default {
113113
name: '下拉刷新',
114114
url: 'pull-down-refresh'
115115
},
116-
//#ifndef H5
117116
{
118117
name: '创建动画',
119118
url: 'animation'
120119
},
121-
//#endif
122120
{
123121
name: '创建绘画',
124122
url: 'canvas'
@@ -127,7 +125,7 @@ export default {
127125
name: '节点信息',
128126
url: 'get-node-info'
129127
},
130-
//#ifdef APP-PLUS || MP-WEIXIN || MP-BAIDU
128+
//#ifdef APP-PLUS || MP-WEIXIN || MP-BAIDU || H5
131129
{
132130
name: '节点布局交互状态',
133131
url: 'intersection-observer'

0 commit comments

Comments
 (0)