|
@@ -20,8 +20,8 @@
|
|
@confirm="onSearch"
|
|
@confirm="onSearch"
|
|
></uni-search-bar>
|
|
></uni-search-bar>
|
|
<!-- 可发布职位数 -->
|
|
<!-- 可发布职位数 -->
|
|
- <!-- <view v-if="userInfo?.entitlement?.publishJobCount-0" class="publishJobCountBox">
|
|
|
|
- <span>可发布职位数 <span class="color-primary">{{ userInfo.entitlement.publishJobCount || 0 }}</span> 个</span>
|
|
|
|
|
|
+ <!-- <view v-if="publishJobCount" class="publishJobCountBox">
|
|
|
|
+ <span>可发布职位数 <span class="color-primary">{{ publishJobCount }}</span> 个</span>
|
|
</view> -->
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
<view v-if="!positionListData?.length && more !== 'loading'" class="d-flex flex-column align-center justify-center ss-m-t-30">
|
|
<view v-if="!positionListData?.length && more !== 'loading'" class="d-flex flex-column align-center justify-center ss-m-t-30">
|
|
@@ -59,12 +59,10 @@ import { getJobAdvertisedList } from '@/api/new/position'
|
|
import { onShow, onLoad } from '@dcloudio/uni-app'
|
|
import { onShow, onLoad } from '@dcloudio/uni-app'
|
|
import { getAccessToken } from '@/utils/request'
|
|
import { getAccessToken } from '@/utils/request'
|
|
import { showAuthModal } from '@/hooks/useModal'
|
|
import { showAuthModal } from '@/hooks/useModal'
|
|
-import { userStore } from '@/store/user'; const useUserStore = userStore()
|
|
|
|
|
|
+// import { userStore } from '@/store/user'
|
|
|
|
|
|
const tab = ref(1)
|
|
const tab = ref(1)
|
|
|
|
|
|
-const userInfo = ref(useUserStore?.userInfo || {})
|
|
|
|
-
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
console.log('onLoad:', options)
|
|
console.log('onLoad:', options)
|
|
if (options?.tab) tab.value = Number(options?.tab)
|
|
if (options?.tab) tab.value = Number(options?.tab)
|
|
@@ -158,9 +156,9 @@ const loadingMore = () => {
|
|
const refresh = async ({ reset = false, updatePublishJobCount = false }) => {
|
|
const refresh = async ({ reset = false, updatePublishJobCount = false }) => {
|
|
if (reset) query.value.pageNo = 1
|
|
if (reset) query.value.pageNo = 1
|
|
getData()
|
|
getData()
|
|
- if (updatePublishJobCount) {
|
|
|
|
- userInfo.value = await useUserStore.getUserInfos()
|
|
|
|
- }
|
|
|
|
|
|
+ // if (updatePublishJobCount) {
|
|
|
|
+ // userInfo.value = await useUserStore.getUserInfos()
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
|
|
const handleClickAdd = () => {
|
|
const handleClickAdd = () => {
|