Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
562a1e21
Commit
562a1e21
authored
Nov 06, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类列表参数
parent
6d630928
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+1
-0
common.js
src/utils/common.js
+2
-1
currentLinkRouter.js
src/utils/currentLinkRouter.js
+1
-1
No files found.
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
562a1e21
...
...
@@ -46,6 +46,7 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
console
.
log
(
'options'
,
options
)
if
(
options
&&
options
.
id
)
{
this
.
setData
({
'form.mallCategoryId'
:
options
.
id
...
...
src/utils/common.js
View file @
562a1e21
...
...
@@ -145,7 +145,8 @@ HandlerLinkRow.prototype = {
}
else
if
(
type
==
8
)
{
return
`
${
item
.
url
}
`
}
else
if
(
type
==
9
)
{
return
`id=
${
item
.
url
}
&name=
${
item
.
name
}
`
// return `id=${item.url}&name=${item.name}`
return
`
${
item
.
url
}
`
}
}
}
...
...
src/utils/currentLinkRouter.js
View file @
562a1e21
...
...
@@ -6,7 +6,6 @@ function currentLinkRouter(event, _this) {
let
curItemType
=
ev
.
item
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
// link row
if
(
curItemType
.
link
)
{
//处理返回值是空对象时 导致跳转失败
if
(
Object
.
keys
(
curItemType
.
link
).
length
>
0
){
...
...
@@ -85,6 +84,7 @@ function currentLinkRouter(event, _this) {
}
else
if
(
rowObj
.
type
==
9
)
{
// 分类
console
.
log
(
'aaaacurrentClickType'
,
currentClickType
)
wxService
.
router
(
`/subPackage/page/pages/categoryPro/categoryPro?id=
${
currentClickRow
}
`
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment