Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
8ac6846c
Commit
8ac6846c
authored
Jul 25, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2f9fa999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
QRCode.vue
pages/teamLeader/components/QRCode.vue
+14
-12
No files found.
pages/teamLeader/components/QRCode.vue
View file @
8ac6846c
...
@@ -215,18 +215,20 @@
...
@@ -215,18 +215,20 @@
},
},
saveFileToPhone
(
tempFilePath
)
{
saveFileToPhone
(
tempFilePath
)
{
const
platform
=
uni
.
getSystemInfoSync
().
platform
;
const
platform
=
uni
.
getSystemInfoSync
().
platform
;
// 微信小程序:使用 wx.saveImageToPhotosAlbum
// #ifdef MP-WEIXIN
wx
.
saveImageToPhotosAlbum
({
wx
.
saveImageToPhotosAlbum
({
filePath
:
tempFilePath
,
filePath
:
tempFilePath
,
success
:
(
saveRes
)
=>
{
success
:
(
saveRes
)
=>
{
uni
.
showToast
({
title
:
'保存成功'
});
uni
.
showToast
({
title
:
'保存成功'
});
console
.
log
(
saveRes
,
'----文件地址'
);
console
.
log
(
saveRes
,
'----文件地址'
);
},
},
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
uni
.
showToast
({
title
:
'保存失败'
,
icon
:
'none'
});
uni
.
showToast
({
title
:
'保存失败'
,
icon
:
'none'
});
console
.
error
(
'保存错误'
,
err
);
console
.
error
(
'保存错误'
,
err
);
}
}
});
});
// #endif
// uni.saveFile({
// uni.saveFile({
// tempFilePath: tempFilePath,
// tempFilePath: tempFilePath,
// success: (saveRes) => {
// success: (saveRes) => {
...
...
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