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
83e97aab3ca53df4be4aaa75995dc353c555b63c
2 parents
8904ee5f
c024c885
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
22 changed files
with
65 additions
and
44 deletions
apps/channel/views/partial/slider.hbs
apps/editorial/models/editorial.js
apps/me/controllers/favorite.js
apps/me/models/address.js
apps/me/models/order.js
apps/me/views/partial/address/table.hbs
apps/me/views/partial/exchange-detail.hbs
apps/me/views/partial/order/table-body.hbs
apps/me/views/partial/refund-detail.hbs
apps/product/models/item.js
config/common.js
doraemon/views/partial/nav-menu.hbs
public/js/common/header.js
public/js/editorial/detail.page.js
public/js/editorial/index.page.js
public/js/editorial/list.page.js
public/js/me/address.page.js
public/js/me/refund-detail.page.js
public/scss/channel/_editorial.css
public/scss/channel/_style-icon.css
public/scss/me/_address.css
public/scss/me/_exchange.css
apps/channel/views/partial/slider.hbs
View file @
83e97aa
...
...
@@ -2,9 +2,8 @@
<div
class=
"slide-wrapper"
>
<ul>
{{#
slider
}}
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<li
class=
"banner-item"
style=
"
{{#if
bgColor
}}
background-color:
{{
bgColor
}}{{/if}}
; background-image:url('
{{
image
src
1150
570
}}
')"
>
</a>
<li
class=
"banner-item"
style=
"
{{#if
bgColor
}}
background-color:
{{
bgColor
}}{{/if}}
; background-image:url('
{{
image
src
1150
570
}}
')"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
></a>
{{#
tips
}}
<div
class=
"slide-tips"
>
<div
class=
"g-mark"
></div>
...
...
apps/editorial/models/editorial.js
View file @
83e97aa
...
...
@@ -36,7 +36,6 @@ const _processListData = (list) => {
});
_
.
forEach
(
list
.
list
.
artList
,
(
data
)
=>
{
// console.log(data)
if
(
data
.
author
)
{
listData
=
_
.
assign
(
listData
,
{
...
...
@@ -230,7 +229,7 @@ const _getRelatedData = (idList) => {
cnAlphabet
:
data
.
cn_alphabet
});
});
console
.
log
(
productList
);
return
productList
;
}
else
{
logger
.
error
(
'推荐商品 cood 不是 200'
);
...
...
@@ -247,6 +246,7 @@ const _getRelatedData = (idList) => {
const
_processContentData
=
(
list
)
=>
{
list
=
list
||
[];
list
=
camelCase
(
list
);
console
.
log
(
list
);
let
contentData
=
{
contents
:
[]
...
...
@@ -282,6 +282,7 @@ const _processContentData = (list) => {
if
(
value
.
goods
)
{
_
.
forEach
(
value
.
goods
.
data
,
function
(
data
)
{
console
.
log
(
data
);
idList
+=
data
.
id
+
','
;
related
.
relatedReco
.
push
(
data
);
...
...
@@ -308,7 +309,10 @@ const _processContentData = (list) => {
if
(
related
.
relatedReco
)
{
_
.
forEach
(
related
.
relatedReco
,
function
(
data
,
index
)
{
data
=
_
.
assign
(
data
,
{
// link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
});
data
=
_
.
assign
(
data
,
result
[
index
]);
});
result
.
splice
(
0
,
recoLength
.
length
);
...
...
apps/me/controllers/favorite.js
View file @
83e97aa
...
...
@@ -87,6 +87,7 @@ const favorite = {
ret
.
content
.
favorite
.
data
=
retData
;
ret
.
content
.
banner
=
thumb
;
console
.
log
(
retData
);
}
res
.
display
(
'index'
,
ret
);
...
...
apps/me/models/address.js
View file @
83e97aa
...
...
@@ -20,7 +20,10 @@ const getAddressDataAsync = (uid, limit) => {
method
:
'app.address.gethidden'
,
uid
:
uid
,
limit
:
limit
}).
then
(
result
=>
result
);
}).
then
(
result
=>
{
console
.
log
(
result
);
return
result
;
});
};
...
...
apps/me/models/order.js
View file @
83e97aa
...
...
@@ -229,8 +229,6 @@ const _getDetail = (uid, code) => {
method
:
'app.SpaceOrders.detail'
,
uid
:
uid
,
order_code
:
code
},
{
cache
:
100
});
};
...
...
@@ -249,8 +247,6 @@ const _getUserOrder = (uid, type, page) => {
type
:
type
,
page
:
page
,
limit
:
pageSize
},
{
cache
:
100
}).
then
(
result
=>
{
let
orderList
=
[];
let
total
=
false
;
...
...
@@ -314,6 +310,10 @@ const _getUserOrder = (uid, type, page) => {
item
.
isRefundOrder
=
ot
===
7
;
if
(
parseInt
(
item
.
payLefttime
,
10
)
!==
0
)
{
item
.
showLeftTime
=
true
;
}
if
(
item
.
isCancel
===
'Y'
)
{
item
.
showBuyBtn
=
true
;
item
.
statusStr
=
'已取消'
;
...
...
@@ -398,8 +398,6 @@ const getExpressInfo = (uid, code) => {
method
:
'app.express.get'
,
uid
:
uid
,
order_code
:
code
},
{
cache
:
true
});
};
...
...
@@ -511,7 +509,8 @@ const getOrderDetail = (uid, code) => {
detail
.
createTime
=
_convertUnixTime
(
detail
.
createTime
);
if
(
detail
.
isCancel
===
'N'
&&
st
===
0
)
{
st
===
0
&&
parseInt
(
detail
.
payLefttime
,
10
)
!==
0
)
{
detail
.
showLeftTime
=
true
;
}
...
...
apps/me/views/partial/address/table.hbs
View file @
83e97aa
...
...
@@ -21,13 +21,15 @@
<td
class=
"width-opearte"
>
<div>
<span
class=
"blue opreation update-address"
data-id=
"
{{
address_id
}}
"
>
修改
</span>
{{#if
default
}}
<em
class=
"op-sep
{{#if
default
}}
hide
{{/if}}
"
>
|
</em>
<span
class=
"blue opreation del-address
{{#if
default
}}
hide
{{/if}}
"
data-id=
"
{{
address_id
}}
"
>
删除
</span>
{{#if
default
}}
<span
class=
"btn set-default opreation current-default"
data-id=
{{
address_id
}}
>
默认地址</span
>
{{else}}
<em
class=
"op-sep"
>
|
</em>
<span
class=
"blue opreation del-address"
data-id=
"
{{
address_id
}}
"
>
删除
</span>
<span
class=
"btn set-default opreation "
data-id=
{{
address_id
}}
>
设为默认</span
>
{{/if}}
{{else}}
<span
class=
"btn set-default opreation "
data-id=
{{
address_id
}}
>
设为默认</span
>
{{/if}}
</div>
</td>
</tr>
...
...
apps/me/views/partial/exchange-detail.hbs
View file @
83e97aa
...
...
@@ -30,7 +30,8 @@
<div
class=
"way"
>
{{#if
takeGoods
}}
<p
class=
"contact"
>
我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系
<a
href=
"http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094"
target=
"_blank"
><span
class=
"iconfont"
>

</span></a>
在线客服
</p>
<p
class=
"contact"
>
我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系
<a
href=
"http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094"
target=
"_blank"
><span
class=
"iconfont"
>

</span>
在线客服
</a>
</p>
{{/if}}
{{#if
reminder
}}
...
...
@@ -50,7 +51,7 @@
{{/if}}
{{#if
doubt
}}
<p
class=
"contact"
>
如有疑问,请联系
<a
href=
"http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094"
target=
"_blank"
><span
class=
"iconfont"
>

</span>
在线客服
</
p></a
>
<p
class=
"contact"
>
如有疑问,请联系
<a
href=
"http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094"
target=
"_blank"
><span
class=
"iconfont"
>

</span>
在线客服
</
a></p
>
{{/if}}
{{#if
auditSuccess
}}
...
...
apps/me/views/partial/order/table-body.hbs
View file @
83e97aa
...
...
@@ -22,7 +22,9 @@
{{#if
showPayButton
}}
<div
class=
"pay-operation"
>
{{#if
isOnlinePaid
}}
{{#if
showLeftTime
}}
<span
class=
"iconfont hide-when-invalid"
>

</span><p
class=
"left-time"
data-left=
"
{{
payLefttime
}}
"
></p>
{{/if}}
<a
href=
"
{{
payUrl
}}
"
>
<span
class=
"btn red hide-when-invalid"
>
立即付款
</span>
</a>
...
...
apps/me/views/partial/refund-detail.hbs
View file @
83e97aa
...
...
@@ -126,7 +126,6 @@
<div
class=
"info"
>
<p
class=
"title"
title=
"
{{
name
}}
"
>
{{
name
}}
</p>
<p>
颜色:
{{
color
}}
尺码:
{{
size
}}
</p>
<p>
×
{{
num
}}
</p>
</div>
<div
class=
"reason"
>
{{
reason
}}
</div>
<div
class=
"num"
>
{{
num
}}
</div>
...
...
apps/product/models/item.js
View file @
83e97aa
...
...
@@ -91,10 +91,15 @@ const getProductItemData = (params, url, uid) => {
let
resData
=
{};
let
data
=
{};
// 如果status为0,即商品下架时则返回空对象
if
(
!
result
.
status
)
{
return
resData
;
}
if
(
!
result
.
productName
&&
!
result
.
erpProductId
&&
!
result
.
productPriceBo
)
{
return
d
ata
;
return
resD
ata
;
}
result
.
uid
=
uid
;
...
...
config/common.js
View file @
83e97aa
...
...
@@ -106,8 +106,8 @@ if (isProduction) {
Object
.
assign
(
module
.
exports
,
{
appName
:
'www.yohoblk.com for test'
,
domains
:
{
api
:
'http://api-test1.yohops.com:9999/'
,
service
:
'http://service-test1.yohops.com:9999/'
,
api
:
'http://testapi.yoho.cn:28078/'
,
service
:
'http://testservice.yoho.cn:28077/'
,
search
:
'http://192.168.102.216:8080/yohosearch/'
},
useOneapm
:
true
,
...
...
@@ -118,9 +118,6 @@ if (isProduction) {
session
:
[
'127.0.0.1:12111'
],
timeout
:
1000
,
retries
:
0
},
pay
:
{
serviceNotify
:
'http://service-test1.yohops.com:9999/'
}
});
}
...
...
doraemon/views/partial/nav-menu.hbs
View file @
83e97aa
...
...
@@ -74,14 +74,7 @@
</a>
</li>
</ul>
<div
class=
"hot-search hide"
>
<a
href=
"#"
>
外套
</a>
<a
href=
"#"
>
长裤
</a>
<a
href=
"#"
>
大衣
</a>
<a
href=
"#"
>
毛衣
</a>
<a
href=
"#"
>
图案
</a>
<a
href=
"#"
>
简约连衣裙
</a>
</div>
<div
class=
"hot-search hide"
></div>
</div>
</div>
</div>
...
...
public/js/common/header.js
View file @
83e97aa
...
...
@@ -77,7 +77,8 @@ function getNavImg(code, dom) {
},
success
:
function
(
result
)
{
if
(
result
.
code
===
200
)
{
dom
.
data
(
'show'
,
true
).
html
(
'<img src="'
+
result
.
data
.
src
+
'">'
);
dom
.
data
(
'show'
,
true
).
html
(
'<a href="'
+
result
.
data
.
url
+
'"><img src="'
+
result
.
data
.
src
+
'" title="'
+
result
.
data
.
title
+
'"></a>'
);
}
}
});
...
...
public/js/editorial/detail.page.js
View file @
83e97aa
...
...
@@ -22,6 +22,7 @@ var $commentList = $commentArea.find('.comments-wrap'),
pag
=
0
;
require
(
'../plugins/share'
);
require
(
'../common/header'
);
// require('yoho-unslider');
...
...
public/js/editorial/index.page.js
View file @
83e97aa
...
...
@@ -11,6 +11,7 @@ var _alert = dialog.Alert;
require
(
'../common/header'
);
require
(
'../common/return-top'
);
require
(
'../common/header'
);
$
(
'.editorial-index-page'
).
on
(
'click'
,
'.like-icon'
,
function
()
{
var
$this
=
$
(
this
),
...
...
@@ -32,7 +33,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$this
.
next
(
'b'
).
html
(
data
.
data
);
$this
.
toggleClass
(
'liked'
);
$this
.
toggleClass
(
'liked'
);
}
else
{
new
_alert
(
data
.
message
).
show
();
}
...
...
public/js/editorial/list.page.js
View file @
83e97aa
...
...
@@ -10,6 +10,7 @@ var _alert = dialog.Alert;
require
(
'../common/header'
);
require
(
'../common/return-top'
);
require
(
'../common/header'
);
lazyLoad
(
$
(
'.content-msg img.lazy'
));
...
...
public/js/me/address.page.js
View file @
83e97aa
...
...
@@ -266,8 +266,12 @@ $(function() {
},
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$
(
'.del-address'
).
removeClass
(
'hide'
);
$
(
'.op-sep'
).
removeClass
(
'hide'
);
$
(
'.current-default'
).
removeClass
(
'current-default'
).
text
(
'设为默认'
);
$
(
self
).
addClass
(
'current-default'
).
text
(
'默认地址'
);
$
(
self
).
siblings
(
'.del-address'
).
addClass
(
'hide'
);
$
(
self
).
siblings
(
'.op-sep'
).
addClass
(
'hide'
);
tbody
.
find
(
'.table-body'
).
eq
(
0
).
before
(
'<tr class=\'table-body select-row\'>'
+
tr
.
html
()
+
'</tr>'
);
tr
.
remove
();
...
...
@@ -277,11 +281,12 @@ $(function() {
}
});
});
// 选中某一行
$
(
document
).
on
(
'
click
'
,
'.table-body'
,
function
()
{
$
(
document
).
on
(
'
mousemove
'
,
'.table-body'
,
function
()
{
$
(
'.table-body'
).
removeClass
(
'select-row'
);
$
(
this
).
addClass
(
'select-row'
);
...
...
public/js/me/refund-detail.page.js
View file @
83e97aa
...
...
@@ -90,7 +90,7 @@ $submitExpress.click(function() {
$showExpress
.
on
(
'click'
,
'.reset-express'
,
function
()
{
var
expressId
=
$showExpress
.
data
(
'id'
);
$expressCo
de
.
val
(
expressId
);
$expressCo
mpany
.
val
(
expressId
);
$showExpress
.
addClass
(
'hide'
);
$editExpress
.
removeClass
(
'hide'
);
});
...
...
public/scss/channel/_editorial.css
View file @
83e97aa
...
...
@@ -19,7 +19,7 @@
position
:
relative
;
&.bottom-space
{
margin-bottom
:
15
px
;
margin-bottom
:
20
px
;
}
&
.right-space
{
...
...
@@ -49,7 +49,7 @@
img
{
width
:
$
bigImgWidth
;
height
:
calc
(
$
smallImgHeight
*
2
+$
space
+
4
px
);
height
:
calc
(
$
smallImgHeight
*
2
+$
space
+
10
px
);
}
}
...
...
public/scss/channel/_style-icon.css
View file @
83e97aa
...
...
@@ -15,6 +15,7 @@
.card
{
height
:
$
height
;
width
:
calc
(
$
width
+
$
space
);
float
:
left
;
position
:
relative
;
box-sizing
:
border-box
;
...
...
public/scss/me/_address.css
View file @
83e97aa
...
...
@@ -166,4 +166,8 @@
padding
:
0
10px
;
color
:
#999
;
}
.hide
{
display
:
none
;
}
}
...
...
public/scss/me/_exchange.css
View file @
83e97aa
...
...
@@ -67,16 +67,18 @@
.contact
{
line-height
:
50px
;
height
:
50px
;
color
:
#219dd6
;
span
{
margin-left
:
20px
;
}
a
{
color
:
#219dd6
;
}
.iconfont
{
font-size
:
12px
;
margin-right
:
5px
;
color
:
#219dd6
;
}
}
}
...
...
Please
register
or
login
to post a comment