| | |
| | | <template> |
| | | <div class="sign-middleware-wrapper"> |
| | | <el-button type="primary" @click="goSign">前往签约</el-button> |
| | | </div> |
| | | <LoadingLayout :loading="isLoading"> |
| | | <div class="sign-middleware-wrapper"> |
| | | <!-- <el-button type="primary" @click="goSign">前往签约</el-button> --> |
| | | </div> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | // import { AppContainer } from '@bole-core/components'; |
| | | import { LoadingLayout } from '@bole-core/components'; |
| | | import * as codeUrlServices from '@/services/api/codeUrl'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | |
| | | //跳转到c端小程序签约详情 |
| | | defineOptions({ |
| | | name: 'SignMiddleware', |
| | | }); |
| | |
| | | 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> |