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
zhangxiaoru
9 years ago
Commit
c3404098436d52ea81b194032403645b0c6dc553
1 parent
c2865078
exchange
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
apps/editorial/models/editorial.js
apps/editorial/views/action/detail.hbs
apps/me/models/returns.js
package.json
public/js/me/exchange.page.js
apps/editorial/models/editorial.js
View file @
c340409
...
...
@@ -496,7 +496,7 @@ const _getArticleNext = (id, appType) => {
id
:
id
,
app_type
:
appType
}).
then
((
result
)
=>
{
//
console.log(result)
console
.
log
(
result
)
if
(
result
&&
result
.
code
===
200
)
{
let
nextArticle
=
{};
...
...
apps/editorial/views/action/detail.hbs
View file @
c340409
...
...
@@ -37,7 +37,7 @@
{{#
text
}}
<div
class=
"article-text block"
>
{{#
data
}}
{{{
text
}}}
<p>
{{{
text
}}}
</p>
{{/
data
}}
</div>
{{/
text
}}
...
...
apps/me/models/returns.js
View file @
c340409
...
...
@@ -156,6 +156,7 @@ const _calcStatusRate = (num, total) => {
*/
const
submitChange
=
(
data
,
uid
)
=>
{
return
returnsAPI
.
changeSubmitAsync
(
data
,
uid
).
then
(
result
=>
{
console
.
log
(
result
)
return
result
;
});
};
...
...
package.json
View file @
c340409
...
...
@@ -61,7 +61,7 @@
"uuid"
:
"^2.0.2"
,
"winston"
:
"^2.2.0"
,
"winston-daily-rotate-file"
:
"^1.1.4"
,
"yoho-node-lib"
:
"0.0.3
8
"
"yoho-node-lib"
:
"0.0.3
9
"
},
"devDependencies"
:
{
"autoprefixer"
:
"^6.3.6"
,
...
...
public/js/me/exchange.page.js
View file @
c340409
...
...
@@ -229,7 +229,7 @@ function submitChange(d) {
data
:
d
}).
done
(
function
(
result
)
{
if
(
result
.
code
===
200
)
{
location
.
href
=
'
/me/return'
;
location
.
href
=
'
http://www.yohoblk.com/me/return/exchange/detail/?orderCode='
+
result
.
data
.
apply_id
;
}
else
{
new
_alert
(
'<h1>'
+
result
.
message
+
'</h1>'
).
show
();
}
...
...
Please
register
or
login
to post a comment