裂变星小程序-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.

58 lines
1.0 KiB

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