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
0f115d95
Commit
0f115d95
authored
Apr 01, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存本地和上传异步执行
parent
495e2482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
preview.vue
take-order/pages/photo/preview.vue
+5
-5
No files found.
take-order/pages/photo/preview.vue
View file @
0f115d95
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
// 获取规格Id
// 获取规格Id
this
.
standardId
=
app
.
globalData
.
photo
.
currentItem
.
_id
this
.
standardId
=
app
.
globalData
.
photo
.
currentItem
.
_id
}
}
getApp
().
trackPage
(
'照片预览页'
)
getApp
().
trackPage
(
'照片预览页'
)
const
globalTempPath
=
getApp
().
globalData
.
photo
.
tempPath
const
globalTempPath
=
getApp
().
globalData
.
photo
.
tempPath
if
(
globalTempPath
&&
globalTempPath
.
mixWater
){
if
(
globalTempPath
&&
globalTempPath
.
mixWater
){
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
if
(
e
.
standardId
)
{
if
(
e
.
standardId
)
{
this
.
standardId
=
e
.
standardId
this
.
standardId
=
e
.
standardId
}
}
this
.
token
=
getApp
().
globalData
.
token
this
.
token
=
getApp
().
globalData
.
token
},
},
methods
:
{
methods
:
{
...
@@ -132,11 +132,12 @@
...
@@ -132,11 +132,12 @@
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'图片保存中……'
title
:
'图片保存中……'
})
})
self
.
saveTempToLocal
()
self
.
confirmUpload
(
true
)
self
.
confirmUpload
(
true
)
},
},
submitFile
()
{
submitFile
()
{
let
self
=
this
let
self
=
this
if
(
self
.
keys
.
length
)
{
if
(
self
.
keys
.
length
)
{
for
(
let
s
of
self
.
keys
)
{
for
(
let
s
of
self
.
keys
)
{
self
.
$u
.
cloudApi
.
saveImage
({
self
.
$u
.
cloudApi
.
saveImage
({
...
@@ -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.
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
.pic
{
.pic
{
flex
:
1
;
flex
:
1
;
width
:
100%
;
width
:
100%
;
/* height:auto */
/* height:auto */
/* height: 760rpx; */
/* height: 760rpx; */
}
}
...
...
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