uni-load-more.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <template>
  2. <view class="uni-load-more" @click="onClick">
  3. <!-- #ifdef APP-NVUE -->
  4. <loading-indicator v-if="!webviewHide && status === 'loading' && showIcon"
  5. :style="{color: color,width:iconSize+'px',height:iconSize+'px'}" :animating="true"
  6. class="uni-load-more__img uni-load-more__img--nvue"></loading-indicator>
  7. <!-- #endif -->
  8. <!-- #ifdef H5 -->
  9. <svg width="24" height="24" viewBox="25 25 50 50"
  10. v-if="!webviewHide && (iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon"
  11. :style="{width:iconSize+'px',height:iconSize+'px'}"
  12. class="uni-load-more__img uni-load-more__img--android-H5">
  13. <circle cx="50" cy="50" r="20" fill="none" :style="{color:color}" :stroke-width="3"></circle>
  14. </svg>
  15. <!-- #endif -->
  16. <!-- #ifndef APP-NVUE || H5 -->
  17. <view
  18. v-if="!webviewHide && (iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon"
  19. :style="{width:iconSize+'px',height:iconSize+'px'}"
  20. class="uni-load-more__img uni-load-more__img--android-MP">
  21. <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
  22. <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
  23. <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
  24. </view>
  25. <!-- #endif -->
  26. <!-- #ifndef APP-NVUE -->
  27. <view v-else-if="!webviewHide && status === 'loading' && showIcon"
  28. :style="{width:iconSize+'px',height:iconSize+'px'}" class="uni-load-more__img uni-load-more__img--ios-H5">
  29. <image :src="imgBase64" mode="widthFix"></image>
  30. </view>
  31. <!-- #endif -->
  32. <text v-if="showText" class="uni-load-more__text"
  33. :style="{color: color}">{{ status === 'more' ? contentdownText : status === 'loading' ? contentrefreshText : contentnomoreText }}</text>
  34. </view>
  35. </template>
  36. <script>
  37. let platform
  38. setTimeout(() => {
  39. platform = uni.getSystemInfoSync().platform
  40. }, 16)
  41. import {
  42. initVueI18n
  43. } from '@dcloudio/uni-i18n'
  44. import messages from './i18n/index.js'
  45. const {
  46. t
  47. } = initVueI18n(messages)
  48. /**
  49. * LoadMore 加载更多
  50. * @description 用于列表中,做滚动加载使用,展示 loading 的各种状态
  51. * @tutorial https://ext.dcloud.net.cn/plugin?id=29
  52. * @property {String} status = [more|loading|noMore] loading 的状态
  53. * @value more loading前
  54. * @value loading loading中
  55. * @value noMore 没有更多了
  56. * @property {Number} iconSize 指定图标大小
  57. * @property {Boolean} iconSize = [true|false] 是否显示 loading 图标
  58. * @property {String} iconType = [snow|circle|auto] 指定图标样式
  59. * @value snow ios雪花加载样式
  60. * @value circle 安卓唤醒加载样式
  61. * @value auto 根据平台自动选择加载样式
  62. * @property {String} color 图标和文字颜色
  63. * @property {Object} contentText 各状态文字说明,值为:{contentdown: "上拉显示更多",contentrefresh: "正在加载...",contentnomore: "没有更多数据了"}
  64. * @event {Function} clickLoadMore 点击加载更多时触发
  65. */
  66. export default {
  67. name: 'UniLoadMore',
  68. emits: ['clickLoadMore'],
  69. props: {
  70. status: {
  71. // 上拉的状态:more-loading前;loading-loading中;noMore-没有更多了
  72. type: String,
  73. default: 'more'
  74. },
  75. showIcon: {
  76. type: Boolean,
  77. default: true
  78. },
  79. iconType: {
  80. type: String,
  81. default: 'auto'
  82. },
  83. iconSize: {
  84. type: Number,
  85. default: 24
  86. },
  87. color: {
  88. type: String,
  89. default: '#777777'
  90. },
  91. contentText: {
  92. type: Object,
  93. default () {
  94. return {
  95. contentdown: '',
  96. contentrefresh: '',
  97. contentnomore: ''
  98. }
  99. }
  100. },
  101. showText: {
  102. type: Boolean,
  103. default: true
  104. }
  105. },
  106. data() {
  107. return {
  108. webviewHide: false,
  109. platform: platform,
  110. imgBase64: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9Inhtc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K5CYII='
  111. }
  112. },
  113. computed: {
  114. iconSnowWidth() {
  115. return (Math.floor(this.iconSize / 24) || 1) * 2
  116. },
  117. contentdownText() {
  118. return this.contentText.contentdown || t("uni-load-more.contentdown")
  119. },
  120. contentrefreshText() {
  121. return this.contentText.contentrefresh || t("uni-load-more.contentrefresh")
  122. },
  123. contentnomoreText() {
  124. return this.contentText.contentnomore || t("uni-load-more.contentnomore")
  125. }
  126. },
  127. mounted() {
  128. // #ifdef APP-PLUS
  129. var pages = getCurrentPages();
  130. var page = pages[pages.length - 1];
  131. var currentWebview = page.$getAppWebview();
  132. currentWebview.addEventListener('hide', () => {
  133. this.webviewHide = true
  134. })
  135. currentWebview.addEventListener('show', () => {
  136. this.webviewHide = false
  137. })
  138. // #endif
  139. },
  140. methods: {
  141. onClick() {
  142. this.$emit('clickLoadMore', {
  143. detail: {
  144. status: this.status,
  145. }
  146. })
  147. }
  148. }
  149. }
  150. </script>
  151. <style lang="scss" >
  152. .uni-load-more {
  153. /* #ifndef APP-NVUE */
  154. display: flex;
  155. /* #endif */
  156. flex-direction: row;
  157. height: 40px;
  158. align-items: center;
  159. justify-content: center;
  160. }
  161. .uni-load-more__text {
  162. font-size: 14px;
  163. margin-left: 8px;
  164. }
  165. .uni-load-more__img {
  166. width: 24px;
  167. height: 24px;
  168. // margin-right: 8px;
  169. }
  170. .uni-load-more__img--nvue {
  171. color: #666666;
  172. }
  173. .uni-load-more__img--android,
  174. .uni-load-more__img--ios {
  175. width: 24px;
  176. height: 24px;
  177. transform: rotate(0deg);
  178. }
  179. /* #ifndef APP-NVUE */
  180. .uni-load-more__img--android {
  181. animation: loading-ios 1s 0s linear infinite;
  182. }
  183. @keyframes loading-android {
  184. 0% {
  185. transform: rotate(0deg);
  186. }
  187. 100% {
  188. transform: rotate(360deg);
  189. }
  190. }
  191. .uni-load-more__img--ios-H5 {
  192. position: relative;
  193. animation: loading-ios-H5 1s 0s step-end infinite;
  194. }
  195. .uni-load-more__img--ios-H5 image {
  196. position: absolute;
  197. width: 100%;
  198. height: 100%;
  199. left: 0;
  200. top: 0;
  201. }
  202. @keyframes loading-ios-H5 {
  203. 0% {
  204. transform: rotate(0deg);
  205. }
  206. 8% {
  207. transform: rotate(30deg);
  208. }
  209. 16% {
  210. transform: rotate(60deg);
  211. }
  212. 24% {
  213. transform: rotate(90deg);
  214. }
  215. 32% {
  216. transform: rotate(120deg);
  217. }
  218. 40% {
  219. transform: rotate(150deg);
  220. }
  221. 48% {
  222. transform: rotate(180deg);
  223. }
  224. 56% {
  225. transform: rotate(210deg);
  226. }
  227. 64% {
  228. transform: rotate(240deg);
  229. }
  230. 73% {
  231. transform: rotate(270deg);
  232. }
  233. 82% {
  234. transform: rotate(300deg);
  235. }
  236. 91% {
  237. transform: rotate(330deg);
  238. }
  239. 100% {
  240. transform: rotate(360deg);
  241. }
  242. }
  243. /* #endif */
  244. /* #ifdef H5 */
  245. .uni-load-more__img--android-H5 {
  246. animation: loading-android-H5-rotate 2s linear infinite;
  247. transform-origin: center center;
  248. }
  249. .uni-load-more__img--android-H5 circle {
  250. display: inline-block;
  251. animation: loading-android-H5-dash 1.5s ease-in-out infinite;
  252. stroke: currentColor;
  253. stroke-linecap: round;
  254. }
  255. @keyframes loading-android-H5-rotate {
  256. 0% {
  257. transform: rotate(0deg);
  258. }
  259. 100% {
  260. transform: rotate(360deg);
  261. }
  262. }
  263. @keyframes loading-android-H5-dash {
  264. 0% {
  265. stroke-dasharray: 1, 200;
  266. stroke-dashoffset: 0;
  267. }
  268. 50% {
  269. stroke-dasharray: 90, 150;
  270. stroke-dashoffset: -40;
  271. }
  272. 100% {
  273. stroke-dasharray: 90, 150;
  274. stroke-dashoffset: -120;
  275. }
  276. }
  277. /* #endif */
  278. /* #ifndef APP-NVUE || H5 */
  279. .uni-load-more__img--android-MP {
  280. position: relative;
  281. width: 24px;
  282. height: 24px;
  283. transform: rotate(0deg);
  284. animation: loading-ios 1s 0s ease infinite;
  285. }
  286. .uni-load-more__img--android-MP .uni-load-more__img-icon {
  287. position: absolute;
  288. box-sizing: border-box;
  289. width: 100%;
  290. height: 100%;
  291. border-radius: 50%;
  292. border: solid 2px transparent;
  293. border-top: solid 2px #777777;
  294. transform-origin: center;
  295. }
  296. .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(1) {
  297. animation: loading-android-MP-1 1s 0s linear infinite;
  298. }
  299. .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(2) {
  300. animation: loading-android-MP-2 1s 0s linear infinite;
  301. }
  302. .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(3) {
  303. animation: loading-android-MP-3 1s 0s linear infinite;
  304. }
  305. @keyframes loading-android {
  306. 0% {
  307. transform: rotate(0deg);
  308. }
  309. 100% {
  310. transform: rotate(360deg);
  311. }
  312. }
  313. @keyframes loading-android-MP-1 {
  314. 0% {
  315. transform: rotate(0deg);
  316. }
  317. 50% {
  318. transform: rotate(90deg);
  319. }
  320. 100% {
  321. transform: rotate(360deg);
  322. }
  323. }
  324. @keyframes loading-android-MP-2 {
  325. 0% {
  326. transform: rotate(0deg);
  327. }
  328. 50% {
  329. transform: rotate(180deg);
  330. }
  331. 100% {
  332. transform: rotate(360deg);
  333. }
  334. }
  335. @keyframes loading-android-MP-3 {
  336. 0% {
  337. transform: rotate(0deg);
  338. }
  339. 50% {
  340. transform: rotate(270deg);
  341. }
  342. 100% {
  343. transform: rotate(360deg);
  344. }
  345. }
  346. /* #endif */
  347. </style>