增加地图自定义图标并显示客列表

This commit is contained in:
2026-08-03 16:01:36 +08:00
parent 841295da9e
commit 696c613b80
5 changed files with 214 additions and 30 deletions
+2
View File
@@ -11,6 +11,8 @@ class CustomerLocation(models.Model):
description_zh = models.TextField('描述说明(中文)', blank=True, default='')
description_en = models.TextField('描述说明(英文)', blank=True, default='')
marker_color = models.CharField('标记点颜色', max_length=20, default='#165DFF', help_text='十六进制颜色值')
marker_icon = models.ImageField('自定义标记图标', upload_to='customers/markers/', blank=True, null=True,
help_text='建议尺寸 32x32 或 48x48 像素的 PNG 图片,留空则使用默认蓝色圆点')
sort_order = models.IntegerField('排序', default=0)
is_active = models.BooleanField('启用', default=True)
created_at = models.DateTimeField('创建时间', auto_now_add=True)