tanghaolin
8 天以前 49ab96a40dd2e95cde3e455b07f990e49bbc9cee
修改申报流程界面
已删除1个文件
已修改3个文件
48 ■■■■ 文件已修改
package.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/HomeView.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -40,7 +40,8 @@
        "vue-i18n": "9",
        "vue-router": "^4.1.6",
        "vue3-marquee": "^4.2.2",
        "xlsx": "^0.18.3"
        "xlsx": "^0.18.3",
        "xgplayer": "^3.0.18"
    },
    "devDependencies": {
        "@types/node": "^18.11.9",
src/router/index.ts
@@ -112,21 +112,18 @@
            path: '/policy-info',
            name: 'policy-info',
            component: () => import('../views/PolicyInfo.vue'),
        },
        {
            path: '/company-declare',
            name: 'company-declare',
            component: () => import('../views/CompanyDeclare.vue'),
        },
    ],
});
// å…¨å±€è·¯ç”±å®ˆå«
router.beforeEach((to, from, next) => {
    next();
});
// å…¨å±€åŽç½®é’©å­
router.afterEach((to, from) => {
    // ç¡®ä¿ç»„件在路由参数变化时重新渲染
    if (to.params && Object.keys(to.params).length > 0) {
        to.meta.key = to.fullPath;
    }
});
export default router;
src/views/Home.vue
@@ -19,7 +19,7 @@
                    </div>
                </el-carousel-item>
                <el-carousel-item>
                    <div class="carousel-item">
                    <div class="carousel-item" @click="clickDeclare">
                        <img src="@/assets/carousel/home/4.png" class="carousel-image" />
                    </div>
                </el-carousel-item>
@@ -576,9 +576,6 @@
    const scrollTop = document.getElementById('app-page')?.scrollTop;
    const scrollHeight = document.getElementById('app-page')?.scrollHeight - document.getElementById('app-page')?.clientHeight;
    scrollPercent.value = (scrollTop / scrollHeight) * 100;
    let scrollToTop = document.getElementById('scroll-to-top');
    let footer = document.getElementById('app-footer');
};
const linkClick = () => {
    router.push('/select-selpara');
@@ -588,11 +585,6 @@
    router.push(url);
};
const handleNewsClick = (item: any) => {
    // if (item.link) {
    //     window.open(item.link, '_blank');
    // } else {
    //     router.push(`/news-detail/${item.id}`);
    // }
    router.push(`/news-detail/${item.id}`);
};
// åˆå§‹åŒ–厂商列表数据
@@ -1059,18 +1051,17 @@
        });
    }
};
const clickDeclare = ()=>{
    router.push({
        path:'/company-declare',
    })
}
// ç›‘听产品类型选择
const changeCatalog = (type: number) => {
    state.curSelectCatalog = type;
    state.catalogSwiperIndex = 0;
    const cb = () => {
        catalogSwiperRef.value?.slideTo(state.catalogSwiperIndex, 0);
        // catalogSwiperRef.value?.autoplay = {
        //     delay: 3000,
        //     disableOnInteraction: false,
        //     pauseOnMouseEnter:true,
        // };
        catalogSwiperRef.value?.update();
    };
    initCatalogList(cb);
src/views/HomeView.vue
ÎļþÒÑɾ³ý