普兆健康管家前端代码仓库
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.0 KiB

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