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

139 lines
2.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
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">{{ hongniang.weixin }}</text>
  14. </view>
  15. <view class="content-btn" @click="copy(hongniang.weixin)">
  16. 复制
  17. </view>
  18. </view>
  19. <view class="qr-code">
  20. <image :src="hongniang.qrcode_url"></image>
  21. <!-- <tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="270" unit="px" background="#fff"
  22. foreground="#000" pdground="#000" :onval="true" :loadMake="true" /> -->
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. // import tkiQrcode from "tki-qrcode" // 二维码生成器
  29. export default {
  30. // components: {
  31. // tkiQrcode
  32. // },
  33. data() {
  34. return {
  35. base64Img: '',
  36. checkArea: 'USI782936437829',
  37. hongniang: {}
  38. }
  39. },
  40. onLoad(){
  41. this.getData();
  42. },
  43. methods: {
  44. getData(){
  45. this.$http(this.API.API_HONGNIANG).then(res => {
  46. this.hongniang = res.data.hongniang;
  47. })
  48. },
  49. //二维码回调
  50. qrR(data) {
  51. this.base64Img = data;
  52. },
  53. // 点击复制
  54. copy(text) {
  55. if(!text) return;
  56. this.$copy(text);
  57. }
  58. }
  59. }
  60. </script>
  61. <style>
  62. page {
  63. background-color: #F5F5F5;
  64. }
  65. </style>
  66. <style scoped="scoped">
  67. .pure_top {
  68. width: 100%;
  69. height: 210rpx;
  70. position: relative;
  71. z-index: 1;
  72. }
  73. .pure_top::after {
  74. content: '';
  75. width: 140%;
  76. height: 210rpx;
  77. position: absolute;
  78. left: -20%;
  79. top: 0;
  80. z-index: -1;
  81. border-radius: 0 0 55% 55%;
  82. background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
  83. }
  84. .tips-top {
  85. width: 686rpx;
  86. height: 252rpx;
  87. background: #FFFFFF;
  88. border-radius: 20rpx;
  89. margin: 0 auto;
  90. position: relative;
  91. top: 60rpx;
  92. padding: 50rpx 40rpx;
  93. display: flex;
  94. flex-direction: column;
  95. /* justify-content: space-around; */
  96. }
  97. .qrcode-content {
  98. width: 686rpx;
  99. height: 703rpx;
  100. background: #FFFFFF;
  101. border-radius: 20rpx;
  102. margin: 0 auto;
  103. margin-top: 133rpx;
  104. }
  105. .content-btn {
  106. width: 122rpx;
  107. height: 55rpx;
  108. border-radius: 28rpx;
  109. border: 1rpx solid #777777;
  110. font-size: 24rpx;
  111. color: #777;
  112. font-weight: 400;
  113. text-align: center;
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. letter-spacing: 1rpx;
  118. }
  119. .content-title {
  120. height: 100rpx;
  121. border-bottom: 1rpx solid #F5F5F5;
  122. }
  123. .qr-code {
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. margin: 30rpx 0;
  128. }
  129. </style>