裂变星小程序-25.03.04
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB

  1. <template>
  2. <uv-popup
  3. ref="popup"
  4. :overlayOpacity="0.8"
  5. :customStyle="{
  6. backgroundColor: 'transparent',
  7. }"
  8. >
  9. <view>
  10. <image class="popup-bg" :src="src"></image>
  11. <view class="flex popup-btns">
  12. <button plain class="btn-simple" @click="close">
  13. <image class="popup-btn" src="../static/sharing/cancel.png"></image>
  14. </button>
  15. <button plain class="btn-simple" open-type="share">
  16. <image class="popup-btn" src="../static/sharing/forward.png"></image>
  17. </button>
  18. </view>
  19. </view>
  20. </uv-popup>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. src: {
  26. type: String,
  27. default: null
  28. }
  29. },
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. open() {
  36. this.$refs.popup.open();
  37. },
  38. close() {
  39. console.log('--close popup')
  40. this.$refs.popup.close();
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .popup {
  47. &-bg {
  48. width: 578rpx; height: 317rpx;
  49. }
  50. &-btns {
  51. justify-content: space-between;
  52. margin-top: 56rpx;
  53. }
  54. &-btn {
  55. width: 265rpx;
  56. height: 84rpx;
  57. }
  58. }
  59. </style>