From 4931fb42270d5fd00a0a22270d684476ffa53917 Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Sat, 11 Oct 2025 18:35:08 +0800
Subject: [PATCH] 1
---
src/views/C2C/c2c-trade/page/SellGenerate.vue | 29 ++++++++++++++++++++++-------
1 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/src/views/C2C/c2c-trade/page/SellGenerate.vue b/src/views/C2C/c2c-trade/page/SellGenerate.vue
index 1b3f2e5..0d30d93 100644
--- a/src/views/C2C/c2c-trade/page/SellGenerate.vue
+++ b/src/views/C2C/c2c-trade/page/SellGenerate.vue
@@ -10,7 +10,7 @@
<div class="font-48">{{ $t('等待买家付款') }}</div>
<div class="mt-16 font-24">{{ $t('预计收到付款') }} <span style="color: #1D91FF">{{
orderDetail.expireTime
- }}{{ $t('分钟') }}</span>
+ }}{{ $t('分钟') }}</span>
</div>
</div>
<div class="w-140 h-144">
@@ -81,15 +81,16 @@
<van-button class="disable flex-1 h-80 enter" color="#CCCFD6" type="primary">{{ $t('我已确认收款') }}
</van-button>
</div>
- <van-popup class="w-full h-full" position="right" v-model="isShowCancelOrder">
+ <van-popup class="w-full h-full" position="right" v-model:show="isShowCancelOrder">
<cancel-success v-if="!timeout" :title="$t('出售')" :count="orderDetail.coinAmount"
:total-price="orderDetail.amount" :order-number="orderDetail.orderNo"
:create-order-time="fullTime(orderDetail.createTime)" :seller-name="orderDetail.c2cUserNickName"
:unit-price="orderDetail.symbolValue" />
<!-- 已超时 -->
- <cancel-success v-if="timeout" :title="$t('出售')" :count="orderDetail.coinAmount" :total-price="orderDetail.amount"
- :order-number="orderDetail.orderNo" :create-order-time="fullTime(orderDetail.createTime)"
- :seller-name="orderDetail.c2cUserNickName" :unit-price="orderDetail.symbolValue">
+ <cancel-success v-if="timeout" :title="$t('出售')" :count="orderDetail.coinAmount"
+ :total-price="orderDetail.amount" :order-number="orderDetail.orderNo"
+ :create-order-time="fullTime(orderDetail.createTime)" :seller-name="orderDetail.c2cUserNickName"
+ :unit-price="orderDetail.symbolValue">
<template #title>{{ $t('已超时') }}</template>
<template #desc>{{ $t('买家付款超时,您的订单已取消') }}</template>
</cancel-success>
@@ -106,10 +107,11 @@
import OtcCircle from "@/components/otcCircle/index.vue";
import CancelSuccess from "../../c2cOrder/components/order-generation/CancelSuccess.vue";
import loading from "@/components/loading/index.vue";
-
+import { onBeforeUnmount } from "vue";
import otcApi from "@/service/otc";
import { formatTime } from "@/utils/utis";
+import { customerServiceUrl } from "@/config";
import { SET_ORDER_INFO } from "@/store/const.store";
export default {
@@ -139,6 +141,14 @@
if (this.timeStatus) {
clearTimeout(this.timeStatus)
}
+ },
+ setup() {
+ onBeforeUnmount(() => {
+ let end = setInterval(function () { }, 10000);
+ for (let i = 1; i <= end; i++) {
+ clearInterval(i);
+ }
+ })
},
methods: {
async getOrderDetail() {
@@ -206,7 +216,11 @@
return formatTime(new Date(time), 'yyyy-MM-dd hh:mm:ss')
},
tokefu() {
- this.$router.push('/customerService')
+ if (customerServiceUrl) {
+ window.location.href = customerServiceUrl;
+ } else {
+ this.$router.push('/customerService')
+ }
}
},
watch: {
@@ -244,6 +258,7 @@
<style lang="scss" scoped>
@import "@/assets/css/copy2.scss";
+
.border-ra {
border-radius: 20px;
}
--
Gitblit v1.9.3