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
64d9eab1
Commit
64d9eab1
authored
Nov 22, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b2ebc0be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
index.vue
pages/index/index.vue
+9
-19
orderResult.vue
pages/orderResult/orderResult.vue
+12
-0
index.vue
pages/payRecord/index.vue
+1
-1
No files found.
pages/index/index.vue
View file @
64d9eab1
...
...
@@ -317,36 +317,26 @@
uni
.
getLocation
({
type
:
"gcj02"
,
success
:
(
result
)
=>
{
if
(
result
.
errMsg
==
"getLocation:ok"
)
{
this
.
latitude
=
result
.
latitude
;
this
.
l
ongitude
=
result
.
long
itude
;
uni
.
setStorageSync
(
"latitude"
,
result
.
latitude
)
uni
.
setStorageSync
(
"l
ongitude"
,
result
.
long
itude
)
}
else
{
uni
.
hideLoading
()
complete
:
(
res
)
=>
{
console
.
log
(
res
,
909090
)
if
(
res
.
errMsg
==
'getLocation:ok'
){
this
.
l
atitude
=
res
.
lat
itude
;
this
.
longitude
=
res
.
longitude
;
uni
.
setStorageSync
(
"l
atitude"
,
res
.
lat
itude
)
uni
.
setStorageSync
(
"longitude"
,
res
.
longitude
)
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取位置信息失败"
title
:
'获取位置信息失败'
})
this
.
$refs
.
popup
.
open
()
}
},
fail
:
(
err
)
=>
{
uni
.
showToast
({
icon
:
"none"
,
title
:
'获取位置信息失败'
})
this
.
$refs
.
popup
.
open
()
},
complete
:
()
=>
{
uni
.
removeStorage
({
key
:
'storeId'
})
this
.
onGetListStore
()
}
})
},
onGetListStore
()
{
getListStore
({
...
...
pages/orderResult/orderResult.vue
View file @
64d9eab1
...
...
@@ -129,6 +129,7 @@
onLoad
(
option
)
{
this
.
orderNo
=
option
.
orderNo
;
this
.
onLoading
();
this
.
onMessagePush
()
},
methods
:{
onLoading
(){
...
...
@@ -205,6 +206,17 @@
})
}
})
},
onMessagePush
(){
if
(
!
uni
.
getStorageSync
(
"orderUseMessage"
)){
uni
.
requestSubscribeMessage
({
tmplIds
:[
'oTc000e4NHkoc7v9OLBZiwM6Q6SFzguemrx6d0iuVS8'
],
complete
:
(
res
)
=>
{
console
.
log
(
res
,
909090
)
uni
.
setStorageSync
(
"orderUseMessage"
,
true
);
}
})
}
}
}
}
...
...
pages/payRecord/index.vue
View file @
64d9eab1
...
...
@@ -8,7 +8,7 @@
<text
class=
"text-title"
>
{{
item
.
name
}}
:
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-black text-bold text-lg"
>
{{
item
.
p
ayP
rice
}}
元
</text>
<text
class=
"text-black text-bold text-lg"
>
{{
item
.
price
}}
元
</text>
</view>
</view>
<view
class=
"flex-between part-1"
>
...
...
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