| | |
| | | <List class="mine-list-wrapper"> |
| | | <ListItem title="订单管理" @click="goOrderManage"></ListItem> |
| | | <ListItem title="户号管理" @click="goUserAccountList"></ListItem> |
| | | <template v-if="isChannelAccount"> |
| | | <ListItem title="数据看板" @click="goDashboard"></ListItem> |
| | | <ListItem title="推广二维码" @click="goShareQrcode"></ListItem> |
| | | </template> |
| | | <ListItem v-if="isWeb" title="在线客服" @click="handleChat"></ListItem> |
| | | <ListItem v-if="isLogin" title="退出登录" @click="goLogout"></ListItem> |
| | | </List> |
| | | </ContentScrollView> |
| | |
| | | import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { Message } from '@/utils'; |
| | | import { isWeb } from '@/utils/env'; |
| | | import { useLifeRechargeContext } from '@life-payment/core-vue'; |
| | | import { hiddenPhoneNumber } from '@life-payment/utils'; |
| | | |
| | | const { userDetail, virtualPhoneNumber } = useUser(); |
| | | const { userDetail, virtualPhoneNumber, isChannelAccount } = useUser(); |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | | const userStore = useUserStore(); |
| | |
| | | // Taro.showShareMenu({ |
| | | // showShareItems: ['shareAppMessage'], |
| | | // }); |
| | | Taro.useShareAppMessage((res) => { |
| | | return { |
| | | title: `${userDetail.value?.contacter}名片`, |
| | | // path: `${RouterPath.userHomePage}?userId=${userDetail.value?.userId}`, |
| | | imageUrl: userDetail.value?.avatarUrl, |
| | | }; |
| | | }); |
| | | // Taro.useShareAppMessage((res) => { |
| | | // return { |
| | | // title: `${userDetail.value?.contacter}名片`, |
| | | // // path: `${RouterPath.userHomePage}?userId=${userDetail.value?.userId}`, |
| | | // imageUrl: userDetail.value?.avatarUrl, |
| | | // }; |
| | | // }); |
| | | |
| | | const goOrderManage = useAccessLogin(() => goPage(RouterPath.order)); |
| | | const goUserAccountList = useAccessLogin(() => goPage(RouterPath.userAccountList)); |
| | | const goShareQrcode = useAccessLogin(() => goPage(RouterPath.shareQrcode)); |
| | | const goDashboard = useAccessLogin(() => goPage(RouterPath.dashboard)); |
| | | |
| | | async function goLogout() { |
| | | try { |
| | |
| | | blLifeRecharge.loginout(); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function handleChat() { |
| | | if (isWeb) { |
| | | window.open('https://work.weixin.qq.com/kfid/kfcd24e0c60fd91099e', '_blank'); |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |