详情小程序
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.

127 lines
2.6 KiB

  1. <template>
  2. <view class="lf-w-100 lf-h-100">
  3. <view class="pure_top">
  4. <view class="tips-top">
  5. <view class="lf-color-222 lf-font-32">私人专属红娘可可小红娘可爱猪猪</view>
  6. <view class="lf-color-555 lf-font-26 lf-m-t-20">添加专属红娘为好友获得红线帮您牵线搭桥</view>
  7. <view class="lf-color-555 lf-font-26 lf-m-t-20">线下红娘服务私人订制服务全方位助您脱单</view>
  8. </view>
  9. </view>
  10. <view class="qrcode-content">
  11. <view class="lf-row-between lf-p-l-30 lf-p-r-30 content-title">
  12. <view class="lf-flex">
  13. <u-icon name="weixin-fill lf-m-r-15 lf-font-38"></u-icon><text class="lf-font-28 lf-color-222">gyw38283</text>
  14. </view>
  15. <view class="content-btn" @click="copy(gyw38283)">
  16. 复制
  17. </view>
  18. </view>
  19. <view class="qr-code">
  20. <tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="270" unit="px" background="#fff"
  21. foreground="#000" pdground="#000" :onval="true" :loadMake="true" />
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import tkiQrcode from "tki-qrcode" // 二维码生成器
  28. export default {
  29. components: {
  30. tkiQrcode
  31. },
  32. data() {
  33. return {
  34. base64Img: '',
  35. checkArea: 'USI782936437829'
  36. }
  37. },
  38. methods: {
  39. //二维码回调
  40. qrR(data) {
  41. this.base64Img = data;
  42. },
  43. // 点击复制
  44. copy(text) {
  45. uni.setClipboardData({
  46. data: text
  47. });
  48. }
  49. }
  50. }
  51. </script>
  52. <style>
  53. page {
  54. background-color: #F5F5F5;
  55. }
  56. .pure_top {
  57. width: 100%;
  58. height: 210rpx;
  59. position: relative;
  60. z-index: -1;
  61. }
  62. .pure_top::after {
  63. content: '';
  64. width: 140%;
  65. height: 210rpx;
  66. position: absolute;
  67. left: -20%;
  68. top: 0;
  69. z-index: -1;
  70. border-radius: 0 0 55% 55%;
  71. background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
  72. }
  73. .tips-top {
  74. width: 686rpx;
  75. height: 252rpx;
  76. background: #FFFFFF;
  77. border-radius: 20rpx;
  78. margin: 0 auto;
  79. position: relative;
  80. top: 60rpx;
  81. padding: 50rpx 40rpx;
  82. display: flex;
  83. flex-direction: column;
  84. /* justify-content: space-around; */
  85. }
  86. .qrcode-content {
  87. width: 686rpx;
  88. height: 703rpx;
  89. background: #FFFFFF;
  90. border-radius: 20rpx;
  91. margin: 0 auto;
  92. margin-top: 133rpx;
  93. }
  94. .content-btn {
  95. width: 122rpx;
  96. height: 55rpx;
  97. border-radius: 28rpx;
  98. border: 1rpx solid #777777;
  99. font-size: 24rpx;
  100. color: #777;
  101. font-weight: 400;
  102. text-align: center;
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. letter-spacing: 1rpx;
  107. }
  108. .content-title {
  109. height: 100rpx;
  110. border-bottom: 1rpx solid #F5F5F5;
  111. }
  112. .qr-code {
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. margin: 30rpx 0;
  117. }
  118. </style>