zhengyiming
3 天以前 3a188822cc7c42387081ee62bacf2a331c3edb28
Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
已修改3个文件
25 ■■■■■ 文件已修改
apps/cMiniApp/src/pages/mine/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/stores/modules/system.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | 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,6 +5,7 @@
  </div> -->
  <List>
    <ListItem title="收入明细" @click="goIncomeDetail"> </ListItem>
    <template v-if="!hideTemplate">
    <ListItem title="银行卡" @click="goBankBind">
      <template #extra>
        <div class="bind-bank-card">
@@ -19,6 +20,8 @@
        </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}`,