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
ea4f1d77
Commit
ea4f1d77
authored
Sep 30, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车警告
parent
af24302e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cart.js
src/pages/cart/cart.js
+2
-2
wxService.js
src/utils/wxService.js
+1
-2
No files found.
src/pages/cart/cart.js
View file @
ea4f1d77
...
@@ -81,11 +81,11 @@ wxService.page({
...
@@ -81,11 +81,11 @@ wxService.page({
if
(
result
==
0
)
{
if
(
result
==
0
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
// item.checked
// item.checked
data
.
skuVOList
.
forEach
(
item
=>
{
data
&&
data
.
skuVOList
.
forEach
(
item
=>
{
item
.
checked
=
false
item
.
checked
=
false
})
})
this
.
setData
({
this
.
setData
({
cartList
:
data
.
skuVOList
cartList
:
data
&&
data
.
skuVOList
||
[]
})
})
}
}
}
}
...
...
src/utils/wxService.js
View file @
ea4f1d77
...
@@ -397,11 +397,10 @@ class WXService extends Http {
...
@@ -397,11 +397,10 @@ class WXService extends Http {
// 对应的path
// 对应的path
let
currentPaths
=
[];
let
currentPaths
=
[];
localPath
.
forEach
(
item
=>
{
localPath
.
forEach
(
item
=>
{
console
.
log
(
'---------'
,
item
,
data
)
if
(
item
.
hasOwnProperty
(
data
))
{
if
(
item
.
hasOwnProperty
(
data
))
{
currentPaths
=
item
[
data
]
currentPaths
=
item
[
data
]
}
else
{
}
else
{
console
.
log
(
222
);
}
}
})
})
return
Promise
.
resolve
({
currentPaths
})
return
Promise
.
resolve
({
currentPaths
})
...
...
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