> 123
+    private void startLocation(){
124
+        if(status==1){
125
+            return;
126
+        }
127
+        // 设置定位参数
128
+        locationClient.setLocationOption(locationOption);
129
+        // 启动定位
130
+        locationClient.startLocation();
131
+
132
+        status = 1;
133
+    }
134
+
135
+    /**
136
+     * 停止定位
137
+     *
138
+     * @since 2.8.0
139
+     * @author hongming.wang
140
+     *
141
+     */
142
+    private void stopLocation(){
143
+        if(status == 2){
144
+            return;
145
+        }
146
+        // 停止定位
147
+        locationClient.stopLocation();
148
+        status = 2;
149
+    }
150
+
151
+    /**
152
+     * 销毁定位
153
+     *
154
+     * @since 2.8.0
155
+     * @author hongming.wang
156
+     *
157
+     */
158
+    private void destroyLocation(){
159
+        if (null != locationClient) {
160
+            locationClient.onDestroy();
161
+            locationClient = null;
162
+            locationOption = null;
163
+            status = 0;
164
+        }
165
+    }
166
+
167
+}

kodo - Gogs: Go Git Service

Geen omschrijving

Kimi.Huang: 2fafbdae53 :art: image2 7 jaren geleden
..
migrations 8b7c49ddb9 add app to add page user_agreement/contact_us 10 jaren geleden
static 627187a7d7 Update Kodo 8 jaren geleden
templates a078341431 Preauth page 7 jaren geleden
__init__.py 8b7c49ddb9 add app to add page user_agreement/contact_us 10 jaren geleden
admin.py fabef63211 set line_length=200 for isort 10 jaren geleden
info_views.py b90bf186bc brand_domain 8 jaren geleden
models.py fabef63211 set line_length=200 for isort 10 jaren geleden
oauth_views.py 1feebf798e brand_id 7 jaren geleden
page_views.py 34aac5d903 Move page relative urls from pai2/urls.py to page/urls.py 9 jaren geleden
preauth_views.py b7caee0a32 Preauth 7 jaren geleden
sale_views.py 2fafbdae53 :art: image2 7 jaren geleden
screen_views.py a3a5b74af3 brand_id 7 jaren geleden
tests.py fabef63211 set line_length=200 for isort 10 jaren geleden
urls.py b7caee0a32 Preauth 7 jaren geleden
views.py 34aac5d903 Move page relative urls from pai2/urls.py to page/urls.py 9 jaren geleden