Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
2016-08-27 11:25:38 +0800
Commit
47e6abe512c3f2c3c8fd4a62e71532339b1d6f20
1 parent
89f81ec2
fix bug
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
apps/me/controllers/index.js
apps/product/models/search.js
apps/product/models/shop.js
public/vue/component/resources/title-floor.vue
public/vue/me/mydetails.vue
apps/me/controllers/index.js
View file @
47e6abe
...
...
@@ -47,9 +47,9 @@ const component = {
data
=
data
||
{};
if
(
data
.
gender
===
'1'
)
{
gender
=
'
men
'
;
gender
=
'
MEN
'
;
}
else
if
(
data
.
gender
===
'2'
)
{
gender
=
'
women
'
;
gender
=
'
WOMEN
'
;
}
res
.
render
(
'mydetails'
,
{
...
...
apps/product/models/search.js
View file @
47e6abe
...
...
@@ -29,9 +29,9 @@ const search = {
for
(
let
k
in
gender
)
{
if
(
k
.
indexOf
(
'1'
)
>
-
1
)
{
gender
[
k
]
=
'
men
'
;
gender
[
k
]
=
'
MEN
'
;
}
else
if
(
k
.
indexOf
(
'2'
)
>
-
1
)
{
gender
[
k
]
=
'
women
'
;
gender
[
k
]
=
'
WOMEN
'
;
}
}
}
...
...
apps/product/models/shop.js
View file @
47e6abe
...
...
@@ -73,9 +73,9 @@ const _getGoodsList = params => {
for
(
let
k
in
gender
)
{
if
(
k
.
indexOf
(
'1'
)
>
-
1
)
{
gender
[
k
]
=
'
men
'
;
gender
[
k
]
=
'
MEN
'
;
}
else
if
(
k
.
indexOf
(
'2'
)
>
-
1
)
{
gender
[
k
]
=
'
women
'
;
gender
[
k
]
=
'
WOMEN
'
;
}
}
}
...
...
public/vue/component/resources/title-floor.vue
View file @
47e6abe
...
...
@@ -3,7 +3,8 @@
{{title.name}}
<a class="more" href="{{title.moreUrl}}">
<span v-if="title.moreName" class="icon icon-more"></span>
<span v-if="title.moreName === '···'" class="icon icon-more"></span>
<span v-else>{{{title.moreName}}}</span>
</a>
</div>
</template>
...
...
public/vue/me/mydetails.vue
View file @
47e6abe
...
...
@@ -80,7 +80,7 @@
},
setAender: function() {
genderSel.show(item => {
this.gender = item.val
.toLowerCase()
;
this.gender = item.val;
this.saveDetails({
nickname: this.nickname,
gender: item.key
...
...
Please
register
or
login
to post a comment