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
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
ce7041f9278b39e2a5ede5ac8d64dc71f918c18a
1 parent
b1c41944
local css
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
apps/3party/controllers/question.js
apps/3party/models/question.js
apps/3party/controllers/question.js
View file @
ce7041f
...
...
@@ -13,7 +13,8 @@ exports.list = (req, res, next) => {
navTitle
:
'调研中心'
}),
list
:
result
,
isApp
:
req
.
yoho
.
isApp
isApp
:
req
.
yoho
.
isApp
,
localCss
:
true
});
}).
catch
(
next
);
};
...
...
@@ -53,7 +54,7 @@ exports.detail = (req, res, next) => {
let
id
=
parseInt
(
`
0
$
{
req
.
params
.
id
}
`
,
10
);
req
.
ctx
(
questionModel
).
getQuestionDetail
(
id
,
req
.
user
.
uid
).
then
(
result
=>
{
if
(
result
)
{
if
(
result
&&
req
.
yoho
.
isApp
)
{
result
.
uid
=
req
.
user
.
uid
;
}
...
...
@@ -65,7 +66,8 @@ exports.detail = (req, res, next) => {
navTitle
:
'YOHOBUY!潮流大调查'
}),
detail
:
result
,
isApp
:
req
.
yoho
.
isApp
isApp
:
req
.
yoho
.
isApp
,
localCss
:
true
});
}).
catch
(
next
);
};
...
...
apps/3party/models/question.js
View file @
ce7041f
...
...
@@ -68,7 +68,12 @@ module.exports = class extends global.yoho.BaseModel {
return
this
.
post
({
url
:
'/activity/question/submitQuestions'
,
data
:
info
,
api
:
global
.
yoho
.
ServiceAPI
api
:
global
.
yoho
.
ServiceAPI
,
param
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
}
});
}
};
...
...
Please
register
or
login
to post a comment