Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
f48d727b
Commit
f48d727b
authored
Jul 27, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选
parent
b34af048
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
src/components/common/GoodsFliters.vue
+4
-0
src/pages/login/index.vue
+17
-0
static/nativeComponents/GoodsList/index.js
+1
-0
No files found.
src/components/common/GoodsFliters.vue
View file @
f48d727b
...
...
@@ -211,6 +211,7 @@ export default {
brandActiveNameList
:
[],
goodsSpecificationIds
:
[],
},
categoryId
:
""
,
GoodsSpecificationNameAndValuesListResponseDTO
:
[],
brandMore
:
false
,
brandList
:
[],
...
...
@@ -246,6 +247,7 @@ export default {
open
(
val
)
{
console
.
log
(
"筛选商品open"
,
val
);
this
.
submitFliterVal
=
val
.
submitFliterVal
;
this
.
categoryId
=
val
.
categoryId
;
this
.
brandListCopy
=
val
.
filterBrand
;
this
.
randomNumber
=
val
.
randomNumber
;
this
.
hideBrandSelectFlag
=
val
.
hideBrandSelectFlag
;
...
...
@@ -286,6 +288,8 @@ export default {
page
:
1
,
rows
:
100000
,
used
:
1
,
categoryId
:
this
.
categoryId
,
categoryIncludeChild
:
true
,
})
.
then
((
res
)
=>
{
console
.
log
(
res
,
'-------275'
);
...
...
src/pages/login/index.vue
View file @
f48d727b
...
...
@@ -217,6 +217,8 @@ export default {
this
.
ossLink
=
decodeURIComponent
(
options
.
ossLink
)
}
this
.
getshop
();
// 存openid
this
.
setOpenId
();
this
.
queryOptions
=
options
;
this
.
isOnLoad
=
true
;
this
.
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
@@ -819,6 +821,21 @@ export default {
wx
.
hideLoading
();
})
},
setOpenId
()
{
wx
.
login
({
success
:
res
=>
{
let
code
=
res
.
code
;
login
.
get_open_id_by_code
({
code
}).
then
(
res1
=>
{
if
(
res1
.
data
.
code
==
200
)
{
wx
.
setStorage
({
key
:
"openid"
,
data
:
res1
.
data
.
data
});
}
})
},
})
},
// 忘记密码
forgetPassword
(
val
)
{
if
(
!
val
)
return
;
...
...
static/nativeComponents/GoodsList/index.js
View file @
f48d727b
...
...
@@ -147,6 +147,7 @@ const componentOptions = {
let
_this
=
this
;
app
.
openFilterGoods
({
submitFliterVal
:
_this
.
data
.
submitFliterVal
,
categoryId
:
_this
.
data
.
datas
.
componentData
.
goodsSource
==
"classify"
?
_this
.
data
.
datas
.
componentData
.
categoryId
:
""
,
filterBrand
:
_this
.
data
.
datas
.
componentData
.
filterBrand
,
randomNumber
:
_this
.
data
.
randomNumber
,
hideBrandSelectFlag
:
_this
.
data
.
datas
.
componentData
.
filterBrand
.
length
>
0
?
true
:
false
,
...
...
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