Refactor API requests and update component imports
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<button class="join-button">快来加入</button>
|
||||
</div>
|
||||
<div class="banner-image">
|
||||
<img src="@/assets/images/foreign_banner.png" alt="CAD工作环境" />
|
||||
<img src="~/assets/images/foreign_banner.png" alt="CAD工作环境" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
.large-card {
|
||||
grid-column: 1;
|
||||
grid-row: 1 / span 2;
|
||||
background-image: url('@/assets/images/hardware-tools.png');
|
||||
background-image: url('~/assets/images/hardware-tools.png');
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@ -115,22 +115,22 @@
|
||||
|
||||
/* CAD设计工作站卡片 - 较宽 */
|
||||
.top-row .card-wide {
|
||||
background-image: url('@/assets/images/cad-workstation.png');
|
||||
background-image: url('~/assets/images/cad-workstation.png');
|
||||
}
|
||||
|
||||
/* 工作站卡片 - 较窄 */
|
||||
.top-row .card-narrow {
|
||||
background-image: url('@/assets/images/laptop-workspace.png');
|
||||
background-image: url('~/assets/images/laptop-workspace.png');
|
||||
}
|
||||
|
||||
/* 工业机器人卡片 - 较窄 */
|
||||
.bottom-row .card-narrow {
|
||||
background-image: url('@/assets/images/industrial-robots.png');
|
||||
background-image: url('~/assets/images/industrial-robots.png');
|
||||
}
|
||||
|
||||
/* CAD工业设计卡片 - 较宽 */
|
||||
.bottom-row .card-wide {
|
||||
background-image: url('@/assets/images/cad-industrial-design.png');
|
||||
background-image: url('~/assets/images/cad-industrial-design.png');
|
||||
}
|
||||
|
||||
.card-content {
|
||||
|
||||
@ -18,10 +18,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import KlTabBar from '@/components/kl-tab-bar/index.vue'
|
||||
import CardPicture from '@/components/kl-card-picture/index.vue'
|
||||
import KlTabBar from '~/components/kl-tab-bar/index.vue'
|
||||
import CardPicture from '~/components/kl-card-picture/index.vue'
|
||||
import { ref } from 'vue'
|
||||
import { pageRes } from '@/api/upnew/types'
|
||||
import type { pageRes } from '~/api/upnew/types'
|
||||
|
||||
const level = ref([
|
||||
{
|
||||
|
||||
@ -25,15 +25,15 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import KlNavTab from '@/components/kl-nav-tab/index.vue'
|
||||
import KlNavTab from '~/components/kl-nav-tab/index.vue'
|
||||
import RecommendedColumnsV2 from './components/RecommendedColumnsV2.vue'
|
||||
// import FeaturedSpecials from './components/FeaturedSpecials.vue'
|
||||
import BannerTips from './components/BannerTips.vue'
|
||||
// import ImageTips from './components/ImageTips.vue'
|
||||
|
||||
import { reactive, watch } from 'vue'
|
||||
import { page } from '@/api/upnew/index'
|
||||
import { pageRes, pageReq } from '@/api/upnew/types'
|
||||
import { page } from '~/api/upnew/index'
|
||||
import type { pageRes, pageReq } from '~/api/upnew/types'
|
||||
|
||||
const query = reactive<pageReq>({
|
||||
pageNo: 1,
|
||||
|
||||
Reference in New Issue
Block a user