addContant.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <Container
  3. title="添加老师咨询"
  4. :scrollStyle="{
  5. padding: 0,
  6. }"
  7. >
  8. <view class="bg">
  9. <div class="bg-0"></div>
  10. <view class="bg-1">
  11. <image :src="qrcode" show-menu-by-longpress class="qrcode"></image>
  12. </view>
  13. <div class="bg-2">
  14. <div>报名信息</div>
  15. <div class="text-14">
  16. {{ info.contact_name }}{{ info.contact_information
  17. }}{{ info.pharmacist_type === 1 ? "中药" : "西药" }}
  18. </div>
  19. <div class="text-t9 text-12">如需修改报名信息,请联系客服修改</div>
  20. </div>
  21. </view>
  22. </Container>
  23. </template>
  24. <script setup>
  25. import Container from "@/components/Container/Container.vue";
  26. import { request } from "../../utils/request";
  27. import { ref } from "vue";
  28. import { onShow } from "@dcloudio/uni-app";
  29. import { getRoute } from "../../utils/router";
  30. const qrcode = ref("");
  31. const info = ref({});
  32. onShow(() => {
  33. request("api/question_bank/question_reception/common_config/detail", {
  34. content_code: "challenge_activities",
  35. }).then((res) => {
  36. const { type } = getRoute().params;
  37. const key =
  38. type === 1 ? "chinese_medicine_qrcode" : "western_medicine_qrcode";
  39. qrcode.value = res.data.content_detail[key];
  40. });
  41. request(
  42. "api/question_bank/question_reception/challenge_registration_log/detail"
  43. ).then((res) => {
  44. if (res.data) {
  45. info.value = res.data;
  46. }
  47. });
  48. });
  49. </script>
  50. <style scoped lang="scss">
  51. .bg {
  52. width: 100%;
  53. height: 100%;
  54. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/05/yz2eTeqIRv60IEe6kOQBOYlHr75wiFIpeFqrJmgZ.png");
  55. background-size: 100% 100%;
  56. padding: 216rpx 10rpx;
  57. box-sizing: border-box;
  58. position: relative;
  59. .bg-0 {
  60. width: 128rpx;
  61. height: 128rpx;
  62. top: 70rpx;
  63. left: 50%;
  64. transform: translateX(-50%);
  65. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/06/IGf12z7pkPWDXrRxt9Yk9xVz9Mt1Cs8OZXGkyT1R.png");
  66. background-size: 100% 100%;
  67. position: absolute;
  68. }
  69. .bg-1 {
  70. width: 730.71rpx;
  71. height: 841rpx;
  72. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/06/U29HhzEGO1qyFSKkngSFM3uosicKhY8Gc4EsifY8.png");
  73. background-size: 100% 100%;
  74. position: relative;
  75. .qrcode {
  76. position: absolute;
  77. top: 205rpx;
  78. left: 141rpx;
  79. width: 448rpx;
  80. height: 448rpx;
  81. background-size: 100% 100%;
  82. }
  83. }
  84. .bg-2 {
  85. width: 680rpx;
  86. height: 310rpx;
  87. margin: 0 20rpx;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. box-sizing: border-box;
  92. justify-content: center;
  93. gap: 51rpx;
  94. background: url("https://openwork-oss.oss-cn-shenzhen.aliyuncs.com/uploads/question/2025/06/CyJTtM0Jtx2JY4aMthrAwjl0caJxApRcypbKsU20.png");
  95. background-size: 100% 100%;
  96. }
  97. }
  98. </style>