| apps/cMiniApp/src/pages/mine/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| apps/cMiniApp/src/stores/modules/system.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
apps/cMiniApp/src/pages/mine/index.vue
@@ -34,8 +34,9 @@ class="user-info-unCertified-btn" @click.stop="goAuthentication" v-if=" userDetail?.realStatus === EnumPersonalUserRealStatus.UnReal || userDetail?.realStatus === EnumPersonalUserRealStatus.Fail (userDetail?.realStatus === EnumPersonalUserRealStatus.UnReal || userDetail?.realStatus === EnumPersonalUserRealStatus.Fail) && !hideTemplate " > 立即认证 @@ -178,6 +179,7 @@ const systemStore = useSystemStore(); const { goLoginFn } = useGoLogin(); const bgHeight = computed(() => 133 + systemStore.navHeight); const hideTemplate = computed(() => systemStore.isWeappCheck); useQuery({ queryKey: ['updateUserInfo'], apps/cMiniApp/src/stores/modules/system.ts
@@ -1,6 +1,7 @@ import Taro from '@tarojs/taro'; import { defineStore } from 'pinia'; import { store } from '@/stores'; import * as settingsServices from '@12333/services/apiV2/settings'; export interface Options { path: string; @@ -17,6 +18,7 @@ redirectPath: string; isTabSwitch: boolean; isFirstEnter: boolean; isWeappCheck: boolean; } export const useSystemStore = defineStore({ @@ -51,9 +53,18 @@ menuButtonTop: 0, isFirstEnter: true, isWeappCheck: true, }), actions: { async getAppConfig() { try { let res = await settingsServices.getWxmpSettings({}); this.isWeappCheck = res.wxmpAuditInProcess; } catch (error) {} }, init(options: Options) { this.options = options; // 放一下页面相关的数据例如scene等 页面高度之类的不存! }, apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue
@@ -5,20 +5,23 @@ </div> --> <List> <ListItem title="收入明细" @click="goIncomeDetail"> </ListItem> <ListItem title="银行卡" @click="goBankBind"> <template #extra> <div class="bind-bank-card"> {{ isBindBank ? '已绑定' : '未绑定、立即绑定' }} </div> </template> </ListItem> <ListItem title="支付宝" @click="goBankAlipay"> <template #extra> <div class="bind-bank-card"> {{ isBindAlipay ? '已绑定' : '未绑定、立即绑定' }} </div> </template> </ListItem> <template v-if="!hideTemplate"> <ListItem title="银行卡" @click="goBankBind"> <template #extra> <div class="bind-bank-card"> {{ isBindBank ? '已绑定' : '未绑定、立即绑定' }} </div> </template> </ListItem> <ListItem title="支付宝" @click="goBankAlipay"> <template #extra> <div class="bind-bank-card"> {{ isBindAlipay ? '已绑定' : '未绑定、立即绑定' }} </div> </template> </ListItem> </template> <ListItem title="微信"> <template #extra> <div class="bind-bank-card"> @@ -30,6 +33,7 @@ </template> <script setup lang="ts"> import { useSystemStore } from '@/stores/modules/system'; import { List, ListItem, WithdrawMoneyCard } from '@12333/components'; import { EnumUserBankCardAccess } from '@12333/constants'; import Taro from '@tarojs/taro'; @@ -38,8 +42,12 @@ name: 'InnerPage', }); const systemStore = useSystemStore(); const { userDetail, isBindBank, isBindAlipay, isBindWechat } = useUser(); const hideTemplate = computed(() => systemStore.isWeappCheck); function goIncomeDetail() { Taro.navigateTo({ url: `${RouterPath.incomeDetail}`,