yangShengKeTang.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="content" :style="{ paddingTop: statusBarHeight + 'px' }">
  3. <swiper class="swiper" circular :indicator-dots="true"
  4. indicator-color="#c3c3c3" indicator-active-color="#58b3df"
  5. :autoplay="false" :interval="2000" :duration="2000">
  6. <swiper-item v-for="img in imgList">
  7. <image :src="img" class="swiper-item"></image>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. </template>
  12. <script setup>
  13. import { ref, onMounted } from "vue";
  14. import { onShow } from "@dcloudio/uni-app";
  15. const imgList = ref([
  16. '/static/image/source/yskt.jpg',
  17. '/static/image/source/yskt.jpg',
  18. '/static/image/source/yskt.jpg',
  19. '/static/image/source/yskt.jpg',
  20. '/static/image/source/yskt.jpg',
  21. '/static/image/source/yskt.jpg',
  22. // 'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
  23. // 'http://gips3.baidu.com/it/u=764883555,2569275522&fm=3028&app=3028&f=JPEG&fmt=auto?w=960&h=1280',
  24. // 'https://img2.baidu.com/it/u=4214113141,2036563917&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
  25. // 'https://img0.baidu.com/it/u=3803731919,348987985&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=996',
  26. ])
  27. var statusBarHeight = uni.getStorageSync('statusBarHeight')
  28. </script>
  29. <style lang="scss" scoped>
  30. .uni-margin-wrap {
  31. width: 690rpx;
  32. width: 100%;
  33. }
  34. .swiper {
  35. height: 100vh;
  36. }
  37. .swiper-item {
  38. display: block;
  39. height: 100vh;
  40. width: 100%;
  41. }
  42. .swiper-list {
  43. margin-top: 40rpx;
  44. margin-bottom: 0;
  45. }
  46. .uni-common-mt {
  47. margin-top: 60rpx;
  48. position: relative;
  49. }
  50. .info {
  51. position: absolute;
  52. right: 20rpx;
  53. }
  54. .uni-padding-wrap {
  55. width: 550rpx;
  56. padding: 0 100rpx;
  57. }
  58. </style>