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

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