Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-webapp-cli
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
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
heasy
hls-webapp-cli
Commits
00e1edd5
Commit
00e1edd5
authored
Jul 12, 2019
by
Nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web
parent
838a858e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
340 deletions
+23
-340
home.vue
template/src/pages/home.vue
+3
-6
hlsPopup.js
template/src/scripts/hlsPopup.js
+0
-48
hlsUtil.js
template/src/scripts/hlsUtil.js
+20
-286
No files found.
template/src/pages/home.vue
View file @
00e1edd5
...
...
@@ -15,22 +15,19 @@
<img
src=
"@/assets/image/icon.png"
>
</div>
<h3>
Welcome to Your Vue.js App
</h3>
<h-file
:file-list=
"fileList"
v-model=
"fileList"
/>
</h-content>
</h-view>
</
template
>
<
script
>
import
hmapLogin
from
'@/scripts/login'
export
default
{
data
()
{
return
{
fileList
:
[],
}
},
activated
:
function
()
{
// 海马汇桥接获取个人信息
hmapLogin
(
'local'
).
then
(
res
=>
{
})
},
updated
:
function
()
{
...
...
template/src/scripts/hlsPopup.js
View file @
00e1edd5
...
...
@@ -60,7 +60,6 @@ export default {
showLongTop
:
function
(
content
)
{
let
vm
=
this
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
type
:
'text'
,
...
...
@@ -68,11 +67,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'top'
,
})
}
else
{
window
.
plugins
.
toast
.
showLongTop
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
/**
...
...
@@ -82,7 +76,6 @@ export default {
showLongCenter
:
function
(
content
)
{
let
vm
=
this
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
type
:
'text'
,
...
...
@@ -90,11 +83,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'middle'
,
})
}
else
{
window
.
plugins
.
toast
.
showLongCenter
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
/**
* 长时间中部提示toast
...
...
@@ -103,7 +91,6 @@ export default {
showLongBottom
:
function
(
content
)
{
let
vm
=
this
let
text
=
content
||
'操作失败'
if
(
!
process
.
env
.
isMobilePlatform
)
{
Vue
.
$vux
.
toast
.
show
({
text
:
text
,
time
:
vm
.
SHOW_TIMES
,
...
...
@@ -111,11 +98,6 @@ export default {
isShowMask
:
vm
.
IS_SHOW_MASK
,
position
:
'bottom'
,
})
}
else
{
window
.
plugins
.
toast
.
showLongBottom
(
content
,
function
(
success
)
{
},
function
(
error
)
{
// eslint-disable-line
})
}
},
/**
* 成功提示框
...
...
@@ -152,7 +134,6 @@ export default {
* @param confirmObject.onConfirm 确定函数
*/
showConfirm
:
function
(
confirmObject
)
{
if
(
!
process
.
env
.
isMobilePlatform
)
{
let
def
=
{
title
:
confirmObject
.
title
||
'提示'
,
content
:
confirmObject
.
content
||
''
,
...
...
@@ -166,21 +147,6 @@ export default {
},
}
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
)
}
},
/*
* 弹出确认的窗口
...
...
@@ -190,7 +156,6 @@ export default {
*
*/
showPopup
:
function
(
confirmObject
)
{
if
(
!
process
.
env
.
isMobilePlatform
)
{
let
def
=
{
title
:
confirmObject
.
title
||
'提示'
,
content
:
confirmObject
.
content
||
''
,
...
...
@@ -201,19 +166,6 @@ export default {
},
}
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 弹出框的标题可空
...
...
template/src/scripts/hlsUtil.js
View file @
00e1edd5
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