Commit 13c3d955 by 胡悦

添加D+跳转

1 parent 69d88d0c
......@@ -5,7 +5,7 @@
"pages/applicationPartener/applicationPartener",
"pages/applySuccess/applySuccess",
"pages/tab/introduction/introduction",
"pages/addTransform/index/index",
"pages/addTransform/addTransform/addTransform",
"pages/addTransform/detail/detail"
],
"window": {
......
......@@ -10,9 +10,16 @@ module.exports = Behavior({
selectIntroduce(e) {
console.log(e.currentTarget);
const curIntroduceIndex = e.currentTarget.dataset.index;
this.setData({
curIntroduceIndex: curIntroduceIndex,
});
switch(curIntroduceIndex) {
case 3:
wx.$router.go('pages.addTransform');
break
default:
this.setData({
curIntroduceIndex: curIntroduceIndex,
});
break
}
},
},
});
\ No newline at end of file
......@@ -106,6 +106,7 @@ class Router {
return pages[pages.length - size]
}
checkRouter(route, events) {
console.log(route)
this[_query] = events || {}
const [_parent, _name, last_name] = route.split('.')
let name = route
......@@ -125,6 +126,7 @@ class Router {
name = _parent
parent = parent
}
console.log( this[_routerList])
const routerMapItem = this[_routerList].find(item => {
if (last_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!