Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hbuilderApp_function
Project
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王锐
hbuilderApp_function
Commits
6b0321f0
You need to sign in or sign up before continuing.
Commit
6b0321f0
authored
Apr 24, 2019
by
王锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
success 回调
parent
cbb9e6fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
index.html
webapp/index.html
+19
-6
methods.js
webapp/js/methods.js
+1
-1
No files found.
webapp/index.html
View file @
6b0321f0
...
@@ -196,15 +196,17 @@
...
@@ -196,15 +196,17 @@
$
(
"#filedownload"
).
on
(
"click"
,
function
()
{
$
(
"#filedownload"
).
on
(
"click"
,
function
()
{
var
arr
=
[
"http://img-cdn-qiniu.dcloud.net.cn/static/images/activity/plugin-side.png"
,
var
arr
=
[
"http://k5.jst-gov.com/Storages/Reports/Pdf/71230dcf6f8548f9a0101be4e3340a1f/JST-DW201900049AT.pdf"
]
"https://www.baidu.com/img/bd_logo1.png"
]
//http://img-cdn-qiniu.dcloud.net.cn/static/images/activity/plugin-side.png
//http://img-cdn-qiniu.dcloud.net.cn/static/images/activity/plugin-side.png
// var downUrl = "https://www.baidu.com/img/bd_logo1.png"
// var downUrl = "https://www.baidu.com/img/bd_logo1.png"
var
savePath
=
"
image
/"
var
savePath
=
"
pdf
/"
function
success
(
res
)
{
function
success
(
res
)
{
alert
(
res
)
// alert(res)
console
.
log
(
1
)
plus
.
runtime
.
openFile
(
res
,
{},
function
(
e
)
{
alert
(
'打开失败'
)
})
}
}
function
error
(
res
)
{
function
error
(
res
)
{
...
@@ -213,6 +215,9 @@
...
@@ -213,6 +215,9 @@
function
presence
(
res
)
{
function
presence
(
res
)
{
alert
(
res
)
alert
(
res
)
plus
.
runtime
.
openFile
(
res
,
{},
function
(
e
)
{
alert
(
'打开失败'
)
})
}
}
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
...
@@ -222,7 +227,12 @@
...
@@ -222,7 +227,12 @@
$
(
"#uuid"
).
on
(
"click"
,
function
()
{
$
(
"#uuid"
).
on
(
"click"
,
function
()
{
getUuid
(
function
success
(
res
)
{
getUuid
(
function
success
(
res
)
{
alert
(
res
)
// alert(res)
console
.
log
(
2
)
alert
(
1
)
plus
.
runtime
.
openFile
(
res
,
{},
function
(
e
)
{
alert
(
'打开失败'
)
})
})
})
})
})
$
(
"#upload"
).
on
(
"click"
,
function
()
{
$
(
"#upload"
).
on
(
"click"
,
function
()
{
...
@@ -274,4 +284,7 @@
...
@@ -274,4 +284,7 @@
plus
.
nativeUI
.
showWaiting
(
'指纹识别中...'
);
plus
.
nativeUI
.
showWaiting
(
'指纹识别中...'
);
}
}
}
}
</script>
</script>
webapp/js/methods.js
View file @
6b0321f0
...
@@ -188,7 +188,7 @@ function readerFile(path, name, success, error) {
...
@@ -188,7 +188,7 @@ function readerFile(path, name, success, error) {
setUrlFromLocal
(
d
.
filename
,
callback
)
setUrlFromLocal
(
d
.
filename
,
callback
)
function
callback
(
res
)
{
function
callback
(
res
)
{
alert
(
res
)
success
(
res
)
}
}
}
else
{
}
else
{
//下载失败,需删除 本地临时文件,否则下次进来时会检查到文件已存在
//下载失败,需删除 本地临时文件,否则下次进来时会检查到文件已存在
...
...
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