|
@@ -15,7 +15,7 @@
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<div class="title">{{ orderDetail.goods_name }}</div>
|
|
<div class="title">{{ orderDetail.goods_name }}</div>
|
|
|
<div class="desc">{{ orderDetail.contents }}</div>
|
|
<div class="desc">{{ orderDetail.contents }}</div>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div class="money">
|
|
<div class="money">
|
|
|
<div class="label">{{$t('other.text11')}}:</div>
|
|
<div class="label">{{$t('other.text11')}}:</div>
|
|
|
<div class="num">{{ orderDetail.price }}</div>
|
|
<div class="num">{{ orderDetail.price }}</div>
|
|
@@ -28,7 +28,7 @@
|
|
|
<div class="btn" @click="goToRechargePage">{{$t('other.text14')}}</div>
|
|
<div class="btn" @click="goToRechargePage">{{$t('other.text14')}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</Bounced>
|
|
</Bounced>
|
|
|
</div>
|
|
</div>
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
props: {
|
|
props: {
|
|
|
orderDetail: {}
|
|
orderDetail: {}
|
|
|
},
|
|
},
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
timeServe: undefined,
|
|
timeServe: undefined,
|
|
@@ -50,47 +50,52 @@ export default {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- mounted() {
|
|
|
|
|
|
|
+ mounted () {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- setOpen(dialogVisible) {
|
|
|
|
|
- this.dialogVisible = dialogVisible === true;
|
|
|
|
|
|
|
+ setOpen (dialogVisible) {
|
|
|
|
|
+ this.dialogVisible = dialogVisible === true
|
|
|
if (this.dialogVisible) {
|
|
if (this.dialogVisible) {
|
|
|
this.time = 15
|
|
this.time = 15
|
|
|
this.timeServe = setInterval(() => {
|
|
this.timeServe = setInterval(() => {
|
|
|
- this.time--;
|
|
|
|
|
- this.text = this.time;
|
|
|
|
|
|
|
+ this.time--
|
|
|
|
|
+ this.text = this.time
|
|
|
if (this.time === 0) {
|
|
if (this.time === 0) {
|
|
|
- clearInterval(this.timeServe);
|
|
|
|
|
|
|
+ clearInterval(this.timeServe)
|
|
|
this.timeServe = undefined
|
|
this.timeServe = undefined
|
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
}
|
|
}
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ }, 1000)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- handleClose() {
|
|
|
|
|
|
|
+ handleClose () {
|
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
|
- this.dialogVisible = false;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
|
+
|
|
|
// 清除倒计时定时器
|
|
// 清除倒计时定时器
|
|
|
if (this.timeServe) {
|
|
if (this.timeServe) {
|
|
|
- clearInterval(this.timeServe);
|
|
|
|
|
- this.timeServe = undefined;
|
|
|
|
|
|
|
+ clearInterval(this.timeServe)
|
|
|
|
|
+ this.timeServe = undefined
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 重置倒计时时间(可选)
|
|
// 重置倒计时时间(可选)
|
|
|
- this.time = 0;
|
|
|
|
|
|
|
+ this.time = 0
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- goToRechargePage() {
|
|
|
|
|
|
|
+ goToRechargePage () {
|
|
|
this.$router.push('/recharge')
|
|
this.$router.push('/recharge')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+::v-deep .el-dialog {
|
|
|
|
|
+ border-radius: 100px;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
/* 订单提交弹窗 */
|
|
/* 订单提交弹窗 */
|
|
|
.order-detail-dialog {
|
|
.order-detail-dialog {
|
|
@@ -219,4 +224,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|