Xiao_123 hai 10 meses
pai
achega
1f0fe45d21

+ 10 - 2
src/components/Enterprise/hotPromoted.vue

@@ -9,7 +9,13 @@
           </div>
           <div class="company-info">
             <h3>{{ item.enterprise.anotherName }}</h3>
-            <p>{{ item.financingName }}<span class="septal-line"></span>{{ item.scaleName }}<span class="septal-line"></span>{{ item.industryName }}</p>
+            <p>
+              {{ item.financingName }}
+              <span class="septal-line" v-if="item.financingName && item.scaleName"></span>
+              {{ item.scaleName }}
+              <span class="septal-line" v-if="item.industryName"></span>
+              {{ item.industryName }}
+            </p>
           </div>
         </div>
         <!-- 职位列表 -->
@@ -22,7 +28,9 @@
                 <span class="salary">{{ k.payFrom }}-{{ k.payTo }}/{{ k.payName }}</span>
               </div>
               <div style="height: 24px; overflow: hidden;">
-                <v-chip size="x-small" label class="mr-1" color="var(--color-666)" v-for="j in desc" :key="j">{{ k[j.value] }}</v-chip>
+                <span v-for="j in desc" :key="j">
+                  <v-chip v-if="k[j.value]" size="x-small" label class="mr-1" color="var(--color-666)">{{ k[j.value] }}</v-chip>
+                </span>
               </div>
             </div>
           </li>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1
src/components/Position/item.vue


+ 4 - 2
src/config/axios/service.js

@@ -251,8 +251,10 @@ const handleAuthorized = () => {
 // 触发获取积分
 const getIntegral = (url, store) => {
   rewardEventTrackClick(url).then(() => {
-    if (loginType && loginType === 'enterprise') store.getEnterpriseUserAccountInfo()
-    else store.getUserAccountInfo()
+    setTimeout(() => {
+      if (loginType && loginType === 'enterprise') store.getEnterpriseUserAccountInfo()
+      else store.getUserAccountInfo()
+    }, 2000)
   })
 }
 export { service }

+ 2 - 0
src/store/user.js

@@ -77,8 +77,10 @@ export const useUserStore = defineStore('user',
           const data = await api({ userId: userId || this.accountInfo.userId })
           if (!data) return
           this.baseInfo = await this.getFieldText(data)
+          console.log(this.baseInfo, data, 'baseInfo-login==============')
           localStorage.setItem('baseInfo', JSON.stringify(this.baseInfo))
         } catch (error) {
+          console.log(error, 'error')
           Snackbar.error(error.msg)
         }
       },

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio