uni-load-more.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <template>
  2. <view class="uni-load-more" @click="onClick">
  3. <!-- #ifdef APP-NVUE -->
  4. <loading-indicator v-if="status === 'loading' && showIcon" :style="{color: color}" :animating="true" class="uni-load-more__img uni-load-more__img--nvue"></loading-indicator>
  5. <!-- #endif -->
  6. <!-- #ifdef H5 -->
  7. <svg width="24" height="24" viewBox="25 25 50 50" v-if="(iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon" class="uni-load-more__img uni-load-more__img--android-H5">
  8. <circle cx="50" cy="50" r="20" fill="none" :style="{color:color}" stroke-width="3"></circle>
  9. </svg>
  10. <view v-else-if="status === 'loading' && showIcon" class="uni-load-more__img uni-load-more__img--ios-H5">
  11. <view :style="{backgroundColor:color}"></view>
  12. <view :style="{backgroundColor:color}"></view>
  13. <view :style="{backgroundColor:color}"></view>
  14. <view :style="{backgroundColor:color}"></view>
  15. <view :style="{backgroundColor:color}"></view>
  16. <view :style="{backgroundColor:color}"></view>
  17. <view :style="{backgroundColor:color}"></view>
  18. <view :style="{backgroundColor:color}"></view>
  19. <view :style="{backgroundColor:color}"></view>
  20. <view :style="{backgroundColor:color}"></view>
  21. <view :style="{backgroundColor:color}"></view>
  22. <view :style="{backgroundColor:color}"></view>
  23. </view>
  24. <!-- #endif -->
  25. <!-- #ifndef APP-NVUE || H5 -->
  26. <view v-if="(iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon" class="uni-load-more__img">
  27. <image class="uni-load-more__img--android" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABsRJREFUWAnNmUtonFUUx/N9mZlk8p5pWvPWNM2rkfogutBiF25qQUQIXbhVsehSqCv3Ii5EBRGU6sZFRexOQW2CYFtFEKrNq9iYYh5NMm3iJJPXPPz9b+d+zkw6aWObGS/c3Pc5vzn33NcXp+QuwqVLl/qSyeSx0tLSbtJmRDURld6g7uXe3t4h8vck+HYqZXx8vHdjY+MFx3GOpVKpB0hdIF3kZMbqRCLxGXX330o+4xjmpG7Vlq/ujkHHxsaa4/H4yc3NzQGUlCLQlTKFtFKTt4rygag7ffyk6hqnX9KO2S69LSjTG3Bd93UgX0RQOVGKpMVGshRuKi5JA05R9app2PpH4xXda9euCThOfiPfD7PDtwUdGRnZw7R+iLDHJJjUWE+JBCA8xo8YIvsd8U/Ks7TN9PX1LVPOFzQbBpaxzvXr18vC4bCAVxmfyDcoL+jFixd7gPyIgS1EY730r06h4Dfq3g0Gg2fb29vX8gnPrU//QGtRxN0M9PMtLS3V0B6lRhbeEoxlcmvxxx4Ww+cMrKJNfcxCAXCaundYzWcQaJwsd+ydlJEhA5URSxcXFxHrujU1NU40GnWqq6uXkL2ZK0cAWQGfDAP5AcKCDJCja7qTyBrkVz9z8ODBr+4GUsoYL6vF8NFEXV0dRcdZXl7W4nRXVlbC6JZ7ZIUsi9LBj19+Qo9HiVrSGqz0UwDfJntHKzRLw20Ks7OzlYQK6SMYfbhcoqqqal6q7fAsizLlr9H4EI2eJRl0isXxFvX3HFIQDQ0NK6sEC6mUwyJAU63abfAsOjw83IjlztBQRmfVK/6IPwp+VyAthFJ0h+ENEt2Kigqjv7y8fBrdxl+9VU/HE1SqLCiyzizxJHHXIQVKWIShXJBra2vGBVgre6ifVa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gkpb0KYrtA2FQqHF3LEq5wVVI9arxrovIbRdQiVcwDSZPOk69WPUj9EvwvYS5Yuf2U54oFXRVskPrWVMG37YKv+zgDZNy5qjfah9m2+t24IipESWaGlpOUb2KSI6/30IShl1Bh6oREbZ5DPrgDRvskxAVjrH+ObwhQsXfj1+/Hjer83o2N6i6mDD5ORkiF99lLKmLsX064NFAhhrXc/aqrfQmYCMM9Ochh0vKyv7Ree41bFdeluL5g7WVz+muB+YHtr0ucUDFEAmWOaPUB43WKL9D+Ios7SjR+SOQTPBJyYmdMnWP8N0Lau0UfCEvynrm7x2kQXilaampv/8cPwHyUDNAActdacAAAAASUVORK5CYII=" mode="widthFix"></image>
  28. </view>
  29. <view v-else-if="status === 'loading' && showIcon" class="uni-load-more__img">
  30. <image class="uni-load-more__img--ios" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9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dxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII=" mode="widthFix"></image>
  31. </view>
  32. <!-- #endif -->
  33. <!-- #ifdef APP-NVUE || H5 -->
  34. <text class="uni-load-more__text" :style="{color: color}">{{ status === 'more' ? contentText.contentdown : status === 'loading' ? contentText.contentrefresh : contentText.contentnomore }}</text>
  35. <!-- #endif -->
  36. <!-- #ifndef APP-NVUE || H5 -->
  37. <text class="uni-load-more__text">{{ status === 'more' ? contentText.contentdown : status === 'loading' ? contentText.contentrefresh : contentText.contentnomore }}</text>
  38. <!-- #endif -->
  39. </view>
  40. </template>
  41. <script>
  42. const platform = uni.getSystemInfoSync().platform
  43. export default {
  44. name: 'UniLoadMore',
  45. props: {
  46. status: {
  47. // 上拉的状态:more-loading前;loading-loading中;noMore-没有更多了
  48. type: String,
  49. default: 'more'
  50. },
  51. showIcon: {
  52. type: Boolean,
  53. default: true
  54. },
  55. iconType: {
  56. type: String,
  57. default: 'auto'
  58. },
  59. color: {
  60. type: String,
  61. default: '#777777'
  62. },
  63. contentText: {
  64. type: Object,
  65. default () {
  66. return {
  67. contentdown: '上拉显示更多',
  68. contentrefresh: '正在加载...',
  69. contentnomore: '没有更多数据了'
  70. }
  71. }
  72. }
  73. },
  74. data() {
  75. return {
  76. platform: platform
  77. }
  78. },
  79. methods: {
  80. onClick() {
  81. this.$emit('clickLoadMore', {
  82. detail: {
  83. status: this.status,
  84. }
  85. })
  86. }
  87. }
  88. }
  89. </script>
  90. <style scoped>
  91. .uni-load-more {
  92. /* #ifndef APP-NVUE */
  93. display: flex;
  94. /* #endif */
  95. flex-direction: row;
  96. height: 40px;
  97. align-items: center;
  98. justify-content: center;
  99. }
  100. .uni-load-more__text {
  101. font-size: 15px;
  102. }
  103. .uni-load-more__img {
  104. width: 24px;
  105. height: 24px;
  106. margin-right: 8px;
  107. }
  108. .uni-load-more__img--nvue {
  109. color: #666666;
  110. }
  111. .uni-load-more__img--android,
  112. .uni-load-more__img--ios {
  113. width: 24px;
  114. height: 24px;
  115. transform: rotate(0deg);
  116. }
  117. /* #ifndef APP-NVUE */
  118. .uni-load-more__img--android {
  119. animation: loading-ios 1s 0s linear infinite;
  120. }
  121. .uni-load-more__img--ios {
  122. animation: loading-ios 1s 0s step-end infinite;
  123. }
  124. @keyframes loading-android {
  125. 0% {
  126. transform: rotate(0deg);
  127. }
  128. 100% {
  129. transform: rotate(360deg);
  130. }
  131. }
  132. @keyframes loading-ios {
  133. 0% {
  134. transform: rotate(0deg);
  135. }
  136. 8% {
  137. transform: rotate(30deg);
  138. }
  139. 16% {
  140. transform: rotate(60deg);
  141. }
  142. 24% {
  143. transform: rotate(90deg);
  144. }
  145. 32% {
  146. transform: rotate(120deg);
  147. }
  148. 40% {
  149. transform: rotate(150deg);
  150. }
  151. 48% {
  152. transform: rotate(180deg);
  153. }
  154. 56% {
  155. transform: rotate(210deg);
  156. }
  157. 64% {
  158. transform: rotate(240deg);
  159. }
  160. 73% {
  161. transform: rotate(270deg);
  162. }
  163. 82% {
  164. transform: rotate(300deg);
  165. }
  166. 91% {
  167. transform: rotate(330deg);
  168. }
  169. 100% {
  170. transform: rotate(360deg);
  171. }
  172. }
  173. /* #endif */
  174. /* #ifdef H5 */
  175. .uni-load-more__img--android-H5 {
  176. animation: loading-android-H5-rotate 2s linear infinite;
  177. transform-origin: center center;
  178. }
  179. .uni-load-more__img--android-H5>circle {
  180. display: inline-block;
  181. animation: loading-android-H5-dash 1.5s ease-in-out infinite;
  182. stroke: currentColor;
  183. stroke-linecap: round;
  184. }
  185. @keyframes loading-android-H5-rotate {
  186. 0% {
  187. transform: rotate(0deg);
  188. }
  189. 100% {
  190. transform: rotate(360deg);
  191. }
  192. }
  193. @keyframes loading-android-H5-dash {
  194. 0% {
  195. stroke-dasharray: 1, 200;
  196. stroke-dashoffset: 0;
  197. }
  198. 50% {
  199. stroke-dasharray: 90, 150;
  200. stroke-dashoffset: -40;
  201. }
  202. 100% {
  203. stroke-dasharray: 90, 150;
  204. stroke-dashoffset: -120;
  205. }
  206. }
  207. .uni-load-more__img--ios-H5 {
  208. position: relative;
  209. animation: loading-ios-H5 1s 0s step-end infinite;
  210. }
  211. .uni-load-more__img--ios-H5>view {
  212. position: absolute;
  213. height: 6px;
  214. width: 2px;
  215. left: 11px;
  216. top: 0;
  217. transform-origin: 1px 12px;
  218. }
  219. /* @for $i from 1 through 12 {
  220. */
  221. /* .uni-load-more__img--ios-H5>view:nth-child(#{$i}) {
  222. */
  223. /* transform: rotate(360deg - ($i - 1) * 30deg);
  224. */
  225. /* opacity: 1 - $i * 0.08;
  226. */
  227. /* }
  228. */
  229. /* }
  230. */
  231. .uni-load-more__img--ios-H5>view:nth-child(1) {
  232. transform: rotate(360deg);
  233. opacity: 0.92;
  234. }
  235. .uni-load-more__img--ios-H5>view:nth-child(2) {
  236. transform: rotate(330deg);
  237. opacity: 0.84;
  238. }
  239. .uni-load-more__img--ios-H5>view:nth-child(3) {
  240. transform: rotate(300deg);
  241. opacity: 0.76;
  242. }
  243. .uni-load-more__img--ios-H5>view:nth-child(4) {
  244. transform: rotate(270deg);
  245. opacity: 0.68;
  246. }
  247. .uni-load-more__img--ios-H5>view:nth-child(5) {
  248. transform: rotate(240deg);
  249. opacity: 0.6;
  250. }
  251. .uni-load-more__img--ios-H5>view:nth-child(6) {
  252. transform: rotate(210deg);
  253. opacity: 0.52;
  254. }
  255. .uni-load-more__img--ios-H5>view:nth-child(7) {
  256. transform: rotate(180deg);
  257. opacity: 0.44;
  258. }
  259. .uni-load-more__img--ios-H5>view:nth-child(8) {
  260. transform: rotate(150deg);
  261. opacity: 0.36;
  262. }
  263. .uni-load-more__img--ios-H5>view:nth-child(9) {
  264. transform: rotate(120deg);
  265. opacity: 0.28;
  266. }
  267. .uni-load-more__img--ios-H5>view:nth-child(10) {
  268. transform: rotate(90deg);
  269. opacity: 0.2;
  270. }
  271. .uni-load-more__img--ios-H5>view:nth-child(11) {
  272. transform: rotate(60deg);
  273. opacity: 0.12;
  274. }
  275. .uni-load-more__img--ios-H5>view:nth-child(12) {
  276. transform: rotate(30deg);
  277. opacity: 0.04;
  278. }
  279. @keyframes loading-ios-H5 {
  280. 0% {
  281. transform: rotate(0deg);
  282. }
  283. 8% {
  284. transform: rotate(30deg);
  285. }
  286. 16% {
  287. transform: rotate(60deg);
  288. }
  289. 24% {
  290. transform: rotate(90deg);
  291. }
  292. 32% {
  293. transform: rotate(120deg);
  294. }
  295. 40% {
  296. transform: rotate(150deg);
  297. }
  298. 48% {
  299. transform: rotate(180deg);
  300. }
  301. 56% {
  302. transform: rotate(210deg);
  303. }
  304. 64% {
  305. transform: rotate(240deg);
  306. }
  307. 73% {
  308. transform: rotate(270deg);
  309. }
  310. 82% {
  311. transform: rotate(300deg);
  312. }
  313. 91% {
  314. transform: rotate(330deg);
  315. }
  316. 100% {
  317. transform: rotate(360deg);
  318. }
  319. }
  320. /* #endif */
  321. </style>