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
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
971dd9940ae1e8416896f6961dedfdeeb7aa1724
1 parent
fda8275b
update for good url
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
apps/me/models/returns.js
utils/product-process.js
apps/me/models/returns.js
View file @
971dd99
...
...
@@ -564,9 +564,12 @@ const getChangeGoodsList = (orderCode, uid) => {
if
(
data
.
goodsList
)
{
data
.
goodsList
.
forEach
(
good
=>
{
let
cnAlphabet
=
good
.
cnAlphabet
?
good
.
cnAlphabet
:
''
;
good
.
showCheckbox
=
true
;
good
.
hidePrice
=
true
;
good
.
buyNumber
=
1
;
good
.
goodUrl
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
good
.
productId
}
_$
{
good
.
goodsId
}
/${cnAlphabet}.html`
)
; //eslint-disable-lin
e
});
}
}
...
...
@@ -586,7 +589,7 @@ const getChangeGoodsList = (orderCode, uid) => {
*/
const
_setExchangeDetailData
=
(
data
)
=>
{
data
=
camelCase
(
data
);
console
.
log
(
data
);
let
list
=
{};
switch
(
data
.
status
)
{
...
...
utils/product-process.js
View file @
971dd99
...
...
@@ -329,10 +329,7 @@ exports.processProduct = (productData, options) => {
}
result
.
is_soon_sold_out
=
(
productData
.
is_soon_sold_out
===
'Y'
);
result
.
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
productData
.
product_id
}
_$
{
productData
.
goods_list
[
0
].
goods_id
}
/${productData.cn_alphabet}.htm
l
`
,
null
,
'list'
);
result
.
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
productData
.
product_id
}
_$
{
productData
.
goods_list
[
0
].
goods_id
}
/${productData.cn_alphabet}.html`, null, 'list'
)
; //eslint-disable-lin
e
if
(
options
.
showTags
)
{
let
tags
=
{};
...
...
Please
register
or
login
to post a comment