diff --git a/addon/fenxiao/api/controller/Fenxiao.php b/addon/fenxiao/api/controller/Fenxiao.php index 7f4638a..3eb4c79 100644 --- a/addon/fenxiao/api/controller/Fenxiao.php +++ b/addon/fenxiao/api/controller/Fenxiao.php @@ -84,10 +84,35 @@ class Fenxiao extends BaseApi $one_in_progress_commission = $fenxiao_order_model->getFenxiaoOrderInfo([ [ 'one_fenxiao_id', '=', $info[ 'data' ][ 'fenxiao_id' ] ], [ 'is_settlement', '=', 0 ], [ 'is_refund', '=', 0 ] ], 'sum(one_commission) as commission'); $two_in_progress_commission = $fenxiao_order_model->getFenxiaoOrderInfo([ [ 'two_fenxiao_id', '=', $info[ 'data' ][ 'fenxiao_id' ] ], [ 'is_settlement', '=', 0 ], [ 'is_refund', '=', 0 ] ], 'sum(two_commission) as commission'); $three_in_progress_commission = $fenxiao_order_model->getFenxiaoOrderInfo([ [ 'three_fenxiao_id', '=', $info[ 'data' ][ 'fenxiao_id' ] ], [ 'is_settlement', '=', 0 ], [ 'is_refund', '=', 0 ] ], 'sum(three_commission) as commission'); - + $wholesale_in_progress_commission = $fenxiao_order_model->getFenxiaoOrderList([ [ 'wholesale_fenxiao_id', 'like', '%'.$info[ 'data' ][ 'fenxiao_id' ].'%' ], [ 'is_settlement', '=', 0 ], [ 'is_refund', '=', 0 ] ], 'wholesale_fenxiao_id,wholesale_fenxiao_detail'); + $wholesale_money = 0; + if($wholesale_in_progress_commission){ + foreach($wholesale_in_progress_commission['data'] as $key => &$val){ + $ids = json_decode($val['wholesale_fenxiao_id'],true); + $detail = json_decode($val['wholesale_fenxiao_detail'],true); + $search = array_search($info[ 'data' ][ 'fenxiao_id' ],$ids); + if($search !== false){ + $wholesale_money += $detail[$search]['commission']; + } + } + } + $founder_in_progress_commission = $fenxiao_order_model->getFenxiaoOrderList([ [ 'founder_fenxiao_id', 'like', '%'.$info[ 'data' ][ 'fenxiao_id' ].'%' ], [ 'is_settlement', '=', 0 ], [ 'is_refund', '=', 0 ] ], 'founder_fenxiao_id,founder_fenxiao_detail'); + $founder_money = 0; + if($founder_in_progress_commission){ + foreach($founder_in_progress_commission['data'] as $key => &$val){ + $ids = json_decode($val['founder_fenxiao_id'],true); + $detail = json_decode($val['founder_fenxiao_detail'],true); + $search = array_search($info[ 'data' ][ 'fenxiao_id' ],$ids); + if($search !== false){ + $founder_money += $detail[$search]['commission']; + } + } + } if (!empty($one_in_progress_commission[ 'data' ][ 'commission' ])) $info[ 'data' ][ 'in_progress_money' ] += $one_in_progress_commission[ 'data' ][ 'commission' ]; if (!empty($two_in_progress_commission[ 'data' ][ 'commission' ])) $info[ 'data' ][ 'in_progress_money' ] += $two_in_progress_commission[ 'data' ][ 'commission' ]; if (!empty($three_in_progress_commission[ 'data' ][ 'commission' ])) $info[ 'data' ][ 'in_progress_money' ] += $three_in_progress_commission[ 'data' ][ 'commission' ]; + if ($wholesale_money) $info[ 'data' ][ 'in_progress_money' ] += $wholesale_money; + if ($founder_money) $info[ 'data' ][ 'in_progress_money' ] += $founder_money; } return $this->response($info); } diff --git a/addon/fenxiao/api/controller/Order.php b/addon/fenxiao/api/controller/Order.php index 382c8e8..fdffe49 100644 --- a/addon/fenxiao/api/controller/Order.php +++ b/addon/fenxiao/api/controller/Order.php @@ -82,6 +82,8 @@ class Order extends BaseApi $condition = [ ['fo.one_fenxiao_id|fo.two_fenxiao_id|fo.three_fenxiao_id', '=', $fenxiao_info['data']['fenxiao_id']] ]; + $OR = [[ 'fo.wholesale_fenxiao_id', 'like', ['%'.$fenxiao_info['data']['fenxiao_id'].'%']],[ 'fo.founder_fenxiao_id', 'like', ['%'.$fenxiao_info['data']['fenxiao_id'].'%']]]; + // $OR = []; if (!empty($is_settlement)) { if ($is_settlement == 3) { $condition[] = ['fo.is_refund', '=', 1]; @@ -93,23 +95,39 @@ class Order extends BaseApi } $order_model = new FenxiaoOrderModel(); - $list = $order_model->getFenxiaoOrderPageList($condition, $page, $page_size, 'fo.fenxiao_order_id desc'); + $list = $order_model->getFenxiaoOrderPageList($condition, $page, $page_size, 'fo.fenxiao_order_id desc',$OR); if (!empty($list['data']['list'])) { foreach ($list['data']['list'] as $k => $item) { if ($item['one_fenxiao_id'] == $fenxiao_info['data']['fenxiao_id']) { - $list['data']['list'][$k]['commission'] = $item['one_commission']; + $list['data']['list'][$k]['one_commission'] = $item['one_commission']; $list['data']['list'][$k]['commission_level'] = 1; + unset($list['data']['list'][$k]['two_commission']); } elseif ($item['two_fenxiao_id'] == $fenxiao_info['data']['fenxiao_id']) { - $list['data']['list'][$k]['commission'] = $item['two_commission']; + $list['data']['list'][$k]['two_commission'] = $item['two_commission']; $list['data']['list'][$k]['commission_level'] = 2; - } elseif ($item['three_fenxiao_id'] == $fenxiao_info['data']['fenxiao_id']) { - $list['data']['list'][$k]['commission'] = $item['three_commission']; - $list['data']['list'][$k]['commission_level'] = 3; + unset($list['data']['list'][$k]['one_commission']); + }else{ + unset($list['data']['list'][$k]['one_commission']); + unset($list['data']['list'][$k]['two_commission']); } - $list['data']['list'][$k] = array_diff_key($list['data']['list'][$k], ['one_fenxiao_id' => '', 'one_rate' => '', 'one_commission' => '', 'one_fenxiao_name' => '', 'two_fenxiao_id' => '', 'two_rate' => '', 'two_commission' => '', 'two_fenxiao_name' => '', 'three_fenxiao_id' => '', 'three_rate' => '', 'three_commission' => '', 'three_fenxiao_name' => '']); + $ids = json_decode($item['wholesale_fenxiao_id'],true); + $detail = json_decode($item['wholesale_fenxiao_detail'],true); + $search = array_search($fenxiao_info['data']['fenxiao_id'],$ids); + if($search !== false){ + $list['data']['list'][$k]['wholesale_point'] = $detail[$search]['commission']; + } + $ids = json_decode($item['founder_fenxiao_id'],true); + $detail = json_decode($item['founder_fenxiao_detail'],true); + $search = array_search($fenxiao_info['data']['fenxiao_id'],$ids); + if($search !== false){ + $list['data']['list'][$k]['founder_point'] = $detail[$search]['commission']; + } + // if($item['fenxiao_order_id'] == 150){ + // dump($list['data']['list'][$k]); + // } } } return $this->response($list); } -} \ No newline at end of file +} diff --git a/addon/fenxiao/model/Config.php b/addon/fenxiao/model/Config.php index c20befe..87887d6 100644 --- a/addon/fenxiao/model/Config.php +++ b/addon/fenxiao/model/Config.php @@ -32,6 +32,8 @@ class Config extends BaseModel //分销基本设置 $basics_data = [ 'level' => $data[ 'level' ],//分销层级 + 'return' => $data[ 'return' ],//分销层级 + 'time' => $data[ 'time' ],//分销层级 'internal_buy' => $data[ 'internal_buy' ],//分销内购 'is_examine' => $data[ 'is_examine' ],//是否需要审核 'self_purchase_rebate' => $data[ 'self_purchase_rebate' ],//是否开启分销商自购返佣 @@ -42,7 +44,7 @@ class Config extends BaseModel 'indirect_rate' => $data[ 'indirect_rate' ],//默认间推 'founder_rate' => $data[ 'founder_rate' ],//创始人分红比例 'four_rate' => $data[ 'four_rate' ],//创始人分红比例 - + 'weight_rate' => $data[ 'weight_rate' ],//创始人分红比例 ]; $config->setConfig($basics_data, '分销基本配置', $is_use, [ [ 'site_id', '=', $site_id ], [ 'app_module', '=', 'shop' ], [ 'config_key', '=', 'FENXIAO_BASICS_CONFIG' ] ]); //分销商设置 @@ -81,6 +83,7 @@ class Config extends BaseModel if (empty($res[ 'data' ][ 'value' ])) { $res[ 'data' ][ 'value' ] = [ 'level' => 2,//分销层级 + 'return' => 1,//分红返还 'internal_buy' => 0,//分销内购 'is_examine' => 0,//是否需要审核 'is_apply' => 0,//分销商申请方式 @@ -88,6 +91,8 @@ class Config extends BaseModel 'indirect_rate' => 0,//是否开启商品详情一级佣金 'founder_rate' => 0,//是否开启商品详情一级佣金 'four_rate' => 0,//是否开启商品详情一级佣金 + 'time' => 1,//加权分红时间段 + 'weight_rate' => 0//加权分红比例 ]; } $res[ 'data' ][ 'value' ][ 'is_commission_money' ] = $res[ 'data' ][ 'value' ][ 'is_commission_money' ] ?? 1; @@ -99,6 +104,9 @@ class Config extends BaseModel $res[ 'data' ][ 'value' ][ 'indirect_rate' ] = $res[ 'data' ][ 'value' ][ 'indirect_rate' ] ?? 0; $res[ 'data' ][ 'value' ][ 'founder_rate' ] = $res[ 'data' ][ 'value' ][ 'founder_rate' ] ?? 0; $res[ 'data' ][ 'value' ][ 'four_rate' ] = $res[ 'data' ][ 'value' ][ 'four_rate' ] ?? 0; + $res[ 'data' ][ 'value' ][ 'return' ] = $res[ 'data' ][ 'value' ][ 'return' ] ?? 1; + $res[ 'data' ][ 'value' ][ 'time' ] = $res[ 'data' ][ 'value' ][ 'time' ] ?? 1; + $res[ 'data' ][ 'value' ][ 'weight_rate' ] = $res[ 'data' ][ 'value' ][ 'weight_rate' ] ?? 0; return $res; } diff --git a/addon/fenxiao/model/Fenxiao.php b/addon/fenxiao/model/Fenxiao.php index 1af5fbc..36dd7ba 100644 --- a/addon/fenxiao/model/Fenxiao.php +++ b/addon/fenxiao/model/Fenxiao.php @@ -236,21 +236,19 @@ class Fenxiao extends BaseModel public function getFenxiaoTeam($level, $fenxiao_id, $page = 1, $page_size = PAGE_LIST_ROWS, $is_pay = 0) { $condition = ''; - // 下级分销商id集合 - $one_level_fenxiao = model('fenxiao')->getColumn([ [ 'parent', '=', $fenxiao_id ] ], 'fenxiao_id'); - switch ( $level ) { + switch ($level) { // 一级分销 case 1: // 直属会员 + 直属下级分销商 - $or = " OR (f.parent = {$fenxiao_id}) "; - $condition = "( (m.fenxiao_id = {$fenxiao_id} AND m.is_fenxiao = 0) " . $or . ") AND m.is_delete = 0"; + $condition = "f.parent = {$fenxiao_id}"; break; // 二级分销 case 2: + // 下级分销商id集合 + $one_level_fenxiao = model('fenxiao')->getColumn([['parent', '=', $fenxiao_id]], 'fenxiao_id'); // 直属下级分销商的下级分销商 + 直属下级分销商的会员 if (!empty($one_level_fenxiao)) { - $or = " OR (f.parent in (" . implode($one_level_fenxiao) . ") ) "; - $condition = "( (m.is_fenxiao = 0 AND m.fenxiao_id in (" . implode(',', $one_level_fenxiao) . ") )" . $or . ") AND m.is_delete = 0"; + $condition = "f.grand_parent in (" . implode(',',$one_level_fenxiao) . ")"; } break; } @@ -264,9 +262,11 @@ class Fenxiao extends BaseModel $field = 'm.member_id,m.nickname,m.headimg,m.is_fenxiao,m.reg_time,m.order_money,m.order_complete_money,m.order_num,m.order_complete_num,m.bind_fenxiao_time,f.fenxiao_id,f.fenxiao_no,f.fenxiao_name,f.audit_time,f.level_name,f.one_child_num,f.one_child_fenxiao_num'; $alias = 'm'; $join = [ - [ 'fenxiao f', 'm.member_id = f.member_id', 'left' ] + ['fenxiao f', 'm.member_id = f.member_id', 'left'] ]; + $list = model('member')->pageList($condition, $field, 'm.bind_fenxiao_time desc', $page, $page_size, $alias, $join); + return $this->success($list); } @@ -286,7 +286,7 @@ class Fenxiao extends BaseModel case 2: // 直属下级分销商的下级分销商 + 直属下级分销商的会员 if (!empty($one_level_fenxiao)) { - $or = " OR (f.parent in (" . implode($one_level_fenxiao) . ") ) "; + $or = " OR (f.grand_parent in (" . implode(',',$one_level_fenxiao) . ") ) "; $condition = "( (m.is_fenxiao = 0 AND m.fenxiao_id in (" . implode(',', $one_level_fenxiao) . ") )" . $or . ") AND m.is_delete = 0"; } break; @@ -336,7 +336,7 @@ class Fenxiao extends BaseModel $return[ 'num' ] += $num; $return[ 'member_num' ] += $num; - $num = model('fenxiao')->getCount([ [ 'parent', 'in', $one_level_fenxiao ], [ 'is_delete', '=', 0 ] ], 'fenxiao_id'); + $num = model('fenxiao')->getCount([ [ 'grand_parent', 'in', $one_level_fenxiao ], [ 'is_delete', '=', 0 ] ], 'fenxiao_id'); $return[ 'num' ] += $num; $return[ 'fenxiao_num' ] += $num; } diff --git a/addon/fenxiao/model/FenxiaoAccount.php b/addon/fenxiao/model/FenxiaoAccount.php index a5bb3d8..ac6e304 100644 --- a/addon/fenxiao/model/FenxiaoAccount.php +++ b/addon/fenxiao/model/FenxiaoAccount.php @@ -10,6 +10,7 @@ namespace addon\fenxiao\model; +use addon\fenxiao\model\Config as ConfigModel; use app\model\BaseModel; @@ -32,7 +33,7 @@ class FenxiaoAccount extends BaseModel * @param $relate_id * @return array */ - public function addAccount($fenxiao_id, $fenxiao_name, $type, $money, $relate_id) + public function addAccount($fenxiao_id, $fenxiao_name, $type, $money, $relate_id,$site_id) { $account_no = date('YmdHi') . rand(1000, 9999); $data = array ( @@ -41,14 +42,22 @@ class FenxiaoAccount extends BaseModel 'account_no' => $account_no, 'money' => $money, 'type' => $type, + 'site_id' => $site_id, 'type_name' => $this->type[ $type ], 'relate_id' => $relate_id, 'create_time' => time(), ); $res = model('fenxiao_account')->add($data); - $member_id = model('fenxiao')->getValue([ [ 'fenxiao_id', '=', $fenxiao_id ] ],'member_id'); - model('fenxiao')->setInc([ [ 'member_id', '=', $member_id ] ], 'point', $money); + $model = new ConfigModel(); + $basics = $model->getFenxiaoBasicsConfig($site_id); + $config = $basics[ 'data' ][ 'value' ]; + if($config['return'] == 1){ + $member_id = model('fenxiao')->getValue([ [ 'fenxiao_id', '=', $fenxiao_id ] ],'member_id'); + model('member')->setInc([ [ 'member_id', '=', $member_id ] ], 'point', $money); + }else{ + model('fenxiao')->setInc([ [ 'fenxiao_id', '=', $fenxiao_id ] ], 'account', $money); + } return $this->success($res); } diff --git a/addon/fenxiao/model/FenxiaoOrder.php b/addon/fenxiao/model/FenxiaoOrder.php index 955282c..3ec2e1e 100644 --- a/addon/fenxiao/model/FenxiaoOrder.php +++ b/addon/fenxiao/model/FenxiaoOrder.php @@ -324,7 +324,7 @@ class FenxiaoOrder extends BaseModel foreach ($fenxiao_orders as $fenxiao_order) { $site_id = $fenxiao_order[ 'site_id' ]; $commission += $fenxiao_order[ 'one_commission' ]; - $fenxiao_account->addAccount($fenxiao_order[ 'one_fenxiao_id' ], $fenxiao_order[ 'one_fenxiao_name' ], 'order', $fenxiao_order[ 'one_commission' ], $fenxiao_order[ 'fenxiao_order_id' ]); + $fenxiao_account->addAccount($fenxiao_order[ 'one_fenxiao_id' ], $fenxiao_order[ 'one_fenxiao_name' ], 'order', $fenxiao_order[ 'one_commission' ], $fenxiao_order[ 'fenxiao_order_id' ],$site_id); // 分销佣金发放通知 ( new Message() )->sendMessage([ @@ -338,7 +338,7 @@ class FenxiaoOrder extends BaseModel if ($fenxiao_order[ 'two_commission' ] > 0) { $commission += $fenxiao_order[ 'two_commission' ]; - $fenxiao_account->addAccount($fenxiao_order[ 'two_fenxiao_id' ], $fenxiao_order[ 'two_fenxiao_name' ], 'order', $fenxiao_order[ 'two_commission' ], $fenxiao_order[ 'fenxiao_order_id' ]); + $fenxiao_account->addAccount($fenxiao_order[ 'two_fenxiao_id' ], $fenxiao_order[ 'two_fenxiao_name' ], 'order', $fenxiao_order[ 'two_commission' ], $fenxiao_order[ 'fenxiao_order_id' ],$site_id); // 分销佣金发放通知 ( new Message() )->sendMessage([ @@ -352,7 +352,7 @@ class FenxiaoOrder extends BaseModel } if ($fenxiao_order[ 'three_commission' ] > 0) { $commission += $fenxiao_order[ 'three_commission' ]; - $fenxiao_account->addAccount($fenxiao_order[ 'three_fenxiao_id' ], $fenxiao_order[ 'three_fenxiao_name' ], 'order', $fenxiao_order[ 'three_commission' ], $fenxiao_order[ 'fenxiao_order_id' ]); + $fenxiao_account->addAccount($fenxiao_order[ 'three_fenxiao_id' ], $fenxiao_order[ 'three_fenxiao_name' ], 'order', $fenxiao_order[ 'three_commission' ], $fenxiao_order[ 'fenxiao_order_id' ],$site_id); // 分销佣金发放通知 ( new Message() )->sendMessage([ 'keywords' => 'COMMISSION_GRANT', @@ -408,13 +408,13 @@ class FenxiaoOrder extends BaseModel * @param string $page_size * @param string $order */ - public function getFenxiaoOrderPageList($condition = [], $page = 1, $page_size = PAGE_LIST_ROWS, $order = 'fo.order_id DESC') + public function getFenxiaoOrderPageList($condition = [], $page = 1, $page_size = PAGE_LIST_ROWS, $order = 'fo.order_id DESC',$or = []) { $field = ' fo.fenxiao_order_id,fo.order_no,fo.site_id,fo.site_name,fo.sku_id,fo.sku_name,fo.sku_image,fo.price,fo.num,fo.real_goods_money,fo.member_name, fo.member_mobile,fo.one_fenxiao_name,fo.is_settlement,fo.commission,fo.is_refund, o.order_status_name,o.create_time,fo.one_fenxiao_id,fo.two_fenxiao_id,fo.three_fenxiao_id,fo.one_commission,fo.two_commission,fo.three_commission - '; + ,fo.wholesale_fenxiao_id,fo.wholesale_fenxiao_detail,fo.founder_fenxiao_id,fo.founder_fenxiao_detail'; $alias = 'fo'; $join = [ @@ -424,7 +424,7 @@ class FenxiaoOrder extends BaseModel 'inner' ] ]; - $list = model('fenxiao_order')->pageList($condition, $field, $order, $page, $page_size, $alias, $join); + $list = model('fenxiao_order')->pageList($condition, $field, $order, $page, $page_size, $alias, $join,null,null,$or); return $this->success($list); } @@ -440,6 +440,18 @@ class FenxiaoOrder extends BaseModel return $this->success($fenxiao_order_info); } + /** + * 查询订单信息 + * @param $condition + * @param string $field + * @return array + */ + public function getFenxiaoOrderList($condition, $field = '*') + { + $fenxiao_order_info = model('fenxiao_order')->getList($condition, $field); + return $this->success($fenxiao_order_info); + } + /** * 查询订单信息 * @param $condition diff --git a/addon/fenxiao/shop/controller/Config.php b/addon/fenxiao/shop/controller/Config.php index 11bb385..46545e4 100644 --- a/addon/fenxiao/shop/controller/Config.php +++ b/addon/fenxiao/shop/controller/Config.php @@ -34,6 +34,8 @@ class Config extends BaseShop $data = [ 'level' => input('level', ''),//分销层级 + 'return' => input('return', ''),//分销层级 + 'time' => input('time', ''),//加权分红时间 'internal_buy' => input('internal_buy', ''),//分销内购 'is_examine' => input('is_examine', ''),//是否需要审核(0关闭 1开启) 'self_purchase_rebate' => input('self_purchase_rebate', ''),//是否开启分销商自购返佣(0关闭 1开启) @@ -53,6 +55,7 @@ class Config extends BaseShop 'direct_rate' => input('direct_rate', 0.00), 'indirect_rate' => input('indirect_rate', 0.00), 'founder_rate' => input('founder_rate', 0.00), + 'weight_rate' => input('weight_rate', 0.00), 'is_support_cashier' => input('is_support_cashier', 0) ]; @@ -61,7 +64,6 @@ class Config extends BaseShop } else { $basics = $model->getFenxiaoBasicsConfig($this->site_id); $this->assign("basics_info", $basics[ 'data' ][ 'value' ]); - $fenxiao = $model->getFenxiaoConfig($this->site_id); $fenxiao[ 'data' ][ 'value' ][ 'goods_list' ] = ''; diff --git a/addon/fenxiao/shop/controller/Goods.php b/addon/fenxiao/shop/controller/Goods.php index 4d5fd47..9c28459 100644 --- a/addon/fenxiao/shop/controller/Goods.php +++ b/addon/fenxiao/shop/controller/Goods.php @@ -128,7 +128,7 @@ class Goods extends BaseShop foreach ($fenxiao_skus as $level_id => $level_data) { foreach ($level_data[ 'sku_id' ] as $key => $sku_id) { $fenxiao_total = 0; - $fenxiao_level = [ 'one', 'two', 'three', 'direct', 'indirect' ]; + $fenxiao_level = [ 'one', 'two', 'three','four', 'direct', 'indirect' ]; foreach ($fenxiao_level as $level) { $item_rate_array = $level_data[ $level . '_rate' ] ?? []; $item_rate = $item_rate_array[ $key ] ?? 0; @@ -151,15 +151,6 @@ class Goods extends BaseShop return error(-1, '分销总金额不能大于商品sku价格的100%!'); } - if ($fenxiao_config[ 'level' ] < 3) { - $three_rate = 0; - $three_money = 0; - //通过分销设置的等级配置 - if ($fenxiao_config[ 'level' ] < 2) { - $two_rate = 0; - $two_money = 0; - } - } $fenxiao_sku = [ 'goods_id' => $goods_id, 'level_id' => $level_id, @@ -170,6 +161,8 @@ class Goods extends BaseShop 'two_money' => $two_money ?? 0, 'three_rate' => $three_rate ?? 0, 'three_money' => $three_money ?? 0, + 'four_rate' => $four_rate ?? 0, + 'four_money' => $four_money ?? 0, 'direct_rate' => $direct_rate ?? 0, 'direct_money' => $direct_money ?? 0, 'indirect_rate' => $indirect_rate ?? 0, diff --git a/addon/fenxiao/shop/view/config/basics.html b/addon/fenxiao/shop/view/config/basics.html index cab9a88..e6024d5 100644 --- a/addon/fenxiao/shop/view/config/basics.html +++ b/addon/fenxiao/shop/view/config/basics.html @@ -61,6 +61,33 @@
开启后,商品详情显示,关闭后,商品详情不显示
+ +
+ +
+
+ + +
+
+
+ +
+ +
+
+ + + +
+
+
设置为每天后固定为凌晨12点
+
设置为每周后固定为周一凌晨12点
+
设置为每月后固定为一号凌晨12点
+ + + +
@@ -261,6 +288,18 @@

会员购买后给上级创始人分销商的分红比例

+
+
+ +
+ +
+
%
+
+
+

根据设置时间按时给最高等级分销商分红

+
+
@@ -492,7 +531,6 @@ // 表格渲染 function renderTable(goods_list) { - console.log(goods_list,77777) //展示已知数据 table = new Table({ elem: '#selected_sku_list', @@ -549,5 +587,6 @@ $(obj).val(Math.floor(Math.abs($(obj).val()))); } } + {/block} diff --git a/addon/fenxiao/shop/view/goods/config.html b/addon/fenxiao/shop/view/goods/config.html index 99c3a02..4211292 100644 --- a/addon/fenxiao/shop/view/goods/config.html +++ b/addon/fenxiao/shop/view/goods/config.html @@ -229,12 +229,12 @@ {if isset($goods_info['fenxiao_skus'][$level.level_id . '_' . $sku.sku_id])}
0}disabled{/if} > %
-
0}disabled{/if} > 元
+
{else/}
%
-
+
{/if} {/foreach} @@ -244,12 +244,12 @@ {if isset($goods_info['fenxiao_skus'][$level.level_id . '_' . $sku.sku_id])}
0}disabled{/if} > %
-
0}disabled{/if} > 元
+
{else/}
%
-
+
{/if} {/foreach} @@ -259,12 +259,12 @@ {if isset($goods_info['fenxiao_skus'][$level.level_id . '_' . $sku.sku_id])}
0}disabled{/if} > %
-
0}disabled{/if} > 元
+
{else/}
%
-
+
{/if} {/foreach} @@ -275,12 +275,12 @@ {if isset($goods_info['fenxiao_skus'][$level.level_id . '_' . $sku.sku_id])}
0}disabled{/if} > %
-
0}disabled{/if} > 元
+
{else/}
%
-
+
{/if} {/foreach} diff --git a/app/api/controller/Memberaccount.php b/app/api/controller/Memberaccount.php index fb2bcb0..a31373a 100644 --- a/app/api/controller/Memberaccount.php +++ b/app/api/controller/Memberaccount.php @@ -14,6 +14,7 @@ namespace app\api\controller; +use app\model\account\Account as accountModel; use app\model\member\MemberAccount as MemberAccountModel; use app\model\member\Member as MemberModel; @@ -124,4 +125,46 @@ class Memberaccount extends BaseApi $data = ( new MemberModel() )->getMemberUsableBalance($this->site_id, $this->member_id); return $this->response($data); } -} \ No newline at end of file + + public function withdraw(){ + $token = $this->checkToken(); + if ($token[ 'code' ] < 0) return $this->response($token); + $set = (new accountModel())->getPointConfig($this->site_id); + $member_model = new MemberModel(); + $info = $member_model->getMemberInfo([ [ 'member_id', '=', $token[ 'data' ][ 'member_id' ] ] ]); + $set['member_point'] = $info['data']['point']; + return $this->response($set); + } + + public function search(){ + $search = $this->params[ 'search' ]; + if($search){ + $member_model = new MemberModel(); + $condition = [ + ['member_id|mobile', '=' ,$search] + ]; + $info = $member_model->getMemberInfo($condition,'member_id,nickname'); + if($info['data']){ + return $this->response($this->success($info['data'])); + }else{ + return $this->response($this->error($search,'未找到此用户')); + } + }else{ + return $this->response($this->error($search,'请输入需要转赠的用户信息')); + } + } + + public function give(){ + $token = $this->checkToken(); + if ($token[ 'code' ] < 0) return $this->response($token); + $give_id = $this->params[ 'give_id' ]; + $point = $this->params[ 'point' ]; + if($give_id && $point){ + $member_model = new MemberAccountModel(); + $res = $member_model->giveMemberPoint($give_id,$token[ 'data' ][ 'member_id' ],$point,$this->site_id); + return $this->response($res); + }else{ + return $this->response($this->error([$give_id,$point],'请输入需要转赠的用户信息')); + } + } +} diff --git a/app/api/controller/Ordercreate.php b/app/api/controller/Ordercreate.php index 2521845..b446751 100644 --- a/app/api/controller/Ordercreate.php +++ b/app/api/controller/Ordercreate.php @@ -229,7 +229,9 @@ class Ordercreate extends BaseApi } $res = $order_create->orderPayment($data); //计算订单优惠 - + if(isset($res) && $res['code'] === -10001){ + return $this->response($this->error($res['data'],$res['data']['message'])); + } $res[ 'shop_goods_list' ][ 'promotion' ][ 'manjian' ][ 'manjian_info' ] = []; if (!empty($res[ 'shop_goods_list' ][ 'promotion' ][ 'manjian' ][ 0 ][ 'manjian_id' ])) { $manjian_model = new ManjianModel(); @@ -257,4 +259,4 @@ class Ordercreate extends BaseApi ]; return $this->response(success(0,'成功',$res)); } -} \ No newline at end of file +} diff --git a/app/event/DiyViewEdit.php b/app/event/DiyViewEdit.php index ae1f79e..765c504 100644 --- a/app/event/DiyViewEdit.php +++ b/app/event/DiyViewEdit.php @@ -74,7 +74,6 @@ class DiyViewEdit extends Controller $name = $diy_view_info[ 'name' ]; $template_id = $diy_view_info[ 'template_id' ]; } - // dump($diy_view_info);die; $this->assign("diy_view_info", $diy_view_info); } diff --git a/app/model/Model.php b/app/model/Model.php index e3db23d..7f8b94d 100644 --- a/app/model/Model.php +++ b/app/model/Model.php @@ -116,7 +116,7 @@ class Model * @param string $group * @param string $limit */ - final public function pageList($condition = [], $field = true, $order = '', $page = 1, $list_rows = PAGE_LIST_ROWS, $alias = 'a', $join = [], $group = null, $limit = null) + final public function pageList($condition = [], $field = true, $order = '', $page = 1, $list_rows = PAGE_LIST_ROWS, $alias = 'a', $join = [], $group = null, $limit = null,$or = []) { //关联查询多表无法控制不缓存,单独业务处理 if ($this->is_cache && empty($join)) { @@ -140,6 +140,9 @@ class Model if (!empty($limit)) { self::$query_obj = self::$query_obj->limit($limit); } + if($or){ + self::$query_obj = self::$query_obj->whereOr($or); + } $count = $count_obj->count(); if ($list_rows == 0) { //查询全部 @@ -240,9 +243,9 @@ class Model if ($this->is_cache && empty($join)) { $cache_name = $this->table . '_' . __FUNCTION__ . '_' . serialize(func_get_args()); $cache = Cache::get($cache_name); - // if (!empty($cache)) { - // return $cache; - // } + if (!empty($cache)) { + return $cache; + } } if (empty($join)) { diff --git a/app/model/account/Account.php b/app/model/account/Account.php index df28220..3e17021 100644 --- a/app/model/account/Account.php +++ b/app/model/account/Account.php @@ -22,6 +22,11 @@ class Account extends BaseModel{ 'commission_handling_fees' => '',// 平台抽成相关收益提现手续费(百分比) ]; + public array $defaultPointConfig = [ + 'is_open' => 0,// 是否开启转增 + 'commission_handling_fees' => 0,// 手续费(百分比) + ]; + /** * Common: 财务设置 - 设置 * Author: wu-hui @@ -55,7 +60,43 @@ class Account extends BaseModel{ $res = (new Config())->getConfig($setWhere); $value = $res['data'] ? $res['data']['value'] : []; - return array_merge($this->defaultConfig, $value); + return array_merge($this->defaultPointConfig, $value); + } + + /** + * Common: 财务设置 - 设置 + * Author: wu-hui + * Time: 2024/05/22 13:35 + * @param int $siteId + * @param array $data + * @return array + */ + public function setPointConfig(int $siteId = 0,array $data = []){ + $setWhere = [ + ['site_id','=', $siteId], + ['app_module','=','shop'], + ['config_key','=','point_give_setting'] + ]; + + return (new Config())->setConfig($data, '积分转赠设置', 1, $setWhere); + } + /** + * Common: 财务设置 - 获取 + * Author: wu-hui + * Time: 2024/05/22 13:35 + * @param int $siteId + * @return array|string[] + */ + public function getPointConfig(int $siteId = 0){ + $setWhere = [ + ['site_id','=', $siteId], + ['app_module','=','shop'], + ['config_key','=','point_give_setting'] + ]; + $res = (new Config())->getConfig($setWhere); + $value = $res['data'] ? $res['data']['value'] : []; + + return array_merge($this->defaultPointConfig, $value); } /** @@ -241,4 +282,4 @@ class Account extends BaseModel{ -} \ No newline at end of file +} diff --git a/app/model/member/MemberAccount.php b/app/model/member/MemberAccount.php index 729112e..77dea32 100644 --- a/app/model/member/MemberAccount.php +++ b/app/model/member/MemberAccount.php @@ -117,6 +117,8 @@ class MemberAccount extends BaseModel $from_type[ 'point' ][ 'point_expire' ] = [ 'type_name' => '积分到期', 'type_url' => '' ]; $from_type[ 'point' ][ 'point_set_zero' ] = [ 'type_name' => '积分清零', 'type_url' => '' ]; + $from_type['point']['give'] = [ 'type_name' => '积分转赠', 'type_url' => '' ]; + $this->from_type = $from_type; } @@ -191,7 +193,6 @@ class MemberAccount extends BaseModel 'remark' => $remark, 'related_id'=>$related_id, ); - model('member_account')->add($data); //账户更新 model('member')->update([ @@ -322,4 +323,22 @@ class MemberAccount extends BaseModel } -} \ No newline at end of file + public function giveMemberPoint($give_id,$member_id,$point,$site_id){ + $member_model = new MemberModel(); + $member_info = $member_model->getMemberInfo([['member_id' ,'=',$member_id]],'member_id,point'); + if($give_id == $member_id){ + return $this->error('', '转赠人和赠送人不能相同'); + } + if($point > $member_info['data']['point']){ + return $this->error('', '转赠积分超出可转赠积分'); + } + //添加记录 + $res = self::addMemberAccount($site_id, $member_id, 'point', -$point, 'give', $give_id, "转赠积分给用户".$give_id); + if($res){ + self::addMemberAccount($site_id, $give_id, 'point', $point, 'give', $member_id, "获取用户".$give_id.'的转赠积分'); + } + return $this->success($res); + } + + +} diff --git a/app/model/order/OrderCreate.php b/app/model/order/OrderCreate.php index 7f13e7e..8fe12ba 100644 --- a/app/model/order/OrderCreate.php +++ b/app/model/order/OrderCreate.php @@ -77,7 +77,6 @@ class OrderCreate extends BaseModel { //查询出会员相关信息 $calculate_data = $this->calculate($data); - if (isset($calculate_data['code']) && $calculate_data['code'] < 0) return $calculate_data; if ($this->error > 0) { @@ -497,8 +496,20 @@ class OrderCreate extends BaseModel if ($data['is_balance'] > 0) { $this->member_balance_money = $data['member_account']['balance_total'] ?? 0; } + //商品列表信息 $shop_goods_list = $this->getOrderGoodsCalculate($data); //获取产品信息 + $kind = array_column($shop_goods_list['goods_list'],'goods_kind_id'); + $search = array_search(1,$kind); + $join = [ + ['fenxiao_level l', 'f.level_id = l.level_id', 'right'] + ]; + $fenxiao_info = model('fenxiao')->getInfo([['f.member_id','=',$data['member_id']]],'f.fenxiao_id,f.level_id,l.level_num','f',$join); + if((!$fenxiao_info || $fenxiao_info['level_num'] === 0) && $search !== false){ + return $this->error(1, "购买此商品需要有分销身份"); + } + + if ($shop_goods_list['goods_list'][0]['is_virtual']) { $this->is_virtual = 1; } else { @@ -588,6 +599,9 @@ class OrderCreate extends BaseModel { $site_id = $data['site_id']; $calculate_data = $this->calculate($data); + if(isset($calculate_data['code']) && $calculate_data['code'] === -10001){ + return $this->error($calculate_data); + } $express_type = []; if ($this->is_virtual == 0) { $trade_result = event('OrderCreateCommonData', ['type' => 'trade', 'data' => $calculate_data], true); @@ -714,6 +728,7 @@ class OrderCreate extends BaseModel public function getOrderGoodsCalculate($data) { $shop_goods = $this->getCartGoodsList($data); + $shop_goods['promotion_money'] = 0; $shop_goods_list = $shop_goods; // 会员卡项抵扣 @@ -825,6 +840,7 @@ class OrderCreate extends BaseModel $v['real_goods_money'] = $v['goods_money']; $v['coupon_money'] = 0; //优惠券金额 $v['promotion_money'] = 0; //优惠金额 + $v['goods_kind_id'] = model('goods')->getValue([['goods_id' ,'=' ,$v['goods_id']]],'goods_kind_id'); if (!empty($shop_goods_list)) { $shop_goods_list['goods_list'][] = $v; $shop_goods_list['order_name'] = string_split($shop_goods_list['order_name'], ',', $v['sku_name']); diff --git a/app/shop/controller/Memberaccount.php b/app/shop/controller/Memberaccount.php index 7c18ed3..a9c8e13 100644 --- a/app/shop/controller/Memberaccount.php +++ b/app/shop/controller/Memberaccount.php @@ -15,7 +15,7 @@ use addon\coupon\model\Coupon; use app\model\account\Point; use app\model\member\Member as MemberModel; use app\model\member\MemberAccount as MemberAccountModel; - +use app\model\account\Account as accountModel; /** * 会员账户管理 控制器 */ @@ -43,6 +43,23 @@ class Memberaccount extends BaseShop return $this->fetch('account/point'); } + public function set(){ + if (request()->isAjax()) { + // 参数获取 + $info = input('set',[]); + (new accountModel())->setPointConfig($this->site_id, $info); + + return success(0, '修改成功'); + } + else { + $set = (new accountModel())->getPointConfig($this->site_id); + $set['is_open'] = (int)$set['is_open']; + return $this->fetch("account/set",[ + 'set' => json_encode($set), + ]); + } + } + /** * 积分规则 * @return mixed @@ -62,7 +79,9 @@ class Memberaccount extends BaseShop $this->assign('consume_point', abs(round($consume_point))); $rule = event('PointRule', ['site_id' => $this->site_id]); + $set = (new accountModel())->getConfig($this->site_id); $this->assign('rule', $rule); + $this->assign('set', json_encode($set, JSON_UNESCAPED_UNICODE)); return $this->fetch('account/point_config'); } @@ -217,4 +236,4 @@ class Memberaccount extends BaseShop return $result; } -} \ No newline at end of file +} diff --git a/app/shop/view/account/point_config.html b/app/shop/view/account/point_config.html index cc40117..ccd6ef8 100644 --- a/app/shop/view/account/point_config.html +++ b/app/shop/view/account/point_config.html @@ -105,6 +105,33 @@ + -{/block} \ No newline at end of file +{/block} diff --git a/app/shop/view/account/set.html b/app/shop/view/account/set.html index 96384c1..7670148 100644 --- a/app/shop/view/account/set.html +++ b/app/shop/view/account/set.html @@ -13,16 +13,12 @@ {block name="main"}
- - - 银行卡 - 微信零钱 - 支付宝 - - 第三方打款(灵活用工) - + +
+ +
- + @@ -51,7 +47,7 @@ submitSet(){ let _this = this; $.ajax({ - url: ns.url("shop/account/set"), + url: ns.url("shop/memberaccount/set"), data: { set: _this.set }, dataType: 'JSON', type: 'POST', @@ -64,4 +60,4 @@ } }); -{/block} \ No newline at end of file +{/block} diff --git a/config/menu_shop.php b/config/menu_shop.php new file mode 100644 index 0000000..c7d9780 --- /dev/null +++ b/config/menu_shop.php @@ -0,0 +1,3143 @@ + 'INDEX_ROOT', + 'title' => '概况', + 'url' => 'shop/index/index', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 0, + 'is_icon' => 0, + 'picture' => 'icongaikuang', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_ROOT', + 'title' => '订单', + 'url' => 'shop/order/lists', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'icondingdan', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'ORDER_MANAGE', + 'title' => '订单管理', + 'url' => 'shop/order/lists', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/order_management_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/order_management_select.png', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'EXPRESS_ORDER_LIST', + 'title' => '商城订单', + 'url' => 'shop/order/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'EXPRESS_ORDER_DETAIL', + 'title' => '订单详情', + 'url' => 'shop/order/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_EXPORT_LIST', + 'title' => '订单导出记录', + 'url' => 'shop/order/export', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_ORDER_CLOSE', + 'title' => '订单关闭', + 'url' => 'shop/order/close', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], +// [ +// 'name' => 'EXPRESS_ORDER_DELIVER', +// 'title' => '订单发货', +// 'url' => 'shop/order/deliver', +// 'is_show' => 0, +// 'is_control' => 1, +// 'is_icon' => 0, +// 'picture' => '', +// 'picture_selected' => '', +// 'sort' => 1, +// ], + [ + 'name' => 'EXPRESS_ORDER_ADJUST_PRICE', + 'title' => '订单调价', + 'url' => 'shop/order/adjustprice', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REMARK', + 'title' => '订单备注', + 'url' => 'shop/order/orderRemark', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_DELETE', + 'title' => '订单删除', + 'url' => 'shop/order/delete', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_ORDER_EDIT_ADDRESS', + 'title' => '订单修改收货地址', + 'url' => 'shop/order/editaddress', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'LOCAL_ORDER_DETAIL', + 'title' => '外卖订单详情', + 'url' => 'shop/localorder/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'LOCAL_ORDER_DELIVER', + 'title' => '外卖订单发货', + 'url' => 'shop/localorder/delivery', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'STORE_ORDER_DETAIL', + 'title' => '自提订单详情', + 'url' => 'shop/storeorder/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'VIRTUAL_ORDER_DETAIL', + 'title' => '虚拟订单详情', + 'url' => 'shop/virtualorder/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_TAKE_DELIVERY', + 'title' => '确认收货', + 'url' => 'shop/order/takeDelivery', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_DELIVERY', + 'title' => '发货', + 'url' => 'shop/order/delivery', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_BATCH_DELIVERY', + 'title' => '批量发货', + 'url' => 'shop/delivery/batchdelivery', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'ORDER_REFUND_LIST', + 'title' => '退款维权', + 'url' => 'shop/orderrefund/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/refund_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/refund_select.png', + 'sort' => 20, + 'child_list' => [ + [ + 'name' => 'ORDER_REFUND_DETAIL', + 'title' => '维权详情', + 'url' => 'shop/orderrefund/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_REFUSE', + 'title' => '维权拒绝', + 'url' => 'shop/orderrefund/refuse', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_AGREE', + 'title' => '维权同意', + 'url' => 'shop/orderrefund/agree', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_RECEIVE', + 'title' => '维权收货', + 'url' => 'shop/orderrefund/receive', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_COMPLETE', + 'title' => '维权通过', + 'url' => 'shop/orderrefund/complete', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_EXPORT_LIST', + 'title' => '订单维权导出记录', + 'url' => 'shop/orderrefund/export', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_REFUND_CLOSE', + 'title' => '关闭维权', + 'url' => 'shop/orderrefund/close', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + ], + ], + [ + 'name' => 'ORDER_ACTION', + 'title' => '订单处理', + 'url' => 'shop/order/pickuporder', + 'is_show' => 1, + 'parent' => '', + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon/pickuporder.png', + 'picture_selected' => 'app/shop/view/public/img/icon/selectedpickuporder.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'EXPRESS_ORDER_PICK_UP_ORDER', + 'title' => '订单自提', + 'url' => 'shop/order/pickuporder', + 'is_show' => 1, + 'parent' => '', + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon/pickuporder.png', + 'picture_selected' => 'app/shop/view/public/img/icon/selectedpickuporder.png', + 'sort' => 1, + 'child_list' => [ + ] + ], + [ + 'name' => 'ORDER_DELIVERY_LIST', + 'title' => '订单发货', + 'url' => 'shop/delivery/lists', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/deliver_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/deliver_select.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'ORDER_DELIVERY_EXPRESS_ELECTRONICSHEETLIST', + 'title' => '获取电子面单模板列表', + 'url' => 'shop/delivery/getexpresselectronicsheetlist', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_DELIVERY_EXPRESS_PRINT_ELECTRONICSHEET', + 'title' => '打印电子面单', + 'url' => 'shop/delivery/printelectronicsheet', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_DELIVERY_EDIT_ORDER_DELIVERY', + 'title' => '修改订单物流信息', + 'url' => 'shop/delivery/editOrderDelivery', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'ORDER_DELIVERY_SYNCLIST', + 'title' => '公域订单', + 'url' => 'shop/delivery/syncOrder', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/deliver_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/deliver_select.png', + 'sort' => 3, + ], + [ + 'name' => 'ORDER_IMPORT_FILE', + 'title' => '批量发货', + 'url' => 'shop/orderimportfile/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/batch_deliver_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/batch_deliver_select.png', + 'sort' => 4, + 'child_list' => [ + [ + 'name' => 'ORDER_IMPORT_FILE_DETAIL', + 'title' => '详情', + 'url' => 'shop/orderimportfile/detail', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'ORDER_VERIFY', + 'title' => '订单核销', + 'url' => 'shop/verify/orderverify', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/verify_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/verify_select.png', + 'sort' => 5, + 'child_list' => [ + [ + 'name' => 'ORDER_VERIFY_CARD', + 'title' => '核销台', + 'url' => 'shop/verify/verifycard', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'ORDER_VERIFY_RECORDS', + 'title' => '核销记录', + 'url' => 'shop/verify/records', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + [ + 'name' => 'ORDER_VERIFY_CONFIRM', + 'title' => '核销', + 'url' => 'shop/verify/verify', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + ], + ] + ], + [ + 'name' => 'ORDER_VERIFY_USER', + 'title' => '核销人员', + 'url' => 'shop/verify/user', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 6, + 'child_list' => [ + [ + 'name' => 'ORDER_VERIFY_USER_ADD', + 'title' => '添加核销人员', + 'url' => 'shop/verify/adduser', + 'is_show' => 0, + 'is_control' => 1, + ], + [ + 'name' => 'ORDER_VERIFY_USER_DELETE', + 'title' => '删除核销人员', + 'url' => 'shop/verify/deleteuser', + 'is_show' => 0, + 'is_control' => 1, + ], [ + 'name' => 'ORDER_VERIFY_USER_EDIT', + 'title' => '编辑核销人员', + 'url' => 'shop/verify/edituser', + 'is_show' => 0, + 'is_control' => 1, + ], + ] + ], + [ + 'name' => 'GOODS_EVALUATE', + 'title' => '订单评价', + 'url' => 'shop/goods/evaluate', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 7, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [ + [ + 'name' => 'GOODS_EVALUATE_DELETE', + 'title' => '删除评价', + 'url' => 'shop/goods/deleteevaluate', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_EVALUATE_APPLY', + 'title' => '评价回复', + 'url' => 'shop/goods/evaluateapply', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_EVALUATE_DELETE_CONTENT', + 'title' => '删除评价回复', + 'url' => 'shop/goods/deleteContent', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_EVALUATE_MODIFY_AUDIT', + 'title' => '评价审核', + 'url' => 'shop/goods/modifyAuditEvaluate', + 'sort' => 1, + 'is_show' => 0 + ], + ] + ], + ] + ] + ] + ], + [ + 'name' => 'GOODS_ROOT', + 'title' => '商品', + 'url' => 'shop/goods/lists', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconshangpin', + 'picture_selected' => '', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'GOODS_MANAGE', + 'title' => '商品管理', + 'url' => 'shop/goods/lists', + 'is_show' => 1, + 'is_control' => 1, + 'sort' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/goods_list_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_list_select.png', + 'child_list' => [ + [ + 'name' => 'GOODS_LIST', + 'title' => '商品列表', + 'url' => 'shop/goods/lists', + 'is_show' => 1, + 'is_control' => 1, + 'sort' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/goods_list_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_list_select.png', + 'child_list' => [ + [ + 'name' => 'PHYSICAL_GOODS_ADD', + 'title' => '发布实物商品', + 'url' => 'shop/goods/addgoods', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'PHYSICAL_GOODS_EDIT', + 'title' => '编辑实物商品', + 'url' => 'shop/goods/editgoods', + 'sort' => 2, + 'is_show' => 0 + ], + [ + 'name' => 'VIRTUAL_GOODS_ADD', + 'title' => '发布虚拟商品', + 'url' => 'shop/virtualgoods/addgoods', + 'sort' => 3, + 'is_show' => 0 + ], + [ + 'name' => 'VIRTUAL_GOODS_EDIT', + 'title' => '编辑虚拟商品', + 'url' => 'shop/virtualgoods/editgoods', + 'sort' => 4, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_OFF', + 'title' => '商品下架', + 'url' => 'shop/goods/offgoods', + 'sort' => 5, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ON', + 'title' => '商品上架', + 'url' => 'shop/goods/ongoods', + 'sort' => 6, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_DELETE', + 'title' => '商品删除', + 'url' => 'shop/goods/deletegoods', + 'sort' => 7, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_EDIT_STOCK', + 'title' => '编辑商品库存', + 'url' => 'shop/goods/editGoodsStock', + 'sort' => 8, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_COPY', + 'title' => '复制商品', + 'url' => 'shop/goods/copyGoods', + 'sort' => 9, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_MODIFY_SORT', + 'title' => '商品排序', + 'url' => 'shop/goods/modifySort', + 'sort' => 10, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_BROWSE', + 'title' => '浏览记录', + 'url' => 'shop/goods/goodsbrowse', + 'sort' => 11, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_MODIFY_BATCHSET', + 'title' => '批量设置', + 'url' => 'shop/goods/batchset', + 'sort' => 12, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_VERIFY_LIST', + 'title' => '商品核销', + 'url' => 'shop/goods/verify', + 'is_show' => 0, + 'sort' => 15, + ] + ] + ], + + [ + 'name' => 'GOODS_CATEGORY', + 'title' => '商品分类', + 'url' => 'shop/goodscategory/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 2, + 'picture' => 'app/shop/view/public/img/icon_new/category_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/category_select.png', + 'child_list' => [ + [ + 'name' => 'GOODS_CATEGORY_ADD', + 'title' => '商品分类添加', + 'url' => 'shop/goodscategory/addcategory', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_CATEGORY_EDIT', + 'title' => '商品分类编辑', + 'url' => 'shop/goodscategory/editcategory', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_CATEGORY_DELETE', + 'title' => '商品分类删除', + 'url' => 'shop/goodscategory/deletecategory', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_CATEGORY_MODIFY_SORT', + 'title' => '商品分类排序', + 'url' => 'shop/goodscategory/modifySort', + 'is_show' => 0 + ], + ] + ], + [ + 'name' => 'GOODS_BRAND_MANAGE', + 'title' => '商品品牌', + 'url' => 'shop/goodsbrand/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'GOODS_BRAND_ADD', + 'title' => '品牌添加', + 'url' => 'shop/goodsbrand/addbrand', + 'sort' => 3, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_BRAND_EDIT', + 'title' => '品牌编辑', + 'url' => 'shop/goodsbrand/editbrand', + 'sort' => 4, + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_BRAND_DEL', + 'title' => '品牌删除', + 'url' => 'shop/goodsbrand/deletebrand', + 'sort' => 5, + 'is_show' => 0 + ] + + ] + ], + [ + 'name' => 'GOODS_LABEL', + 'title' => '商品标签', + 'url' => 'shop/goodslabel/lists', + 'is_show' => 1, + 'sort' => 4, + 'picture' => 'app/shop/view/public/img/icon_new/goods_label_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_label_select.png', + 'child_list' => [ + [ + 'name' => 'GOODS_LABEL_ADD', + 'title' => '添加商品标签', + 'url' => 'shop/goodslabel/add', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_LABEL_EDIT', + 'title' => '编辑商品标签', + 'url' => 'shop/goodslabel/edit', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_LABEL_DEL', + 'title' => '商品标签删除', + 'url' => 'shop/goodslabel/delete', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_LABEL_MODIFY_SORT', + 'title' => '商品标签排序', + 'url' => 'shop/goodslabel/modifySort', + 'is_show' => 0 + ] + ] + ], + [ + 'name' => 'GOODS_ATTR', + 'title' => '商品参数', + 'url' => 'shop/goodsattr/lists', + 'is_show' => 1, + 'sort' => 5, + 'picture' => 'app/shop/view/public/img/icon_new/goods_property_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_property_select.png', + 'child_list' => [ + [ + 'name' => 'GOODS_ATTR_ADD', + 'title' => '添加参数类型', + 'url' => 'shop/goodsattr/addAttr', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_EDIT', + 'title' => '编辑参数类型', + 'url' => 'shop/goodsattr/editattr', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_DEL', + 'title' => '删除参数类型', + 'url' => 'shop/goodsattr/deleteattr', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_MODIFY_SORT', + 'title' => '参数类型排序', + 'url' => 'shop/goodsattr/modifySort', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_ADD', + 'title' => '添加参数', + 'url' => 'shop/goodsattr/addattribute', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_EDIT', + 'title' => '编辑参数', + 'url' => 'shop/goodsattr/editAttribute', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_DELETE', + 'title' => '删除参数', + 'url' => 'shop/goodsattr/deleteAttribute', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_VALUE_ADD', + 'title' => '添加参数值', + 'url' => 'shop/goodsattr/addAttributeValue', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_VALUE_EDIT', + 'title' => '编辑参数值', + 'url' => 'shop/goodsattr/editAttributeValue', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_VALUE_DELETE', + 'title' => '删除参数值', + 'url' => 'shop/goodsattr/deleteAttributeValue', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_ATTR_ATTRIBUTE_VALUE_MODIFY_SORT', + 'title' => '参数排序', + 'url' => 'shop/goodsattr/modifyAttributeSort', + 'is_show' => 0 + ], + ] + ], + [ + 'name' => 'GOODS_SERVICE', + 'title' => '商品服务', + 'url' => 'shop/goodsservice/lists', + 'is_show' => 1, + 'sort' => 6, + 'picture' => 'app/shop/view/public/img/icon_new/goods_serve_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_serve_select.png', + 'child_list' => [ + [ + 'name' => 'GOODS_SERVICE_ADD', + 'title' => '添加商品服务', + 'url' => 'shop/goodsservice/add', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_SERVICE_EDIT', + 'title' => '编辑商品服务', + 'url' => 'shop/goodsservice/edit', + 'is_show' => 0 + ], + [ + 'name' => 'GOODS_SERVICE_DEL', + 'title' => '商品服务删除', + 'url' => 'shop/goodsservice/delete', + 'is_show' => 0 + ] + ] + ], + [ + 'name' => 'GOODS_COMMUNITY_QRCODE', + 'title' => '粉丝社群营运', + 'url' => 'shop/goods/communityqrcode', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 11, + 'picture' => 'static/shop/img/icon_new/qr_code.png', + 'picture_selected' => 'static/shop/img/icon_new/qr_code_selected.png', + 'child_list' => [ + [ + 'name' => 'GOODS_ADD_COMMUNITY_QRCODE', + 'title' => '添加社群二维码', + 'url' => 'shop/goods/addqrcode', + 'is_show' => 0, + 'sort' => 1, + ], + [ + 'name' => 'GOODS_EDIT_COMMUNITY_QRCODE', + 'title' => '编辑社群二维码', + 'url' => 'shop/goods/editqrcode', + 'is_show' => 0, + 'sort' => 1, + ], + [ + 'name' => 'GOODS_DELETE_COMMUNITY_QRCODE', + 'title' => '删除社群二维码', + 'url' => 'shop/goods/deleteqrcode', + 'is_show' => 0, + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'PHYSICAL_GOODS_RECYCLE', + 'title' => '回收站', + 'url' => 'shop/goods/recycle', + 'is_show' => 1, + 'is_control' => 1, + 'sort' => 12, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/recycle_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/recycle_select.png', + 'child_list' => [ + [ + 'name' => 'PHYSICAL_GOODS_RECYCLE_DELETE', + 'title' => '回收站删除', + 'url' => 'shop/goods/deleteRecycleGoods', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'PHYSICAL_GOODS_RECYCLE_RECOVERY', + 'title' => '回收站恢复', + 'url' => 'shop/goods/recoveryrecycle', + 'sort' => 2, + 'is_show' => 0 + ], + ] + ], + ] + ], + [ + 'name' => 'GOODS_TOOL', + 'title' => '商品工具', + 'url' => 'shop/goods/import', + 'is_show' => 0, + 'is_control' => 1, + 'sort' => 5, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/goods_list_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_list_select.png', + 'child_list' => [ + [ + 'name' => 'PHYSICAL_GOODS_IMPORT', + 'title' => '商品导入', + 'url' => 'shop/goods/import', + 'is_show' => 1, + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'PHYSICAL_GOODS_IMPORT_RECORD_LIST', + 'title' => '商品导入历史', + 'url' => 'shop/goods/importRecordList', + 'is_show' => 0, + 'sort' => 14, + ], + ] + ] + ] + ] + ] + ], + [ + 'name' => 'MEMBER_ROOT', + 'title' => '会员', + 'url' => 'shop/member/index', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconhuiyuan1', + 'picture_selected' => '', + 'sort' => 4, + 'child_list' => [ + + [ + 'name' => 'MEMBER_INDEX', + 'title' => '会员管理', + 'url' => 'shop/member/memberlist', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_list_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_list_select.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'SHOP_MEMBER_INDEX', + 'title' => '会员概况', + 'url' => 'shop/member/index', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/member_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_select.png', + 'sort' => 0, + ], + [ + 'name' => 'MEMBER_LIST', + 'title' => '会员列表', + 'url' => 'shop/member/memberlist', + 'is_show' => 1, + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'MEMBER_ADD', + 'title' => '会员添加', + 'url' => 'shop/member/addmember', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_EDIT', + 'title' => '基础信息', + 'url' => 'shop/member/editmember', + 'is_show' => 0, + 'sort' => 1 + ], + [ + 'name' => 'MEMBER_DELETE', + 'title' => '会员删除', + 'url' => 'shop/member/deletemember', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_ACCOUNT_DETAIL', + 'title' => '账户明细', + 'url' => 'shop/member/accountdetail', + 'is_show' => 0, + 'sort' => 2 + ], + [ + 'name' => 'MEMBER_ORDER', + 'title' => '订单管理', + 'url' => 'shop/member/order', + 'is_show' => 0, + 'sort' => 3 + ], + [ + 'name' => 'MEMBER_ADDRESS', + 'title' => '会员地址', + 'url' => 'shop/member/addressdetail', + 'is_show' => 0, + 'sort' => 4 + ], + [ + 'name' => 'MEMBER_DETAIL', + 'title' => '会员详情', + 'url' => 'shop/member/memberdetail', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LABEL_MODIFY', + 'title' => '修改会员标签', + 'url' => 'shop/member/modifylabel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_STATUS_MODIFY', + 'title' => '修改会员状态', + 'url' => 'shop/member/modifystatus', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_PASSWORD_MODIFY', + 'title' => '修改会员密码', + 'url' => 'shop/member/modifypassword', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_BALANCE_ADJUST', + 'title' => '余额调整(不可提现)', + 'url' => 'shop/member/adjustbalance', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_BALANCE_ADJUST_BALANCE_MONEY', + 'title' => '余额调整(可提现)', + 'url' => 'shop/member/adjustbalancemoney', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_POINT_ADJUST', + 'title' => '积分调整', + 'url' => 'shop/member/adjustpoint', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_GROWTH_ADJUST', + 'title' => '成长值调整', + 'url' => 'shop/member/adjustgrowth', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_COLLECT', + 'title' => '收藏记录', + 'url' => 'shop/goods/membergoodscollect', + 'is_show' => 0, + 'sort' => 5 + ], + [ + 'name' => 'MEMBER_BROWSE', + 'title' => '浏览记录', + 'url' => 'shop/goods/membergoodsbrowse', + 'is_show' => 0, + 'sort' => 6 + ], + + ] + ], + [ + 'name' => 'MEMBER_IMPORT', + 'title' => '会员导入', + 'url' => 'shop/member/memberimport', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/member_channel_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_channel_select.png', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'MEMBER_IMPORT_LIST', + 'title' => '导入记录', + 'url' => 'shop/member/memberimportlist', + 'is_show' => 0, + ] + ] + ], + [ + 'name' => 'MEMBER_LABEL', + 'title' => '会员标签', + 'url' => 'shop/memberlabel/labellist', + 'is_show' => 1, + 'sort' => 10, + 'picture' => 'app/shop/view/public/img/icon_new/member_label_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_label_select.png', + 'child_list' => [ + [ + 'name' => 'MEMBER_LABEL_ADD', + 'title' => '标签添加', + 'url' => 'shop/memberlabel/addlabel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LABEL_EDIT', + 'title' => '标签修改', + 'url' => 'shop/memberlabel/editlabel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LABEL_DELETE', + 'title' => '标签删除', + 'url' => 'shop/memberlabel/deletelabel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LABEL_SORT_MODIFY', + 'title' => '修改排序', + 'url' => 'shop/memberlabel/modifysort', + 'is_show' => 0, + ], + ] + ], + [ + 'name' => 'MEMBER_CLUSTER', + 'title' => '会员群体', + 'url' => 'shop/membercluster/clusterlist', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 11, + 'child_list' => [ + [ + 'name' => 'MEMBER_CLUSTER_LIST', + 'title' => '会员群体', + 'url' => 'shop/membercluster/clusterlist', + 'is_show' => 0, + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'MEMBER_CLUSTER_ADD', + 'title' => '群体添加', + 'url' => 'shop/membercluster/addcluster', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_EDIT', + 'title' => '群体编辑', + 'url' => 'shop/membercluster/editcluster', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_DELETE', + 'title' => '群体删除', + 'url' => 'shop/membercluster/deletecluster', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_BALANCE_ADJUST', + 'title' => '发放红包', + 'url' => 'shop/membercluster/sendbalance', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_POINT_ADJUST', + 'title' => '发放积分', + 'url' => 'shop/membercluster/sendpoint', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_COUPON_ADJUST', + 'title' => '发放优惠券', + 'url' => 'shop/membercluster/sendcoupon', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_CALCULATE', + 'title' => '计算群体', + 'url' => 'shop/membercluster/calculate', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_EXPORT_MEMBER', + 'title' => '导出会员', + 'url' => 'shop/membercluster/exportclustermember', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_CLUSTER_REFRESH', + 'title' => '刷新信息', + 'url' => 'shop/membercluster/refreshcluster', + 'is_show' => 0, + ], + + ] + ], + ], + ], + ], + ], + [ + 'name' => 'MEMBER_LEVEL_ROOT', + 'title' => '等级权益', + 'url' => 'shop/memberlevel/levellist', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_group_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_group_select.png', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'MEMBER_LEVEL', + 'title' => '会员等级', + 'url' => 'shop/memberlevel/levellist', + 'is_show' => 1, + 'sort' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_class_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_class_select.png', + 'child_list' => [ + [ + 'name' => 'MEMBER_LEVEL_ADD', + 'title' => '会员等级添加', + 'url' => 'shop/memberlevel/addlevel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LEVEL_EDIT', + 'title' => '会员等级修改', + 'url' => 'shop/memberlevel/editlevel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_LEVEL_DELETE', + 'title' => '会员等级删除', + 'url' => 'shop/memberlevel/deletelevel', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_ACCOUNT_GROWTH', + 'title' => '会员成长值', + 'url' => 'shop/memberaccount/growth', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + 'child_list' => [ + ], + ], + + ] + ], + ], + ], + [ + 'name' => 'MEMBER_ACCOUNT_BALANCE', + 'title' => '余额储值', + 'url' => 'shop/memberaccount/balance', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_group_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_group_select.png', + 'sort' => 3, + 'child_list' => [ + + [ + 'name' => 'MEMBER_ACCOUNT_BALANCE_LIST', + 'title' => '余额流水', + 'url' => 'shop/memberaccount/balance', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [ + ], + ], + ], + ], + [ + 'name' => 'MEMBER_ACCOUNT_POINT', + 'title' => '会员积分', + 'url' => 'shop/memberaccount/point', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_group_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_group_select.png', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'MEMBER_ACCOUNT_POINT_CONFIG', + 'title' => '积分规则', + 'url' => 'shop/memberaccount/pointconfig', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + ], + ], + [ + 'name' => 'MEMBER_ACCOUNT_POINT_LIST', + 'title' => '积分流水', + 'url' => 'shop/memberaccount/point', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [ + ], + ], + [ + 'name' => 'MEMBER_ACCOUNT_POINT_GIVE', + 'title' => '积分转赠', + 'url' => 'shop/memberaccount/set', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'MEMBER_ACCOUNT_POINT_GIVE_CONFIG', + 'title' => '转赠设置', + 'url' => 'shop/memberaccount/set', + 'is_show' => 1, + ], + ], + ], + ], + ], + + ] + ], + [ + 'name' => 'PROMOTION_ROOT', + 'title' => '营销', + 'url' => 'shop/promotion/index', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconyingxiaozhongxin', + 'picture_selected' => '', + 'sort' => 5, + 'child_list' => [ + [ + 'name' => 'PROMOTION_CENTER', + 'title' => '营销中心', + 'url' => 'shop/promotion/index', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/promotion_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/promotion_select.png', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'PROMOTION_INDEX', + 'title' => '营销概况', + 'url' => 'shop/promotion/index', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/promotion_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/promotion_select.png', + 'sort' => 1, + ], + [ + 'name' => 'PROMOTION_CENTER_MARKET', + 'title' => '营销活动', + 'url' => 'shop/promotion/market', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/promotion_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/promotion_select.png', + 'sort' => 2, + ], + ] + ], + + [ + 'name' => 'PROMOTION_TOOL', + 'title' => '应用工具', + 'url' => 'shop/promotion/tool', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/promotion_tool_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/promotion_tool_select.png', + 'sort' => 4, + 'child_list' => [ + [ + 'name' => 'TOOL_LIST', + 'title' => '应用列表', + 'url' => 'shop/promotion/tool', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 0, + ], + ] + ], + ] + ], + [ + 'name' => 'SHOP_ROOT', + 'title' => '装修', + 'url' => 'shop/diy/index', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'icondianpu', + 'picture_selected' => '', + 'sort' => 6, + 'child_list' => [ + [ + 'name' => 'SHOP_DIY', + 'title' => '手机端', + 'url' => 'shop/diy/index', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/diy_wap_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/diy_wap_select.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'SHOP_DIY_INDEX', + 'title' => '主页装修', + 'url' => 'shop/diy/index', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [], + ], + [ + 'name' => 'SHOP_DIY_GOODS_CATEGORY', + 'title' => '分类页面', + 'url' => 'shop/diy/goodscategory', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + [ + 'name' => 'SHOP_DIY_MEMBER_INDEX', + 'title' => '会员中心', + 'url' => 'shop/diy/memberindex', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + ], + [ + 'name' => 'SHOP_DIY_GOODS_DETAIL_CONFIG', + 'title' => '商品详情', + 'url' => 'shop/goods/goodsdetailconfig', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 4, + ], + [ + 'name' => 'SHOP_DIY_PROMOTION_ZONE_CONFIG', + 'title' => '活动专区', + 'url' => 'shop/promotion/zoneconfig', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 5, + ], + [ + 'name' => 'SHOP_DIY_LISTS', + 'title' => '微页面', + 'url' => 'shop/diy/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 6, + 'child_list' => [ + [ + 'name' => 'SHOP_DIY_EDIT', + 'title' => '编辑自定义页面', + 'url' => 'shop/diy/edit', + 'is_show' => 0, + ], + [ + 'name' => 'SHOP_DIY_DELETE', + 'title' => '删除自定义页面', + 'url' => 'shop/diy/deleteSiteDiyView', + 'is_show' => 0, + ], + [ + 'name' => 'SHOP_DIY_SET_USE', + 'title' => '设为使用', + 'url' => 'shop/diy/setUse', + 'is_show' => 0, + ], + ], + ], + [ + 'name' => 'SHOP_DIY_ROUTE', + 'title' => '页面路径', + 'url' => 'shop/diy/route', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 7, + ], + [ + 'name' => 'SHOP_DIY_BOTTOM_NAV', + 'title' => '底部导航', + 'url' => 'shop/diy/bottomnavdesign', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 8, + ], + [ + 'name' => 'SHOP_STYLE_CONFIG', + 'title' => '商城风格', + 'url' => 'shop/diy/style', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 9, + ], + [ + 'name' => 'SHOP_STYLE_TEMPLATE', + 'title' => '模板选择', + 'url' => 'shop/diy/template', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 10, + 'child_list' => [ + [ + 'name' => 'SHOP_STYLE_TEMPLATE_EDIT', + 'title' => '模板编辑', + 'url' => 'shop/diy/create', + 'is_show' => 0, + ], + ], + ], + [ + 'name' => 'MOBILE_ADV', + 'title' => '广告管理', + 'url' => 'shop/adv/index', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 11, + 'child_list' => [ + [ + 'name' => 'MOBILE_ADV_POSITION', + 'title' => '广告位管理', + 'url' => 'shop/adv/index', + 'is_show' => 1, + 'child_list' => [ + [ + 'name' => 'MOBILE_ADV_POSITION_LIST', + 'title' => '广告位管理', + 'url' => 'shop/adv/index', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_POSITION_ADD', + 'title' => '添加广告位', + 'url' => 'shop/adv/addposition', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_POSITION_EDIT', + 'title' => '编辑广告位', + 'url' => 'shop/adv/editposition', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_POSITION_DELETE', + 'title' => '删除广告位', + 'url' => 'shop/adv/deleteposition', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_POSITION_STATE_ALTER', + 'title' => '更改状态', + 'url' => 'shop/adv/alteradvpositionstate', + 'is_show' => 0, + ], + ] + ], + [ + 'name' => 'MOBILE_ADV_LISTS', + 'title' => '广告管理', + 'url' => 'shop/adv/lists', + 'is_show' => 1, + 'child_list' => [ + [ + 'name' => 'MOBILE_ADV_LIST', + 'title' => '广告管理', + 'url' => 'shop/adv/lists', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_ADD', + 'title' => '添加广告', + 'url' => 'shop/adv/addadv', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_EDIT', + 'title' => '编辑广告', + 'url' => 'shop/adv/editadv', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_DELETE', + 'title' => '删除广告', + 'url' => 'shop/adv/deleteadv', + 'is_show' => 0, + ], + [ + 'name' => 'MOBILE_ADV_STATE_ALTER', + 'title' => '更改状态', + 'url' => 'shop/adv/alteradvstate', + 'is_show' => 0, + ], + ] + ] + ] + ], + [ + 'name' => 'GOODS_GUESS_YOU_LIKE', + 'title' => '商品推荐', + 'url' => 'shop/goods/guessyoulike', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 12, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [] + ], + [ + 'name' => 'GOODS_LIST_CONFIG', + 'title' => '商品列表', + 'url' => 'shop/goods/goodslistconfig', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 13, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [] + ], + ] + ], + [ + 'name' => 'WEBSITE_CONFIG', + 'title' => '内容管理', + 'url' => 'shop/help/helplist', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon/shop_content.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/shop_content_select.png', + 'sort' => 8, + 'child_list' => [ + [ + 'name' => 'WEBSITE_HELP_MANAGE', + 'title' => '店铺帮助', + 'url' => 'shop/help/helplist', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'WEBSITE_HELP', + 'title' => '帮助列表', + 'url' => 'shop/help/helplist', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'WEBSITE_HELP_ADD', + 'title' => '添加帮助', + 'url' => 'shop/help/addhelp', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_EDIT', + 'title' => '编辑帮助', + 'url' => 'shop/help/edithelp', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_DELETE', + 'title' => '删除帮助', + 'url' => 'shop/help/deletehelp', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_MODIFY_SORT', + 'title' => '帮助排序', + 'url' => 'shop/help/modifySort', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_CLASS', + 'title' => '帮助分类', + 'url' => 'shop/help/classlist', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + [ + 'name' => 'WEBSITE_HELP_CLASS_ADD', + 'title' => '添加分类', + 'url' => 'shop/help/addclass', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_CLASS_EDIT', + 'title' => '编辑分类', + 'url' => 'shop/help/editclass', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_CLASS_DELETE', + 'title' => '删除分类', + 'url' => 'shop/help/deleteclass', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_HELP_CLASS_MODIFY_SORT', + 'title' => '分类排序', + 'url' => 'shop/help/modifyClassSort', + 'is_show' => 0, + ], + ], + ], + [ + 'name' => 'WEBSITE_NOTICE', + 'title' => '店铺公告', + 'url' => 'shop/notice/index', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'WEBSITE_NOTICE_ADD', + 'title' => '添加公告', + 'url' => 'shop/notice/addnotice', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_NOTICE_EDIT', + 'title' => '编辑公告', + 'url' => 'shop/notice/editnotice', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_NOTICE_DELETE', + 'title' => '删除公告', + 'url' => 'shop/notice/deletenotice', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_NOTICE_TOP', + 'title' => '公告置顶', + 'url' => 'shop/notice/modifynoticetop', + 'is_show' => 0, + ], + [ + 'name' => 'WEBSITE_NOTICE_DETAIL', + 'title' => '公告详情', + 'url' => 'shop/notice/detail', + 'is_show' => 0, + ], + ], + ], + [ + 'name' => 'ALBUM_MANAGE', + 'title' => '素材管理', + 'url' => 'shop/album/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 3, + 'picture' => 'app/shop/view/public/img/icon_new/picture_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/picture_select.png', + 'child_list' => [ + [ + 'name' => 'ALBUM_ADD', + 'title' => '添加素材分组', + 'url' => 'shop/album/addalbum', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_EDIT', + 'title' => '编辑素材分组', + 'url' => 'shop/album/editalbum', + 'sort' => 2, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_DELETE', + 'title' => '删除素材分组', + 'url' => 'shop/album/deletealbum', + 'sort' => 3, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_PIC_MODIFY_PICNAME', + 'title' => '编辑文件名称', + 'url' => 'shop/album/modifypicname', + 'sort' => 4, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_PIC_MODIFY_ALBUM', + 'title' => '修改文件分组', + 'url' => 'shop/album/modifyfilealbum', + 'sort' => 5, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_PIC_DELETE', + 'title' => '删除文件', + 'url' => 'shop/album/deletefile', + 'sort' => 6, + 'is_show' => 0 + ], + [ + 'name' => 'ALBUM_BOX', + 'title' => '素材', + 'url' => 'shop/album/album', + 'sort' => 7, + 'is_show' => 0 + ], + ] + ], + [ + 'name' => 'ARTICLE_MANAGE', + 'title' => '文章管理', + 'url' => 'shop/article/lists', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 3, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [ + [ + 'name' => 'ARTICLE_LIST', + 'title' => '文章列表', + 'url' => 'shop/article/lists', + 'sort' => 1, + 'is_show' => 1, + 'child_list' => [ + [ + 'name' => 'ARTICLE_ADD', + 'title' => '添加文章', + 'url' => 'shop/article/add', + 'sort' => 1, + 'is_show' => 0 + ], + [ + 'name' => 'ARTICLE_EDIT', + 'title' => '编辑文章', + 'url' => 'shop/article/edit', + 'sort' => 2, + 'is_show' => 0 + ], + [ + 'name' => 'ARTICLE_DELETE', + 'title' => '删除文章', + 'url' => 'shop/article/delete', + 'sort' => 3, + 'is_show' => 0 + ], + [ + 'name' => 'ARTICLE_SORT', + 'title' => '文章排序', + 'url' => 'shop/article/modifysort', + 'sort' => 4, + 'is_show' => 0 + ], + ] + ], + [ + 'name' => 'ARTICLE_DRAFTS_LIST', + 'title' => '草稿箱', + 'url' => 'shop/article/drafts', + 'sort' => 2, + 'is_show' => 1 + ], + [ + 'name' => 'ARTICLE_CATEGORY_LIST', + 'title' => '文章分类', + 'url' => 'shop/articlecategory/lists', + 'sort' => 3, + 'is_show' => 1 + ], + ] + ], + ] + ] + ] + ], + [ + 'name' => 'ACCOUNT_ROOT', + 'title' => '财务', + 'url' => 'shop/account/dashboard', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconcaiwu', + 'picture_selected' => '', + 'sort' => 8, + 'child_list' => [ + [ + 'name' => 'ACCOUNT_MANAGE', + 'title' => '财务管理', + 'url' => 'shop/account/dashboard', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/menu_icon/icon9.png', + 'picture_selected' => '', + 'sort' => 8, + 'child_list' => [ + [ + 'name' => 'ACCOUNT_DASHBOARD', + 'title' => '财务报表', + 'url' => 'shop/account/dashboard', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/money_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/money_select.png', + 'sort' => 1, + 'child_list' => [] + ], + [ + 'name' => 'INVOICE_LIST', + 'title' => '发票管理', + 'url' => 'shop/order/invoiceorderlist', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/invoice_management_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/invoice_management_select.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'INVOICE_EDIT', + 'title' => '发票编辑', + 'url' => 'shop/order/invoiceedit', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'MEMBER_WITHDRAW_LIST', + 'title' => '余额提现', + 'url' => 'shop/memberwithdraw/lists', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/member_withdraw_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_withdraw_select.png', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'MEMBER_WITHDRAW_DETAIL', + 'title' => '提现详情', + 'url' => 'shop/memberwithdraw/detail', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_WITHDRAW_TRANSFERFINISH', + 'title' => '手动转账', + 'url' => 'shop/memberwithdraw/transferfinish', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_WITHDRAW_agree', + 'title' => '同意转账', + 'url' => 'shop/memberwithdraw/agree', + 'is_show' => 0, + ], + [ + 'name' => 'MEMBER_WITHDRAW_refuse', + 'title' => '拒绝转账', + 'url' => 'shop/memberwithdraw/refuse', + 'is_show' => 0, + ], + [ + 'name' => 'ONLINE_TRANSFER', + 'title' => '在线转账', + 'url' => 'memberwithdraw://shop/withdraw/transfer', + 'is_show' => 0, + ], + ] + ], + ] + ], + ], + ], + [ + 'name' => 'STAT_ROOT', + 'title' => '数据', + 'url' => 'shop/stat/shop', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconshuju3', + 'picture_selected' => '', + 'sort' => 9, + 'child_list' => [ + [ + 'name' => 'STAT_SHOP', + 'title' => '营业数据', + 'url' => 'shop/stat/shop', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/stat_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/stat_select.png', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'STAT_SHOP_INDEX', + 'title' => '数据概况', + 'url' => 'shop/stat/shop', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/stat_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/stat_select.png', + 'sort' => 2, + ], + [ + 'name' => 'STAT_ORDER', + 'title' => '交易数据', + 'url' => 'shop/stat/order', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/stat_order_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/stat_order_select.png', + 'sort' => 4, + ], + [ + 'name' => 'STAT_MEMBER', + 'title' => '会员数据', + 'url' => 'shop/stat/member', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + ], + [ + 'name' => 'STAT_VISIT', + 'title' => '流量数据', + 'url' => 'shop/stat/visit', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/stat_icon_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/stat_icon_select.png', + 'sort' => 5, + ], + [ + 'name' => 'STAT_GOODS', + 'title' => '商品数据', + 'url' => 'shop/stat/goods', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 6, + ], + ] + ], + ] + ], + [ + 'name' => 'CONFIG_ROOT', + 'title' => '设置', + 'url' => 'shop/shop/config', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'iconshezhi-xianxing', + 'picture_selected' => '', + 'sort' => 11, + 'child_list' => [ + [ + 'name' => 'CONFIG_BASE', + 'title' => '店铺设置', + 'url' => 'shop/shop/config', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/shop_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/shop_config_select.png', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'SHOP_CONFIG', + 'title' => '店铺信息', + 'url' => 'shop/shop/config', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'SHOP_BASE_CONFIG', + 'title' => '基础信息', + 'url' => 'shop/shop/config', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'SHOP_CONTACT', + 'title' => '联系我们', + 'url' => 'shop/shop/contact', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + ], + [ + 'name' => 'SITE_ADDRESS', + 'title' => '商家地址库', + 'url' => 'shop/siteaddress/siteaddress', + 'is_show' => 1, + 'sort' => 4, + 'is_control' => 1, + 'child_list' => [ + [ + 'name' => 'SITE_ADDRESS_ADD', + 'title' => '添加商家地址库', + 'url' => 'shop/siteaddress/addsiteaddress', + 'is_show' => 0, + 'is_control' => 1, + ], + [ + 'name' => 'SITE_ADDRESS_EDIT', + 'title' => '编辑商家地址库', + 'url' => 'shop/siteaddress/editsiteaddress', + 'is_show' => 0, + 'is_control' => 1, + ], + [ + 'name' => 'SITE_ADDRESS_DELETE', + 'title' => '删除商家地址库', + 'url' => 'shop/siteaddress/deletesiteaddress', + 'is_show' => 0, + 'is_control' => 1, + ], + ] + ] + ] + ], + [ + 'name' => 'CONFIG_BASE_MEMBER', + 'title' => '注册登录', + 'url' => 'shop/member/regconfig', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/member_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/member_config_select.png', + 'sort' => 4, + 'child_list' => [ + [ + 'name' => 'LOGIN_REG_CONFIG', + 'title' => '注册设置', + 'url' => 'shop/member/regconfig', + 'is_show' => 1, + 'sort' => 1, + ] + ] + ], + [ + 'name' => 'MESSAGE_LISTS', + 'title' => '消息通知', + 'url' => 'shop/message/lists', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 5, + 'child_list' => [ + [ + 'name' => 'MESSAGE_EMAIL_EDIT', + 'title' => '编辑邮件模板', + 'url' => 'shop/message/editEmailMessage', + 'parent' => '', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [], + ], + [ + 'name' => 'MESSAGE_SHOP_USER', + 'title' => '商家会员管理', + 'url' => 'shop/shopacceptmessage/lists', + 'parent' => '', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [], + ], + [ + 'name' => 'MESSAGE_SHOP_USER_ADD', + 'title' => '添加商家消息接收会员', + 'url' => 'shop/Shopacceptmessage/add', + 'parent' => '', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + 'child_list' => [], + ], + [ + 'name' => 'MESSAGE_SHOP_USER_DELETE', + 'title' => '删除商家消息接收会员', + 'url' => 'shop/Shopacceptmessage/delete', + 'parent' => '', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 4, + 'child_list' => [], + ], + ], + ], + [ + 'name' => 'SMS_MANAGE', + 'title' => '短信中心', + 'url' => 'shop/message/sms', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 6, + 'child_list' => [ + [ + 'name' => 'SMS_LIST', + 'title' => '短信配置', + 'url' => 'shop/message/sms', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [], + ], + [ + 'name' => 'SMS_RECORDS', + 'title' => '发送记录', + 'url' => 'shop/message/smsrecords', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [], + ], + ], + ], + [ + 'name' => 'CONFIG_BASE_ORDER', + 'title' => '交易设置', + 'url' => 'shop/order/config', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/deal_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/deal_config_select.png', + 'sort' => 7, + 'child_list' => [ + [ + 'name' => 'ORDER_CONFIG_SETTING', + 'title' => '订单设置', + 'url' => 'shop/order/config', + 'is_show' => 1, + 'sort' => 1, + ], + [ + 'name' => 'MEMBER_WITHDRAW_CONFIG', + 'title' => '提现设置', + 'url' => 'shop/memberwithdraw/config', + 'is_show' => 1, + 'sort' => 3, + ], + + ], + ], + [ + 'name' => 'CONFIG_PAY', + 'title' => '支付设置', + 'url' => 'shop/config/pay', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 8, + ], + [ + 'name' => 'CONFIG_EXPRESS_ROOT', + 'title' => '配送设置', + 'url' => 'shop/delivery/express', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/distribution_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/distribution_config_select.png', + 'sort' => 10, + 'child_list' => [ + [ + 'name' => 'EXPRESS_CONFIG', + 'title' => '配送管理', + 'url' => 'shop/delivery/express', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'EXPRESS_STORE_CONFIG', + 'title' => '自提设置', + 'url' => 'shop/delivery/storeconfig', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_STORE_STATUS', + 'title' => '自提开关', + 'url' => 'shop/delivery/modifystorestatus', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_EXPRESS_STATUS', + 'title' => '物流开关', + 'url' => 'shop/delivery/modifyexpressstatus', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCAL_STATUS', + 'title' => '同城配送开关', + 'url' => 'shop/delivery/modifylocalstatus', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCALDELIVERY_CONFIG', + 'title' => '同城配送', + 'url' => 'shop/local/local', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCALDELIVERY_DELIVER_LISTS', + 'title' => '配送员列表', + 'url' => 'shop/local/deliverlists', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCALDELIVERY_ADD_DELIVER', + 'title' => '添加配送员', + 'url' => 'shop/local/adddeliver', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCALDELIVERY_EDIT_DELIVER', + 'title' => '编辑配送员', + 'url' => 'shop/local/editdeliver', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_LOCALDELIVERY_DELETE_DELIVER', + 'title' => '删除配送员', + 'url' => 'shop/local/deletedeliver', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_EDIT_PRINT_TEMPLATE', + 'title' => '运单模板', + 'url' => 'shop/express/editprinttemplate', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_TEMPLATE', + 'title' => '运费模板', + 'url' => 'shop/express/template', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_TEMPLATE_ADD', + 'title' => '添加运费模板', + 'url' => 'shop/express/addtemplate', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_TEMPLATE_EDIT', + 'title' => '编辑运费模板', + 'url' => 'shop/express/edittemplate', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_TEMPLATE_DELETE', + 'title' => '删除运费模板', + 'url' => 'shop/express/deletetemplate', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_DEFAULT_TEMPLATE', + 'title' => '设置默认运费模板', + 'url' => 'shop/express/defaultTemplate', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'EXPRESS_COMPANY', + 'title' => '物流公司', + 'url' => 'shop/express/expresscompany', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'DELIVERY_EXPRESS_ADD', + 'title' => '添加物流公司', + 'url' => 'shop/express/addcompany', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [], + ], + [ + 'name' => 'DELIVERY_EXPRESS_EDIT', + 'title' => '编辑物流公司', + 'url' => 'shop/express/editcompany', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [], + ], + [ + 'name' => 'DELIVERY_EXPRESS_DELETE', + 'title' => '删除物流公司', + 'url' => 'shop/express/deletecompany', + 'is_show' => 0, + 'picture' => '', + 'picture_selected' => '', + 'child_list' => [], + ], + [ + 'name' => 'EXPRESS_EXPRESS_CONFIG', + 'title' => '物流跟踪', + 'url' => 'shop/express/trace', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + + [ + 'name' => 'SHOP_STORE_LIST', + 'title' => '自提点管理', + 'url' => 'shop/store/lists', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + [ + 'name' => 'SHOP_STORE_ADD', + 'title' => '添加自提点', + 'url' => 'shop/store/addstore', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'SHOP_STORE_EDIT', + 'title' => '修改自提点', + 'url' => 'shop/store/editstore', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'SHOP_STORE_DELETE', + 'title' => '删除自提点', + 'url' => 'shop/store/deletestore', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'SHOP_STORE_FROZEN', + 'title' => '关闭自提点', + 'url' => 'shop/store/frozenStore', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + + ] + ], + [ + 'name' => 'GOODS_BASIC_CONFIG', + 'title' => '商品设置', + 'url' => 'shop/goods/defaultsearchwords', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/goods_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_config_select.png', + 'sort' => 12, + 'child_list' => [ + [ + 'name' => 'GOODS_DEFAULT_SEARCH_WORDS', + 'title' => '商品搜索', + 'url' => 'shop/goods/defaultsearchwords', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 1, + 'picture' => 'app/shop/view/public/img/icon/default_search.png', + 'picture_selected' => 'app/shop/view/public/img/icon/sys_config.png', + 'child_list' => [] + ], + [ + 'name' => 'GOODS_SORT', + 'title' => '商品排序', + 'url' => 'shop/goods/goodssort', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 2, + 'picture' => 'app/shop/view/public/img/icon/goods_sort.png', + 'picture_selected' => 'app/shop/view/public/img/icon/goods_sort.png', + 'child_list' => [] + ], + ] + ], + [ + 'name' => 'CONFIG_BASE_OTHER', + 'title' => '基础设置', + 'url' => 'shop/config/defaultpicture', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/goods_config_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/goods_config_select.png', + 'sort' => 13, + 'child_list' => [ + [ + 'name' => 'CONFIG_DEFAULT_PICTURE', + 'title' => '默认图片', + 'url' => 'shop/config/defaultpicture', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'MAP_CONFIG', + 'title' => '地图配置', + 'url' => 'shop/config/map', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2 + ], + [ + 'name' => 'CONFIG_CAPTCHA', + 'title' => '验证码设置', + 'url' => 'shop/config/captcha', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3 + ], + [ + 'name' => 'CONFIG_SERVICER', + 'title' => '客服设置', + 'url' => 'shop/config/servicer', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 4, + ], + [ + 'name' => 'GOODS_AFTERSALE', + 'title' => '售后保障', + 'url' => 'shop/config/aftersale', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'sort' => 6, + 'picture' => 'app/shop/view/public/img/icon_new/after_sales_support_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/after_sales_support_select.png', + 'child_list' => [] + ], + [ + 'name' => 'TRANSACTION_AGREEMENT', + 'title' => '购物须知', + 'url' => 'shop/order/transactionagreement', + 'is_show' => 1, + 'sort' => 7, + ], + [ + 'name' => 'LOGIN_REG_AGREEMENT', + 'title' => '注册协议', + 'url' => 'shop/member/regagreement', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon/member.png', + 'picture_selected' => 'app/shop/view/public/img/icon/member.png', + 'sort' => 8, + ], + [ + 'name' => 'CONFIG_UPLOAD_SET', + 'title' => '上传设置', + 'url' => 'shop/upload/config', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 9, + ], + [ + 'name' => 'UPLOAD_OSS', + 'title' => '云上传', + 'url' => 'shop/upload/oss', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 10, + ], + [ + 'name' => 'COPYRIGHT', + 'title' => '版权设置', + 'url' => 'shop/config/copyright', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 14, + ] + ] + ] + ] + ], + [ + 'name' => 'USER_AUTH', + 'title' => '员工管理', + 'url' => 'shop/user/user', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon/account.png', + 'picture_selected' => 'app/shop/view/public/img/icon/account.png', + 'sort' => 3, + 'child_list' => [ + [ + 'name' => 'USER_LIST', + 'title' => '员工管理', + 'url' => 'shop/user/user', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + 'child_list' => [ + [ + 'name' => 'USER_ADD', + 'title' => '添加员工', + 'url' => 'shop/user/adduser', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_EDIT', + 'title' => '员工编辑', + 'url' => 'shop/user/edituser', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_DELETE', + 'title' => '员工删除', + 'url' => 'shop/user/deleteuser', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_MODIFY_STATUS', + 'title' => '调整员工状态', + 'url' => 'shop/user/modifyuserstatus', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'USER_GROUP', + 'title' => '员工角色', + 'url' => 'shop/user/group', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + 'child_list' => [ + [ + 'name' => 'USER_GROUP_ADD', + 'title' => '添加角色', + 'url' => 'shop/user/addgroup', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_GROUP_EDIT', + 'title' => '角色编辑', + 'url' => 'shop/user/editgroup', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_GROUP_DELETE', + 'title' => '角色删除', + 'url' => 'shop/user/deletegroup', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'USER_GROUP_MODIFY_STATUS', + 'title' => '调整角色状态', + 'url' => 'shop/user/modifygroupstatus', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'USER_LOG', + 'title' => '操作日志', + 'url' => 'shop/user/userlog', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + ], + [ + 'name' => 'USER_LOG_DELETE', + 'title' => '删除日志', + 'url' => 'shop/user/deleteUserLog', + 'is_show' => 0, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + ] + ], + [ + 'name' => 'CHANNEL_ROOT', + 'title' => '生态渠道', + 'url' => 'wechat://shop/wechat/setting', + 'parent' => '', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/menu_icon/icon11.png', + 'picture_selected' => 'app/shop/view/public/img/menu_icon/menu_set_selected.png', + 'sort' => 5, + 'child_list' => [] + ], + [ + 'name' => 'UPGRADE_ROOT', + 'title' => '系统维护', + 'url' => 'shop/config/sitedeploy', + 'is_show' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/system_authorization_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/system_authorization_select.png', + 'sort' => 12, + 'child_list' => [ + [ + 'name' => 'WEBSITE_DEPLOYMENT', + 'title' => '网站部署', + 'url' => 'shop/config/sitedeploy', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => 'app/shop/view/public/img/icon_new/website_deploy_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/website_deploy_select.png', + 'sort' => 1, + 'child_list' => [] + ], + [ + 'name' => 'SYSTEM_ADDON_ROOT', + 'title' => '插件管理', + 'url' => 'shop/system/addon', + 'parent' => '', + 'is_show' => 1, + 'picture' => 'app/shop/view/public/img/icon_new/plug_management_new.png', + 'picture_selected' => 'app/shop/view/public/img/icon_new/plug_management_select.png', + 'sort' => 2, + 'child_list' => [], + ], + [ + 'name' => 'CONFIG_SYSTEM_CACHE', + 'title' => '缓存管理', + 'url' => 'shop/system/cache', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 3, + 'child_list' => [], + ], + [ + 'name' => 'CONFIG_SYSTEM_DATABASE', + 'title' => '数据库管理', + 'url' => 'shop/system/database', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 4, + 'child_list' => [ + [ + 'name' => 'CONFIG_SYSTEM_DATABASE_LIST', + 'title' => '数据备份', + 'url' => 'shop/system/database', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 1, + ], + [ + 'name' => 'CONFIG_SYSTEM_IMPORTLIST', + 'title' => '数据还原', + 'url' => 'shop/system/importlist', + 'parent' => '', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 2, + ], + [ + 'name' => 'CONFIG_SYSTEM_BACKUP', + 'title' => '数据备份', + 'url' => 'shop/system/backup', + 'parent' => '', + 'is_show' => 0, + ], + [ + 'name' => 'CONFIG_SYSTEM_DELETEBACKUP', + 'title' => '删除备份文件', + 'url' => 'shop/system/deletebackup', + 'parent' => '', + 'is_show' => 0, + ], + [ + 'name' => 'CONFIG_SYSTEM_TABLEREPAIR', + 'title' => '数据表修复', + 'url' => 'shop/system/tablerepair', + 'parent' => '', + 'is_show' => 0, + ], + ], + ], + [ + 'name' => 'ADDRESS_MANAGE', + 'title' => '地区管理', + 'url' => 'shop/address/manage', + 'is_show' => 1, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 5, + ], + [ + 'name' => 'CONFIG_API', + 'title' => '登录秘钥', + 'url' => 'shop/config/api', + 'is_show' => 1, + 'is_control' => 1, + 'is_icon' => 0, + 'picture' => '', + 'picture_selected' => '', + 'sort' => 6 + ], + ], + ], + ] + ] +]; diff --git a/public/static/js/common.js b/public/static/js/common.js index e1c5794..d610cfe 100644 --- a/public/static/js/common.js +++ b/public/static/js/common.js @@ -117,6 +117,7 @@ ns.parse_mobile = function (mobile) { * type 类型 big、mid、small */ ns.img = function (path, type = '') { + type=''; if (path.indexOf(",") != -1) { path = path.split(',')[0]; } @@ -133,8 +134,10 @@ ns.img = function (path, type = '') { var base_url = this.baseUrl.replace('/?s=', ''); var base_url = base_url.replace('/index.php', ''); if (isNaN(first[0])) { - var true_path = base_url + path; - } else { + var true_path = base_url + '/'+path; + } else if(first[0]=='upload'){ + var true_path = base_url + '/' + path; + }else{ var true_path = base_url + 'attachment/' + path; } } else { @@ -361,14 +364,14 @@ ns.copy = function JScopy(dom, callback) { var o = { url: url.value }; - + var inputText = document.createElement('input'); inputText.value = o.url; document.body.appendChild(inputText); inputText.select(); - + document.execCommand("Copy"); - + if (callback) callback.call(this, o); inputText.type = 'hidden'; layer.msg('复制成功');