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
Plain Diff
Browse Files
Authored by
陈轩
9 years ago
Commit
3814031b0c508df35b6e5a6590ff7a1eb9c10031
2 parents
8a9de30a
964b51aa
Merge remote-tracking branch 'origin/develop' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
32 deletions
apps/home/controllers/favorite.js
apps/home/controllers/index.js
public/hbs/components/select.hbs
public/js/common/select.js
public/scss/common/_select.css
public/vue/channel/brand-cate.vue
public/vue/product/shop/share-bottom.vue → public/vue/component/tool/share-bottom.vue
public/vue/home/mydetails.vue
public/vue/product/shop/share-box.vue
public/vue/product/shop/top-bar.vue
apps/home/controllers/favorite.js
View file @
3814031
...
...
@@ -23,7 +23,7 @@ const fav = {
}
},
favpaging
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
const
tab
=
req
.
query
.
tab
;
const
page
=
req
.
query
.
page
;
...
...
@@ -40,7 +40,7 @@ const fav = {
}
},
deletefav
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
const
favId
=
req
.
body
.
favId
;
const
type
=
req
.
body
.
type
;
...
...
apps/home/controllers/index.js
View file @
3814031
...
...
@@ -13,7 +13,7 @@ const helpers = global.yoho.helpers;
*/
const
component
=
{
index
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
if
(
!
uid
&&
req
.
xhr
)
{
return
res
.
json
({
...
...
@@ -38,7 +38,7 @@ const component = {
}).
catch
(
next
);
},
mydetails
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
||
14459668
;
const
uid
=
req
.
user
.
uid
;
homeModel
.
getUserProfileData
(
uid
).
then
(
data
=>
{
data
=
data
||
{};
...
...
@@ -62,7 +62,7 @@ const component = {
},
saveMydetails
:
(
req
,
res
,
next
)
=>
{
var
params
=
{
uid
:
req
.
user
.
uid
||
14459668
uid
:
req
.
user
.
uid
};
if
(
req
.
body
.
nickname
!==
undefined
)
{
...
...
@@ -121,7 +121,6 @@ const component = {
},
saveFeedback
:
(
req
,
res
,
next
)
=>
{
let
saveFeedbackPara
=
{
uid
:
'14459668'
,
content
:
req
.
body
.
content
,
suggest_type
:
2
};
...
...
public/hbs/components/select.hbs
View file @
3814031
<div
class=
"select"
>
<ul>
{{#
each
items
}}
<li
class=
"item-li
"
key=
"
{{
key
}}
"
>
{{
val
}}
</li>
<li
class=
"item-li
{{#if
disabled
}}
disabled
{{/if}}
"
key=
"
{{
key
}}
"
status=
"
{{
disabled
}}
"
>
{{
val
}}
</li>
{{/
each
}}
<li
class=
"item-del"
>
<span>
取消
</span>
...
...
public/js/common/select.js
View file @
3814031
...
...
@@ -28,40 +28,49 @@ function Select(items) {
// 覆盖层
const
overlay
=
new
Overlay
({
onClose
:
function
()
{
elem
.
removeClass
(
'slide-in'
);
elem
.
hide
();
}
});
$
(
del
).
click
(
function
()
{
const
hide
=
function
()
{
elem
.
removeClass
(
'slide-in'
);
overlay
.
hide
();
elem
.
hide
();
}
);
}
return
{
show
:
function
(
cb
)
{
if
(
elem
.
parent
().
length
===
0
)
{
const
lis
=
elem
.
find
(
'.item-li'
);
const
show
=
function
(
cb
)
{
if
(
elem
.
parent
().
length
===
0
)
{
const
lis
=
elem
.
find
(
'.item-li'
);
lis
.
each
(
function
()
{
lis
.
each
(
function
()
{
if
(
!
$
(
this
).
attr
(
'status'
))
{
$
(
this
).
click
(
function
(
e
)
{
overlay
.
hide
();
elem
.
hide
();
hide
();
cb
({
key
:
$
(
e
.
target
).
attr
(
'key'
),
val
:
e
.
target
.
innerHTML
});
});
});
elem
.
appendTo
(
'body'
).
addClass
(
'animation-target'
);
}
overlay
.
show
();
elem
.
show
();
},
hide
:
function
()
{
overlay
.
hide
();
elem
.
hide
();
}
});
elem
.
appendTo
(
'body'
);
}
overlay
.
show
();
elem
.
show
();
setTimeout
(()
=>
{
elem
.
addClass
(
'slide-in'
);
},
200
);
}
$
(
del
).
click
(
function
()
{
hide
();
});
return
{
show
:
show
,
hide
:
hide
};
}
...
...
public/scss/common/_select.css
View file @
3814031
...
...
@@ -4,6 +4,8 @@
width
:
100%
;
background
:
#fff
;
z-index
:
1001
;
transform
:
translate3d
(
0
,
100%
,
0
);
transition
:
all
0.1s
ease-in-out
;
ul
{
font-size
:
34px
;
...
...
@@ -15,10 +17,18 @@
border-bottom
:
1px
solid
#e0e0e0
;
}
.disabled
{
color
:
#b0b0b0
;
}
.item-del
{
margin-top
:
10px
;
border-top
:
1px
solid
#e0e0e0
;
color
:
#5c99e4
;
}
}
&
.slide-in
{
transform
:
translate3d
(
0
,
0
,
0
);
}
}
...
...
public/vue/channel/brand-cate.vue
View file @
3814031
<template>
<tab v-bind:page="page"></tab>
<div class="cate-tab-fixed">
<tab v-bind:page="page"></tab>
</div>
<div class="cate-page" id='cate-page'>
<div class="cate-nav clearfix">
<ul>
...
...
@@ -27,6 +29,12 @@
</div>
</template>
<style>
.cate-tab-fixed {
position: fixed;
top: 0;
left: 0;
}
.cate-page {
font-size: 36px;
font-family: helvetica, Arial, "黑体";
...
...
public/vue/
product/shop
/share-bottom.vue → public/vue/
component/tool
/share-bottom.vue
View file @
3814031
public/vue/home/mydetails.vue
View file @
3814031
...
...
@@ -62,7 +62,6 @@
let _this = this;
genderSel.show(function(item) {
console.log(item)
_this.gender = item.val.toLowerCase();
_this.saveDetails({
nickname: _this.nickname,
...
...
public/vue/product/shop/share-box.vue
View file @
3814031
...
...
@@ -53,7 +53,7 @@
}
</style>
<script>
const shareBottom = require('
product/shop
/share-bottom.vue');
const shareBottom = require('
component/tool
/share-bottom.vue');
const qs = require('yoho-qs');
const tip = require('common/tip');
...
...
public/vue/product/shop/top-bar.vue
View file @
3814031
...
...
@@ -16,7 +16,7 @@
height: 80px;
padding: 10px 20px;
position: fixed;
top:
6
0px;
top:
4
0px;
left: 0;
z-index: 99;
color: #fff;
...
...
@@ -43,13 +43,13 @@
}
.top-box-left {
left: -6
5
5px;
left: -6
6
5px;
}
.top-change {
background-color: #fff;
color: #000;
height: 1
4
0px;
height: 1
2
0px;
top: 0;
padding: 70px 20px 10px;
}
...
...
Please
register
or
login
to post a comment