zhengyiming
2025-10-14 efb39fe52a9829815bb0b82fb5b920cd3b552c2f
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
<template>
  <ProDialog title="选择投保方式" v-model="visible" destroy-on-close draggable width="400px">
    <div class="button-item" style="margin-bottom: 40px">
      <el-button type="primary" plain @click="handleConfirm(InsureLineMode.OnLine)"
        >线上投保</el-button
      >
    </div>
    <div class="button-item">
      <el-button type="primary" plain @click="handleConfirm(InsureLineMode.OffLine)"
        >线下投保</el-button
      >
    </div>
  </ProDialog>
</template>
 
<script setup lang="ts">
import { ProDialog, ProForm } from '@bole-core/components';
import { InsureLineMode } from '../constants';
 
defineOptions({
  name: 'InsureLineModeSelectDialog',
});
 
// type Props = {};
 
// const props = withDefaults(defineProps<Props>(), {});
 
const visible = defineModel({ type: Boolean });
 
const emit = defineEmits<{
  (e: 'onConfirm', mode: InsureLineMode): void;
}>();
 
function handleConfirm(mode: InsureLineMode) {
  emit('onConfirm', mode);
}
</script>
 
<style scoped lang="scss">
.button-item {
  text-align: center;
 
  :deep() {
    .el-button {
      margin: 0 auto;
      width: 200px;
    }
  }
}
</style>