Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-12-23 17:07:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e2c2c2c6e51ba97d7b97de5a861d6cb8ad507ff0
e2c2c2c6
1 parent
60780ae1
判断定位填表功能,调整查询字段
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/App.vue
src/App.vue
View file @
e2c2c2c
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-2
0 17:53:24
* @LastEditTime: 2024-12-2
3 17:06:55
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -163,11 +163,11 @@ onMounted(async () => {
wx.ready(() => {
wx.showAllNonBaseMenuItem();
// TEST:判断定位填表功能, 可能会弹出来上一次的表单提示,因为如果定位正确时还是需要恢复相应的表单
let open_location = f
als
e;
let open_location = f
orm_setting.geofence_enabl
e;
if (force_back !== '1' && open_location) { // 非后台用户模式
const targetLat =
31.278001
;
const targetLng =
121.542778
;
const radius =
1000
; // 半径 1000 米
const targetLat =
form_setting.geofence_center_latitude
;
const targetLng =
form_setting.geofence_center_longitude
;
const radius =
form_setting.geofence_circle_radius
; // 半径 1000 米
wx.getLocation({
type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
...
...
Please
register
or
login
to post a comment