|
|
@@ -0,0 +1,92 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <Bounced v-if="dialogVisible" :dialogVisible="dialogVisible" :titleName="''" bouncedWidth="40%">
|
|
|
+ <template slot="from">
|
|
|
+ <div class="det-common-view" style="height: 60vh;">
|
|
|
+
|
|
|
+ <div class="order-ok"><i class="el-icon-success"></i></div>
|
|
|
+ <div class="order-text">{{$t('home2.text2')}}</div>
|
|
|
+ <div class="prompt-text"><span>{{$t('home2.text3')}}</span> <span style="color: #FB3434">{{time}}s</span></div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </Bounced>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Bounced from '@/components/Admin/bounced.vue'
|
|
|
+export default {
|
|
|
+ name: 'order-sett',
|
|
|
+ components: { Bounced },
|
|
|
+ props: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dialogVisible:false,
|
|
|
+ timeServe:undefined,
|
|
|
+ time:0
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ setOpen(dialogVisible){
|
|
|
+ this.dialogVisible=dialogVisible===true;
|
|
|
+ if( this.dialogVisible){
|
|
|
+ this.time=15
|
|
|
+ this.timeServe=setInterval(()=>{
|
|
|
+ this.time--;
|
|
|
+ this.text = this.time ;
|
|
|
+ if (this.time===0) {
|
|
|
+ clearInterval(this.timeServe);
|
|
|
+ this.timeServe=undefined
|
|
|
+ this.dialogVisible=false
|
|
|
+ }
|
|
|
+ },1000);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.det-common-view{
|
|
|
+ background-color: #fff;
|
|
|
+ width: 100%;
|
|
|
+ height: 346px;
|
|
|
+ border-radius: 10px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .order-ok{
|
|
|
+ margin-top: 80px;
|
|
|
+ width: 64px;
|
|
|
+ height: 64px;
|
|
|
+ border-radius: 50%;
|
|
|
+ text-align: center;
|
|
|
+ //background: rgba(123, 79, 108, 1);
|
|
|
+ .el-icon-success{
|
|
|
+color: rgba(123, 79, 108, 1);
|
|
|
+ font-size: 64px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-text{
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ margin-top: 20px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .prompt-text{
|
|
|
+ margin-top: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #707070;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+</style>
|