forget.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="bd-forget" >
  3. <view class="bd-image">
  4. <image class="bd-img" src="./image/forget.png"/>
  5. <view class="bd-text">请联系平台客服修改</view>
  6. </view>
  7. <view class="bd-wechat">
  8. <view class="bd-border">
  9. <view class="border-title">客服微信</view>
  10. <image class="bd-img-wechat" :src="detail.qrcode_url"/>
  11. <view class="bd-name">微信号:{{detail.name}}</view>
  12. <view class="bd-btns dir-left-nowrap main-between">
  13. <wiew class="bd-btn" @click="saveImg">保存客服二维码图片</wiew>
  14. <wiew class="bd-btn" @click="saveName">复制客服微信号</wiew>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. name: "bd-forget",
  23. data() {
  24. return {
  25. detail: {}
  26. }
  27. },
  28. onLoad() { this.$commonLoad.onload();
  29. this.getDetail();
  30. },
  31. methods: {
  32. getDetail: function() {
  33. this.$request({
  34. url: this.$api.registered.register_data,
  35. }).then(response => {
  36. if (response.code === 0) {
  37. this.detail = response.data.list[0];
  38. } else {
  39. uni.showToast({
  40. icon: 'none',
  41. title: response.msg
  42. });
  43. }
  44. });
  45. },
  46. saveImg() {
  47. this.$utils.batchSave(this.detail.qrcode_url, 'image');
  48. },
  49. saveName() {
  50. this.$utils.uniCopy({
  51. data: this.detail.name,
  52. success() {
  53. uni.showToast({
  54. icon: 'none',
  55. title: '微信客服复制成功'
  56. });
  57. }
  58. });
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .bd-image {
  65. width: 750upx;
  66. height: 460upx;
  67. background: #ffffff;
  68. }
  69. .bd-img {
  70. width:335upx;
  71. height: 200upx;
  72. margin: 100upx 207.5upx 0 207.5upx;
  73. }
  74. .bd-wechat {
  75. padding: 70upx 40upx;
  76. width:750upx;
  77. }
  78. .bd-text {
  79. font-size: 35upx;
  80. font-weight: bold;
  81. color: #333333;
  82. text-align: center;
  83. margin-top:50upx;
  84. }
  85. .bd-border {
  86. border: 1upx dashed #999999;
  87. background: #ffffff;
  88. border-radius: 15upx;
  89. position: relative;
  90. height: 650upx;
  91. }
  92. .border-title {
  93. height: 80upx;
  94. line-height: 80upx;
  95. text-align: center;
  96. width: 240upx;
  97. color: #353535;
  98. font-size: 35upx;
  99. border: 1upx dashed #999999;
  100. background: #ffffff;
  101. border-radius: 15upx;
  102. position: absolute;
  103. top: 0;
  104. transform: translate(-50%, -50%);
  105. left: 50%;
  106. }
  107. .bd-img-wechat {
  108. width: 360upx;
  109. height:360upx;
  110. margin:90upx 155upx 25upx 155upx;
  111. }
  112. .bd-name {
  113. font-size:26upx;
  114. color: #999999;
  115. text-align: center;
  116. }
  117. .bd-btns {
  118. padding: 24upx 40upx;
  119. }
  120. .bd-btn {
  121. width:264upx;
  122. height:64upx;
  123. border: 1upx solid #ff4544;
  124. border-radius: 32upx;
  125. color: #ff4544;
  126. font-size:24upx;
  127. line-height: 64upx;
  128. text-align: center;
  129. }
  130. </style>