Commit 0f115d95 authored by 李超鹏's avatar 李超鹏

保存本地和上传异步执行

parent 495e2482
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
uni.showLoading({ uni.showLoading({
title:'图片保存中……' title:'图片保存中……'
}) })
self.saveTempToLocal()
self.confirmUpload(true) self.confirmUpload(true)
}, },
submitFile() { submitFile() {
...@@ -147,7 +148,6 @@ ...@@ -147,7 +148,6 @@
console.log(res, "云服务保存图片"); console.log(res, "云服务保存图片");
if(res.result) { if(res.result) {
// TODO 参数是否要来回传递 // TODO 参数是否要来回传递
self.saveTempToLocal()
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
photo.currentItemLength++ photo.currentItemLength++
// photo.currentItem. // photo.currentItem.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment