Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
2490b41f
Commit
2490b41f
authored
May 20, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常签到异步处理图片
parent
c3a4cfce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
detail.vue
src/pages/order/detail.vue
+7
-3
No files found.
src/pages/order/detail.vue
View file @
2490b41f
...
...
@@ -180,7 +180,7 @@
</view>
</view>
</view>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
:num=
"1"
></take-photo>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
:
upload=
"false"
:
num=
"1"
></take-photo>
<PopView
title=
"查看交互规范"
message=
"为完善交付质量,请查看对应的交付规范"
:visible
.
sync=
"visibale"
@
click=
"handleClick"
/>
</
template
>
</view>
...
...
@@ -190,6 +190,7 @@
import
appointTime
from
'@/components/appoint/appoint-time.vue'
import
takePhoto
from
'@/components/take/index.vue'
import
PopView
from
"@/components/popView/index.vue"
import
baseFile
from
'@/components/upload/index'
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
();
export
default
{
components
:
{
...
...
@@ -197,6 +198,7 @@
'take-photo'
:
takePhoto
,
PopView
},
mixins
:
[
baseFile
],
data
()
{
return
{
readMore
:
true
,
...
...
@@ -406,12 +408,14 @@
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
async
closeTake
(
img
)
{
this
.
takeStatus
=
false
// 获取返回的图片 ,如果返回的图片存在则直接异常签约,成功后跳转到去完工页面,
if
(
img
){
// 拍照完成
const
files
=
img
.
map
(
v
=>
v
.
path
)
const
value
=
await
this
.
saveToTask
(
files
)
this
.
isErrorSign
=
true
this
.
errorSignUrl
=
img
[
img
.
length
-
1
].
key
this
.
errorSignUrl
=
value
[
0
].
key
this
.
handleBtn
()
}
else
{
this
.
$refs
.
uToast
.
show
({
...
...
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