【增加】增加每日结算设置

This commit is contained in:
liqianjin 2023-02-17 10:06:08 +08:00
parent 50a1f3e9a4
commit a2b0072e1c
8 changed files with 692 additions and 361 deletions

View File

@ -3,280 +3,280 @@
// | 店铺端菜单设置
// +----------------------------------------------------------------------
return [
[
'name' => 'PROMOTION_FENXIAO',
'title' => '分销管理',
'url' => 'fenxiao://shop/fenxiao/index',
'parent' => 'PROMOTION_CENTER',
'picture' => 'addon/fenxiao/shop/view/public/img/distribution_new.png',
'picture_selected' => 'addon/fenxiao/shop/view/public/img/distribution_select.png',
'is_show' => 1,
'sort' => 100,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_INDEX',
'title' => '分销概况',
'url' => 'fenxiao://shop/fenxiao/index',
'is_show' => 1,
'sort' => 1,
'child_list' => []
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_LIST',
'title' => '分销商品',
'url' => 'fenxiao://shop/goods/lists',
'is_show' => 1,
'sort' => 2,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_GOODS_DETAIL',
'title' => '商品详情',
'url' => 'fenxiao://shop/goods/detail',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_CONFIG',
'title' => '商品设置',
'url' => 'fenxiao://shop/goods/config',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_MODIFY',
'title' => '状态设置',
'url' => 'fenxiao://shop/goods/modify',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'PROMOTION_FENXIAO_SET_GOODS_IS_FENXIAO',
'title' => '是否参与分销',
'url' => 'fenxiao://shop/goods/setGoodsIsFenxiao',
'sort' => 1,
'is_show' => 0
],
]
],
[
'name' => 'PROMOTION_FENXIAO_ROOT',
'title' => '分销商',
'url' => 'fenxiao://shop/fenxiao/lists',
'is_show' => 1,
'is_control' => 1,
'sort' => 3,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_DETAIL',
'title' => '分销商信息',
'url' => 'fenxiao://shop/fenxiao/detail',
'is_show' => 1,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_TEAM',
'title' => '分销商团队',
'url' => 'fenxiao://shop/fenxiao/team',
'is_show' => 1,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ACCOUNT',
'title' => '账户明细',
'url' => 'fenxiao://shop/fenxiao/account',
'is_show' => 1,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ORDERMANAGE',
'title' => '订单管理',
'url' => 'fenxiao://shop/fenxiao/order',
'is_show' => 1,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ORDERMANAGEDETAIL',
'title' => '订单详情',
'url' => 'fenxiao://shop/fenxiao/orderdetail',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ADD',
'title' => '添加分销商',
'url' => 'fenxiao://shop/fenxiao/add',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_FROZEN',
'title' => '冻结',
'url' => 'fenxiao://shop/fenxiao/frozen',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_UNFROZEN',
'title' => '恢复正常',
'url' => 'fenxiao://shop/fenxiao/unfrozen',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_CHANGE_LEVEL',
'title' => '变更上级分销商',
'url' => 'fenxiao://shop/fenxiao/confirmChange',
'is_show' => 0,
'is_control' => 1,
],
],
],
[
'name' => 'PROMOTION_FENXIAO_APPLY',
'title' => '分销商申请',
'url' => 'fenxiao://shop/fenxiao/apply',
'is_show' => 1,
'sort' => 4,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_PASS',
'title' => '审核通过',
'url' => 'fenxiao://shop/fenxiao/pass',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_REFUSE',
'title' => '审核拒绝',
'url' => 'fenxiao://shop/fenxiao/refuse',
'is_show' => 0,
'is_control' => 1,
],
],
],
[
'name' => 'PROMOTION_FENXIAO_ORDER',
'title' => '分销订单',
'url' => 'fenxiao://shop/order/lists',
'is_show' => 1,
'sort' => 5,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_ORDER_DETAIL',
'title' => '订单详情',
'url' => 'fenxiao://shop/order/detail',
'sort' => 1,
'is_show' => 0
],
]
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL',
'title' => '分销等级',
'url' => 'fenxiao://shop/level/lists',
'is_show' => 1,
'is_control' => 1,
'sort' => 6,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_LEVEL_ADD',
'title' => '添加等级',
'url' => 'fenxiao://shop/level/add',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_EDIT',
'title' => '编辑等级',
'url' => 'fenxiao://shop/level/edit',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_STATUS',
'title' => '等级状态设置',
'url' => 'fenxiao://shop/level/status',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_DELETE',
'title' => '删除等级',
'url' => 'fenxiao://shop/level/delete',
'is_show' => 0,
]
]
],
[
'name' => 'PROMOTION_FENXIAO_CONFIG',
'title' => '分销设置',
'url' => 'fenxiao://shop/config/basics',
'is_show' => 1,
'is_control' => 1,
'sort' => 7,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_BASICS',
'title' => '基础设置',
'url' => 'fenxiao://shop/config/basics',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_AGREEMENT',
'title' => '申请协议',
'url' => 'fenxiao://shop/config/agreement',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_SETTLEMENT',
'title' => '提现设置',
'url' => 'fenxiao://shop/config/settlement',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_WORDS',
'title' => '文字设置',
'url' => 'fenxiao://shop/config/words',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_PEOMOTE_RULE',
'title' => '推广活动',
'url' => 'fenxiao://shop/config/promoterule',
'is_show' => 1,
]
]
],
// [
// 'name' => 'PROMOTION_FENXIAO_MARKET',
// 'title' => '分销市场',
// 'url' => 'fenxiao://shop/market/index',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 8,
// 'child_list' => []
// ],
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE',
'title' => '分销海报',
'url' => 'fenxiao://shop/postertemplate/lists',
'is_show' => 1,
'is_control' => 1,
'sort' => 11,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_ADD',
'title' => '添加海报',
'url' => 'fenxiao://shop/postertemplate/addpostertemplate',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_EDIT',
'title' => '编辑海报',
'url' => 'fenxiao://shop/postertemplate/editpostertemplate',
'is_show' => 1,
]
]
],
]
],
// [
// 'name' => 'PROMOTION_FENXIAO',
// 'title' => '分销管理',
// 'url' => 'fenxiao://shop/fenxiao/index',
// 'parent' => 'PROMOTION_CENTER',
// 'picture' => 'addon/fenxiao/shop/view/public/img/distribution_new.png',
// 'picture_selected' => 'addon/fenxiao/shop/view/public/img/distribution_select.png',
// 'is_show' => 1,
// 'sort' => 100,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_INDEX',
// 'title' => '分销概况',
// 'url' => 'fenxiao://shop/fenxiao/index',
// 'is_show' => 1,
// 'sort' => 1,
// 'child_list' => []
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_GOODS_LIST',
// 'title' => '分销商品',
// 'url' => 'fenxiao://shop/goods/lists',
// 'is_show' => 1,
// 'sort' => 2,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_GOODS_DETAIL',
// 'title' => '商品详情',
// 'url' => 'fenxiao://shop/goods/detail',
// 'is_show' => 0,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_GOODS_CONFIG',
// 'title' => '商品设置',
// 'url' => 'fenxiao://shop/goods/config',
// 'sort' => 1,
// 'is_show' => 0
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_GOODS_MODIFY',
// 'title' => '状态设置',
// 'url' => 'fenxiao://shop/goods/modify',
// 'sort' => 1,
// 'is_show' => 0
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_SET_GOODS_IS_FENXIAO',
// 'title' => '是否参与分销',
// 'url' => 'fenxiao://shop/goods/setGoodsIsFenxiao',
// 'sort' => 1,
// 'is_show' => 0
// ],
// ]
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ROOT',
// 'title' => '分销商',
// 'url' => 'fenxiao://shop/fenxiao/lists',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 3,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_DETAIL',
// 'title' => '分销商信息',
// 'url' => 'fenxiao://shop/fenxiao/detail',
// 'is_show' => 1,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_TEAM',
// 'title' => '分销商团队',
// 'url' => 'fenxiao://shop/fenxiao/team',
// 'is_show' => 1,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ACCOUNT',
// 'title' => '账户明细',
// 'url' => 'fenxiao://shop/fenxiao/account',
// 'is_show' => 1,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ORDERMANAGE',
// 'title' => '订单管理',
// 'url' => 'fenxiao://shop/fenxiao/order',
// 'is_show' => 1,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ORDERMANAGEDETAIL',
// 'title' => '订单详情',
// 'url' => 'fenxiao://shop/fenxiao/orderdetail',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ADD',
// 'title' => '添加分销商',
// 'url' => 'fenxiao://shop/fenxiao/add',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_FROZEN',
// 'title' => '冻结',
// 'url' => 'fenxiao://shop/fenxiao/frozen',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_UNFROZEN',
// 'title' => '恢复正常',
// 'url' => 'fenxiao://shop/fenxiao/unfrozen',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_CHANGE_LEVEL',
// 'title' => '变更上级分销商',
// 'url' => 'fenxiao://shop/fenxiao/confirmChange',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// ],
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_APPLY',
// 'title' => '分销商申请',
// 'url' => 'fenxiao://shop/fenxiao/apply',
// 'is_show' => 1,
// 'sort' => 4,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_PASS',
// 'title' => '审核通过',
// 'url' => 'fenxiao://shop/fenxiao/pass',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_REFUSE',
// 'title' => '审核拒绝',
// 'url' => 'fenxiao://shop/fenxiao/refuse',
// 'is_show' => 0,
// 'is_control' => 1,
// ],
// ],
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_ORDER',
// 'title' => '分销订单',
// 'url' => 'fenxiao://shop/order/lists',
// 'is_show' => 1,
// 'sort' => 5,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_ORDER_DETAIL',
// 'title' => '订单详情',
// 'url' => 'fenxiao://shop/order/detail',
// 'sort' => 1,
// 'is_show' => 0
// ],
// ]
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_LEVEL',
// 'title' => '分销等级',
// 'url' => 'fenxiao://shop/level/lists',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 6,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_LEVEL_ADD',
// 'title' => '添加等级',
// 'url' => 'fenxiao://shop/level/add',
// 'is_show' => 0,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_LEVEL_EDIT',
// 'title' => '编辑等级',
// 'url' => 'fenxiao://shop/level/edit',
// 'is_show' => 0,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_LEVEL_STATUS',
// 'title' => '等级状态设置',
// 'url' => 'fenxiao://shop/level/status',
// 'is_show' => 0,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_LEVEL_DELETE',
// 'title' => '删除等级',
// 'url' => 'fenxiao://shop/level/delete',
// 'is_show' => 0,
// ]
// ]
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_CONFIG',
// 'title' => '分销设置',
// 'url' => 'fenxiao://shop/config/basics',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 7,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_BASICS',
// 'title' => '基础设置',
// 'url' => 'fenxiao://shop/config/basics',
// 'is_show' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_AGREEMENT',
// 'title' => '申请协议',
// 'url' => 'fenxiao://shop/config/agreement',
// 'is_show' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_SETTLEMENT',
// 'title' => '提现设置',
// 'url' => 'fenxiao://shop/config/settlement',
// 'is_show' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_WORDS',
// 'title' => '文字设置',
// 'url' => 'fenxiao://shop/config/words',
// 'is_show' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_PEOMOTE_RULE',
// 'title' => '推广活动',
// 'url' => 'fenxiao://shop/config/promoterule',
// 'is_show' => 1,
// ]
// ]
// ],
// // [
// // 'name' => 'PROMOTION_FENXIAO_MARKET',
// // 'title' => '分销市场',
// // 'url' => 'fenxiao://shop/market/index',
// // 'is_show' => 1,
// // 'is_control' => 1,
// // 'sort' => 8,
// // 'child_list' => []
// // ],
// [
// 'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE',
// 'title' => '分销海报',
// 'url' => 'fenxiao://shop/postertemplate/lists',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 11,
// 'child_list' => [
// [
// 'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_ADD',
// 'title' => '添加海报',
// 'url' => 'fenxiao://shop/postertemplate/addpostertemplate',
// 'is_show' => 1,
// ],
// [
// 'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_EDIT',
// 'title' => '编辑海报',
// 'url' => 'fenxiao://shop/postertemplate/editpostertemplate',
// 'is_show' => 1,
// ]
// ]
// ],
//
// ]
// ],
[
'name' => 'PROMOTION_FENXIAO_WITHDRAW',
'title' => '分销提现',

View File

@ -45,6 +45,10 @@ class Config extends BaseModel
'order_give_a_contribution_ratio' => $data['order_give_a_contribution_ratio'],
'order_give_d_points_ratio' => $data['order_give_d_points_ratio'],
'order_give_d_contribution_ratio' => $data['order_give_d_contribution_ratio'],
'no_contribution_points_ratio' => $data['no_contribution_points_ratio'],
'contribution_points_ratio' => $data['contribution_points_ratio'],
'settlement_points_to_balance_money_ratio' => $data['settlement_points_to_balance_money_ratio'],
'settlement_points_to_point_ratio' => $data['settlement_points_to_point_ratio'],
];
$config->setConfig($basics_data, '分销基本配置', $is_use, [['site_id', '=', $site_id], ['app_module', '=', 'shop'], ['config_key', '=', 'FENXIAO_BASICS_CONFIG']]);

View File

@ -318,14 +318,16 @@ class FenxiaoOrder extends BaseModel
*/
public function daySettlement(){
$fenxiaoList = model('fenxiao')->getList([['status', '=', 1],['points', '>', 0]],'fenxiao_id,fenxiao_name,points,contribution,site_id,member_id');
$config_model = new Config();
$menber_account = new MemberAccount();
$fenxiao_account = new FenxiaoAccount();
foreach($fenxiaoList as $fenxiao){
$point_ratio = 0.5;//settlement_points_to_point_ratio
$balance_money_ratio = 0.5;//settlement_points_to_balance_money_ratio
$points_ratio = 0.0005;//no_contribution_points_ratio
$basic_config = $config_model->getFenxiaoBasicsConfig($fenxiao['site_id'])['data']['value'];
$point_ratio = $basic_config['settlement_points_to_point_ratio'] / 100;//0.5
$balance_money_ratio = $basic_config['settlement_points_to_balance_money_ratio'] / 100;//0.5
$points_ratio = $basic_config['no_contribution_points_ratio'] / 100;//0.0005
if($fenxiao['contribution'] > 0){
$points_ratio = 0.001;//contribution_points_ratio
$points_ratio = $basic_config['contribution_points_ratio'] / 100;//0.001
}
$points = $fenxiao['points'] * $points_ratio;
$point = $points * $point_ratio;

View File

@ -57,6 +57,10 @@ class Config extends BaseShop
'order_give_a_contribution_ratio' => input('order_give_a_contribution_ratio', 0),
'order_give_d_points_ratio' => input('order_give_d_points_ratio', 0),
'order_give_d_contribution_ratio' => input('order_give_d_contribution_ratio', 0),
'no_contribution_points_ratio' => input('no_contribution_points_ratio', 0),
'contribution_points_ratio' => input('contribution_points_ratio', 0),
'settlement_points_to_balance_money_ratio' => input('settlement_points_to_balance_money_ratio', 0),
'settlement_points_to_point_ratio' => input('settlement_points_to_point_ratio', 0),
];
$res = $model->setFenxiaoBasicsConfig($data, 1, $this->site_id);

View File

@ -52,7 +52,7 @@
<div class="word-aux ">下单赠送购房券,得消费额百分比</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">下单分享A位置得积分</label>
<label class="layui-form-label">下单A位置得积分</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="order_give_a_points_ratio" class="layui-input ns-len-mid" value="{$basics_info.order_give_a_points_ratio??0}" />
@ -62,7 +62,7 @@
<div class="word-aux ">下单分享A位置得积分得消费额百分比</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">下单分享A位置得贡献值</label>
<label class="layui-form-label">下单A位置得贡献值</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="order_give_a_contribution_ratio" class="layui-input ns-len-mid" value="{$basics_info.order_give_a_contribution_ratio??0}" />
@ -72,7 +72,7 @@
<div class="word-aux ">下单分享A位置得贡献值得消费额百分比</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">下单分享D位置得积分</label>
<label class="layui-form-label">下单D位置得积分</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="order_give_d_points_ratio" class="layui-input ns-len-mid" value="{$basics_info.order_give_d_points_ratio??0}" />
@ -82,7 +82,7 @@
<div class="word-aux ">下单分享D位置得积分得消费额百分比</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">下单分享D位置得贡献值</label>
<label class="layui-form-label">下单D位置得贡献值</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="order_give_d_contribution_ratio" class="layui-input ns-len-mid" value="{$basics_info.order_give_d_contribution_ratio??0}" />
@ -93,6 +93,50 @@
</div>
<div class="layui-form-item">
<label class="layui-form-label">无贡献值,积分每天定额返:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="no_contribution_points_ratio" class="layui-input ns-len-mid" value="{$basics_info.no_contribution_points_ratio??0}" />
</div>
<div class="layui-form-mid">%</div>
</div>
<div class="word-aux ">无贡献值,积分每天定额返</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">有贡献值,积分每天定额返:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="contribution_points_ratio" class="layui-input ns-len-mid" value="{$basics_info.contribution_points_ratio??0}" />
</div>
<div class="layui-form-mid">%</div>
</div>
<div class="word-aux ">有贡献值,积分每天定额返</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">定额返消费券占比:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="settlement_points_to_balance_money_ratio" class="layui-input ns-len-mid" value="{$basics_info.settlement_points_to_balance_money_ratio??0}" />
</div>
<div class="layui-form-mid">%</div>
</div>
<div class="word-aux ">定额返消费券占比</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">定额返兑换券占比:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
<input type="number" name="settlement_points_to_point_ratio" class="layui-input ns-len-mid" value="{$basics_info.settlement_points_to_point_ratio??0}" />
</div>
<div class="layui-form-mid">%</div>
</div>
<div class="word-aux ">定额返兑换券占比</div>
</div>
<div class="layui-form-item" style="display:none">
<label class="layui-form-label">是否开启分销:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
@ -102,7 +146,7 @@
</div>
</div>
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<label class="layui-form-label">分销层级:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
@ -112,7 +156,7 @@
</div>
</div>
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<label class="layui-form-label">是否开启自购分佣:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
@ -123,7 +167,7 @@
<div class="word-aux ">开启自购,分销商购买自身获得一级佣金<br/>关闭自购,分销商的上级分销商获得一级佣金,自身不再返佣</div>
</div>
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-form-item distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<label class="layui-form-label">是否展示商品详情一级佣金:</label>
<div class="layui-input-block">
<div class="layui-input-inline">
@ -137,7 +181,7 @@
</div>
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<div class="layui-card-header">
<span class="card-title">上下线关系</span>
</div>
@ -156,7 +200,7 @@
</div>
</div>
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<div class="layui-card-header">
<span class="card-title">分销商资格</span>
</div>
@ -244,7 +288,7 @@
</div>
</div>
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}">
<div class="layui-card card-common card-brief distribution-index {if $basics_info.level == 0}layui-hide{/if}" style="display:none">
<div class="layui-card-header">
<span class="card-title">默认分销佣金比率</span>
</div>

View File

@ -41,62 +41,62 @@
</style>
{/block}
{block name="main"}
<div class="commission-wrap">
<div class="header">
<span>佣金概览</span>
</div>
<div class="commission-overview">
<div class="li">
<div class="title prompt-block">
可提现佣金(元)
<div class="prompt">
<i class="iconfont iconwenhao1"></i>
<div class="prompt-box">
<div class="prompt-con">所有分销订单已完成,佣金已结算,可以提现的佣金(不包含已提现的佣金)</div>
</div>
</div>
</div>
<p class="money">{$fenxiao_account}</p>
</div>
<div class="li">
<div class="title prompt-block">
提现待审核(元)
<div class="prompt">
<i class="iconfont iconwenhao1"></i>
<div class="prompt-box">
<div class="prompt-con">已申请提现等待管理审核的佣金</div>
</div>
</div>
</div>
<p class="money">{if $account_data.account_withdraw_apply == null} 0.00 {else/}{$account_data.account_withdraw_apply}{/if}</p>
</div>
<div class="li">
<div class="title prompt-block">
提现佣金(元)
<div class="prompt">
<i class="iconfont iconwenhao1"></i>
<div class="prompt-box">
<div class="prompt-con">所有已经提现成功的佣金总和</div>
</div>
</div>
</div>
<p class="money">{if $account_data.account_withdraw == null} 0.00 {else/}{$account_data.account_withdraw}{/if}</p>
</div>
<div class="li">
<div class="title prompt-block">
进行中佣金(元)
<div class="prompt">
<i class="iconfont iconwenhao1"></i>
<div class="prompt-box">
<div class="prompt-con">指所有分销订单待结算佣金的和</div>
</div>
</div>
</div>
<p class="money">{$commission_money}</p>
</div>
</div>
</div>
<div class="summary-wrap">
<!--<div class="commission-wrap">-->
<!-- <div class="header">-->
<!-- <span>佣金概览</span>-->
<!-- </div>-->
<!-- <div class="commission-overview">-->
<!-- <div class="li">-->
<!-- <div class="title prompt-block">-->
<!-- 可提现佣金(元)-->
<!-- <div class="prompt">-->
<!-- <i class="iconfont iconwenhao1"></i>-->
<!-- <div class="prompt-box">-->
<!-- <div class="prompt-con">所有分销订单已完成,佣金已结算,可以提现的佣金(不包含已提现的佣金)</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <p class="money">{$fenxiao_account}</p>-->
<!-- </div>-->
<!-- <div class="li">-->
<!-- <div class="title prompt-block">-->
<!-- 提现待审核(元)-->
<!-- <div class="prompt">-->
<!-- <i class="iconfont iconwenhao1"></i>-->
<!-- <div class="prompt-box">-->
<!-- <div class="prompt-con">已申请提现等待管理审核的佣金</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <p class="money">{if $account_data.account_withdraw_apply == null} 0.00 {else/}{$account_data.account_withdraw_apply}{/if}</p>-->
<!-- </div>-->
<!-- <div class="li">-->
<!-- <div class="title prompt-block">-->
<!-- 提现佣金(元)-->
<!-- <div class="prompt">-->
<!-- <i class="iconfont iconwenhao1"></i>-->
<!-- <div class="prompt-box">-->
<!-- <div class="prompt-con">所有已经提现成功的佣金总和</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <p class="money">{if $account_data.account_withdraw == null} 0.00 {else/}{$account_data.account_withdraw}{/if}</p>-->
<!-- </div>-->
<!-- <div class="li">-->
<!-- <div class="title prompt-block">-->
<!-- 进行中佣金(元)-->
<!-- <div class="prompt">-->
<!-- <i class="iconfont iconwenhao1"></i>-->
<!-- <div class="prompt-box">-->
<!-- <div class="prompt-con">指所有分销订单待结算佣金的和</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <p class="money">{$commission_money}</p>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<div class="summary-wrap" style="margin-top: 20px;">
<div class="fenxiao-wrap">
<div class="header">
<span>分销商概览</span>

View File

@ -187,25 +187,28 @@
field: 'fenxiao_name',
title: '分销商名称',
unresize: 'false',
width: '10%'
width: '20%'
},{
title: '上级分销商',
unresize: 'false',
width: '15%',
width: '20%',
templet: '#parent_name',
align:'left'
}, {
title: '分销等级',
unresize: 'false',
width: '15%',
templet: '#level_name',
align:'left'
}, {
title: '佣金账户',
width:'10%',
unresize: 'false',
templet: '#account'
}, {
},
// {
// title: '分销等级',
// unresize: 'false',
// width: '15%',
// templet: '#level_name',
// align:'left'
// },
// {
// title: '佣金账户',
// width:'10%',
// unresize: 'false',
// templet: '#account'
// },
{
title: '团队人数',
unresize: 'false',
@ -218,7 +221,7 @@
title: '当前状态',
templet: '#status',
unresize: 'false',
width: '7%'
width: '12%'
}, {
field: 'create_time',
title: '添加时间',

View File

@ -1831,17 +1831,291 @@ return [
]
],
[
'name' => 'PROMOTION_FENXIAO',
'title' => '分销',
'url' => 'fenxiao://shop/fenxiao/index',
'parent' => '',
'picture_selected' => 'addon/fenxiao/shop/view/public/img/distribution_select.png',
'picture' => 'iconyingxiaozhongxin',
'is_show' => 1,
'sort' => 6,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_INDEX',
'title' => '分销概况',
'url' => 'fenxiao://shop/fenxiao/index',
'is_show' => 1,
'sort' => 1,
'child_list' => []
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_LIST',
'title' => '分销商品',
'url' => 'fenxiao://shop/goods/lists',
'is_show' => 1,
'sort' => 2,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_GOODS_DETAIL',
'title' => '商品详情',
'url' => 'fenxiao://shop/goods/detail',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_CONFIG',
'title' => '商品设置',
'url' => 'fenxiao://shop/goods/config',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'PROMOTION_FENXIAO_GOODS_MODIFY',
'title' => '状态设置',
'url' => 'fenxiao://shop/goods/modify',
'sort' => 1,
'is_show' => 0
],
[
'name' => 'PROMOTION_FENXIAO_SET_GOODS_IS_FENXIAO',
'title' => '是否参与分销',
'url' => 'fenxiao://shop/goods/setGoodsIsFenxiao',
'sort' => 1,
'is_show' => 0
],
]
],
[
'name' => 'PROMOTION_FENXIAO_ROOT',
'title' => '分销商',
'url' => 'fenxiao://shop/fenxiao/lists',
'is_show' => 1,
'is_control' => 1,
'sort' => 3,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_DETAIL',
'title' => '分销商信息',
'url' => 'fenxiao://shop/fenxiao/detail',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_TEAM',
'title' => '分销商团队',
'url' => 'fenxiao://shop/fenxiao/team',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ACCOUNT',
'title' => '账户明细',
'url' => 'fenxiao://shop/fenxiao/account',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ORDERMANAGE',
'title' => '订单管理',
'url' => 'fenxiao://shop/fenxiao/order',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ORDERMANAGEDETAIL',
'title' => '订单详情',
'url' => 'fenxiao://shop/fenxiao/orderdetail',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_ADD',
'title' => '添加分销商',
'url' => 'fenxiao://shop/fenxiao/add',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_FROZEN',
'title' => '冻结',
'url' => 'fenxiao://shop/fenxiao/frozen',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_UNFROZEN',
'title' => '恢复正常',
'url' => 'fenxiao://shop/fenxiao/unfrozen',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_CHANGE_LEVEL',
'title' => '变更上级分销商',
'url' => 'fenxiao://shop/fenxiao/confirmChange',
'is_show' => 0,
'is_control' => 1,
],
],
],
[
'name' => 'PROMOTION_FENXIAO_APPLY',
'title' => '分销商申请',
'url' => 'fenxiao://shop/fenxiao/apply',
'is_show' => 0,
'sort' => 4,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_PASS',
'title' => '审核通过',
'url' => 'fenxiao://shop/fenxiao/pass',
'is_show' => 0,
'is_control' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_REFUSE',
'title' => '审核拒绝',
'url' => 'fenxiao://shop/fenxiao/refuse',
'is_show' => 0,
'is_control' => 1,
],
],
],
[
'name' => 'PROMOTION_FENXIAO_ORDER',
'title' => '分销订单',
'url' => 'fenxiao://shop/order/lists',
'is_show' => 1,
'sort' => 5,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_ORDER_DETAIL',
'title' => '订单详情',
'url' => 'fenxiao://shop/order/detail',
'sort' => 1,
'is_show' => 0
],
]
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL',
'title' => '分销等级',
'url' => 'fenxiao://shop/level/lists',
'is_show' => 0,
'is_control' => 1,
'sort' => 6,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_LEVEL_ADD',
'title' => '添加等级',
'url' => 'fenxiao://shop/level/add',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_EDIT',
'title' => '编辑等级',
'url' => 'fenxiao://shop/level/edit',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_STATUS',
'title' => '等级状态设置',
'url' => 'fenxiao://shop/level/status',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_LEVEL_DELETE',
'title' => '删除等级',
'url' => 'fenxiao://shop/level/delete',
'is_show' => 0,
]
]
],
[
'name' => 'PROMOTION_FENXIAO_CONFIG',
'title' => '分销设置',
'url' => 'fenxiao://shop/config/basics',
'is_show' => 1,
'is_control' => 1,
'sort' => 7,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_BASICS',
'title' => '基础设置',
'url' => 'fenxiao://shop/config/basics',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_AGREEMENT',
'title' => '申请协议',
'url' => 'fenxiao://shop/config/agreement',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_SETTLEMENT',
'title' => '提现设置',
'url' => 'fenxiao://shop/config/settlement',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_WORDS',
'title' => '文字设置',
'url' => 'fenxiao://shop/config/words',
'is_show' => 0,
],
[
'name' => 'PROMOTION_FENXIAO_PEOMOTE_RULE',
'title' => '推广活动',
'url' => 'fenxiao://shop/config/promoterule',
'is_show' => 0,
]
]
],
// [
// 'name' => 'PROMOTION_FENXIAO_MARKET',
// 'title' => '分销市场',
// 'url' => 'fenxiao://shop/market/index',
// 'is_show' => 1,
// 'is_control' => 1,
// 'sort' => 8,
// 'child_list' => []
// ],
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE',
'title' => '分销海报',
'url' => 'fenxiao://shop/postertemplate/lists',
'is_show' => 0,
'is_control' => 1,
'sort' => 11,
'child_list' => [
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_ADD',
'title' => '添加海报',
'url' => 'fenxiao://shop/postertemplate/addpostertemplate',
'is_show' => 1,
],
[
'name' => 'PROMOTION_FENXIAO_POSTER_TEMPLATE_EDIT',
'title' => '编辑海报',
'url' => 'fenxiao://shop/postertemplate/editpostertemplate',
'is_show' => 1,
]
]
],
]
],
[
'name' => 'PROMOTION_ROOT',
'title' => '营销',
'url' => 'saasagent://shop/saas/index',//'shop/promotion/index',
'url' => 'shop/promotion/index',//'shop/promotion/index',
'parent' => '',
'is_show' => 1,
'is_control' => 1,
'is_icon' => 0,
'picture' => 'iconyingxiaozhongxin',
'picture_selected' => '',
'sort' => 6,
'sort' => 7,
'child_list' => [
[
'name' => 'PROMOTION_CENTER',