From 1910e9f27373b8b4da75f076762025ceb3419965 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 12 六月 2025 15:40:50 +0800
Subject: [PATCH] fix: 暂时隐藏电信充值通道
---
apps/taro/src/pages/mine/index.vue | 75 +++++++++++++++++++++++++++++--------
1 files changed, 58 insertions(+), 17 deletions(-)
diff --git a/apps/taro/src/pages/mine/index.vue b/apps/taro/src/pages/mine/index.vue
index 403801c..2ccfa7f 100644
--- a/apps/taro/src/pages/mine/index.vue
+++ b/apps/taro/src/pages/mine/index.vue
@@ -1,14 +1,11 @@
<template>
- <PageLayoutWithBg class="mine-page-wrapper" title="鎴戠殑" :need-auth="false">
+ <PageLayoutWithBg class="mine-page-wrapper" :need-auth="false">
<template #navigationBar>
- <TransparentNavigationBar
- title="涓汉涓績"
- :is-absolute="false"
- mode="dark"
- ></TransparentNavigationBar>
+ <TransparentNavigationBar :title="'涓汉涓績'" :is-absolute="false">
+ </TransparentNavigationBar>
</template>
<template #bg>
- <img :src="OssAssets.mine.Bg" class="mine-page-bg" :style="{ height: `${bgHeight}px` }" />
+ <img :src="OssAssets.common.MinePageBg" class="mine-page-bg" />
</template>
<div class="mine-page-top-view" @click="goLogin">
<img class="mine-avatar" :src="DefaultAvatar" alt="" />
@@ -19,36 +16,68 @@
<div class="mine-go-login" v-else>鐧诲綍</div>
</div>
</div>
- <ContentScrollView>
+ <ContentScrollView style="background-color: transparent">
<List class="mine-list-wrapper">
- <ListItem title="璁㈠崟绠$悊" @click="goOrderManage"></ListItem>
- <ListItem title="鎴峰彿绠$悊" @click="goUserAccountList"></ListItem>
+ <ListItemV2 :icon="IconMineOrder" title="璁㈠崟绠$悊" @click="goOrderManage"></ListItemV2>
+ <ListItemV2 :icon="IconMineUserId" title="鎴峰彿绠$悊" @click="goUserAccountList"></ListItemV2>
<template v-if="isChannelAccount">
- <ListItem title="鏁版嵁鐪嬫澘" @click="goDashboard"></ListItem>
- <ListItem title="鎺ㄥ箍浜岀淮鐮�" @click="goShareQrcode"></ListItem>
+ <ListItemV2 :icon="IconMineDataBoard" title="鏁版嵁鐪嬫澘" @click="goDashboard"></ListItemV2>
+ <ListItemV2
+ :icon="IconMineChannel"
+ title="娓犻亾浜岀淮鐮�"
+ @click="goShareQrcode"
+ ></ListItemV2>
</template>
- <ListItem v-if="isWeb && !isInAlipay" title="鍦ㄧ嚎瀹㈡湇" @click="handleChat"></ListItem>
- <ListItem v-if="isLogin" title="閫�鍑虹櫥褰�" @click="goLogout"></ListItem>
+ <ListItemV2
+ :icon="IconMinePromotion"
+ title="鎺ㄥ箍浜岀淮鐮�"
+ @click="goPromotionQrcode"
+ v-if="!!userPromoterIdNumber"
+ ></ListItemV2>
+ <ListItemV2
+ :icon="IconMineAgentRecruitment"
+ title="浠g悊鎷涘嫙"
+ @click="goAgentRecruitment"
+ ></ListItemV2>
+ <ListItemV2
+ :icon="IconMineCustomerService"
+ v-if="isWeb && !isInAlipay"
+ title="鍦ㄧ嚎瀹㈡湇"
+ @click="handleChat"
+ ></ListItemV2>
+ <ListItemV2
+ v-if="isLogin"
+ title="閫�鍑虹櫥褰�"
+ @click="goLogout"
+ :icon="IconMineExist"
+ ></ListItemV2>
</List>
</ContentScrollView>
</PageLayoutWithBg>
</template>
<script setup lang="ts">
-import { TransparentNavigationBar, List, ListItem } from '@/components';
+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 IconMineChannel from '@/assets/mine/icon-mine-channel.png';
+import IconMineAgentRecruitment from '@/assets/mine/icon-mine-agent-recruitment.png';
+import IconMineCustomerService from '@/assets/mine/icon-mine-customer-service.png';
+import IconMineExist from '@/assets/mine/icon-mine-exist.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, isInAlipay } from '@/utils/env';
import { useLifeRechargeContext } from '@life-payment/core-vue';
import { hiddenPhoneNumber } from '@life-payment/utils';
-const { userDetail, virtualPhoneNumber, isChannelAccount } = useUser();
+const { userDetail, virtualPhoneNumber, isChannelAccount, userPromoterIdNumber } = useUser();
const isLogin = useIsLogin();
const systemStore = useSystemStore();
@@ -84,7 +113,19 @@
const goOrderManage = useAccessLogin(() => goPage(RouterPath.order));
const goUserAccountList = useAccessLogin(() => goPage(RouterPath.userAccountList));
const goShareQrcode = useAccessLogin(() => goPage(RouterPath.shareQrcode));
+const goPromotionQrcode = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.promotionQrcode}?promoterIdNumber=${userPromoterIdNumber.value}`,
+ });
+});
const goDashboard = useAccessLogin(() => goPage(RouterPath.dashboard));
+const goAgentRecruitment = () => {
+ RouteHelper.navigateTo({
+ url: userPromoterIdNumber.value
+ ? `${RouterPath.agentRecruitment}?promoterIdNumber=${userPromoterIdNumber.value}`
+ : RouterPath.agentRecruitment,
+ });
+};
async function goLogout() {
try {
--
Gitblit v1.9.1