Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
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
pseer
gxpt_wechat
Commits
1f44c1fd
Commit
1f44c1fd
authored
Dec 30, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
ad47109d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
7 deletions
+47
-7
cleanOrderInfo.vue
pages/cleanOrderInfo/cleanOrderInfo.vue
+20
-3
orderResult.vue
pages/orderResult/orderResult.vue
+14
-3
share.vue
pages/share/share.vue
+13
-1
No files found.
pages/cleanOrderInfo/cleanOrderInfo.vue
View file @
1f44c1fd
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
</view>
</view>
<view
class=
"open-door-btn"
>
<view
class=
"open-door-btn"
>
<button
class=
"cu-btn block
bg-pink margin-tb-sm lg"
type=
"
"
@
tap=
"onOpenDoorByCleaner"
>
开门
</button>
<button
class=
"cu-btn block
margin-tb-sm lg"
type=
""
:class=
"openDoorStatus?'bg-gray':'bg-pink'
"
@
tap=
"onOpenDoorByCleaner"
>
开门
</button>
</view>
</view>
</view>
</view>
...
@@ -104,7 +104,8 @@
...
@@ -104,7 +104,8 @@
orderInfo
:{},
orderInfo
:{},
cleanStatusEnum
:{},
cleanStatusEnum
:{},
orderId
:
''
,
orderId
:
''
,
openDoor
:
false
openDoor
:
false
,
openDoorStatus
:
false
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -131,7 +132,6 @@
...
@@ -131,7 +132,6 @@
onLoading
(){
onLoading
(){
this
.
imgList
=
[]
this
.
imgList
=
[]
getInfoById
(
this
.
orderId
).
then
(
res
=>
{
getInfoById
(
this
.
orderId
).
then
(
res
=>
{
console
.
log
(
res
,
90909090
)
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
code
===
200
){
this
.
orderInfo
=
{
this
.
orderInfo
=
{
...
res
.
data
.
data
,
...
res
.
data
.
data
,
...
@@ -201,6 +201,20 @@
...
@@ -201,6 +201,20 @@
this
.
textareaBValue
=
e
.
detail
.
value
this
.
textareaBValue
=
e
.
detail
.
value
},
},
onOpenDoorByCleaner
(){
onOpenDoorByCleaner
(){
if
(
this
.
openDoorStatus
){
uni
.
showToast
({
icon
:
"none"
,
title
:
"请勿频繁进行开门操作"
})
return
}
uni
.
showLoading
({
title
:
"开门中..."
})
this
.
openDoorStatus
=
true
;
openDoorByCleaner
({
openDoorByCleaner
({
roomId
:
this
.
orderInfo
.
roomId
roomId
:
this
.
orderInfo
.
roomId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -211,6 +225,9 @@
...
@@ -211,6 +225,9 @@
icon
:
'success'
,
icon
:
'success'
,
title
:
'开门成功'
title
:
'开门成功'
})
})
setTimeout
(()
=>
{
this
.
openDoorStatus
=
false
;
},
5000
)
}
}
})
})
},
},
...
...
pages/orderResult/orderResult.vue
View file @
1f44c1fd
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</view>
</view>
<view
class=
"flex-between btn-box"
>
<view
class=
"flex-between btn-box"
>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round bg-pink lg"
@
tap=
"onOpenDoor"
>
进店开门
</button>
<button
class=
"cu-btn block round bg-pink lg"
:class=
"openDoorStatus?'bg-gray':'bg-pink'"
@
tap=
"onOpenDoor"
>
进店开门
</button>
</view>
</view>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
@
tap=
"onNavToShare"
>
分享好友
</button>
<button
class=
"cu-btn block round line-pink lg"
@
tap=
"onNavToShare"
>
分享好友
</button>
...
@@ -144,7 +144,8 @@
...
@@ -144,7 +144,8 @@
assetsPath
:
config
.
assetsPath
,
assetsPath
:
config
.
assetsPath
,
hostUrl
:
config
.
hostUrl
,
hostUrl
:
config
.
hostUrl
,
orderStatusEnum
:{},
orderStatusEnum
:{},
roomTypeEnum
:{}
roomTypeEnum
:{},
openDoorStatus
:
false
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -200,18 +201,28 @@
...
@@ -200,18 +201,28 @@
},
},
onOpenDoor
(){
onOpenDoor
(){
if
(
this
.
orderInfo
.
status
<=
1
){
if
(
this
.
orderInfo
.
status
<=
1
){
if
(
this
.
openDoorStatus
){
uni
.
showToast
({
icon
:
"none"
,
title
:
"请勿频繁进行开门操作"
})
return
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
"开门中..."
title
:
"开门中..."
})
})
this
.
openDoorStatus
=
true
;
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
res
.
data
.
msg
title
:
res
.
data
.
msg
})
})
setTimeout
(()
=>
{
this
.
openDoorStatus
=
false
;
},
5000
)
})
})
}
}
},
},
onNavToMap
()
{
onNavToMap
()
{
uni
.
openLocation
({
uni
.
openLocation
({
...
...
pages/share/share.vue
View file @
1f44c1fd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<view
class=
"flex-between btn-box"
>
<view
class=
"flex-between btn-box"
>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round bg-white lg"
@
tap=
"onOpenDoor"
>
进店开门
</button>
<button
class=
"cu-btn block round bg-white lg"
:class=
"openDoorStatus?'bg-gray':'bg-white'"
@
tap=
"onOpenDoor"
>
进店开门
</button>
</view>
</view>
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-white lg"
@
tap=
"onNavToMap"
>
门店导航
</button>
<button
class=
"cu-btn block round line-white lg"
@
tap=
"onNavToMap"
>
门店导航
</button>
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
colorLight
:
'#ffffff'
,
colorLight
:
'#ffffff'
,
orderNo
:
''
,
orderNo
:
''
,
orderInfo
:
''
,
orderInfo
:
''
,
openDoorStatus
:
false
};
};
},
},
filters
:{
filters
:{
...
@@ -110,15 +111,26 @@
...
@@ -110,15 +111,26 @@
this
.
qrPath
=
r
;
this
.
qrPath
=
r
;
},
},
onOpenDoor
(){
onOpenDoor
(){
if
(
this
.
openDoorStatus
){
uni
.
showToast
({
icon
:
"none"
,
title
:
"请勿频繁进行开门操作"
})
return
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
"开门中..."
title
:
"开门中..."
})
})
this
.
openDoorStatus
=
true
;
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
res
.
data
.
msg
title
:
res
.
data
.
msg
})
})
setTimeout
(()
=>
{
this
.
openDoorStatus
=
false
},
5000
)
})
})
},
},
onNavToMap
()
{
onNavToMap
()
{
...
...
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