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
yyq
9 years ago
Commit
1515b7bc2d9a8eb93cfae0b3ac99816916428e73
2 parents
3d387c9d
23e1460a
Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
46 additions
and
25 deletions
apps/channel/views/partial/slider.hbs
apps/editorial/models/editorial.js
apps/me/controllers/favorite.js
apps/me/models/address.js
apps/me/views/partial/address/table.hbs
apps/me/views/partial/exchange-detail.hbs
config/common.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/scss/me/_address.css
public/scss/me/_exchange.css
apps/channel/views/partial/slider.hbs
View file @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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/views/partial/address/table.hbs
View file @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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
}}
...
...
config/common.js
View file @
1515b7b
...
...
@@ -22,8 +22,8 @@ module.exports = {
},
cookieDomain
:
'yohoblk.com'
,
domains
:
{
api
:
'http://testapi.yoho.cn:28078/'
,
// devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service
:
'http://testservice.yoho.cn:28077/'
,
// testservice.yoho.cn:28077 devservice.yoho.cn:58077
api
:
'http://dev-api.yohops.com:9999/'
,
// dev-api.yohops.com:9999 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service
:
'http://dev-service.yohops.cn:9999/'
,
// testservice.yoho.cn:28077 devservice.yoho.cn:58077
search
:
'http://192.168.102.216:8080/yohosearch/'
},
useOneapm
:
false
,
...
...
@@ -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/'
}
});
}
...
...
public/js/editorial/detail.page.js
View file @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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 @
1515b7b
...
...
@@ -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/scss/me/_address.css
View file @
1515b7b
...
...
@@ -166,4 +166,8 @@
padding
:
0
10px
;
color
:
#999
;
}
.hide
{
display
:
none
;
}
}
...
...
public/scss/me/_exchange.css
View file @
1515b7b
...
...
@@ -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