index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <script setup>
  2. import { ref } from "vue";
  3. import Container from "../../components/Container/Container.vue";
  4. import { onShow } from "@dcloudio/uni-app";
  5. import { request } from "@/utils/request";
  6. const src = ref("");
  7. onShow(() => {
  8. request(
  9. "api/question_bank/question_reception/channel_active_code/random_detail"
  10. ).then((res) => {
  11. src.value = res.data.qr_code;
  12. });
  13. });
  14. </script>
  15. <template>
  16. <Container title="客服" headerColor="#fff">
  17. <template #bg>
  18. <image
  19. src="https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/06/62nosnkBoSUk8YfpSsgb0oOWaCIP8LiuWji117O2.png"
  20. mode="scaleToFill"
  21. class="bg"
  22. />
  23. </template>
  24. <view class="Container">
  25. <view class="text-lg">专属客服, 帮助解决您的问题</view>
  26. <view class="qr-code">
  27. <div class="card">
  28. <img :src="src" show-menu-by-longpress class="img" alt="" />
  29. <span>可长按识别二维码</span>
  30. </div>
  31. </view>
  32. <div class="tip">
  33. <div class="fi">服务问题优先解决</div>
  34. <div>考试咨询提前收到</div>
  35. <div>新政策变化早知道</div>
  36. <div>各项活动优先参与</div>
  37. </div>
  38. </view>
  39. </Container>
  40. </template>
  41. <style lang="scss">
  42. .bg {
  43. width: 750rpx;
  44. height: 100%;
  45. }
  46. .qr-code {
  47. width: 100%;
  48. height: 100%;
  49. margin-top: 40px;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. color: $success;
  54. gap: 12rpx;
  55. .card {
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. flex-direction: column;
  60. padding: 60rpx;
  61. background-color: #fff;
  62. gap: 30rpx;
  63. border-radius: 40rpx;
  64. width: calc(100%);
  65. box-sizing: border-box;
  66. color: #333;
  67. .img {
  68. width: 448rpx;
  69. height: 448rpx;
  70. }
  71. }
  72. }
  73. .text-lg {
  74. font-size: 48rpx;
  75. font-weight: bold;
  76. }
  77. .Container {
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. justify-content: center;
  82. padding: 70rpx 20rpx;
  83. gap: 20rpx;
  84. .tip {
  85. background: url(https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/06/tIT6xZagfurccmnM2X4IqCophs5rCbrHRE3ZYJ7E.png);
  86. background-size: 100% 100%;
  87. border-radius: 40rpx;
  88. padding: 20rpx 0 40rpx;
  89. width: 100%;
  90. height: 400rpx;
  91. box-sizing: border-box;
  92. display: flex;
  93. flex-direction: column;
  94. align-items: center;
  95. justify-content: center;
  96. gap: 24rpx;
  97. color: $warning;
  98. padding-top: 24rpx;
  99. .fi {
  100. margin-top: 60rpx;
  101. }
  102. }
  103. }
  104. </style>