Commit 86ba77b1 by 尹亚亭

fix selftmreg

parent 7c67cb35
......@@ -4,43 +4,41 @@ import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [{
path: "/:chanue/jdbycdetailtm",
path: "/jdbycdetailtm",
name: "jdbycdetailtm",
component: () =>
import("@/views/pages/jdbycdetailtm")
},
{
path: "/:chanue/companydetail",
path: "/companydetail",
name: "companydetail",
component: () =>
import("@/views/pages/companydetail")
},
{
path: "/:chanue/jdindentlist",
path: "/jdindentlist",
name: "jdindentdetail",
component: () =>
import("@/views/pages/jdindentlist")
},
{
path: "/:chanue/jdindentdetail",
path: "/jdindentdetail",
name: "jdindentdetail",
component: () =>
import("@/views/pages/jdindentdetail")
},
/////////
{
path: "/:chanue/jdtrademark",
path: "/jdtrademark",
name: "jdtrademark",
component: () =>
import("@/views/pages/jdtrademark/Jdtrademark")
},
{
path: "/:chanue/selftmreg",
path: "/selftmreg",
name: "selftmreg",
component: () =>
import("@/views/pages/selftmreg/Selftmreg"),
// 默认页面是一级路由下的第一个子路由
redirect: '/:chanue/selftmreg/basic',
// 配置二级路由
children: [
// 第一步:填写基本信息
......@@ -71,7 +69,7 @@ const routes = [{
},
{
// path: "/bycnoticeindex",
path: "/:chanue/bycnoticeindex",
path: "/bycnoticeindex",
name: "bycnoticeindex",
component: () =>
import("@/views/pages/bycnoticeindex/Bycnoticeindex")
......
......@@ -149,7 +149,6 @@
</template>
<script>
import { getNcldata } from "@/api/api.js";
export default {
data() {
return {
......@@ -254,11 +253,7 @@ export default {
this.classDataList.splice(this.classDataList.indexOf(tag), 1);
}
},
mounted() {
getNcldata().then(res => {
console.log(res.data);
});
}
mounted() {}
};
</script>
......
......@@ -14,7 +14,7 @@
<div class="jdindentdetail-page">
<div class="jdindentdetail-wrap">
<!-- 主体内容步骤条 -->
<SelftmregPageSteps />
<SelftmregPageSteps ref="qwe" />
<!-- 主页内容 -->
<el-form class="demo-ruleForm" label-width="120px">
......@@ -75,14 +75,27 @@ export default {
data() {
return {
//
index: 0
};
},
created() {
if (this.index == 0) {
this.$router.push("/selftmreg/basic");
}
},
methods: {
next() {
console.log("two level router");
// 加载二级路由组件:第二步,填写申请人信息
// this.$router.push("/:chanue/selftmreg/user");
console.log(this);
console.log(this.$refs.qwe.$refs.asd.children);
this.index++;
if (this.index == 1) {
this.$router.push("/selftmreg/user");
}
if (this.index == 2) {
this.$router.push("/selftmreg/confirm");
}
// 加载二级路由组件:第三步,确认订单
// this.$router.push("/:chanue/selftmreg/confirm");
// 加载二级路由组件:第四步,支付订单
......
<template>
<div class="selftmreg_steps">
<div class="pointsRule">
<ul id="list">
<ul id="list" ref="asd">
<li>
<a class="active">
<span>填写基本信息</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment