Commit 13c3d955 by 胡悦

添加D+跳转

1 parent 69d88d0c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"pages/applicationPartener/applicationPartener", "pages/applicationPartener/applicationPartener",
"pages/applySuccess/applySuccess", "pages/applySuccess/applySuccess",
"pages/tab/introduction/introduction", "pages/tab/introduction/introduction",
"pages/addTransform/index/index", "pages/addTransform/addTransform/addTransform",
"pages/addTransform/detail/detail" "pages/addTransform/detail/detail"
], ],
"window": { "window": {
......
...@@ -10,9 +10,16 @@ module.exports = Behavior({ ...@@ -10,9 +10,16 @@ module.exports = Behavior({
selectIntroduce(e) { selectIntroduce(e) {
console.log(e.currentTarget); console.log(e.currentTarget);
const curIntroduceIndex = e.currentTarget.dataset.index; const curIntroduceIndex = e.currentTarget.dataset.index;
switch(curIntroduceIndex) {
case 3:
wx.$router.go('pages.addTransform');
break
default:
this.setData({ this.setData({
curIntroduceIndex: curIntroduceIndex, curIntroduceIndex: curIntroduceIndex,
}); });
break
}
}, },
}, },
}); });
\ No newline at end of file \ No newline at end of file
...@@ -106,6 +106,7 @@ class Router { ...@@ -106,6 +106,7 @@ class Router {
return pages[pages.length - size] return pages[pages.length - size]
} }
checkRouter(route, events) { checkRouter(route, events) {
console.log(route)
this[_query] = events || {} this[_query] = events || {}
const [_parent, _name, last_name] = route.split('.') const [_parent, _name, last_name] = route.split('.')
let name = route let name = route
...@@ -125,6 +126,7 @@ class Router { ...@@ -125,6 +126,7 @@ class Router {
name = _parent name = _parent
parent = parent parent = parent
} }
console.log( this[_routerList])
const routerMapItem = this[_routerList].find(item => { const routerMapItem = this[_routerList].find(item => {
if (last_name) { if (last_name) {
return item.parent === parent && item.name === last_name && item.subPages === name return item.parent === parent && item.name === last_name && item.subPages === name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!