风险测评小程序前端代码仓库
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.

92 lines
1.7 KiB

  1. <template>
  2. <uv-popup
  3. ref="popup"
  4. :overlayOpacity="0"
  5. mode="center"
  6. bgColor="none"
  7. >
  8. <view class="popup__view">
  9. <image class="bg" src="@/pages_order/static/service/bg-popup-qr.png" mode="widthFix"></image>
  10. <view class="flex flex-column content">
  11. <text class="title">扫码添加微信</text>
  12. <!-- todo: check key -->
  13. <image class="img" src="" :show-menu-by-longpress="true"></image>
  14. <button class="btn" @click="close">已截图</button>
  15. </view>
  16. </view>
  17. </uv-popup>
  18. </template>
  19. <script>
  20. import { mapState } from 'vuex'
  21. export default {
  22. props: {
  23. src: {
  24. type: String,
  25. default: null
  26. }
  27. },
  28. data() {
  29. return {
  30. }
  31. },
  32. computed : {
  33. ...mapState(['configList'])
  34. },
  35. methods: {
  36. open() {
  37. this.$refs.popup.open();
  38. },
  39. close() {
  40. this.$refs.popup.close();
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .popup__view {
  47. position: relative;
  48. width: 684rpx;
  49. min-height: 826rpx;
  50. background: #FFFFFF;
  51. border-radius: 16rpx;
  52. }
  53. .bg {
  54. width: 100%;
  55. height: auto;
  56. }
  57. .content {
  58. position: absolute;
  59. top: 0;
  60. left: 0;
  61. width: 100%;
  62. height: 100%;
  63. padding: 71rpx 0 23rpx 0;
  64. box-sizing: border-box;
  65. justify-content: space-between;
  66. }
  67. .title {
  68. font-size: 32rpx;
  69. font-weight: 600;
  70. color: #000000;
  71. }
  72. .img {
  73. margin: 156rpx 0 73rpx 0;
  74. width: 360rpx;
  75. height: auto;
  76. min-height: 360rpx;
  77. }
  78. .btn {
  79. padding: 29rpx 202rpx;
  80. font-size: 30rpx;
  81. color: #FFFFFF;
  82. background: #014FA2;
  83. border-radius: 50rpx;
  84. }
  85. </style>