feat: 新增阿里云OSS适配器及分类图标优化
- 新增阿里云OSS SDK核心类库文件 - 新增OSS插件配置文件及钩子监听 - 新增分类图标SVG资源并优化为轻量化格式 - 替换定位接口为天地图逆地理编码接口 - 新增OSS图片缩略处理工具方法
这个提交包含在:
@@ -1787,20 +1787,19 @@ export default {
|
||||
this.triggerAutoSave()
|
||||
},
|
||||
/**
|
||||
* 按经纬度匹配服务区域(后端 /home/locate)
|
||||
* 按经纬度匹配服务区域(前端本地计算,不再请求后端)
|
||||
* @param {number|null} lat
|
||||
* @param {number|null} lng
|
||||
*/
|
||||
async matchRegionByLocation(lat, lng) {
|
||||
if (lat == null || lng == null) return
|
||||
try {
|
||||
const found = await homeApi.locate({ lat, lng })
|
||||
if (!found || !found.areaId) return
|
||||
this.form.areaId = Number(found.areaId) || 0
|
||||
this.form.area = found.district || ''
|
||||
this.form.province = found.province || ''
|
||||
this.form.city = found.city || ''
|
||||
} catch (e) {}
|
||||
let found = null
|
||||
try { found = await homeApi.geocode(lat, lng) } catch (e) { return }
|
||||
if (!found || !found.areaId) return
|
||||
this.form.areaId = found.areaId
|
||||
this.form.area = found.district || ''
|
||||
this.form.province = found.province || ''
|
||||
this.form.city = found.city || ''
|
||||
},
|
||||
onFieldInput() {
|
||||
this.triggerAutoSave()
|
||||
|
||||
在新工单中引用
屏蔽一个用户