img-swiper.vue 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <view class="slot">
  3. <u-swiper height="750" border-radius="0" indicator-pos="bottomRight" mode="number" img-mode="aspectFit" :list="list">
  4. </u-swiper>
  5. <button class="shareBtn" open-type="share">
  6. <u-icon size="36" name="zhuanfa"></u-icon>
  7. </button>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'goods-img-swiper',
  13. props: {
  14. list: {
  15. type: Array,
  16. default: () => {
  17. return [];
  18. }
  19. },
  20. }
  21. };
  22. </script>
  23. <style scoped lang="scss">
  24. .slot{
  25. position: relative;
  26. }
  27. .shareBtn{
  28. width: 80rpx;
  29. height: 80rpx;
  30. border-radius: 50%;
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. flex-direction: column;
  35. background-color: rgba(0,0,0,.6);
  36. color: #fff;
  37. position: absolute;
  38. right: 10rpx;
  39. top: 30rpx;
  40. z-index: $app-zIndex-normal;
  41. padding: 0;
  42. &::after{
  43. content: '';
  44. border:none;
  45. }
  46. }
  47. </style>