Commit 5dafd5a0 authored by Facius's avatar Facius

获取位置信息

parent fcdb13f1
...@@ -61,7 +61,12 @@ ...@@ -61,7 +61,12 @@
"es6" : true, "es6" : true,
"minified" : true "minified" : true
}, },
"usingComponents" : true "usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "需要获得位置权限以方便用户定位下单地址"
}
}
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="content"> <view class="content">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" @scroll="handleScroll" <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" @scroll="handleScroll"
refresher-enabled :refresher-triggered="triggered" @refresherrefresh="onRefresh" scroll-anchoring 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" <u-swiper :height="250" :list="list" :indicator-pos="indicatorPos" :mode="mode" :interval="3000"
@click="clickSwiper"> @click="clickSwiper">
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
}, },
onLoad() { onLoad() {
this._freshing = false; this._freshing = false;
this.triggered = true; this.triggered = false;
}, },
onShow() { onShow() {
// 每次进入页面都刷新入驻状态 // 每次进入页面都刷新入驻状态
...@@ -121,7 +121,8 @@ ...@@ -121,7 +121,8 @@
} }
}, },
methods: { methods: {
async initSettleInfo() { async initSettleInfo() {
if (this.settled) return
const callBack = (vm, result) => { const callBack = (vm, result) => {
// 后台自动判断入驻流程是否完成,前台通过settled确定状态 // 后台自动判断入驻流程是否完成,前台通过settled确定状态
if (result && result.settled) { if (result && result.settled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment