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

130 lines
2.7 KiB

5 years ago
  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. </style>
  57. <style scoped="scoped">
  58. .pure_top {
  59. width: 100%;
  60. height: 210rpx;
  61. position: relative;
  62. z-index: 1;
  63. }
  64. .pure_top::after {
  65. content: '';
  66. width: 140%;
  67. height: 210rpx;
  68. position: absolute;
  69. left: -20%;
  70. top: 0;
  71. z-index: -1;
  72. border-radius: 0 0 55% 55%;
  73. background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
  74. }
  75. .tips-top {
  76. width: 686rpx;
  77. height: 252rpx;
  78. background: #FFFFFF;
  79. border-radius: 20rpx;
  80. margin: 0 auto;
  81. position: relative;
  82. top: 60rpx;
  83. padding: 50rpx 40rpx;
  84. display: flex;
  85. flex-direction: column;
  86. /* justify-content: space-around; */
  87. }
  88. .qrcode-content {
  89. width: 686rpx;
  90. height: 703rpx;
  91. background: #FFFFFF;
  92. border-radius: 20rpx;
  93. margin: 0 auto;
  94. margin-top: 133rpx;
  95. }
  96. .content-btn {
  97. width: 122rpx;
  98. height: 55rpx;
  99. border-radius: 28rpx;
  100. border: 1rpx solid #777777;
  101. font-size: 24rpx;
  102. color: #777;
  103. font-weight: 400;
  104. text-align: center;
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. letter-spacing: 1rpx;
  109. }
  110. .content-title {
  111. height: 100rpx;
  112. border-bottom: 1rpx solid #F5F5F5;
  113. }
  114. .qr-code {
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. margin: 30rpx 0;
  119. }
  120. </style>