zhengyiming
2025-02-10 0470145fcd755d3f87bffc7a985bd3cc82c5f3f6
apps/cMiniApp/src/pages/home/index.vue
@@ -1,31 +1,22 @@
<template>
  <PageLayoutWithBg
    class="index-page-wrapper"
    :title="MatchMakingIdentityEnumTitle[matchMakingIdentity]"
    :need-auth="false"
  >
  <PageLayoutWithBg class="index-page-wrapper" :title="'首页'" :need-auth="false">
    <template #left>
      <div class="menu-btn-wrapper city-btn" @click="goCitySelect">
        <div class="city-btn-text">{{ locationCity }}</div>
        <RectDown :size="12" />
      </div>
    </template>
    <FrontOrderList v-if="matchMakingIdentity === MatchMakingIdentityEnum.Contributors" />
    <FrontResourceList v-else-if="matchMakingIdentity === MatchMakingIdentityEnum.Employing" />
  </PageLayoutWithBg>
</template>
<script setup lang="ts">
import FrontOrderList from './FrontOrderList.vue';
import FrontResourceList from './FrontResourceList.vue';
import { useUser } from '@/hooks';
import { MatchMakingIdentityEnum, MatchMakingIdentityEnumTitle } from '@12333/constants';
import { useUserStore } from '@/stores/modules/user';
import { RectDown } from '@nutui/icons-vue-taro';
import Taro from '@tarojs/taro';
import { LocationUtils } from '@12333/utils';
const { matchMakingIdentity, isSetMatchMakingIdentity, locationCity } = useUser();
const { locationCity } = useUser();
const userStore = useUserStore();