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

54 lines
890 B

  1. <template>
  2. <uv-popup
  3. ref="popup"
  4. :overlayOpacity="0.8"
  5. mode="bottom"
  6. round="20rpx"
  7. >
  8. <view class="flex qr-popup">
  9. <text class="tips">长按识别二维码了解更多内容</text>
  10. <image class="qr" :src="src" :show-menu-by-longpress="true"></image>
  11. </view>
  12. </uv-popup>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. src: {
  18. type: String,
  19. default: null
  20. }
  21. },
  22. data() {
  23. return {
  24. }
  25. },
  26. methods: {
  27. open() {
  28. this.$refs.popup.open();
  29. },
  30. close() {
  31. this.$refs.popup.close();
  32. },
  33. },
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .qr-popup {
  38. flex-direction: column;
  39. padding-bottom: 104rpx;
  40. .tips {
  41. margin-top: 75rpx;
  42. color: #1B1B1B;
  43. font-size: 32rpx;
  44. }
  45. .qr {
  46. margin-top: 40rpx;
  47. width: 350rpx;
  48. height: 350rpx;
  49. }
  50. }
  51. </style>