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
ac2fe61f
Commit
ac2fe61f
authored
May 11, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
78e9eb81
13e19d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
App.vue
take-order/App.vue
+4
-4
list.vue
take-order/pages/photo/list.vue
+6
-8
No files found.
take-order/App.vue
View file @
ac2fe61f
...
...
@@ -173,19 +173,19 @@ export default {
},
//检查更新
checkUpdate
:
function
()
{
const
updateManager
=
wx
.
getUpdateManager
()
const
updateManager
=
uni
.
getUpdateManager
()
updateManager
.
onCheckForUpdate
(
function
(
res
)
{
// 请求完新版本信息的回调
console
.
log
(
res
.
hasUpdate
)
})
updateManager
.
onUpdateReady
(
function
()
{
wx
.
showModal
({
uni
.
showModal
({
title
:
'更新提示'
,
content
:
'新版本已经准备好,是否重启应用?'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
uni
.
clearStorageSync
()
// 清空本地缓存
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager
.
applyUpdate
()
}
...
...
take-order/pages/photo/list.vue
View file @
ac2fe61f
...
...
@@ -235,14 +235,12 @@
// 清除图片
handleClickSure
:
function
()
{
// this.$u.cloudApi.cleanImage({
// 'token': getApp().globalData.token,
// }).then(res => {
// this.isPopShow = false
// if (res && res.result) {
// this.getListData()
// }
// })
this
.
$u
.
cloudApi
.
cleanImage
({
'token'
:
getApp
().
globalData
.
token
,
}).
then
(
res
=>
{
this
.
isPopShow
=
false
})
const
self
=
this
const
photo
=
getApp
().
globalData
.
photo
const
data
=
cache
.
getCache
(
self
.
systemId
)
...
...
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