Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 13c3d955
authored
Sep 07, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加D+跳转
1 parent
69d88d0c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
1 deletions
app.json
mixins/menuMixin.js
pages/addTransform/index/index.js → pages/addTransform/addTransform/addTransform.js
pages/addTransform/index/index.json → pages/addTransform/addTransform/addTransform.json
pages/addTransform/index/index.wxml → pages/addTransform/addTransform/addTransform.wxml
pages/addTransform/index/index.wxss → pages/addTransform/addTransform/addTransform.wxss
router/router.js
app.json
View file @
13c3d95
...
@@ -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"
:
{
...
...
mixins/menuMixin.js
View file @
13c3d95
...
@@ -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
pages/addTransform/
index/index
.js
→
pages/addTransform/
addTransform/addTransform
.js
View file @
13c3d95
File moved
pages/addTransform/
index/index
.json
→
pages/addTransform/
addTransform/addTransform
.json
View file @
13c3d95
File moved
pages/addTransform/
index/index
.wxml
→
pages/addTransform/
addTransform/addTransform
.wxml
View file @
13c3d95
File moved
pages/addTransform/
index/index
.wxss
→
pages/addTransform/
addTransform/addTransform
.wxss
View file @
13c3d95
File moved
router/router.js
View file @
13c3d95
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment