feat: 新增阿里云OSS适配器及分类图标优化

- 新增阿里云OSS SDK核心类库文件
- 新增OSS插件配置文件及钩子监听
- 新增分类图标SVG资源并优化为轻量化格式
- 替换定位接口为天地图逆地理编码接口
- 新增OSS图片缩略处理工具方法
这个提交包含在:
2026-11-20 11:11:03 +08:00
父节点 134267fcd9
当前提交 133d425ec0
共有 228 个文件被更改,包括 26656 次插入 和 604 次删除

查看文件

@@ -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()