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

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

查看文件

@@ -27,8 +27,12 @@ export const homeApi = {
* → [{id,province,city,district,lat,lng}];省/市由前端生成级联列
*/
areas: () => get('/home/areas', {}, { silent: true }),
/** 按定位匹配服务区域 {lat,lng} → {areaId,province,city,district,distance}|null */
locate: (params = {}) => get('/home/locate', params, { silent: true }),
/**
* 天地图逆地理编码 → 精确匹配服务区域
* 入参:{ lat, lng }
* 出参:{ areaId, province, city, district } | null
*/
geocode: (lat, lng) => get('/home/geocode', { lat, lng }, { silent: true }),
}
export default homeApi

查看文件

@@ -7,7 +7,7 @@
*/
import { reactive } from 'vue'
import settingApi from '../api/setting.js'
import { assetUrl } from '../utils/format.js'
import { assetUrl, ossThumb } from '../utils/format.js'
import { CATEGORY_ICON_KEY } from '../assets/icons.js'
import {
setRemoteUi,
@@ -113,22 +113,18 @@ export function catIcon(cat) {
if (typeof cat === 'number' || typeof cat === 'string') {
return categoryIconUrl(cat)
}
// 1. 若配置了直接图片地址(如自定义上传图片或网络链接)
if (cat.image && /^https?:\/\/|^\/uploads\/|^\/static\//i.test(cat.image)) {
const img = (cat.image || cat.icon || '').trim()
if (img && /^https?:\/\/|^\/uploads\/|^\/static\//i.test(img)) {
// 包内自带图标(categories/icons 插画)直接用包内路径;
// 其余(后台上传图、/static/posts/ 实拍图等)不在小程序包内,必须拼后端域名,否则裂图
return /^\/static\/(categories|icons)\//i.test(cat.image) ? cat.image : assetUrl(cat.image)
return /^\/static\/(categories|icons)\//i.test(img) ? img : ossThumb(assetUrl(img))
}
// 2. 若配置了 iconKey,优先按 key 匹配响应式配置
if (cat.iconKey) {
const fromKey = iconUrl(cat.iconKey)
if (fromKey) return fromKey
}
// 3. 若下发了外部/上传路径
if (cat.icon && /^https?:\/\/|^\/uploads\//i.test(cat.icon)) {
return cat.icon
}
// 4. 回退按 ID 查找或默认兜底
// 3. 回退按 ID 查找或默认兜底
return categoryIconUrl(cat.id)
}

查看文件

@@ -86,6 +86,23 @@ export function assetUrl(url) {
return origin + (s.charAt(0) === '/' ? s : '/' + s)
}
/**
* 为阿里云 OSS 图片链接追加动态轻量缩略优化参数(原生高质量 JPEG)
* 专用于分类图标与小图微缩,将 3MB 巨图压制为 20KB 轻量图,流量节省 98%,全平台 100% 兼容
* @param {string} url 原始图片链接
* @param {number} size 目标边长 (默认 240)
* @returns {string} 优化后的轻量化图片链接
*/
export function ossThumb(url, size = 240) {
const s = String(url == null ? '' : url)
if (!s) return ''
if ((s.indexOf('aliyuncs.com') !== -1 || s.indexOf('oss-') !== -1) && s.indexOf('x-oss-process') === -1) {
const sep = s.indexOf('?') !== -1 ? '&' : '?'
return `${s}${sep}x-oss-process=image/resize,m_fill,w_${size},h_${size}/quality,q_85`
}
return s
}
export const formatRelativeTime = fromNow
export default {
@@ -98,4 +115,5 @@ export default {
formatDistance,
formatKm,
assetUrl,
ossThumb,
}

查看文件

@@ -302,17 +302,16 @@ export default {
})
},
/**
* 把定位坐标转换成区域筛选默认值(只匹配到市级,用户手动切换过则不覆盖)
* 天地图逆地理编码 → 精确匹配服务区域
*/
async applyLocationArea() {
if (this.manualArea || this.lat == null || this.lng == null) return
try {
const found = await homeApi.locate({ lat: this.lat, lng: this.lng })
if (found && found.areaId) {
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
}
} catch (e) {}
let found = null
try { found = await homeApi.geocode(this.lat, this.lng) } catch (e) { return }
if (found && found.areaId) {
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
}
},
/**
* 分页获取分类信息列表

查看文件

@@ -575,27 +575,25 @@ export default {
})
},
/**
* 将定位坐标匹配为服务城市(只到市级,平滑更新杜绝清空列表闪烁)
* 天地图逆地理编码 → 精确匹配服务城市
*/
async applyLocationArea() {
if (this.manualArea || this.lat == null || this.lng == null) return
try {
const found = await homeApi.locate({ lat: this.lat, lng: this.lng })
if (found && found.areaId) {
const nextProv = found.province || ''
const nextCity = found.city || ''
if (nextProv !== this.selectedProvince || nextCity !== this.selectedCity) {
this.selectedProvince = nextProv
this.selectedCity = nextCity
this.activeProvince = nextProv
this.activeCity = nextCity
this.page = 1
this.hasMore = true
// 平滑重载:保持原页面展示,等新数据回来再做原子替换,杜绝白屏与空状态跳动
this.fetchPosts(false)
}
let found = null
try { found = await homeApi.geocode(this.lat, this.lng) } catch (e) { return }
if (found && found.areaId) {
const nextProv = found.province || ''
const nextCity = found.city || ''
if (nextProv !== this.selectedProvince || nextCity !== this.selectedCity) {
this.selectedProvince = nextProv
this.selectedCity = nextCity
this.activeProvince = nextProv
this.activeCity = nextCity
this.page = 1
this.hasMore = true
this.fetchPosts(false)
}
} catch (e) {}
}
},
/**
* 拉取全部分类数据(快照缓存秒开 + 后台静默对齐,避免重复 fetchPosts 竞态)
@@ -862,29 +860,25 @@ export default {
success: async (res) => {
this.lat = res.latitude
this.lng = res.longitude
try {
const found = await homeApi.locate({ lat: this.lat, lng: this.lng })
if (found && found.areaId) {
safeSetStorage(STORAGE_KEY_SELECTED_AREA, null)
this.manualArea = false
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.activeProvince = this.selectedProvince
this.activeCity = this.selectedCity
this.page = 1
this.list = []
this.hasMore = true
this.fetchPosts()
uni.showToast({ title: `已定位到:${found.city || '所在城市'}`, icon: 'none' })
this.closeLocationModal()
} else {
uni.showToast({ title: '已定位,但当前位置暂无开通服务', icon: 'none' })
}
} catch (err) {
uni.showToast({ title: '定位匹配失败,请手动选择', icon: 'none' })
} finally {
this.isLocating = false
let found = null
try { found = await homeApi.geocode(this.lat, this.lng) } catch (e) {}
if (found && found.areaId) {
safeSetStorage(STORAGE_KEY_SELECTED_AREA, null)
this.manualArea = false
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.activeProvince = this.selectedProvince
this.activeCity = this.selectedCity
this.page = 1
this.list = []
this.hasMore = true
this.fetchPosts()
uni.showToast({ title: `已定位到:${found.city || '所在城市'}`, icon: 'none' })
this.closeLocationModal()
} else {
uni.showToast({ title: '已定位,但当前位置暂无开通服务', icon: 'none' })
}
this.isLocating = false
},
fail: () => {
this.isLocating = false

查看文件

@@ -213,7 +213,7 @@ import memberApi from '@/common/api/member.js'
import messageApi from '@/common/api/message.js'
import { useUserStore } from '@/common/store/index.js'
import { iconUrl, logoUrl, categoryIconUrl, loadUiConfig, uiState } from '@/common/store/ui.js'
import { assetUrl } from '@/common/utils/format.js'
import { assetUrl, ossThumb } from '@/common/utils/format.js'
import { bannerArtUrl, bannerHasValue, bannerBg } from '@/common/assets/banners.js'
import { getNavMetrics } from '@/common/utils/navbar.js'
import { safeNavigateTo, safeRedirectTo } from '@/common/utils/nav.js'
@@ -527,8 +527,7 @@ export default {
const img = b.image.trim()
if (img.startsWith('http://') || img.startsWith('https://')) return img
if (img.startsWith('/static/')) return img
if (img.startsWith('/uploads/')) return img
return img
return assetUrl(img)
}
const idx = (Math.abs(i) % 3) + 1
return `/static/banners/banner-${idx}.png`
@@ -539,9 +538,10 @@ export default {
*/
catIcon(c) {
if (!c) return categoryIconUrl(1)
if (c.image && /^https?:\/\/|^\/uploads\/|^\/static\//i.test(c.image)) {
const img = (c.image || c.icon || '').trim()
if (img && /^https?:\/\/|^\/uploads\/|^\/static\//i.test(img)) {
// 包内自带图标(categories/icons 插画)直接用包内路径;其余拼后端域名,否则裂图
return /^\/static\/(categories|icons)\//i.test(c.image) ? c.image : assetUrl(c.image)
return /^\/static\/(categories|icons)\//i.test(img) ? img : ossThumb(assetUrl(img))
}
return (c.iconKey && iconUrl(c.iconKey)) || categoryIconUrl(c.id)
},
@@ -655,26 +655,26 @@ export default {
},
/**
* 将定位坐标匹配为服务区域(只匹配到市级,展示所在城市全部信息)
* 天地图逆地理编码 → 精确匹配 fa_fc_area 服务区域(市级)
*/
async applyLocationArea() {
if (this.manualArea || this.lat == null || this.lng == null) return
let found = null
try {
const found = await homeApi.locate({ lat: this.lat, lng: this.lng })
if (found && found.areaId) {
const oldCity = this.selectedCity
this.areaId = 0
this.areaText = ''
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.location = found.city || ''
// 若匹配出的城市有变动,平滑刷新信息流
if (oldCity !== this.selectedCity) {
this.page = 1
this.fetchFeed(true)
}
found = await homeApi.geocode(this.lat, this.lng)
} catch (e) { return }
if (found && found.areaId) {
const oldCity = this.selectedCity
this.areaId = found.areaId
this.areaText = found.district || ''
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.location = found.city || ''
if (oldCity !== this.selectedCity) {
this.page = 1
this.fetchFeed(true)
}
} catch (e) {}
}
},
/**
@@ -827,29 +827,24 @@ export default {
success: async (res) => {
this.lat = res.latitude
this.lng = res.longitude
try {
const found = await homeApi.locate({ lat: this.lat, lng: this.lng })
if (found && found.areaId) {
// 清除手动选择标记,恢复为自动定位匹配模式(只到市级)
safeSetStorage(STORAGE_KEY_SELECTED_AREA, null)
this.manualArea = false
this.areaId = 0
this.areaText = ''
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.location = found.city || ''
this.page = 1
this.fetchFeed(true)
uni.showToast({ title: `已定位到:${found.city || '所在城市'}`, icon: 'none' })
this.closeLocationModal()
} else {
uni.showToast({ title: '已定位,但当前位置暂无开通服务', icon: 'none' })
}
} catch (err) {
uni.showToast({ title: '定位匹配失败,请手动选择', icon: 'none' })
} finally {
this.isLocating = false
let found = null
try { found = await homeApi.geocode(this.lat, this.lng) } catch (e) {}
if (found && found.areaId) {
safeSetStorage(STORAGE_KEY_SELECTED_AREA, null)
this.manualArea = false
this.areaId = found.areaId
this.areaText = found.district || ''
this.selectedProvince = found.province || ''
this.selectedCity = found.city || ''
this.location = found.city || ''
this.page = 1
this.fetchFeed(true)
uni.showToast({ title: `已定位到:${found.city || '所在城市'}`, icon: 'none' })
this.closeLocationModal()
} else {
uni.showToast({ title: '已定位,但当前位置暂无开通服务', icon: 'none' })
}
this.isLocating = false
},
fail: () => {
this.isLocating = false

查看文件

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

查看文件

@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FBBF24"/>
<stop offset="100%" stop-color="#DC2626"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M18 44 L22 32 Q24 28 28 28 L52 28 Q56 28 58 32 L62 44" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<path d="M18 44 Q18 54 28 54 L52 54 Q62 54 62 44" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<circle cx="28" cy="54" r="5" fill="none" stroke="#fff" stroke-width="3"/>
<circle cx="52" cy="54" r="5" fill="none" stroke="#fff" stroke-width="3"/>
</svg>

之后

宽度:  |  高度:  |  大小: 760 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#67E8F9"/>
<stop offset="100%" stop-color="#0EA5E9"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<circle cx="40" cy="44" r="14" fill="none" stroke="#fff" stroke-width="3"/>
<path d="M40 30 L40 44 L52 44" stroke="#fff" stroke-width="3.2" stroke-linecap="round"/>
<path d="M40 30 L44 22 M40 30 L36 22 M26 44 Q28 42 30 44 M54 44 Q56 42 58 44" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 658 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FECACA"/>
<stop offset="100%" stop-color="#991B1B"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<rect x="28" y="28" width="24" height="32" rx="4" fill="none" stroke="#fff" stroke-width="3"/>
<path d="M28 38 L52 38 M28 22 Q40 18 52 22 L52 28 L28 28 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M34 44 L34 52 M46 44 L46 52" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 677 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#A7F3D0"/>
<stop offset="100%" stop-color="#047857"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<rect x="26" y="18" width="28" height="44" rx="4" fill="none" stroke="#fff" stroke-width="3"/>
<rect x="30" y="24" width="20" height="26" rx="2" fill="#fff" opacity="0.9"/>
<circle cx="40" cy="56" r="2" fill="#fff"/>
</svg>

之后

宽度:  |  高度:  |  大小: 574 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#C4B5FD"/>
<stop offset="100%" stop-color="#4338CA"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M20 36 L40 28 L60 36 L60 56 L40 64 L20 56 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M28 40 Q40 46 52 40 M28 46 Q40 52 52 46 M34 52 Q40 56 46 52" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
<path d="M28 32 Q40 26 52 32" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 720 B

查看文件

@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDA4AF"/>
<stop offset="100%" stop-color="#E11D48"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M24 42 Q24 58 40 58 Q56 58 56 42 L56 36 Q56 30 50 30 L30 30 Q24 30 24 36 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M30 30 Q34 22 40 22 Q46 22 50 30" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<circle cx="32" cy="44" r="1.5" fill="#fff"/>
<circle cx="40" cy="44" r="1.5" fill="#fff"/>
<circle cx="48" cy="44" r="1.5" fill="#fff"/>
</svg>

之后

宽度:  |  高度:  |  大小: 764 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDE68A"/>
<stop offset="100%" stop-color="#F59E0B"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M40 28 Q30 28 28 40 Q28 56 40 58 Q52 56 52 40 Q50 28 40 28 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M40 28 L40 22 M40 22 Q44 20 46 24 M40 22 Q36 20 34 24" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<ellipse cx="35" cy="40" rx="3" ry="4" fill="#fff" opacity="0.5"/>
</svg>

之后

宽度:  |  高度:  |  大小: 696 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#C4B5FD"/>
<stop offset="100%" stop-color="#7C3AED"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M22 34 L40 26 L58 34 L58 58 L22 58 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<rect x="34" y="42" width="12" height="16" rx="1" fill="#fff"/>
<rect x="26" y="40" width="8" height="8" rx="1" fill="#fff" opacity="0.7"/>
</svg>

之后

宽度:  |  高度:  |  大小: 613 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDE68A"/>
<stop offset="100%" stop-color="#A16207"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M30 28 Q40 20 50 28 Q58 38 50 56 Q40 62 30 56 Q22 38 30 28 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M40 28 Q32 40 40 58 Q48 40 40 28" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
<path d="M30 38 Q40 34 50 38 M30 46 Q40 42 50 46" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" opacity="0.7"/>
</svg>

之后

宽度:  |  高度:  |  大小: 742 B

查看文件

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDA4AF"/>
<stop offset="100%" stop-color="#BE123C"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M40 60 Q14 44 22 28 Q28 18 40 26 Q52 18 58 28 Q66 44 40 60 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M30 30 Q40 36 50 30" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 595 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#67E8F9"/>
<stop offset="100%" stop-color="#0EA5E9"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M22 38 L40 26 L58 38 L58 58 L22 58 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M30 58 L30 46 L36 46 L36 58 M44 58 L44 46 L50 46 L50 58" fill="#fff"/>
<path d="M40 26 L40 38 M22 38 L58 38" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 647 B

查看文件

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#6EE7B7"/>
<stop offset="100%" stop-color="#00C860"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M22 30a6 6 0 0 1 6-6h24a6 6 0 0 1 6 6v24a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V30z M30 24v-2a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v2 M26 40h28" fill="none" stroke="#fff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="36" y="36" width="8" height="12" rx="1.5" fill="#fff"/>
</svg>

之后

宽度:  |  高度:  |  大小: 653 B

查看文件

@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#67E8F9"/>
<stop offset="100%" stop-color="#0369A1"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<rect x="16" y="32" width="46" height="20" rx="3" fill="none" stroke="#fff" stroke-width="3"/>
<path d="M34 32 Q34 24 44 24 Q54 24 54 32" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<circle cx="26" cy="56" r="5" fill="#fff"/>
<circle cx="52" cy="56" r="5" fill="#fff"/>
<path d="M14 42 L10 42 L10 52 L14 52" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 762 B

查看文件

@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDE68A"/>
<stop offset="100%" stop-color="#B45309"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M40 50 Q30 48 28 40 Q28 30 40 30 Q52 30 52 40 Q50 48 40 50 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M40 32 Q38 26 42 26 Q44 26 44 32" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M36 32 Q32 28 30 32 M44 32 Q48 28 50 32" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
<path d="M38 50 L38 56 M42 50 L42 56" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<path d="M40 56 Q36 62 32 64 M40 56 Q44 62 48 64" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 947 B

查看文件

@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FFD89B"/>
<stop offset="100%" stop-color="#FF7A59"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<ellipse cx="40" cy="46" rx="15" ry="18" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<circle cx="40" cy="28" r="7" fill="#fff"/>
<circle cx="37.5" cy="27" r="1.2" fill="#333"/>
<path d="M34 28 L32 30 L35 30 Z" fill="#fff"/>
<path d="M27 48 Q22 52 20 48 M53 48 Q58 52 60 48" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"/>
<path d="M36 64 L35 68 M44 64 L45 68" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 823 B

查看文件

@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#67E8F9"/>
<stop offset="100%" stop-color="#0369A1"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M22 36 L22 42 Q22 56 40 56 Q58 56 58 42 L58 36 L48 36 L48 30 Q48 26 44 26 L36 26 Q32 26 32 30 L32 36 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M32 26 L32 22 Q32 18 36 18 L44 18 Q48 18 48 22 L48 26" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<circle cx="34" cy="45" r="1.5" fill="#fff"/>
<circle cx="40" cy="45" r="1.5" fill="#fff"/>
<circle cx="46" cy="45" r="1.5" fill="#fff"/>
</svg>

之后

宽度:  |  高度:  |  大小: 813 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDA4AF"/>
<stop offset="100%" stop-color="#DC2626"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<circle cx="40" cy="42" r="18" fill="none" stroke="#fff" stroke-width="3"/>
<path d="M40 24 Q34 32 40 42 Q46 32 40 24 Z" fill="#fff"/>
<path d="M22 42 L58 42 M32 28 L48 56 M48 28 L32 56" stroke="#fff" stroke-width="2" opacity="0.4"/>
</svg>

之后

宽度:  |  高度:  |  大小: 591 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#5EEAD4"/>
<stop offset="100%" stop-color="#059669"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<circle cx="40" cy="40" r="10" fill="none" stroke="#fff" stroke-width="3.2"/>
<circle cx="40" cy="40" r="3" fill="#fff"/>
<path d="M40 22 L40 28 M40 52 L40 58 M22 40 L28 40 M52 40 L58 40 M27 27 L31 31 M49 49 L53 53 M27 53 L31 49 M49 31 L53 27" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
</svg>

之后

宽度:  |  高度:  |  大小: 659 B

查看文件

@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FDA4AF"/>
<stop offset="100%" stop-color="#DB2777"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<rect x="22" y="32" width="36" height="28" rx="4" fill="none" stroke="#fff" stroke-width="3"/>
<path d="M22 42 L58 42" stroke="#fff" stroke-width="3"/>
<path d="M30 32 L30 26 Q30 22 34 22 L46 22 Q50 22 50 26 L50 32" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<circle cx="40" cy="50" r="3" fill="#fff"/>
</svg>

之后

宽度:  |  高度:  |  大小: 688 B

查看文件

@@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#86EFAC"/>
<stop offset="100%" stop-color="#16A34A"/>
</linearGradient>
</defs>
<rect x="4" y="4" width="72" height="72" rx="18" fill="url(#g)"/>
<path d="M40 20 Q30 22 26 32 Q24 42 28 50 Q32 60 40 60 Q48 60 52 50 Q56 42 54 32 Q50 22 40 20 Z" fill="none" stroke="#fff" stroke-width="3" stroke-linejoin="round"/>
<path d="M40 20 L40 14 M40 14 Q44 12 46 16 M40 14 Q36 12 34 16" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
<path d="M36 36 Q40 32 44 36 M34 44 Q40 40 46 44" stroke="#fff" stroke-width="2" stroke-linecap="round" fill="none" opacity="0.7"/>
</svg>

之后

宽度:  |  高度:  |  大小: 787 B