Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
91499bc0
Commit
91499bc0
authored
May 19, 2023
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决ios端下载文件的问题
parent
da00d2a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+1
-13
No files found.
src/pages/contractInquire/repay-detail.vue
View file @
91499bc0
...
...
@@ -157,19 +157,7 @@ export default {
if
(
vum
.
Platform
.
isAndroid
())
{
// android终端
window
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes'
)
}
else
if
(
vum
.
Platform
.
isIOS
()
||
vum
.
Platform
.
isIPad
())
{
// ios终端
// window.location.href = i.fileUrl;
// 模拟 输入框
var
cInput
=
document
.
createElement
(
'input'
)
cInput
.
value
=
i
.
fileUrl
document
.
body
.
appendChild
(
cInput
)
cInput
.
select
()
// 选取文本框内容
// 执行浏览器复制命令
// 复制命令会将当前选中的内容复制到剪切板中(这里就是创建的input标签)
// Input要在正常的编辑状态下原生复制方法才会生效
document
.
execCommand
(
'copy'
)
hlsPopup
.
showLongCenter
(
'复制成功,请在浏览器中打开'
)
// 复制成功后再将构造的标签 移除
document
.
body
.
removeChild
(
cInput
)
cordova
.
InAppBrowser
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes,hideurlbar=no,toolbarposition=top'
)
}
else
{
window
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes'
)
}
...
...
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