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

142 lines
3.0 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-m-r-20">
  6. <image src="../../static/logo.png" style="width: 98rpx;height: 112rpx;" mode="aspectFill"></image>
  7. </view>
  8. <view>
  9. <view class="lf-color-555 lf-font-26">添加专属客服咨询使用问题投诉不正当会员专属人工客服将为您服务</view>
  10. <view class="lf-color-555 lf-font-26 lf-m-t-20">线下红娘服务私人订制服务全方位助您脱单</view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="qrcode-content">
  15. <view class="lf-row-between lf-p-l-30 lf-p-r-30 content-title">
  16. <view class="lf-flex">
  17. <u-icon name="weixin-fill lf-m-r-15 lf-font-38"></u-icon><text class="lf-font-28 lf-color-222">{{ kefu.weixin }}</text>
  18. </view>
  19. <view class="content-btn" @click="copy(kefu.weixin)">
  20. 复制
  21. </view>
  22. </view>
  23. <view class="qr-code">
  24. <image :src="kefu.qrcode_url"></image>
  25. <!-- <tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="270" unit="px" background="#fff"
  26. foreground="#000" pdground="#000" :onval="true" :loadMake="true" /> -->
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. // import tkiQrcode from "tki-qrcode" // 二维码生成器
  33. export default {
  34. // components: {
  35. // tkiQrcode
  36. // },
  37. data() {
  38. return {
  39. base64Img: '',
  40. checkArea: 'USI782936437829',
  41. kefu: {}
  42. }
  43. },
  44. onLoad(){
  45. this.getData();
  46. },
  47. methods: {
  48. getData(){
  49. this.$http(this.API.API_KEFU).then(res => {
  50. this.kefu = res.data.kefu;
  51. })
  52. },
  53. //二维码回调
  54. qrR(data) {
  55. this.base64Img = data;
  56. },
  57. // 点击复制
  58. copy(text) {
  59. if(!text) return;
  60. this.$copy(text);
  61. }
  62. }
  63. }
  64. </script>
  65. <style>
  66. page {
  67. background-color: #F5F5F5;
  68. }
  69. </style>
  70. <style scoped="scoped">
  71. .pure_top {
  72. width: 100%;
  73. height: 210rpx;
  74. position: relative;
  75. z-index: 1;
  76. }
  77. .pure_top::after {
  78. content: '';
  79. width: 140%;
  80. height: 210rpx;
  81. position: absolute;
  82. left: -20%;
  83. top: 0;
  84. z-index: -1;
  85. border-radius: 0 0 55% 55%;
  86. background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
  87. }
  88. .tips-top {
  89. width: 686rpx;
  90. height: 252rpx;
  91. background: #FFFFFF;
  92. border-radius: 20rpx;
  93. margin: 0 auto;
  94. position: relative;
  95. top: 60rpx;
  96. padding: 50rpx 40rpx;
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. }
  101. .qrcode-content {
  102. width: 686rpx;
  103. height: 703rpx;
  104. background: #FFFFFF;
  105. border-radius: 20rpx;
  106. margin: 0 auto;
  107. margin-top: 133rpx;
  108. }
  109. .content-btn {
  110. width: 122rpx;
  111. height: 55rpx;
  112. border-radius: 28rpx;
  113. border: 1rpx solid #777777;
  114. font-size: 24rpx;
  115. color: #777;
  116. font-weight: 400;
  117. text-align: center;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. letter-spacing: 1rpx;
  122. }
  123. .content-title {
  124. height: 100rpx;
  125. border-bottom: 1rpx solid #F5F5F5;
  126. }
  127. .qr-code {
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. margin: 30rpx 0;
  132. }
  133. </style>