From 7bb960ef165d091678a65ddc01b6551ec4487daa Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Mon, 29 Dec 2025 14:26:11 +0800
Subject: [PATCH] 1
---
src/assets/image/symbol/usdc.png | 0
src/i18n/Deutsch.js | 2
src/components/application/application.vue | 4
src/views/C2C/c2cOrder/order-generation/orderGeneration.vue | 4
src/views/homePage/components/head.vue | 14 +++-
src/views/login/index.vue | 5 -
src/views/my/assets.vue | 7 ++
src/i18n/en.js | 4
src/views/C2C/c2cOrder/components/appeal/AppealWaiting.vue | 4
src/config/index.js | 15 ++++
src/views/cryptos/AboutUs/index.vue | 10 +-
src/views/C2C/c2c-trade/components/TradeSuccessDetail.vue | 4
src/views/C2C/c2c-trade/page/SellGenerate.vue | 4
src/views/C2C/c2c-order-list/components/TradeSuccessDetail.vue | 4
src/views/my/index.vue | 14 ----
src/components/Transform/ex-header/index.vue | 4
src/views/homePage/index.vue | 15 +++-
src/views/authentication/index.vue | 5 -
src/views/order/order-submit.vue | 4
src/views/cryptos/Recharge/rechargeList.vue | 25 ++++---
src/views/cryptos/Withdraw/withdrawSumbit.vue | 4
src/views/safety/resetPhoneEmail.vue | 5 -
src/views/register/index.vue | 5 -
src/components/Transform/application/application.vue | 4
src/assets/video/home_1.mp4 | 0
src/views/cryptos/Recharge/rechargeSubmit.vue | 4
src/assets/imgs/assets/chonbi.png | 0
27 files changed, 93 insertions(+), 77 deletions(-)
diff --git a/src/assets/image/symbol/usdc.png b/src/assets/image/symbol/usdc.png
index be23877..f472ec6 100644
--- a/src/assets/image/symbol/usdc.png
+++ b/src/assets/image/symbol/usdc.png
Binary files differ
diff --git a/src/assets/imgs/assets/chonbi.png b/src/assets/imgs/assets/chonbi.png
index a20c65e..94b89dd 100644
--- a/src/assets/imgs/assets/chonbi.png
+++ b/src/assets/imgs/assets/chonbi.png
Binary files differ
diff --git a/src/assets/video/home_1.mp4 b/src/assets/video/home_1.mp4
index 4c08ced..376f107 100644
--- a/src/assets/video/home_1.mp4
+++ b/src/assets/video/home_1.mp4
Binary files differ
diff --git a/src/components/Transform/application/application.vue b/src/components/Transform/application/application.vue
index 0ea73c0..11f93c0 100644
--- a/src/components/Transform/application/application.vue
+++ b/src/components/Transform/application/application.vue
@@ -71,8 +71,8 @@
this.time = dataTimeEx(Date.parse(new Date()), true);
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/components/Transform/ex-header/index.vue b/src/components/Transform/ex-header/index.vue
index e1a7edf..8e26093 100644
--- a/src/components/Transform/ex-header/index.vue
+++ b/src/components/Transform/ex-header/index.vue
@@ -51,8 +51,8 @@
this.tabList[index]['data'] = this.tabList[index]['data'].filter(item => item.symbol.includes(this.keywords))
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/components/application/application.vue b/src/components/application/application.vue
index d175e46..64b0173 100644
--- a/src/components/application/application.vue
+++ b/src/components/application/application.vue
@@ -71,8 +71,8 @@
this.time = dataTimeEx(Date.parse(new Date()), true);
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/config/index.js b/src/config/index.js
index 1c7376c..0042b3c 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -67,7 +67,20 @@
// 公司logo
export const LOGO = new URL('@/assets/imgs/logo.png', import.meta.url)
-export const customerServiceUrl = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69' // 客服外链链接
+
+
+export const customerServiceUrl = ()=>{
+ let str = 'https://chat.onlinesupport.help/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69'
+ let user = JSON.parse(localStorage.getItem('user'))
+ console.log(user);
+ let userName = '',pid = '';
+ if(user && user.userInfo){
+ userName = user.userInfo.username
+ pid = user.userInfo.usercode
+ }
+ str += `&userName=${userName}&pid=${pid}`
+ return str
+} // 客服外链链接
export default {
sliderOptions: {
diff --git a/src/i18n/Deutsch.js b/src/i18n/Deutsch.js
index 397a539..19ed091 100644
--- a/src/i18n/Deutsch.js
+++ b/src/i18n/Deutsch.js
@@ -69,7 +69,7 @@
nationality: "Staatsangehörigkeit",
realName: "Real Name",
entryRealName: "Bitte geben Sie Ihren echten Namen ein",
- credentPassport: "Document/Passport Number",
+ credentPassport: "Von der Regierung ausgestellte Ausweis-/Passnummer",
entryCredentPassport: "Bitte geben Sie Ihre ID/Passnummer ein",
uploadCredentPassport: "ID Foto/Pass hochladen",
uploadPicCredentPassport: "Upload ID/Pass Authentication Images",
diff --git a/src/i18n/en.js b/src/i18n/en.js
index f30ece3..383ed16 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -65,8 +65,8 @@
nationality: "Country of Citizenship",
realName: "Actual name",
entryRealName: "Please enter your real name",
- credentPassport: "Document/passport number",
- entryCredentPassport: "Please enter your ID/passport number",
+ credentPassport: "Government-issued ID / Passport Number",
+ entryCredentPassport: "Please enter your government-issued ID or passport number",
uploadCredentPassport: "ID photo/upload passport",
uploadPicCredentPassport: "Document/passport authentication picture upload",
credentFront: "ID front",
diff --git a/src/views/C2C/c2c-order-list/components/TradeSuccessDetail.vue b/src/views/C2C/c2c-order-list/components/TradeSuccessDetail.vue
index 55a6be6..9609209 100644
--- a/src/views/C2C/c2c-order-list/components/TradeSuccessDetail.vue
+++ b/src/views/C2C/c2c-order-list/components/TradeSuccessDetail.vue
@@ -146,8 +146,8 @@
return str
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/C2C/c2c-trade/components/TradeSuccessDetail.vue b/src/views/C2C/c2c-trade/components/TradeSuccessDetail.vue
index 2424098..d0e3472 100644
--- a/src/views/C2C/c2c-trade/components/TradeSuccessDetail.vue
+++ b/src/views/C2C/c2c-trade/components/TradeSuccessDetail.vue
@@ -146,8 +146,8 @@
return str
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/C2C/c2c-trade/page/SellGenerate.vue b/src/views/C2C/c2c-trade/page/SellGenerate.vue
index 0d30d93..9fcb477 100644
--- a/src/views/C2C/c2c-trade/page/SellGenerate.vue
+++ b/src/views/C2C/c2c-trade/page/SellGenerate.vue
@@ -216,8 +216,8 @@
return formatTime(new Date(time), 'yyyy-MM-dd hh:mm:ss')
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/C2C/c2cOrder/components/appeal/AppealWaiting.vue b/src/views/C2C/c2cOrder/components/appeal/AppealWaiting.vue
index a28cfa8..3b0f4f9 100644
--- a/src/views/C2C/c2cOrder/components/appeal/AppealWaiting.vue
+++ b/src/views/C2C/c2cOrder/components/appeal/AppealWaiting.vue
@@ -31,8 +31,8 @@
},
methods: {
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/C2C/c2cOrder/order-generation/orderGeneration.vue b/src/views/C2C/c2cOrder/order-generation/orderGeneration.vue
index 6ddbe2d..3d6ed94 100644
--- a/src/views/C2C/c2cOrder/order-generation/orderGeneration.vue
+++ b/src/views/C2C/c2cOrder/order-generation/orderGeneration.vue
@@ -120,8 +120,8 @@
this.$router.push({ path: '/chat' })
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/authentication/index.vue b/src/views/authentication/index.vue
index 4e80aa8..5d7f9f7 100644
--- a/src/views/authentication/index.vue
+++ b/src/views/authentication/index.vue
@@ -135,7 +135,6 @@
const language = ref('en')
const controlChild = ref(null)
const { proxy } = getCurrentInstance();
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
onMounted(() => {
fetchInfo();
@@ -233,8 +232,8 @@
})
}
const tokefu = () => {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push('/customerService')
}
diff --git a/src/views/cryptos/AboutUs/index.vue b/src/views/cryptos/AboutUs/index.vue
index 966398b..073c074 100644
--- a/src/views/cryptos/AboutUs/index.vue
+++ b/src/views/cryptos/AboutUs/index.vue
@@ -63,11 +63,11 @@
},
getCms() {
let language
- if (this.$i18n.locale == 'zh-CN' || this.$i18n.locale == 'CN') {
- language = this.$i18n.locale
- } else {
- language = 'en'
- }
+ // if (this.$i18n.locale == 'zh-CN' || this.$i18n.locale == 'CN') {
+ language = this.$i18n.locale
+ // } else {
+ // language = 'en'
+ // }
// 白皮书限定只要中文的
if (this.serviceTerm == '28') language = 'en'
diff --git a/src/views/cryptos/Recharge/rechargeList.vue b/src/views/cryptos/Recharge/rechargeList.vue
index 8296980..467d775 100644
--- a/src/views/cryptos/Recharge/rechargeList.vue
+++ b/src/views/cryptos/Recharge/rechargeList.vue
@@ -5,7 +5,7 @@
<img src="../../../assets/image/assets-center/exchange.png" alt="exchange-img" class="w-44 h-38"
@click="goRouter('/cryptos/assetsCenter/rechargeWithdrawRecord')" />
</assets-head>
- <assets-head v-else :title="$t('充值通道')" >
+ <assets-head v-else :title="$t('充值通道')">
<img src="../../../assets/image/assets-center/exchange.png" alt="exchange-img" class="w-44 h-38"
@click="goRouter('/cryptos/assetsCenter/rechargeWithdrawRecord')" />
</assets-head>
@@ -14,22 +14,22 @@
<div class="recharge-list flex justify-between">
<div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
@click="selectSymbol('usdt')">
- <img src="../../../assets/image/symbol/usdt.png" class="w-92 h-92" />
+ <img :src="`${HOST_URL}/symbol/usdt.png`" class="w-92 h-92" />
<div class="text-grey font-26 mt-32">{{ $t('USDT充值') }}</div>
</div>
- <div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
- @click="selectSymbol('usdc')">
- <img src="../../../assets/image/symbol/usdc.png" class="w-92 h-92" />
- <div class="text-grey font-26 mt-32">{{ $t('USDC充值') }}</div>
- </div>
+ <div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
+ @click="selectSymbol('usdc')">
+ <img :src="`${HOST_URL}/symbol/usdc.png`" class="w-92 h-92" />
+ <div class="text-grey font-26 mt-32">{{ $t('USDC充值') }}</div>
+ </div>
<div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
@click="selectSymbol('btc')">
- <img src="../../../assets/image/symbol/btc.png" class="w-92 h-92" />
+ <img :src="`${HOST_URL}/symbol/btc.png`" class="w-92 h-92" />
<div class="text-grey font-26 mt-32">{{ $t('BTC充值') }}</div>
</div>
<div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
@click="selectSymbol('eth')">
- <img src="../../../assets/image/symbol/eth.png" class="w-92 h-92" />
+ <img :src="`${HOST_URL}/symbol/eth.png`" class="w-92 h-92" />
<div class="text-grey font-26 mt-32">{{ $t('ETH充值') }}</div>
</div>
</div>
@@ -55,6 +55,7 @@
<script>
import assetsHead from "@/components/Transform/assets-head/index.vue";
+import { HOST_URL } from '@/config'
import { Icon } from 'vant';
export default {
name: 'rechageList',
@@ -86,7 +87,8 @@
imgPath: new URL('@/assets/image/crypto.png', import.meta.url),
}
],
- isForeign: false
+ isForeign: false,
+ HOST_URL,
}
},
created() {
@@ -151,7 +153,8 @@
border-radius: 15px;
box-sizing: border-box;
}
- .reminder{
+
+ .reminder {
font-size: 2rem;
padding: 2rem;
}
diff --git a/src/views/cryptos/Recharge/rechargeSubmit.vue b/src/views/cryptos/Recharge/rechargeSubmit.vue
index fb2ac5d..50a843b 100644
--- a/src/views/cryptos/Recharge/rechargeSubmit.vue
+++ b/src/views/cryptos/Recharge/rechargeSubmit.vue
@@ -74,8 +74,8 @@
this.time = dataTimeEx(Date.parse(new Date()), true);
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/cryptos/Withdraw/withdrawSumbit.vue b/src/views/cryptos/Withdraw/withdrawSumbit.vue
index 86634b2..0ed561a 100644
--- a/src/views/cryptos/Withdraw/withdrawSumbit.vue
+++ b/src/views/cryptos/Withdraw/withdrawSumbit.vue
@@ -74,8 +74,8 @@
this.time = dataTimeEx(Date.parse(new Date()), true);
},
tokefu() {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
this.$router.push('/customerService')
}
diff --git a/src/views/homePage/components/head.vue b/src/views/homePage/components/head.vue
index 39f7d08..29ffc8f 100644
--- a/src/views/homePage/components/head.vue
+++ b/src/views/homePage/components/head.vue
@@ -4,15 +4,15 @@
<img src="@/assets/imgs/home/more.png" alt="" @click="onRoute('/my')">
</div>
- <div class="more_input tabBackground1 pl-5 pr-5 flex items-center justify-start mr-5 pt-2">
+ <div class="more_input pl-5 pr-5 flex items-center justify-start mr-5 pt-2">
<img src="@/assets/imgs/quotes/search.png" alt="">
<!-- <span class="pl-5">{{ $t('请输入关键词搜寻') }}</span> -->
- <van-field v-model="iValue" :placeholder="$t('请输入关键词搜寻')" style="padding: 0 1rem;"
+ <van-field v-model="iValue" :placeholder="$t('请输入关键词搜寻')" style="padding: 0 1rem;background: none;"
@input="emit('search', iValue)" />
</div>
<div class="scan"><img src="@/assets/image/assets-center/language.png" alt="" @click="onRoute('/language')">
</div>
-
+
<!-- <div class="" @click="store.commit('vant/SET_THEME', 'dark')">切换1</div>
<div class="" @click="store.commit('vant/SET_THEME', 'light')">切换2</div> -->
@@ -41,6 +41,7 @@
</script>
<style lang="scss" scoped>
+@import '@/assets/theme/index.scss';
.head {
width: 100%;
margin-bottom: 1rem;
@@ -53,13 +54,16 @@
}
.more_input {
- // width: 26rem;
- // background: #fff;
width: 100%;
height: 4.5rem;
border-radius: 2.25rem;
font-size: 1.5rem;
+ @include themify() {
+ background-color: themed("input_background");
+ color: themed("text_color1");
+ }
+
span {
text-overflow: ellipsis;
overflow: hidden;
diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue
index 4c024fb..55cacfe 100644
--- a/src/views/homePage/index.vue
+++ b/src/views/homePage/index.vue
@@ -12,7 +12,6 @@
<video autoplay loop muted playsinline class="home_logo">
<source src="@/assets/video/home_1.mp4" type="video/mp4">
- 您的浏览器不支持 video 标签。
</video>
<!-- <div class="text-center font-bold mt-8 logo_text">{{ $t('复制财富,從此刻開始') }}</div>
@@ -105,7 +104,6 @@
const { t } = useI18n()
const router = useRouter()
const store = useStore();
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
const tabbers = [
// { key: 1, name: t('跟单'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url) },
@@ -125,7 +123,7 @@
// { key: 12, name: "C2C", icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '/wantBuy' },
// { key: 13, name: t('质押'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '' },
{ key: 14, name: t('onLineService'), icon: new URL('@/assets/imgs/home/home_10.png', import.meta.url), path: '/customerService' },
- { key: 15, name: 'DXCM PDF', icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: '' },
+ { key: 15, name: 'DXCM PDF', icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url), path: 'https://www.dexm-whitepaper.com/' },
]
// 获取公告数据
@@ -147,9 +145,16 @@
const toPage = (path) => {
if (!path) return
+ // 如果路径包含 "http",则作为外链跳转
+ if (path && (path.startsWith('http://') || path.startsWith('https://'))) {
+ window.open(path, '_blank');
+ return;
+ }
+
if (path == '/customerService') {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ // 客服链接,有值的话就会跳转到客服外链
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push(path)
}
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 82bdaa4..222a692 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -55,7 +55,6 @@
import store from '@/store/store'
import { LOGO, customerServiceUrl } from "@/config";
const { t } = useI18n()
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
const router = useRouter()
const onRoute = (path) => {
@@ -63,8 +62,8 @@
router.go(-1)
} else {
if (path == '/customerService') {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push(path)
}
diff --git a/src/views/my/assets.vue b/src/views/my/assets.vue
index f6e505d..1c77299 100644
--- a/src/views/my/assets.vue
+++ b/src/views/my/assets.vue
@@ -27,7 +27,7 @@
<div class="tabbers flex justify-between mt-20 pl-1 pr-1">
<div class="item" v-for="item in tabList" :key="item.key" @click="toPage(item.path)">
- <img style="width: 100px;" :src="item.icon" alt="">
+ <img :src="item.icon" alt="">
<div class="mt-3 text-center">{{ item.name }}</div>
</div>
</div>
@@ -285,6 +285,11 @@
img {
height: $item_width;
border-radius: 50%;
+ background: #fff;
+
+ @include themify() {
+ border: themed("main_background") 1px solid;
+ }
}
}
}
diff --git a/src/views/my/index.vue b/src/views/my/index.vue
index f5781ca..da5c57e 100644
--- a/src/views/my/index.vue
+++ b/src/views/my/index.vue
@@ -130,7 +130,6 @@
const router = useRouter()
const userStore = useUserStore()
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
const status = ref(null)
const kycHighStatus = ref(null)
const userdata = ref({})
@@ -166,8 +165,8 @@
})
const onRoute = (path) => {
if (path == '/customerService') {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push(path)
}
@@ -235,15 +234,6 @@
store.state.user.userInfo = {}
})
}
-// 获取客服信息
-const getcustomer = () => {
- _customer().then((data) => {
- customer_service_url.value = data.customer_service_url
- console.log(customer_service_url);
- }).catch(error => {
- console.error('Error fetching data:', error);
- });
-};
const getinfo = () => {
_info().then((data) => {
userdata.value = data; // 确保 userdata 被正确声明
diff --git a/src/views/order/order-submit.vue b/src/views/order/order-submit.vue
index ff31e71..3e9afee 100644
--- a/src/views/order/order-submit.vue
+++ b/src/views/order/order-submit.vue
@@ -121,8 +121,8 @@
const showPopup = ref(false)
const orderNo = ref(null)
const onRoute = () => {
- if (customerServiceUrl) {
- window.location.href = customerServiceUrl;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push('/customerService?order_no=' + orderNo.value)
}
diff --git a/src/views/register/index.vue b/src/views/register/index.vue
index de0ff1c..82d1791 100644
--- a/src/views/register/index.vue
+++ b/src/views/register/index.vue
@@ -88,7 +88,6 @@
import { ref, onMounted, reactive, onUnmounted } from 'vue';
import { showToast } from "vant";
import store from '@/store/store'
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
const { t } = useI18n()
const router = useRouter()
const onRoute = (path) => {
@@ -96,8 +95,8 @@
router.go(-1)
} else {
if (path == '/customerService') {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push(path)
}
diff --git a/src/views/safety/resetPhoneEmail.vue b/src/views/safety/resetPhoneEmail.vue
index 3ffc5c7..e528724 100644
--- a/src/views/safety/resetPhoneEmail.vue
+++ b/src/views/safety/resetPhoneEmail.vue
@@ -68,7 +68,6 @@
import { ref, onMounted, reactive, onUnmounted } from 'vue';
import { showToast } from "vant";
import store from '@/store/store'
-const customer_service_url = ref(customerServiceUrl) // 客服链接,有值的话就会跳转到客服外链
const { t } = useI18n()
const router = useRouter()
const onRoute = (path) => {
@@ -76,8 +75,8 @@
router.go(-1)
} else {
if (path == '/customerService') {
- if (customer_service_url.value) {
- window.location.href = customer_service_url.value;
+ if (customerServiceUrl()) {
+ window.location.href = customerServiceUrl();
} else {
router.push(path)
}
--
Gitblit v1.9.3