From 8bb9173a95a87e3ceab4f48b5b34041af38b7c70 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 28 三月 2025 15:23:14 +0800 Subject: [PATCH] fix: 四期需求 --- apps/taro/src/pages/mine/index.vue | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/apps/taro/src/pages/mine/index.vue b/apps/taro/src/pages/mine/index.vue index d9e2f4d..403801c 100644 --- a/apps/taro/src/pages/mine/index.vue +++ b/apps/taro/src/pages/mine/index.vue @@ -13,7 +13,9 @@ <div class="mine-page-top-view" @click="goLogin"> <img class="mine-avatar" :src="DefaultAvatar" alt="" /> <div class="user-info"> - <div class="user-info-name" v-if="isLogin">{{ hiddenPhoneNumber(virtualPhoneNumber) }}</div> + <div class="user-info-name" v-if="isLogin"> + {{ hiddenPhoneNumber(virtualPhoneNumber) }} + </div> <div class="mine-go-login" v-else>鐧诲綍</div> </div> </div> @@ -25,7 +27,7 @@ <ListItem title="鏁版嵁鐪嬫澘" @click="goDashboard"></ListItem> <ListItem title="鎺ㄥ箍浜岀淮鐮�" @click="goShareQrcode"></ListItem> </template> - <ListItem v-if="isWeb" title="鍦ㄧ嚎瀹㈡湇" @click="handleChat"></ListItem> + <ListItem v-if="isWeb && !isInAlipay" title="鍦ㄧ嚎瀹㈡湇" @click="handleChat"></ListItem> <ListItem v-if="isLogin" title="閫�鍑虹櫥褰�" @click="goLogout"></ListItem> </List> </ContentScrollView> @@ -34,7 +36,7 @@ <script setup lang="ts"> import { TransparentNavigationBar, List, ListItem } from '@/components'; -import { useUser, useIsLogin, useGoLogin, useAccessLogin } from '@/hooks'; +import { useUser, useIsLogin, useGoLogin, useAccessLogin, useOnlineService } from '@/hooks'; import Taro from '@tarojs/taro'; import { RouterPath, OssAssets } from '@/constants'; import DefaultAvatar from '@/assets/components/icon-default-avatar.png'; @@ -42,11 +44,12 @@ import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue'; import { useUserStore } from '@/stores/modules/user'; import { Message } from '@/utils'; -import { isWeb } from '@/utils/env'; +import { isWeb, isInAlipay } from '@/utils/env'; import { useLifeRechargeContext } from '@life-payment/core-vue'; import { hiddenPhoneNumber } from '@life-payment/utils'; const { userDetail, virtualPhoneNumber, isChannelAccount } = useUser(); + const isLogin = useIsLogin(); const systemStore = useSystemStore(); const userStore = useUserStore(); @@ -93,9 +96,15 @@ } catch (error) {} } +const { onlineServiceLink } = useOnlineService(); + function handleChat() { - if (isWeb) { - window.open('https://work.weixin.qq.com/kfid/kfcd24e0c60fd91099e', '_blank'); + if (isWeb && onlineServiceLink.value) { + if (isInAlipay) { + Message.warning('璇峰湪寰俊涓墦寮�浣跨敤璇ュ姛鑳�'); + } else { + window.open(onlineServiceLink.value, '_blank'); + } } } </script> -- Gitblit v1.9.1