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

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