zhengyiming
2025-03-13 07d73df3d817d01ce47f6c7b7a8d8514cd389295
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
  <PageLayoutWithBg title="面试登记">
    <div class="home-content">
      <div class="home-content-title">面试登记</div>
      <div class="qrcode-wrapper"></div>
      <div class="home-company-name">宁波人力无忧公司</div>
      <div class="home-btn">扫码登记</div>
    </div>
  </PageLayoutWithBg>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'Home',
});
 
const router = useRouter();
const route = useRoute();
const customerId = (route.query.customerId as string) ?? '';
const templateId = (route.query.templateId as string) ?? '';
const companyId = (route.query.companyId as string) ?? '';
const action = (route.query.action as string) ?? '';
const bussinessCode = (route.query.bussinessCode as string) ?? '';
 
const qrcodeUrl = computed(
  () =>
    `${location.origin}${
      router.resolve({
        name: 'Interview',
        query: { customerId, templateId, companyId, action, bussinessCode },
      }).fullPath
    }`
);
 
console.log('qrcodeUrl: ', qrcodeUrl);
</script>
 
<style scoped lang="scss">
@use '@/style/common.scss' as *;
 
.home-content {
  display: flex;
  align-items: center;
  margin: 40px auto 0;
  width: 310px;
  height: 554px;
  background: url('@/assets/home/icon-home-content.png') no-repeat;
  background-size: cover;
  flex-direction: column;
 
  .home-content-title {
    margin-top: 162px;
    margin-bottom: 22px;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    line-height: 28px;
  }
 
  .qrcode-wrapper {
    margin-bottom: 20px;
  }
 
  .home-company-name {
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 22px;
  }
 
  .home-btn {
    width: 180px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    line-height: 22px;
    cursor: pointer;
  }
}
</style>