Browse Source

fix: 修复状态栏高度获取和招聘显示逻辑

更新获取状态栏高度的API调用方式,从getSystemInfoSync改为getWindowInfo
修正招聘信息显示逻辑,直接使用res.code进行判断而非res.data.code
master
wei 6 days ago
parent
commit
efb28b28ea
  1. 1
      eslint.config.mjs
  2. 4
      pages/home/home.vue

1
eslint.config.mjs

@ -19,6 +19,7 @@ export default antfu({
"style/no-tabs": ["off"],
"vue/eqeqeq": ["off"],
"vue/require-prop-type-constructor": ["off"],
"vue/valid-v-slot": ["off"],
"eqeqeq": ["off"],
"no-console": ["off"],
},

4
pages/home/home.vue

@ -90,7 +90,7 @@ async function getIosShow() {
const params = { black: "XCXenterCDW", key: "config.enterCDW" };
const res = await getSystemSettingApi(params);
// 0
isShowRecruitment.value = res.data.code !== 0;
isShowRecruitment.value = res.code !== "0";
// if (res.data.code === 0) {
// isShowRecruitment.value = false;
// menus.value = menus.value.filter(item => item.name !== "" || item.name !== "");
@ -410,7 +410,7 @@ onShow(() => {
getProductCategory();
getNoticesApiList();
getmyarea();
statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight;
statusBarHeight.value = uni.getWindowInfo().statusBarHeight;
nextTick(() => {
// #ifdef MP-WEIXIN

Loading…
Cancel
Save