Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
2659d41d201b3f872ce6fb2d9288cb01aa8a15ac
1 parent
29c64602
基础框架
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
apps/product/controllers/detail.js
apps/product/controllers/sale.js
apps/product/models/sale.js
apps/product/controllers/detail.js
View file @
2659d41
...
...
@@ -19,7 +19,7 @@ exports.index = (req, res) => {
id
:
req
.
params
.
id
,
uid
:
uid
,
vipLevel
:
vipLevel
,
ua
:
req
.
get
(
'user-agent'
)
||
''
ua
:
req
.
get
(
'user-agent'
)
||
''
}).
then
((
result
)
=>
{
res
.
render
(
'detail'
,
{
resultShow
:
JSON
.
stringify
(
result
,
null
,
4
),
...
...
apps/product/controllers/sale.js
View file @
2659d41
...
...
@@ -14,7 +14,6 @@ const sale = require(`${mRoot}/sale`);
const
headerModel
=
require
(
'../../../doraemon/models/header'
);
exports
.
index
=
(
req
,
res
)
=>
{
var
response
;
headerModel
.
requestHeaderData
()
.
then
(
response
=>
{
...
...
apps/product/models/sale.js
View file @
2659d41
...
...
@@ -2,10 +2,11 @@
* @Author: Targaryen
* @Date: 2016-05-19 10:20:08
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-19 1
0:27
:29
* @Last Modified time: 2016-05-19 1
1:02
:29
*/
'use strict'
;
const
library
=
'../../../library'
;
const
API
=
require
(
`
$
{
library
}
/api`
)
.API
;
const
sign
=
require
(
`
$
{
library
}
/sign`
)
;
const
api
=
new
API
();
...
...
@@ -16,6 +17,7 @@ exports.getSaleDate = () => {
sort
:
2
,
plateform
:
2
})).
then
(
result
=>
{
return
result
;
return
result
;
});
}
}
;
...
...
Please
register
or
login
to post a comment