| | |
| | | <template> |
| | | <PageLayoutWithBg class="mine-page-wrapper" title="我的" :need-auth="false"> |
| | | <!-- <PageLayoutWithBg class="mine-page-wrapper" title="我的" :need-auth="false"> |
| | | <template #navigationBar> |
| | | <TransparentNavigationBar |
| | | title="个人中心" |
| | |
| | | <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> |
| | |
| | | <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> |
| | | </PageLayoutWithBg> |
| | | </PageLayoutWithBg> --> |
| | | <PageLayout class="index-page-wrapper" :need-auth="false"> |
| | | <template #navigationBar> |
| | | <TransparentNavigationBar :title="'个人中心'" :is-absolute="false"> |
| | | </TransparentNavigationBar> |
| | | </template> |
| | | <template #bg> |
| | | <img :src="OssAssets.common.HomePageBg" class="home-page-bg" /> |
| | | </template> |
| | | <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="mine-go-login" v-else>登录</div> |
| | | </div> |
| | | </div> |
| | | <ContentView> |
| | | <List class="mine-list-wrapper"> |
| | | <ListItemV2 :icon="IconMineOrder" title="订单管理" @click="goOrderManage"></ListItemV2> |
| | | <ListItemV2 :icon="IconMineUserId" title="户号管理" @click="goUserAccountList"></ListItemV2> |
| | | <template v-if="isChannelAccount"> |
| | | <ListItemV2 :icon="IconMineDataBoard" title="数据看板" @click="goDashboard"></ListItemV2> |
| | | <ListItemV2 |
| | | :icon="IconMinePromotion" |
| | | title="推广二维码" |
| | | @click="goShareQrcode" |
| | | ></ListItemV2> |
| | | </template> |
| | | <ListItemV2 |
| | | :icon="IconMineCustomerService" |
| | | v-if="isWeb && !isInAlipay" |
| | | title="在线客服" |
| | | @click="handleChat" |
| | | ></ListItemV2> |
| | | <ListItemV2 v-if="isLogin" title="退出登录" @click="goLogout"></ListItemV2> |
| | | </List> |
| | | </ContentView> |
| | | </PageLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { TransparentNavigationBar, List, ListItem } from '@/components'; |
| | | import { useUser, useIsLogin, useGoLogin, useAccessLogin } from '@/hooks'; |
| | | import { TransparentNavigationBar, List, ListItemV2 } from '@/components'; |
| | | 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'; |
| | | import IconMineOrder from '@/assets/mine/icon-mine-order.png'; |
| | | import IconMineUserId from '@/assets/mine/icon-mine-userId.png'; |
| | | import IconMineDataBoard from '@/assets/mine/icon-mine-data-board.png'; |
| | | import IconMinePromotion from '@/assets/mine/icon-mine-promotion.png'; |
| | | import IconMineCustomerService from '@/assets/mine/icon-mine-customer-service.png'; |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | 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(); |
| | |
| | | } 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> |