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
4bef85d6
Commit
4bef85d6
authored
Aug 11, 2016
by
liaili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复IE8 BUG
parent
195ea91a
Expand all
Hide 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 @
4bef85d6
...
@@ -7,7 +7,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
...
@@ -7,7 +7,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
function
fetch
(
query
,
panel
)
{
function
fetch
(
query
,
panel
)
{
var
data
=
_extends
({},
query
,
{
p
:
(
parseInt
(
query
.
p
,
10
)
||
1
)
-
1
});
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
hasNext
=
_ref
.
hasNext
;
var
items
=
_ref
.
items
;
var
items
=
_ref
.
items
;
...
@@ -27,13 +27,13 @@ function fetch(query, panel) {
...
@@ -27,13 +27,13 @@ function fetch(query, panel) {
$
(
'.pagination'
,
panel
).
html
(
pagination
.
join
(
''
));
$
(
'.pagination'
,
panel
).
html
(
pagination
.
join
(
''
));
history
.
replaceState
&&
history
.
replaceState
(
null
,
null
,
location
.
pathname
+
'?'
+
serialize
(
query
));
history
.
replaceState
&&
history
.
replaceState
(
null
,
null
,
location
.
pathname
+
'?'
+
serialize
(
query
));
}
}
}).
catch
(
function
(
err
)
{
}).
fail
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
}
function
fetchCates
(
query
)
{
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
pCates
=
_ref2
.
pCates
;
var
cates
=
[];
var
cates
=
[];
...
...
public/javascripts/products.js.map
View file @
4bef85d6
This diff is collapsed.
Click to expand it.
public/javascripts/project.js
View file @
4bef85d6
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
request
(
'/api/1.0/proj/add.json'
,
{
request
(
'/api/1.0/proj/add.json'
,
{
mobile
:
mobile
,
mobile
:
mobile
,
description
:
description
description
:
description
},
'POST'
).
then
(
function
()
{
},
'POST'
).
done
(
function
()
{
$successDialog
.
fadeIn
(
300
);
$successDialog
.
fadeIn
(
300
);
}).
catch
(
function
()
{
}).
fail
(
function
()
{
alert
(
'提交失败, 请稍后再试!'
);
alert
(
'提交失败, 请稍后再试!'
);
});
});
$introducerMobile
.
val
(
''
);
$introducerMobile
.
val
(
''
);
...
...
public/javascripts/project.js.map
View file @
4bef85d6
This diff is collapsed.
Click to expand it.
public/javascripts/utils.js
View file @
4bef85d6
...
@@ -11,30 +11,30 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
...
@@ -11,30 +11,30 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
function
request
(
url
,
data
)
{
function
request
(
url
,
data
)
{
var
method
=
arguments
.
length
<=
2
||
arguments
[
2
]
===
undefined
?
'GET'
:
arguments
[
2
];
var
method
=
arguments
.
length
<=
2
||
arguments
[
2
]
===
undefined
?
'GET'
:
arguments
[
2
];
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
promise
=
$
.
Deferred
();
$
.
ajax
(
url
,
{
$
.
ajax
(
url
,
{
type
:
method
,
type
:
method
,
dataType
:
'json'
,
dataType
:
'json'
,
data
:
data
,
data
:
data
,
success
:
function
success
(
res
)
{
success
:
function
success
(
res
)
{
if
(
res
&&
res
.
status
==
1
)
{
if
(
res
&&
res
.
status
==
1
)
{
resolve
(
res
.
result
);
promise
.
resolve
(
res
.
result
);
}
else
{
}
else
{
reject
({
promise
.
reject
({
code
:
res
&&
res
.
code
||
0
,
code
:
res
&&
res
.
code
||
0
,
message
:
res
&&
res
.
msg
||
res
.
message
||
'系统错误,请稍后再试!'
message
:
res
&&
res
.
msg
||
res
.
message
||
'系统错误,请稍后再试!'
});
}
},
error
:
function
error
(
xhr
,
status
,
text
)
{
console
.
log
(
xhr
,
status
,
text
);
reject
({
code
:
xhr
&&
xhr
.
status
||
status
,
message
:
text
});
});
}
}
});
},
error
:
function
error
(
xhr
,
status
,
text
)
{
console
.
log
(
xhr
,
status
,
text
);
promise
.
reject
({
code
:
xhr
&&
xhr
.
status
||
status
,
message
:
text
});
}
});
});
return
promise
;
}
}
function
formatMoney
()
{
function
formatMoney
()
{
...
...
public/javascripts/utils.js.map
View file @
4bef85d6
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