Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
a5a6e87a
提交
a5a6e87a
authored
9月 05, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(location): 修改:地理位置逆解析使用自己的后台接口代替腾讯接口_解决 cors 问题
上级
2cc7ace3
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
9 行增加
和
24 行删除
+9
-24
.env.development
.env.development
+2
-5
.env.production
.env.production
+2
-5
.env.staging
.env.staging
+2
-5
location.js
src/api/common/location.js
+3
-4
vite.config.js
vite.config.js
+0
-5
没有找到文件。
.env.development
浏览文件 @
a5a6e87a
...
...
@@ -24,7 +24,4 @@ VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
# 促销计划上报模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
# 腾讯地图接口地址
VITE_APP_TENCENT_MAP_API = '/tencent_map_api'
\ No newline at end of file
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
\ No newline at end of file
.env.production
浏览文件 @
a5a6e87a
...
...
@@ -23,7 +23,4 @@ VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
# 促销计划上报模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
# 腾讯地图接口地址
VITE_APP_TENCENT_MAP_API = 'https://apis.map.qq.com/ws/geocoder/v1'
\ No newline at end of file
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
\ No newline at end of file
.env.staging
浏览文件 @
a5a6e87a
...
...
@@ -22,7 +22,4 @@ VITE_APP_REPORT_SHARE_PREVIEW_URL = '#/report'
VITE_APP_REPORT_EDIT_URL = '#/report/jmreport/index'
# 促销计划上报模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
# 腾讯地图接口地址
VITE_APP_TENCENT_MAP_API = 'https://apis.map.qq.com/ws/geocoder/v1'
\ No newline at end of file
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF4.0.xlsx'
\ No newline at end of file
src/api/common/location.js
浏览文件 @
a5a6e87a
...
...
@@ -2,11 +2,9 @@ import request from '@/utils/request'
// 逆地址编码
export
const
getLocation
=
(
params
)
=>
{
return
request
({
baseURL
:
import
.
meta
.
env
.
VITE_APP_TENCENT_MAP_API
,
url
:
'/'
,
url
:
'/system/tencent/libs/address'
,
params
:
{
location
:
params
.
lat
+
','
+
params
.
lng
,
// GCJ02坐标系(经度,维度)
key
:
'UTEBZ-UJ3KG-OORQO-QT3PT-JDWU7-YRBZA'
location
:
params
.
lat
+
','
+
params
.
lng
// GCJ02坐标系(经度,维度)
}
})
}
\ No newline at end of file
vite.config.js
浏览文件 @
a5a6e87a
...
...
@@ -22,11 +22,6 @@ export default defineConfig(({ mode, command }) => {
host
:
true
,
open
:
true
,
proxy
:
{
'/tencent_map_api'
:
{
target
:
'https://apis.map.qq.com/ws/geocoder/v1'
,
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
tencent_map_api/
,
''
)
},
'/dev-api'
:
{
target
:
'http://192.168.100.55:8080'
,
// target: 'https://sfa-qa.wxl66.cn/api',
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论