Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c9146632
authored
Jul 02, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
7f7c45f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
dist/js/global/global.min.js
dist/js/global/global.min.js
View file @
c9146632
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
init
:
function
()
{
init
:
function
()
{
this
.
mounted
(
this
).
handleBind
(
this
);
this
.
mounted
(
this
).
handleBind
(
this
);
},
},
getData
:
function
(
url
,
type
,
param
,
callback
,
isload
,
isheader
)
{
getData
:
function
(
url
,
type
,
param
,
callback
,
isload
,
isheader
)
{
//是否启动loadin效果
//是否启动loadin效果
if
(
isload
==
undefined
)
{
if
(
isload
==
undefined
)
{
var
index
=
layer
.
load
(
1
,
{
var
index
=
layer
.
load
(
1
,
{
offset
:
[
'50%'
,
"50%"
],
offset
:
[
'50%'
,
"50%"
],
shade
:
false
shade
:
false
...
@@ -24,18 +24,18 @@
...
@@ -24,18 +24,18 @@
dataTypeXpx
=
"jsonp"
;
dataTypeXpx
=
"jsonp"
;
}
}
// if(isheader){
// if(isheader){
$
.
ajaxSetup
({
$
.
ajaxSetup
({
headers
:
{
headers
:
{
Authorization
:
'Bearer '
+
Util
.
getCookie
(
'token'
)
Authorization
:
'Bearer '
+
Util
.
getCookie
(
'token'
)
},
},
});
});
// };
// };
$
.
ajax
({
$
.
ajax
({
type
:
type
,
type
:
type
,
url
:
url
,
url
:
url
,
data
:
params
,
data
:
params
,
dataType
:
'json'
,
dataType
:
'json'
,
xhrFields
:
{
xhrFields
:
{
withCredentials
:
true
withCredentials
:
true
},
},
...
@@ -125,11 +125,11 @@
...
@@ -125,11 +125,11 @@
* @param name
* @param name
*/
*/
delCookie
:
function
(
name
,
domain
)
{
delCookie
:
function
(
name
,
domain
)
{
domain
=
domain
?
";domain="
+
domain
:
""
;
var
exp
=
new
Date
();
var
exp
=
new
Date
();
exp
.
setTime
(
exp
.
getTime
()
-
1
);
exp
.
setTime
(
exp
.
getTime
()
-
10000
);
var
cval
=
this
.
getCookie
(
name
);
document
.
cookie
=
name
+
"="
+
''
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
+
domain
;
if
(
cval
!=
null
)
return
true
;
document
.
cookie
=
name
+
"="
+
cval
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
+
domain
;
},
},
/**
/**
* 获取参数
* 获取参数
...
...
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