zhengyiming
4 天以前 d072756126dbd8268957cec9f3aae2e0af16ce52
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
<template>
  <LoadingLayout :loading="isLoading">
    <div class="sign-middleware-wrapper">
      <!-- <el-button type="primary" @click="goSign">前往签约</el-button> -->
    </div>
  </LoadingLayout>
</template>
 
<script setup lang="ts">
import { LoadingLayout } from '@bole-core/components';
import * as codeUrlServices from '@/services/api/codeUrl';
import { useQuery } from '@tanstack/vue-query';
 
//跳转到c端小程序签约详情
defineOptions({
  name: 'SignMiddleware',
});
 
const route = useRoute();
const templateCode = (route.params.code as string) ?? '';
 
function goSign() {}
 
const { data, isLoading } = useQuery({
  queryKey: ['codeUrlServices/getCodeUrl', templateCode],
  queryFn: () =>
    codeUrlServices.getCodeUrl(
      {
        scene: EnumCodeUrlScene.ElectronSignUrl,
        code: templateCode,
      },
      { showLoading: false }
    ),
  enabled: computed(() => !!templateCode),
});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.sign-middleware-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100%;
}
</style>