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
968d0f58
Commit
968d0f58
authored
Nov 16, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
044767d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
13 deletions
+38
-13
toolBox.vue
components/toolBox/toolBox.vue
+1
-1
orderResult.vue
pages/orderResult/orderResult.vue
+25
-11
share.vue
pages/share/share.vue
+12
-1
No files found.
components/toolBox/toolBox.vue
View file @
968d0f58
...
...
@@ -83,7 +83,7 @@
this
.
orderNo
=
res
.
data
.
data
[
0
].
orderNo
;
this
.
onOpenDoor
()
}
else
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
>
1
){
uni
.
navigateTo
({
uni
.
switchTab
({
url
:
"/pages/orderRecord/orderRecord"
})
}
else
{
...
...
pages/orderResult/orderResult.vue
View file @
968d0f58
...
...
@@ -24,7 +24,7 @@
<text
class=
"cuIcon-titles text-pink text-xl"
></text>
<text
class=
"text-black text-xl text-bold"
>
{{
orderInfo
.
storeName
||
'门店名称'
}}
</text>
</view>
<button
class=
"cu-btn line-pink"
>
<button
class=
"cu-btn line-pink"
@
tap=
"onNavToMap"
>
<text>
导航
</text>
<image
:src=
"assetsPath+'/map_icon.png'"
mode=
"heightFix"
></image>
</button>
...
...
@@ -142,15 +142,29 @@
})
},
onOpenDoor
(){
uni
.
showLoading
({
title
:
"开门中..."
})
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
"none"
,
title
:
res
.
data
.
msg
if
(
this
.
orderInfo
.
status
<=
1
){
uni
.
showLoading
({
title
:
"开门中..."
})
openDoor
(
this
.
orderNo
).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
"none"
,
title
:
res
.
data
.
msg
})
})
}
},
onNavToMap
()
{
uni
.
openLocation
({
latitude
:
Number
(
this
.
orderInfo
.
latitude
),
longitude
:
Number
(
this
.
orderInfo
.
longitude
),
scale
:
18
,
name
:
this
.
orderInfo
.
address
,
complete
:
(
res
)
=>
{
console
.
log
(
res
)
}
})
}
}
...
...
@@ -167,7 +181,7 @@
flex-direction
:
column
;
.order-time{
width
:
100%
;
padding
:
20
upx
10
%
;
padding
:
20
upx
8
%
;
height
:
420
upx
;
border-radius
:
0
0
80
upx
80
upx
;
background-color
:
#e40583
;
...
...
@@ -189,7 +203,7 @@
display
:
flex
;
flex
:
1
;
height
:
80%
;
margin
:
0
40
upx
;
margin
:
0
6%
;
border-bottom
:
1px
dashed
#ffffff
;
>text{
letter-spacing
:
3
upx
;
...
...
pages/share/share.vue
View file @
968d0f58
...
...
@@ -18,7 +18,7 @@
<button
class=
"cu-btn block round bg-white lg"
@
tap=
"onOpenDoor"
>
进店开门
</button>
</view>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-white lg"
>
门店导航
</button>
<button
class=
"cu-btn block round line-white lg"
@
tap=
"onNavToMap"
>
门店导航
</button>
</view>
</view>
...
...
@@ -104,6 +104,17 @@
title
:
res
.
data
.
msg
})
})
},
onNavToMap
()
{
uni
.
openLocation
({
latitude
:
Number
(
this
.
orderInfo
.
latitude
),
longitude
:
Number
(
this
.
orderInfo
.
longitude
),
scale
:
18
,
name
:
this
.
orderInfo
.
address
,
complete
:
(
res
)
=>
{
console
.
log
(
res
)
}
})
}
}
}
...
...
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