Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
hls-easy-ui
Commits
d66af184
Commit
d66af184
authored
Sep 03, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
popup
parent
f85c8bdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
89 deletions
+44
-89
hlsPopup.js
src/scripts/hlsPopup.js
+44
-89
No files found.
src/scripts/hlsPopup.js
View file @
d66af184
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
showLongTop
:
function
(
content
)
{
showLongTop
:
function
(
content
)
{
let
vm
=
this
let
vm
=
this
let
text
=
content
||
'操作失败'
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
text
:
text
,
type
:
'text'
,
type
:
'text'
,
...
@@ -67,11 +67,6 @@ export default {
...
@@ -67,11 +67,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'top'
,
position
:
'top'
,
})
})
}
else
{
window
.
plugins
.
toast
.
showLongTop
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
},
/**
/**
...
@@ -81,7 +76,7 @@ export default {
...
@@ -81,7 +76,7 @@ export default {
showLongCenter
:
function
(
content
)
{
showLongCenter
:
function
(
content
)
{
let
vm
=
this
let
vm
=
this
let
text
=
content
||
'操作失败'
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
text
:
text
,
type
:
'text'
,
type
:
'text'
,
...
@@ -89,11 +84,6 @@ export default {
...
@@ -89,11 +84,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'middle'
,
position
:
'middle'
,
})
})
}
else
{
window
.
plugins
.
toast
.
showLongCenter
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
},
/**
/**
* 长时间中部提示toast
* 长时间中部提示toast
...
@@ -102,7 +92,7 @@ export default {
...
@@ -102,7 +92,7 @@ export default {
showLongBottom
:
function
(
content
)
{
showLongBottom
:
function
(
content
)
{
let
vm
=
this
let
vm
=
this
let
text
=
content
||
'操作失败'
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
text
:
text
,
time
:
vm
.
SHOW_TIMES
,
time
:
vm
.
SHOW_TIMES
,
...
@@ -110,11 +100,6 @@ export default {
...
@@ -110,11 +100,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'bottom'
,
position
:
'bottom'
,
})
})
}
else
{
window
.
plugins
.
toast
.
showLongBottom
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
},
/**
/**
* 成功提示框
* 成功提示框
...
@@ -151,7 +136,6 @@ export default {
...
@@ -151,7 +136,6 @@ export default {
* @param confirmObject.onConfirm 确定函数
* @param confirmObject.onConfirm 确定函数
*/
*/
showConfirm
:
function
(
confirmObject
)
{
showConfirm
:
function
(
confirmObject
)
{
if
(
!
process
.
env
.
isMobilePlatform
)
{
let
def
=
{
let
def
=
{
title
:
confirmObject
.
title
||
'提示'
,
title
:
confirmObject
.
title
||
'提示'
,
content
:
confirmObject
.
content
||
''
,
content
:
confirmObject
.
content
||
''
,
...
@@ -165,21 +149,6 @@ export default {
...
@@ -165,21 +149,6 @@ export default {
},
},
}
}
Vue
.
$vux
.
confirm
.
show
(
def
)
Vue
.
$vux
.
confirm
.
show
(
def
)
}
else
{
let
message
=
confirmObject
.
content
||
''
let
onConfirm
=
function
(
index
)
{
confirmObject
.
onConfirm
(
index
)
}
let
title
=
confirmObject
.
title
navigator
.
notification
.
confirm
(
message
,
// message
function
(
index
)
{
onConfirm
(
index
-
1
)
},
title
,
// title
[
'取消'
,
'确定'
]
// buttonLabels
)
}
},
},
/*
/*
* 弹出确认的窗口
* 弹出确认的窗口
...
@@ -189,7 +158,6 @@ export default {
...
@@ -189,7 +158,6 @@ export default {
*
*
*/
*/
showPopup
:
function
(
confirmObject
)
{
showPopup
:
function
(
confirmObject
)
{
if
(
!
process
.
env
.
isMobilePlatform
)
{
let
def
=
{
let
def
=
{
title
:
confirmObject
.
title
||
'提示'
,
title
:
confirmObject
.
title
||
'提示'
,
content
:
confirmObject
.
content
||
''
,
content
:
confirmObject
.
content
||
''
,
...
@@ -200,19 +168,6 @@ export default {
...
@@ -200,19 +168,6 @@ export default {
},
},
}
}
Vue
.
$vux
.
confirm
.
show
(
def
)
Vue
.
$vux
.
confirm
.
show
(
def
)
}
else
{
var
alertDismissed
=
function
(
index
)
{
confirmObject
.
onConfirm
()
}
let
title
=
confirmObject
.
title
||
'提示'
var
message
=
confirmObject
.
content
||
''
navigator
.
notification
.
alert
(
message
,
// message
alertDismissed
,
// callback
title
||
'提示'
,
// title
'确定'
// buttonName
)
}
},
},
/**
/**
* @param actionObject.titleText 弹出框的标题可空
* @param actionObject.titleText 弹出框的标题可空
...
...
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