Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
7b457c5e
Commit
7b457c5e
authored
May 11, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清空图片
parent
c8f11bba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
list.vue
take-order/pages/photo/list.vue
+23
-7
No files found.
take-order/pages/photo/list.vue
View file @
7b457c5e
...
@@ -235,12 +235,28 @@
...
@@ -235,12 +235,28 @@
// 清除图片
// 清除图片
handleClickSure
:
function
()
{
handleClickSure
:
function
()
{
this
.
$u
.
cloudApi
.
cleanImage
({
// this.$u.cloudApi.cleanImage({
'token'
:
getApp
().
globalData
.
token
,
// 'token': getApp().globalData.token,
}).
then
(
res
=>
{
// }).then(res => {
this
.
isPopShow
=
false
// this.isPopShow = false
if
(
res
&&
res
.
result
)
{
// if (res && res.result) {
this
.
getListData
()
// this.getListData()
// }
// })
const
self
=
this
uni
.
getSavedFileList
({
success
(
e
)
{
const
{
fileList
}
=
e
// 清除本地照片
fileList
.
forEach
(
v
=>
{
uni
.
removeSavedFile
({
filePath
:
v
.
filePath
})
})
//清除缓存,重新获取数据
cache
.
removeCache
(
self
.
systemId
)
self
.
isPopShow
=
false
self
.
getListData
()
}
}
})
})
}
}
...
...
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