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 @@
init
:
function
()
{
this
.
mounted
(
this
).
handleBind
(
this
);
},
getData
:
function
(
url
,
type
,
param
,
callback
,
isload
,
isheader
)
{
getData
:
function
(
url
,
type
,
param
,
callback
,
isload
,
isheader
)
{
//是否启动loadin效果
if
(
isload
==
undefined
)
{
if
(
isload
==
undefined
)
{
var
index
=
layer
.
load
(
1
,
{
offset
:
[
'50%'
,
"50%"
],
shade
:
false
...
...
@@ -24,18 +24,18 @@
dataTypeXpx
=
"jsonp"
;
}
// if(isheader){
$
.
ajaxSetup
({
headers
:
{
Authorization
:
'Bearer '
+
Util
.
getCookie
(
'token'
)
},
});
$
.
ajaxSetup
({
headers
:
{
Authorization
:
'Bearer '
+
Util
.
getCookie
(
'token'
)
},
});
// };
$
.
ajax
({
type
:
type
,
url
:
url
,
data
:
params
,
dataType
:
'json'
,
xhrFields
:
{
withCredentials
:
true
},
...
...
@@ -125,11 +125,11 @@
* @param name
*/
delCookie
:
function
(
name
,
domain
)
{
domain
=
domain
?
";domain="
+
domain
:
""
;
var
exp
=
new
Date
();
exp
.
setTime
(
exp
.
getTime
()
-
1
);
var
cval
=
this
.
getCookie
(
name
);
if
(
cval
!=
null
)
document
.
cookie
=
name
+
"="
+
cval
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
+
domain
;
exp
.
setTime
(
exp
.
getTime
()
-
10000
);
document
.
cookie
=
name
+
"="
+
''
+
";expires="
+
exp
.
toGMTString
()
+
";path=/"
+
domain
;
return
true
;
},
/**
* 获取参数
...
...
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