Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
2017-11-29 18:44:33 +0800
Commit
687b9852be13b12067860219ad7cf3036d9bae5f
2 parents
bac39ef8
b5d48dad
Merge branch 'hotfix/bugfixed' into 'master'
Hotfix/bugfixed See merge request
!1112
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
apps/guang/models/detail.js
apps/guang/models/plustar.js
apps/product/controllers/new-shop.js
apps/product/views/partial/detail/feedback-tab.hbs
utils/detail-process.js
apps/guang/models/detail.js
View file @
687b985
...
...
@@ -284,8 +284,8 @@ class DetailModel extends global.yoho.BaseModel {
for
(
let
i
=
0
;
i
<
getArticleContent
.
length
;
i
++
)
{
if
(
getArticleContent
[
i
].
text
&&
textPosition
===
1
)
{
descriptionText
=
getArticleContent
[
i
].
text
.
data
.
text
;
result
.
getArticle
.
descriptionText
=
descriptionText
.
replace
(
/<
\/?[^
>
]
*>/g
,
''
);
descriptionText
=
_
.
get
(
getArticleContent
[
i
],
'text.data.text'
);
_
.
set
(
result
,
'getArticle.descriptionText'
,
descriptionText
.
replace
(
/<
\/?[^
>
]
*>/g
,
''
));
textPosition
++
;
}
}
...
...
apps/guang/models/plustar.js
View file @
687b985
...
...
@@ -347,7 +347,7 @@ module.exports = class extends global.yoho.BaseModel {
if
(
isApp
)
{
url
=
'?openby:yohobuy={"action":"go.brand","params":{"brand_id":"'
+
brandId
+
'","is_different":"'
+
isDifferent
+
'"}}'
;
// eslint-disable-line
uid
=
parseInt
(
uid
,
10
);
//
uid = parseInt(uid, 10);
}
else
{
url
=
'//'
+
brandDomain
+
'.m.yohobuy.com'
;
}
...
...
apps/product/controllers/new-shop.js
View file @
687b985
...
...
@@ -442,7 +442,8 @@ const shop = {
let
data
=
{};
cryptCouponId
=
parseInt
(
cryptCouponId
,
10
);
uid
=
parseInt
(
uid
,
10
);
// uid = parseInt(uid, 10);
if
(
uid
)
{
req
.
ctx
(
couponModel
).
receiveCoupon
(
...
...
apps/product/views/partial/detail/feedback-tab.hbs
View file @
687b985
...
...
@@ -54,7 +54,7 @@
</div>
{{/
consults
}}
</div>
<a
class=
"consult-content-footer tap-hightlight"
href=
"
{{
consultsUrl
}}
"
>
<a
class=
"consult-content-footer tap-hightlight"
href=
"
{{
consultsUrl
}}
"
rel=
"nofollow"
>
查看更多
<span
class=
"iconfont"
>

</span>
</a>
...
...
utils/detail-process.js
View file @
687b985
...
...
@@ -112,7 +112,8 @@ class DetailProcess {
bannerList
.
push
({
img
:
value
.
img
,
imgAlt
:
_
.
compact
([
origin
.
brand_info
.
brand_name_en
,
origin
.
brand_info
.
brand_name_cn
,
imgAlt
:
_
.
compact
([
_
.
get
(
origin
,
'brand_info.brand_name_en'
),
_
.
get
(
origin
,
'brand_info.brand_name_cn'
),
(
_
.
get
(
origin
,
'gender'
,
'1'
)
===
'1'
?
'男'
:
'女'
),
origin
.
small_sort_name
,
origin
.
product_name
]).
join
(
'|'
)
});
...
...
Please
register
or
login
to post a comment