Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
石坚
9 years ago
Commit
8d21c02357c6680cdc0f613714deb7ce8357c6b1
2 parents
eb6c1cce
212face0
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
34 deletions
apps/me/models/returns.js
apps/me/views/partial/exchange-detail.hbs
apps/product/models/item-handler.js
apps/product/views/action/item.hbs
config/common.js
doraemon/middleware/user.js
public/js/editorial/detail.page.js
public/js/plugins/upload.js
public/scss/product/_item.css
apps/me/models/returns.js
View file @
8d21c02
...
...
@@ -106,7 +106,7 @@ const getUserReturn = (uid, page) => {
let
cnAlphabet
=
good
.
cnAlphabet
?
good
.
cnAlphabet
:
''
;
good
.
hidePrice
=
true
;
good
.
goodUrl
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
good
.
productId
}
_$
{
good
.
goodsId
}
/${cnAlphabet}.html`
)
; // eslint-disable-line
good
.
goodUrl
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
good
.
productId
}
_$
{
good
.
goodsId
}
/${cnAlphabet}.html`
)
; // eslint-disable-lin
e
});
});
}
...
...
@@ -596,7 +596,7 @@ const getChangeGoodsList = (orderCode, uid) => {
good
.
showCheckbox
=
true
;
good
.
hidePrice
=
true
;
good
.
buyNumber
=
1
;
good
.
goodUrl
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
good
.
productId
}
_$
{
good
.
goodsId
}
/${cnAlphabet}.html`
)
; //eslint-disable-line
good
.
goodUrl
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
good
.
productId
}
_$
{
good
.
goodsId
}
/${cnAlphabet}.html`
)
; //eslint-disable-lin
e
});
}
}
...
...
@@ -669,7 +669,7 @@ const _setExchangeDetailData = (data) => {
list
.
reminder
=
true
;
list
.
inDoor
=
true
;
list
.
auditSuccess
=
true
;
list
.
view
=
`
/
/www.yohoblk.com/
me/order/detail/?orderCode=${data.orderCode}`;
list
.
view
=
`
/
me
/
order
/
detail
/
?
orderCode
=
$
{
data
.
orderCode
}
`
;
}
break
;
...
...
@@ -677,7 +677,7 @@ const _setExchangeDetailData = (data) => {
if
(
data
.
deliveryTpyeName
===
'寄回换货'
)
{
list
.
takeGoods
=
true
;
list
.
auditSuccess
=
true
;
list
.
view
=
`
/
/www.yohoblk.com/
me/order/detail/?orderCode=${data.orderCode}`;
list
.
view
=
`
/
me
/
order
/
detail
/
?
orderCode
=
$
{
data
.
orderCode
}
`
;
}
else
{
list
.
takeGoods
=
true
;
}
...
...
@@ -687,14 +687,14 @@ const _setExchangeDetailData = (data) => {
send
:
true
,
doubt
:
true
,
auditSuccess
:
true
,
view
:
`
/
/www.yohoblk.com/
me/order/detail/?orderCode=${data.orderCode}`
view
:
`
/
me
/
order
/
detail
/
?
orderCode
=
$
{
data
.
orderCode
}
`
});
break
;
case
40
:
Object
.
assign
(
list
,
{
finish
:
true
,
auditSuccess
:
true
,
view
:
`
/
/www.yohoblk.com/
me/order/detail/?orderCode=${data.orderCode}`
view
:
`
/
me
/
order
/
detail
/
?
orderCode
=
$
{
data
.
orderCode
}
`
});
break
;
case
91
:
...
...
apps/me/views/partial/exchange-detail.hbs
View file @
8d21c02
...
...
@@ -152,6 +152,7 @@
<p
class=
"subtext"
>
color:
{{
newColorName
}}
<br>
size:
{{
newSizeName
}}
</p>
</div>
</div>
{{#if
evidenceImages
}}
<div
class=
"reason-info"
>
<span>
问题描述:
{{
remark
}}
</span>
<div
class=
"reason-img"
>
照片凭证:
...
...
@@ -164,6 +165,7 @@
</div>
</div>
</div>
{{/if}}
{{/
goodsList
}}
</div>
</div>
...
...
apps/product/models/item-handler.js
View file @
8d21c02
...
...
@@ -184,7 +184,7 @@ const setSeoInfo = (goodInfo, nav) => {
* @return { Object } 面包屑导航数据
*/
const
setPathNav
=
(
data
,
name
,
channel
)
=>
{
let
resData
=
{}
;
let
navs
=
[]
;
let
link
=
channel
,
gender
;
...
...
@@ -203,11 +203,11 @@ const setPathNav = (data, name, channel) => {
break
;
}
navs
.
push
({
link
:
helpers
.
urlFormat
(
`
/
$
{
link
}
`
),
name
:
`
$
{
_
.
toUpper
(
channel
)}
首页`
});
if
(
!
_
.
isEmpty
(
data
))
{
let
navs
=
[{
link
:
helpers
.
urlFormat
(
`
/
$
{
link
}
`
),
name
:
`
$
{
_
.
toUpper
(
channel
)}
首页`
}];
let
sort
=
_
.
get
(
data
,
'sort[0]'
,
{});
if
(
!
_
.
isEmpty
(
sort
))
{
...
...
@@ -222,27 +222,27 @@ const setPathNav = (data, name, channel) => {
// 二级分类
if
(
!
_
.
isEmpty
(
sort
.
sub
))
{
let
subSort
=
sort
.
sub
[
0
];
navs
.
push
({
link
:
helpers
.
urlFormat
(
'/product/list'
,
{
msort
:
sort
.
sort_id
,
misort
:
s
ort
.
sub
.
sort_id
,
misort
:
s
ubSort
.
sort_id
,
gender
:
gender
}),
name
:
sort
.
sub
[
0
].
sort_name
,
pathTitle
:
sort
.
sub
[
0
].
sort_name
name
:
subSort
.
sort_name
,
pathTitle
:
subSort
.
sort_name
});
}
}
navs
.
push
({
name
:
name
,
pathTitle
:
name
});
resData
.
nav
=
navs
;
}
return
resData
;
navs
.
push
({
name
:
name
,
pathTitle
:
name
});
return
{
nav
:
navs
};
};
/**
...
...
apps/product/views/action/item.hbs
View file @
8d21c02
...
...
@@ -202,7 +202,7 @@
{{#
basic
}}
<li>
<label
class=
"title"
>
{{
key
}}
<span></span></label>
:
<span
class=
"info"
>
{{
value
}}
</span>
:
<span
class=
"info"
>
{{
value
}}
</span>
</li>
{{/
basic
}}
</ul>
...
...
@@ -211,7 +211,7 @@
{{#
comfort
}}
<li>
<label
class=
"title"
>
{{
name
}}
<span></span></label>
:
<span
class=
"min-des info"
>
{{
minDes
}}
</span>
:
<span
class=
"min-des info"
>
{{
minDes
}}
</span>
{{#
blocks
}}
<span
class=
"comfort-block
{{#if
cur
}}
cur
{{/if}}
"
></span>
{{/
blocks
}}
...
...
config/common.js
View file @
8d21c02
...
...
@@ -23,8 +23,11 @@ module.exports = {
cookieDomain
:
'yohoblk.com'
,
domains
:
{
singleApi
:
'http://192.168.102.31:8092/'
,
api
:
'http://api.yoho.yohoops.org/'
,
service
:
'http://service.yoho.yohoops.org/'
,
api
:
'http://api-test2.yohops.com:9999/'
,
service
:
'http://service-test2.yohops.com:9999/'
,
// api: 'http://api.yoho.yohoops.org/',
// service: 'http://service.yoho.yohoops.org/',
search
:
'http://192.168.102.216:8080/yohosearch/'
},
useOneapm
:
false
,
...
...
@@ -131,7 +134,7 @@ if (isProduction) {
Object
.
assign
(
module
.
exports
,
{
appName
:
'www.yohoblk.com for test'
,
domains
:
{
singleApi
:
'http://192.168.102.31:8092/
brower
'
,
singleApi
:
'http://192.168.102.31:8092/'
,
api
:
'http://testapi.yoho.cn:28078/'
,
service
:
'http://testservice.yoho.cn:28077/'
,
search
:
'http://192.168.102.216:8080/yohosearch/'
...
...
doraemon/middleware/user.js
View file @
8d21c02
...
...
@@ -10,6 +10,7 @@ const LoginService = require('../../apps/passport/models/login-service');
*/
module
.
exports
=
()
=>
{
return
(
req
,
res
,
next
)
=>
{
req
.
user
.
uid
=
8039837
;
// 从 SESSION 中获取到当前登录用户的 UID
if
(
req
.
session
&&
_
.
isNumber
(
req
.
session
.
_LOGIN_UID
))
{
...
...
public/js/editorial/detail.page.js
View file @
8d21c02
...
...
@@ -259,7 +259,6 @@ if ($('.chapter-right').find('a').text() === '') {
$
(
'.comments-list'
).
find
(
'li:last'
).
css
(
'border-bottom'
,
'none'
);
// $('.good-info').find('.price')
$
(
'.good-info'
).
each
(
function
()
{
var
$this
=
$
(
this
).
find
(
'.price'
);
...
...
@@ -267,3 +266,9 @@ $('.good-info').each(function() {
$this
.
html
(
$this
.
text
()
+
'.00'
);
}
});
$
(
'.good-info'
).
each
(
function
(
i
,
ele
)
{
if
(
i
%
4
===
3
)
{
$
(
ele
).
css
(
'margin-right'
,
'0'
);
}
});
...
...
public/js/plugins/upload.js
View file @
8d21c02
...
...
@@ -48,6 +48,7 @@ function getResponse(cb) {
if
(
num
>
20
||
res
)
{
uping
=
false
;
$filename
.
val
(
''
);
clearInterval
(
inter
);
}
...
...
@@ -63,9 +64,11 @@ function getResponse(cb) {
}
$filename
.
change
(
function
()
{
uping
=
true
;
$upload
.
submit
();
getResponse
(
callback
);
if
(
$
(
this
).
val
())
{
uping
=
true
;
$upload
.
submit
();
getResponse
(
callback
);
}
});
exports
.
up
=
up
;
...
...
public/scss/product/_item.css
View file @
8d21c02
...
...
@@ -317,7 +317,7 @@
height
:
12px
;
border
:
1px
solid
#1d1d1d
;
display
:
inline-block
;
margin
:
0
4
px
;
margin
:
0
3
px
;
position
:
relative
;
top
:
1px
;
}
...
...
@@ -428,7 +428,7 @@
}
img
{
margin-top
:
-
7
px
;
margin-top
:
-
5
px
;
display
:
inline-block
;
border
:
1px
solid
#fff
;
border-radius
:
50%
;
...
...
@@ -477,7 +477,7 @@
.cn
{
font-size
:
14px
;
line-height
:
24px
;
line-height
:
24px
;
}
.en
{
...
...
Please
register
or
login
to post a comment