dcc
2024-06-13 3616db170333df7d668c97323344335b52c4153c
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<template>
  <el-dialog
    v-model="show"
    width="360px"
    :append-to-body="true"
    :before-close="close"
  >
    <div class="body-wrapper text-black">
      <div class="flex justify-center">
        <img class="success-img" src="@/assets/images/wallet/success.svg" />
      </div>
      <p class="title mt-2">
        {{ t("message.user.tikuan") }}
        {{ t("message.user.successfulApplication") }}
      </p>
      <ul class="mt-8">
        <li class="mt-4">
          <div class="fs-16 font-semibold">
            {{ t("message.user.tikuan") }}
            {{ t("message.user.applicationSubmitted") }}
          </div>
          <p class="mt-2">{{ getCurrentTime() }}</p>
        </li>
        <li class="mt-4">
          <div class="fs-16 font-semibold">
            {{ t("message.user.tikuan") }}
            {{ t("message.user.applicationSubmitted") }}
          </div>
          <p class="mt-2">
            {{ t("message.user.tikuan")
            }}{{ t("message.user.ContactCustomerService") }}
          </p>
        </li>
        <li class="mt-4">
          <div class="fs-16 font-semibold">
            {{ t("message.user.tikuan") }} {{ t("message.user.succeeded") }}
          </div>
          <p class="mt-2">{{ t("message.user.Youinformation") }}</p>
        </li>
      </ul>
 
      <!-- 按钮 -->
      <div class="flex w-full justify-center mt-4">
        <el-button
          type="primary"
          @click="handleViewHistory"
          class="w-full btn-submit"
        >
          {{ t("message.user.chakantixianlishi") }}
        </el-button>
      </div>
    </div>
  </el-dialog>
</template>
 
<script setup>
import { ref } from "vue";
import { useI18n } from "vue-i18n";
import dayjs from "dayjs";
import { useRouter } from "vue-router";
const router = useRouter();
const { t } = useI18n();
const props = defineProps({
  isShow: {
    type: Boolean,
    default: false,
  },
});
const show = ref();
 
const emits = defineEmits(["close"]);
onBeforeMount(() => {
  show.value = props.isShow;
});
watch(props, async (newprops) => {
  show.value = newprops.isShow;
});
 
const getCurrentTime = () => {
  return dayjs().format("YYYY-MM-DD HH:mm:ss");
};
 
const handleViewHistory = () => {
  emits("close");
  router.push("/withdraw/record");
};
const close = ()=>{
  emits("close");
  show.value = false
}
</script>
<style lang="scss" scoped>
.success-img {
  width: 48px;
  height: 48px;
}
.title {
  text-align: center;
  color: #1f2025;
  font-weight: bold;
  font-size: 20px;
}
</style>