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
5dafd5a0
Commit
5dafd5a0
authored
Apr 14, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取位置信息
parent
fcdb13f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
manifest.json
src/manifest.json
+6
-1
index.vue
src/pages/index/index.vue
+4
-3
No files found.
src/manifest.json
View file @
5dafd5a0
...
...
@@ -61,7 +61,12 @@
"es6"
:
true
,
"minified"
:
true
},
"usingComponents"
:
true
"usingComponents"
:
true
,
"permission"
:
{
"scope.userLocation"
:
{
"desc"
:
"需要获得位置权限以方便用户定位下单地址"
}
}
},
"mp-alipay"
:
{
"usingComponents"
:
true
...
...
src/pages/index/index.vue
View file @
5dafd5a0
...
...
@@ -2,7 +2,7 @@
<view
class=
"content"
>
<scroll-view
scroll-y
style=
"height: 100%;width: 100%;"
@
scrolltolower=
"reachBottom"
@
scroll=
"handleScroll"
refresher-enabled
:refresher-triggered=
"triggered"
@
refresherrefresh=
"onRefresh"
scroll-anchoring
@
refresherrestore=
"onRestore"
>
@
refresherrestore=
"onRestore"
@
refresherpulling=
"triggered = true"
>
<u-swiper
:height=
"250"
:list=
"list"
:indicator-pos=
"indicatorPos"
:mode=
"mode"
:interval=
"3000"
@
click=
"clickSwiper"
>
...
...
@@ -111,7 +111,7 @@
},
onLoad
()
{
this
.
_freshing
=
false
;
this
.
triggered
=
tru
e
;
this
.
triggered
=
fals
e
;
},
onShow
()
{
// 每次进入页面都刷新入驻状态
...
...
@@ -121,7 +121,8 @@
}
},
methods
:
{
async
initSettleInfo
()
{
async
initSettleInfo
()
{
if
(
this
.
settled
)
return
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过settled确定状态
if
(
result
&&
result
.
settled
)
{
...
...
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