From 51b35cc2acf48af03f32f1918d20a126a48d6e9b Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 11 Mar 2026 13:46:10 +0800
Subject: [PATCH] 该客服
---
src/views/my/index.vue | 24 ++++++++++--------------
1 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/src/views/my/index.vue b/src/views/my/index.vue
index 8635b25..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 被正确声明
@@ -272,6 +262,8 @@
</script>
<style lang="scss" scoped>
+@import '@/assets/theme/index.scss';
+
:deep(.van-cell-group__title) {
// background: $main2_background !important;
background: $inp-b !important;
@@ -303,11 +295,15 @@
}
:deep(.van-icon) {
- color: $text_color;
+ @include themify() {
+ color: themed("text_color") !important;
+ }
}
:deep(.van-cell__title) {
- color: $text_color;
+ @include themify() {
+ color: themed("text_color") !important;
+ }
}
:deep(.van-cell:after) {
--
Gitblit v1.9.3