Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
www.fudou6.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liaili
www.fudou6.com
Commits
7e72117f
Commit
7e72117f
authored
Aug 11, 2016
by
superman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'express' of gitlab.yanky.cn:liaili/www.fudou6.com into express
parents
ddd8fbb3
4bef85d6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
29 deletions
+29
-29
products.js
public/javascripts/products.js
+3
-3
products.js.map
public/javascripts/products.js.map
+1
-1
project.js
public/javascripts/project.js
+2
-2
project.js.map
public/javascripts/project.js.map
+1
-1
utils.js
public/javascripts/utils.js
+21
-21
utils.js.map
public/javascripts/utils.js.map
+1
-1
No files found.
public/javascripts/products.js
View file @
7e72117f
...
...
@@ -7,7 +7,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
function
fetch
(
query
,
panel
)
{
var
data
=
_extends
({},
query
,
{
p
:
(
parseInt
(
query
.
p
,
10
)
||
1
)
-
1
});
request
(
'/api/1.0/prod/hList.json'
,
data
).
then
(
function
(
_ref
)
{
request
(
'/api/1.0/prod/hList.json'
,
data
).
done
(
function
(
_ref
)
{
var
hasNext
=
_ref
.
hasNext
;
var
items
=
_ref
.
items
;
...
...
@@ -27,13 +27,13 @@ function fetch(query, panel) {
$
(
'.pagination'
,
panel
).
html
(
pagination
.
join
(
''
));
history
.
replaceState
&&
history
.
replaceState
(
null
,
null
,
location
.
pathname
+
'?'
+
serialize
(
query
));
}
}).
catch
(
function
(
err
)
{
}).
fail
(
function
(
err
)
{
console
.
log
(
err
);
});
}
function
fetchCates
(
query
)
{
request
(
'/api/1.0/cate/cates.json'
).
then
(
function
(
_ref2
)
{
request
(
'/api/1.0/cate/cates.json'
).
done
(
function
(
_ref2
)
{
var
pCates
=
_ref2
.
pCates
;
var
cates
=
[];
...
...
public/javascripts/products.js.map
View file @
7e72117f
This diff is collapsed.
Click to expand it.
public/javascripts/project.js
View file @
7e72117f
...
...
@@ -64,9 +64,9 @@
request
(
'/api/1.0/proj/add.json'
,
{
mobile
:
mobile
,
description
:
description
},
'POST'
).
then
(
function
()
{
},
'POST'
).
done
(
function
()
{
$successDialog
.
fadeIn
(
300
);
}).
catch
(
function
()
{
}).
fail
(
function
()
{
alert
(
'提交失败, 请稍后再试!'
);
});
$introducerMobile
.
val
(
''
);
...
...
public/javascripts/project.js.map
View file @
7e72117f
This diff is collapsed.
Click to expand it.
public/javascripts/utils.js
View file @
7e72117f
...
...
@@ -11,16 +11,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
function
request
(
url
,
data
)
{
var
method
=
arguments
.
length
<=
2
||
arguments
[
2
]
===
undefined
?
'GET'
:
arguments
[
2
];
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
promise
=
$
.
Deferred
();
$
.
ajax
(
url
,
{
type
:
method
,
dataType
:
'json'
,
data
:
data
,
success
:
function
success
(
res
)
{
if
(
res
&&
res
.
status
==
1
)
{
resolve
(
res
.
result
);
promise
.
resolve
(
res
.
result
);
}
else
{
reject
({
promise
.
reject
({
code
:
res
&&
res
.
code
||
0
,
message
:
res
&&
res
.
msg
||
res
.
message
||
'系统错误,请稍后再试!'
});
...
...
@@ -28,13 +28,13 @@ function request(url, data) {
},
error
:
function
error
(
xhr
,
status
,
text
)
{
console
.
log
(
xhr
,
status
,
text
);
reject
({
promise
.
reject
({
code
:
xhr
&&
xhr
.
status
||
status
,
message
:
text
});
}
});
})
;
return
promise
;
}
function
formatMoney
()
{
...
...
public/javascripts/utils.js.map
View file @
7e72117f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment