|
|
@@ -64,6 +64,10 @@ function handleMore() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function handleClick(item: UserApi.ApplicationModel) {
|
|
|
+ window.open(`/jumpToEnterprise?enterpriseCode=${item.code}`, '_blank');
|
|
|
+}
|
|
|
+
|
|
|
watch(
|
|
|
() => isLogin.value,
|
|
|
(newValue) => {
|
|
|
@@ -80,21 +84,30 @@ watch(
|
|
|
<h2 class="ml-[21px] mt-[21px] text-[18px] font-bold">
|
|
|
{{ $t('homeModule.productList') }}
|
|
|
</h2>
|
|
|
- <div class="flex flex-wrap gap-[18px]">
|
|
|
+ <div v-if="isLogin" class="flex flex-wrap gap-[18px]">
|
|
|
+ <div v-if="applicationList.length > 0" class="flex flex-wrap gap-[18px]">
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in applicationList"
|
|
|
+ :key="index"
|
|
|
+ class="mt-[24px] flex cursor-pointer items-center rounded-[30px] border border-gray-200 bg-white px-[24px] py-[7px] shadow-md"
|
|
|
+ @click="handleClick(item)"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="`/File/Download?fileId=${item.imgLogoFileId}`"
|
|
|
+ class="h-[30px] w-auto object-contain"
|
|
|
+ />
|
|
|
+ <span
|
|
|
+ class="ml-[10px] font-['Open_Sans'] text-[13px] font-medium text-[#000]"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
- v-for="(item, index) in applicationList"
|
|
|
- :key="index"
|
|
|
- class="mt-[24px] flex cursor-pointer items-center rounded-[30px] border border-gray-200 bg-white px-[24px] py-[7px] shadow-md"
|
|
|
+ v-else
|
|
|
+ class="mt-[24px] flex items-center justify-center text-xs text-[#9A9BA3]"
|
|
|
>
|
|
|
- <img
|
|
|
- :src="`/File/Download?fileId=${item.imgLogoFileId}`"
|
|
|
- class="h-[30px] w-auto object-contain"
|
|
|
- />
|
|
|
- <span
|
|
|
- class="ml-[10px] font-['Open_Sans'] text-[13px] font-medium text-[#000]"
|
|
|
- >
|
|
|
- {{ item.name }}
|
|
|
- </span>
|
|
|
+ {{ $t('auth.emptyContent') }}
|
|
|
</div>
|
|
|
<div
|
|
|
class="mt-[24px] flex cursor-pointer items-center rounded-[30px] border border-gray-200 bg-white px-[24px] py-[7px] text-[#810041] shadow-md"
|
|
|
@@ -103,6 +116,9 @@ watch(
|
|
|
{{ $t('btn.more') }} >
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div v-else class="mt-[24px] text-xs text-[#9A9BA3]">
|
|
|
+ {{ $t('applicationManagement.productList') }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|