index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="add_follow" catchtouchmove="true">
  3. <view class="info_alter">
  4. <text v-show="userInfo?.follow_linkurl">点击二维码添加客服</text>
  5. <text v-show="!userInfo?.follow_linkurl">长按二维码添加客服</text>
  6. </view>
  7. <view class="qr_code_area">
  8. <image :src="userInfo?.follow_qrcode" class="qr_code" mode="" show-menu-by-longpress> </image>
  9. </view>
  10. <!-- <view class="rule_info">
  11. <view class="">报单规则:</view>
  12. <view class="">1、预约报单需要添加客服人员</view>
  13. <view class="">2、添加完客服人员后填写小程序当前登录手机号以绑定账号</view>
  14. <view class="">3、开始预约报单</view>
  15. </view> -->
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. onReady() {
  21. // 判断数据
  22. this.$http.request("api/custom/get_info").then((callback) => {
  23. if (callback.code == "success") {
  24. // 赋值
  25. this.userInfo = callback.data;
  26. }
  27. });
  28. },
  29. data() {
  30. return {
  31. userInfo: {
  32. follow_linkurl: this.$checkAccess.getFollowLinkUrl(),
  33. follow_qrcode: this.$checkAccess.getFollowQrcode(),
  34. },
  35. };
  36. },
  37. };
  38. </script>
  39. <style lang="less" scoped>
  40. .add_follow {
  41. display: block;
  42. color: #ffffff;
  43. width: 100vw;
  44. height: 100vh;
  45. margin: 0 auto;
  46. font-size: 26rpx;
  47. background: linear-gradient(to bottom, #ff0091 0%, #2c82ff 100%);
  48. padding-top: 200rpx;
  49. .close_area {
  50. height: 80rpx;
  51. display: block;
  52. line-height: 80rpx;
  53. .close_btn {
  54. color: #ffffff;
  55. float: right;
  56. width: 80rpx;
  57. height: 80rpx;
  58. font-size: 26rpx;
  59. text-align: center;
  60. line-height: 80rpx;
  61. padding: 0rpx 0rpx;
  62. border: 0rpx solid transparent;
  63. background-color: transparent;
  64. }
  65. .close_btn::after {
  66. border: 0rpx solid transparent;
  67. }
  68. }
  69. .info_alter {
  70. display: block;
  71. height: 100rpx;
  72. font-size: 42rpx;
  73. font-weight: bold;
  74. text-align: center;
  75. line-height: 100rpx;
  76. }
  77. .qr_code_area {
  78. display: block;
  79. width: 300rpx;
  80. height: 300rpx;
  81. margin: 30rpx auto;
  82. .qr_code {
  83. float: left;
  84. width: 300rpx;
  85. height: 300rpx;
  86. }
  87. }
  88. .save_btn {
  89. color: #333333;
  90. display: block;
  91. width: 260rpx;
  92. height: 80rpx;
  93. font-size: 26rpx;
  94. text-align: center;
  95. line-height: 80rpx;
  96. padding: 0rpx 0rpx;
  97. margin: 40rpx auto;
  98. border-radius: 40rpx;
  99. background-color: #ffffff;
  100. border: 0rpx solid transparent;
  101. }
  102. .rule_info {
  103. width: 600rpx;
  104. display: block;
  105. font-size: 26rpx;
  106. margin: 20rpx auto;
  107. overflow: hidden;
  108. line-height: 40rpx;
  109. }
  110. }
  111. </style>