- 新增3个数据模型: discount_marketing, discount_promo_code, discount_customer_bind - 新增CRUD定义: marketing/promo_code/customer_bind 的list和api - 新增init/data.json: appcodes编码(促销码类型、绑定方式) - init.py: bind_customer支持customerid参数覆盖(注册场景) - 折扣校验放宽至 0 < discount <= 1
41 lines
1.3 KiB
XML
41 lines
1.3 KiB
XML
{% set roles = get_user_roles(get_user()) %}
|
|
{
|
|
"widgettype":"Menu",
|
|
"options":{
|
|
"target":"root.page_center",
|
|
"cwidth":10,
|
|
"items":[
|
|
{
|
|
"name":"discount_list",
|
|
"label": "折扣管理",
|
|
"url": "{{entire_url('discount_list.ui')}}"
|
|
},
|
|
{
|
|
"name":"discount_detail_list",
|
|
"label": "折扣产品明细",
|
|
"url": "{{entire_url('discount_detail_list.ui')}}"
|
|
},
|
|
{
|
|
"name":"discount_marketing_list",
|
|
"label": "营销方案",
|
|
"url": "{{entire_url('discount_marketing_list/index.ui')}}"
|
|
},
|
|
{
|
|
"name":"discount_promo_code_list",
|
|
"label": "促销码",
|
|
"url": "{{entire_url('discount_promo_code_list/index.ui')}}"
|
|
},
|
|
{
|
|
"name":"discount_customer_bind_list",
|
|
"label": "客户归属",
|
|
"url": "{{entire_url('discount_customer_bind_list/index.ui')}}"
|
|
},
|
|
{
|
|
"name":"promotecode",
|
|
"label": "生成促销码",
|
|
"url": "{{entire_url('promote.ui')}}"
|
|
}
|
|
]
|
|
}
|
|
}
|