Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
b225c178
Commit
b225c178
authored
Jun 11, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享文件加文件名
parent
782470a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
document.vue
src/pages/order/document.vue
+5
-17
No files found.
src/pages/order/document.vue
View file @
b225c178
...
@@ -164,17 +164,11 @@
...
@@ -164,17 +164,11 @@
id
:
this
.
vuex_user
.
id
,
id
:
this
.
vuex_user
.
id
,
url
:
item
.
url
url
:
item
.
url
});
});
let
block
=
(
filePath
)
=>
{
wx
.
shareFileMessage
({
filePath
:
filePath
,
success
()
{},
fail
:
console
.
error
,
})
}
let
filePath
=
this
.
fileList
[(
item
.
url
||
''
).
split
(
'/'
).
pop
()]
let
filePath
=
this
.
fileList
[(
item
.
url
||
''
).
split
(
'/'
).
pop
()]
if
(
filePath
)
{
// 有下载记录
if
(
filePath
)
{
// 有下载记录
wx
.
shareFileMessage
({
// 如果用checkFile检查文件是否存在后再分享,shareFileMess报错:shareFileMessage:fail can only be invoked by user TAP gesture.
wx
.
shareFileMessage
({
// 如果用checkFile检查文件是否存在后再分享,shareFileMess报错:shareFileMessage:fail can only be invoked by user TAP gesture.
filePath
:
filePath
,
filePath
:
filePath
,
fileName
:
item
.
name
,
success
()
{},
success
()
{},
fail
:
(
error
)
=>
{
fail
:
(
error
)
=>
{
console
.
log
(
error
)
console
.
log
(
error
)
...
@@ -182,6 +176,7 @@
...
@@ -182,6 +176,7 @@
this
.
downloadFile
(
item
.
url
,
(
result
)
=>
{
this
.
downloadFile
(
item
.
url
,
(
result
)
=>
{
wx
.
shareFileMessage
({
wx
.
shareFileMessage
({
filePath
:
result
.
tempFilePath
,
filePath
:
result
.
tempFilePath
,
fileName
:
item
.
name
,
success
()
{},
success
()
{},
fail
:
console
.
error
,
fail
:
console
.
error
,
})
})
...
@@ -193,6 +188,7 @@
...
@@ -193,6 +188,7 @@
this
.
downloadFile
(
item
.
url
,
(
res
)
=>
{
// 下载
this
.
downloadFile
(
item
.
url
,
(
res
)
=>
{
// 下载
wx
.
shareFileMessage
({
wx
.
shareFileMessage
({
filePath
:
res
.
tempFilePath
,
filePath
:
res
.
tempFilePath
,
fileName
:
item
.
name
,
success
()
{},
success
()
{},
fail
:
console
.
error
,
fail
:
console
.
error
,
})
})
...
@@ -260,14 +256,6 @@
...
@@ -260,14 +256,6 @@
});
});
}
}
},
},
// 分享文件
shareFile
(
filePath
)
{
wx
.
shareFileMessage
({
filePath
:
filePath
,
success
()
{},
fail
:
console
.
error
,
})
},
// 获取合作商或品牌列表
// 获取合作商或品牌列表
async
loadFileLabel
(
type
,
partnerCompanyId
)
{
async
loadFileLabel
(
type
,
partnerCompanyId
)
{
let
param
=
{
let
param
=
{
...
...
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