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
02cb75aa
Commit
02cb75aa
authored
Apr 26, 2021
by
郭晓清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍照组件接口修改
parent
9ebfd832
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
detail.vue
src/pages/order/detail.vue
+31
-9
No files found.
src/pages/order/detail.vue
View file @
02cb75aa
...
@@ -103,20 +103,25 @@
...
@@ -103,20 +103,25 @@
</view>
</view>
<!-- 异常预约 ,现场拍照 这里是调用拍照的两个组件-->
<!-- 异常预约 ,现场拍照 这里是调用拍照的两个组件-->
<view
class=
"right"
>
<view
class=
"right"
>
<view
v-show=
"allowRight"
@
click=
"allowRightClick"
class=
"button"
></view>
<view
v-if=
"errorSignIn"
@
click=
"take"
class=
"button"
>
<text>
异常签到
</text>
</view>
<view
v-if=
"scenePhoto"
@
click=
"scenePhotoClick"
class=
"button"
>
<text>
现场拍照
</text>
</view>
</view>
</view>
</view>
</view>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
></take-photo>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
appointTime
from
'@/components/appoint/appoint-time.vue'
import
appointTime
from
'@/components/appoint/appoint-time.vue'
import
{
import
takePhoto
from
'@/components/take/index.vue'
getQueryString
}
from
'@/common/util.js'
export
default
{
export
default
{
components
:
{
components
:
{
appointTime
appointTime
,
'take-photo'
:
takePhoto
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -141,7 +146,10 @@
...
@@ -141,7 +146,10 @@
showTimeSelect
:
false
,
showTimeSelect
:
false
,
submitType
:
''
,
submitType
:
''
,
nextUrl
:
''
,
nextUrl
:
''
,
btnClass
:
'appoint-btn'
btnClass
:
'appoint-btn'
,
takeStatus
:
false
,
errorSignIn
:
false
,
scenePhoto
:
false
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -155,9 +163,6 @@
...
@@ -155,9 +163,6 @@
this
.
loadOrderDetail
()
this
.
loadOrderDetail
()
this
.
loadOrderRecord
()
this
.
loadOrderRecord
()
this
.
getLocation
()
this
.
getLocation
()
},
created
()
{
},
},
computed
:
{
computed
:
{
phoneIcon
()
{
phoneIcon
()
{
...
@@ -172,6 +177,21 @@
...
@@ -172,6 +177,21 @@
}
}
},
},
methods
:
{
methods
:
{
scenePhotoClick
()
{
// 跳转拍照小程序
uni
.
navigateTo
({
url
:
'pages/photo/list?orderId='
+
this
.
order
.
orderId
+
'&brandId='
+
this
.
order
.
lianbaoBrandId
+
'&brand='
+
this
.
order
.
brandName
+
'&systemId='
+
this
.
order
.
partnerCompanyId
+
'&classifyId='
+
this
.
order
.
categoryId
})
},
take
()
{
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
()
{
this
.
takeStatus
=
false
// 获取返回的图片 ,如果返回的图片存在则直接异常签约,成功后跳转到去完工页面,
},
loadOrderDetail
()
{
// 获取工单详情
loadOrderDetail
()
{
// 获取工单详情
let
self
=
this
let
self
=
this
let
timestamp
=
new
Date
().
getTime
();
let
timestamp
=
new
Date
().
getTime
();
...
@@ -265,12 +285,14 @@
...
@@ -265,12 +285,14 @@
this
.
allowFeedback
=
true
this
.
allowFeedback
=
true
this
.
showCenterBtn
=
true
this
.
showCenterBtn
=
true
this
.
submitType
=
"maintainWorkerCheckin"
this
.
submitType
=
"maintainWorkerCheckin"
this
.
errorSignIn
=
true
}
else
if
(
orderStatus
>
31
&&
orderStatus
<
80
)
{
}
else
if
(
orderStatus
>
31
&&
orderStatus
<
80
)
{
// 完工
// 完工
this
.
centerButton
=
"filish"
this
.
centerButton
=
"filish"
this
.
centerButtonText
=
"去完工"
this
.
centerButtonText
=
"去完工"
this
.
allowFeedback
=
true
this
.
allowFeedback
=
true
this
.
showCenterBtn
=
true
this
.
showCenterBtn
=
true
this
.
scenePhoto
=
true
}
else
{}
}
else
{}
},
},
handleBtn
()
{
handleBtn
()
{
...
...
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