123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- import uuid
- from django.db import models
- from utils.models import BaseModel
- # Create your models here.
- # 图片上传
- def image_upload_to(instance, filename):
- return 'image/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # 富文本图片上传
- def image_upload_to_ditor(instance, filename):
- return 'editorimg/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # 富文本图片上传
- def image_upload_to_head(instance, filename):
- return 'headimg/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # 形象照上传
- def image_upload_to_visualize(instance, filename):
- return 'visualize/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # 组件预览图
- def image_upload_to_element(instance, filename):
- return 'elementstyleimage/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # 组件样式预览图
- def image_upload_to_style(instance, filename):
- return 'elementstyleimage/{filename}'.format(filename=str(uuid.uuid4().hex)+str(filename))
- # ==============================================================================================
- class Bar(BaseModel):
- authName = models.CharField(max_length=200, default='', verbose_name="菜单名称")
- path = models.CharField(max_length=200, default='', verbose_name="跳转路径")
- partment = models.ForeignKey(to='self',null=True,on_delete=models.CASCADE,verbose_name="所属父类", related_name="children")
- icon = models.CharField(max_length=200, default='', verbose_name="图标")
- class Meta:
- db_table = 'wn_bar'
- verbose_name = '菜单表'
- verbose_name_plural = verbose_name
- # ==============================================================================================
- def __str__(self):
- return self.authName
- def __unicode__(self):
- return self.authName
- class Navigation(BaseModel):
- name = models.CharField(max_length=200, default='', verbose_name="菜单名称")
- path = models.CharField(max_length=200, default='', verbose_name="跳转路径")
- partment = models.ForeignKey(to='self', null=True, on_delete=models.CASCADE, verbose_name="所属父类",
- related_name="children")
- icon = models.CharField(max_length=200, default='', verbose_name="图标")
- class Meta:
- db_table = 'web_navigation'
- verbose_name = '前台菜单表'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.name
- def __unicode__(self):
- return self.name
- class Company(BaseModel):
- name = models.CharField(max_length=200, default='', verbose_name="公司名称")
- imgurl = models.ImageField(default='', upload_to=image_upload_to, verbose_name='logo')
- class Meta:
- db_table = 'web_company'
- verbose_name = '公司名称'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.name
- def __unicode__(self):
- return self.name
- class Slideshow(BaseModel):
- imgurl = models.ImageField(default='', upload_to=image_upload_to, verbose_name='图片')
- url = models.CharField(default='',max_length=200,null=True,blank=True, verbose_name='跳转地址')
- sort = models.IntegerField(default=0,verbose_name='排序')
- class Meta:
- db_table = 'web_slideshow'
- verbose_name = '轮播图'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.id
- def __unicode__(self):
- return self.id
- class EditorImg(BaseModel):
- imgurl = models.ImageField(null=False, blank=False, upload_to=image_upload_to_ditor, verbose_name='图片')
- class Meta:
- db_table = 'web_editorimg'
- verbose_name = '富文本编辑器图片上传'
- verbose_name_plural = verbose_name
- class EditorContens(BaseModel):
- title = models.CharField(max_length=200,null=False, blank=False,verbose_name='标题')
- content = models.TextField(default='',verbose_name='内容')
- rem = models.CharField(max_length=200,default='',verbose_name='备注')
- class Meta:
- db_table = 'web_editor_contens'
- verbose_name = '富文本内容'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.title
- class Hmwe(BaseModel):
- title = models.CharField(max_length=200,null=False, blank=False,verbose_name='标题')
- content = models.TextField(default='',verbose_name='内容')
- rem = models.CharField(max_length=200,default='',verbose_name='备注')
- class Meta:
- db_table = 'web_mwe'
- verbose_name = '关于我们'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.title
- class Hmart(BaseModel):
- title = models.CharField(max_length=200,null=False, blank=False,verbose_name='标题')
- content = models.TextField(default='',verbose_name='内容')
- icon = models.CharField(max_length=200,default='',verbose_name='图标')
- rem = models.CharField(max_length=200,default='',verbose_name='备注')
- class Meta:
- db_table = 'web_hmart'
- verbose_name = '技术与服务'
- ordering = ['id']
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.title
- class Column(BaseModel):
- title = models.CharField(max_length=200,null=False, blank=False,verbose_name='标题')
- content = models.TextField(default='',verbose_name='内容')
- imgurl = models.CharField(max_length=200,null=True, blank=True,default='', verbose_name='图片')
- srot = models.IntegerField(null=True, blank=True,default=1, verbose_name='排序')
- class Meta:
- db_table = 'web_column'
- ordering = ['srot']
- verbose_name = '栏目标签'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.title
- class Hmcase(BaseModel):
- company = models.CharField(max_length=200,null=False, blank=False,verbose_name='公司')
- artisan = models.TextField(default='',verbose_name='项目')
- signatory = models.CharField(max_length=200,default='',verbose_name='签单人')
- satisfaction = models.CharField(max_length=200,default='',verbose_name='满意度')
- words = models.CharField(max_length=200,default='',verbose_name='谢辞')
- signatory_time = models.DateTimeField(auto_now_add=True, verbose_name="签单日期")
- rem = models.CharField(max_length=200,default='',verbose_name='备注')
- class Meta:
- db_table = 'web_hmcase'
- ordering = ['-id']
- verbose_name = '成功案例'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.company
- class Hmgroup(BaseModel):
- name = models.CharField(max_length=200,null=False, blank=False,verbose_name='姓名')
- imgurl = models.ImageField(null=True, blank=True, upload_to=image_upload_to_visualize, verbose_name='图片')
- intro = models.TextField(default='',verbose_name='简介')
- class Meta:
- db_table = 'web_hmgroup'
- verbose_name = '团队介绍'
- ordering = ['-id']
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.name
- class Hmaddress(BaseModel):
- content = models.CharField(max_length=200,null=False, blank=False,verbose_name='详细信息')
- add = models.CharField(max_length=200,null=False, blank=False,verbose_name='地址')
- tel = models.CharField(max_length=200,null=False, blank=False,verbose_name='电话')
- class Meta:
- db_table = 'web_hmaddress'
- verbose_name = '联系地址'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.content
- # =======================================================================================================================
- # 所有组件表
- class WnComponentModel(BaseModel):
- coding = models.CharField(max_length=200, null=True, blank=True, verbose_name='组件编码')
- name = models.CharField(max_length=200, null=True, blank=True, verbose_name='组件名称')
- imgurl = models.ImageField(null=True, blank=True, upload_to=image_upload_to_style, verbose_name='图片')
- type = models.CharField(max_length=200, null=True, blank=True, verbose_name='所属类别')
- class Meta:
- db_table = 'wn_component'
- verbose_name = '组件表'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.name
- # 使用的组件
- class WnComponentKeyModel(BaseModel):
- coding = models.CharField(max_length=200, null=True, blank=True, verbose_name='组件编码')
- codingname = models.CharField(max_length=200, null=True, blank=True, verbose_name='组件名称')
- name = models.CharField(max_length=200, null=True, blank=True, verbose_name='标题名称')
- statuscss = models.CharField(max_length=200, null=True, blank=True, verbose_name='使用的组件样式id')
- componentimgurl = models.CharField(max_length=200,null=True, blank=True, verbose_name='组件图片')
- styleimgurl = models.CharField(max_length=200,null=True, blank=True, verbose_name='组件样式图片')
- sort = models.IntegerField(null=True, blank=True, verbose_name='排序')
- class Meta:
- db_table = 'wn_componentkey'
- verbose_name = '使用中的组件'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.name
- # 组件样式分组
- class WnComponentCssGroupModel(BaseModel):
- coding = models.CharField(max_length=200, null=True, blank=True, verbose_name='组件编码')
- component = models.TextField(null=True, blank=True, verbose_name='使用组件名称')
- manner = models.TextField(null=True, blank=True, verbose_name='风格')
- styleimgurl = models.ImageField(null=True, blank=True, upload_to=image_upload_to_style,verbose_name='组件样式图片')
- spare1 = models.TextField(null=True, blank=True, verbose_name='备用字段1')
- spare2 = models.TextField(null=True, blank=True, verbose_name='备用字段2')
- spare3 = models.TextField( null=True, blank=True, verbose_name='备用字段3')
- # componentkey = models.ForeignKey(WnComponentKeyModel, on_delete=models.CASCADE, verbose_name='使用的组件id')
- element_border = models.TextField( null=True, blank=True, verbose_name='元素边框')
- element_padding = models.TextField(null=True, blank=True, verbose_name='元素内边距')
- element_margin = models.TextField(null=True, blank=True, verbose_name='元素外边距')
- element_background_color = models.TextField(null=True, blank=True, verbose_name='元素背景颜色')
- element_font = models.TextField( null=True, blank=True, verbose_name='元素字体大小')
- element_box_shadow = models.TextField( null=True, blank=True, verbose_name='元素元素阴影')
- element_text_shadow = models.TextField(null=True, blank=True, verbose_name='元素文字阴影')
- element_border_radius = models.TextField(null=True, blank=True, verbose_name='元素元素圆角')
- # =================================================总体的
- # --原始的
- total_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始边框')
- total_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始内边距')
- total_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始外边距')
- total_d_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始背景颜色')
- total_d_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始字体大小')
- total_d_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始元素阴影')
- total_d_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始文字阴影')
- total_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始元素圆角')
- total_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始透明度')
- total_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始过渡')
- total_d_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始过渡时间')
- total_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体原始动画')
- # --鼠标移上去的
- total_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中边框')
- total_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中内边距')
- total_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中外边距')
- total_h_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中背景颜色')
- total_h_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中字体大小')
- total_h_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中元素阴影')
- total_h_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中文字阴影')
- total_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中元素圆角')
- total_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中透明度')
- total_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中过渡')
- total_h_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体过渡选中时间')
- total_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中动画')
- # list=====================================列表
- # --原始的
- list_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始边框')
- list_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始内边距')
- list_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始外边距')
- list_d_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始背景颜色')
- list_d_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始字体大小')
- list_d_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始元素阴影')
- list_d_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始文字阴影')
- list_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始元素圆角')
- list_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始透明度')
- list_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始过渡')
- list_d_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始过渡时间')
- list_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始动画')
- # --鼠标移上去的
- list_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中边框')
- list_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中内边距')
- list_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中外边距')
- list_h_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中背景颜色')
- list_h_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中字体大小')
- list_h_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中元素阴影')
- list_h_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中文字阴影')
- list_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中元素圆角')
- list_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中透明度')
- list_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中过渡')
- list_h_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表过渡选中时间')
- list_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中动画')
- # crucial ============================重要的图片区
- # 原始的
- crucial_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始边框')
- crucial_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始内边距')
- crucial_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始外边距')
- crucial_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始元素阴影')
- crucial_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始元素圆角')
- crucial_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始透明度')
- crucial_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='重要图片原始过渡')
- crucial_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='重要图片原始过渡选中时间')
- crucial_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始动画')
- # 选中的
- crucial_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中边框')
- crucial_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中内边距')
- crucial_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中外边距')
- crucial_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中元素阴影')
- crucial_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中元素圆角')
- crucial_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中透明度')
- crucial_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='重要图片选中过渡')
- crucial_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='重要图片选中过渡选中时间')
- crucial_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中动画')
- # medium ==============================中等的图片区
- # 原始的
- medium_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始边框')
- medium_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始内边距')
- medium_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始外边距')
- medium_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始元素阴影')
- medium_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始元素圆角')
- medium_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始透明度')
- medium_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='中等图片原始过渡')
- medium_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='中等图片原始过渡选中时间')
- medium_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始动画')
- # 选中的
- medium_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中边框')
- medium_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中内边距')
- medium_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中外边距')
- medium_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中元素阴影')
- medium_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中元素圆角')
- medium_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中透明度')
- medium_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='中等图片选中过渡')
- medium_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='中等图片选中过渡选中时间')
- medium_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中动画')
- # minor =============================================================================次要的图片区
- # 原始的
- minor_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始边框')
- minor_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始内边距')
- minor_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始外边距')
- minor_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始元素阴影')
- minor_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始元素圆角')
- minor_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始透明度')
- minor_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='次要图片原始过渡')
- minor_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='次要图片原始过渡选中时间')
- minor_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始动画')
- # 选中的
- minor_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中边框')
- minor_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中内边距')
- minor_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中外边距')
- minor_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中元素阴影')
- minor_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中元素圆角')
- minor_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中透明度')
- minor_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='次要图片选中过渡')
- minor_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='次要图片选中过渡选中时间')
- minor_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中动画')
- class Meta:
- db_table = 'wn_componentcssgroup'
- verbose_name = '组件样式分组'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.component
- # 组件样式设置
- class WnComponentCssModel(BaseModel):
- coding = models.CharField(max_length=200,null=True, blank=True,verbose_name='组件编码')
- component = models.CharField(max_length=200,null=True, blank=True,verbose_name='使用组件名称')
- spare1 = models.TextField(null=True, blank=True, verbose_name='备用字段1')
- spare2 = models.TextField(null=True, blank=True, verbose_name='备用字段2')
- spare3 = models.TextField(null=True, blank=True, verbose_name='备用字段3')
- componentkey = models.ForeignKey(WnComponentKeyModel, on_delete=models.CASCADE, verbose_name='使用的组件id')
- element_border = models.TextField(null=True, blank=True, verbose_name='元素边框')
- element_padding = models.TextField(null=True, blank=True, verbose_name='元素内边距')
- element_margin = models.TextField(null=True, blank=True, verbose_name='元素外边距')
- element_background_color = models.TextField(null=True, blank=True, verbose_name='元素背景颜色')
- element_font = models.TextField(null=True, blank=True, verbose_name='元素字体大小')
- element_box_shadow = models.TextField(null=True, blank=True, verbose_name='元素元素阴影')
- element_text_shadow = models.TextField(null=True, blank=True, verbose_name='元素文字阴影')
- element_border_radius = models.TextField(null=True, blank=True, verbose_name='元素元素圆角')
- # =================================================总体的
- # --原始的
- total_d_border = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始边框')
- total_d_padding = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始内边距')
- total_d_margin = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始外边距')
- total_d_background_color = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始背景颜色')
- total_d_font = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始字体大小')
- total_d_box_shadow = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始元素阴影')
- total_d_text_shadow = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始文字阴影')
- total_d_border_radius = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始元素圆角')
- total_d_opacity = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始透明度')
- total_d_transition_property = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始过渡')
- total_d_transition_duration = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始过渡时间')
- total_d_animation = models.CharField(max_length=200,null=True, blank=True,verbose_name='总体原始动画')
- # --鼠标移上去的
- total_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中边框')
- total_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中内边距')
- total_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中外边距')
- total_h_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中背景颜色')
- total_h_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中字体大小')
- total_h_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中元素阴影')
- total_h_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中文字阴影')
- total_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中元素圆角')
- total_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中透明度')
- total_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中过渡')
- total_h_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体过渡选中时间')
- total_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='总体选中动画')
- # list=====================================列表
- # --原始的
- list_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始边框')
- list_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始内边距')
- list_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始外边距')
- list_d_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始背景颜色')
- list_d_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始字体大小')
- list_d_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始元素阴影')
- list_d_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始文字阴影')
- list_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始元素圆角')
- list_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始透明度')
- list_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始过渡')
- list_d_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始过渡时间')
- list_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表原始动画')
- # --鼠标移上去的
- list_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中边框')
- list_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中内边距')
- list_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中外边距')
- list_h_background_color = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中背景颜色')
- list_h_font = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中字体大小')
- list_h_box_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中元素阴影')
- list_h_text_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中文字阴影')
- list_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中元素圆角')
- list_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中透明度')
- list_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中过渡')
- list_h_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表过渡选中时间')
- list_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='列表选中动画')
- # crucial ============================重要的图片区
- # 原始的
- crucial_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始边框')
- crucial_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始内边距')
- crucial_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始外边距')
- crucial_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始元素阴影')
- crucial_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始元素圆角')
- crucial_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始透明度')
- crucial_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始过渡')
- crucial_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始过渡选中时间')
- crucial_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片原始动画')
- # 选中的
- crucial_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中边框')
- crucial_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中内边距')
- crucial_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中外边距')
- crucial_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中元素阴影')
- crucial_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中元素圆角')
- crucial_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中透明度')
- crucial_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中过渡')
- crucial_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,verbose_name='重要图片选中过渡选中时间')
- crucial_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='重要图片选中动画')
- # medium ==============================中等的图片区
- # 原始的
- medium_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始边框')
- medium_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始内边距')
- medium_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始外边距')
- medium_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始元素阴影')
- medium_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始元素圆角')
- medium_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始透明度')
- medium_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始过渡')
- medium_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True,verbose_name='中等图片原始过渡选中时间')
- medium_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片原始动画')
- # 选中的
- medium_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中边框')
- medium_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中内边距')
- medium_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中外边距')
- medium_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中元素阴影')
- medium_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中元素圆角')
- medium_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中透明度')
- medium_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中过渡')
- medium_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,verbose_name='中等图片选中过渡选中时间')
- medium_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='中等图片选中动画')
- # minor =============================================================================次要的图片区
- # 原始的
- minor_img_d_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始边框')
- minor_img_d_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始内边距')
- minor_img_d_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始外边距')
- minor_img_d_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始元素阴影')
- minor_img_d_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始元素圆角')
- minor_img_d_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始透明度')
- minor_img_d_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始过渡')
- minor_img_d_transition_duration = models.CharField(max_length=200, null=True, blank=True,
- verbose_name='次要图片原始过渡选中时间')
- minor_img_d_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片原始动画')
- # 选中的
- minor_img_h_border = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中边框')
- minor_img_h_padding = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中内边距')
- minor_img_h_margin = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中外边距')
- minor_img_h_shadow = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中元素阴影')
- minor_img_h_border_radius = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中元素圆角')
- minor_img_h_opacity = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中透明度')
- minor_img_h_transition_property = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中过渡')
- minor_img_h_transition_duration = models.CharField(max_length=200, null=True, blank=True,verbose_name='次要图片选中过渡选中时间')
- minor_img_h_animation = models.CharField(max_length=200, null=True, blank=True, verbose_name='次要图片选中动画')
- class Meta:
- db_table = 'wn_componentcss'
- verbose_name = '组件样式'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.component
- # 幻灯片组件的内容
- class WnSlideshowModel(BaseModel):
- title = models.CharField(max_length=200, null=True, blank=True, verbose_name='标题')
- content = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- url = models.CharField(max_length=200, null=True, blank=True, verbose_name='跳转地址')
- componentkey = models.CharField(max_length=200, null=True, blank=True, verbose_name='归属id')
- class Meta:
- db_table = 'wn_slideshow'
- verbose_name = '幻灯片内容'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.title
- # 内容中心组件的内容
- class WnContentModel(BaseModel):
- content1 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl1 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content2 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl2 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content3 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl3 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content4 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl4 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content5 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl5 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content6 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl6 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content7 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl7 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content8 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl8 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content9 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl9 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- content10 = models.CharField(max_length=200, null=True, blank=True, verbose_name='内容')
- imgurl10 = models.ImageField(null=True, blank=True, upload_to=image_upload_to_ditor, verbose_name='图片')
- class Meta:
- db_table = 'wn_content'
- verbose_name = '内容中心区'
- verbose_name_plural = verbose_name
- def __str__(self):
- return self.id
|