Commit 86ba77b1 by 尹亚亭

fix selftmreg

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