diff --git a/.gitignore b/.gitignore index 5d7803d6..c7428e8b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ public/static/download/* public/phpExcel/* app/controller/api/Test.php public/protocol.html +app/controller/Install.php +cert_crmeb.key.rej +cert_crmeb.key +/runtime \ No newline at end of file diff --git a/app/command/ClearMerchantData.php b/app/command/ClearMerchantData.php index a113877a..b9386e54 100644 --- a/app/command/ClearMerchantData.php +++ b/app/command/ClearMerchantData.php @@ -33,7 +33,25 @@ class ClearMerchantData extends Command if (!$flag) return; $tables = Db::query('SHOW TABLES FROM ' . env('database.database', '')); $pre = env('database.prefix', ''); - $bakTables = [$pre . 'page_link', $pre . 'page_category', $pre . 'diy', $pre . 'city_area', $pre . 'express', $pre . 'system_admin', $pre . 'system_city', $pre . 'system_config', $pre . 'system_config_classify', $pre . 'system_config_value', $pre . 'system_group', $pre . 'system_group_data', $pre . 'system_menu', $pre . 'system_role', $pre . 'template_message', $pre . 'system_notice_config']; + $bakTables = [ + $pre . 'page_link', + $pre . 'page_category', + $pre . 'diy', + $pre . 'city_area', + $pre . 'express', + $pre . 'system_admin', + $pre . 'system_city', + $pre . 'system_config', + $pre . 'system_config_classify', + $pre . 'system_config_value', + $pre . 'system_group', + $pre . 'system_group_data', + $pre . 'system_menu', + $pre . 'system_role', + $pre . 'template_message', + $pre . 'system_notice_config', + $pre . 'cache', + ]; foreach ($tables as $table) { $name = array_values($table)[0]; @@ -41,7 +59,7 @@ class ClearMerchantData extends Command Db::table($name)->delete(true); } } - + Db::table( $pre . 'cache')->whereNotIn('key','copyright_context,copyright_image,copyright_status')->delete(true); $output->info('删除成功'); } diff --git a/app/command/resetPassword.php b/app/command/resetPassword.php index 43632beb..34edba6e 100644 --- a/app/command/resetPassword.php +++ b/app/command/resetPassword.php @@ -38,7 +38,7 @@ class resetPassword extends Command $this->setName('reset:password') ->addArgument('root', Argument::OPTIONAL, 'root : admin') ->addOption('pwd', null, Option::VALUE_REQUIRED, 'pwd : 123456') - ->setDescription('the update resetPwd command'); + ->setDescription('php think admin --pwd 123'); } /** diff --git a/app/common/dao/community/CommunityDao.php b/app/common/dao/community/CommunityDao.php index ca171b2b..f4f81d9f 100644 --- a/app/common/dao/community/CommunityDao.php +++ b/app/common/dao/community/CommunityDao.php @@ -15,6 +15,7 @@ namespace app\common\dao\community; use app\common\dao\BaseDao; use app\common\model\community\Community; +use app\common\repositories\system\RelevanceRepository; class CommunityDao extends BaseDao { @@ -37,9 +38,27 @@ class CommunityDao extends BaseDao ->when(isset($where['keyword']) && $where['keyword'] !== '', function ($query) use($where) { $query->whereLike('Community.title',"%{$where['keyword']}%"); }) + ->when(isset($where['uid']) && $where['uid'] !== '', function ($query) use($where) { + $query->where('Community.uid',$where['uid']); + }) + ->when(isset($where['uids']) && $where['uids'] !== '', function ($query) use($where) { + $query->whereIn('Community.uid',$where['uids']); + }) ->when(isset($where['topic_id']) && $where['topic_id'] !== '', function ($query) use($where) { $query->where('Community.topic_id',$where['topic_id']); }) + ->when(isset($where['community_id']) && $where['community_id'] !== '', function ($query) use($where) { + $query->where('Community.community_id',$where['community_id']); + }) + ->when(isset($where['not_id']) && $where['not_id'] !== '', function ($query) use($where) { + $query->whereNotIn('Community.community_id',$where['not_id']); + }) + ->when(isset($where['community_ids']) && $where['community_ids'] !== '', function ($query) use($where) { + $query->whereIn('Community.community_id',$where['community_ids']); + }) + ->when(isset($where['is_type']) && $where['is_type'] !== '', function ($query) use($where) { + $query->whereIn('Community.is_type',$where['is_type']); + }) ->when(isset($where['is_show']) && $where['is_show'] !== '', function ($query) use($where) { $query->where('Community.is_show',$where['is_show']); }) @@ -80,4 +99,23 @@ class CommunityDao extends BaseDao { return $this->getModel()::getDb()->where('uid' ,$uid)->update(['is_del' => 1]); } + + public function joinUser($where) + { + return Community::hasWhere('relevanceRight',function($query) use($where){ + $query->where('type',RelevanceRepository::TYPE_COMMUNITY_START)->where('left_id',$where['uid']); + }) + ->when(isset($where['is_type']) && $where['is_type'] !== '', function ($query) use($where) { + $query->whereIn('Community.is_type',$where['is_type']); + }) + ->when(isset($where['is_show']) && $where['is_show'] !== '', function ($query) use($where) { + $query->where('Community.is_show',$where['is_show']); + }) + ->when(isset($where['status']) && $where['status'] !== '', function ($query) use($where) { + $query->where('Community.status',$where['status']); + }) + ->when(isset($where['is_del']) && $where['is_del'] !== '', function ($query) use($where) { + $query->where('Community.is_del',$where['is_del']); + }); + } } diff --git a/app/common/dao/store/PriceRuleDao.php b/app/common/dao/store/PriceRuleDao.php new file mode 100644 index 00000000..17e4cf47 --- /dev/null +++ b/app/common/dao/store/PriceRuleDao.php @@ -0,0 +1,50 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\dao\store; + + +use app\common\dao\BaseDao; +use app\common\model\store\PriceRule; +use app\common\repositories\system\RelevanceRepository; + +class PriceRuleDao extends BaseDao +{ + + protected function getModel(): string + { + return PriceRule::class; + } + + public function search(array $where) + { + return PriceRule::getDB()->when(isset($where['keyword']) && $where['keyword'] !== '', function ($query) use ($where) { + $query->whereLike('rule_name', "%{$where['keyword']}%"); + })->when(isset($where['is_show']) && $where['is_show'] !== '', function ($query) use ($where) { + $query->where('is_show', $where['is_show']); + })->when(isset($where['cate_id']) && $where['cate_id'] !== '', function ($query) use ($where) { + $ids = app()->make(RelevanceRepository::class)->query([ + 'type' => RelevanceRepository::PRICE_RULE_CATEGORY + ])->where(function ($query) use ($where) { + if (is_array($where['cate_id'])) { + $query->whereIn('right_id', $where['cate_id']); + } else { + $query->where('right_id', (int)$where['cate_id']); + } + })->group('left_id')->column('left_id'); + $ids[] = -1; + $query->where(function ($query) use ($ids) { + $query->whereIn('rule_id', $ids)->whereOr('is_default', 1); + }); + }); + } +} diff --git a/app/common/dao/store/coupon/StoreCouponDao.php b/app/common/dao/store/coupon/StoreCouponDao.php index 9bc7253c..3470427c 100644 --- a/app/common/dao/store/coupon/StoreCouponDao.php +++ b/app/common/dao/store/coupon/StoreCouponDao.php @@ -18,6 +18,7 @@ use app\common\dao\BaseDao; use app\common\model\BaseModel; use app\common\model\store\coupon\StoreCoupon; use app\common\model\store\coupon\StoreCouponUser; +use app\common\repositories\store\coupon\StoreCouponRepository; use app\common\repositories\system\merchant\MerchantRepository; use think\Collection; use think\db\BaseQuery; @@ -115,11 +116,10 @@ class StoreCouponDao extends BaseDao return $query; } - public function validCouponQueryWithMerchant($where,$uid = null,$send_type = 0) + public function validCouponQueryWithMerchant($where,$uid = null) { $query = StoreCoupon::alias('C')->leftJoin('Merchant M','C.mer_id = M.mer_id') ->where('C.status', 1) - ->where('C.send_type', $send_type) ->where('C.is_del', 0) ->when(isset($where['type']) && !is_null($where['type']), function ($query) use ($where) { if ($where['type'] == '') { @@ -128,6 +128,12 @@ class StoreCouponDao extends BaseDao $query->where('C.type', $where['type']); } }) + ->when(isset($where['send_type']) && $where['send_type'] != '', function($query) use($where){ + $query->where('C.send_type', $where['send_type']); + }) + ->when(isset($where['not_svip']) && $where['not_svip'] != '', function($query) use($where){ + $query->where('C.send_type', '<>',StoreCouponRepository::GET_COUPON_TYPE_SVIP); + }) ->when($uid, function($query) use($uid){ $couponId = StoreCouponUser::where('uid',$uid)->whereIn('status',[1,2])->column('coupon_id'); $query->whereNotIn('C.coupon_id', $couponId); @@ -179,6 +185,15 @@ class StoreCouponDao extends BaseDao })->where('coupon_id', $id)->find(); } + public function validSvipCoupon($id, $uid) + { + return $this->validCouponQuery(null,StoreCouponRepository::GET_COUPON_TYPE_SVIP)->when($uid, function (BaseQuery $query, $uid) { + $query->with(['svipIssue' => function (BaseQuery $query) use ($uid) { + $query->where('uid', $uid); + }]); + })->where('coupon_id', $id)->find(); + } + /** * @param $merId * @param null $uid diff --git a/app/common/dao/store/coupon/StoreCouponUserDao.php b/app/common/dao/store/coupon/StoreCouponUserDao.php index bed38a39..0edb4e9a 100644 --- a/app/common/dao/store/coupon/StoreCouponUserDao.php +++ b/app/common/dao/store/coupon/StoreCouponUserDao.php @@ -118,7 +118,7 @@ class StoreCouponUserDao extends BaseDao ->with(['product' => function ($query) { $query->field('coupon_id,product_id'); }, 'coupon' => function ($query) { - $query->field('coupon_id,type'); + $query->field('coupon_id,type,send_type'); }])->order('coupon_price DESC, coupon_user_id ASC')->select(); } } diff --git a/app/common/dao/store/order/StoreCartDao.php b/app/common/dao/store/order/StoreCartDao.php index b7689e15..0880d239 100644 --- a/app/common/dao/store/order/StoreCartDao.php +++ b/app/common/dao/store/order/StoreCartDao.php @@ -67,10 +67,10 @@ class StoreCartDao extends BaseDao $query = ($this->getModel())::where(['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0]) ->with([ 'product' => function ($query) { - $query->field('product_id,image,store_name,is_show,status,is_del,unit_name,price,mer_status,is_used,product_type,once_max_count,once_min_count,pay_limit'); + $query->field('product_id,image,store_name,is_show,status,is_del,unit_name,price,mer_status,is_used,product_type,once_max_count,once_min_count,pay_limit,mer_svip_status,svip_price_type'); }, 'productAttr' => function ($query) { - $query->field('product_id,stock,price,unique,sku,image'); + $query->field('product_id,stock,price,unique,sku,image,svip_price'); }, 'merchant' => function ($query) { $query->field('mer_id,mer_name,mer_state,mer_avatar,is_trader,type_id')->with(['type_name']); @@ -84,7 +84,7 @@ class StoreCartDao extends BaseDao { return StoreCart::getDb()->where('uid', $uid)->with([ 'product' => function (Relation $query) use ($address) { - $query->field('product_id,cate_id,image,store_name,is_show,status,is_del,unit_name,price,mer_status,temp_id,give_coupon_ids,is_gift_bag,is_used,product_type,old_product_id,integral_rate,delivery_way,delivery_free,type,extend,pay_limit,once_max_count,once_min_count'); + $query->field('product_id,cate_id,image,store_name,is_show,status,is_del,unit_name,price,mer_status,temp_id,give_coupon_ids,is_gift_bag,is_used,product_type,old_product_id,integral_rate,delivery_way,delivery_free,type,extend,pay_limit,once_max_count,once_min_count,mer_svip_status,svip_price_type'); if ($address) { $cityIds = array_filter([$address->province_id, $address->city_id, $address->district_id, $address->street_id]); $query->with(['temp' => ['region' => function (Relation $query) use ($cityIds) { @@ -107,7 +107,7 @@ class StoreCartDao extends BaseDao } }, 'productAttr' => function (Relation $query) { - $query->field('image,extension_one,extension_two,product_id,stock,price,unique,sku,volume,weight,ot_price,cost') + $query->field('image,extension_one,extension_two,product_id,stock,price,unique,sku,volume,weight,ot_price,cost,svip_price') ->append(['bc_extension_one', 'bc_extension_two']); }, 'merchant' => function (Relation $query) use ($uid) { diff --git a/app/common/dao/store/order/StoreOrderDao.php b/app/common/dao/store/order/StoreOrderDao.php index 500fdebc..468c17e4 100644 --- a/app/common/dao/store/order/StoreOrderDao.php +++ b/app/common/dao/store/order/StoreOrderDao.php @@ -37,6 +37,16 @@ use think\Model; */ class StoreOrderDao extends BaseDao { + //订单状态(0:待发货;1:待收货;2:待评价;3:已完成; 9: 拼团中 10: 待付尾款 11:尾款超时未付 -1:已退款) + const ORDER_STATUS_BE_SHIPPED = 0; + const ORDER_STATUS_BE_RECEIVE = 1; + const ORDER_STATUS_REPLY = 2; + const ORDER_STATUS_SUCCESS = 3; + const ORDER_STATUS_SPELL = 9; + const ORDER_STATUS_TAIL = 10; + const ORDER_STATUS_TAIL_FAIL = 11; + const ORDER_STATUS_REFUND = -1; + /** * @return string @@ -82,18 +92,28 @@ class StoreOrderDao extends BaseDao $query->where('activity_type', $where['activity_type']); }) ->when(isset($where['status']) && $where['status'] !== '', function ($query) use ($where) { - if ($where['status'] == -2) - $query->where('paid', 1)->whereNotIn('StoreOrder.status', [10, 11]); - else if ($where['status'] == 0) - $query->whereIn('StoreOrder.status', [0, 9]); - else if ($where['status'] == 10) - $query->whereIn('StoreOrder.status', [10, 11]); - else - $query->where('StoreOrder.status', $where['status']); + switch ($where['status']) { + case 0 : + $query->whereIn('StoreOrder.status', [0, 9]); + break; + case -2 : + $query->where('paid', 1)->whereNotIn('StoreOrder.status', [10, 11]); + break; + case 10 : + $query->where('paid', 1)->whereIn('StoreOrder.status', [10, 11]); + break; + default: + $query->where('StoreOrder.status', $where['status']); + break; + } }) ->when(isset($where['uid']) && $where['uid'] !== '', function ($query) use ($where) { $query->where('uid', $where['uid']); }) + //待核销订单 + ->when(isset($where['is_verify']) && $where['is_verify'], function ($query) use ($where) { + $query->where('StoreOrder.order_type', 1)->where('StoreOrder.status',0); + }) ->when(isset($where['pay_type']) && $where['pay_type'] !== '', function ($query) use ($where) { $query->where('StoreOrder.pay_type', $where['pay_type']); }) @@ -152,7 +172,9 @@ class StoreOrderDao extends BaseDao $query->where('mer_id',$where['mer_id']); })->column('order_id'); $query->where(function($query) use($orderId,$where){ - $query->whereIn('order_id',$orderId ?: '')->whereOr('order_sn','like',"%{$where['search']}%"); + $query->whereIn('order_id',$orderId ? $orderId : '') + ->whereOr('order_sn','like',"%{$where['search']}%") + ->whereOr('user_phone','like',"%{$where['search']}%"); }); }) ->when(isset($where['group_order_sn']) && $where['group_order_sn'] !== '', function ($query) use ($where) { diff --git a/app/common/dao/store/order/StoreOrderProductDao.php b/app/common/dao/store/order/StoreOrderProductDao.php index 90db3aa4..0461cf44 100644 --- a/app/common/dao/store/order/StoreOrderProductDao.php +++ b/app/common/dao/store/order/StoreOrderProductDao.php @@ -28,7 +28,8 @@ use think\model\Relation; */ class StoreOrderProductDao extends BaseDao { - + const ORDER_VERIFY_STATUS_ = 1; + const ORDER_VERIFY_STATUS_SUCCESS = 3; /** * @return string * @author xaboy @@ -64,7 +65,7 @@ class StoreOrderProductDao extends BaseDao */ public function noReplyProductCount($orderId) { - return StoreOrderProduct::getDB()->where('order_id', $orderId)->where('is_reply', 0) + return StoreOrderProduct::getDB()->where('order_id', $orderId)->where('is_refund','<>','3')->where('is_reply', 0) ->count(); } diff --git a/app/common/dao/store/order/StoreRefundOrderDao.php b/app/common/dao/store/order/StoreRefundOrderDao.php index 2480d146..1e25f8d4 100644 --- a/app/common/dao/store/order/StoreRefundOrderDao.php +++ b/app/common/dao/store/order/StoreRefundOrderDao.php @@ -63,7 +63,7 @@ class StoreRefundOrderDao extends BaseDao })->when(isset($where['type']) && $where['type'] == 1, function ($query) { $query->whereIn('StoreRefundOrder.status', [0, 1, 2]); })->when(isset($where['type']) && $where['type'] == 2, function ($query) { - $query->whereIn('status', [-1, 3]); + $query->whereIn('status', [-1, 3,-10]); })->when(isset($where['refund_type']) && $where['refund_type'] !== '',function($query)use($where){ $query->where('refund_type',$where['refund_type']); })->when(isset($where['reconciliation_type']) && $where['reconciliation_type'] !== '' ,function($query)use($where){ diff --git a/app/common/dao/store/product/ProductAttrValueDao.php b/app/common/dao/store/product/ProductAttrValueDao.php index 25eade1e..3b0b29a0 100644 --- a/app/common/dao/store/product/ProductAttrValueDao.php +++ b/app/common/dao/store/product/ProductAttrValueDao.php @@ -15,6 +15,7 @@ namespace app\common\dao\store\product; use app\common\dao\BaseDao; use app\common\model\store\product\ProductAttrValue as model; +use app\common\repositories\store\product\ProductRepository; use think\db\exception\DbException; use think\facade\Db; @@ -257,4 +258,22 @@ class ProductAttrValueDao extends BaseDao }); return $query; } + + public function updates(array $ids, array $data) + { + $this->getModel()::getDb()->whereIn('product_id',$ids)->update($data); + } + + public function updatesExtension(array $ids, array $data) + { + app()->make(ProductRepository::class)->updates($ids,['extension_type' => 1]); + $query = $this->getModel()::getDb()->where('product_id','in',$ids); + $query->chunk(100, function($list) use($data){ + foreach ($list as $item) { + $arr['extension_one'] = bcmul($item->price,$data['extension_one'],2); + $arr['extension_two'] = bcmul($item->price,$data['extension_two'],2); + $this->getModel()::getDb()->where('unique',$item->unique)->update($arr); + } + },'product_id'); + } } diff --git a/app/common/dao/store/product/SpuDao.php b/app/common/dao/store/product/SpuDao.php index 1991fd0b..542dbc5e 100644 --- a/app/common/dao/store/product/SpuDao.php +++ b/app/common/dao/store/product/SpuDao.php @@ -103,6 +103,9 @@ class SpuDao extends BaseDao ->when(isset($where['product_ids']) && !empty($where['product_ids']), function ($query) use ($where) { $query->whereIn('P.product_id',$where['product_ids']); }) + ->when(isset($where['is_stock']) && !empty($where['is_stock']), function ($query) use ($where) { + $query->where('P.stock','>',0); + }) ->when(isset($where['is_coupon']) && !empty($where['is_coupon']), function ($query) use ($where) { $query->whereIn('P.product_type','0,2'); }) @@ -158,6 +161,9 @@ class SpuDao extends BaseDao else if ($where['hot_type'] == 'hot') $query->where('P.is_hot', 1); else if ($where['hot_type'] == 'best') $query->where('P.is_best', 1); else if ($where['hot_type'] == 'good') $query->where('P.is_benefit', 1); + }) + ->when(isset($where['svip']) && $where['svip'] !== '',function($query)use($where){ + $query->where('svip_price_type','>',0)->where('mer_svip_status',1); }); return $query->order($order); } diff --git a/app/common/dao/system/CacheDao.php b/app/common/dao/system/CacheDao.php index 6bca9f4a..64bf47aa 100644 --- a/app/common/dao/system/CacheDao.php +++ b/app/common/dao/system/CacheDao.php @@ -68,6 +68,7 @@ class CacheDao extends BaseDao { $cache = $this->getModel()::getDB()->whereIn('key',$keys)->column('result','key'); $ret = []; + foreach ($cache as $k => $v) { $ret[$k] = json_decode($v); } diff --git a/app/common/dao/system/RelevanceDao.php b/app/common/dao/system/RelevanceDao.php index 77bd974f..abeadb4f 100644 --- a/app/common/dao/system/RelevanceDao.php +++ b/app/common/dao/system/RelevanceDao.php @@ -32,13 +32,16 @@ class RelevanceDao extends BaseDao } - public function joinUser($uid) + public function joinUser($where) { - $query = Relevance::hasWhere('community',function($query) use($uid){ + $query = Relevance::hasWhere('community',function($query) use($where){ $query->where('status',1)->where('is_show',1)->where('is_del',0); + $query->when(isset($where['is_type']) && $where['is_type'] !== '',function($query) use($where){ + $query->where('is_type',$where['is_type']); + }); }); - $query->where('left_id',$uid)->where('type',RelevanceRepository::TYPE_COMMUNITY_START); + $query->where('left_id',$where['uid'])->where('type',RelevanceRepository::TYPE_COMMUNITY_START); return $query; } diff --git a/app/common/dao/system/merchant/MerchantDao.php b/app/common/dao/system/merchant/MerchantDao.php index c1166189..68658057 100644 --- a/app/common/dao/system/merchant/MerchantDao.php +++ b/app/common/dao/system/merchant/MerchantDao.php @@ -230,9 +230,11 @@ class MerchantDao extends BaseDao { $field = 'mer_money'; $merchant = $this->getModel()::getDB()->where('mer_id', $merId)->find(); - $mer_money = bcadd($merchant[$field], $num, 2); - $merchant[$field] = $mer_money; - $merchant->save(); + if ($merchant) { + $mer_money = bcadd($merchant[$field], $num, 2); + $merchant[$field] = $mer_money; + $merchant->save(); + } } /** @@ -246,9 +248,11 @@ class MerchantDao extends BaseDao { $field = 'mer_money'; $merchant = $this->getModel()::getDB()->where('mer_id', $merId)->find(); - $mer_money = bcsub($merchant[$field], $num, 2); - $merchant[$field] = $mer_money; - $merchant->save(); + if ($merchant) { + $mer_money = bcsub($merchant[$field], $num, 2); + $merchant[$field] = $mer_money; + $merchant->save(); + } } public function clearTypeId(int $typeId) diff --git a/app/common/dao/system/notice/SystemNoticeConfigDao.php b/app/common/dao/system/notice/SystemNoticeConfigDao.php index 87f82112..ae2307a3 100644 --- a/app/common/dao/system/notice/SystemNoticeConfigDao.php +++ b/app/common/dao/system/notice/SystemNoticeConfigDao.php @@ -37,4 +37,30 @@ class SystemNoticeConfigDao extends BaseDao $value = $this->getModel()::getDb()->where('const_key',$key)->field('notice_sys,notice_wechat,notice_routine,notice_sms')->find(); return $value; } + + public function search($where) + { + $query = $this->getModel()::getDb() + ->when(isset($where['is_sms']) && $where['is_sms'] != '', function($query){ + $query->whereIn('notice_sms',[0,1]); + }) + ->when(isset($where['is_routine']) && $where['is_routine'] != '', function($query){ + $query->whereIn('notice_routine',[0,1]); + }) + ->when(isset($where['is_wechat']) && $where['is_wechat'] != '', function($query){ + $query->whereIn('notice_wechat',[0,1]); + }) + ; + return $query; + } + + public function getSubscribe() + { + $arr = []; + $res = $this->search([])->where(['notice_routine' => 1])->with(['routineTemplate'])->select()->toArray(); + foreach ($res as $re) { + $arr[$re['const_key']] = $re['routineTemplate']['tempid'] ?? ''; + } + return $arr; + } } diff --git a/app/common/dao/user/UserDao.php b/app/common/dao/user/UserDao.php index 87ef356b..31da0c1d 100644 --- a/app/common/dao/user/UserDao.php +++ b/app/common/dao/user/UserDao.php @@ -70,12 +70,13 @@ class UserDao extends BaseDao } else { $query = User::getDB()->alias('User'); } - $query->whereNull('User.cancel_time')->when(isset($where['keyword']) && $where['keyword'], function (BaseQuery $query) use ($where) { + $query->whereNull('User.cancel_time') + ->when(isset($where['keyword']) && $where['keyword'], function (BaseQuery $query) use ($where) { return $query->where('User.uid|User.real_name|User.nickname|User.phone', 'like', '%' . $where['keyword'] . '%'); })->when(isset($where['user_type']) && $where['user_type'] !== '', function (BaseQuery $query) use ($where) { return $query->where('User.user_type', $where['user_type']); - })->when(isset($where['uids']) && $where['uids'] !== '', function (BaseQuery $query) use ($where) { - return $query->whereIn('User.uid', $where['uids']); + })->when(isset($where['uid']) && $where['uid'] !== '', function (BaseQuery $query) use ($where) { + return $query->where('User.uid', $where['uid']); })->when(isset($where['status']) && $where['status'] !== '', function (BaseQuery $query) use ($where) { return $query->where('User.status', intval($where['status'])); })->when(isset($where['group_id']) && $where['group_id'], function (BaseQuery $query) use ($where) { @@ -121,6 +122,10 @@ class UserDao extends BaseDao $query->order('User.' . $where['sort']); }, function ($query) { $query->order('User.uid DESC'); + })->when(isset($where['is_svip']) && $where['is_svip'] !== '', function (BaseQuery $query) use ($where) { + return $query->where('User.is_svip','>',0); + })->when(isset($where['svip_type']) && $where['svip_type'] !== '', function (BaseQuery $query) use ($where) { + return $query->where('User.is_svip',$where['svip_type']); }); return $query; @@ -287,7 +292,7 @@ class UserDao extends BaseDao return User::getDB()->alias('A') ->join('StoreOrder B', 'A.uid = B.uid and B.paid = 1 and B.pay_time between \'' . date('Y/m/d', strtotime('first day of')) . ' 00:00:00\' and \'' . date('Y/m/d H:i:s') . '\'') ->join('PresellOrder C', 'C.order_id = B.order_id and C.paid = 1', 'LEFT') - ->field('A.uid,A.avatar,A.nickname,A.now_money,A.pay_price,A.pay_count, sum(B.pay_price + IFNULL(C.pay_price,0)) as total_pay_price, count(B.order_id) as total_pay_count') + ->field('A.uid,A.avatar,A.nickname,A.now_money,A.pay_price,A.pay_count, sum(B.pay_price + IFNULL(C.pay_price,0)) as total_pay_price, count(B.order_id) as total_pay_count,is_svip,svip_endtime,svip_save_money') ->where('A.uid', $uid) ->find(); } diff --git a/app/common/dao/user/UserOrderDao.php b/app/common/dao/user/UserOrderDao.php new file mode 100644 index 00000000..ff11ffec --- /dev/null +++ b/app/common/dao/user/UserOrderDao.php @@ -0,0 +1,68 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\dao\user; + +use app\common\dao\BaseDao; +use app\common\model\user\LabelRule; +use app\common\model\user\UserOrder; + +class UserOrderDao extends BaseDao +{ + + protected function getModel(): string + { + return UserOrder::class; + } + + public function search(array $where) + { + return UserOrder::hasWhere('user',function($query)use($where){ + $query->when(isset($where['uid']) && $where['uid'] != '',function($query) use($where){ + $query->where('uid', $where['uid']); + }) + ->when(isset($where['keyword']) && $where['keyword'] != '',function($query) use($where){ + $query->whereLike('nickname', "%{$where['keyword']}%"); + }) + ->when(isset($where['phone']) && $where['phone'] != '',function($query) use($where){ + $query->where('phone', $where['phone']); + }); + $query->where(true); + }) + ->when(isset($where['order_sn']) && $where['order_sn'] !== '', function ($query) use ($where) { + $query->whereLike('order_sn', "%{$where['order_sn']}%"); + }) + ->when(isset($where['title']) && $where['title'] !== '', function ($query) use ($where) { + $query->whereLike('title', "%{$where['title']}%"); + }) + ->when(isset($where['order_type']) && $where['order_type'] !== '', function ($query) use ($where) { + $query->where('order_type', $where['order_type']); + }) + ->when(isset($where['paid']) && $where['paid'] !== '', function ($query) use ($where) { + $query->where('paid', $where['paid']); + }) + ->when(isset($where['pay_type']) && $where['pay_type'] !== '', function ($query) use ($where) { + $query->where('pay_type', $where['pay_type']); + }) + ->when(isset($where['pay_time']) && $where['pay_time'] !== '', function ($query) use ($where) { + $query->whereDay('pay_time', $where['pay_time']); + }) + ->when(isset($where['mer_id']) && $where['mer_id'] !== '', function ($query) use ($where) { + $query->whereDay('mer_id', $where['mer_id']); + }) + ->when(isset($where['date']) && $where['date'] !== '', function ($query) use ($where) { + getModelTime($query, $where['date'], 'UserOrder.create_time'); + }) + ; + } +} diff --git a/app/common/middleware/AdminTokenMiddleware.php b/app/common/middleware/AdminTokenMiddleware.php index c2f1a6f2..5bc54e31 100644 --- a/app/common/middleware/AdminTokenMiddleware.php +++ b/app/common/middleware/AdminTokenMiddleware.php @@ -93,6 +93,9 @@ class AdminTokenMiddleware extends BaseMiddleware $request->macro('adminInfo', function () use (&$admin) { return $admin; }); + $request->macro('userType', function () { + return 2; + }); } public function after(Response $response) diff --git a/app/common/middleware/AllowOriginMiddleware.php b/app/common/middleware/AllowOriginMiddleware.php index f36f7ef0..e58a25f8 100644 --- a/app/common/middleware/AllowOriginMiddleware.php +++ b/app/common/middleware/AllowOriginMiddleware.php @@ -35,7 +35,7 @@ class AllowOriginMiddleware extends BaseMiddleware 'Access-Control-Allow-Headers' => 'X-Token, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With,Form-type,Referer,Connection,Content-Length,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding', //,Host,Origin,Authorization,Authori-zation,Accept,Accept-Encoding //'Access-Control-Allow-Headers' => '*', - 'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE', + 'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS', 'Access-Control-Max-Age' => '1728000' ]; diff --git a/app/common/middleware/BlockerMiddleware.php b/app/common/middleware/BlockerMiddleware.php new file mode 100644 index 00000000..f56692b3 --- /dev/null +++ b/app/common/middleware/BlockerMiddleware.php @@ -0,0 +1,59 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\middleware; + +use app\common\repositories\system\auth\MenuRepository; +use app\common\repositories\system\auth\RoleRepository; +use app\Request; +use Doctrine\Common\Cache\RedisCache; +use http\Exception\InvalidArgumentException; +use think\facade\Cache; +use think\Response; + +class BlockerMiddleware extends BaseMiddleware +{ + protected $key; + + public function before(Request $request) + { + $uid = request()->uid(); + $this->key = md5(request()->rule()->getRule() . $uid); + if (!$this->setMutex($this->key)) { + throw new InvalidArgumentException('请求太过频繁,请稍后再试'); + } + } + + public function setMutex(string $key, int $timeout = 10) + { + $curTime = time(); + $readMutexKey = "redis:mutex:{$key}"; + $mutexRes = Cache::store('redis')->handler()->setnx($readMutexKey, $curTime + $timeout); + if ($mutexRes) { + return true; + } + //就算意外退出,下次进来也会检查key,防止死锁 + $time = Cache::store('redis')->handler()->get($readMutexKey); + if ($curTime > $time) { + Cache::store('redis')->handler()->del($readMutexKey); + return Cache::store('redis')->handler()->setnx($readMutexKey, $curTime + $timeout); + } + return false; + } + + public function after(Response $response) + { + Cache::store('redis')->handler()->del("redis:mutex:{$this->key}"); + // TODO: Implement after() method. + } +} diff --git a/app/common/middleware/MerchantTokenMiddleware.php b/app/common/middleware/MerchantTokenMiddleware.php index 3a9b4f27..ab64b708 100644 --- a/app/common/middleware/MerchantTokenMiddleware.php +++ b/app/common/middleware/MerchantTokenMiddleware.php @@ -109,6 +109,9 @@ class MerchantTokenMiddleware extends BaseMiddleware $request->macro('merchant', function () use (&$merchant) { return $merchant; }); + $request->macro('userType', function () use (&$merchant) { + return 3; + }); } public function after(Response $response) diff --git a/app/common/middleware/RequestLockMiddleware.php b/app/common/middleware/RequestLockMiddleware.php new file mode 100644 index 00000000..9ae68e1f --- /dev/null +++ b/app/common/middleware/RequestLockMiddleware.php @@ -0,0 +1,35 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\middleware; + +use app\Request; +use crmeb\interfaces\MiddlewareInterface; +use crmeb\services\LockService; +use think\Response; + +class RequestLockMiddleware implements MiddlewareInterface +{ + final public function handle(Request $request, \Closure $next, ...$args): Response + { + $params = $request->route(); + if (!count($params) || in_array(strtolower($request->method()), ['get', 'options']) || $request->rule()->getOption('_lock', true) === false) { + return $next($request); + } + ksort($params); + $key = 're:' . $request->rule()->getName() . ':' . implode('-', $params); + return app()->make(LockService::class)->exec($key, function () use ($next, $request) { + return $next($request); + }, 8); + } +} diff --git a/app/common/middleware/UserTokenMiddleware.php b/app/common/middleware/UserTokenMiddleware.php index 2b13e490..e7655af1 100644 --- a/app/common/middleware/UserTokenMiddleware.php +++ b/app/common/middleware/UserTokenMiddleware.php @@ -81,6 +81,9 @@ class UserTokenMiddleware extends BaseMiddleware $request->macro('isLogin', function () { return true; }); + $request->macro('userType', function () { + return 1; + }); $request->macro('tokenInfo', function () use (&$payload) { return $payload; }); diff --git a/app/common/model/community/Community.php b/app/common/model/community/Community.php index 87185850..93a0adcd 100644 --- a/app/common/model/community/Community.php +++ b/app/common/model/community/Community.php @@ -70,6 +70,14 @@ class Community extends BaseModel ->where('type',RelevanceRepository::TYPE_COMMUNITY_PRODUCT); } + /* + * 右侧为内容ID的 + */ + public function relevanceRight() + { + return $this->hasMany(Relevance::class, 'right_id','community_id'); + } + public function isStart() { return $this->hasOne(Relevance::class, 'right_id','community_id')->where('type', RelevanceRepository::TYPE_COMMUNITY_START)->bind(['relevance_id']); @@ -77,7 +85,7 @@ class Community extends BaseModel public function isFans() { - return $this->hasOne(Relevance::class, 'right_id','uid')->where('type', RelevanceRepository::TYPE_COMMUNITY_FANS)->bind(['right_id']); + return $this->hasOne(Relevance::class, 'right_id','uid')->where('type', RelevanceRepository::TYPE_COMMUNITY_FANS)->bind(['is_fans' => 'right_id']); } public function category() @@ -90,6 +98,11 @@ class Community extends BaseModel return date('m月d日',strtotime($this->create_time)); } + public function getCountReplyAttr() + { + return CommunityReply::where('community_id',$this->community_id)->where('status',1)->count(); + } + public function searchTopicIdAttr($query, $value) { $query->where('topic_id', $value); @@ -142,6 +155,21 @@ class Community extends BaseModel ->column('left_id'); $query->where('community_id','in', $id); } + + public function searchIsTypeAttr($query, $value) + { + $query->whereIn('is_type', $value); + } + + public function searchCommunityIdAttr($query, $value) + { + $query->where('community_id', $value); + } + + public function searchNotIdAttr($query, $value) + { + $query->where('community_id', '<>',$value); + } public function searchNoCategoryIdAttr($query, $value) { $query->where('category_id', '<>',$value); diff --git a/app/common/model/store/CityArea.php b/app/common/model/store/CityArea.php index 89ce8b7a..08d9b0b6 100644 --- a/app/common/model/store/CityArea.php +++ b/app/common/model/store/CityArea.php @@ -27,4 +27,20 @@ class CityArea extends BaseModel { return 'city_area'; } + + public function parent() + { + return $this->hasOne(self::class,'id','parent_id'); + } + + public function getChildrenAttr() + { + return []; + } + + public function getHasChildrenAttr() + { + $count = self::where('parent_id',$this->id)->count(); + return $count ? true : false; + } } diff --git a/app/common/model/store/PriceRule.php b/app/common/model/store/PriceRule.php new file mode 100644 index 00000000..ea822550 --- /dev/null +++ b/app/common/model/store/PriceRule.php @@ -0,0 +1,39 @@ + +// +---------------------------------------------------------------------- + +namespace app\common\model\store; + +use app\common\model\BaseModel; +use app\common\model\system\Relevance; +use app\common\repositories\system\RelevanceRepository; + +class PriceRule extends BaseModel +{ + + public static function tablePk(): string + { + return 'rule_id'; + } + + + public static function tableName(): string + { + return 'price_rule'; + } + + public function cate() + { + return $this->hasMany(Relevance::class, 'left_id', 'rule_id')->where([ + 'type' => RelevanceRepository::PRICE_RULE_CATEGORY + ])->with(['category']); + } +} diff --git a/app/common/model/store/coupon/StoreCoupon.php b/app/common/model/store/coupon/StoreCoupon.php index 1b6538f7..e675ecc0 100644 --- a/app/common/model/store/coupon/StoreCoupon.php +++ b/app/common/model/store/coupon/StoreCoupon.php @@ -51,6 +51,10 @@ class StoreCoupon extends BaseModel { return $this->hasOne(StoreCouponIssueUser::class, 'coupon_id', 'coupon_id'); } + public function svipIssue() + { + return $this->hasOne(StoreCouponIssueUser::class, 'coupon_id', 'coupon_id')->whereMonth('create_time'); + } public function merchant() { diff --git a/app/common/model/store/order/StoreCart.php b/app/common/model/store/order/StoreCart.php index 4f8edb39..822dad00 100644 --- a/app/common/model/store/order/StoreCart.php +++ b/app/common/model/store/order/StoreCart.php @@ -23,6 +23,7 @@ use app\common\model\store\product\ProductGroup; use app\common\model\store\product\ProductPresell; use app\common\model\store\product\ProductPresellSku; use app\common\model\store\product\ProductSku; +use app\common\model\store\product\Spu; use app\common\model\store\product\StoreDiscounts; use app\common\model\system\merchant\Merchant; use app\common\repositories\store\order\StoreOrderProductRepository; @@ -79,6 +80,7 @@ class StoreCart extends BaseModel return $this->hasOne(Merchant::class, 'mer_id', 'mer_id'); } + public function productPresell() { return $this->hasOne(ProductPresell::class,'product_presell_id','source_id'); @@ -146,6 +148,21 @@ class StoreCart extends BaseModel return $make->getSearch($where)->find(); } + public function getSpuAttr() + { + if ($this->product_type) { + $where = [ + 'activity_id' => $this->source_id, + 'product_type' => $this->product_type, + ]; + } else { + $where = [ + 'product_id' => $this->product_id, + 'product_type' => $this->product_type, + ]; + } + return Spu::where($where)->field('spu_id,store_name')->find(); + } /** * TODO 检测商品是否有效 * @return bool diff --git a/app/common/model/store/order/StoreOrder.php b/app/common/model/store/order/StoreOrder.php index 6542862a..a01773cc 100644 --- a/app/common/model/store/order/StoreOrder.php +++ b/app/common/model/store/order/StoreOrder.php @@ -51,6 +51,11 @@ class StoreOrder extends BaseModel return $this->hasMany(StoreRefundOrder::class,'order_id','order_id'); } + public function orderStatus() + { + return $this->hasMany(StoreOrderStatus::class,'order_id','order_id')->order('change_time DESC'); + } + public function merchant() { return $this->hasOne(Merchant::class, 'mer_id', 'mer_id'); @@ -60,6 +65,10 @@ class StoreOrder extends BaseModel { return $this->hasOne(User::class, 'uid', 'uid'); } + public function receipt() + { + return $this->hasOne(StoreOrderReceipt::class, 'order_id', 'order_id'); + } public function spread() { @@ -158,4 +167,8 @@ class StoreOrder extends BaseModel return $this->hasOne(Community::class, 'order_id', 'order_id')->bind(['community_id']); } + public function getRefundPriceAttr() + { + return StoreRefundOrder::where('order_id',$this->order_id)->where('status',3)->sum('refund_price'); + } } diff --git a/app/common/model/store/product/Product.php b/app/common/model/store/product/Product.php index 57f9b1f8..1a75c944 100644 --- a/app/common/model/store/product/Product.php +++ b/app/common/model/store/product/Product.php @@ -18,6 +18,7 @@ use app\common\model\store\coupon\StoreCouponProduct; use app\common\model\store\Guarantee; use app\common\model\store\GuaranteeTemplate; use app\common\model\store\GuaranteeValue; +use app\common\model\store\parameter\ParameterValue; use app\common\model\store\shipping\ShippingTemplate; use app\common\model\store\StoreBrand; use app\common\model\store\StoreCategory; @@ -25,6 +26,7 @@ use app\common\model\store\StoreSeckillActive; use app\common\model\system\merchant\Merchant; use app\common\repositories\store\StoreCategoryRepository; use crmeb\services\VicWordService; +use Darabonba\GatewaySpi\Models\InterceptorContext\request; use think\db\BaseQuery; use think\facade\Db; use think\model\concern\SoftDelete; @@ -71,19 +73,30 @@ class Product extends BaseModel public function getMaxExtensionAttr($value) { if($this->extension_type){ - return ($this->attrValue()->order('extension_two DESC')->value('extension_one')); + $org_extension = ($this->attrValue()->order('extension_two DESC')->value('extension_one')); } else { - return bcmul(($this->attrValue()->order('price DESC')->value('price')) , systemConfig('extension_one_rate'),2); + $org_extension = bcmul(($this->attrValue()->order('price DESC')->value('price')) , systemConfig('extension_one_rate'),2); } + $spreadUser = (request()->isLogin() && request()->userType() == 1 ) ? request()->userInfo() : null; + if ($spreadUser && $spreadUser->brokerage_level > 0 && $spreadUser->brokerage && $spreadUser->brokerage->extension_one_rate > 0) { + $org_extension = bcmul($org_extension, 1 + $spreadUser->brokerage->extension_one_rate, 2); + } + return $org_extension; } public function getMinExtensionAttr($value) { if($this->extension_type){ - return ($this->attrValue()->order('extension_two ASC')->value('extension_two')); + $org_extension = ($this->attrValue()->order('extension_two ASC')->value('extension_two')); } else { - return bcmul(($this->attrValue()->order('price ASC')->value('price')) , systemConfig('extension_one_rate'),2); + $org_extension = bcmul(($this->attrValue()->order('price ASC')->value('price')) , systemConfig('extension_one_rate'),2); } + $spreadUser = (request()->isLogin() && request()->userType() == 1 ) ? request()->userInfo() : null; + if ($spreadUser && $spreadUser->brokerage_level > 0 && $spreadUser->brokerage && $spreadUser->brokerage->extension_one_rate > 0) { + $org_extension = bcmul($org_extension, 1 + $spreadUser->brokerage->extension_one_rate, 2); + } + return $org_extension; } + public function check() { if(!$this || !$this->is_show || !$this->is_used || !$this->status || $this->is_del || !$this->mer_status) return false; @@ -159,6 +172,14 @@ class Product extends BaseModel if ($res['orderProduct']) $res['sku'] = $res['orderProduct']['cart_info']['productAttr']['sku']; unset($res['orderProduct']); + if (strlen($res['nickname']) > 1) { + $str = mb_substr($res['nickname'],0,1) . '*'; + if (strlen($res['nickname']) > 2) { + $str .= mb_substr($res['nickname'], -1,1); + } + $res['nickname'] = $str; + } + return $res; } @@ -202,6 +223,26 @@ class Product extends BaseModel } } + /** + * TODO 商品参数 + * @author Qinii + * @day 2022/11/24 + */ + public function getParamsAttr() + { + if(in_array($this->product_type,[0,2])) { + $product_id = $this->product_id; + } else { + $product_id = $this->old_product_id; + } + return ParameterValue::where('product_id',$product_id)->order('parameter_value_id ASC')->select(); + } + + public function getParamTempIdAttr($value) + { + return $value ? explode(',',$value) : $value; + } + /* * ----------------------------------------------------------------------------------------------------------------- * 关联模型 @@ -279,6 +320,93 @@ class Product extends BaseModel return $this->hasOne(GuaranteeTemplate::class,'guarantee_template_id','guarantee_template_id')->where('status',1)->where('is_del',0); } + + /** + * TODO 是否是会员 + * @return bool + * @author Qinii + * @day 2023/1/4 + */ + public function getIsVipAttr() + { + if (request()->isLogin()) { + if (request()->userType() == 1) { + $userInfo = request()->userInfo(); + return $userInfo->is_svip ? true : false; + } else { + return true; + } + } + return false; + } + /** + * TODO 是否展示会员价 + * @return bool + * @author Qinii + * @day 2023/1/4 + */ + public function getShowSvipPriceAttr() + { + if ($this->mer_svip_status != 0 && (systemConfig('svip_show_price') != 1 || $this->is_vip) && $this->svip_price_type > 0 ) { + return true; + } + return false; + } + + + /** + * TODO 是否显示会员价等信息 + * @return array + * @author Qinii + * @day 2022/11/24 + */ + public function getShowSvipInfoAttr() + { + $res = [ + 'show_svip' => true, //是否展示会员入口 + 'is_svip' => false, //当前用户是否是会员 + 'show_svip_price' => false, //是否展示会员价 + 'save_money' => 0, //当前商品会员优化多少钱 + ]; + if ($this->product_type == 0) { + if (!systemConfig('svip_switch_status')) { + $res['show_svip'] = false; + } else { + $res['is_svip'] = $this->is_vip; + if ($this->show_svip_price) { + $res['show_svip_price'] = true; + $res['save_money'] = bcsub($this->price, $this->svip_price, 2); + } + } + } + return $res; + } + + /** + * TODO 获取会员价 + * @return int|string + * @author Qinii + * @day 2023/1/4 + */ + public function getSvipPriceAttr() + { + if ($this->product_type == 0 && $this->mer_svip_status != 0 && $this->show_svip_price) { + //默认比例 + if ($this->svip_price_type == 1) { + $rate = merchantConfig($this->mer_id,'svip_store_rate'); + $svip_store_rate = $rate > 0 ? bcdiv($rate,100,2) : 0; + $price = $this->attrValue()->order('price ASC')->value('price'); + return bcmul($price,$svip_store_rate,2); + } + //自定义 + if ($this->svip_price_type == 2) { + return $this->getData('svip_price'); + } + } + return 0; + } + + /* * ----------------------------------------------------------------------------------------------------------------- * 搜索器 diff --git a/app/common/model/store/product/ProductAssist.php b/app/common/model/store/product/ProductAssist.php index b04aca62..04ba4203 100644 --- a/app/common/model/store/product/ProductAssist.php +++ b/app/common/model/store/product/ProductAssist.php @@ -17,7 +17,6 @@ use app\common\model\system\merchant\Merchant; use app\common\repositories\store\product\ProductAssistSetRepository; use app\common\repositories\store\product\ProductAssistUserRepository; use app\common\repositories\store\product\SpuRepository; -use crmeb\jobs\ChangeSpuStatusJob; class ProductAssist extends BaseModel { @@ -83,8 +82,7 @@ class ProductAssist extends BaseModel if($end_time <= $time) { $this->action_status = -1; $this->save(); - //app()->make(SpuRepository::class)->changeStatus($this->product_assist_id,3); - Queue(ChangeSpuStatusJob::class, ['id' => $this->product_assist_id, 'product_type' => 3]); + app()->make(SpuRepository::class)->changeStatus($this->product_assist_id,3); return 2; } } diff --git a/app/common/model/store/product/ProductAttrValue.php b/app/common/model/store/product/ProductAttrValue.php index 4af5d85a..1731aae2 100644 --- a/app/common/model/store/product/ProductAttrValue.php +++ b/app/common/model/store/product/ProductAttrValue.php @@ -45,6 +45,21 @@ class ProductAttrValue extends BaseModel return json_decode($value); } + public function product() + { + return $this->hasOne(Product::class, 'product_id','product_id'); + } + + public function getSvipPriceAttr() + { + if ($this->product->product_type == 0 && $this->product->show_svip_price && $this->product->svip_price_type == 1) { + $rate = merchantConfig($this->product->mer_id,'svip_store_rate'); + $svip_store_rate = $rate > 0 ? bcdiv($rate,100,2) : 0; + return bcmul($this->price, $svip_store_rate,2); + } + return $this->getData('svip_price'); + } + public function getBcExtensionOneAttr() { if(!intval(systemConfig('extension_status'))) return 0; diff --git a/app/common/model/store/product/ProductGroup.php b/app/common/model/store/product/ProductGroup.php index ebac35d2..cbeffd18 100644 --- a/app/common/model/store/product/ProductGroup.php +++ b/app/common/model/store/product/ProductGroup.php @@ -15,7 +15,6 @@ use app\common\model\store\order\StoreOrderProduct; use app\common\model\system\merchant\Merchant; use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\product\SpuRepository; -use crmeb\jobs\ChangeSpuStatusJob; class ProductGroup extends BaseModel { diff --git a/app/common/model/store/product/ProductGroupUser.php b/app/common/model/store/product/ProductGroupUser.php index f81eda11..fb5f93ce 100644 --- a/app/common/model/store/product/ProductGroupUser.php +++ b/app/common/model/store/product/ProductGroupUser.php @@ -48,6 +48,11 @@ class ProductGroupUser extends BaseModel return $this->hasOne(ProductGroupBuying::class,'group_buying_id','group_buying_id'); } + public function productGroup() + { + return $this->hasOne(ProductGroup::class,'product_group_id','product_group_id'); + } + // public function getAvatarAttr($value) // { // return $value ? $value : '/static/f.png'; diff --git a/app/common/model/store/product/ProductPresell.php b/app/common/model/store/product/ProductPresell.php index 7ddd42dd..9f2a9c47 100644 --- a/app/common/model/store/product/ProductPresell.php +++ b/app/common/model/store/product/ProductPresell.php @@ -15,10 +15,7 @@ namespace app\common\model\store\product; use app\common\model\BaseModel; use app\common\model\system\merchant\Merchant; use app\common\repositories\store\coupon\StoreCouponRepository; -use app\common\repositories\store\order\StoreOrderProductRepository; -use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\product\SpuRepository; -use crmeb\jobs\ChangeSpuStatusJob; class ProductPresell extends BaseModel { @@ -86,8 +83,7 @@ class ProductPresell extends BaseModel $this->action_status = -1; $this->save(); } - queue(ChangeSpuStatusJob::class, ['id' => $this->product_presell_id, 'product_type' => 2]); - //app()->make(SpuRepository::class)->changeStatus($this->product_presell_id,2); + app()->make(SpuRepository::class)->changeStatus($this->product_presell_id,2); return 2; } } diff --git a/app/common/model/store/product/ProductReply.php b/app/common/model/store/product/ProductReply.php index ce79ae65..5854a1d8 100644 --- a/app/common/model/store/product/ProductReply.php +++ b/app/common/model/store/product/ProductReply.php @@ -67,4 +67,23 @@ class ProductReply extends BaseModel return $this->hasOne(StoreOrderProduct::class,'order_product_id','order_product_id'); } + /** + * TODO 用户昵称处理 + * @param $value + * @return string + * @author Qinii + * @day 2022/11/28\ + */ + public function getNicnameAttr($value) + { + if (strlen($value) > 1) { + $str = mb_substr($value,0,1) . '*'; + if (strlen($value) > 2) { + $str .= mb_substr($value, -1,1); + } + return $str; + } + return $value; + } + } diff --git a/app/common/model/store/product/Spu.php b/app/common/model/store/product/Spu.php index bdc23b33..16c03d90 100644 --- a/app/common/model/store/product/Spu.php +++ b/app/common/model/store/product/Spu.php @@ -102,6 +102,7 @@ class Spu extends BaseModel return explode(',',rtrim(ltrim($value,','),',')); } + public function setSysLabelsAttr($value) { if (!empty($value)) { @@ -127,6 +128,28 @@ class Spu extends BaseModel } } + /** + * TODO 是否展示会员价 + * @return array + * @author Qinii + * @day 2023/1/4 + */ + public function getShowSvipInfoAttr($value, $data) + { + return $this->product->show_svip_info; + } + + /** + * TODO 获取会员价 + * @return int|string + * @author Qinii + * @day 2023/1/4 + */ + public function getSvipPriceAttr() + { + return $this->product->svip_price; + } + /* * ----------------------------------------------------------------------------------------------------------------- * 关联表 diff --git a/app/common/model/system/Relevance.php b/app/common/model/system/Relevance.php index 82eaeb9f..a4af751a 100644 --- a/app/common/model/system/Relevance.php +++ b/app/common/model/system/Relevance.php @@ -60,7 +60,7 @@ class Relevance extends BaseModel public function community() { return $this->hasOne(Community::class,'community_id','right_id') - ->bind(['community_id','title','image','start','uid','create_time','count_start','author']); + ->bind(['community_id','title','image','start','uid','create_time','count_start','author','is_type']); } public function getIsStartAttr() diff --git a/app/common/model/system/merchant/Merchant.php b/app/common/model/system/merchant/Merchant.php index 9505efa3..5169a5af 100644 --- a/app/common/model/system/merchant/Merchant.php +++ b/app/common/model/system/merchant/Merchant.php @@ -85,7 +85,7 @@ class Merchant extends BaseModel ->field('mer_id,product_id,store_name,image,price,is_show,status,is_gift_bag,is_good,cate_id') ->order('sort DESC, create_time DESC') ->limit(3) - ->select(); + ->select()->append(['show_svip_info']); if ($list) { $data = []; $make = app()->make(StoreActivityRepository::class); diff --git a/app/common/model/system/notice/SystemNoticeConfig.php b/app/common/model/system/notice/SystemNoticeConfig.php index e1c704d6..9f26cb7b 100644 --- a/app/common/model/system/notice/SystemNoticeConfig.php +++ b/app/common/model/system/notice/SystemNoticeConfig.php @@ -15,6 +15,7 @@ namespace app\common\model\system\notice; use app\common\model\BaseModel; +use app\common\model\wechat\TemplateMessage; /** * Class SystemNoticeLog @@ -45,6 +46,16 @@ class SystemNoticeConfig extends BaseModel return 'system_notice_config'; } + public function wechatTemplate() + { + return $this->hasOne(TemplateMessage::class,'tempkey','wechat_tempkey'); + } + + public function routineTemplate() + { + return $this->hasOne(TemplateMessage::class,'tempkey','routine_tempkey'); + } + public function searchKeywordAttr($query, $value) { $query->whereLike("notice_title|notice_key|notice_info","%{$value}%"); @@ -54,4 +65,9 @@ class SystemNoticeConfig extends BaseModel { $query->where("type",$value); } + + public function searchConstKeyAttr($query, $value) + { + $query->where("const_key",$value); + } } diff --git a/app/common/model/system/serve/ServeOrder.php b/app/common/model/system/serve/ServeOrder.php index cfaf24f7..1cae0985 100644 --- a/app/common/model/system/serve/ServeOrder.php +++ b/app/common/model/system/serve/ServeOrder.php @@ -12,6 +12,7 @@ namespace app\common\model\system\serve; use app\common\model\BaseModel; use app\common\model\system\merchant\Merchant; +use app\common\model\user\User; class ServeOrder extends BaseModel { @@ -36,6 +37,11 @@ class ServeOrder extends BaseModel return $this->hasOne(Merchant::class,'mer_id','mer_id'); } + public function userInfo() + { + return $this->hasOne(User::class,'mer_id','ud'); + } + public function searchTypeAttr($query, $value) { $query->where('type', $value); @@ -70,4 +76,9 @@ class ServeOrder extends BaseModel { getModelTime($query, $value); } + + public function searchPayTypeAttr($query,$value) + { + $query->where('value'); + } } diff --git a/app/common/model/user/MemberInterests.php b/app/common/model/user/MemberInterests.php index 145d8de5..d9d5ba1e 100644 --- a/app/common/model/user/MemberInterests.php +++ b/app/common/model/user/MemberInterests.php @@ -52,4 +52,10 @@ class MemberInterests extends BaseModel { $query->where('brokerage_level', '<=', $value); } + + public function searchStatusAttr($query, $value) + { + $query->where('status', $value); + } + } diff --git a/app/common/model/user/User.php b/app/common/model/user/User.php index 32d7d264..367029a4 100644 --- a/app/common/model/user/User.php +++ b/app/common/model/user/User.php @@ -66,6 +66,16 @@ class User extends BaseModel return $value == '0000-00-00' ? '' : $value; } + public function getIsSvipAttr($value) + { + + if (systemConfig('svip_switch_status') == 1) { + return $value; + } else { + return $value > 0 ? 0 : $value; + } + } + /** * @param $value * @return array diff --git a/app/common/model/user/UserOrder.php b/app/common/model/user/UserOrder.php new file mode 100644 index 00000000..7fec16b3 --- /dev/null +++ b/app/common/model/user/UserOrder.php @@ -0,0 +1,36 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\model\user; + + +use app\common\model\BaseModel; + +class UserOrder extends BaseModel +{ + + public static function tablePk(): ?string + { + return 'order_id'; + } + + public static function tableName(): string + { + return 'user_order'; + } + + public function user() + { + return $this->hasOne(User::class,'uid','uid'); + } +} diff --git a/app/common/repositories/community/CommunityCategoryRepository.php b/app/common/repositories/community/CommunityCategoryRepository.php index 4d0cee69..aa1bb219 100644 --- a/app/common/repositories/community/CommunityCategoryRepository.php +++ b/app/common/repositories/community/CommunityCategoryRepository.php @@ -85,13 +85,14 @@ class CommunityCategoryRepository extends BaseRepository ->setOption('filed',[])->field('category_id,cate_name')->with(['children'])->order('sort DESC,category_id DESC')->select(); $list = []; if ($res) $list = $res->toArray(); - $hot = app()->make(CommunityTopicRepository::class)->getHotList(); - $data[] = [ - 'category_id' => 0, - "cate_name" => "推荐", - "children" => $hot['list'] - ]; - return array_merge($data,$list); +// $hot = app()->make(CommunityTopicRepository::class)->getHotList(); +// $data[] = [ +// 'category_id' => 0, +// "cate_name" => "推荐", +// "children" => $hot['list'] +// ]; +// return array_merge($data,$list); + return $list; } public function checkName($name, $id) diff --git a/app/common/repositories/community/CommunityReplyRepository.php b/app/common/repositories/community/CommunityReplyRepository.php index 859e2182..947845e0 100644 --- a/app/common/repositories/community/CommunityReplyRepository.php +++ b/app/common/repositories/community/CommunityReplyRepository.php @@ -136,7 +136,6 @@ class CommunityReplyRepository extends BaseRepository $res = Db::transaction(function () use ($replyId, $data, $make) { $res = $this->dao->create($data); if ($replyId) $this->dao->incField($data['pid'], 'count_reply', 1); - $make->incField($data['community_id'], 'count_reply', 1); return $res; }); @@ -183,6 +182,7 @@ class CommunityReplyRepository extends BaseRepository public function statusForm(int $id) { $formData = $this->dao->get($id)->toArray(); + if ($formData['status'] !== 0) throw new ValidateException('请勿重复审核'); $form = Elm::createForm(Route::buildUrl('systemCommunityReplyStatus', ['id' => $id])->build()); @@ -191,12 +191,14 @@ class CommunityReplyRepository extends BaseRepository Elm::radio('status', '审核状态', 1)->options([ ['value' => -1, 'label' => '未通过'], - ['value' => 1, 'label' => '通过']])->control([ - ['value' => -1, 'rule' => [ - Elm::textarea('refusal', '未通过原因', '')->required() - ]] + ['value' => 1, 'label' => '通过']] + )->control([ + ['value' => -1, 'rule' => [ + Elm::textarea('refusal', '未通过原因', '')->required() + ]] ]), ]); + $formData['status'] = 1; return $form->setTitle('审核评论')->formData($formData); } } diff --git a/app/common/repositories/community/CommunityRepository.php b/app/common/repositories/community/CommunityRepository.php index c34e8089..8c26db40 100644 --- a/app/common/repositories/community/CommunityRepository.php +++ b/app/common/repositories/community/CommunityRepository.php @@ -19,6 +19,7 @@ use app\common\repositories\store\product\SpuRepository; use app\common\repositories\system\RelevanceRepository; use app\common\repositories\user\UserBrokerageRepository; use app\common\repositories\user\UserRepository; +use crmeb\services\QrcodeService; use FormBuilder\Factory\Elm; use think\exception\ValidateException; use think\facade\Db; @@ -37,6 +38,9 @@ class CommunityRepository extends BaseRepository 'is_del' => 0, ]; + public const COMMUNIT_TYPE_FONT = '1'; + public const COMMUNIT_TYPE_VIDEO = '2'; + /** * CommunityRepository constructor. * @param CommunityDao $dao @@ -46,9 +50,25 @@ class CommunityRepository extends BaseRepository $this->dao = $dao; } + public function title(array $where) + { + $where['is_type'] = self::COMMUNIT_TYPE_FONT; + $list[] = [ + 'count' => $this->dao->search($where)->count(), + 'title' => '图文列表', + 'type' => self::COMMUNIT_TYPE_FONT, + ]; + $where['is_type'] = self::COMMUNIT_TYPE_VIDEO; + $list[] = [ + 'count' => $this->dao->search($where)->count(), + 'title' => '短视频列表', + 'type' => self::COMMUNIT_TYPE_VIDEO, + ]; + return $list; + } + public function getList(array $where, int $page, int $limit) { - $where['is_del'] = 0; $query = $this->dao->search($where)->with([ 'author' => function($query) { $query->field('uid,real_name,status,avatar,nickname,count_start'); @@ -61,14 +81,17 @@ class CommunityRepository extends BaseRepository ]); $count = $query->count(); $list = $query->page($page, $limit)->select(); - return compact('count','list'); } + public function getApiList(array $where, int $page, int $limit, $userInfo) { + $config = systemConfig("community_app_switch"); + if (!isset($where['is_type']) && $config) $where['is_type'] = $config; $where['is_del'] = 0; - $query = $this->dao->getSearch($where)->order('start DESC,create_time DESC,community_id DESC'); + + $query = $this->dao->search($where)->order('start DESC,Community.create_time DESC,community_id DESC'); $query->with([ 'author' => function($query) use($userInfo){ $query->field('uid,real_name,status,avatar,nickname,count_start'); @@ -91,63 +114,63 @@ class CommunityRepository extends BaseRepository ]); $count = $query->count(); $list = $query->page($page, $limit)->setOption('field',[]) - ->field('community_id,title,image,topic_id,count_start,count_reply,start,create_time,uid,status,is_show,content') + ->field('community_id,title,image,topic_id,Community.count_start,count_reply,start,Community.create_time,Community.uid,Community.status,is_show,content,video_link,is_type,refusal') ->select()->append(['time']); - + if ($list) $list = $list->toArray(); return compact('count','list'); } - public function getApiListTwo(array $where, int $page, int $limit, $userInfo) + + public function getFirtVideo($where,$page, $userInfo) { - if (!$userInfo){ - $count=0; - $list=[]; - return compact('count','list'); - } - $village_id=Db::name('nk_user')->where('user_id',$userInfo->uid)->value('village_id'); - if (!$village_id){ - $count=0; - $list=[]; - return compact('count','list'); - } - $arr=Db::name('community_address')->where('village_id',$village_id)->page($page, $limit)->select(); - if (count($arr)==0){ - $count=0; - $list=[]; - return compact('count','list'); - } - $arr2=[]; - foreach ($arr as $k=>$v){ - $arr2[]=$v['community_id']; - } - $arrWhere=['id_and_in'=>$arr2]; - $query = $this->dao->getSearch($arrWhere)->order('start DESC,create_time DESC,community_id DESC'); - $query->with([ - 'author' => function($query) use($userInfo){ - $query->field('uid,real_name,status,avatar,nickname,count_start'); - }, - 'is_start' => function($query) use ($userInfo) { - $query->where('left_id',$userInfo->uid ?? null); - }, - 'topic' => function($query) { - $query->where('status', 1)->where('is_del',0); - $query->field('topic_id,topic_name,status,category_id,pic,is_del'); - }, - 'relevance' => [ - 'spu' => function($query) { - $query->field('spu_id,store_name,image,price,product_type,activity_id,product_id'); + $with =[]; + if ($page == 1) { + $with = [ + 'author' => function($query) { + $query->field('uid,real_name,status,avatar,nickname,count_start'); + }, + 'is_start' => function($query) use ($userInfo) { + $query->where('left_id',$userInfo->uid ?? null); + }, + 'topic' => function($query) { + $query->where('status', 1)->where('is_del',0); + $query->field('topic_id,topic_name,status,category_id,pic,is_del'); + }, + 'relevance' => [ + 'spu' => function($query) { + $query->field('spu_id,store_name,image,price,product_type,activity_id,product_id,status'); + } + ], + 'is_fans' => function($query) use($userInfo){ + $query->where('left_id',$userInfo->uid?? 0); } - ], - 'is_fans' => function($query) use($userInfo){ - $query->where('left_id',$userInfo->uid?? 0); - } - ]); - $count = Db::name('community_address')->where('village_id',$village_id)->count(); - $list = $query->setOption('field',[]) - ->field('community_id,title,image,topic_id,count_start,count_reply,start,create_time,uid,status,is_show,content') - ->select()->append(['time']); - - return compact('count','list'); + ]; + } + return $this->dao->getSearch($where)->with($with)->field('community_id,image,title,topic_id,count_start,count_reply,start,create_time,uid,status,is_show,content,video_link,is_type,refusal')->find(); } + + public function getApiVideoList(array $where, int $page, int $limit, $userInfo, $type = 0) + { + $where['is_type'] = self::COMMUNIT_TYPE_VIDEO; + $first = $this->getFirtVideo($where,$page, $userInfo); + if ($type) { // 点赞过的内容 + $where['uid'] = $userInfo->uid; + $where['community_ids'] = $this->dao->joinUser($where)->column('community_id'); + } else { // 条件视频 + if ($first) $where['topic_id'] = $first['topic_id']; + } + $where['not_id'] = $where['community_id']; + unset($where['community_id']); + $data = $this->getApiList($where, $page, $limit, $userInfo); + if (empty($data['list']) && isset($where['topic_id'])) { + unset($where['topic_id']); + $data = $this->getApiList($where, $page, $limit, $userInfo); + } + if ($page == 1 && $first) { + array_unshift($data['list'],$first->toArray()); + } + return $data; + } + /** * TODO 后台详情 * @param int $id @@ -157,7 +180,13 @@ class CommunityRepository extends BaseRepository */ public function detail(int $id) { - return $this->dao->getSearch([$this->dao->getPk() => $id, 'is_del' => 0])->with([ + $where = [ + $this->dao->getPk() => $id, + 'is_del' => 0 + ]; + $config = systemConfig("community_app_switch"); + if ($config) $where['is_type'] = $config; + return $this->dao->getSearch($where)->with([ 'author' => function($query) { $query->field('uid,real_name,status,avatar,nickname,count_start'); }, @@ -184,6 +213,8 @@ class CommunityRepository extends BaseRepository $where = ['is_del' => 0]; $is_author = 1; } + $config = systemConfig("community_app_switch"); + if ($config) $where['is_type'] = $config; $where[$this->dao->getPk()] = $id; $data = $this->dao->getSearch($where) ->with([ @@ -383,9 +414,7 @@ class CommunityRepository extends BaseRepository $form = Elm::createForm(Route::buildUrl('systemCommunityStatus', ['id' => $id])->build()); $data = $this->dao->get($id); if (!$data) throw new ValidateException('数据不存在'); - $formData = $data->toArray(); - return $form->setRule([ Elm::radio('status', '强制下架')->options([ ['value' => -2, 'label' => '下架'], ['value' => 1, 'label' => '上架']])->control([ @@ -432,7 +461,7 @@ class CommunityRepository extends BaseRepository $make = app()->make(UserBrokerageRepository::class); $make->incMemberValue($ret['uid'], 'member_community_num', $id); } - + $data['status_time'] = date('Y-m-d H:i;s', time()); $this->dao->update($id, $data); event('community.status',compact('id')); }); @@ -453,5 +482,24 @@ class CommunityRepository extends BaseRepository ->field('community_id,title,image') ->limit(3)->select(); } + + public function qrcode($id, $type,$user) + { + $res = $this->dao->search(['is_type' => self::COMMUNIT_TYPE_VIDEO,'community_id' => $id])->find(); + if (!$res) throw new ValidateException('数据不存在'); + $make = app()->make(QrcodeService::class); + if ($type == 'routine') { + $name = md5('rcwx' . $id . $type . $user->uid . $user['is_promoter'] . date('Ymd')) . '.jpg'; + $params = 'id=' . $id . '&spid=' . $user['uid']; + $link = '/pages/short_video/nvueSwiper/index?id='; + $make->getRoutineQrcodePath($name, $link, $params); + } else { + $name = md5('cwx' . $id . $type . $user->uid . $user['is_promoter'] . date('Ymd')) . '.jpg'; + $link = 'pages/short_video/nvueSwiper/index'; + $link = $link . '?id=' . $id . '&spid=' . $user['uid']; + $key = 'com' . $type . '_' . $id . '_' . $user['uid']; + return $make->getWechatQrcodePath($name, $link, false, $key); + } + } } diff --git a/app/common/repositories/store/CityAreaRepository.php b/app/common/repositories/store/CityAreaRepository.php index a703cb9b..3cab1f24 100644 --- a/app/common/repositories/store/CityAreaRepository.php +++ b/app/common/repositories/store/CityAreaRepository.php @@ -15,6 +15,9 @@ namespace app\common\repositories\store; use app\common\dao\store\CityAreaDao; use app\common\repositories\BaseRepository; +use FormBuilder\Factory\Elm; +use think\exception\ValidateException; +use think\facade\Route; /** * @mixin CityAreaDao @@ -30,4 +33,31 @@ class CityAreaRepository extends BaseRepository { return $this->search(['pid' => $pid])->select(); } + + public function getList($where) + { + return $this->dao->getSearch($where)->with(['parent'])->order('id ASC')->select()->append(['children','hasChildren']); + } + + public function form(?int $id, ?int $parentId) + { + $parent = ['id' => 0, 'name' => '全国', 'level' => 0,]; + $formData = []; + if ($id) { + $formData = $this->dao->getWhere(['id' => $id],'*',['parent'])->toArray(); + if (!$formData) throw new ValidateException('数据不存在'); + $form = Elm::createForm(Route::buildUrl('systemCityAreaUpdate', ['id' => $id])->build()); + if (!is_null($formData['parent'])) $parent = $formData['parent']; + } else { + $form = Elm::createForm(Route::buildUrl('systemCityAreaCreate')->build()); + if ($parentId) $parent = $this->dao->getWhere(['id' => $parentId]); + } + $form->setRule([ + Elm::input('parent_id', '', $parent['id'] ?? 0)->hiddenStatus(true), + Elm::input('level', '', $parent['level'] + 1)->hiddenStatus(true), + Elm::input('parent_name', '上级地址', $parent['name'])->disabled(true), + Elm::input('name', '地址名称', '')->required(), + ]); + return $form->setTitle($id ? '编辑城市' : '添加城市')->formData($formData); + } } diff --git a/app/common/repositories/store/PriceRuleRepository.php b/app/common/repositories/store/PriceRuleRepository.php new file mode 100644 index 00000000..1e948832 --- /dev/null +++ b/app/common/repositories/store/PriceRuleRepository.php @@ -0,0 +1,89 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\repositories\store; + + +use app\common\dao\store\PriceRuleDao; +use app\common\repositories\BaseRepository; +use app\common\repositories\system\RelevanceRepository; +use think\facade\Db; + +/** + * @mixin PriceRuleDao + */ +class PriceRuleRepository extends BaseRepository +{ + public function __construct(PriceRuleDao $dao) + { + $this->dao = $dao; + } + + public function lst(array $where, $page, $limit) + { + $query = $this->dao->search($where)->order('sort DESC, rule_id DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->with(['cate'])->select(); + return compact('count', 'list'); + } + + public function createRule(array $data) + { + $cateIds = (array)$data['cate_id']; + unset($data['cate_id']); + return Db::transaction(function () use ($cateIds, $data) { + $data['is_default'] = count($cateIds) ? 0 : 1; + $rule = $this->dao->create($data); + $inserts = []; + foreach ($cateIds as $id) { + $inserts[] = [ + 'left_id' => $rule['rule_id'], + 'right_id' => (int)$id, + 'type' => RelevanceRepository::PRICE_RULE_CATEGORY + ]; + } + if (count($inserts)) { + app()->make(RelevanceRepository::class)->insertAll($inserts); + } + + return $rule; + }); + } + + public function updateRule(int $id, array $data) + { + $cateIds = (array)$data['cate_id']; + unset($data['cate_id']); + $data['update_time'] = date('Y-m-d H:i:s'); + return Db::transaction(function () use ($id, $cateIds, $data) { + $data['is_default'] = count($cateIds) ? 0 : 1; + $this->dao->update($id, $data); + $inserts = []; + foreach ($cateIds as $cid) { + $inserts[] = [ + 'left_id' => $id, + 'right_id' => (int)$cid, + 'type' => RelevanceRepository::PRICE_RULE_CATEGORY + ]; + } + app()->make(RelevanceRepository::class)->query([ + 'left_id' => $id, + 'type' => RelevanceRepository::PRICE_RULE_CATEGORY + ])->delete(); + if (count($inserts)) { + app()->make(RelevanceRepository::class)->insertAll($inserts); + } + }); + } + + +} diff --git a/app/common/repositories/store/broadcast/BroadcastRoomRepository.php b/app/common/repositories/store/broadcast/BroadcastRoomRepository.php index 59a08335..012c1a54 100644 --- a/app/common/repositories/store/broadcast/BroadcastRoomRepository.php +++ b/app/common/repositories/store/broadcast/BroadcastRoomRepository.php @@ -200,7 +200,7 @@ class BroadcastRoomRepository extends BaseRepository public function applyForm($id) { return Elm::createForm(Route::buildUrl('systemBroadcastRoomApply', compact('id'))->build(), [ - Elm::radio('status', '审核状态', 1)->options([['value' => -1, 'label' => '未通过'], ['value' => 1, 'label' => '通过']])->control([ + Elm::radio('status', '审核状态', '1')->options([['value' => '-1', 'label' => '未通过'], ['value' => '1', 'label' => '通过']])->control([ ['value' => -1, 'rule' => [ Elm::textarea('msg', '未通过原因', '信息有误,请完善')->required() ]] @@ -468,13 +468,11 @@ class BroadcastRoomRepository extends BaseRepository { $make = app()->make(BroadcastAssistantRepository::class); $data = $make->getSearch(['assistant_ids' => $ids])->column('username,nickname'); - foreach ($data as $datum) { - $params = [ - 'roomId' => $roomId, - 'user' => $datum, - ]; - MiniProgramService::create()->miniBroadcast()->addAssistant($params); - } + $params = [ + 'roomId' => $roomId, + 'users' => $data + ]; + MiniProgramService::create()->miniBroadcast()->addAssistant($params); } public function pushMessage(int $id) diff --git a/app/common/repositories/store/coupon/StoreCouponRepository.php b/app/common/repositories/store/coupon/StoreCouponRepository.php index 838e372f..74e2c7cd 100644 --- a/app/common/repositories/store/coupon/StoreCouponRepository.php +++ b/app/common/repositories/store/coupon/StoreCouponRepository.php @@ -23,6 +23,7 @@ use app\common\repositories\store\StoreCategoryRepository; use app\common\repositories\system\merchant\MerchantCategoryRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\system\merchant\MerchantTypeRepository; +use app\common\repositories\user\UserRepository; use FormBuilder\Exception\FormBuilderException; use FormBuilder\Factory\Elm; use FormBuilder\Form; @@ -54,6 +55,19 @@ class StoreCouponRepository extends BaseRepository //平台跨店券 const TYPE_PLATFORM_STORE = 12; + //获取方式 + const GET_COUPON_TYPE_RECEIVE = 0; + //消费满赠 + const GET_COUPON_TYPE_PAY_MEET = 1; + //新人券 + const GET_COUPON_TYPE_NEW = 2; + //买赠 + const GET_COUPON_TYPE_PAY = 3; + //首单赠送 + const GET_COUPON_TYPE_FIRST = 4; + //会员券 + const GET_COUPON_TYPE_SVIP = 5; + /** * @var StoreCouponDao */ @@ -103,6 +117,15 @@ class StoreCouponRepository extends BaseRepository } return compact('count', 'list'); } + public function sviplist(array $where,$uid) + { + $with = []; + if ($uid) $with['svipIssue'] = function ($query) use ($uid) { + $query->where('uid', $uid); + }; + $list = $this->validCouponQueryWithMerchant($where, $uid)->with($with)->setOption('field',[])->field('C.*')->select(); + return $list; + } public function apiList(array $where, int $page, int $limit, $uid) { @@ -261,11 +284,23 @@ class StoreCouponRepository extends BaseRepository $coupon = $this->dao->validCoupon($id, $uid); if (!$coupon) throw new ValidateException('优惠券失效'); + if (!is_null($coupon['issue'])) throw new ValidateException('优惠券已领取'); $this->sendCoupon($coupon, $uid,StoreCouponUserRepository::SEND_TYPE_RECEIVE); } + public function receiveSvipCounpon($id,$uid) + { + $coupon = $this->dao->validSvipCoupon($id, $uid); + if (!$coupon) + throw new ValidateException('优惠券失效'); + + if (!is_null($coupon['svipIssue'])) + throw new ValidateException('优惠券已领取'); + $this->sendCoupon($coupon, $uid,StoreCouponUserRepository::SEND_TYPE_RECEIVE); + } + public function sendCoupon(StoreCoupon $coupon, $uid, $type) { event('user.coupon.send.before', compact('coupon', 'uid', 'type')); @@ -346,12 +381,12 @@ class StoreCouponRepository extends BaseRepository Elm::input('title', '优惠券名称')->required(), Elm::radio('type', '优惠券类型', 10) ->setOptions([ - ['value' => 10, 'label' => '通用券'], - ['value' => 11, 'label' => '品类券'], - ['value' => 12, 'label' => '跨店券'], + ['value' => self::TYPE_PLATFORM_ALL, 'label' => '通用券'], + ['value' => self::TYPE_PLATFORM_CATE, 'label' => '品类券'], + ['value' => self::TYPE_PLATFORM_STORE, 'label' => '跨店券'], ])->control([ [ - 'value' => 11, + 'value' => self::TYPE_PLATFORM_CATE, 'rule' => [ Elm::cascader('cate_ids', '选择品类')->options(function (){ return app()->make(StoreCategoryRepository::class)->getTreeList(0, 1); @@ -359,7 +394,7 @@ class StoreCouponRepository extends BaseRepository ] ], [ - 'value' => 12, + 'value' => self::TYPE_PLATFORM_STORE, 'rule' => [ Elm::radio('mer_type', '选择商户',2) ->setOptions([ @@ -412,31 +447,71 @@ class StoreCouponRepository extends BaseRepository ])->appendControl(1, [ Elm::number('use_min_price', '优惠券最低消费')->min(0)->required(), ]), - Elm::radio('coupon_type', '使用有效期', 0) - ->setOptions([ - ['value' => 0, 'label' => '天数'], - ['value' => 1, 'label' => '时间段'], - ])->control([ - [ - 'value' => 0, - 'rule' => [ - Elm::number('coupon_time', ' ', 0)->min(0)->required(), - ] - ], - [ - 'value' => 1, - 'rule' => [ - Elm::dateTimeRange('use_start_time', ' ')->required(), - ] - ], - ]), - Elm::radio('is_timeout', '领取时间', 0)->options([['label' => '限时', 'value' => 1], ['label' => '不限时', 'value' => 0]]) - ->appendControl(1, [Elm::dateTimeRange('range_date', ' ')->placeholder('不填为永久有效')]), + Elm::radio('send_type', '获取方式', 0)->setOptions([ - ['value' => 0, 'label' => '领取'], - ['value' => 2, 'label' => '新人券'], -// ['value' => 3, 'label' => '赠送券'], - ])->appendControl(1, [Elm::number('full_reduction', '满赠金额', 0)->min(0)->placeholder('赠送优惠券的最低消费金额')]), + ['value' => self::GET_COUPON_TYPE_RECEIVE, 'label' => '领取'], + ['value' => self::GET_COUPON_TYPE_NEW, 'label' => '新人券'], + ['value' => self::GET_COUPON_TYPE_SVIP, 'label' => '付费会员券'], + ])->control([ + [ + 'value' => self::GET_COUPON_TYPE_RECEIVE, + 'rule' => [ + Elm::radio('coupon_type', '使用有效期', 0) + ->setOptions([ + ['value' => 0, 'label' => '天数'], + ['value' => 1, 'label' => '时间段'], + ])->control([ + [ + 'value' => 0, + 'rule' => [ + Elm::number('coupon_time', ' ', 0)->min(0)->required(), + ] + ], + [ + 'value' => 1, + 'rule' => [ + Elm::dateTimeRange('use_start_time', ' ')->required(), + ] + ], + ]), + Elm::radio('is_timeout', '领取时间', 0)->options([['label' => '限时', 'value' => 1], ['label' => '不限时', 'value' => 0]]) + ->appendControl(1, [Elm::dateTimeRange('range_date', ' ')->placeholder('不填为永久有效')]), + ] + ], + [ + 'value' => self::GET_COUPON_TYPE_NEW, + 'rule' => [ + Elm::radio('coupon_type', '使用有效期', 0) + ->setOptions([ + ['value' => 0, 'label' => '天数'], + ['value' => 1, 'label' => '时间段'], + ])->control([ + [ + 'value' => 0, + 'rule' => [ + Elm::number('coupon_time', ' ', 0)->min(0)->required(), + ] + ], + [ + 'value' => 1, + 'rule' => [ + Elm::dateTimeRange('use_start_time', ' ')->required(), + ] + ], + ]), + Elm::radio('is_timeout', '领取时间', 0)->options([['label' => '限时', 'value' => 1], ['label' => '不限时', 'value' => 0]]) + ->appendControl(1, [Elm::dateTimeRange('range_date', ' ')->placeholder('不填为永久有效')]), + ] + ], + ])->appendControl(1, [ + Elm::number('full_reduction', '满赠金额', 0)->min(0)->placeholder('赠送优惠券的最低消费金额') + ])->appendRule('suffix', [ + 'type' => 'div', + 'style' => ['color' => '#999999'], + 'domProps' => [ + 'innerHTML' =>'会员优惠券创建成功后会自动发送给创建时间之后的新付费会员;之后每月1日零点自动发送给所有付费会员;在创建优惠券之前已成为付费会员的用户可在会员中心手动领取优惠券', + ] + ]), Elm::radio('is_limited', '是否限量', 0)->options([['label' => '限量', 'value' => 1], ['label' => '不限量', 'value' => 0]]) ->appendControl(1, [Elm::number('total_count', '发布数量', 0)->min(0)]), Elm::number('sort', '排序', 0)->precision(0)->max(99999), @@ -562,4 +637,23 @@ class StoreCouponRepository extends BaseRepository } return compact('count', 'list'); } + + public function sendSvipCoupon() + { + $data = ['mark' => [], 'is_all'=> '', 'search' => '',]; + $uids = app()->make(UserRepository::class)->search(['is_svip' => 1])->column('uid'); + $isMake = app()->make(StoreCouponIssueUserRepository::class); + $senMake = app()->make(StoreCouponSendRepository::class); + $couponIds = $this->dao->validCouponQuery(null,StoreCouponRepository::GET_COUPON_TYPE_SVIP)->column('coupon_id'); + if ($couponIds && $uids) { + foreach ($couponIds as $item) { + $issUids = $isMake->getSearch([])->whereMonth('create_time')->whereIn('uid',$uids)->column('uid'); + $uids_ = array_values(array_diff($uids,$issUids)); + $data['coupon_id'] = $item; + $data['uid'] = $uids_; + if (!empty($data['uid'])) return $senMake->create($data,0); + } + } + + } } diff --git a/app/common/repositories/store/coupon/StoreCouponSendRepository.php b/app/common/repositories/store/coupon/StoreCouponSendRepository.php index fc7e96d4..b502b80b 100644 --- a/app/common/repositories/store/coupon/StoreCouponSendRepository.php +++ b/app/common/repositories/store/coupon/StoreCouponSendRepository.php @@ -82,7 +82,6 @@ class StoreCouponSendRepository extends BaseRepository return Db::transaction(function () use ($uid, $merId, $data, $coupon, $uTotal) { $search = $data['mark']; - if($coupon['is_limited']){ $coupon->remain_count -= $uTotal; } @@ -97,7 +96,6 @@ class StoreCouponSendRepository extends BaseRepository ] ]); $coupon->save(); - Cache::store('file')->set('_send_coupon' . $send->coupon_send_id, $uid); Queue::push(MerchantSendCouponJob::class, $send->coupon_send_id); return $send; diff --git a/app/common/repositories/store/coupon/StoreCouponUserRepository.php b/app/common/repositories/store/coupon/StoreCouponUserRepository.php index 0068feac..55a06924 100644 --- a/app/common/repositories/store/coupon/StoreCouponUserRepository.php +++ b/app/common/repositories/store/coupon/StoreCouponUserRepository.php @@ -69,7 +69,7 @@ class StoreCouponUserRepository extends BaseRepository $query = $this->dao->search($where); $count = $query->count(); $list = $query->with(['coupon' => function ($query) { - $query->field('coupon_id,type'); + $query->field('coupon_id,type,send_type'); }, 'merchant' => function ($query) { $query->field('mer_id,mer_name,mer_avatar'); }])->page($page, $limit)->select(); diff --git a/app/common/repositories/store/order/StoreCartRepository.php b/app/common/repositories/store/order/StoreCartRepository.php index 4582e7c8..1600c150 100644 --- a/app/common/repositories/store/order/StoreCartRepository.php +++ b/app/common/repositories/store/order/StoreCartRepository.php @@ -45,21 +45,21 @@ class StoreCartRepository extends BaseRepository * @return array * @author Qinii */ - public function getList($uid) + public function getList($user) { - $res = $this->dao->getAll($uid)->append(['checkCartProduct', 'UserPayCount', 'ActiveSku', 'attrValue', 'attr']); + $res = $this->dao->getAll($user->uid)->append(['checkCartProduct', 'UserPayCount', 'ActiveSku', 'attrValue', 'attr','spu']); $make = app()->make(ProductRepository::class); $res->map(function ($item) use ($make) { $item['attr'] = $make->detailAttr($item['attr']); }); - return $this->checkCartList($res, $uid); + return $this->checkCartList($res, $user->uid, $user); } - - public function checkCartList($res, $hasCoupon = 0) + public function checkCartList($res, $hasCoupon = 0, $user = null) { $arr = $fail = []; $product_make = app()->make(ProductRepository::class); + $svip_status = ($user && $user->is_svip > 0 && systemConfig('svip_switch_status')) ? true : false; foreach ($res as $item) { if (!$item['checkCartProduct']) { $item['product'] = $product_make->getFailProduct($item['product_id']); @@ -77,6 +77,13 @@ class StoreCartRepository extends BaseRepository $couponIds = app()->make(StoreCouponProductRepository::class)->productByCouponId([$item['product']['product_id']]); $arr[$item['mer_id']]['hasCoupon'] = count($couponIds) ? $coupon_make->validProductCouponExists([$item['product']['product_id']], $hasCoupon) : 0; } + if ($svip_status && $item['product']['show_svip_price']) { + $item['productAttr']['show_svip_price'] = true; + $item['productAttr']['org_price'] = $item['productAttr']['price']; + $item['productAttr']['price'] = $item['productAttr']['svip_price']; + } else { + $item['productAttr']['show_svip_price'] = false; + } $arr[$item['mer_id']]['list'][] = $item; } } diff --git a/app/common/repositories/store/order/StoreGroupOrderRepository.php b/app/common/repositories/store/order/StoreGroupOrderRepository.php index 479250ef..dfa9b1ed 100644 --- a/app/common/repositories/store/order/StoreGroupOrderRepository.php +++ b/app/common/repositories/store/order/StoreGroupOrderRepository.php @@ -16,6 +16,7 @@ namespace app\common\repositories\store\order; use app\common\dao\store\order\StoreGroupOrderDao; use app\common\repositories\BaseRepository; +use app\common\repositories\store\coupon\StoreCouponRepository; use app\common\repositories\store\coupon\StoreCouponUserRepository; use app\common\repositories\user\UserBillRepository; use app\common\repositories\user\UserRepository; @@ -157,4 +158,16 @@ class StoreGroupOrderRepository extends BaseRepository }); Queue::push(CancelGroupOrderJob::class, $id); } + + public function isVipCoupon($groupOrder) + { + if (!$groupOrder->coupon_id) { + return false; + } + $cid = app()->make(StoreCouponUserRepository::class)->query(['coupon_user_id' => $groupOrder->coupon_id])->value('coupon_id'); + if ($cid) { + return app()->make(StoreCouponRepository::class)->query(['coupon_id' => $cid])->value('send_type') === StoreCouponRepository::GET_COUPON_TYPE_SVIP; + } + return false; + } } diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index a097b3c5..f9d37f6d 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -12,13 +12,14 @@ use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\StoreDiscountRepository; use app\common\repositories\store\StoreCategoryRepository; use app\common\repositories\system\merchant\MerchantRepository; +use app\common\repositories\user\MemberinterestsRepository; use app\common\repositories\user\UserAddressRepository; use app\common\repositories\user\UserBillRepository; use app\common\repositories\user\UserMerchantRepository; use app\common\repositories\user\UserRepository; use app\validate\api\OrderVirtualFieldValidate; use app\validate\api\UserAddressValidate; -use crmeb\jobs\SendTemplateMessageJob; +use crmeb\jobs\SendSmsJob; use crmeb\services\SwooleTaskService; use think\exception\ValidateException; use think\facade\Db; @@ -41,20 +42,22 @@ class StoreOrderCreateRepository extends StoreOrderRepository } $storeCartRepository = app()->make(StoreCartRepository::class); - $res = $storeCartRepository->checkCartList($storeCartRepository->cartIbByData($cartId, $uid, $address)); + $res = $storeCartRepository->checkCartList($storeCartRepository->cartIbByData($cartId, $uid, $address), 0, $user); $merchantCartList = $res['list']; $fail = $res['fail']; //检查购物车失效数据 if (count($fail)) { if ($fail[0]['is_fail']) - throw new ValidateException('[已失效]' . $fail[0]['product']['store_name']); + throw new ValidateException('[已失效]' . mb_substr($fail[0]['product']['store_name'],0,10).'...'); if (in_array($fail[0]['product_type'], [1, 2, 3]) && !$fail[0]['userPayCount']) { - throw new ValidateException('[超出限购数]' . $fail[0]['product']['store_name']); + throw new ValidateException('[超出限购数]' . mb_substr($fail[0]['product']['store_name'],0,10).'...'); } - throw new ValidateException('[已失效]' . $fail[0]['product']['store_name']); + throw new ValidateException('[已失效]' . mb_substr($fail[0]['product']['store_name'],0,10).'...'); } + $svip_status = $user->is_svip > 0 && systemConfig('svip_switch_status') == '1'; + $svip_integral_rate = $svip_status ? app()->make(MemberinterestsRepository::class)->getSvipInterestVal(MemberinterestsRepository::HAS_TYPE_PAY) : 0; //订单活动类型 $order_type = 0; //虚拟订单 @@ -66,15 +69,15 @@ class StoreOrderCreateRepository extends StoreOrderRepository foreach ($merchantCart['list'] as $cart) { if ($cart['product_type']==0) { if ($cart['product']['once_min_count'] > 0 && $cart['product']['once_min_count'] > $cart['cart_num']) - throw new ValidateException('[低于起购数:'.$cart['product']['once_min_count'].']'.$cart['product']['store_name']); + throw new ValidateException('[低于起购数:'.$cart['product']['once_min_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...'); if ($cart['product']['pay_limit'] == 1 && $cart['product']['once_max_count'] < $cart['cart_num']) - throw new ValidateException('[超出单次限购数:'.$cart['product']['once_max_count'].']'.$cart['product']['store_name']); + throw new ValidateException('[超出单次限购数:'.$cart['product']['once_max_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...'); if ($cart['product']['pay_limit'] == 2){ //如果长期限购 //已购买数量 $count = app()->make(StoreOrderRepository::class)->getMaxCountNumber($cart['uid'],$cart['product_id']); if (($cart['cart_num'] + $count) > $cart['product']['once_max_count']) - throw new ValidateException('[超出限购总数:'. $cart['product']['once_max_count'].']'.$cart['product']['store_name']); + throw new ValidateException('[超出限购总数:'. $cart['product']['once_max_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...'); } } @@ -111,6 +114,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository } $orderDeliveryStatus = true; + $order_svip_discount = 0; // 循环计算每个店铺的订单数据 foreach ($merchantCartList as &$merchantCart) { $postageRule = []; @@ -121,6 +125,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $product_price = []; $final_price = 0; $down_price = 0; + $total_svip_discount = 0; //是否自提 $isTake = in_array($merchantCart['mer_id'], $takes ?? []); @@ -198,7 +203,8 @@ class StoreOrderCreateRepository extends StoreOrderRepository if (!$enabledCoupon) { $merchantCart['coupon'] = []; } - + $svip_coupon_merge = merchantConfig($merchantCart['mer_id'], 'svip_coupon_merge'); + $use_svip = 0; //获取运费规则和统计商品数据 foreach ($merchantCart['list'] as &$cart) { @@ -209,7 +215,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository if ($cart['cart_num'] <= 0) { throw new ValidateException('购买商品数必须大于0'); } - + $svip_discount = 0; $price = bcmul($cart['cart_num'], $this->cartByPrice($cart), 2); $cart['total_price'] = $price; @@ -217,6 +223,15 @@ class StoreOrderCreateRepository extends StoreOrderRepository $total_price = bcadd($total_price, $price, 2); $total_num += $cart['cart_num']; $_price = bcmul($cart['cart_num'], $this->cartByCouponPrice($cart), 2); + $cart['svip_coupon_merge'] = 1; + if ($cart['productAttr']['show_svip_price']) { + $svip_discount = max(bcmul($cart['cart_num'], bcsub($cart['productAttr']['org_price'] ?? 0, $cart['productAttr']['price'], 2), 2), 0); + if ($svip_coupon_merge != '1') { + $_price = 0; + $cart['svip_coupon_merge'] = 0; + } + $use_svip = 1; + } $valid_total_price = bcadd($valid_total_price, $_price, 2); $cart['allow_price'] = $_price; $temp1 = $cart['product']['temp']; @@ -299,6 +314,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $postageRule[$tempId]['region'] = $regionRule; } unset($cart); + $total_svip_discount = bcadd($total_svip_discount, $svip_discount, 2); if (!$isTake) { //计算运费 @@ -340,6 +356,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $merCouponIds = array_reverse($merCouponIds); $sortIds = $merCouponIds; // $all_coupon_product = []; + unset($defaultSort); $defaultSort = []; if (count($merCouponIds)) { foreach ($merchantCart['coupon'] as &$item) { @@ -365,6 +382,10 @@ class StoreOrderCreateRepository extends StoreOrderRepository $coupon['disabled'] = true; continue; } + if($svip_coupon_merge != '1' && $use_svip){ + $coupon['disabled'] = true; + continue; + } $flag = false; foreach ($coupon['product'] as $_product) { if (isset($product_price[$_product['product_id']]) && $product_price[$_product['product_id']] >= $coupon['use_min_price']) { @@ -416,6 +437,10 @@ class StoreOrderCreateRepository extends StoreOrderRepository $coupon['checked'] = false; $coupon['disabled'] = $pay_price <= 0; if ($use_store_coupon || $pay_price <= 0) continue; + if($svip_coupon_merge != '1' && $use_svip){ + $coupon['disabled'] = true; + continue; + } //店铺券 if ($valid_total_price >= $coupon['use_min_price']) { if ($useCouponFlag) { @@ -496,6 +521,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository //单个商品实际支付金额 $cart['coupon_price'] = bcsub($_cartTotalPrice, $cartTotalPrice, 2); $cart['true_price'] = $cartTotalPrice; + $cart['svip_discount'] = $svip_discount; } unset($cart, $_k); $total_true_price = bcadd($_pay_price, $total_true_price, 2); @@ -508,6 +534,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository 'final_price' => $final_price, 'down_price' => $down_price, 'coupon_price' => $coupon_price, + 'svip_coupon_merge' => $svip_coupon_merge, 'postage_price' => $postage_price, 'isTake' => $isTake, 'total_num' => $total_num, @@ -516,8 +543,11 @@ class StoreOrderCreateRepository extends StoreOrderRepository 'allow_take' => $merTake, 'allow_delivery' => $merDelivery, 'delivery_status' => $deliveryStatus, + 'svip_discount' => $total_svip_discount, + 'use_svip' => $use_svip, ]; $order_total_postage = bcadd($order_total_postage, $postage_price, 2); + $order_svip_discount = bcadd($total_svip_discount, $order_svip_discount, 2); if (count($defaultSort)) { $merchantCart['coupon'] = &$defaultSort; } @@ -528,6 +558,25 @@ class StoreOrderCreateRepository extends StoreOrderRepository $usePlatformCouponId = is_array($usePlatformCouponId) ? array_pop($usePlatformCouponId) : $usePlatformCouponId; $usePlatformCouponFlag = isset($useCoupon[0]); + foreach ($merchantCartList as &$merchantCart) { + if (!$merchantCart['order']['use_svip']) + continue; + $totalMergePrice = 0; + foreach ($merchantCart['list'] as &$cart) { + if (!$cart['svip_coupon_merge']) { + $totalMergePrice = bcadd($totalMergePrice, $cart['true_price'], 2); + $cart['allow_price'] = $cart['true_price']; + } + } + unset($cart); + if ($totalMergePrice > 0) { + $total_true_price = bcadd($total_true_price, $totalMergePrice, 2); + $merchantCart['order']['valid_total_price'] = bcadd($merchantCart['order']['valid_total_price'], $totalMergePrice, 2); + $merchantCart['order']['true_price'] = $merchantCart['order']['valid_total_price']; + } + } + unset($merchantCart); + //计算平台券优惠金额 // if ($total_true_price > 0) { $StoreCouponUser = app()->make(StoreCouponUserRepository::class); @@ -577,6 +626,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository } ]; $coupon['checked'] = true; + $flag = true; } //品类券 } else if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_CATE) { @@ -584,17 +634,17 @@ class StoreOrderCreateRepository extends StoreOrderRepository $_use_count = 0; $cateIds = $coupon['product']->column('product_id'); $allCateIds = array_unique(array_merge(app()->make(StoreCategoryRepository::class)->allChildren($cateIds), $cateIds)); - $flag = true; + $flag2 = true; foreach ($allCateIds as $cateId) { if (isset($catePriceLst[$cateId])) { $_price = bcadd($catePriceLst[$cateId]['price'], $_price, 2); $_use_count += count($catePriceLst[$cateId]['cart']); - $flag = false; + $flag2 = false; } } - $coupon['disabled'] = $flag || $coupon['use_min_price'] > $_price; + $coupon['disabled'] = $flag2 || $coupon['use_min_price'] > $_price; //品类券可用 - if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) { + if (!$platformCouponRate && !$coupon['disabled'] && !$flag && !$flag2 && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) { $platformCouponRate = [ 'id' => $coupon['coupon_user_id'], 'type' => $coupon['coupon']['type'], @@ -613,18 +663,18 @@ class StoreOrderCreateRepository extends StoreOrderRepository } else if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_STORE) { $_price = 0; $_use_count = 0; - $flag = true; + $flag2 = true; foreach ($coupon['product'] as $item) { $merId = $item['product_id']; if (isset($storePriceLst[$merId])) { $_price = bcadd($storePriceLst[$merId]['price'], $_price, 2); $_use_count += $storePriceLst[$merId]['num']; - $flag = false; + $flag2 = false; } } - $coupon['disabled'] = $flag || $coupon['use_min_price'] > $_price; + $coupon['disabled'] = $flag2 || $coupon['use_min_price'] > $_price; //店铺券可用 - if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) { + if (!$platformCouponRate && !$coupon['disabled'] && !$flag && !$flag2 && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) { $_merIds = $coupon['product']->column('product_id'); $platformCouponRate = [ 'id' => $coupon['coupon_user_id'], @@ -650,6 +700,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $total_platform_coupon_price = 0; //计算平台优惠券 if (isset($platformCouponRate)) { + $_coupon_price = $platformCouponRate['coupon_price']; foreach ($merchantCartList as &$merchantCart) { $_price = 0; foreach ($merchantCart['list'] as &$cart) { @@ -658,7 +709,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository if ($platformCouponRate['use_count'] === 1) { $couponPrice = min($platformCouponRate['coupon_price'], $cart['true_price']); } else { - $couponPrice = min(bcmul($platformCouponRate['coupon_price'], bcdiv($cart['true_price'], $platformCouponRate['price'], 3), 2), $cart['true_price']); + $couponPrice = min(bcmul($_coupon_price, bcdiv($cart['true_price'], $platformCouponRate['price'], 3), 2), $cart['true_price']); } $platformCouponRate['coupon_price'] = bcsub($platformCouponRate['coupon_price'], $couponPrice, 2); $cart['true_price'] = bcsub($cart['true_price'], $couponPrice, 2); @@ -776,6 +827,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository //计算赠送积分, 只有普通商品赠送积分 if ($giveIntegralFlag && !$order_type && $pay_price > 0) { $total_give_integral = floor(bcmul($pay_price, $sysIntegralConfig['integral_order_rate'], 0)); + if ($total_give_integral > 0 && $svip_status && $svip_integral_rate > 0) { + $total_give_integral = bcmul($svip_integral_rate, $total_give_integral, 0); + } } $order_total_give_integral = bcadd($total_give_integral, $order_total_give_integral, 0); @@ -800,11 +854,21 @@ class StoreOrderCreateRepository extends StoreOrderRepository $allow_no_address = false; } + foreach ($merchantCartList as &$merchantCart) { + foreach ($merchantCart['list'] as &$cart) { + $cart['total_price'] = bcadd($cart['total_price'], $cart['svip_discount'], 2); + } + unset($cart); + $merchantCart['order']['total_price'] = bcadd($merchantCart['order']['total_price'], $merchantCart['order']['svip_discount'], 2); + $order_total_price = bcadd($order_total_price, $merchantCart['order']['svip_discount'], 2); + } + unset($merchantCart); + $status = ($address || $order_model || $allow_no_address) ? ($noDeliver ? 'noDeliver' : 'finish') : 'noAddress'; $order = $merchantCartList; $total_price = $order_total_price; $openIntegral = $merIntegralFlag && !$order_type && $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_money'] > 0; - $total_coupon = bcadd(bcadd($total_platform_coupon_price, $order_coupon_price, 2), $order_total_integral_price, 2); + $total_coupon = bcadd($order_svip_discount, bcadd(bcadd($total_platform_coupon_price, $order_coupon_price, 2), $order_total_integral_price, 2), 2); return compact( 'order_type', 'order_model', @@ -818,6 +882,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository 'order_total_integral', 'order_total_integral_price', 'order_total_give_integral', + 'order_svip_discount', 'total_platform_coupon_price', 'total_coupon', 'order_coupon_price', @@ -1011,6 +1076,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository 'total_price' => $merchantCart['order']['total_price'], 'total_postage' => $merchantCart['order']['postage_price'], 'pay_postage' => $merchantCart['order']['postage_price'], + 'svip_discount' => $merchantCart['order']['svip_discount'], 'pay_price' => $merchantCart['order']['pay_price'], 'integral' => $merchantCart['order']['total_integral'], 'integral_price' => $merchantCart['order']['total_integral_price'], @@ -1237,6 +1303,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository 'extension_one' => $extension_one, 'extension_two' => $extension_two, 'postage_price' => $cart['postage_price'], + 'svip_discount' => $cart['svip_discount'], 'cost' => $cart['cost'], 'coupon_price' => $cart['coupon_price'], 'platform_coupon_price' => $cart['platform_coupon_price'], @@ -1277,7 +1344,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository } } } - Queue::push(SendTemplateMessageJob::class, ['tempCode' => 'ORDER_CREATE', 'id' => $group->group_order_id]); + Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'id' => $group->group_order_id]); return $group; } } diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 8581821a..fc865bfc 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -19,13 +19,9 @@ use app\common\repositories\BaseRepository; use app\common\repositories\delivery\DeliveryOrderRepository; use app\common\repositories\store\coupon\StoreCouponRepository; use app\common\repositories\store\coupon\StoreCouponUserRepository; -use app\common\repositories\store\MerchantTakeRepository; use app\common\repositories\store\product\ProductAssistSetRepository; -use app\common\repositories\store\product\ProductAssistSkuRepository; -use app\common\repositories\store\product\ProductAttrValueRepository; use app\common\repositories\store\product\ProductCopyRepository; use app\common\repositories\store\product\ProductGroupBuyingRepository; -use app\common\repositories\store\product\ProductGroupSkuRepository; use app\common\repositories\store\product\ProductPresellSkuRepository; use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\StoreDiscountRepository; @@ -36,15 +32,12 @@ use app\common\repositories\system\attachment\AttachmentRepository; use app\common\repositories\system\merchant\FinancialRecordRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\system\serve\ServeDumpRepository; -use app\common\repositories\user\UserAddressRepository; use app\common\repositories\user\UserBillRepository; use app\common\repositories\user\UserBrokerageRepository; use app\common\repositories\user\UserMerchantRepository; use app\common\repositories\user\UserRepository; -use app\validate\api\OrderVirtualFieldValidate; use crmeb\jobs\PayGiveCouponJob; use crmeb\jobs\SendSmsJob; -use crmeb\jobs\SendTemplateMessageJob; use crmeb\jobs\UserBrokerageLevelJob; use crmeb\services\CombinePayService; use crmeb\services\CrmebServeServices; @@ -157,7 +150,7 @@ class StoreOrderRepository extends BaseRepository $order->pay_type = $pay_type; $order->save(); } - $order->save(); + $groupOrder->save(); }); } @@ -202,9 +195,12 @@ class StoreOrderRepository extends BaseRepository $storeOrderProfitsharingRepository = app()->make(StoreOrderProfitsharingRepository::class); $uid = $groupOrder->uid; $i = 1; + $isVipCoupon = app()->make(StoreGroupOrderRepository::class)->isVipCoupon($groupOrder); + $svipDiscount = 0; foreach ($groupOrder->orderList as $_k => $order) { $order->paid = 1; $order->pay_time = $time; + $svipDiscount = bcadd($order->svip_discount, $svipDiscount, 2); if (isset($subOrders[$order->order_sn])) { $order->transaction_id = $subOrders[$order->order_sn]['transaction_id']; } @@ -349,7 +345,7 @@ class StoreOrderRepository extends BaseRepository 'order_sn' => $order->order_sn, 'user_info' => $groupOrder->user->nickname, 'user_id' => $uid, - 'financial_type' => 'order_platform_coupon', + 'financial_type' => $isVipCoupon ? 'order_svip_coupon' : 'order_platform_coupon', 'financial_pm' => 0, 'type' => 1, 'number' => $order->platform_coupon_price, @@ -393,6 +389,7 @@ class StoreOrderRepository extends BaseRepository app()->make(UserRepository::class)->update($groupOrder->uid, [ 'pay_count' => Db::raw('pay_count+' . count($groupOrder->orderList)), 'pay_price' => Db::raw('pay_price+' . $groupOrder->pay_price), + 'svip_save_money' => Db::raw('svip_save_money+' . $svipDiscount), ]); $this->giveIntegral($groupOrder); if (count($profitsharing)) { @@ -412,19 +409,8 @@ class StoreOrderRepository extends BaseRepository } } - Queue::push(SendTemplateMessageJob::class, [ - 'tempCode' => 'ORDER_PAY_SUCCESS', - 'id' => $groupOrder->group_order_id - ]); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'ORDER_PAY_SUCCESS', - 'id' => $groupOrder->group_order_id - ]); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'ADMIN_PAY_SUCCESS_CODE', - 'id' => $groupOrder->group_order_id - ]); - + Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]); + Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]); Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]); Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_num', 'inc' => 1]); app()->make(UserBrokerageRepository::class)->incMemberValue($groupOrder->uid, 'member_pay_num', $groupOrder->group_order_id); @@ -554,9 +540,15 @@ class StoreOrderRepository extends BaseRepository public function getDetail($id, $uid = null) { $where = []; - $with = ['orderProduct', 'merchant' => function ($query) { - return $query->field('mer_id,mer_name,service_phone')->append(['services_type']); - }]; + $with = [ + 'orderProduct', + 'merchant' => function ($query) { + return $query->field('mer_id,mer_name,service_phone')->append(['services_type']); + }, + 'receipt' => function ($query) { + return $query->field('order_id,order_receipt_id'); + } + ]; if ($uid) { $where['uid'] = $uid; } else if (!$uid) { @@ -583,9 +575,18 @@ class StoreOrderRepository extends BaseRepository { $where = []; if ($uid) $where['uid'] = $uid; - return $this->dao->search($where)->where('verify_code', $code)->where('StoreOrder.is_del', 0)->with(['orderProduct', 'merchant' => function ($query) { - return $query->field('mer_id,mer_name'); - }])->find(); + $data = $this->dao->search($where)->where('verify_code', $code) + ->where('StoreOrder.is_del', 0) + ->with([ + 'orderProduct', + 'merchant' => function ($query) { + return $query->field('mer_id,mer_name'); + } + ]) + ->find(); + if ($data['status']) + throw new ValidateException('该订单已全部核销'); + return $data; } public function giveIntegral($groupOrder) @@ -677,19 +678,10 @@ class StoreOrderRepository extends BaseRepository $this->computed($order, $user); //TODO 确认收货 $statusRepository = app()->make(StoreOrderStatusRepository::class); - $statusRepository->status($order->order_id, $statusRepository::ORDER_STATUS_TAKE, '已收货'); - Queue::push(SendTemplateMessageJob::class, [ - 'tempCode' => 'ORDER_TAKE_SUCCESS', - 'id' => $order->order_id - ]); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'ORDER_TAKE_SUCCESS', - 'id' => $order->order_id - ]); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'ADMIN_TAKE_DELIVERY_CODE', - 'id' => $order->order_id - ]); + + $statusRepository->status($order->order_id, $statusRepository::ORDER_STATUS_TAKE, $order->order_type == 1 ? '已核销' :'已收货'); + Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_TAKE_SUCCESS', 'id' => $order->order_id]); + Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_TAKE_DELIVERY_CODE', 'id' => $order->order_id]); app()->make(MerchantRepository::class)->computedLockMoney($order); $order->save(); }); @@ -811,6 +803,7 @@ class StoreOrderRepository extends BaseRepository break; // 已退款 case 7: $param['StoreOrder.is_del'] = 1; + break; // 待核销 break; // 已删除 default: unset($param['StoreOrder.is_del']); @@ -1189,7 +1182,11 @@ class StoreOrderRepository extends BaseRepository } $order = $this->dao->get($id); $newOrder = app()->make(StoreOrderSplitRepository::class)->splitOrder($order, $splitData); - if ($newOrder) $id = $newOrder->order_id; + if ($newOrder){ + $id = $newOrder->order_id; + } else { + throw new ValidateException('商品不能全部拆单'); + } } return $this->{$method}($id, $merId, $data); }); @@ -1210,36 +1207,36 @@ class StoreOrderRepository extends BaseRepository if ($order['is_virtual'] && $data['delivery_type'] != 3) throw new ValidateException('虚拟商品只能虚拟发货'); $statusRepository = app()->make(StoreOrderStatusRepository::class); - if ($data['delivery_type'] == 1) { - $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]); - if (!$exprss) throw new ValidateException('快递公司不存在'); - $data['delivery_name'] = $exprss['name']; - $change_type = $statusRepository::ORDER_DELIVERY_COURIER; - $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id']; - $temp_code = 'ORDER_POSTAGE_SUCCESS'; + switch ($data['delivery_type']) { + case 1: + $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]); + if (!$exprss) throw new ValidateException('快递公司不存在'); + $data['delivery_name'] = $exprss['name']; + $change_type = $statusRepository::ORDER_DELIVERY_COURIER; + $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id']; + $temp_code = 'DELIVER_GOODS_CODE'; + break; + case 2: + if (!preg_match("/^1[3456789]{1}\d{9}$/", $data['delivery_id'])) throw new ValidateException('手机号格式错误'); + $change_type = 'delivery_1'; + $change_message = '订单已配送【送货人姓名】:' . $data['delivery_name'] . '; 【手机号】:' . $data['delivery_id']; + $temp_code = 'ORDER_DELIVER_SUCCESS'; + break; + case 3: + $change_type = $statusRepository::ORDER_DELIVERY_NOTHING; + $change_message = '订单已配送【虚拟发货】'; + $data['status'] = 2; + break; + case 4: + $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]); + if (!$exprss) throw new ValidateException('快递公司不存在'); + $data['delivery_name'] = $exprss['name']; + $change_type = $statusRepository::ORDER_DELIVERY_COURIER; + $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id']; + $temp_code = 'DELIVER_GOODS_CODE'; + break; } - if ($data['delivery_type'] == 2) { - if (!preg_match("/^1[3456789]{1}\d{9}$/", $data['delivery_id'])) throw new ValidateException('手机号格式错误'); - $change_type = 'delivery_1'; - $change_message = '订单已配送【送货人姓名】:' . $data['delivery_name'] . '; 【手机号】:' . $data['delivery_id']; - $temp_code = 'DELIVER_GOODS_CODE'; - } - - if ($data['delivery_type'] == 3) { - $change_type = $statusRepository::ORDER_DELIVERY_NOTHING; - $change_message = '订单已配送【虚拟发货】'; - $data['status'] = 2; - } - - if ($data['delivery_type'] == 4) { - $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]); - if (!$exprss) throw new ValidateException('快递公司不存在'); - $data['delivery_name'] = $exprss['name']; - $change_type = $statusRepository::ORDER_DELIVERY_COURIER; - $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id']; - $temp_code = 'ORDER_POSTAGE_SUCCESS'; - } event('order.delivery.before', compact('order', 'data')); $this->dao->update($id, $data); @@ -1250,9 +1247,8 @@ class StoreOrderRepository extends BaseRepository } $statusRepository->status($id, $change_type, $change_message); - Queue::push(SendSmsJob::class, ['tempId' => 'DELIVER_GOODS_CODE', 'id' => $order->order_id]); + if (isset($temp_code)) Queue::push(SendSmsJob::class, ['tempId' => $temp_code, 'id' => $order->order_id]); - if (isset($temp_code)) Queue::push(SendTemplateMessageJob::class, ['tempCode' => $temp_code, 'id' => $order['order_id']]); event('order.delivery', compact('order', 'data')); return $data; } @@ -1274,12 +1270,11 @@ class StoreOrderRepository extends BaseRepository $make->create($id, $merId, $data, $order); $this->dao->update($id, ['delivery_type' => 5, 'status' => 1,'remark' => $data['remark']]); - $change_message = '订单已配送【同城配送】'; - $temp_code = 'DELIVER_GOODS_CODE'; - $statusRepository = app()->make(StoreOrderStatusRepository::class); - $statusRepository->status($id, $statusRepository::ORDER_DELIVERY_CITY, $change_message); - Queue::push(SendTemplateMessageJob::class, ['tempCode' => $temp_code, 'id' => $id]); + $statusRepository = app()->make(StoreOrderStatusRepository::class); + $statusRepository->status($id, $statusRepository::ORDER_DELIVERY_CITY, '订单已配送【同城配送】'); + + Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_DELIVER_SUCCESS', 'id' => $id]); } @@ -1293,7 +1288,7 @@ class StoreOrderRepository extends BaseRepository return $this->dao->getWhere($where, '*', [ 'orderProduct', 'user' => function ($query) { - $query->field('uid,real_name,nickname'); + $query->field('uid,real_name,nickname,is_svip,svip_endtime,phone'); }, 'refundOrder' => function ($query) { $query->field('order_id,extension_one,extension_two,refund_price,integral')->where('status', 3); @@ -1570,7 +1565,10 @@ class StoreOrderRepository extends BaseRepository 'merchant' => function ($query) { return $query->field('mer_id,mer_name'); }, - 'community' + 'community', + 'receipt' => function ($query) { + return $query->field('order_id,order_receipt_id'); + }, ])->page($page, $limit)->order('pay_time DESC')->append(['refund_status'])->select(); foreach ($list as $order) { @@ -1704,16 +1702,17 @@ class StoreOrderRepository extends BaseRepository } $data = [ - 'order_sn' => $order['order_sn'], - 'pay_time' => $order['pay_time'], - 'real_name' => $order['real_name'], + 'order_sn' => $order['order_sn'], + 'order_type' => $order['order_type'], + 'pay_time' => $order['pay_time'], + 'real_name' => $order['real_name'], 'user_phone' => $order['user_phone'], 'user_address' => $order['user_address'], - 'total_price' => $order['total_price'], + 'total_price' => $order['total_price'], 'coupon_price' => $order['coupon_price'], - 'pay_price' => $order['pay_price'], + 'pay_price' => $order['pay_price'], 'total_postage' => $order['total_postage'], - 'pay_postage' => $order['pay_postage'], + 'pay_postage' => $order['pay_postage'], 'mark' => $order['mark'], ]; @@ -1731,17 +1730,18 @@ class StoreOrderRepository extends BaseRepository event('order.print', compact('order', 'res')); } - public function verifyOrder($id, $merId, $serviceId) + + public function verifyOrder(int $id, int $merId, array $data, $serviceId = 0) { - $order = $this->dao->getWhere(['verify_code' => $id, 'mer_id' => $merId]); - if (!$order) - throw new ValidateException('订单不存在'); - if ($order->status != 9 && $order->status >= 2) - throw new ValidateException('请勿重复核销~'); - if ($order->status != 0 && $order->status != 9) - throw new ValidateException('订单状态有误'); - if (!$order->paid) - throw new ValidateException('订单未支付'); + $order = $this->dao->getWhere(['order_id' => $id, 'mer_id' => $merId,'verify_code' => $data['verify_code'],'order_type' => 1],'*',['orderProduct']); + if (!$order) throw new ValidateException('订单不存在'); + if (!$order->paid) throw new ValidateException('订单未支付'); + if ($order['status']) throw new ValidateException('订单已全部核销,请勿重复操作'); + foreach ($data['data'] as $v) { + $splitData[$v['id']] = $v['num']; + } + $spl = app()->make(StoreOrderSplitRepository::class)->splitOrder($order, $splitData); + if ($spl) $order = $spl; $order->status = 2; $order->verify_time = date('Y-m-d H:i:s'); $order->verify_service_id = $serviceId; @@ -1913,19 +1913,36 @@ class StoreOrderRepository extends BaseRepository public function orderRefundAllAfter($order) { - $couponId = []; - if ($order->coupon_id) { - $couponId = explode(',', $order->coupon_id); - } $statusRepository = app()->make(StoreOrderStatusRepository::class); $statusRepository->status($order['order_id'], $statusRepository::ORDER_STATUS_REFUND_ALL, '订单已全部退款'); - if (count($couponId)) { - app()->make(StoreCouponUserRepository::class)->updates($couponId, ['status' => 0]); - } if ($order->activity_type == 10) { app()->make(StoreDiscountRepository::class)->incStock($order->orderProduct[0]['activity_id']); } - app()->make(MerchantRepository::class)->computedLockMoney($order); + $mainId = $order->main_id ?: $order->order_id; + $count = $this->query([])->where('status', '<>', -1)->where(function ($query) use ($mainId) { + $query->where('order_id', $mainId)->whereOr('main_id', $mainId); + })->count(); + //拆单后完全退完 + if (!$count) { + if ($order->main_id) { + $order = $this->query(['order_id' => $mainId])->find(); + } + $couponId = []; + if ($order->coupon_id) { + $couponId = explode(',', $order->coupon_id); + } + app()->make(MerchantRepository::class)->computedLockMoney($order); + //总单所有订单全部退完 + if (!$this->query([])->where('status', '<>', -1)->where('group_order_id', $order->group_order_id)->count()) { + if ($order->groupOrder->coupon_id) { + $couponId[] = $order->groupOrder->coupon_id; + } + } + if (count($couponId)) { + app()->make(StoreCouponUserRepository::class)->updates($couponId, ['status' => 0]); + } + + } event('order.refundAll', compact('order')); } diff --git a/app/common/repositories/store/order/StoreOrderSplitRepository.php b/app/common/repositories/store/order/StoreOrderSplitRepository.php index 9c0e2966..47e49b31 100644 --- a/app/common/repositories/store/order/StoreOrderSplitRepository.php +++ b/app/common/repositories/store/order/StoreOrderSplitRepository.php @@ -13,6 +13,7 @@ namespace app\common\repositories\store\order; use app\common\dao\store\order\StoreOrderDao; use app\common\model\store\order\StoreOrder; +use crmeb\services\LockService; use think\exception\ValidateException; use think\facade\Db; @@ -26,6 +27,13 @@ use think\facade\Db; class StoreOrderSplitRepository extends StoreOrderRepository { public function splitOrder(StoreOrder $order, array $rule) + { + return app()->make(LockService::class)->exec('order.split.' . $order->order_id, function () use ($rule, $order) { + return $this->execSplitOrder($order, $rule); + }); + } + + public function execSplitOrder(StoreOrder $order, array $rule) { if ($order['status'] != 0) { throw new ValidateException('订单已发货'); @@ -45,6 +53,7 @@ class StoreOrderSplitRepository extends StoreOrderRepository $newOrder['extension_two'] = 0; $newOrder['coupon_price'] = 0; $newOrder['platform_coupon_price'] = 0; + $newOrder['svip_discount'] = 0; $newOrder['cost'] = 0; $newOrder['integral_price'] = 0; $newOrder['integral'] = 0; @@ -75,7 +84,8 @@ class StoreOrderSplitRepository extends StoreOrderRepository } if (!$flag) { - throw new ValidateException('商品不能全部拆单'); + return $flag; + //throw new ValidateException('商品不能全部拆单'); } foreach ($order['orderProduct'] as $product) { @@ -98,22 +108,22 @@ class StoreOrderSplitRepository extends StoreOrderRepository $product['is_refund'] = 3; } - $newProduct['product_price'] = $product['product_price'] > 0 ? bcmul(bcdiv($product['product_price'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['total_price'] = $product['total_price'] > 0 ? bcmul(bcdiv($product['total_price'], $product['product_num'], 3), $num, 2) : 0; + $newProduct['product_price'] = $product['product_price'] > 0 ? round(bcmul(bcdiv($product['product_price'], $product['product_num'], 3), $num, 3), 2) : 0; + $newProduct['total_price'] = $product['total_price'] > 0 ? round(bcmul(bcdiv($product['total_price'], $product['product_num'], 2), $num, 2), 2) : 0; $newProduct['extension_one'] = $product['extension_one']; $newProduct['extension_two'] = $product['extension_two']; - $newProduct['coupon_price'] = $product['coupon_price'] > 0 ? bcmul(bcdiv($product['coupon_price'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['cost'] = $product['cost'] > 0 ? bcmul(bcdiv($product['cost'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['integral_price'] = $product['integral_price'] > 0 ? bcmul(bcdiv($product['integral_price'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['platform_coupon_price'] = $product['platform_coupon_price'] > 0 ? bcmul(bcdiv($product['platform_coupon_price'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['postage_price'] = $product['postage_price'] > 0 ? bcmul(bcdiv($product['postage_price'], $product['product_num'], 3), $num, 2) : 0; - $newProduct['integral_total'] = $product['integral_total'] > 0 ? bcmul(bcdiv($product['integral_total'], $product['integral_total'], 3), $num, 0) : 0; + $newProduct['coupon_price'] = $product['coupon_price'] > 0 ? bcmul(bcdiv($product['coupon_price'], $product['product_num'], 2), $num, 2) : 0; + $newProduct['svip_discount'] = $product['svip_discount'] > 0 ? bcmul(bcdiv($product['svip_discount'], $product['product_num'], 2), $num, 2) : 0; + $newProduct['integral_price'] = $product['integral_price'] > 0 ? bcmul(bcdiv($product['integral_price'], $product['product_num'], 2), $num, 2) : 0; + $newProduct['platform_coupon_price'] = $product['platform_coupon_price'] > 0 ? bcmul(bcdiv($product['platform_coupon_price'], $product['product_num'], 2), $num, 2) : 0; + $newProduct['postage_price'] = $product['postage_price'] > 0 ? bcmul(bcdiv($product['postage_price'], $product['product_num'], 2), $num, 2) : 0; + $newProduct['integral_total'] = $product['integral_total'] > 0 ? floor(bcmul(bcdiv($product['integral_total'], $product['integral_total'], 2), $num, 0)) : 0; $product['product_price'] = $product['product_price'] > 0 ? bcsub($product['product_price'], $newProduct['product_price'], 2) : 0; $product['total_price'] = $product['total_price'] > 0 ? bcsub($product['total_price'], $newProduct['total_price'], 2) : 0; $product['coupon_price'] = $product['coupon_price'] > 0 ? bcsub($product['coupon_price'], $newProduct['coupon_price'], 2) : 0; + $product['svip_discount'] = $product['svip_discount'] > 0 ? bcsub($product['svip_discount'], $newProduct['svip_discount'], 2) : 0; $product['integral_price'] = $product['integral_price'] > 0 ? bcsub($product['integral_price'], $newProduct['integral_price'], 2) : 0; - $product['cost'] = $product['cost'] > 0 ? bcsub($product['cost'], $newProduct['cost'], 2) : 0; $product['platform_coupon_price'] = $product['platform_coupon_price'] > 0 ? bcsub($product['platform_coupon_price'], $newProduct['platform_coupon_price'], 2) : 0; $product['postage_price'] = $product['postage_price'] > 0 ? bcsub($product['postage_price'], $newProduct['postage_price'], 2) : 0; $product['integral_total'] = $product['integral_total'] > 0 ? bcsub($product['integral_total'], $newProduct['integral_total'], 0) : 0; @@ -124,7 +134,7 @@ class StoreOrderSplitRepository extends StoreOrderRepository $product->save(); } - $give_integral = $order['give_integral'] > 0 ? bcmul(bcdiv($newProduct['product_price'], $order['pay_price'], 3), $order['give_integral'], 0) : 0; + $give_integral = $order['give_integral'] > 0 ? floor(bcmul(bcdiv($newProduct['product_price'], $order['pay_price'], 2), $order['give_integral'], 0)) : 0; $extension_one = $newProduct['extension_one'] > 0 ? bcmul($newProduct['extension_one'], $num, 2) : 0; $extension_two = $newProduct['extension_two'] > 0 ? bcmul($newProduct['extension_two'], $num, 2) : 0; $order['total_num'] -= $newProduct['product_num']; @@ -133,6 +143,7 @@ class StoreOrderSplitRepository extends StoreOrderRepository $order['pay_postage'] = $order['total_postage']; $order['extension_one'] = $order['extension_one'] > 0 ? bcsub($order['extension_one'], $extension_one, 2) : 0; $order['extension_two'] = $order['extension_two'] > 0 ? bcsub($order['extension_two'], $extension_two, 2) : 0; + $order['svip_discount'] = $order['svip_discount'] > 0 ? bcsub($order['svip_discount'], $newProduct['svip_discount'], 2) : 0; $order['coupon_price'] = $order['coupon_price'] > 0 ? bcsub($order['coupon_price'], $newProduct['coupon_price'], 2) : 0; $order['coupon_price'] = $order['platform_coupon_price'] > 0 ? bcsub($order['coupon_price'], $newProduct['platform_coupon_price'], 2) : $order['coupon_price']; $order['platform_coupon_price'] = $order['platform_coupon_price'] > 0 ? bcsub($order['platform_coupon_price'], $newProduct['platform_coupon_price'], 2) : 0; @@ -148,6 +159,7 @@ class StoreOrderSplitRepository extends StoreOrderRepository $newOrder['pay_postage'] = $newOrder['total_postage']; $newOrder['extension_one'] = bcadd($newOrder['extension_one'], $extension_one, 2); $newOrder['extension_two'] = bcadd($newOrder['extension_two'], $extension_two, 2); + $newOrder['svip_discount'] = bcadd($newOrder['svip_discount'], $newProduct['svip_discount'], 2); $newOrder['coupon_price'] = bcadd($newOrder['coupon_price'], $newProduct['coupon_price'], 2); $newOrder['coupon_price'] = bcadd($newOrder['coupon_price'], $newProduct['platform_coupon_price'], 2); $newOrder['platform_coupon_price'] = bcadd($newOrder['platform_coupon_price'], $newProduct['platform_coupon_price'], 2); @@ -161,14 +173,16 @@ class StoreOrderSplitRepository extends StoreOrderRepository } if (!count($inserts)) { - throw new ValidateException('请选择拆单商品'); + throw new ValidateException('请选择需拆出的商品'); } $newOrder['pay_price'] = bcadd($newOrder['pay_price'], $newOrder['pay_postage'], 2); $order['pay_price'] = bcsub($order['pay_price'], $newOrder['pay_postage'], 2); $newOrder['order_sn'] = explode('-', $newOrder['order_sn'])[0] . ('-' . ($this->getSearch([])->where('main_id', $order['order_id'])->count() + 1)); $newOrder['main_id'] = $order['main_id'] ?: $order['order_id']; - + if ($newOrder['verify_code']) { + $newOrder['verify_code'] = $this->verifyCode(); + } unset($newOrder['order_id']); $newOrder = $this->create($newOrder); $newOrderId = $newOrder['order_id']; diff --git a/app/common/repositories/store/order/StoreRefundOrderRepository.php b/app/common/repositories/store/order/StoreRefundOrderRepository.php index 22b3efc1..67763bc4 100644 --- a/app/common/repositories/store/order/StoreRefundOrderRepository.php +++ b/app/common/repositories/store/order/StoreRefundOrderRepository.php @@ -24,7 +24,6 @@ use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\user\UserBillRepository; use app\common\repositories\user\UserRepository; use crmeb\jobs\SendSmsJob; -use crmeb\jobs\SendTemplateMessageJob; use crmeb\services\AlipayService; use crmeb\services\ExpressService; use crmeb\services\MiniProgramService; @@ -51,6 +50,16 @@ use think\Model; */ class StoreRefundOrderRepository extends BaseRepository { + + //状态 0:待审核 -1:审核未通过 1:待退货 2:待收货 3:已退款 -10 取消 + public const REFUND_STATUS_WAIT = 0; + public const REFUND_STATUS_BACK = 1; + public const REFUND_STATUS_THEGOODS = 2; + public const REFUND_STATUS_SUCCESS = 1; + public const REFUND_STATUS_REFUSED = -1; + public const REFUND_STATUS_CANCEL= -2; + + /** * StoreRefundOrderRepository constructor. * @param StoreRefundOrderDao $dao @@ -116,7 +125,7 @@ class StoreRefundOrderRepository extends BaseRepository }); } - public function createRefund(StoreOrder $order, $refund_type = 1, $refund_message = '自动发起退款') + public function createRefund(StoreOrder $order, $refund_type = 1, $refund_message = '自动发起退款', $refund_postage = true) { $products = $order->orderProduct; $ids = array_column($products->toArray(), 'order_product_id'); @@ -137,12 +146,12 @@ class StoreRefundOrderRepository extends BaseRepository $total_extension_one = bcadd($total_extension_one, bcmul($product['refund_num'], $product['extension_one'], 2), 2); if ($product['extension_two'] > 0) $total_extension_two = bcadd($total_extension_two, bcmul($product['refund_num'], $product['extension_two'], 2), 2); - $postagePrice = !$order->status ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; + $postagePrice = ($refund_postage || !$order->status || $order->status == 9) ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; $totalRefundNum += $product['refund_num']; $refundPrice = 0; //计算可退金额 if ($product['product_price'] > 0) { - $refundPrice = bcsub($product['product_price'], $productRefundPrice['refund_price'] ?? 0, 2); + $refundPrice = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0, $productRefundPrice['refund_postage'] ?? 0, 2), 2); } $platform_refund_price = 0; //计算退的平台优惠券金额 @@ -204,7 +213,7 @@ class StoreRefundOrderRepository extends BaseRepository $totalRefundPrice = 0; foreach ($products as $product) { $productRefundPrice = $productRefundPrices[$product['order_product_id']] ?? []; - $postagePrice = !$order->status ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; + $postagePrice = (!$order->status || $order->status == 9) ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; $refundPrice = 0; if ($product['product_price'] > 0) { $refundPrice = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0,$productRefundPrice['refund_postage']??0 ,2), 2); @@ -220,9 +229,8 @@ class StoreRefundOrderRepository extends BaseRepository $productRefundPrices = app()->make(StoreRefundProductRepository::class)->userRefundPrice($products->column('order_product_id')); $product = $products[0]; $productRefundPrice = $productRefundPrices[$product['order_product_id']] ?? []; - $price = bcmul(bcdiv($product['product_price'],$product['product_num'], 2),$product['refund_num'],2); - $total_refund_price = bcsub($price, $product['refund_price'], 2); - $postage_price = !$order->status ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; + $total_refund_price = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0, $productRefundPrice['refund_postage'] ?? 0, 2), 2); + $postage_price = (!$order->status || $order->status == 9) ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; return compact('total_refund_price', 'postage_price'); } @@ -261,12 +269,12 @@ class StoreRefundOrderRepository extends BaseRepository $total_extension_one = bcadd($total_extension_one, bcmul($product['refund_num'], $product['extension_one'], 2), 2); if ($product['extension_two'] > 0) $total_extension_two = bcadd($total_extension_two, bcmul($product['refund_num'], $product['extension_two'], 2), 2); - $postagePrice = !$order->status ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; + $postagePrice = (!$order->status || $order->status == 9) ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; $totalRefundNum += $product['refund_num']; $refundPrice = 0; //计算可退金额 if ($product['product_price'] > 0) { - $refundPrice = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0,$productRefundPrice['refund_postage']??0) , 2); + $refundPrice = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0, $productRefundPrice['refund_postage'] ?? 0, 2), 2); } $platform_refund_price = 0; //计算退的平台优惠券金额 @@ -324,12 +332,7 @@ class StoreRefundOrderRepository extends BaseRepository public function applyRefundAfter($refund, $order) { event('refund.create', compact('refund', 'order')); - $tempData = ['tempCode' => 'ORDER_REFUND_STATUS', 'id' => $refund->refund_order_id]; - Queue::push(SendTemplateMessageJob::class, $tempData); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'ADMIN_RETURN_GOODS_CODE', - 'id' => $refund->refund_order_id - ]); + Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_RETURN_GOODS_CODE', 'id' => $refund->refund_order_id]); SwooleTaskService::merchant('notice', [ 'type' => 'new_refund_order', 'data' => [ @@ -366,13 +369,13 @@ class StoreRefundOrderRepository extends BaseRepository $productRefundPrice = app()->make(StoreRefundProductRepository::class)->userRefundPrice([$productId])[$productId] ?? []; //计算可退运费 - $postagePrice = !$order->status ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; + $postagePrice = (!$order->status || $order->status == 9) ? bcsub($product['postage_price'], $productRefundPrice['refund_postage'] ?? 0, 2) : 0; $refundPrice = 0; //计算可退金额 if ($product['product_price'] > 0) { if ($product['refund_num'] == $num) { - $refundPrice = bcsub($product['product_price'], $productRefundPrice['refund_price'] ?? 0, 2); + $refundPrice = bcsub($product['product_price'], bcsub($productRefundPrice['refund_price'] ?? 0, $productRefundPrice['refund_postage'] ?? 0, 2), 2); } else { $refundPrice = bcmul(bcdiv($product['product_price'], $product['product_num'], 2), $num, 2); } @@ -471,7 +474,7 @@ class StoreRefundOrderRepository extends BaseRepository */ public function getList(array $where, int $page, int $limit) { - $query = $this->dao->search($where)->where('is_system_del', 0)->with([ + $query = $this->dao->search($where)->where('is_system_del', 0)->where('status','<>',-2)->with([ 'order' => function ($query) { $query->field('order_id,order_sn,activity_type,real_name,user_address,status,order_type,is_del'); }, @@ -513,7 +516,7 @@ class StoreRefundOrderRepository extends BaseRepository public function getAdminList(array $where, int $page, int $limit) { - $query = $this->dao->search($where)->with(['order' => function ($query) { + $query = $this->dao->search($where)->where('status','<>',-2)->with(['order' => function ($query) { $query->field('order_id,order_sn,activity_type'); }, 'refundProduct.product', 'user' => function ($query) { $query->field('uid,nickname,phone'); @@ -760,14 +763,9 @@ class StoreRefundOrderRepository extends BaseRepository $this->dao->update($id, $data); $refund = $res; event('refund.refuse',compact('id','refund')); - $tempData = ['tempCode' => 'ORDER_REFUND_NOTICE', 'id' => $id]; - Queue::push(SendTemplateMessageJob::class, $tempData); $statusRepository = app()->make(StoreRefundStatusRepository::class); $statusRepository->status($id, $statusRepository::CHANGE_REFUND_REFUSE, '订单退款已拒绝'); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'REFUND_FAIL_CODE', - 'id' => $id - ]); + Queue::push(SendSmsJob::class, ['tempId' => 'REFUND_FAIL_CODE', 'id' => $id]); }); } @@ -801,12 +799,7 @@ class StoreRefundOrderRepository extends BaseRepository $data['status'] = 1; $statusRepository = app()->make(StoreRefundStatusRepository::class); $statusRepository->status($id, $statusRepository::CHANGE_REFUND_AGREE, '退款申请已通过,请将商品寄回'); - $tempData = ['tempCode' => 'ORDER_REFUND_NOTICE', 'id' => $id]; - Queue::push(SendTemplateMessageJob::class, $tempData); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'REFUND_SUCCESS_CODE', - 'id' => $id - ]); + Queue::push(SendSmsJob::class, ['tempId' => 'REFUND_SUCCESS_CODE', 'id' => $id]); } $data['status_time'] = date('Y-m-d H:i:s'); $this->dao->update($id, $data); @@ -995,12 +988,7 @@ class StoreRefundOrderRepository extends BaseRepository if ($refundAll) { $refundOrder->order->status = -1; } - $tempData = ['tempCode' => 'ORDER_REFUND_END', 'id' => $refundOrder->refund_order_id]; - Queue::push(SendTemplateMessageJob::class, $tempData); - Queue::push(SendSmsJob::class, [ - 'tempId' => 'REFUND_CONFORM_CODE', - 'id' => $refundOrder->refund_order_id - ]); + Queue::push(SendSmsJob::class, ['tempId' => 'REFUND_CONFORM_CODE', 'id' => $refundOrder->refund_order_id]); $this->descBrokerage($refundOrder); //退回平台优惠 @@ -1012,12 +1000,13 @@ class StoreRefundOrderRepository extends BaseRepository } else { app()->make(MerchantRepository::class)->subLockMoney($refundOrder->mer_id, 'order', $refundOrder->order->order_id, $refundOrder->platform_refund_price); } + $isVipCoupon = app()->make(StoreGroupOrderRepository::class)->isVipCoupon($refundOrder->order->groupOrder); app()->make(FinancialRecordRepository::class)->dec([ 'order_id' => $refundOrder->refund_order_id, 'order_sn' => $refundOrder->refund_order_sn, 'user_info' => $refundOrder->user->nickname, 'user_id' => $refundOrder->uid, - 'financial_type' => 'refund_platform_coupon', + 'financial_type' => $isVipCoupon ? 'refund_svip_coupon' : 'refund_platform_coupon', 'type' => 1, 'number' => $refundOrder->platform_refund_price, ], $refundOrder->mer_id); @@ -1469,4 +1458,26 @@ class StoreRefundOrderRepository extends BaseRepository return $data; } + + /** + * TODO 用户取消退款单申请 + * @param int $id + * @param $user + * @author Qinii + * @day 2022/11/18 + */ + public function cancel(int $id, $user) + { + //状态 0:待审核 -1:审核未通过 1:待退货 2:待收货 3:已退款 + $res = $this->dao->getWhere(['refund_order_id' => $id, 'uid' => $user->uid],'*', ['refundProduct.product']); + if (!$res) throw new ValidateException('数据不存在'); + if (!in_array($res['status'],[self::REFUND_STATUS_WAIT, self::REFUND_STATUS_BACK])) + throw new ValidateException('当前状态不可取消'); + Db::transaction(function () use ($id, $res) { + $this->getProductRefundNumber($res, -1); + $this->dao->update($id, ['status_time' => date('Y-m-d H:i:s'), 'status' => self::REFUND_STATUS_CANCEL]); + $statusRepository = app()->make(StoreRefundStatusRepository::class); + $statusRepository->status($id, $statusRepository::CHANGE_REFUND_CANCEL, '用户取消退款'); + }); + } } diff --git a/app/common/repositories/store/order/StoreRefundStatusRepository.php b/app/common/repositories/store/order/StoreRefundStatusRepository.php index 30de0b8e..899f58f7 100644 --- a/app/common/repositories/store/order/StoreRefundStatusRepository.php +++ b/app/common/repositories/store/order/StoreRefundStatusRepository.php @@ -38,6 +38,8 @@ class StoreRefundStatusRepository extends BaseRepository const CHANGE_REFUND_PRICE = 'refund_price'; //订单退款已拒绝 const CHANGE_REFUND_REFUSE = 'refund_refuse'; + //用户取消退款 + const CHANGE_REFUND_CANCEL = 'refund_cancel'; /** * StoreRefundStatusRepository constructor. * @param StoreRefundStatusDao $dao diff --git a/app/common/repositories/store/product/ProductAssistRepository.php b/app/common/repositories/store/product/ProductAssistRepository.php index b93541ea..185637e3 100644 --- a/app/common/repositories/store/product/ProductAssistRepository.php +++ b/app/common/repositories/store/product/ProductAssistRepository.php @@ -17,7 +17,6 @@ use app\common\model\store\product\ProductLabel; use app\common\repositories\BaseRepository; use app\common\repositories\store\order\StoreOrderProductRepository; use app\common\repositories\store\order\StoreOrderRepository; -use crmeb\jobs\ChangeSpuStatusJob; use crmeb\services\SwooleTaskService; use think\exception\ValidateException; use think\facade\Db; @@ -285,7 +284,10 @@ class ProductAssistRepository extends BaseRepository $where = $this->dao->assistShow(); $where[$this->dao->getPk()] = $id; $data = $this->dao->search($where)->append(['assist_status'])->find(); - if(!$data) throw new ValidateException('商品已下架'); + if(!$data) { + app()->make(SpuRepository::class)->changeStatus($id,3); + throw new ValidateException('商品已下架'); + } $make = app()->make(ProductRepository::class); $data['product'] = $make->apiProductDetail(['product_id' => $data['product_id']],3,$id); $data['product']['store_name'] = $data['store_name']; @@ -367,8 +369,8 @@ class ProductAssistRepository extends BaseRepository $productAssist->is_del = 1; $productAssist->save(); event('product.assistDelete',compact('productAssist')); - queue(ChangeSpuStatusJob::class, ['id' => $productAssist[$this->getPk()], 'product_type' => 3]); - //app()->make(SpuRepository::class)->changeStatus($data[$this->getPk()],3); +// queue(ChangeSpuStatusJob::class, ['id' => $productAssist[$this->getPk()], 'product_type' => 3]); + app()->make(SpuRepository::class)->changeStatus($productAssist[$this->getPk()],3); }); } @@ -485,4 +487,27 @@ class ProductAssistRepository extends BaseRepository return $make->updateSort($ret['product_id'],$ret[$this->dao->getPk()],3,$data); } + public function switchStatus($id, $data) + { + $data['product_status'] = $data['status']; + $ret = $this->dao->get($id); + if (!$ret) + throw new ValidateException('数据不存在'); + event('product.assistStatus.before', compact('id', 'data')); + $this->dao->update($id, $data); + event('product.assistStatus', compact('id', 'data')); + + $type = ProductRepository::NOTIC_MSG[$data['status']][3]; + $message = '您有1个助力'. ProductRepository::NOTIC_MSG[$data['status']]['msg']; + SwooleTaskService::merchant('notice', [ + 'type' => $type, + 'data' => [ + 'title' => $data['status'] == -2 ? '下架提醒' : '审核结果', + 'message' => $message, + 'id' => $id[0] + ] + ], $ret->mer_id); + app()->make(SpuRepository::class)->changeStatus($id,3); + } + } diff --git a/app/common/repositories/store/product/ProductAttrValueRepository.php b/app/common/repositories/store/product/ProductAttrValueRepository.php index 449a39d6..477b604b 100644 --- a/app/common/repositories/store/product/ProductAttrValueRepository.php +++ b/app/common/repositories/store/product/ProductAttrValueRepository.php @@ -79,4 +79,6 @@ class ProductAttrValueRepository extends BaseRepository { return $this->dao->getFieldExists(null,'unique',$unique)->find(); } + + } diff --git a/app/common/repositories/store/product/ProductCopyRepository.php b/app/common/repositories/store/product/ProductCopyRepository.php index c4c7cdb8..04b59dea 100644 --- a/app/common/repositories/store/product/ProductCopyRepository.php +++ b/app/common/repositories/store/product/ProductCopyRepository.php @@ -13,6 +13,8 @@ namespace app\common\repositories\store\product; use app\common\repositories\BaseRepository; +use app\common\repositories\system\attachment\AttachmentCategoryRepository; +use app\common\repositories\system\attachment\AttachmentRepository; use app\common\repositories\system\merchant\MerchantRepository; use crmeb\services\CopyProductService; use crmeb\services\CrmebServeServices; @@ -20,14 +22,16 @@ use crmeb\services\DownloadImageService; use Exception; use think\exception\ValidateException; use app\common\dao\store\product\ProductCopyDao; +use think\facade\Cache; use think\facade\Db; class ProductCopyRepository extends BaseRepository { protected $host = ['taobao', 'tmall', 'jd', 'pinduoduo', 'suning', 'yangkeduo','1688']; - + protected $AttachmentCategoryName = '远程下载'; protected $dao; - + protected $updateImage = ['image', 'slider_image']; + protected $AttachmentCategoryPath = 'copy'; /** * ProductRepository constructor. * @param dao $dao @@ -37,132 +41,212 @@ class ProductCopyRepository extends BaseRepository $this->dao = $dao; } - public function copyProduct(array $data,?int $merId) + public function getProduct($url,$merId) { - $type = $data['type']; - $id = $data['id']; - $shopid = $data['shopid']; - $url = $data['url']; - $apikey = systemConfig('copy_product_apikey'); - if ((!$type || !$id) && $url) { - $url_arr = parse_url($url); - if (isset($url_arr['host'])) { - foreach ($this->host as $name) { - if (strpos($url_arr['host'], $name) !== false) { - $type = $name; - } - } - } - $type = ($type == 'pinduoduo' || $type == 'yangkeduo') ? 'pdd' : $type; - try{ - switch ($type) { - case 'taobao': - case 'tmall': - $params = []; - if (isset($url_arr['query']) && $url_arr['query']) { - $queryParts = explode('&', $url_arr['query']); - foreach ($queryParts as $param) { - $item = explode('=', $param); - if (isset($item[0]) && $item[1]) $params[$item[0]] = $item[1]; - } - } - $id = $params['id'] ?? ''; - break; - case 'jd': - $params = []; - if (isset($url_arr['path']) && $url_arr['path']) { - $path = str_replace('.html', '', $url_arr['path']); - $params = explode('/', $path); - } - $id = $params[1] ?? ''; - break; - case 'pdd': - $params = []; - if (isset($url_arr['query']) && $url_arr['query']) { - $queryParts = explode('&', $url_arr['query']); - foreach ($queryParts as $param) { - $item = explode('=', $param); - if (isset($item[0]) && $item[1]) $params[$item[0]] = $item[1]; - } - } - $id = $params['goods_id'] ?? ''; - break; - case 'suning': - $params = []; - if (isset($url_arr['path']) && $url_arr['path']) { - $path = str_replace('.html', '', $url_arr['path']); - $params = explode('/', $path); - } - $id = $params[2] ?? ''; - $shopid = $params[1] ?? ''; - break; - case '1688': - $params = []; - if (isset($url_arr['query']) && $url_arr['query']) { - $path = str_replace('.html', '', $url_arr['path']); - $params = explode('/', $path); - } - $id = $params[2] ?? ''; - $shopid = $params[1] ?? ''; - $type = 'alibaba'; - break; + $key = $merId.'_url_'.$url; - } - }catch (Exception $exception){ - throw new ValidateException('url有误'); - } - } - $result = CopyProductService::getInfo($type, ['itemid' => $id, 'shopid' => $shopid], $apikey); - if ($result) { - $this->add([ - 'type' => $data['type']?: 'copy', - 'num' => -1, - 'info' => $data['url'], - 'message' => '复制商品「'.$result['data']['store_name'] .'」' - ],$merId); - return ['info' => $result['data']]; + if ($result= Cache::get($key)) return $result; + if (systemConfig('copy_product_status') == 2) { + $resultData['data'] = app()->make(CrmebServeServices::class)->copy()->goods($url); + $resultData['status'] = 200; } else { - throw new ValidateException($result['msg']); + $resultData = $this->useApi($url); + } + if ($resultData['status']) { + $result = $this->getParamsData($resultData['data']); + + Cache::set($key,$result); + $this->add(['type' => 'copy', 'num' => 1, 'info' => $url , 'mer_id'=> $merId, 'message' => '采集商品',],$merId); + return $result; + } else { + throw new ValidateException('采集失败,请更换链接重试!'); } } /** - * TODO 一号通复制 - * @param array $data - * @param int|null $merId + * TODO 99api采集 + * @param $url * @return array * @author Qinii - * @day 7/27/21 + * @day 2022/11/11 */ - public function crmebCopyProduct(array $data,?int $merId) + public function useApi($url) { - $result = app()->make(CrmebServeServices::class)->copy()->goods($data['url']); - - if ($result) { - $this->add([ - 'type' => 'copy', - 'num' => -1, - 'info' => $data['url'], - 'message' => '复制商品「'.$result['store_name'] .'」' - ],$merId); - } - - if (!is_array($result['slider_image'])){ - $result['slider_image'] = json_decode($result['slider_image']); - } - if ($result['items']) { - foreach ($result['items'] as $k => $item) { - if ($item['value'] == '') unset($result['items'][$k]); + $apikey = systemConfig('copy_product_apikey'); + if (!$apikey) throw new ValidateException('请前往平台后台-设置-第三方接口-配置接口密钥'); + $url_arr = parse_url($url); + if (isset($url_arr['host'])) { + foreach ($this->host as $name) { + if (strpos($url_arr['host'], $name) !== false) { + $type = $name; + } } - $result['spec_type'] = 1; - $result['info'] = app()->make(CopyProductService::class)->formatAttr($result['items']); - }else{ - $result['spec_type'] = 0; - $result['info'] = null; } + $type = ($type == 'pinduoduo' || $type == 'yangkeduo') ? 'pdd' : $type; + try{ + switch ($type) { + case 'taobao': + case 'tmall': + $params = []; + if (isset($url_arr['query']) && $url_arr['query']) { + $queryParts = explode('&', $url_arr['query']); + foreach ($queryParts as $param) { + $item = explode('=', $param); + if (isset($item[0]) && $item[1]) $params[$item[0]] = $item[1]; + } + } + $id = $params['id'] ?? ''; + break; + case 'jd': + $params = []; + if (isset($url_arr['path']) && $url_arr['path']) { + $path = str_replace('.html', '', $url_arr['path']); + $params = explode('/', $path); + } + $id = $params[1] ?? ''; + break; + case 'pdd': + $params = []; + if (isset($url_arr['query']) && $url_arr['query']) { + $queryParts = explode('&', $url_arr['query']); + foreach ($queryParts as $param) { + $item = explode('=', $param); + if (isset($item[0]) && $item[1]) $params[$item[0]] = $item[1]; + } + } + $id = $params['goods_id'] ?? ''; + break; + case 'suning': + $params = []; + if (isset($url_arr['path']) && $url_arr['path']) { + $path = str_replace('.html', '', $url_arr['path']); + $params = explode('/', $path); + } + $id = $params[2] ?? ''; + $shopid = $params[1] ?? ''; + break; + case '1688': + $params = []; + if (isset($url_arr['query']) && $url_arr['query']) { + $path = str_replace('.html', '', $url_arr['path']); + $params = explode('/', $path); + } + $id = $params[2] ?? ''; + $shopid = $params[1] ?? ''; + $type = 'alibaba'; + break; - return ['info' => $result]; + } + }catch (Exception $exception){ + throw new ValidateException('url有误'); + } + $result = CopyProductService::getInfo($type, ['itemid' => $id, 'shopid' => $shopid ?? ''], $apikey); + return $result; } + + /** + * TODO 整理参数 + * @param $data + * @return array + * @author Qinii + * @day 2022/11/11 + * + */ + public function getParamsData($data) + { + if(!is_array($data['slider_image'])) $data['slider_image'] = json_decode($data['slider_image']); + $params = ProductRepository::CREATE_PARAMS; + foreach ($params as $param) { + if (is_array($param)) { + $res[$param[0]] = $param[1]; + } else { + $res[$param] = $data[$param] ?? ''; + } + if (in_array($param,$this->updateImage)) { + $res[$param] = $this->getImageByUrl($data[$param]); + } + } + $res['attr'] = $data['items'] ?? $data['info']['attr']; + $res['spec_type'] = count($res['attr']) ? '1' : '0'; + $res['content'] = $this->getDescriptionImage($data['description_image'] ?? $data['description_images'],$data['description']); + return $res; + } + + /** + * TODO 替换详情页的图片地址 + * @param $images + * @param $html + * @return mixed|string|string[]|null + * @author Qinii + * @day 2022/11/11 + */ + public function getDescriptionImage($images, $html) + { + preg_match_all('#]*>#i', $html, $match); + if (isset($match[1])) { + foreach ($match[1] as $item) { + $uploadValue = $this->getImageByUrl($item); + //下载成功更新数据库 + if ($uploadValue) { + //替换图片 + $html = str_replace($item, $uploadValue, $html); + } else { + //替换掉没有下载下来的图片 + $html = preg_replace('##i', '', $html); + } + } + } + return $html; + } + + /** + * TODO 根据url下载图片 + * @param $data + * @return array|mixed|string + * @author Qinii + * @day 2022/11/11 + */ + public function getImageByUrl($data) + { + $merId = request()->merId(); + $category = app()->make( AttachmentCategoryRepository::class)->findOrCreate([ + 'attachment_category_enname' => $this->AttachmentCategoryPath, + 'attachment_category_name' => $this->AttachmentCategoryName, + 'mer_id' => $merId, + 'pid' => 0, + ]); + $make = app()->make(AttachmentRepository::class); + $serve = app()->make(DownloadImageService::class); + $type = systemConfig('upload_type'); + if (is_array($data)) { + foreach ($data as $datum) { + $arcurl = is_int(strpos($datum, 'http')) ? $datum : 'http://' . ltrim( $datum, '\//'); + $image = $serve->downloadImage($arcurl,$this->AttachmentCategoryPath); + $dir = $type == 1 ? rtrim(systemConfig('site_url'), '/').$image['path'] : $image['path']; + $data = [ + 'attachment_category_id' => $category->attachment_category_id, + 'attachment_name' => $image['name'], + 'attachment_src' => $dir + ]; + $make->create($type,$merId, request()->adminId(), $data); + $res[] = $dir; + } + } else { + $arcurl = is_int(strpos($data, 'http')) ? $data : 'http://' . ltrim( $data, '\//'); + $image = $serve->downloadImage($arcurl,$this->AttachmentCategoryPath); + $dir = $type == 1 ? rtrim(systemConfig('site_url'), '/').$image['path'] : $image['path']; + $data = [ + 'attachment_category_id' => $category->attachment_category_id, + 'attachment_name' => $image['name'], + 'attachment_src' => $dir + ]; + $make->create($type,$merId, request()->adminId(), $data); + $res = $dir; + } + return $res; + } + + /** * TODO 添加记录并修改数据 * @param $data @@ -183,21 +267,11 @@ class ProductCopyRepository extends BaseRepository break; case 'sys': //nobreak; - case 'taobao': - //nobreak; - case 'jd': //nobreak; case 'pay_copy': //nobreak; case 'copy': //nobreak; - case 'suning': - //nobreak; - case 'pdd': - //nobreak; - case '1688': - //nobreak; - case 'tmall': $field = 'copy_product_num'; break; default: @@ -254,24 +328,4 @@ class ProductCopyRepository extends BaseRepository $list = $query->page($page,$limit)->select(); return compact('count','list'); } - - /** - * 保存复制商品 - * @Author:Qinii - * @Date: 2020/10/9 - * @param array $data - */ - public function create(array $data) - { - $serve = app()->make(DownloadImageService::class); - if (is_int(strpos( $data['image'], 'http'))) - $arcurl = $data['image']; - else - $arcurl = 'http://' . ltrim( $data['image'], '\//'); - $image = $serve->downloadImage($arcurl,'',systemConfig('upload_type')); - $data['image'] = systemConfig('upload_type') == 1 ? rtrim(systemConfig('site_url'), '/').$image['path'] : $image['path']; - app()->make(ProductRepository::class)->create($data, 0); - } - - } diff --git a/app/common/repositories/store/product/ProductGroupBuyingRepository.php b/app/common/repositories/store/product/ProductGroupBuyingRepository.php index 5ff33e58..420e473f 100644 --- a/app/common/repositories/store/product/ProductGroupBuyingRepository.php +++ b/app/common/repositories/store/product/ProductGroupBuyingRepository.php @@ -17,7 +17,7 @@ use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\order\StoreRefundOrderRepository; use app\common\repositories\user\UserRepository; use crmeb\jobs\CancelGroupBuyingJob; -use crmeb\jobs\SendTemplateMessageJob; +use crmeb\jobs\SendSmsJob; use think\exception\ValidateException; use think\facade\Db; use think\facade\Queue; @@ -193,7 +193,7 @@ class ProductGroupBuyingRepository extends BaseRepository $productGroupUserRepository->updateStatus($res['group_buying_id']); $orderIds = $productGroupUserRepository->groupOrderIds($res['group_buying_id']); app()->make(StoreOrderRepository::class)->groupBuyingStatus($orderIds, 0); - Queue(SendTemplateMessageJob::class,['tempCode' => 'GROUP_BUYING_SUCCESS', 'id' =>$res->group_buying_id]); + Queue::push(SendSmsJob::class,['tempId' => 'USER_BALANCE_CHANGE', 'id' => $res->group_buying_id]); } diff --git a/app/common/repositories/store/product/ProductGroupRepository.php b/app/common/repositories/store/product/ProductGroupRepository.php index 216ae48e..e93092b5 100644 --- a/app/common/repositories/store/product/ProductGroupRepository.php +++ b/app/common/repositories/store/product/ProductGroupRepository.php @@ -16,7 +16,6 @@ use app\common\dao\store\product\ProductGroupDao; use app\common\repositories\store\order\StoreOrderProductRepository; use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\StoreCategoryRepository; -use crmeb\jobs\ChangeSpuStatusJob; use crmeb\services\SwooleTaskService; use think\exception\ValidateException; use think\facade\Db; @@ -377,7 +376,7 @@ class ProductGroupRepository extends BaseRepository } ])->hidden(['ficti_status','ficti_num','refusal','is_del'])->find(); if(!$data) { - queue(ChangeSpuStatusJob::class,['id' => $id,'product_type' => 4]); + app()->make(SpuRepository::class)->changeStatus($id,4); throw new ValidateException('商品已下架或不在活动时间内'); } @@ -472,4 +471,27 @@ class ProductGroupRepository extends BaseRepository return $make->updateSort($ret['product_id'],$ret[$this->dao->getPk()],4,$data); } + public function switchStatus($id, $data) + { + $data['product_status'] = $data['status']; + $ret = $this->dao->get($id); + if (!$ret) + throw new ValidateException('数据不存在'); + event('product.groupStatus.before', compact('id', 'data')); + $this->dao->update($id, $data); + event('product.groupStatus', compact('id', 'data')); + + $type = ProductRepository::NOTIC_MSG[$data['status']][4]; + $message = '您有1个拼团'. ProductRepository::NOTIC_MSG[$data['status']]['msg']; + SwooleTaskService::merchant('notice', [ + 'type' => $type, + 'data' => [ + 'title' => $data['status'] == -2 ? '下架提醒' : '审核结果', + 'message' => $message, + 'id' => $id[0] + ] + ], $ret->mer_id); + app()->make(SpuRepository::class)->changeStatus($id,4); + } + } diff --git a/app/common/repositories/store/product/ProductGroupUserRepository.php b/app/common/repositories/store/product/ProductGroupUserRepository.php index 91b36514..ebe9c809 100644 --- a/app/common/repositories/store/product/ProductGroupUserRepository.php +++ b/app/common/repositories/store/product/ProductGroupUserRepository.php @@ -12,6 +12,8 @@ namespace app\common\repositories\store\product; use app\common\repositories\BaseRepository; use app\common\dao\store\product\ProductGroupUserDao; +use crmeb\services\LockService; +use think\exception\ValidateException; class ProductGroupUserRepository extends BaseRepository { @@ -19,14 +21,14 @@ class ProductGroupUserRepository extends BaseRepository /** * ProductGroupRepository constructor. - * @param ProductGroupDao $dao + * @param ProductGroupUserDao $dao */ public function __construct(ProductGroupUserDao $dao) { $this->dao = $dao; } - public function create($userInfo,$data) + public function create($userInfo, $data) { $_where = [ 'product_group_id' => $data['product_group_id'], @@ -34,28 +36,22 @@ class ProductGroupUserRepository extends BaseRepository 'uid' => $userInfo->uid, ]; $user = $this->getWhere($_where); - if($user){ + if ($user) { throw new ValidateException('您已经参加过此团'); - }else{ - $data = [ - 'product_group_id' => $data['product_group_id'], - 'group_buying_id' => $data['group_buying_id'], - 'is_initiator' => $data['is_initiator'], - 'order_id' => $data['order_id'], - 'uid' => $userInfo->uid, - 'nickname'=> $userInfo->nickname, - 'avatar' => $userInfo->avatar, - ]; - makeLock('group_buying')->lock(); - try{ - $user = $this->dao->create($data); - }catch (\Exception $exception){ - makeLock('group_buying')->unlock(); - } - makeLock('group_buying')->unlock(); - } - return $user; + + $data = [ + 'product_group_id' => $data['product_group_id'], + 'group_buying_id' => $data['group_buying_id'], + 'is_initiator' => $data['is_initiator'], + 'order_id' => $data['order_id'], + 'uid' => $userInfo->uid, + 'nickname' => $userInfo->nickname, + 'avatar' => $userInfo->avatar, + ]; + return app()->make(LockService::class)->exec('order.group_buying', function () use ($data) { + $this->dao->create($data); + }); } /** diff --git a/app/common/repositories/store/product/ProductPresellRepository.php b/app/common/repositories/store/product/ProductPresellRepository.php index 3e4a03a5..4a614daa 100644 --- a/app/common/repositories/store/product/ProductPresellRepository.php +++ b/app/common/repositories/store/product/ProductPresellRepository.php @@ -17,7 +17,6 @@ use app\common\model\store\product\ProductLabel; use app\common\repositories\BaseRepository; use app\common\repositories\store\order\StoreOrderProductRepository; use app\common\repositories\store\order\StoreOrderRepository; -use crmeb\jobs\ChangeSpuStatusJob; use crmeb\services\SwooleTaskService; use think\exception\ValidateException; use think\facade\Db; @@ -287,8 +286,7 @@ class ProductPresellRepository extends BaseRepository $where['product_presell_id'] = $id; $data = $this->dao->search($where)->append(['presell_status', 'tattend_one', 'tattend_two', 'seles'])->find(); if (!$data){ - //app()->make(SpuRepository::class)->changeStatus($id,2); - queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => 2]); + app()->make(SpuRepository::class)->changeStatus($id,2); throw new ValidateException('商品已下架'); } if ($data['pay_count'] && $userInfo->uid) { @@ -411,8 +409,7 @@ class ProductPresellRepository extends BaseRepository $data->product->save(); $productPresell = $data; event('product.presellDelete',compact('productPresell')); - queue(ChangeSpuStatusJob::class, ['id' => $data[$this->getPk()], 'product_type' => 2]); - //app()->make(SpuRepository::class)->changeStatus($data[$this->getPk()],2); + app()->make(SpuRepository::class)->changeStatus($data[$this->getPk()],2); }); } @@ -521,4 +518,27 @@ class ProductPresellRepository extends BaseRepository $make = app()->make(SpuRepository::class); return $make->updateSort($ret['product_id'], $id, 2, $data); } + + public function switchStatus($id, $data) + { + $data['product_status'] = $data['status']; + $ret = $this->dao->get($id); + if (!$ret) + throw new ValidateException('数据不存在'); + event('product.presellStatus.before', compact('id', 'data')); + $this->dao->update($id, $data); + event('product.presellStatus', compact('id', 'data')); + + $type = ProductRepository::NOTIC_MSG[$data['status']][2]; + $message = '您有1个预售'. ProductRepository::NOTIC_MSG[$data['status']]['msg']; + SwooleTaskService::merchant('notice', [ + 'type' => $type, + 'data' => [ + 'title' => $data['status'] == -2 ? '下架提醒' : '审核结果', + 'message' => $message, + 'id' => $id[0] + ] + ], $ret->mer_id); + app()->make(SpuRepository::class)->changeStatus($id,2); + } } diff --git a/app/common/repositories/store/product/ProductReplyRepository.php b/app/common/repositories/store/product/ProductReplyRepository.php index 35a57678..0fc9fac4 100644 --- a/app/common/repositories/store/product/ProductReplyRepository.php +++ b/app/common/repositories/store/product/ProductReplyRepository.php @@ -87,7 +87,6 @@ class ProductReplyRepository extends BaseRepository $count = 0; $list = []; } else { - $query = $this->dao->search($where)->where('is_del', 0) ->when($where['type'] !== '', function ($query) use ($where) { $query->where($this->switchType($where['type'])); @@ -99,6 +98,13 @@ class ProductReplyRepository extends BaseRepository $count = $query->count(); $list = $query->page($page, $limit)->hidden(['is_virtual'])->select()->each(function ($item) { $item['sku'] = $item['orderProduct']['cart_info']['productAttr']['sku'] ?? ''; + if (mb_strlen($item['nickname']) > 1) { + $str = mb_substr($item['nickname'],0,1) . '*'; + if (mb_strlen($item['nickname']) > 2) { + $str .= mb_substr($item['nickname'], -1,1); + } + $item['nickname'] = $str; + } unset($item['orderProduct']); return $item; }); diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 478ed4c9..d10d61dc 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -23,12 +23,16 @@ use app\common\repositories\store\GuaranteeValueRepository; use app\common\repositories\store\order\StoreCartRepository; use app\common\repositories\store\order\StoreOrderProductRepository; use app\common\repositories\store\order\StoreOrderRepository; +use app\common\repositories\store\parameter\ParameterValueRepository; use app\common\repositories\store\StoreActivityRepository; use app\common\repositories\store\StoreSeckillActiveRepository; use app\common\repositories\store\StoreSeckillTimeRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\user\UserRelationRepository; use app\common\repositories\user\UserVisitRepository; +use app\validate\merchant\StoreProductValidate; +use crmeb\jobs\ChangeSpuStatusJob; +use crmeb\jobs\SendSmsJob; use crmeb\services\QrcodeService; use crmeb\services\RedisCacheService; use crmeb\services\SwooleTaskService; @@ -41,8 +45,8 @@ use app\common\dao\store\product\ProductDao as dao; use app\common\repositories\store\StoreCategoryRepository; use app\common\repositories\store\shipping\ShippingTemplateRepository; use app\common\repositories\store\StoreBrandRepository; +use think\facade\Queue; use think\facade\Route; -use crmeb\jobs\ChangeSpuStatusJob; use think\contract\Arrayable; /** @@ -55,9 +59,48 @@ class ProductRepository extends BaseRepository { protected $dao; - protected $admin_filed = 'Product.product_id,Product.mer_id,brand_id,spec_type,unit_name,mer_status,rate,reply_count,store_info,cate_id,Product.image,slider_image,Product.store_name,Product.keyword,Product.sort,U.rank,Product.is_show,Product.sales,Product.price,extension_type,refusal,cost,ot_price,stock,is_gift_bag,Product.care_count,Product.status,is_used,Product.create_time,Product.product_type,old_product_id,star,ficti,integral_total,integral_price_total,sys_labels'; - protected $filed = 'Product.product_id,Product.mer_id,brand_id,unit_name,spec_type,mer_status,rate,reply_count,store_info,cate_id,Product.image,slider_image,Product.store_name,Product.keyword,Product.sort,Product.is_show,Product.sales,Product.price,extension_type,refusal,cost,ot_price,stock,is_gift_bag,Product.care_count,Product.status,is_used,Product.create_time,Product.product_type,old_product_id,integral_total,integral_price_total,mer_labels,Product.is_good,Product.is_del,type'; + const CREATE_PARAMS = [ + "image", "slider_image", "store_name", "store_info", "keyword", "bar_code", "guarantee_template_id", "cate_id", "mer_cate_id", "unit_name", "sort" , "is_show", "is_good", 'is_gift_bag', 'integral_rate', "video_link", "temp_id", "content", "spec_type", "extension_type", "attr", 'mer_labels', 'delivery_way', 'delivery_free','param_temp_id','extend', + ["brand_id",0], + ['once_max_count',0], + ['once_min_count',0], + ['pay_limit', 0], + ["attrValue",[]], + ['give_coupon_ids',[]], + ['type',0], + ['svip_price',0], + ['svip_price_type',0], + ['params',[]], + ]; + protected $admin_filed = 'Product.product_id,Product.mer_id,brand_id,spec_type,unit_name,mer_status,rate,reply_count,store_info,cate_id,Product.image,slider_image,Product.store_name,Product.keyword,Product.sort,U.rank,Product.is_show,Product.sales,Product.price,extension_type,refusal,cost,ot_price,stock,is_gift_bag,Product.care_count,Product.status,is_used,Product.create_time,Product.product_type,old_product_id,star,ficti,integral_total,integral_price_total,sys_labels,param_temp_id'; + protected $filed = 'Product.product_id,Product.mer_id,brand_id,unit_name,spec_type,mer_status,rate,reply_count,store_info,cate_id,Product.image,slider_image,Product.store_name,Product.keyword,Product.sort,Product.is_show,Product.sales,Product.price,extension_type,refusal,cost,ot_price,stock,is_gift_bag,Product.care_count,Product.status,is_used,Product.create_time,Product.product_type,old_product_id,integral_total,integral_price_total,mer_labels,Product.is_good,Product.is_del,type,param_temp_id'; + const NOTIC_MSG = [ + 1 => [ + '0' => 'product_success', + '1' => 'product_seckill_success', + '2' => 'product_presell_success', + '3' => 'product_assist_success', + '4' => 'product_group_success', + 'msg' => '审核通过' + ], + -1 => [ + '0' => 'product_fail', + '1' => 'product_seckill_fail', + '2' => 'product_presell_fail', + '3' => 'product_assist_fail', + '4' => 'product_group_fail', + 'msg' => '审核失败' + ], + -2 => [ + '0' => 'product_fail', + '1' => 'product_seckill_fail', + '2' => 'product_presell_fail', + '3' => 'product_assist_fail', + '4' => 'product_group_fail', + 'msg' => '被下架' + ], + ]; /** * ProductRepository constructor. * @param dao $dao @@ -172,41 +215,32 @@ class ProductRepository extends BaseRepository $data['attr'] = []; if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误'); } - return Db::transaction(function () use ($data, $productType,$conType) { - event('product.create.before', compact('data','productType','conType')); + $content = [ + 'content' => $conType ? json_encode($data['content']) : $data['content'] , + 'type' => $conType + ]; + $product = $this->setProduct($data); + event('product.create.before', compact('data','productType','conType')); + return Db::transaction(function () use ($data, $productType,$conType,$content,$product) { $activity_id = 0; - $product = $this->setProduct($data); $result = $this->dao->create($product); - $settleParams = $this->setAttrValue($data['attrValue'], $result->product_id, $productType, 0); + $settleParams = $this->setAttrValue($data, $result->product_id, $productType, 0); $settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $result->product_id, $data['mer_id']); $settleParams['attr'] = $this->setAttr($data['attr'], $result->product_id); - $content = [ - 'content' => $conType ? json_encode($data['content']) : $data['content'] , - 'type' => $conType - ]; + if ($productType ==0 ) app()->make(ParameterValueRepository::class)->create($result->product_id, $data['params'] ?? [],$data['mer_id']); $this->save($result->product_id, $settleParams, $content,$product,$productType); - if ($productType == 1) { //秒杀商品 - $dat = $this->setSeckillProduct($data); - $dat['product_id'] = $result->product_id; - $seckill = app()->make(StoreSeckillActiveRepository::class)->create($dat); - $activity_id = $seckill->seckill_active_id; - } if (in_array($productType, [0, 1])) { + if ($productType == 1) { //秒杀商品 + $dat = $this->setSeckillProduct($data); + $dat['product_id'] = $result->product_id; + $seckill = app()->make(StoreSeckillActiveRepository::class)->create($dat); + $activity_id = $seckill->seckill_active_id; + } $product['price'] = $settleParams['data']['price']; $product['mer_labels'] = $data['mer_labels']; app()->make(SpuRepository::class)->create($product, $result->product_id, $activity_id, $productType); } $product = $result; - if ($productType==0){ - $find=Db::name('merchant_address')->where('mer_id',$data['mer_id'])->find(); - if ($find && $find['street_id']!=0){ - $addsdata=[ - 'address_id'=>$find['street_id'], - 'product_id'=>$result->product_id - ]; - Db::name('merchant_address_product')->insert($addsdata); - } - } event('product.create',compact('product')); return $result->product_id; }); @@ -226,8 +260,7 @@ class ProductRepository extends BaseRepository } event('product.update.before', compact('id','data','merId','productType','conType')); $spuData = $product = $this->setProduct($data); - $settleParams = $this->setAttrValue($data['attrValue'], $id, $productType, 1); - + $settleParams = $this->setAttrValue($data, $id, $productType, 1); $settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId); $settleParams['attr'] = $this->setAttr($data['attr'], $id); $content = [ @@ -238,15 +271,20 @@ class ProductRepository extends BaseRepository $spuData['mer_id'] = $merId; $spuData['mer_labels'] = $data['mer_labels']; - Db::transaction(function () use ($id, $data, $productType, $settleParams,$content,$product,$spuData) { + Db::transaction(function () use ($id, $data, $productType, $settleParams,$content,$product,$spuData,$merId) { $this->save($id, $settleParams, $content, $product, $productType); if ($productType == 1) { //秒杀商品 $dat = $this->setSeckillProduct($data); app()->make(StoreSeckillActiveRepository::class)->updateByProduct($id, $dat); } + if ($productType == 0) { + $make = app()->make(ParameterValueRepository::class); + $make->clear($id, 'product_id'); + $make->create($id, $data['params'] ?? [], $merId); + } app()->make(SpuRepository::class)->baseUpdate($spuData, $id, 0, $productType); event('product.update',compact('id')); - Queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => $productType]); + app()->make(SpuRepository::class)->changeStatus($id, $productType); }); } @@ -256,19 +294,18 @@ class ProductRepository extends BaseRepository $data['attr'] = []; if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误'); } - $settleParams = $this->setAttrValue($data['attrValue'], $id, 0, 1); + $res = $this->dao->get($id); + $data['svip_price_type'] = $res['svip_price_type']; + $settleParams = $this->setAttrValue($data, $id, 0, 1); $settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId); $settleParams['attr'] = $this->setAttr($data['attr'], $id); $data['price'] = $settleParams['data']['price']; unset($data['attrValue'],$data['attr'],$data['mer_cate_id']); - $where = [ - 'product_id' => $id, - 'product_type' => 0, - ]; - $ret = app()->make(SpuRepository::class)->getSearch($where)->find(); + $ret = app()->make(SpuRepository::class)->getSearch(['product_id' => $id, 'product_type' => 0,])->find(); Db::transaction(function () use ($id, $data, $settleParams,$ret) { $this->save($id, $settleParams, null, [], 0); app()->make(SpuRepository::class)->update($ret->spu_id,['price' => $data['price']]); + Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]); }); } @@ -311,7 +348,7 @@ class ProductRepository extends BaseRepository } } if ($content){ - (app()->make(ProductContentRepository::class))->clearAttr($id,$content['type']); + app()->make(ProductContentRepository::class)->clearAttr($id,$content['type']); $this->dao->createContent($id, $content); } @@ -320,11 +357,15 @@ class ProductRepository extends BaseRepository $data['ot_price'] = $settleParams['data']['ot_price']; $data['cost'] = $settleParams['data']['cost']; $data['stock'] = $settleParams['data']['stock']; + $data['svip_price'] = $settleParams['data']['svip_price']; } - if(isset($data['status']) && $data['status']!== 1){ - $message = $productType ? '您有一个新的秒杀商品待审核':($data['is_gift_bag'] ? '您有一个新的礼包商品待审核' :'您有一个新的商品待审核' ); + $res = $this->dao->update($id, $data); + + if(isset($data['status']) && $data['status'] !== 1 ){ + $message = '您有1个新的'. ($productType ? '秒杀商品' : ($data['is_gift_bag'] ? '礼包商品' :'商品')) . '待审核'; + $type = $productType ? 'new_seckill' : ($data['is_gift_bag'] ? 'new_bag' :'new_product'); SwooleTaskService::admin('notice', [ - 'type' => $productType ? 'new_seckill' : ($data['is_gift_bag'] ? 'new_bag' :'new_product'), + 'type' => $type, 'data' => [ 'title' => '商品审核', 'message' => $message, @@ -332,9 +373,7 @@ class ProductRepository extends BaseRepository ] ]); } - - if($productType == 0) queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => 0]); - return $this->dao->update($id, $data); + return $res; } /** @@ -430,20 +469,20 @@ class ProductRepository extends BaseRepository 'once_min_count' => $data['once_min_count'] ?? 0, 'once_max_count' => $data['once_max_count'] ?? 0, 'pay_limit' => $data['pay_limit'] ?? 0, + 'svip_price_type' => $data['svip_price_type'] ?? 0, ]; if (isset($data['mer_id'])) $result['mer_id'] = $data['mer_id']; - if (isset($data['old_product_id'])){ + if (isset($data['old_product_id'])) $result['old_product_id'] = $data['old_product_id']; - } - if (isset($data['product_type'])) $result['product_type'] = $data['product_type']; if (isset($data['type']) && $data['type']) $result['type'] = $data['type']; + if (isset($data['param_temp_id'])) + $result['param_temp_id'] = $data['param_temp_id']; if (isset($data['extend'])) $result['extend'] = $data['extend'] ? json_encode($data['extend'], JSON_UNESCAPED_UNICODE) :[]; - return $result; } @@ -506,21 +545,17 @@ class ProductRepository extends BaseRepository */ public function setAttrValue(array $data, int $productId, int $productType, int $isUpdate = 0) { - $extension_status = systemConfig('extension_status'); if ($isUpdate) { $product = app()->make(ProductAttrValueRepository::class)->search(['product_id' => $productId])->select()->toArray(); $oldSku = $this->detailAttrValue($product, null); } - $price = $stock = $ot_price = $cost = 0; + $price = $stock = $ot_price = $cost = $svip_price = 0; try { - foreach ($data as $value) { + foreach ($data['attrValue'] as $value) { $sku = ''; - - if (isset($value['detail']) && !empty($value['detail'])) { - if (is_array($value['detail']) ){ - $sku = implode(',', $value['detail']); - } + if (isset($value['detail']) && !empty($value['detail']) && is_array($value['detail'])) { + $sku = implode(',', $value['detail']); } $ot_price_ = $value['price']; if (isset($value['active_price'])) { @@ -533,16 +568,22 @@ class ProductRepository extends BaseRepository $ot_price_ = $value['ot_price']; $sprice = ($value['price'] < 0) ? 0 : $value['price']; } + if (isset($value['svip_price']) && $data['svip_price_type']) { + $svip_price = !$svip_price ? $value['svip_price'] : (($svip_price > $value['svip_price']) ? $value['svip_price'] : $svip_price); + } + $cost = !$cost ? $value['cost'] : (($cost > $value['cost']) ?$cost: $value['cost']); + $price = !$price ? $sprice : (($price > $sprice) ? $sprice : $price); + $ot_price = !$ot_price ? $ot_price_ : (($ot_price > $ot_price_) ? $ot_price : $ot_price_); $unique = $this->setUnique($productId, $sku, $productType); $result['attrValue'][] = [ 'detail' => json_encode($value['detail'] ?? ''), "bar_code" => $value["bar_code"] ?? '', - "image" => $value["image"], + "image" => $value["image"] ?? '', "cost" => $value['cost'] ? (($value['cost'] < 0) ? 0 : $value['cost']) : 0, "price" => $value['price'] ? (($value['price'] < 0) ? 0 : $value['price']) : 0, - "volume" => $value['volume'] ? (($value['volume'] < 0) ? 0 : $value['volume']) : 0, - "weight" => $value['weight'] ? (($value['weight'] < 0) ? 0 : $value['weight']) : 0, + "volume" => isset($value['volume']) ? ($value['volume'] ? (($value['volume'] < 0) ? 0 : $value['volume']) : 0) :0, + "weight" => isset($value['weight']) ? ($value['weight'] ? (($value['weight'] < 0) ? 0 : $value['weight']) : 0) :0, "stock" => $value['stock'] ? (($value['stock'] < 0) ? 0 : $value['stock']) : 0, "ot_price" => $value['ot_price'] ? (($value['ot_price'] < 0) ? 0 : $value['ot_price']) : 0, "extension_one" => $extension_status ? ($value['extension_one'] ?? 0) : 0, @@ -552,27 +593,19 @@ class ProductRepository extends BaseRepository "sku" => $sku, "unique" => $unique, 'sales' => $isUpdate ? ($oldSku[$sku]['sales'] ?? 0) : 0, + 'svip_price' => $svip_price, ]; - if (!$price) $price = $sprice; - if (!$ot_price) $ot_price = $ot_price_; - if (!$cost) $cost = $value['cost']; - - $ot_price = ($ot_price > $ot_price_) ? $ot_price_ : $ot_price; - - $price = ($price > $sprice) ? $sprice : $price; - - $cost = ($cost > $value['cost']) ? $value['cost'] : $cost; - $stock = $stock + intval($value['stock']); } $result['data'] = [ 'price' => $price , 'stock' => $stock, - 'ot_price' => $ot_price, - 'cost' => $cost + 'ot_price' => $ot_price, + 'cost' => $cost, + 'svip_price' => $svip_price, ]; } catch (\Exception $exception) { - throw new ValidateException('商品属性格式错误'); + throw new ValidateException('规格错误 :'.$exception->getMessage()); } return $result; } @@ -611,7 +644,8 @@ class ProductRepository extends BaseRepository 'merchant'=> function($query){ $query->field('mer_id,mer_avatar,mer_name,is_trader'); }, - 'guarantee.templateValue.value' + 'guarantee.templateValue.value', + ]; $data = $this->dao->geTrashedtProduct($id)->with($with)->find(); @@ -625,7 +659,7 @@ class ProductRepository extends BaseRepository $append = []; if ($data['product_type'] == 0) { - $append = ['us_status']; + $append = ['us_status', 'params']; $activeId = 0; } if ($data['product_type'] == 1){ @@ -663,6 +697,7 @@ class ProductRepository extends BaseRepository $arr = []; if (in_array($data['product_type'], [1, 3])) $value_make = app()->make(ProductAttrValueRepository::class); foreach ($attrValue as $key => $item) { + if ($data['product_type'] == 1) { $value = $value_make->getSearch(['sku' => $item['sku'], 'product_id' => $data['old_product_id']])->find(); $old_stock = $value['stock']; @@ -820,7 +855,7 @@ class ProductRepository extends BaseRepository $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->filed)->select(); - $data->append(['max_extension', 'min_extension', 'us_status']); + $data->append(['us_status']); $list = hasMany( $data , @@ -892,9 +927,7 @@ class ProductRepository extends BaseRepository ]); $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->admin_filed)->select(); - - $data->append(['max_extension', 'min_extension', 'us_status']); - + $data->append([ 'us_status']); $list = hasMany( $data , 'sys_labels', @@ -1084,10 +1117,10 @@ class ProductRepository extends BaseRepository return $this->apiProductDetail($where, 1, null,$userInfo); } - public function apiProductDetail(array $where, int $productType, ?int $activityId, $userInfo = null) { - $field = 'is_show,product_id,mer_id,image,slider_image,store_name,store_info,unit_name,price,cost,ot_price,stock,sales,video_link,product_type,extension_type,old_product_id,rate,guarantee_template_id,temp_id,once_max_count,pay_limit,once_min_count,integral_rate,delivery_way,delivery_free,type,cate_id'; + + $field = 'is_show,product_id,mer_id,image,slider_image,store_name,store_info,unit_name,price,cost,ot_price,stock,sales,video_link,product_type,extension_type,old_product_id,rate,guarantee_template_id,temp_id,once_max_count,pay_limit,once_min_count,integral_rate,delivery_way,delivery_free,type,cate_id,svip_price_type,svip_price,mer_svip_status'; $with = [ 'attr', 'content' => function($query) { @@ -1101,105 +1134,117 @@ class ProductRepository extends BaseRepository 'seckillActive' => function ($query) { $query->field('start_day,end_day,start_time,end_time,product_id'); }, - 'temp', + 'temp' ]; - $append = ['guaranteeTemplate']; + + $append = ['guaranteeTemplate','params']; + $where['product_type'] = $productType; $res = $this->dao->getWhere($where, $field, $with); - if ($res) { - switch ($res['product_type']) { - case 0: - $append[] = 'max_integral'; - break; - case 1: - $_where = $this->dao->productShow(); - $_where['product_id'] = $res['old_product_id']; - $oldProduct = $this->dao->getWhere($_where); - $result = $this->getSeckillAttrValue($res['attrValue'], $res['old_product_id']); - $res['attrValue'] = $result['item']; + if (!$res) return []; + switch ($res['product_type']) { + case 0: + $append[] = 'max_integral'; + $append[] = 'show_svip_info'; + break; + case 1: + $_where = $this->dao->productShow(); + $_where['product_id'] = $res['old_product_id']; + $oldProduct = $this->dao->getWhere($_where); + $result = $this->getSeckillAttrValue($res['attrValue'], $res['old_product_id']); + $res['attrValue'] = $result['item']; - $res['stock'] = $result['stock']; - $res['stop'] = strtotime(date('Y-m-d', time()) . $res['seckillActive']['end_time'] . ':00:00'); - $res['sales'] = app()->make(StoreOrderRepository::class)->seckillOrderCounut($where['product_id']); - $res['quota'] = $this->seckillStock($where['product_id']); - $res['old_status'] = $oldProduct ? 1 : 0; - $append[] = 'seckill_status'; - break; - default: - break; - } - if ($userInfo) { - $relation_make = app()->make(UserRelationRepository::class); - try { - $isRelation = $relation_make->getUserRelation( - [ - 'type_id' => $activityId ?? $where['product_id'], - 'type' => $res['product_type'] - ], - $userInfo['uid'] - ); - } catch (\Exception $e) { - $isRelation = false; - } + $res['stock'] = $result['stock']; + $res['stop'] = strtotime(date('Y-m-d', time()) . $res['seckillActive']['end_time'] . ':00:00'); + $res['sales'] = app()->make(StoreOrderRepository::class)->seckillOrderCounut($where['product_id']); + $res['quota'] = $this->seckillStock($where['product_id']); + $res['old_status'] = $oldProduct ? 1 : 0; + $append[] = 'seckill_status'; + break; + default: + break; + } - if ($this->getUserIsPromoter($userInfo) && $productType == 0) { - $append[] = 'max_extension'; - $append[] = 'min_extension'; - } + if ($userInfo) { + try { + $isRelation = app()->make(UserRelationRepository::class)->getUserRelation(['type_id' => $activityId ?? $where['product_id'], 'type' => $res['product_type']], $userInfo['uid']); + } catch (\Exception $e) { + $isRelation = false; } - - $attr = $this->detailAttr($res['attr']); - $attrValue = (in_array($res['product_type'], [3, 4])) ? $res['oldAttrValue'] : $res['attrValue']; - $sku = $this->detailAttrValue($attrValue, $userInfo, $productType, $activityId); - - $res['isRelation'] = $isRelation ?? false; - $care = false; - if ($userInfo) { - $care = app()->make(MerchantRepository::class)->getCareByUser($res['mer_id'], $userInfo->uid); - } - $res['merchant']['top_banner'] = merchantConfig($res['mer_id'], 'mer_pc_top'); - $res['merchant']['care'] = $care; - $res['replayData'] = null; - if (systemConfig('sys_reply_status')){ - $res['replayData'] = app()->make(ProductReplyRepository::class)->getReplyRate($res['product_id']); - $append[] = 'topReply'; - } - unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']); - $res['attr'] = $attr; - $res['sku'] = $sku; - $res->append($append); - - if ($res['content'] && $res['content']['type'] == 1) { - $res['content']['content'] = json_decode($res['content']['content']); - } - - $res['merchant']['recommend'] = $this->getRecommend($res['product_id'], $res['mer_id']); - $spu = app()->make(SpuRepository::class)->getSpuData( - $activityId ?: $res['product_id'], - $productType, - 0 - ); - $res['spu_id'] = $spu->spu_id; - - if (systemConfig('community_status')) { - $res['community'] = app()->make(CommunityRepository::class)->getDataBySpu($spu->spu_id); - } - //热卖排行 - if (systemConfig('hot_ranking_switch') && $res['spu_id']) { - $hot = $this->getHotRanking($res['spu_id'], $res['cate_id']); - $res['top_name'] = $hot['top_name'] ?? ''; - $res['top_num'] = $hot['top_num'] ?? 0; - $res['top_pid'] = $hot['top_pid'] ?? 0; - } - //活动氛围图 - if (in_array($res['product_type'],[0,2,4])){ - $active = app()->make(StoreActivityRepository::class)->getActivityBySpu(StoreActivityRepository::ACTIVITY_TYPE_ATMOSPHERE,$res['spu_id'],$res['cate_id'],$res['mer_id']); - if ($active) $res['atmosphere_pic'] = $active['pic']; + if ($this->getUserIsPromoter($userInfo) && $productType == 0) { + $append[] = 'max_extension'; + $append[] = 'min_extension'; } } + + $attr = $this->detailAttr($res['attr']); + $attrValue = (in_array($res['product_type'], [3, 4])) ? $res['oldAttrValue'] : $res['attrValue']; + $sku = $this->detailAttrValue($attrValue, $userInfo, $productType, $activityId); + + $res['isRelation'] = $isRelation ?? false; + $care = false; + if ($userInfo) { + $care = app()->make(MerchantRepository::class)->getCareByUser($res['mer_id'], $userInfo->uid); + } + $res['merchant']['top_banner'] = merchantConfig($res['mer_id'], 'mer_pc_top'); + $res['merchant']['care'] = $care; + $res['replayData'] = null; + if (systemConfig('sys_reply_status')){ + $res['replayData'] = app()->make(ProductReplyRepository::class)->getReplyRate($res['product_id']); + $append[] = 'topReply'; + } + unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']); + if (count($attr) > 0) { + $firstSku = []; + foreach ($attr as $item) { + $firstSku[] = $item['attr_values'][0]; + } + $firstSkuKey = implode(',', $firstSku); + if (isset($sku[$firstSkuKey])) { + $sku = array_merge([$firstSkuKey => $sku[$firstSkuKey]], $sku); + } + } + $res['attr'] = $attr; + $res['sku'] = $sku; + $res->append($append); + + if ($res['content'] && $res['content']['type'] == 1) { + $res['content']['content'] = json_decode($res['content']['content']); + } + + $res['merchant']['recommend'] = $this->getRecommend($res['product_id'], $res['mer_id']); + $spu = app()->make(SpuRepository::class)->getSpuData( + $activityId ?: $res['product_id'], + $productType, + 0 + ); + $res['spu_id'] = $spu->spu_id; + if (systemConfig('community_status')) { + $res['community'] = app()->make(CommunityRepository::class)->getDataBySpu($spu->spu_id); + } + //热卖排行 + if (systemConfig('hot_ranking_switch') && $res['spu_id']) { + $hot = $this->getHotRanking($res['spu_id'], $res['cate_id']); + $res['top_name'] = $hot['top_name'] ?? ''; + $res['top_num'] = $hot['top_num'] ?? 0; + $res['top_pid'] = $hot['top_pid'] ?? 0; + } + //活动氛围图 + if (in_array($res['product_type'],[0,2,4])){ + $active = app()->make(StoreActivityRepository::class)->getActivityBySpu(StoreActivityRepository::ACTIVITY_TYPE_ATMOSPHERE,$res['spu_id'],$res['cate_id'],$res['mer_id']); + if ($active) $res['atmosphere_pic'] = $active['pic']; + } + return $res; } + /** + * TODO 热卖排行 + * @param int $spuId + * @param int $cateId + * @return array + * @author Qinii + */ public function getHotRanking(int $spuId, int $cateId) { $data = []; @@ -1283,7 +1328,7 @@ class ProductRepository extends BaseRepository * @author Qinii * @day 2020-08-05 */ - public function detailAttr($data, $preview = 0) + public function detailAttr($data, $preview = 0, $user = null) { $attr = []; foreach ($data as $key => $item) { @@ -1296,7 +1341,6 @@ class ProductRepository extends BaseRepository $attr[$key]['attr_values'] = $item['attr_values']; } $values = $item['attr_values']; - sort($values); foreach ($values as $i => $value) { $arr[] = [ 'attr' => $value, @@ -1356,13 +1400,13 @@ class ProductRepository extends BaseRepository * @author Qinii * @day 2020-08-05 */ - public function detailAttrValue($data, $userInfo, $productType = 0, $artiveId = null) + public function detailAttrValue($data, $userInfo, $productType = 0, $artiveId = null, $svipInfo = []) { $sku = []; $make_presll = app()->make(ProductPresellSkuRepository::class); $make_assist = app()->make(ProductAssistSkuRepository::class); $make_group = app()->make(ProductGroupSkuRepository::class); - foreach ($data as $k => $value) { + foreach ($data as $value) { $_value = [ 'sku' => $value['sku'], 'price' => $value['price'], @@ -1376,6 +1420,7 @@ class ProductRepository extends BaseRepository ]; if($productType == 0 ){ $_value['ot_price'] = $value['ot_price']; + $_value['svip_price'] = $value['svip_price']; } if ($productType == 2) { $_sku = $make_presll->getSearch(['product_presell_id' => $artiveId, 'unique' => $value['unique']])->find(); @@ -1485,37 +1530,69 @@ class ProductRepository extends BaseRepository } /** - * TODO 商品上下架操作 - * @param array $ids - * @param string $status - * @param string $is + * TODO 上下架 / 显示 + * @param $id + * @param $status * @author Qinii - * @day 2022/9/6 + * @day 2022/11/12 */ - public function switchShow($ids, string $status,string $is, int $merId) + public function switchShow($id, $status, $field, $merId = 0) { - $extension_status = systemConfig('extension_status'); - $make = app()->make(ProductAttrValueRepository::class); - $productData = $this->dao->getSearch([])->where('product_id','in', $ids)->select(); - foreach ($productData as $product) { - if ($merId && $product['mer_id'] != $merId) throw new ValidateException('ID:' . $product['product_id'] . ' 商品不属于您'); - if ($status == 1) { - if ($product['product_type'] == 2) - throw new ValidateException('ID:' . $product['product_id'] . ' 商品正在参与预售活动'); - if ($product['product_type'] == 3) - throw new ValidateException('ID:' . $product['product_id'] . ' 商品正在参与助力活动'); - } - if ($extension_status && $status == 1 && $product->extension_type == 1) { - if (!$make->checkExtensionById($product['product_id'])) - throw new ValidateException('设置佣金不能低于系统比例'); - } - Queue(ChangeSpuStatusJob::class, ['id' => $product['product_id'], 'product_type' => $product['product_type']]); + $where['product_id'] = $id; + if ($merId) $where['mer_id'] = $merId; + $product = $this->dao->getWhere($where); + if (!$product) throw new ValidateException('数据不存在'); + if ($status == 1 && $product['product_type'] == 2) + throw new ValidateException('商品正在参与预售活动'); + if ($status == 1 && $product['product_type'] == 3) + throw new ValidateException('商品正在参与助力活动'); + $this->dao->update($id,[$field => $status]); + app()->make(SpuRepository::class)->changeStatus($id,0); + } + + public function batchSwitchShow($id, $status, $field, $merId = 0) + { + $where['product_id'] = $id; + if ($merId) $where['mer_id'] = $merId; + $products = $this->dao->getSearch([])->where('product_id','in', $id)->select(); + if (!$products) + throw new ValidateException('数据不存在'); + foreach ($products as $product) { + if ($merId && $product['mer_id'] !== $merId) + throw new ValidateException('商品不属于您'); + if ($status == 1 && $product['product_type'] == 2) + throw new ValidateException('ID:'.$product->product_id . ' 商品正在参与预售活动'); + if ($status == 1 && $product['product_type'] == 3) + throw new ValidateException('ID:'.$product->product_id . ' 商品正在参与助力活动'); } - $ids = is_array($ids) ? $ids : explode(',', $ids); - if ($product['product_type']==0){ - Db::name('merchant_address_product')->where('product_id','in',$ids)->update(['status'=>$status]); - } - $this->dao->updates($ids,[$is => $status]); + $this->dao->updates($id,[$field => $status]); + Queue::push(ChangeSpuStatusJob::class,['id' => $id,'product_type'=>0]); + } + + /** + * TODO 商品审核 + * @param $id + * @param $data + * @author Qinii + * @day 2022/11/14 + */ + public function switchStatus($id,$data) + { + $product = $this->getSearch([])->find($id); + $this->dao->update($id, $data); + $status = $data['status']; + $product_type = $product->product_type; + $type = self::NOTIC_MSG[$data['status']][$product['product_type']]; + $message = '您有1个' . ($product['product_type'] ? '秒杀商品' : '商品') . self::NOTIC_MSG[$data['status']]['msg']; + SwooleTaskService::merchant('notice', [ + 'type' => $type, + 'data' => [ + 'title' => $status == -2 ? '下架提醒' : '审核结果', + 'message' => $message, + 'id' => $product['product_id'] + ] + ], $product['mer_id']); + app()->make(SpuRepository::class)->changeStatus($id,$product_type); } /** @@ -1526,70 +1603,26 @@ class ProductRepository extends BaseRepository * @author Qinii * @day 2022/9/6 */ - public function switchStatus(array $id,array $data, $product_type = 0) + public function batchSwitchStatus(array $id,array $data) { - $status = $data['status']; - $data['is_used'] = ($status == 1) ? 1 : 0; - $extension_status = systemConfig('extension_status'); - $make = app()->make(ProductAttrValueRepository::class); $productData = $this->getSearch([])->where('product_id','in', $id)->select(); foreach ($productData as $product) { - if ($extension_status && $status == 1 && $product->extension_type == 1) { - if (!$make->checkExtensionById($product['product_id'])) - throw new ValidateException('设置佣金不能低于系统比例'); - } - switch ($status) { - case 1: - $message = $product_type ? '您有1个秒杀商品审核通过' : '您有1个商品审核通过'; - $type = $product_type ? 'product_seckill_success' :'product_success'; - break; - case -1: - $message = $product_type ? '您有1个秒杀商品审核失败' : '您有1个商品审核失败'; - $type = $product_type ? 'product_seckill_fail' :'product_fail'; - break; - case -2: - $message = $product_type ? '您有1个秒杀商品被下架' : '您有1个商品被下架'; - $type = $product_type ? 'product_seckill_fail' :'product_fail'; - break; - } + $type = self::NOTIC_MSG[$data['status']][$product['product_type']]; + $message = '您有1个' . ($product['product_type'] ? '秒杀商品' : '商品') . self::NOTIC_MSG[$data['status']]['msg']; SwooleTaskService::merchant('notice', [ 'type' => $type, 'data' => [ - 'title' => $status == -2 ? '下架提醒' : '审核结果', + 'title' => $data['status'] == -2 ? '下架提醒' : '审核结果', 'message' => $message, 'id' => $product['product_id'] ] ], $product['mer_id']); - queue(ChangeSpuStatusJob::class, ['id' => $product['product_id'], 'product_type' => $product['product_type']]); } $this->dao->updates($id, $data); - event('product.status',compact('id','data','product_type')); + Queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => $product['product_type']]); + event('product.status',compact('id','data')); } - /** - * TODO 执行检测所有线上商品 - * @author Qinii - * @day 2020-06-24 - */ - public function checkProductByExtension() - { - if (systemConfig('extension_status')) { - $where = ['status' => 1, 'is_show' => 1, 'product_type' => 0]; - $make = app()->make(ProductAttrValueRepository::class); - $query = $this->dao->search(null, $where)->where('extension_type', 1); - $query->chunk(100, function ($prduct) use ($make) { - foreach ($prduct as $item) { - if (!$make->checkExtensionById($item['product_id'])) { - $item->status = -2; - $item->refusal = '因佣金比例调整,商品佣金低于系统比例'; - $item->save(); - queue(ChangeSpuStatusJob::class, ['id' => $item['product_id'], 'product_type' => $item['product_type']]); - //app()->make(SpuRepository::class)->changeStatus($item['product_id'],$item['product_type']); - } - } - }); - } - } public function wxQrCode(int $productId, int $productType, User $user) { @@ -1706,23 +1739,6 @@ class ProductRepository extends BaseRepository }); } - /** - * TODO 商品验证 - * @param $data - * @author Qinii - * @day 2020-08-01 - */ - public function check($data, $merId) - { - if ($data['brand_id'] > 0 && !$this->merBrandExists($data['brand_id'])) - throw new ValidateException('品牌不存在'); - if (!$this->CatExists($data['cate_id'])) - throw new ValidateException('平台分类不存在'); - if (isset($data['mer_cate_id']) && !$this->merCatExists($data['mer_cate_id'], $merId)) - throw new ValidateException('不存在的商户分类'); - if ($data['delivery_way'] == 2 && !$this->merShippingExists($merId, $data['temp_id'])) - throw new ValidateException('运费模板不存在'); - } public function fictiForm(int $id) { @@ -2028,7 +2044,7 @@ class ProductRepository extends BaseRepository $product['slider_image'] = explode(',',$product['slider_image']); $product['merchant'] = $data['merchant']; $product['content'] = ['content' => $data['content']]; - $settleParams = $this->setAttrValue($data['attrValue'], 0, $productType, 0); + $settleParams = $this->setAttrValue($data, 0, $productType, 0); $settleParams['attr'] = $this->setAttr($data['attr'], 0); $product['price'] = $settleParams['data']['price']; @@ -2145,4 +2161,44 @@ class ProductRepository extends BaseRepository if (!$data) throw new ValidateException('数据不存在'); return app()->make(ProductAttrValueRepository::class)->getSearch(['product_id' => $id])->select(); } + + public function checkParams($data,$merId,$id = null) + { + if (!$data['pay_limit']) $data['once_max_count'] = 0; + if ($data['brand_id'] > 0 && !$this->merBrandExists($data['brand_id'])) + throw new ValidateException('品牌不存在'); + if (!$this->CatExists($data['cate_id'])) + throw new ValidateException('平台分类不存在'); + if (isset($data['mer_cate_id']) && !$this->merCatExists($data['mer_cate_id'], $merId)) + throw new ValidateException('不存在的商户分类'); + if ($data['delivery_way'] == 2 && !$this->merShippingExists($merId, $data['temp_id'])) + throw new ValidateException('运费模板不存在'); + if (isset($data['type']) && $data['type'] && $data['extend']) { + $key = ['email','text','number','date','time','idCard','mobile','image']; + if (count($data['extend']) > 10) throw new ValidateException('附加表单不能超过10条'); + $title = []; + foreach ($data['extend'] as $item) { + if (empty($item['title']) ) + throw new ValidateException('表单名称不能为空:'.$item['key']); + if (in_array($item['title'],$title)) + throw new ValidateException('表单名称不能重复:'.$item['title']); + $title[] = $item['title']; + if (!in_array($item['key'], $key)) + throw new ValidateException('表单类型错误:'.$item['key']); + $extend[] = [ + 'title' => $item['title'], + 'key' => $item['key'] , + 'require' => $item['require'], + ]; + } + } + app()->make(ProductLabelRepository::class)->checkHas($merId,$data['mer_labels']); + $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'],'is_show' => 1]); + if (!$count) throw new ValidateException('平台分类不存在或不可用'); + app()->make(StoreProductValidate::class)->check($data); + if ($id) unset($data['type']); + $data['extend'] = $extend ?? []; + //单次限购 + return $data; + } } diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php index c6c90970..e4935d9d 100644 --- a/app/common/repositories/store/product/SpuRepository.php +++ b/app/common/repositories/store/product/SpuRepository.php @@ -15,7 +15,6 @@ use app\common\repositories\store\coupon\StoreCouponRepository; use app\common\repositories\store\StoreActivityRepository; use app\common\repositories\user\UserRepository; use crmeb\jobs\SendSmsJob; -use crmeb\jobs\SendTemplateMessageJob; use crmeb\jobs\SyncProductTopJob; use crmeb\services\CopyCommand; use crmeb\services\RedisCacheService; @@ -32,7 +31,7 @@ class SpuRepository extends BaseRepository { public $dao; public $merchantFiled = 'mer_id,mer_name,mer_avatar,is_trader,mer_info,mer_keyword,type_id'; - public $productFiled = 'S.product_id,S.store_name,S.image,activity_id,S.keyword,S.price,S.mer_id,spu_id,S.status,store_info,brand_id,cate_id,unit_name,S.star,S.rank,S.sort,sales,S.product_type,rate,reply_count,extension_type,S.sys_labels,S.mer_labels,P.delivery_way,P.delivery_free,P.ot_price'; + public $productFiled = 'S.product_id,S.store_name,S.image,activity_id,S.keyword,S.price,S.mer_id,spu_id,S.status,store_info,brand_id,cate_id,unit_name,S.star,S.rank,S.sort,sales,S.product_type,rate,reply_count,extension_type,S.sys_labels,S.mer_labels,P.delivery_way,P.delivery_free,P.ot_price,svip_price_type,stock,mer_svip_status'; public function __construct(SpuDao $dao) { $this->dao = $dao; @@ -44,7 +43,6 @@ class SpuRepository extends BaseRepository return $this->dao->create($data); } - public function baseUpdate(array $param, int $productId, int $activityId, $productType = 0) { if ($productType == 1) { @@ -147,10 +145,12 @@ class SpuRepository extends BaseRepository }, 'issetCoupon', ]); + $productMake = app()->make(ProductRepository::class); $count = $query->count(); + $list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->select(); - $append[] = 'stop_time'; - if (app()->make(ProductRepository::class)->getUserIsPromoter($userInfo)) + $append = ['stop_time','show_svip_info','svip_price']; + if ($productMake->getUserIsPromoter($userInfo)) $append[] = 'max_extension'; $list->append($append); $list = $this->getBorderList($list); @@ -285,7 +285,6 @@ class SpuRepository extends BaseRepository if (!$result && $ret) $result = $this->create($ret->toArray(), $where['product_id'], $where['activity_id'], $productType); if ($result) $this->dao->update($result['spu_id'], ['status' => $status]); if ($status == 1 && $productType == 0) { - Queue(SendTemplateMessageJob::class, ['tempCode' => 'PRODUCT_INCREASE', 'id' => $id]); Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]); } if ($productType == 0) Queue::push(SyncProductTopJob::class,[]); @@ -474,6 +473,7 @@ class SpuRepository extends BaseRepository $where['is_coupon'] = 1; $where['order'] = 'star'; $where['common'] = 1; + $where['svip'] = ($coupon['send_type'] == StoreCouponRepository::GET_COUPON_TYPE_SVIP) ? 1 : ''; $product = $this->getApiSearch($where, $page, $limit, $userInfo); } @@ -485,7 +485,7 @@ class SpuRepository extends BaseRepository public function getHotRanking(int $cateId) { $RedisCacheService = app()->make(RedisCacheService::class); - $prefix = env('QUEUE_NAME','merchant').'_hot_ranking_'; + $prefix = env('queue_name','merchant').'_hot_ranking_'; $ids = $RedisCacheService->handler()->get($prefix.'top_' . intval($cateId)); $ids = $ids ? explode(',', $ids) : []; if (!count($ids)) { @@ -498,11 +498,8 @@ class SpuRepository extends BaseRepository $where['product_type'] = 0; $where['order'] = 'sales'; $where['spu_ids'] = $ids; - $list = $this->dao->search($where)->setOption('field',[])->field('spu_id,S.image,S.price,S.product_type,P.product_id,P.sales,S.status,S.store_name')->select(); + $list = $this->dao->search($where)->setOption('field',[])->field('spu_id,S.image,S.price,S.product_type,P.product_id,P.sales,S.status,S.store_name,P.ot_price,P.cost')->select(); if ($list) $list = $list->toArray(); -// usort($list, function ($a, $b) use ($ids) { -// return array_search($a['spu_id'], $ids) > array_search($b['spu_id'], $ids) ? 1 : -1; -// }); return $list; } diff --git a/app/common/repositories/store/product/StoreDiscountRepository.php b/app/common/repositories/store/product/StoreDiscountRepository.php index 911c3ef8..183c3ab0 100644 --- a/app/common/repositories/store/product/StoreDiscountRepository.php +++ b/app/common/repositories/store/product/StoreDiscountRepository.php @@ -27,27 +27,26 @@ class StoreDiscountRepository extends BaseRepository $this->dao = $dao; } - public function getApilist($where, $id) + public function getApilist($where) { $query = $this->dao->getSearch($where) ->with([ 'discountsProduct' => [ - 'product' => [ - 'attr', - 'attrValue', - ], + 'product' => function($query){ + $query->where('status',1)->where('is_show',1)->where('mer_status',1)->where('is_used',1)->with([ + 'attr', + 'attrValue', + ]); + }, 'productSku' => function($query) { $query->where('active_type', 10); }, ] ])->order('sort DESC,create_time DESC'); - - $count = $query->count(); $data = $query->select(); $list = []; if ($data) { foreach ($data->toArray() as $item) { - $item['count'] = count($item['discountsProduct']); if ($item['is_time']) { $start_time = date('Y-m-d H:i:s',$item['start_time']); $end_time = date('Y-m-d H:i:s', $item['stop_time']); @@ -58,11 +57,16 @@ class StoreDiscountRepository extends BaseRepository $discountsProduct = $item['discountsProduct']; unset($item['discountsProduct']); $res = activeProductSku($discountsProduct, 'discounts'); - $item['max_price'] = $res['price']; - $item['discountsProduct'] = $res['data']; - $list[] = $item; + $item['count'] = count($res['data']); + $count = count(explode(',',$item['product_ids'])); + if ((!$item['type'] && $count == $item['count']) || ($item['type'] && $count > 1)) { + $item['max_price'] = $res['price']; + $item['discountsProduct'] = $res['data']; + $list[] = $item; + } } } + $count = count($list); return compact('count', 'list'); } diff --git a/app/common/repositories/store/service/StoreServiceLogRepository.php b/app/common/repositories/store/service/StoreServiceLogRepository.php index d591b37f..ac9571d8 100644 --- a/app/common/repositories/store/service/StoreServiceLogRepository.php +++ b/app/common/repositories/store/service/StoreServiceLogRepository.php @@ -59,7 +59,7 @@ class StoreServiceLogRepository extends BaseRepository { $query = $this->search(['mer_id' => $merId, 'uid' => $uid])->order('service_log_id DESC'); $count = $query->count(); - $list = $query->page($page, $limit)->with(['user', 'service'])->select()->append(['send_time','send_date']); + $list = $query->page($page, $limit)->with(['user', 'service'])->select()->append(['send_time', 'send_date']); if ($page == 1) { $this->dao->userRead($merId, $uid); app()->make(StoreServiceUserRepository::class)->read($merId, $uid); @@ -93,7 +93,7 @@ class StoreServiceLogRepository extends BaseRepository { $query = $this->search(['mer_id' => $merId, 'uid' => $toUid, 'last_id' => $last_id])->order('service_log_id DESC'); $count = $query->count(); - $list = $query->page($page, $limit)->with(['user', 'service'])->select()->append(['send_time','send_date']); + $list = $query->page($page, $limit)->with(['user', 'service'])->select()->append(['send_time', 'send_date']); if ($page == 1) { $this->dao->serviceRead($merId, $toUid, $service_id); app()->make(StoreServiceUserRepository::class)->read($merId, $toUid, true); diff --git a/app/common/repositories/store/shipping/CityRepository.php b/app/common/repositories/store/shipping/CityRepository.php index 8f1c3578..d323e627 100644 --- a/app/common/repositories/store/shipping/CityRepository.php +++ b/app/common/repositories/store/shipping/CityRepository.php @@ -28,10 +28,12 @@ class CityRepository extends BaseRepository * @Date: 2020/5/8 * @return array */ - public function getFormatList( array $where) + public function getFormatList(array $where) { return formatCategory($this->dao->getAll($where)->toArray(), 'city_id','parent_id'); } + + } diff --git a/app/common/repositories/system/CacheRepository.php b/app/common/repositories/system/CacheRepository.php index f646cd12..2614f152 100644 --- a/app/common/repositories/system/CacheRepository.php +++ b/app/common/repositories/system/CacheRepository.php @@ -64,6 +64,8 @@ class CacheRepository extends BaseRepository const PLATFORM_RULE = 'platform_rule'; //优惠券说明 const COUPON_AGREE = 'sys_coupon_agree'; + //付费会员协议 + const SYS_SVIP = 'sys_svip'; public function getAgreeList($type) { @@ -101,6 +103,7 @@ class CacheRepository extends BaseRepository self::CANCELLATION_PROMPT, self::PLATFORM_RULE, self::COUPON_AGREE, + self::SYS_SVIP, ]; } diff --git a/app/common/repositories/system/RelevanceRepository.php b/app/common/repositories/system/RelevanceRepository.php index 720f9655..6efa2575 100644 --- a/app/common/repositories/system/RelevanceRepository.php +++ b/app/common/repositories/system/RelevanceRepository.php @@ -45,7 +45,11 @@ class RelevanceRepository extends BaseRepository const SCOPE_TYPE_CATEGORY = 'scope_type_category'; //指定商户 const SCOPE_TYPE_STORE = 'scope_type_store'; + //价格说明关联分类 + const PRICE_RULE_CATEGORY = 'price_rule_category'; + //商品参数关联 + const PRODUCT_PARAMES_CATE = 'product_params_cate'; protected $dao; /** @@ -158,7 +162,6 @@ class RelevanceRepository extends BaseRepository ]); $count = $query->count(); $list = $query->page($page, $limit)->select()->append(['is_start']); - return compact('count','list'); } @@ -180,7 +183,7 @@ class RelevanceRepository extends BaseRepository } ]); $count = $query->count(); - $list = $query->page($page, $limit)->select(); + $list = $query->page($page, $limit)->select()->append(['is_fans']); return compact('count','list'); } @@ -192,9 +195,50 @@ class RelevanceRepository extends BaseRepository * @author Qinii * @day 10/28/21 */ - public function getUserStartCommunity(int $uid, int $page, int $limit) + public function getUserStartCommunity(array $where, int $page, int $limit) { - $query = $this->dao->joinUser($uid)->with([ + $query = $this->dao->joinUser($where)->with([ + 'community'=> function($query) use($where){ + $query->with([ + 'author' => function($query){ + $query->field('uid,real_name,status,avatar,nickname,count_start'); + }, + 'is_start' => function($query) use ($where) { + $query->where('left_id',$where['uid']); + }, + 'topic' => function($query) { + $query->where('status', 1)->where('is_del',0); + $query->field('topic_id,topic_name,status,category_id,pic,is_del'); + }, + 'relevance' => [ + 'spu' => function($query) { + $query->field('spu_id,store_name,image,price,product_type,activity_id,product_id'); + } + ], + 'is_fans' => function($query) use($where){ + $query->where('left_id',$where['uid']); + }]); + }, + ]); + $count = $query->count(); + $list = $query->page($page, $limit)->select()->each(function ($item){ + $item['time'] = date('m月d日', strtotime($item['create_time'])); + return $item; + }); + + return compact('count','list'); + } + + /** + * TODO 我点赞过的文章 + * @param int $uid + * @return \think\Collection + * @author Qinii + * @day 10/28/21 + */ + public function getUserStartCommunityByVideos(array $where, int $page, int $limit) + { + $query = $this->dao->joinUser($where)->with([ 'community'=> function($query) { $query->with(['author'=> function($query) { $query->field('uid,avatar,nickname'); diff --git a/app/common/repositories/system/config/ConfigRepository.php b/app/common/repositories/system/config/ConfigRepository.php index 9043fe49..2507d5cc 100644 --- a/app/common/repositories/system/config/ConfigRepository.php +++ b/app/common/repositories/system/config/ConfigRepository.php @@ -77,23 +77,37 @@ class ConfigRepository extends BaseRepository public function getComponent($config, $merId) { - if ($config['config_type'] == 'image') - $component = Elm::frameImage($config['config_key'], $config['config_name'], '/' . config('admin.' . ($merId ? 'merchant' : 'admin') . '_prefix') . '/setting/uploadPicture?field=' . $config['config_key'] . '&type=1')->modal(['modal' => false])->width('896px')->height('480px')->props(['footer' => false]); - else if ($config['config_type'] == 'images') { - $component = Elm::frameImage($config['config_key'], $config['config_name'], '/' . config('admin.' . ($merId ? 'merchant' : 'admin') . '_prefix') . '/setting/uploadPicture?field=' . $config['config_key'] . '&type=2')->maxLength(5)->modal(['modal' => false])->width('896px')->height('480px')->props(['footer' => false]); - } else if ($config['config_type'] == 'file') { - $component = Elm::uploadFile($config['config_key'], $config['config_name'], rtrim(systemConfig('site_url'), '/') . Route::buildUrl('configUpload', ['field' => 'file'])->build())->headers(['X-Token' => request()->token()]); - } else if (in_array($config['config_type'], ['select', 'checkbox', 'radio'])) { - $options = array_map(function ($val) { - [$value, $label] = explode(':', $val, 2); - return compact('value', 'label'); - }, explode("\n", $config['config_rule'])); - $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name'])->options($options); - } else if($config['config_type'] == 'switches'){ - $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name'])->activeText('开')->inactiveText('关'); - } else - $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name']); + switch ($config['config_type']) { + case 'image': + $component = Elm::frameImage($config['config_key'], $config['config_name'], '/' . config('admin.' . ($merId ? 'merchant' : 'admin') . '_prefix') . '/setting/uploadPicture?field=' . $config['config_key'] . '&type=1')->modal(['modal' => false])->width('896px')->height('480px')->props(['footer' => false]); + break; + case 'images': + $component = Elm::frameImage($config['config_key'], $config['config_name'], '/' . config('admin.' . ($merId ? 'merchant' : 'admin') . '_prefix') . '/setting/uploadPicture?field=' . $config['config_key'] . '&type=2')->maxLength(5)->modal(['modal' => false])->width('896px')->height('480px')->props(['footer' => false]); + break; + case 'file': + $component = Elm::uploadFile($config['config_key'], $config['config_name'], rtrim(systemConfig('site_url'), '/') . Route::buildUrl('configUpload', ['field' => 'file'])->build())->headers(['X-Token' => request()->token()]); + break; + case 'select': + //notbreak + case 'checkbox': + //notbreak + case 'radio': + $options = array_map(function ($val) { + [$value, $label] = explode(':', $val, 2); + return compact('value', 'label'); + }, explode("\n", $config['config_rule'])); + $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name'])->options($options); + break; + case 'switches': + $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name'])->activeText('开')->inactiveText('关'); + break; + default: + $component = Elm::{$config['config_type']}($config['config_key'], $config['config_name']); + break; + } + if ($config['required']) $component->required(); + $component->appendRule('suffix', [ 'type' => 'div', 'style' => ['color' => '#999999'], @@ -101,6 +115,7 @@ class ConfigRepository extends BaseRepository 'innerHTML' => $config['info'], ] ]); + if ($config['config_props'] ?? '') { $props = @parse_ini_string($config['config_props'], false, INI_SCANNER_TYPED); if (is_array($props)) { diff --git a/app/common/repositories/system/config/ConfigValueRepository.php b/app/common/repositories/system/config/ConfigValueRepository.php index 5e9191a3..f4c45602 100644 --- a/app/common/repositories/system/config/ConfigValueRepository.php +++ b/app/common/repositories/system/config/ConfigValueRepository.php @@ -16,8 +16,14 @@ namespace app\common\repositories\system\config; use app\common\dao\system\config\SystemConfigValueDao; use app\common\repositories\BaseRepository; +use app\common\repositories\store\product\ProductRepository; +use app\common\repositories\system\groupData\GroupDataRepository; +use app\common\repositories\system\groupData\GroupRepository; +use crmeb\jobs\SyncProductTopJob; +use crmeb\services\DownloadImageService; use think\exception\ValidateException; use think\facade\Db; +use think\facade\Queue; /** * Class ConfigValueRepository @@ -86,11 +92,60 @@ class ConfigValueRepository extends BaseRepository throw new ValidateException($info['config_name'] . '不能小于0'); $formData[$key] = floatval($formData[$key]); } + $this->separate($key,$formData[$key],$merId); } } $this->setFormData($formData, $merId); } + /** + * TODO 需要做特殊处理的配置参数 + * @param $key + * @author Qinii + * @day 2022/11/17 + */ + public function separate($key,$value,$merId) + { + switch($key) { + case 'mer_svip_status': + //修改商户的会员状态 + app()->make(ProductRepository::class)->getSearch([])->where(['mer_id' => $merId,'product_type' => 0])->update([$key => $value]); + break; +// case 'site_ico': +// //修改ico图标 +// $stie_ico = systemConfig('site_ico'); +// $ico = substr($value,-3); +// if ($stie_ico != $value && $ico != 'ico') { +// $path = app()->make(DownloadImageService::class)->downloadImage($value,'def','favicon.ico',1)['path']; +// $value = public_path().$path; +// if (!is_file($value)) throw new ValidateException('Ico图标文件不存在'); +// rename($value, public_path() . 'favicon.ico'); +// } +// break; + //热卖排行 + case 'hot_ranking_switch': + if ($value) { + Queue::push(SyncProductTopJob::class, []); + } + break; + case 'svip_switch_status': + if ($value == 1) { + $groupDataRepository = app()->make(GroupDataRepository::class); + $groupRepository = app()->make(GroupRepository::class); + $group_id = $groupRepository->getSearch(['group_key' => 'svip_pay'])->value('group_id'); + $where['group_id'] = $group_id; + $where['status'] = 1; + $count = $groupDataRepository->getSearch($where)->field('group_data_id,value,sort,status')->count(); + if (!$count) + throw new ValidateException('请先添加会员类型'); + } + break; + default: + break; + } + return ; + } + public function setFormData(array $formData, int $merId) { Db::transaction(function () use ($merId, $formData) { diff --git a/app/common/repositories/system/financial/FinancialRepository.php b/app/common/repositories/system/financial/FinancialRepository.php index d67cf586..349efd12 100644 --- a/app/common/repositories/system/financial/FinancialRepository.php +++ b/app/common/repositories/system/financial/FinancialRepository.php @@ -127,11 +127,13 @@ class FinancialRepository extends BaseRepository [ 'type' => 'span', 'title' => '商户名称:', + 'native' => false, 'children' => [$merchant->mer_name] ], [ 'type' => 'span', 'title' => '商户ID:', + 'native' => false, 'children' => ["$merId"] ], // [ @@ -142,15 +144,18 @@ class FinancialRepository extends BaseRepository [ 'type' => 'span', 'title' => '提示:', + 'native' => false, 'children' => ['最低可提现额度:'.$extract_minimum_line.'元;最低提现金额:'.$extract_minimum_num.'元'] ], [ 'type' => 'span', 'title' => '商户余额:', + 'native' => false, 'children' => [$merchant->mer_money] ], [ 'type' => 'span', + 'native' => false, 'title' => '商户可提现金额:', 'children' => [$_extract] ], diff --git a/app/common/repositories/system/groupData/GroupDataRepository.php b/app/common/repositories/system/groupData/GroupDataRepository.php index 9507916e..4805c142 100644 --- a/app/common/repositories/system/groupData/GroupDataRepository.php +++ b/app/common/repositories/system/groupData/GroupDataRepository.php @@ -320,4 +320,67 @@ class GroupDataRepository extends BaseRepository $this->dao->insertAll($insert); } } + + public function reSetDataForm(int $groupId, ?int $id, ?int $merId) + { + $formData = []; + if (is_null($id)) { + $url = is_null($merId) + ? Route::buildUrl('groupDataCreate', compact('groupId'))->build() + : Route::buildUrl('merchantGroupDataCreate', compact('groupId'))->build(); + + } else { + $data = $this->dao->getSearch([])->find($id); + if (!$data) throw new ValidateException('数据不存在'); + $formData = $data->value; + $formData['status'] = $data->status; + $formData['sort'] = $data->sort; + $url = is_null($merId) + ? Route::buildUrl('systemUserSvipTypeUpdate', compact('groupId','id'))->build() + : Route::buildUrl('merchantGroupDataUpdate', compact('groupId','id'))->build(); + } + $form = Elm::createForm($url); + $rules = [ + Elm::input('svip_name', '会员名')->required(), + Elm::radio('svip_type', '会员类别', '2') + ->setOptions([ + ['value' => '1', 'label' => '试用期',], + ['value' => '2', 'label' => '有限期',], + ['value' => '3', 'label' => '永久期',], + ])->control([ + [ + 'value' => '1', + 'rule' => [ + Elm::number('svip_number', '有效期(天)')->required()->min(0), + ] + ], + [ + 'value' =>'2', + 'rule' => [ + Elm::number('svip_number', '有效期(天)')->required()->min(0), + ] + ], + [ + 'value' => '3', + 'rule' => [ + Elm::input('svip_number1', '有效期(天)','永久期')->disabled(true), + Elm::input('svip_number', '有效期(天)','永久期')->hiddenStatus(true), + ] + ], + ])->appendRule('suffix', [ + 'type' => 'div', + 'style' => ['color' => '#999999'], + 'domProps' => [ + 'innerHTML' =>'试用期每个用户只能购买一次,购买过付费会员之后将不在展示,不可购买', + ] + ]), + Elm::number('cost_price', '原价')->required(), + Elm::number('price', '优惠价')->required(), + Elm::number('sort', '排序'), + Elm::switches('status', '是否显示')->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + ]; + $form->setRule($rules); + if ($formData && $formData['svip_type'] == 3) $formData['svip_number'] = '永久期'; + return $form->setTitle(is_null($id) ? '添加' : '编辑')->formData($formData); + } } diff --git a/app/common/repositories/system/merchant/FinancialRecordRepository.php b/app/common/repositories/system/merchant/FinancialRecordRepository.php index 06904166..3b693f81 100644 --- a/app/common/repositories/system/merchant/FinancialRecordRepository.php +++ b/app/common/repositories/system/merchant/FinancialRecordRepository.php @@ -83,7 +83,7 @@ class FinancialRecordRepository extends BaseRepository //平台收入 $income = $this->dao->search($where)->where('financial_type','in',['order','order_presell','presell'])->sum('number'); //平台支出 - $expend = $this->dao->search($where)->where('financial_type','in',['brokerage_one','brokerage_two','order_true','refund_charge','presell_true'])->sum('number'); + $expend = $this->dao->search($where)->where('financial_type','in',['brokerage_one','brokerage_two','order_true','refund_charge','presell_true','order_platform_coupon','order_svip_coupon'])->sum('number'); $msg = '平台'; } $data = [ @@ -124,6 +124,8 @@ class FinancialRecordRepository extends BaseRepository $charge_ = $this->dao->search($where)->where('financial_type','in',['order_charge','presell_charge'])->sum('number'); $_charge = $this->dao->search($where)->where('financial_type','refund_charge')->sum('number'); $charge = bcsub($charge_,$_charge,2); + //优惠券费用 ,'order_platform_coupon','order_svip_coupon' + $coupon = $this->dao->search($where)->where('financial_type','in',['order_platform_coupon','order_svip_coupon'])->sum('number'); //充值金额 $bill_where = [ 'status' => 1, @@ -184,6 +186,12 @@ class FinancialRecordRepository extends BaseRepository 'count' => $mer_number, 'field' => '个', 'name' => '产生交易的商户数' + ], + [ + 'className' => 'el-icon-s-goods', + 'count' => $coupon, + 'field' => '元', + 'name' => '优惠券金额' ] ]; return compact('stat'); @@ -200,6 +208,8 @@ class FinancialRecordRepository extends BaseRepository { //商户收入 $count = $this->dao->search($where)->where('financial_type','in',['order','mer_presell'])->sum('number'); + //平台优惠券 + $coupon = $this->dao->search($where)->where('financial_type','in',['order_platform_coupon','order_svip_coupon'])->sum('number'); //商户余额 $mer_money = app()->make(MerchantRepository::class)->search(['mer_id' => $where['is_mer']])->value('mer_money'); //最低提现额度 @@ -217,7 +227,7 @@ class FinancialRecordRepository extends BaseRepository $order_charge = $this->dao->search($where)->where('financial_type','refund_charge')->sum('number'); $charge = bcsub($refund_true,$order_charge,2); //商户可提现金额 - $bill_order = app()->make(StoreOrderRepository::class)->search(['paid' => 1,'date' => $where['date'],'pay_type' => 0])->sum('pay_price'); +// $bill_order = app()->make(StoreOrderRepository::class)->search(['paid' => 1,'date' => $where['date'],'pay_type' => 0])->sum('pay_price'); $merLockMoney = app()->make(UserBillRepository::class)->merchantLickMoney($where['is_mer']); $stat = [ [ @@ -256,6 +266,12 @@ class FinancialRecordRepository extends BaseRepository 'field' => '元', 'name' => '平台手续费' ], + [ + 'className' => 'el-icon-s-cooperation', + 'count' => $coupon, + 'field' => '元', + 'name' => '平台优惠券补贴' + ], [ 'className' => 'el-icon-s-cooperation', 'count' => $merLockMoney, @@ -295,10 +311,9 @@ class FinancialRecordRepository extends BaseRepository $query = $this->dao->search($where)->field($field)->group("time")->order('create_time DESC'); $count = $query->count(); - $list = $query->page($page,$limit)->select() - ->each(function ($item) use($where,$make){ - $key = $where['is_mer'] ? $where['is_mer'].'_financial_record_list_'.$item['time'] : 'sys_financial_record_list_'.$item['time']; + $list = $query->page($page,$limit)->select()->each(function ($item) use($where){ + $key = $where['is_mer'] ? $where['is_mer'].'_financial_record_list_'.$item['time'] : 'sys_financial_record_list_'.$item['time']; if(($where['type'] == 1 && ($item['time'] == date('Y-m-d',time()))) || ($where['type'] == 2 && ($item['time'] == date('Y-m',time())))){ $income = ($this->countIncome($where['type'],$where,$item['time']))['number'] ; $expend = ($this->countExpend($where['type'],$where,$item['time']))['number'] ; @@ -352,6 +367,7 @@ class FinancialRecordRepository extends BaseRepository 'data' => [ ['订单支付', $income['number_order'].'元', $income['count_order'].'笔'], ['退回优惠券补贴', $income['number_coupon'].'元', $income['count_coupon'].'笔'], + ['退回会员优惠券补贴', $income['number_svipcoupon'].'元', $income['count_svipcoupon'].'笔'], ] ]; $data['bill'] = [ @@ -369,6 +385,7 @@ class FinancialRecordRepository extends BaseRepository ['佣金', $expend['number_brokerage'] .'元', $expend['count_brokerage'].'笔'], ['返还手续费', $expend['number_charge'] .'元', $expend['count_charge'].'笔'], ['优惠券补贴',$expend['number_coupon'] .'元', $expend['count_coupon'].'笔'], + ['会员优惠券补贴',$expend['number_svipcoupon'] .'元', $expend['count_svipcoupon'].'笔'], ] ]; $data['charge'] = [ @@ -404,6 +421,7 @@ class FinancialRecordRepository extends BaseRepository 'data' => [ ['订单支付', $income['number_order'].'元', $income['count_order'].'笔'], ['优惠券补贴', $income['number_coupon'].'元', $income['count_coupon'].'笔'], + ['会员优惠券补贴', $income['number_svipcoupon'].'元', $income['count_svipcoupon'].'笔'], ] ]; $data['expend'] = [ @@ -431,6 +449,11 @@ class FinancialRecordRepository extends BaseRepository $expend['number_coupon'] .'元', $expend['count_coupon'].'笔' ], + [ + '退还会员优惠券补贴', + $expend['number_svipcoupon'] .'元', + $expend['count_svipcoupon'].'笔' + ], ] ]; $data['charge'] = [ @@ -462,6 +485,13 @@ class FinancialRecordRepository extends BaseRepository } [ $data['count_coupon'], $data['number_coupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); + if ($where['is_mer']){ + $financialType = ['order_svip_coupon']; + } else { + $financialType = ['refund_svip_coupon']; + } + [ $data['count_svipcoupon'], $data['number_svipcoupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); + $data['count'] = $data['count_order']; $data['number'] = bcadd($data['number_coupon'],$data['number_order'],2); @@ -495,7 +525,7 @@ class FinancialRecordRepository extends BaseRepository } /** - * TODO 平台总支付 + * TODO 平台总支出 * @param $type * @param $date * @return array @@ -535,6 +565,9 @@ class FinancialRecordRepository extends BaseRepository //退回给平台的优惠券金额 $financialType = ['refund_platform_coupon']; [$data['count_coupon'], $data['number_coupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); + //退回给平台的会员优惠券金额 + $financialType = ['refund_svip_coupon']; + [$data['count_svipcoupon'], $data['number_svipcoupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); //佣金 brokerage_one,brokerage_two - 退回佣金 refund_brokerage_two,refund_brokerage_one ) $number = bcsub($data['number_brokerage'],$data['number_refund_brokerage'],3); @@ -543,9 +576,9 @@ class FinancialRecordRepository extends BaseRepository $number_1 = bcsub($data['number_order_charge'],$data['number_charge'],3); //退回收入 refund_order + 退回佣金 - $number_2 = bcadd($data['number_refund'],$data['number_coupon'],2); + $number_2 = bcadd(bcadd($data['number_refund'],$data['number_coupon'],2),$data['number_svipcoupon'],2); - $data['count'] = $data['count_brokerage'] + $data['count_refund'] + $data['count_order_charge'] + $data['count_refund'] + $data['count_refund_brokerage']; + $data['count'] = $data['count_brokerage'] + $data['count_refund'] + $data['count_order_charge'] + $data['count_refund'] + $data['count_refund_brokerage'] + $data['count_svipcoupon']; $data['number'] =bcadd(bcadd($number_2,$number,3),$number_1,2); }else{ //平台的 @@ -558,8 +591,12 @@ class FinancialRecordRepository extends BaseRepository $financialType = ['order_platform_coupon']; [$data['count_coupon'], $data['number_coupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); - $number = bcadd($data['number_brokerage'],$data['number_order'],3); - $number_1 = bcadd($number,$data['number_coupon'],3); + //付给商户的svip优惠券抵扣金额 + $financialType = ['order_svip_coupon']; + [$data['count_svipcoupon'], $data['number_svipcoupon']] = $this->dao->getDataByType($type, $where, $date, $financialType); + + $number = bcadd($data['number_brokerage'],$data['number_order'],2); + $number_1 = bcadd(bcadd($number,$data['number_coupon'],2),$data['number_svipcoupon'],2); $data['count'] = $data['count_brokerage'] + $data['count_order'] + $data['count_charge']; $data['number'] = bcadd($number_1,$data['number_charge'],2); diff --git a/app/common/repositories/system/merchant/MerchantApplymentsRepository.php b/app/common/repositories/system/merchant/MerchantApplymentsRepository.php index e71d03b8..ef30dede 100644 --- a/app/common/repositories/system/merchant/MerchantApplymentsRepository.php +++ b/app/common/repositories/system/merchant/MerchantApplymentsRepository.php @@ -15,6 +15,7 @@ namespace app\common\repositories\system\merchant; use app\common\dao\system\merchant\MerchantAppymentsDao; use app\common\model\system\merchant\MerchantApplyments; use app\common\repositories\BaseRepository; +use crmeb\jobs\SendSmsJob; use crmeb\services\ImageWaterMarkService; use crmeb\services\SmsService; use crmeb\services\UploadService; @@ -488,7 +489,6 @@ class MerchantApplymentsRepository extends BaseRepository public function sendSms(MerchantApplyments $ret,$type) { if(!systemConfig('applyments_sms')) return ; - $sms = SmsService::create(); $info = json_decode($ret['info']); switch ($type) { @@ -508,11 +508,7 @@ class MerchantApplymentsRepository extends BaseRepository return ; break; } - try{ - $sms->send($info->contact_info->mobile_phone, $tmp, ['mer_name' => $info->merchant_shortname]); - } catch (Exception $exception) { - - } + Queue::push(SendSmsJob::class,['tempId' => $tmp, 'id' => ['phone'=> $info->contact_info->mobile_phone, 'mer_name' => $info->merchant_shortname]]); } /** diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php b/app/common/repositories/system/merchant/MerchantIntentionRepository.php index 484bdd7a..b4632868 100644 --- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php +++ b/app/common/repositories/system/merchant/MerchantIntentionRepository.php @@ -113,9 +113,9 @@ class MerchantIntentionRepository extends BaseRepository $margin = app()->make(MerchantTypeRepository::class)->get($intention['mer_type_id']); $data['is_margin'] = $margin['is_margin'] ?? -1; $data['margin'] = $margin['margin'] ?? 0; - $merData = $smsData = []; + $merData = []; if ($create) { - $password = substr(md5(time() . $intention['phone']), 0, 8); + $password = substr($intention['phone'], -6); $merData = [ 'mer_name' => $intention['mer_name'], 'mer_phone' => $intention['phone'], @@ -132,32 +132,34 @@ class MerchantIntentionRepository extends BaseRepository 'margin' => $margin['margin'] ?? 0 ]; if ($data['status'] == 1) { + $data['fail_msg'] = ''; $smsData = [ 'date' => date('m月d日', strtotime($intention->create_time)), 'mer' => $intention['mer_name'], 'phone' => $intention['phone'], - 'pwd' => $password, + 'pwd' => $password ?? '', 'site_name' => systemConfig('site_name'), ]; - } else { - $smsData = [ - 'date' => date('m月d日', strtotime($intention->create_time)), - 'mer' => $intention['mer_name'], - 'site' => systemConfig('site_name'), - ]; } } + if ($data['status'] == 2) { + $smsData = [ + 'phone' => $intention['phone'], + 'date' => date('m月d日', strtotime($intention->create_time)), + 'mer' => $intention['mer_name'], + 'site' => systemConfig('site_name'), + ]; + } Db::transaction(function () use ($config, $intention, $data, $create,$margin,$merData,$smsData) { if ($data['status'] == 1) { - $data['fail_mag'] = ''; if ($create) { $merchant = app()->make(MerchantRepository::class)->createMerchant($merData); $data['mer_id'] = $merchant->mer_id; - SmsService::create()->send($intention['phone'], 'APPLY_MER_SUCCESS', $smsData); + Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_SUCCESS', 'id' => $smsData]); } } else { - SmsService::create()->send($intention['phone'], 'APPLY_MER_FAIL', $smsData); + Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_FAIL', 'id' => $smsData]); } $intention->save($data); }); diff --git a/app/common/repositories/system/merchant/MerchantRepository.php b/app/common/repositories/system/merchant/MerchantRepository.php index 9d9171f7..74f05ce3 100644 --- a/app/common/repositories/system/merchant/MerchantRepository.php +++ b/app/common/repositories/system/merchant/MerchantRepository.php @@ -130,6 +130,8 @@ class MerchantRepository extends BaseRepository })->requiredNum(), Elm::select('type_id', '店铺类型')->disabled($is_margin)->options($options)->requiredNum()->col(12)->control($margin), + + Elm::cascader('geo_street', '商圈')->options(function () { $slect=Db::name('geo_area')->where('city_code','510500') ->withAttr('children',function ($value,$data){ @@ -248,6 +250,7 @@ class MerchantRepository extends BaseRepository $account = $data['mer_account']; $password = $data['mer_password']; unset($data['mer_account'], $data['mer_password']); + $merchant = $this->dao->create($data); $make->createMerchantAccount($merchant, $account, $password); Db::name('merchant_address')->insert(['mer_id'=>$merchant->mer_id,'street_id'=>$data['geo_street']]); @@ -295,7 +298,10 @@ class MerchantRepository extends BaseRepository if ($status && $item['lat'] && $item['long'] && isset($where['location']['lat'], $where['location']['long'])) { $distance = getDistance($where['location']['lat'], $where['location']['long'], $item['lat'], $item['long']); if ($distance < 0.9) { - $distance = max(bcmul($distance, 1000, 0), 1) . 'm'; + $distance = max(bcmul($distance, 1000, 0), 1).'m'; + if ($distance == '1m') { + $distance = '100m以内'; + } } else { $distance .= 'km'; } diff --git a/app/common/repositories/system/notice/SystemNoticeConfigRepository.php b/app/common/repositories/system/notice/SystemNoticeConfigRepository.php index 698dd4d9..a4772cb0 100644 --- a/app/common/repositories/system/notice/SystemNoticeConfigRepository.php +++ b/app/common/repositories/system/notice/SystemNoticeConfigRepository.php @@ -16,6 +16,9 @@ namespace app\common\repositories\system\notice; use app\common\dao\system\notice\SystemNoticeConfigDao; use app\common\repositories\BaseRepository; +use crmeb\exceptions\WechatException; +use crmeb\services\MiniProgramService; +use crmeb\services\WechatService; use FormBuilder\Factory\Elm; use think\exception\ValidateException; use think\facade\Route; @@ -38,7 +41,7 @@ class SystemNoticeConfigRepository extends BaseRepository { $query = $this->dao->getSearch($where); $count = $query->count(); - $list = $query->page($page, $limit)->order('create_time DESC')->select(); + $list = $query->page($page, $limit)->order('create_time ASC')->select(); return compact('count', 'list'); } @@ -82,6 +85,9 @@ class SystemNoticeConfigRepository extends BaseRepository ['value' => 0, 'label' => '用户'], ['value' => 1, 'label' => '商户'], ])->requiredNum(), + Elm::textarea('sms_content','短信内容'), + Elm::textarea('wechat_content','公众号模板内容'), + Elm::textarea('routine_content','小程序订阅消息内容'), ]); return $form->setTitle(is_null($id) ? '添加通知' : '编辑通知')->formData($formData); @@ -143,40 +149,130 @@ class SystemNoticeConfigRepository extends BaseRepository return $this->dao->getNoticeStatusByKey($key, 'notice_routine'); } + public function getSmsTemplate(string $key) + { + $temp = $this->dao->getWhere(['const_key' => $key]); + + if ($temp && $temp['notice_sms'] == 1) { + return systemConfig('sms_use_type') == 2 ? $temp['sms_ali_tempid'] : $temp['sms_tempid']; + } + return ''; + } + /** - * TODO 编辑阿里云短信模板ID + * TODO 编辑消息模板ID * @param $id * @return \FormBuilder\Form * @author Qinii * @day 6/9/22 */ - public function getTemplateIdForm($id) + public function changeForm($id) { $formData = $this->dao->get($id); - if ($formData['notice_sms'] == -1) - throw new ValidateException('此项无短信消息'); + if (!$formData) throw new ValidateException('数据不存在'); $form = Elm::createForm(Route::buildUrl('systemNoticeConfigSetChangeTempId', ['id' => $id])->build()); - + $children = []; + $value = ''; + if ($formData->notice_sms != -1) { + $value = 'sms'; + if (systemConfig('sms_use_type') == 2) { + $sms = [ + 'type' => 'el-tab-pane', + 'props' => [ + 'label' => '阿里云短信', + 'name' => 'sms' + ], + 'children' =>[ + Elm::input('title','通知类型', $formData->notice_title)->disabled(true), + Elm::input('info','场景说明', $formData->notice_info)->disabled(true), + Elm::input('sms_ali_tempid','短信模板ID'), + Elm::input('notice_info','短信说明')->disabled(true), + Elm::textarea('sms_content','短信内容')->disabled(true), + Elm::switches('notice_sms', '是否开启', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + ] + ]; + } else { + $sms = [ + 'type' => 'el-tab-pane', + 'props' => [ + 'label' => '一号通短信', + 'name' => 'sms' + ], + 'children' =>[ + Elm::input('title','通知类型', $formData->notice_title)->disabled(true), + Elm::input('info','场景说明', $formData->notice_info)->disabled(true), + Elm::input('sms_tempid','短信模板ID'), + Elm::input('notice_info','短信说明')->disabled(true), + Elm::textarea('sms_content','短信内容')->disabled(true), + Elm::switches('notice_sms', '是否开启', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + ] + ]; + } + $children[] = $sms; + } + if ($formData->notice_wechat != -1 && $formData->wechatTemplate ) { + if (!$value) $value = 'wechat'; + $children[] = [ + 'type' => 'el-tab-pane', + 'props' => [ + 'label' => '模板消息', + 'name' => 'wechat' + ], + 'children' =>[ + Elm::input('title1','通知类型', $formData->wechatTemplate->name)->disabled(true), + Elm::input('info1','场景说明', $formData->notice_info)->disabled(true), + Elm::input('wechat_tempkey','模板消息编号', $formData->wechatTemplate->tempkey)->disabled(true), + Elm::input('wechat_tempid','模板消息ID', $formData->wechatTemplate->tempid), + Elm::textarea('wechat_content','模板消息内容', $formData->wechatTemplate->content)->disabled(true), + Elm::switches('notice_wechat', '是否开启', 1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + ] + ]; + } + if ($formData->notice_routine != -1 && $formData->routineTemplate) { + if (!$value) $value = 'routine'; + $children[] = [ + 'type' => 'el-tab-pane', + 'props' => [ + 'label' => '订阅消息', + 'name' => 'routine' + ], + 'children' =>[ + Elm::input('title2','通知类型', $formData->routineTemplate->name)->disabled(true), + Elm::input('info2','场景说明', $formData->notice_info)->disabled(true), + Elm::input('routine_tempkey','订阅消息编号', $formData->routineTemplate->tempkey)->disabled(true), + Elm::input('routine_tempid','订阅消息ID', $formData->routineTemplate->tempid), + Elm::textarea('routine_content','订阅消息内容', $formData->routineTemplate->content)->disabled(true), + Elm::switches('notice_routine', '是否开启', $formData->notice_routine)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + ] + ]; + } $form->setRule([ - Elm::input('notice_title','消息名称')->disabled(true), - Elm::input('aliyun_temp_id','阿里云模板ID'), - Elm::input('notice_info','消息说明'), - Elm::textarea('sms_content','短信内容')->disabled(true), - Elm::switches('status','状态',1)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + [ + 'type' => 'el-tabs', + 'native' => true, + 'props' => [ + 'value' => $value + ], + 'children' => $children + ] ]); - - return $form->setTitle( '编辑短信ID')->formData($formData->toArray()); + return $form->setTitle( '编辑消息模板')->formData($formData->toArray()); } - public function getSmsTemplate(string $key) + public function save($id, $data) { - $temp = $this->dao->getWhere(['const_key' => $key]); - if ($temp && $temp['notice_sms'] == 1 && systemConfig('sms_use_type') == 2) { - return $temp['aliyun_temp_id']; - } else { - return ''; - } + $result = $this->dao->get($id); + if (isset($data['routine_tempid'])) { + $result->routineTemplate->tempid = $data['routine_tempid']; + $result->routineTemplate->save(); + unset($data['routine_tempid']); + } + if (isset($data['wechat_tempid'])) { + $result->wechatTemplate->tempid = $data['wechat_tempid']; + $result->wechatTemplate->save(); + unset($data['wechat_tempid']); + } + if (!empty($data)) $this->dao->update($id,$data); + } - - } diff --git a/app/common/repositories/system/serve/ServeOrderRepository.php b/app/common/repositories/system/serve/ServeOrderRepository.php index 6b144476..172d760e 100644 --- a/app/common/repositories/system/serve/ServeOrderRepository.php +++ b/app/common/repositories/system/serve/ServeOrderRepository.php @@ -11,10 +11,14 @@ namespace app\common\repositories\system\serve; +use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody\data; use app\common\dao\system\serve\ServeOrderDao; +use app\common\model\system\serve\ServeOrder; use app\common\repositories\BaseRepository; use app\common\repositories\store\product\ProductCopyRepository; use app\common\repositories\system\merchant\MerchantRepository; +use app\common\repositories\user\UserRepository; +use crmeb\services\CombinePayService; use crmeb\services\PayService; use think\exception\ValidateException; use think\facade\Cache; @@ -29,6 +33,15 @@ class ServeOrderRepository extends BaseRepository { $this->dao = $dao; } + //复制商品 + const TYPE_COPY_PRODUCT = 1; + //电子面单 + const TYPE_DUMP = 2; + //保证金 margin + const TYPE_MARGIN = 10; + //同城配送delivery + const TYPE_DELIVERY = 20; + /** * TODO 购买一号通 支付 @@ -100,9 +113,7 @@ class ServeOrderRepository extends BaseRepository public function delivery($merId, $data) { $key = 'Delivery_'.$merId.'_'.md5(date('YmdH',time()).$data['price']); - $arr = [ - 'price' => $data['price'] - ]; + $arr = ['price' => $data['price']]; $param = [ 'status' => 0, 'is_del' => 0, @@ -125,11 +136,11 @@ class ServeOrderRepository extends BaseRepository $param = $res['param']; if(!$result = Cache::store('file')->get($key)){ - $order_sn = $this->setOrderSn(); + $order_sn = $this->setOrderSn(null); $param['order_sn'] = $order_sn; $param['body'] = $order_sn; - $type = $data['pay_type'] == 1 ? 'weixinQr' : 'alipayQr'; - $service = new PayService($type,$param); + $payType = $data['pay_type'] == 1 ? 'weixinQr' : 'alipayQr'; + $service = new PayService($payType,$param); $code = $service->pay(null); $endtime = time() + 1800 ; @@ -148,29 +159,28 @@ class ServeOrderRepository extends BaseRepository public function paySuccess($data) { - $dat = Cache::store('file')->get($data['order_sn']); $get = $this->dao->getWhere(['order_sn' => $data['order_sn']]); if(!$get){ - Db::transaction(function () use($data, $dat){ - - $key = $dat['key']; - unset($dat['attach'],$dat['body'],$dat['key']); - - $dat['status'] = 1; - $this->dao->create($dat); - $this->payAfter($dat); + $dat = Cache::store('file')->get($data['order_sn']); + $key = $dat['key']; + unset($dat['attach'],$dat['body'],$dat['key']); + $dat['status'] = 1; + $dat['pay_time'] = date('y_m-d H:i:s', time()); + Db::transaction(function () use($data, $dat,$key){ + $res = $this->dao->create($dat); + $this->payAfter($dat,$res); Cache::store('file')->delete($data['order_sn']); Cache::store('file')->delete($key); }); } } - public function payAfter($dat) + public function payAfter($dat, $ret = null) { $info = json_decode($dat['order_info']); switch ($dat['type']) { - case 1: + case self::TYPE_COPY_PRODUCT: app()->make(ProductCopyRepository::class)->add([ 'type' => 'pay_copy', 'num' => $info->num, @@ -178,15 +188,10 @@ class ServeOrderRepository extends BaseRepository 'message' => '购买复制商品套餐' , ],$dat['mer_id']); break; - case 2: - app()->make(ProductCopyRepository::class)->add([ - 'type' => 'pay_dump', - 'num' => $info->num, - 'info' => $dat['order_info'], - 'message' => '购买电子面单套餐', - ],$dat['mer_id']); + case self::TYPE_DUMP: + app()->make(ProductCopyRepository::class)->add(['type' => 'pay_dump', 'num' => $info->num, 'info' => $dat['order_info'], 'message' => '购买电子面单套餐',],$dat['mer_id']); break; - case 10: + case self::TYPE_MARGIN: $res = app()->make(MerchantRepository::class)->get($dat['mer_id']); if (bccomp($res['margin'] , $dat['pay_price'], 2) === 0) { $res->ot_margin = $res['margin']; @@ -196,7 +201,7 @@ class ServeOrderRepository extends BaseRepository } $res->save(); break; - case 20: + case self::TYPE_DELIVERY: $res = app()->make(MerchantRepository::class)->get($dat['mer_id']); if ($res) { $res->delivery_balance = bcadd($res->delivery_balance, $dat['pay_price'],2); @@ -204,7 +209,6 @@ class ServeOrderRepository extends BaseRepository } else { Log::info('同城配送充值异常 :'. json_encode($dat)); } - break; default: break; @@ -212,11 +216,11 @@ class ServeOrderRepository extends BaseRepository return ; } - public function setOrderSn() + public function setOrderSn($profix) { list($msec, $sec) = explode(' ', microtime()); $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', ''); - $orderId = 'cs' . $msectime . mt_rand(10000, max(intval($msec * 10000) + 10000, 98369)); + $orderId = ($profix ?:'cs') . $msectime . mt_rand(10000, max(intval($msec * 10000) + 10000, 98369)); return $orderId; } @@ -233,5 +237,4 @@ class ServeOrderRepository extends BaseRepository $list = $query->page($page, $limit)->select(); return compact('count','list'); } - } diff --git a/app/common/repositories/user/MemberinterestsRepository.php b/app/common/repositories/user/MemberinterestsRepository.php index 10d2ca74..32376369 100644 --- a/app/common/repositories/user/MemberinterestsRepository.php +++ b/app/common/repositories/user/MemberinterestsRepository.php @@ -26,6 +26,31 @@ use think\facade\Route; class MemberinterestsRepository extends BaseRepository { + const TYPE_FREE = 1; + //付费会员 + const TYPE_SVIP = 2; + + const HAS_TYPE_PRICE = 1; + + const HAS_TYPE_SIGN = 2; + + const HAS_TYPE_PAY = 3; + + const HAS_TYPE_SERVICE = 4; + + const HAS_TYPE_MEMBER = 5; + + const HAS_TYPE_COUPON = 6; + + //签到收益 + const INTERESTS_TYPE = [ + 1 => ['label'=> '会员特价', 'msg' => ''], + 2 => ['label'=> '签到返利' , 'msg' => '积分倍数' ], + 3 => ['label'=> '消费返利' , 'msg' => '积分倍数' ], + 4 => ['label'=> '专属客服' , 'msg' => '' ], + 5 => ['label'=> '经验翻倍' , 'msg' => '经验翻倍' ], + 6 => ['label'=> '会员优惠券', 'msg' => ''], + ]; public function __construct(MemberInterestsDao $dao) { @@ -40,19 +65,22 @@ class MemberinterestsRepository extends BaseRepository return compact('count','list'); } - public function form(?int $id = null) + public function getSvipInterestVal($has_type) + { + return max(((float)$this->dao->query(['status' => 1])->where('has_type', $has_type)->where('type', 2)->value('value')) ?: 0, 0); + } + + public function form(?int $id = null, $type = self::TYPE_FREE) { $formData = []; if ($id) { - $form = Elm::createForm(Route::buildUrl('systemUserMemberInterestsUpdate', ['id' => $id])->build()); $data = $this->dao->get($id); if (!$data) throw new ValidateException('数据不存在'); + $form = Elm::createForm(Route::buildUrl('systemUserMemberInterestsUpdate', ['id' => $id])->build()); $formData = $data->toArray(); - } else { $form = Elm::createForm(Route::buildUrl('systemUserMemberInterestsCreate')->build()); } - $rules = [ Elm::input('name', '权益名称')->required(), Elm::input('info', '权益简介')->required(), @@ -61,8 +89,8 @@ class MemberinterestsRepository extends BaseRepository ->modal(['modal' => false]) ->width('896px') ->height('480px'), - Elm::select('brokerage_level', '会员级别')->options(function () { - $options = app()->make(UserBrokerageRepository::class)->options(['type' => 1])->toArray(); + Elm::select('brokerage_level', '会员级别')->options(function () use($type){ + $options = app()->make(UserBrokerageRepository::class)->options(['type' => $type])->toArray(); return $options; }), ]; @@ -70,18 +98,52 @@ class MemberinterestsRepository extends BaseRepository return $form->setTitle(is_null($id) ? '添加权益' : '编辑权益')->formData($formData); } - public function getInterestsByLevel(int $level, int $type) + public function getInterestsByLevel(int $type, $level = 0) { - return []; - if (systemConfig('member_interests_status')) return []; - - $list = $this->dao->getSearch(['type' => $type])->select(); - foreach ($list as $item) { - $item['status'] = 0; - if ($item['brokerage_level'] <= $level) { - $item['status'] = 1; + if ($type == self::TYPE_FREE) { + $list = $this->dao->getSearch(['type' => $type])->select(); + foreach ($list as $item) { + $item['status'] = 0; + if ($item['brokerage_level'] <= $level) { + $item['status'] = 1; + } } + } else { + $list = $this->dao->getSearch(['type' => $type,'status' => 1])->select(); } return $list; } + + public function svipForm(int $id) + { + $data = $this->dao->get($id); + if (!$data) throw new ValidateException('数据不存在'); + $form = Elm::createForm(Route::buildUrl('systemUserSvipInterestsUpdate', ['id' => $id])->build()); + $formData = $data->toArray(); + $rules = [ + Elm::select('has_type', '权益名称')->options(function(){ + foreach (self::INTERESTS_TYPE as $k => $v) { + $res[] = ['value' => $k, 'label' => $v['label']]; + } + return $res; + })->disabled(true), + Elm::input('name', '展示名称')->required(), + Elm::input('info', '权益简介')->required(), + Elm::frameImage('pic', '未开通图标', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=pic&type=1') + ->value($formData['pic'] ?? '')->required() + ->modal(['modal' => false]) + ->width('896px') + ->height('480px'), + Elm::frameImage('on_pic', '已开通图标', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=on_pic&type=1') + ->value($formData['on_pic'] ?? '')->required() + ->modal(['modal' => false]) + ->width('896px') + ->height('480px'), + Elm::input('link', '跳转内部链接'), + ]; + $msg = self::INTERESTS_TYPE[$formData['has_type']]['msg']; + if ($msg) $rules[] = Elm::number('value',$msg,0); + $form->setRule($rules); + return $form->setTitle('编辑会员权益')->formData($formData); + } } diff --git a/app/common/repositories/user/UserBillRepository.php b/app/common/repositories/user/UserBillRepository.php index 1e1ef3b9..467073d2 100644 --- a/app/common/repositories/user/UserBillRepository.php +++ b/app/common/repositories/user/UserBillRepository.php @@ -17,12 +17,8 @@ namespace app\common\repositories\user; use app\common\dao\BaseDao; use app\common\dao\user\UserBillDao; use app\common\repositories\BaseRepository; -use app\common\repositories\store\order\StoreOrderRepository; -use app\common\repositories\store\order\StoreRefundOrderRepository; use app\common\repositories\store\product\ProductRepository; -use app\common\repositories\system\merchant\MerchantRepository; -use crmeb\jobs\SendTemplateMessageJob; -use think\exception\ValidateException; +use crmeb\jobs\SendSmsJob; use think\facade\Queue; use think\Model; @@ -132,8 +128,7 @@ class UserBillRepository extends BaseRepository $data['pm'] = $pm; $bill = $this->dao->create($data); if($category == 'now_money'){ - $tempData = ['tempCode' => 'USER_BALANCE_CHANGE','id' => $bill->bill_id]; - Queue::push(SendTemplateMessageJob::class,$tempData); + Queue::push(SendSmsJob::class,['tempId' => 'USER_BALANCE_CHANGE','id' => $bill->bill_id]); } return $bill; } diff --git a/app/common/repositories/user/UserBrokerageRepository.php b/app/common/repositories/user/UserBrokerageRepository.php index a15a5ac3..970c58cf 100644 --- a/app/common/repositories/user/UserBrokerageRepository.php +++ b/app/common/repositories/user/UserBrokerageRepository.php @@ -177,6 +177,13 @@ class UserBrokerageRepository extends BaseRepository ]; $inc = systemConfig($type) > 0 ? systemConfig($type) : 0; $user = app()->make(UserRepository::class)->getWhere(['uid' => $uid],'*',['member']); + $svip_status = $user->is_svip > 0 && systemConfig('svip_switch_status') == '1'; + if ($svip_status) { + $svipRate = app()->make(MemberinterestsRepository::class)->getSvipInterestVal(MemberinterestsRepository::HAS_TYPE_MEMBER); + if ($svipRate > 0) { + $inc = bcmul($svipRate, $inc, 0); + } + } $this->checkMemberValue($user, $inc); $make->incBill($user->uid, 'sys_members', $type, [ 'number' => $inc, diff --git a/app/common/repositories/user/UserExtractRepository.php b/app/common/repositories/user/UserExtractRepository.php index 3b158edf..24fafc93 100644 --- a/app/common/repositories/user/UserExtractRepository.php +++ b/app/common/repositories/user/UserExtractRepository.php @@ -15,7 +15,7 @@ namespace app\common\repositories\user; use app\common\repositories\BaseRepository; use app\common\dao\user\UserExtractDao as dao; use app\common\repositories\wechat\WechatUserRepository; -use crmeb\jobs\SendTemplateMessageJob; +use crmeb\jobs\SendSmsJob; use crmeb\services\SwooleTaskService; use crmeb\services\WechatService; use think\exception\ValidateException; @@ -135,7 +135,6 @@ class UserExtractRepository extends BaseRepository public function switchStatus($id,$data) { - $extract = $this->dao->getWhere(['extract_id' => $id]); $user = app()->make(UserRepository::class)->get($extract['uid']); if(!$user) throw new ValidateException('用户不存在'); @@ -168,10 +167,7 @@ class UserExtractRepository extends BaseRepository event('user.extractStatus',compact('id','userExtract')); }); - Queue::push(SendTemplateMessageJob::class,[ - 'tempCode' => 'EXTRACT_NOTICE', - 'id' =>$id - ]); + Queue::push(SendSmsJob::class,['tempId' => 'EXTRACT_NOTICE', 'id' =>$id]); } public function createSn() diff --git a/app/common/repositories/user/UserMerchantRepository.php b/app/common/repositories/user/UserMerchantRepository.php index d9b7cd3b..27d326a5 100644 --- a/app/common/repositories/user/UserMerchantRepository.php +++ b/app/common/repositories/user/UserMerchantRepository.php @@ -43,7 +43,7 @@ class UserMerchantRepository extends BaseRepository $query = $this->dao->search($where); $count = $query->count(); $make = app()->make(UserLabelRepository::class); - $list = $query->setOption('field', [])->field('A.uid,A.user_merchant_id,B.avatar,B.nickname,B.user_type,A.last_pay_time,A.first_pay_time,A.label_id,A.create_time,A.last_time,A.pay_num,A.pay_price') + $list = $query->setOption('field', [])->field('A.uid,A.user_merchant_id,B.avatar,B.nickname,B.user_type,A.last_pay_time,A.first_pay_time,A.label_id,A.create_time,A.last_time,A.pay_num,A.pay_price,B.phone,B.is_svip,B.svip_endtime') ->page($page, $limit)->order('A.user_merchant_id DESC')->select()->each(function ($item) use ($where, $make) { return $item->label = count($item['label_id']) ? $make->labels($item['label_id'], $where['mer_id']) : []; }); diff --git a/app/common/repositories/user/UserOrderRepository.php b/app/common/repositories/user/UserOrderRepository.php new file mode 100644 index 00000000..5641758e --- /dev/null +++ b/app/common/repositories/user/UserOrderRepository.php @@ -0,0 +1,184 @@ + +// +---------------------------------------------------------------------- + + +namespace app\common\repositories\user; + + +use app\common\dao\user\LabelRuleDao; +use app\common\dao\user\UserOrderDao; +use app\common\repositories\BaseRepository; +use app\common\repositories\system\groupData\GroupDataRepository; +use crmeb\jobs\SendSmsJob; +use crmeb\services\PayService; +use FormBuilder\Factory\Elm; +use think\facade\Db; +use think\facade\Log; +use think\facade\Queue; + +/** + * Class LabelRuleRepository + * @package app\common\repositories\user + * @author xaboy + * @day 2020/10/20 + * @mixin LabelRuleDao + */ +class UserOrderRepository extends BaseRepository +{ + + //付费会员 + const TYPE_SVIP = 'S-'; + + /** + * LabelRuleRepository constructor. + * @param LabelRuleDao $dao + */ + public function __construct(UserOrderDao $dao) + { + $this->dao = $dao; + } + + public function getList(array $where, $page, $limit) + { + $query = $this->dao->search($where); + $count = $query->count(); + $list = $query->with([ + 'user' => function($query){ + $query->field('uid,nickname,avatar,phone,is_svip,svip_endtime'); + } + ])->order('create_time DESC')->page($page, $limit)->select()->toArray(); + return compact('count', 'list'); + } + + /** + * TODO 获取订单号 + * @return string + * @author Qinii + * @day 2022/11/12 + */ + public function setOrderSn() + { + list($msec, $sec) = explode(' ', microtime()); + $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', ''); + $orderId = 'wxs' . $msectime . mt_rand(10000, max(intval($msec * 10000) + 10000, 98369)); + return $orderId; + } + + /** + * @param $data + * @return mixed + * @author xaboy + * @day 2020/10/21 + */ + public function add($res, $user, $params) + { + $order_sn = $this->setOrderSn(); + $data = [ + 'title' => $res['value']['svip_name'], + 'link_id' => $res->group_data_id, + 'order_sn' => $order_sn, + 'pay_price' => $res['value']['price'], + 'order_info' => json_encode($res['value'],JSON_UNESCAPED_UNICODE), + 'uid' => $user->uid, + 'order_type' => self::TYPE_SVIP.$res['value']['svip_type'], + 'pay_type' => $res['value']['price'] == 0 ? 'free' : $params['pay_type'], + 'status' => 1, + 'other' => $user->is_svip == -1 ? 'first' : '', + ]; + $body = [ + 'order_sn' => $order_sn, + 'pay_price' => $data['pay_price'], + 'attach' => 'user_order', + 'body' =>'付费会员' + ]; + $type = $params['pay_type']; + if (in_array($type, ['weixin', 'alipay'], true) && $params['is_app']) { + $type .= 'App'; + } + if ($params['return_url'] && $type === 'alipay') $body['return_url'] = $params['return_url']; + $info = $this->dao->create($data); + if ($data['pay_price']){ + try { + $service = new PayService($type,$body); + $config = $service->pay($user); + return app('json')->status($type, $config + ['order_id' => $info->order_id]); + } catch (\Exception $e) { + return app('json')->status('error', $e->getMessage(), ['order_id' => $info->order_id]); + } + } else { + $res = $this->paySuccess($data); + return app('json')->status('success', ['order_id' => $info->order_id]); + } + } + + public function paySuccess($data) + { + /* + array ( + 'order_sn' => 'wxs167090166498470921', + 'data' => + EasyWeChat\Support\Collection::__set_state(array( + 'items' => + array ( + 'appid' => 'wx4409eaedbd62b213', + 'attach' => 'user_order', + 'bank_type' => 'OTHERS', + 'cash_fee' => '1', + 'fee_type' => 'CNY', + 'is_subscribe' => 'N', + 'mch_id' => '1288093001', + 'nonce_str' => '6397efa100165', + 'openid' => 'oOdvCvjvCG0FnCwcMdDD_xIODRO0', + 'out_trade_no' => 'wxs167090166498470921', + 'result_code' => 'SUCCESS', + 'return_code' => 'SUCCESS', + 'sign' => '125C56DE030A461E45D421E44C88BC30', + 'time_end' => '20221213112118', + 'total_fee' => '1', + 'trade_type' => 'JSAPI', + 'transaction_id' => '4200001656202212131458556229', + ), + )), + */ + $res = $this->dao->getWhere(['order_sn' => $data['order_sn']]); + $type = explode('-',$res['order_type'])[0].'-'; + // 付费会员充值 + if ($type == self::TYPE_SVIP) { + return Db::transaction(function () use($data, $res) { + $res->paid = 1; + $res->pay_time = date('y_m-d H:i:s', time()); + $res->save(); + return $this->payAfter($res, $res); + }); + } + } + + public function payAfter($data, $ret) + { + $info = json_decode($data['order_info']); + $user = app()->make(UserRepository::class)->get($ret['uid']); + $day = $info->svip_type == 3 ? 0 : $info->svip_number; + $endtime = ($user['svip_endtime'] && $user['is_svip'] != 0) ? $user['svip_endtime'] : date('Y-m-d H:i:s',time()); + $svip_endtime = date('Y-m-d H:i:s',strtotime("$endtime +$day day" )); + + $user->is_svip = $info->svip_type; + $user->svip_endtime = $svip_endtime; + $user->save(); + $ret->status = 1; + $ret->pay_time = date('Y-m-d H:i:s',time()); + $ret->end_time = $svip_endtime; + $ret->save(); + $date = $info->svip_type == 3 ? '终身会员' : $svip_endtime; + Queue::push(SendSmsJob::class,['tempId' => 'SVIP_PAY_SUCCESS','id' => ['phone' => $user->phone, 'date' => $date]]); + return ; + } +} diff --git a/app/common/repositories/user/UserRechargeRepository.php b/app/common/repositories/user/UserRechargeRepository.php index 05f3b724..87546ebc 100644 --- a/app/common/repositories/user/UserRechargeRepository.php +++ b/app/common/repositories/user/UserRechargeRepository.php @@ -13,17 +13,12 @@ namespace app\common\repositories\user; - use app\common\dao\user\UserRechargeDao; use app\common\model\user\User; use app\common\model\user\UserRecharge; use app\common\repositories\BaseRepository; -use crmeb\jobs\SendTemplateMessageJob; -use crmeb\services\MiniProgramService; +use crmeb\jobs\SendSmsJob; use crmeb\services\PayService; -use crmeb\services\WechatService; -use EasyWeChat\Support\Collection; -use Exception; use think\facade\Db; use think\facade\Queue; @@ -132,10 +127,7 @@ class UserRechargeRepository extends BaseRepository $recharge->user->save(); $recharge->save(); }); - Queue::push(SendTemplateMessageJob::class,[ - 'tempCode' => 'USER_BALANCE_CHANGE', - 'id' =>$orderId - ]); + Queue::push(SendSmsJob::class,['tempId' => 'USER_BALANCE_CHANGE', 'id' =>$orderId]); event('user.recharge',compact('recharge')); } } diff --git a/app/common/repositories/user/UserRepository.php b/app/common/repositories/user/UserRepository.php index 846e5221..6adcc069 100644 --- a/app/common/repositories/user/UserRepository.php +++ b/app/common/repositories/user/UserRepository.php @@ -345,7 +345,7 @@ class UserRepository extends BaseRepository ['label' => '增加', 'value' => 1], ['label' => '减少', 'value' => 0], ])->requiredNum(), - Elm::number('now_money', '金额')->required()->min(0) + Elm::number('now_money', '金额')->required()->min(0)->max(999999) ])->setTitle('修改用户余额'); } @@ -356,7 +356,7 @@ class UserRepository extends BaseRepository ['label' => '增加', 'value' => 1], ['label' => '减少', 'value' => 0], ])->requiredNum(), - Elm::number('now_money', '积分')->required()->min(0) + Elm::number('now_money', '积分')->required()->min(0)->max(999999) ])->setTitle('修改用户积分'); } @@ -1368,4 +1368,74 @@ class UserRepository extends BaseRepository app()->make(CommunityRepository::class)->destoryByUid($uid); }); } + + public function svipForm(int $id) + { + $formData = $this->dao->get($id); + if (!$formData) throw new ValidateException('数据不存在'); + $form = Elm::createForm(Route::buildUrl('systemUserSvipUpdate', ['id' => $id])->build()); + $form->setRule([ + Elm::switches('is_svip', '付费会员', $formData->is_svip > 0 ? 1 : 0)->activeValue(1)->inactiveValue(0)->inactiveText('关')->activeText('开'), + Elm::radio('type', '修改类型', 1)->options([ + ['label' => '增加', 'value' => 1], + ['label' => '减少', 'value' => 0], + ])->requiredNum(), + Elm::number('add_time', '付费会员期限(天)')->required()->min(1), + Elm::input('end_time', '当前有效期期限', $formData->is_svip > 0 ? $formData->svip_endtime : 0)->disabled(true), + ]); + return $form->setTitle( '编辑付费会员期限' ); + } + + /** + * TODO 设置付费会员 + * @param $id + * @param $data + * @author Qinii + * @day 2022/11/22 + */ + public function svipUpdate($id, $data,$adminId) + { + $user = app()->make(UserRepository::class)->get($id); + if (!$user) throw new ValidateException('用户不存在'); + if ($user['is_svip'] < 1 && ($data['is_svip'] == 0 || !$data['type'])) + throw new ValidateException('该用户还不是付费会员'); + if ($user['is_svip'] == 3 && $data['is_svip'] == 1) + throw new ValidateException('该用户已是永久付费会员'); + if ($data['is_svip']) { + $day = ($data['type'] == 1 ? '+ ' : '- ').$data['add_time']; + $endtime = ($user['svip_endtime'] && $user['is_svip'] != 0) ? $user['svip_endtime'] : date('Y-m-d H:i:s',time()); + $is_svip = 1; + $svip_endtime = date('Y-m-d H:i:s',strtotime("$endtime $day day" )); + //结束时间小于当前 就关闭付费会员 + if (strtotime($svip_endtime) <= time()) { + $is_svip = 0; + } + } else { + $is_svip = 0; + $svip_endtime = date('Y-m-d H:i:s', time()); + } + $make = app()->make(UserOrderRepository::class); + $res = [ + 'title' => $data['is_svip'] == 0 ? '平台取消会员资格' : ($data['type'] ? '平台赠送' : '平台扣除'), + 'link_id' => 0, + 'order_sn' => $make->setOrderSn(), + 'pay_price' => 0, + 'order_info' => json_encode($data,JSON_UNESCAPED_UNICODE), + 'uid' => $id, + 'order_type' => UserOrderRepository::TYPE_SVIP . $is_svip, + 'pay_type' => 'sys', + 'status' => 1, + 'pay_time' => date('Y-m-d H:i:s',time()), + 'admin_id' => $adminId, + 'end_time' => $svip_endtime, + 'other' => $user->is_svip == -1 ? 'first' : '', + ]; + + Db::transaction(function () use($user, $res, $is_svip, $svip_endtime,$make) { + $make->create($res); + $user->is_svip = $is_svip; + $user->svip_endtime = $svip_endtime; + $user->save(); + }); + } } diff --git a/app/common/repositories/user/UserSignRepository.php b/app/common/repositories/user/UserSignRepository.php index e3ca033e..6f7ce703 100644 --- a/app/common/repositories/user/UserSignRepository.php +++ b/app/common/repositories/user/UserSignRepository.php @@ -87,33 +87,36 @@ class UserSignRepository extends BaseRepository * 计算用户剩余积分 * */ - return Db::transaction(function() use($uid){ - - $yesterday = date("Y-m-d",strtotime("-1 day")); - $sign_num = ($this->getSign($uid,$yesterday) ?: 0) + 1; - //签到规则计算 - $sign_task = $this->getDay($sign_num); - $integral = $sign_task['sign_integral']; - $user_make = app()->make(UserRepository::class); - $user = $user_make->get($uid); - $integral_ = $user['integral'] + $sign_task['sign_integral']; - $data = [ - 'uid' => $uid, - 'sign_num' => $sign_num, - 'number' => $sign_task['sign_integral'], - 'integral' => $integral_, - 'title' => '签到', - ]; - + $yesterday = date("Y-m-d",strtotime("-1 day")); + $sign_num = ($this->getSign($uid,$yesterday) ?: 0) + 1; + //签到规则计算 + $sign_task = $this->getDay($sign_num); + $user = app()->make(UserRepository::class)->get($uid); + $integral = $sign_task['sign_integral']; + if ($user->is_svip > 0) { + $makeInteres = app()->make(MemberinterestsRepository::class); + $integral = $integral * $makeInteres->getSvipInterestVal($makeInteres::HAS_TYPE_SIGN);; + } + $user_make = app()->make(UserRepository::class); + $user = $user_make->get($uid); + $integral_ = $user['integral'] + $integral; + $data = [ + 'uid' => $uid, + 'sign_num' => $sign_num, + 'number' => $integral, + 'integral' => $integral_, + 'title' => '签到', + ]; + //增加记录 + $arr = [ + 'status' => 1, + 'mark' => '签到,获得积分'. $integral, + 'number' => $integral, + 'balance'=> $integral_, + ]; + return Db::transaction(function() use($uid,$data,$user_make,$sign_task,$arr,$integral){ $ret = $this->dao->create($data); - //增加记录 - $arr = [ - 'status' => 1, - 'mark' => '签到,获得积分'. $sign_task['sign_integral'], - 'number' => $sign_task['sign_integral'], - 'balance'=> $integral_, - ]; - $user_make->incIntegral($uid,$sign_task['sign_integral'],'签到'.$sign_task['sign_day'],'sign_integral',$arr); + $user_make->incIntegral($uid,$integral,'签到'.$sign_task['sign_day'],'sign_integral',$arr); app()->make(UserBrokerageRepository::class)->incMemberValue($uid, 'member_sign_num', $ret->sign_id); return compact('integral'); }); diff --git a/app/common/repositories/wechat/WechatUserRepository.php b/app/common/repositories/wechat/WechatUserRepository.php index 575806ab..50b1c1d3 100644 --- a/app/common/repositories/wechat/WechatUserRepository.php +++ b/app/common/repositories/wechat/WechatUserRepository.php @@ -123,9 +123,10 @@ class WechatUserRepository extends BaseRepository $wechatUser = $this->dao->unionIdByWechatUser($routineInfo['unionid']); if (!$wechatUser) $wechatUser = $this->dao->routineIdByWechatUser($routineOpenid); - return Db::transaction(function () use ($createUser, $routineInfo, $wechatUser) { if ($wechatUser) { + $routineInfo['nickname'] = $wechatUser['nickname']; + $routineInfo['headimgurl'] = $wechatUser['headimgurl']; $wechatUser->save($routineInfo); } else { $wechatUser = $this->dao->create($routineInfo); diff --git a/app/controller/Install.php b/app/controller/Install.php index 77bd1cc1..506b8a7e 100644 --- a/app/controller/Install.php +++ b/app/controller/Install.php @@ -44,12 +44,12 @@ class Install //extends BaseController * sql文件 * @var App */ - public $sqlFile; + public $sqlFile = 'crmeb_merchant.sql'; /** * 配置文件 * @var App */ - public $configFile; + public $configFile = '.env'; public $env; public $installHost; public $_url; @@ -67,8 +67,6 @@ class Install //extends BaseController } $this->app = $app; $this->request = $this->app->request; - $this->sqlFile = 'crmeb_merchant.sql'; - $this->configFile = '.env'; $this->env = []; $this->installHost = $this->request->domain(); if (substr($this->installHost, 0, 5) == 'https'){ diff --git a/app/controller/admin/community/Community.php b/app/controller/admin/community/Community.php index 3eb873ed..7d0419ac 100644 --- a/app/controller/admin/community/Community.php +++ b/app/controller/admin/community/Community.php @@ -34,14 +34,21 @@ class Community extends BaseController $this->repository = $repository; } + public function title() + { + $where['is_del'] = 0; + return app('json')->success($this->repository->title($where)); + } + /** * @return mixed * @author Qinii */ public function lst() { - $where = $this->request->params(['keyword','status','username','category_id','topic_id','is_show']); + $where = $this->request->params(['keyword','status','username','category_id','topic_id','is_show','is_type']); $where['order'] = 'start'; + $where['is_del'] = 0; [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->getList($where, $page, $limit)); } @@ -121,5 +128,4 @@ class Community extends BaseController return app('json')->success('修改成功'); } - } diff --git a/app/controller/admin/order/Order.php b/app/controller/admin/order/Order.php index 21d43e0a..3bc60109 100644 --- a/app/controller/admin/order/Order.php +++ b/app/controller/admin/order/Order.php @@ -17,6 +17,7 @@ use crmeb\basic\BaseController; use app\common\repositories\store\ExcelRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\store\order\StoreOrderRepository as repository; +use crmeb\services\ExcelService; use think\App; class Order extends BaseController @@ -142,6 +143,12 @@ class Order extends BaseController return app('json')->success($data); } + public function status($id) + { + [$page, $limit] = $this->getPage(); + return app('json')->success($this->repository->getOrderStatus($id, $page, $limit)); + } + /** * TODO 快递查询 * @param $id @@ -175,8 +182,9 @@ class Order extends BaseController $where['verify_date'] = $where['date']; unset($where['date']); } - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'order',0); - return app('json')->success('开始导出数据'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->order($where, $page, $limit); + return app('json')->success($data); } } diff --git a/app/controller/admin/order/OrderProfitsharing.php b/app/controller/admin/order/OrderProfitsharing.php index 002c56eb..fcdf5608 100644 --- a/app/controller/admin/order/OrderProfitsharing.php +++ b/app/controller/admin/order/OrderProfitsharing.php @@ -16,6 +16,7 @@ namespace app\controller\admin\order; use app\common\repositories\store\ExcelRepository; use app\common\repositories\store\order\StoreOrderProfitsharingRepository; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; class OrderProfitsharing extends BaseController @@ -60,7 +61,8 @@ class OrderProfitsharing extends BaseController if ($merId) { $where['mer_id'] = $merId; } - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'profitsharing', $this->request->merId()); - return app('json')->success('开始导出数据'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->profitsharing($where,$page,$limit); + return app('json')->success($data); } } diff --git a/app/controller/admin/order/RefundOrder.php b/app/controller/admin/order/RefundOrder.php index 80303087..46a91875 100644 --- a/app/controller/admin/order/RefundOrder.php +++ b/app/controller/admin/order/RefundOrder.php @@ -18,6 +18,7 @@ use app\common\repositories\store\order\MerchantReconciliationorderRepository; use app\common\repositories\store\order\MerchantReconciliationRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\store\order\StoreRefundOrderRepository as repository; +use crmeb\services\ExcelService; use think\App; class RefundOrder extends BaseController @@ -77,7 +78,8 @@ class RefundOrder extends BaseController public function excel() { $where = $this->request->params(['refund_order_sn','status','refund_type','date','order_sn','id','mer_id']); - app()->make(ExcelRepository::class)->create($where,$this->request->adminId(),'refundOrder',0); - return app('json')->success('开始生成导出文件'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->refundOrder($where, $page, $limit); + return app('json')->success($data); } } diff --git a/app/controller/admin/store/CityArea.php b/app/controller/admin/store/CityArea.php new file mode 100644 index 00000000..031fd2ef --- /dev/null +++ b/app/controller/admin/store/CityArea.php @@ -0,0 +1,103 @@ + +// +---------------------------------------------------------------------- + +namespace app\controller\admin\store; + +use app\common\repositories\store\CityAreaRepository; +use think\App; +use crmeb\basic\BaseController; +use think\exception\ValidateException; + +class CityArea extends BaseController +{ + protected $repository; + + /** + * City constructor. + * @param App $app + * @param repository $repository + */ + public function __construct(App $app, CityAreaRepository $repository) + { + parent::__construct($app); + $this->repository = $repository; + } + + /** + * @Author:Qinii + * @Date: 2020/5/8 + * @Time: 14:40 + * @return mixed + */ + public function lst($id) + { + $where['parent_id'] = $id; + return app('json')->success($this->repository->getList($where)); + } + + + public function createForm($id) + { + return app('json')->success(formToData($this->repository->form(0, $id))); + } + + public function create() + { + $data = $this->checkParams(); + $this->repository->create($data); + return app('json')->success('添加成功'); + } + + public function updateForm($id) + { + return app('json')->success(formToData($this->repository->form($id,null))); + } + + public function update($id) + { + $data = $this->checkParams(); + if (!$res = $this->repository->get($id)){ + return app('json')->fail('数据不存在'); + } + $this->repository->update($id, $data); + return app('json')->success('编辑成功'); + } + + public function checkParams() + { + $type = [ + 1 => 'province', + 2 => 'city', + 3 => 'area', + 4 => 'street', + ]; + $data = $this->request->params(['parent_id','level','name',['path','/']]); + if ($data['parent_id']) { + $parent = $this->repository->get($data['parent_id']); + if (!$parent) throw new ValidateException('上级数据不存在'); + $data['path'] = $parent['path'] . $parent['id'].'/'; + } + $data['type'] = $type[$data['level']]; + if (!$data['name']) throw new ValidateException('请填写城市名称'); + return $data; + } + + public function delete($id) + { + $res = $this->repository->getWhere(['parent_id' => $id]); + if ($res) { + return app('json')->fail('数据存在子集不能删除'); + } + $this->repository->delete($id); + return app('json')->success('删除成功'); + } +} diff --git a/app/controller/admin/store/Coupon.php b/app/controller/admin/store/Coupon.php index 1a673ac3..78e3dbde 100644 --- a/app/controller/admin/store/Coupon.php +++ b/app/controller/admin/store/Coupon.php @@ -199,8 +199,8 @@ class Coupon extends BaseController 'title', 'coupon_price', 'use_min_price', - 'coupon_type', - 'coupon_time', + ['coupon_type',0], + ['coupon_time',1], ['use_start_time', []], 'sort', ['status', 0], @@ -222,6 +222,10 @@ class Coupon extends BaseController ]); app()->make(StoreCouponValidate::class)->check($data); + if ($data['send_type'] == $this->repository::GET_COUPON_TYPE_SVIP) { + $data['coupon_type'] = 0; + $data['is_timeout'] = 0; + } if ($data['is_timeout']) { [$data['start_time'], $data['end_time']] = $data['range_date']; if (strtotime($data['end_time']) <= time()) @@ -236,7 +240,6 @@ class Coupon extends BaseController if ($data['use_start_time'] > $data['use_end_time']) { throw new ValidateException('使用开始时间小于结束时间'); } - } else unset($data['use_start_time']); unset($data['range_date']); if ($data['is_limited'] == 0) $data['total_count'] = 0; diff --git a/app/controller/admin/store/PriceRule.php b/app/controller/admin/store/PriceRule.php new file mode 100644 index 00000000..ed3bfb58 --- /dev/null +++ b/app/controller/admin/store/PriceRule.php @@ -0,0 +1,84 @@ + +// +---------------------------------------------------------------------- +namespace app\controller\admin\store; + +use app\common\repositories\store\PriceRuleRepository; +use app\validate\admin\PriceRuleValidate; +use crmeb\basic\BaseController; +use think\App; + +class PriceRule extends BaseController +{ + + protected $repository; + + /** + * Product constructor. + * @param App $app + * @param PriceRuleRepository $repository + */ + public function __construct(App $app, PriceRuleRepository $repository) + { + parent::__construct($app); + $this->repository = $repository; + } + + public function lst() + { + $where = $this->request->params(['cate_id', 'keyword', 'is_show']); + [$page, $limit] = $this->getPage(); + return app('json')->success($this->repository->lst($where, $page, $limit)); + } + + public function update($id) + { + $data = $this->getParams(); + if (!$this->repository->exists((int)$id)) { + return app('json')->fail('数据不存在'); + } + $this->repository->updateRule((int)$id, $data); + return app('json')->success('编辑成功'); + } + + public function create() + { + $data = $this->getParams(); + $this->repository->createRule($data); + return app('json')->success('添加成功'); + } + + public function delete($id) + { + if (!$this->repository->exists((int)$id)) { + return app('json')->fail('数据不存在'); + } + $this->repository->delete((int)$id); + return app('json')->success('删除成功'); + } + + public function getParams() + { + $data = $this->request->params(['rule_name', 'cate_id', 'sort', 'is_show', 'content']); + app()->make(PriceRuleValidate::class)->check($data); + return $data; + } + + public function switchStatus($id) + { + $status = $this->request->param('is_show') == 1 ?: 0; + if (!$this->repository->exists((int)$id)) + return app('json')->fail('数据不存在'); + $this->repository->update($id, ['is_show' => $status]); + return app('json')->success('修改成功'); + } + + +} diff --git a/app/controller/admin/store/StoreProduct.php b/app/controller/admin/store/StoreProduct.php index 5961fa2b..b5ae18e3 100644 --- a/app/controller/admin/store/StoreProduct.php +++ b/app/controller/admin/store/StoreProduct.php @@ -12,18 +12,12 @@ namespace app\controller\admin\store; -use app\common\repositories\store\product\ProductAttrValueRepository; -use app\common\repositories\store\product\ProductLabelRepository; use app\common\repositories\store\product\SpuRepository; use app\common\repositories\system\merchant\MerchantRepository; -use app\validate\merchant\StoreProductValidate; -use crmeb\jobs\ChangeSpuStatusJob; -use crmeb\jobs\CheckProductExtensionJob; use think\App; use crmeb\basic\BaseController; use app\validate\merchant\StoreProductAdminValidate as validate; use app\common\repositories\store\product\ProductRepository as repository; -use think\facade\Db; use think\facade\Queue; class StoreProduct extends BaseController @@ -132,6 +126,7 @@ class StoreProduct extends BaseController } /** + * TODO 审核 / 下架 * @Author:Qinii * @Date: 2020/5/18 * @param int $id @@ -139,32 +134,21 @@ class StoreProduct extends BaseController */ public function switchStatus() { + //0:审核中,1:审核通过 -1: 未通过 -2: 下架 $id = $this->request->param('id'); $data = $this->request->params(['status','refusal']); + if (in_array($data['status'],[1,0,-2,-1])) if($data['status'] == -1 && empty($data['refusal'])) return app('json')->fail('请填写拒绝理由'); - if(!is_array($id)) $id = [$id]; - $this->repository->switchStatus($id,$data); + if(is_array($id)) { + $this->repository->batchSwitchStatus($id,$data); + } else { + $this->repository->switchStatus($id,$data); + } return app('json')->success('操作成功'); } - /** - * TODO 是否隐藏 - * @param $id - * @return mixed - * @author Qinii - * @day 2020-07-17 - */ - public function changeUsed($id) - { - if(!$this->repository->merExists(null,$id)) - return app('json')->fail('数据不存在'); - $status = $this->request->param('status',0) == 1 ? 1 : 0; - $status = ['is_used' => $status]; - $this->repository->update($id,$status); - queue(ChangeSpuStatusJob::class,['id' => $id,'product_type' => 0]); - return app('json')->success('修改成功'); - } + /** * @Author:Qinii @@ -257,13 +241,36 @@ class StoreProduct extends BaseController return app('json')->success('修改成功'); } + /** + * TODO 是否隐藏 + * @param $id + * @return mixed + * @author Qinii + * @day 2020-07-17 + */ + public function changeUsed($id) + { + if(!$this->repository->merExists(null,$id)) + return app('json')->fail('数据不存在'); + $status = $this->request->param('status',0) == 1 ? 1 : 0; + $this->repository->switchShow($id,$status,'is_used',0); + return app('json')->success('修改成功'); + } + + /** + * TODO 批量显示隐藏 + * @return \think\response\Json + * @author Qinii + * @day 2022/11/14 + */ public function batchShow() { $ids = $this->request->param('ids'); $status = $this->request->param('status') == 1 ? 1 : 0; - $this->repository->switchShow($ids,$status,'is_show',0); + $this->repository->batchSwitchShow($ids,$status,'is_used',0); return app('json')->success('修改成功'); } + /** * TODO 批量标签 * @return \think\response\Json diff --git a/app/controller/admin/store/StoreProductAssist.php b/app/controller/admin/store/StoreProductAssist.php index cecbf3b8..af064096 100644 --- a/app/controller/admin/store/StoreProductAssist.php +++ b/app/controller/admin/store/StoreProductAssist.php @@ -16,7 +16,6 @@ use app\common\repositories\store\product\ProductAssistRepository as repository; use app\common\repositories\store\product\SpuRepository; use app\validate\merchant\StoreProductAdminValidate as validate; use crmeb\basic\BaseController; -use crmeb\jobs\ChangeSpuStatusJob; use crmeb\services\SwooleTaskService; use think\App; @@ -68,15 +67,7 @@ class StoreProductAssist extends BaseController if (!$ret = $this->repository->get($id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['status' => $status]); - // if(!$status) SwooleTaskService::merchant('notice', [ - // 'type' => 'product_assist', - // 'data' => [ - // 'title' => '下架提醒', - // 'message' => '您有一个助力商品被下架', - // 'id' => $id - // ] - // ], $ret->mer_id); - queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => 3]); + app()->make(SpuRepository::class)->changeStatus($id,3); return app('json')->success('修改成功'); } @@ -120,7 +111,13 @@ class StoreProductAssist extends BaseController return $data; } - public function productStatus() + /** + * TODO 审核 + * @return \think\response\Json + * @author Qinii + * @day 2022/11/15 + */ + public function switchAudit() { $id = $this->request->param('id'); if (!$ret = $this->repository->get($id)) @@ -128,46 +125,13 @@ class StoreProductAssist extends BaseController $data = $this->request->params(['status', 'refusal']); if ($data['status'] == -1 && empty($data['refusal'])) return app('json')->fail('请填写拒绝理由'); - if (!is_array($id)) $id = [$id]; - $status = 0; - if ($data['status'] == 1) { - $status = 1; - $title = '审核结果'; - $message = '审核通过'; - $type = "product_assist_success"; - } - if ($data['status'] == -1) { - $title = '审核结果'; - $message = '审核失败'; - $type = "product_assist_fail"; - } - if ($data['status'] == -2) { - $title = '下架提醒'; - $message = '被下架'; - $type = "product_assist_fail"; - } - event('product.assistStatus.before', compact('id', 'data')); - $this->repository->updates($id, ['product_status' => $data['status'], 'refusal' => $data['refusal'], 'status' => $status]); - event('product.assistStatus', compact('id', 'data')); - SwooleTaskService::merchant('notice', [ - 'type' => $type, - 'data' => [ - 'title' => $title, - 'message' => '您有一个助力商品' . $message, - 'id' => $id[0] - ] - ], $ret->mer_id); - foreach ($id as $item) { - queue(ChangeSpuStatusJob::class, ['id' => $item, 'product_type' => 3]); - } + $this->repository->switchStatus($id,$data); return app('json')->success('操作成功'); } public function setLabels($id) { $data = $this->request->params(['sys_labels']); - // if (empty($data['sys_labels'])) return app('json')->fail('标签为空'); - app()->make(SpuRepository::class)->setLabels($id, 3, $data, 0); return app('json')->success('修改成功'); } diff --git a/app/controller/admin/store/StoreProductGroup.php b/app/controller/admin/store/StoreProductGroup.php index b4e7e13c..b5fdf53f 100644 --- a/app/controller/admin/store/StoreProductGroup.php +++ b/app/controller/admin/store/StoreProductGroup.php @@ -15,8 +15,6 @@ use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\SpuRepository; use app\validate\merchant\StoreProductAdminValidate as validate; use crmeb\basic\BaseController; -use crmeb\jobs\ChangeSpuStatusJob; -use crmeb\services\SwooleTaskService; use think\App; class StoreProductGroup extends BaseController @@ -95,15 +93,7 @@ class StoreProductGroup extends BaseController if (!$ret = $this->repository->get($id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['status' => $status]); - // if(!$status) SwooleTaskService::merchant('notice', [ - // 'type' => 'product_group', - // 'data' => [ - // 'title' => '下架提醒', - // 'message' => '您有一个拼团商品被下架', - // 'id' => $id - // ] - // ], $ret->mer_id); - queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => 4]); + app()->make(SpuRepository::class)->changeStatus($id,4); return app('json')->success('修改成功'); } @@ -114,47 +104,13 @@ class StoreProductGroup extends BaseController return $data; } - public function productStatus() + public function switchAudit() { $id = $this->request->param('id'); - if (!$ret = $this->repository->get($id)) - return app('json')->fail('数据不存在'); $data = $this->request->params(['status', 'refusal']); if ($data['status'] == -1 && empty($data['refusal'])) return app('json')->fail('请填写拒绝理由'); - if (!is_array($id)) $id = [$id]; - $status = 0; - if ($data['status'] == 1) { - $status = 1; - $title = '审核结果'; - $message = '审核通过'; - $type = 'product_group_success'; - } - if ($data['status'] == -1) { - $title = '审核结果'; - $message = '审核失败'; - $type = 'product_group_fail'; - } - if ($data['status'] == -2) { - $title = '下架提醒'; - $message = '被下架'; - $type = 'product_group_fail'; - } - event('product.groupStatus.before', compact('id', 'data')); - $this->repository->updates($id, ['product_status' => $data['status'], 'refusal' => $data['refusal'], 'status' => $status]); - event('product.groupStatus', compact('id', 'data')); - SwooleTaskService::merchant('notice', [ - 'type' => $type, - 'data' => [ - 'title' => $title, - 'message' => '您有一个拼团商品' . $message, - 'id' => $id[0] - ] - ], $ret->mer_id); - foreach ($id as $item) { - queue(ChangeSpuStatusJob::class, ['id' => $item, 'product_type' => 4]); - } - + $this->repository->switchStatus($id, $data); return app('json')->success('操作成功'); } diff --git a/app/controller/admin/store/StoreProductPresell.php b/app/controller/admin/store/StoreProductPresell.php index 28a11b03..c913dffe 100644 --- a/app/controller/admin/store/StoreProductPresell.php +++ b/app/controller/admin/store/StoreProductPresell.php @@ -14,10 +14,7 @@ namespace app\controller\admin\store; use app\common\repositories\store\product\ProductPresellRepository as repository; use app\common\repositories\store\product\SpuRepository; -use app\common\repositories\system\CacheRepository; use crmeb\basic\BaseController; -use crmeb\jobs\ChangeSpuStatusJob; -use crmeb\services\SwooleTaskService; use think\App; use app\validate\merchant\StoreProductAdminValidate as validate; @@ -99,7 +96,7 @@ class StoreProductPresell extends BaseController $status = $this->request->param('status', 0) == 1 ? 1 : 0; if(!$ret = $this->repository->get($id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['status' => $status]); - queue(ChangeSpuStatusJob::class,['id' => $id,'product_type' => 2]); + app()->make(SpuRepository::class)->changeStatus($id,2); return app('json')->success('修改成功'); } @@ -111,47 +108,13 @@ class StoreProductPresell extends BaseController return $data; } - public function productStatus() + public function switchAudit() { $id = $this->request->param('id'); - if(!$ret = $this->repository->get($id)) - return app('json')->fail('数据不存在'); $data = $this->request->params(['status','refusal']); if($data['status'] == -1 && empty($data['refusal'])) return app('json')->fail('请填写拒绝理由'); - if(!is_array($id)) $id = [$id]; - $status = 0; - if($data['status'] == 1){ - $status = 1; - $title = '审核结果'; - $message = '审核通过'; - $type = 'product_presell_success'; - } - if($data['status'] == -1){ - $title = '审核结果'; - $message = '审核失败'; - $type = 'product_presell_fail'; - } - if($data['status'] == -2){ - $title = '下架提醒'; - $message = '被下架'; - $type = 'product_presell_fail'; - } - event('product.presellStatus.before',compact('id','data')); - $this->repository->updates($id,['product_status' => $data['status'],'refusal' => $data['refusal'],'status' => $status]); - event('product.presellStatus',compact('id','data')); - SwooleTaskService::merchant('notice', [ - 'type' => $type, - 'data' => [ - 'title' => $title, - 'message' => '您有一个预售商品'. $message, - 'id' => $id[0], - 'type' => $ret['presell_type'], - ] - ], $ret->mer_id); - foreach ($id as $item){ - queue(ChangeSpuStatusJob::class,['id' => $item,'product_type' => 2]); - } + $this->repository->switchStatus($id, $data); return app('json')->success('操作成功'); } diff --git a/app/controller/admin/store/StoreProductSeckill.php b/app/controller/admin/store/StoreProductSeckill.php index 54097424..fd914bdf 100644 --- a/app/controller/admin/store/StoreProductSeckill.php +++ b/app/controller/admin/store/StoreProductSeckill.php @@ -14,8 +14,6 @@ namespace app\controller\admin\store; use app\common\repositories\store\product\SpuRepository; use app\common\repositories\system\merchant\MerchantRepository; -use crmeb\jobs\ChangeSpuStatusJob; -use crmeb\jobs\CheckProductExtensionJob; use think\App; use crmeb\basic\BaseController; use app\validate\merchant\StoreProductAdminValidate as validate; @@ -24,8 +22,6 @@ use think\facade\Queue; class StoreProductSeckill extends BaseController { - - /** * @var repository */ @@ -111,8 +107,11 @@ class StoreProductSeckill extends BaseController $data = $this->request->params(['status', 'refusal']); if ($data['status'] == -1 && empty($data['refusal'])) return app('json')->fail('请填写拒绝理由'); - if (!is_array($id)) $id = [$id]; - $this->repository->switchStatus($id, $data, 1); + if (is_array($id)) { + $this->repository->batchSwitchStatus($id, $data); + } else { + $this->repository->switchStatus($id, $data); + } return app('json')->success('操作成功'); } @@ -128,8 +127,7 @@ class StoreProductSeckill extends BaseController if (!$this->repository->merExists(null, $id)) return app('json')->fail('数据不存在'); $status = $this->request->param('status', 0) == 1 ? 1 : 0; - $this->repository->update($id, ['is_used' => $status]); - queue(ChangeSpuStatusJob::class, ['id' => $id, 'product_type' => 1]); + $this->repository->switchShow($id, $status,'is_used'); return app('json')->success('修改成功'); } diff --git a/app/controller/admin/system/attachment/Attachment.php b/app/controller/admin/system/attachment/Attachment.php index c3c93234..ef714575 100644 --- a/app/controller/admin/system/attachment/Attachment.php +++ b/app/controller/admin/system/attachment/Attachment.php @@ -86,7 +86,6 @@ class Attachment extends BaseController 'id' => 0 ]; } - validate(["$field|图片" => [ 'fileSize' => config('upload.filesize'), 'fileExt' => 'jpg,jpeg,png,bmp,gif', diff --git a/app/controller/admin/system/config/Config.php b/app/controller/admin/system/config/Config.php index 4706e90e..19b9b302 100644 --- a/app/controller/admin/system/config/Config.php +++ b/app/controller/admin/system/config/Config.php @@ -216,6 +216,14 @@ class Config extends BaseController { $file = $this->request->file($field); if (!$file) return app('json')->fail('请上传附件'); + + //ico 图标处理 + if ($file->getOriginalExtension() == 'ico') { + $file->move('public','favicon.ico'); + $res = tidy_url('public/favicon.ico'); + return app('json')->success(['src' => $res]); + } + $upload = UploadService::create(1); $data = $upload->to('attach')->validate()->move($field); if ($data === false) { @@ -240,6 +248,18 @@ class Config extends BaseController return app('json')->success(['src' => $res]); } + /** + * TODO + * @author Qinii + * @day 2023/1/5 + */ + public function specificFileUpload() + { + $file = $this->request->file('file'); + $type = $this->request->param('fiel_type'); + halt($type,$file); + } + public function uploadWechatSet() { $name = $this->request->param('wechat_chekc_file'); diff --git a/app/controller/admin/system/diy/Diy.php b/app/controller/admin/system/diy/Diy.php index 328f693c..2e40aa6c 100644 --- a/app/controller/admin/system/diy/Diy.php +++ b/app/controller/admin/system/diy/Diy.php @@ -298,7 +298,7 @@ class Diy extends BaseController { [$page, $limit] = $this->getPage(); $where = $this->request->params([ - ['keyword',''], + ['store_name',''], ['order', 'star'], ['cate_pid',0], ['star',''], @@ -306,6 +306,7 @@ class Diy extends BaseController 'mer_cate_id' ]); $where['is_gift_bag'] = 0; + $where['keyword'] = $where['store_name']; if ($this->request->merId()) $where['mer_id'] = $this->request->merId(); $data = app()->make(SpuRepository::class)->getApiSearch($where, $page, $limit, null); return app('json')->success($data); diff --git a/app/controller/admin/system/diy/PageLink.php b/app/controller/admin/system/diy/PageLink.php index c07fe19a..308d8dad 100644 --- a/app/controller/admin/system/diy/PageLink.php +++ b/app/controller/admin/system/diy/PageLink.php @@ -120,7 +120,8 @@ class PageLink extends BaseController $data = app()->make(MerchantRepository::class)->lst(['mer_state' => 1, 'status' => 1],$page,$limit); break; case 'active': - $data = app()->make(GroupDataRepository::class)->getGroupDataLst($this->request->merId(), 94, $page, $limit); + $groupid = $this->request->merId() ? 95 : 94; + $data = app()->make(GroupDataRepository::class)->getGroupDataLst($this->request->merId(), $groupid, $page, $limit); break; default: $data = $this->repository->getLinkList($id,$this->request->merId()); diff --git a/app/controller/admin/system/financial/Financial.php b/app/controller/admin/system/financial/Financial.php index 30e67253..6ad046cd 100644 --- a/app/controller/admin/system/financial/Financial.php +++ b/app/controller/admin/system/financial/Financial.php @@ -13,6 +13,7 @@ namespace app\controller\admin\system\financial; use app\common\repositories\store\ExcelRepository; use app\common\repositories\system\financial\FinancialRepository; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; class Financial extends BaseController @@ -147,8 +148,9 @@ class Financial extends BaseController public function export() { $where = $this->request->params(['date', 'status', 'financial_type', 'financial_status', 'keyword', 'is_trader', 'mer_id']); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'financialLog', $this->request->merId()); - return app('json')->success('开始导出数据'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->financialLog($where,$page,$limit); + return app('json')->success($data); } diff --git a/app/controller/admin/system/merchant/FinancialRecord.php b/app/controller/admin/system/merchant/FinancialRecord.php index f2fac108..06778659 100644 --- a/app/controller/admin/system/merchant/FinancialRecord.php +++ b/app/controller/admin/system/merchant/FinancialRecord.php @@ -17,6 +17,7 @@ namespace app\controller\admin\system\merchant; use app\common\repositories\store\ExcelRepository; use app\common\repositories\system\merchant\FinancialRecordRepository; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; class FinancialRecord extends BaseController @@ -36,9 +37,9 @@ class FinancialRecord extends BaseController $merId = $this->request->merId(); if ($merId) { $where['mer_id'] = $merId; - $where['financial_type'] = ['order', 'mer_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order']; + $where['financial_type'] = ['order', 'mer_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order','order_platform_coupon','order_svip_coupon']; } else { - $where['financial_type'] = ['order', 'sys_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order']; + $where['financial_type'] = ['order', 'sys_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order','order_platform_coupon','order_svip_coupon']; } return app('json')->success($this->repository->getList($where, $page, $limit)); } @@ -49,12 +50,14 @@ class FinancialRecord extends BaseController $merId = $this->request->merId(); if ($merId) { $where['mer_id'] = $merId; - $where['financial_type'] = ['order', 'mer_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order']; + $where['financial_type'] = ['order', 'mer_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order','order_platform_coupon','order_svip_coupon']; } else { - $where['financial_type'] = ['order', 'sys_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order']; + $where['financial_type'] = ['order', 'sys_accoubts', 'brokerage_one', 'brokerage_two', 'refund_brokerage_one', 'refund_brokerage_two', 'refund_order','order_platform_coupon','order_svip_coupon']; } - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'financial',$merId); - return app('json')->success('开始导出数据'); + + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->financial($where,$page,$limit); + return app('json')->success($data); } @@ -122,12 +125,14 @@ class FinancialRecord extends BaseController */ public function exportDetail($type) { + [$page, $limit] = $this->getPage(); $date = $this->request->param('date'); $where['date'] = empty($date) ? date('Y-m-d',time()) : $date ; $where['type'] = $type; $where['is_mer'] = $this->request->merId() ?? 0 ; - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'exportFinancial',$where['is_mer']); - return app('json')->success('开始生成文件'); + $data = app()->make(ExcelService::class)->exportFinancial($where,$page,$limit); +// app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'exportFinancial',$where['is_mer']); + return app('json')->success($data); } /** @@ -140,7 +145,8 @@ class FinancialRecord extends BaseController { $where = $this->request->params(['date']); - $data = $this->repository->getFiniancialTitle($this->request->merId(),$where); +// $data = $this->repository->getFiniancialTitle($this->request->merId(),$where); + $data = []; return app('json')->success($data); } diff --git a/app/controller/admin/system/merchant/MerchantIntention.php b/app/controller/admin/system/merchant/MerchantIntention.php index 67b0a9a1..ef2222bf 100644 --- a/app/controller/admin/system/merchant/MerchantIntention.php +++ b/app/controller/admin/system/merchant/MerchantIntention.php @@ -15,6 +15,7 @@ namespace app\controller\admin\system\merchant; use app\common\repositories\store\ExcelRepository; use app\common\repositories\system\CacheRepository; +use crmeb\services\ExcelService; use think\App; use crmeb\basic\BaseController; use app\common\repositories\system\merchant\MerchantIntentionRepository; @@ -108,8 +109,11 @@ class MerchantIntention extends BaseController public function excel() { $where = $this->request->params(['mer_name', 'status', 'date', 'keyword', 'mer_intention_id', 'category_id', 'type_id']); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'intention',$this->request->merId()); - return app('json')->success('开始导出数据'); + + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->intention($where,$page,$limit); + return app('json')->success($data); + } } diff --git a/app/controller/admin/system/notice/SystemNoticeConfig.php b/app/controller/admin/system/notice/SystemNoticeConfig.php index 60c5e300..42bb06eb 100644 --- a/app/controller/admin/system/notice/SystemNoticeConfig.php +++ b/app/controller/admin/system/notice/SystemNoticeConfig.php @@ -129,45 +129,22 @@ class SystemNoticeConfig extends BaseController $this->repository->swithStatus($id,$key, $status); return app('json')->success('修改成功'); } + public function getTemplateId($id) { - $data = $this->repository->getTemplateIdForm($id); + $data = $this->repository->changeForm($id); return app('json')->success(formToData($data)); } public function setTemplateId($id){ - $data = $this->request->params(['aliyun_temp_id','sms_content','notice_info']); - $this->repository->update($id,$data); + $params = $this->request->params(['sms_tempid','sms_ali_tempid','routine_tempid','wechat_tempid',['notice_routine',-1],['notice_wechat',-1],['notice_sms',-1]]); + foreach ($params as $k => $v) { + if(!empty($v)) { + $data[$k] = $v; + } + } + $this->repository->save($id,$data); return app('json')->success('修改成功'); } - public function smsConfig() - { - $config = [ - 'sms_fahuo_status', - 'sms_take_status', - 'sms_pay_status', - 'sms_revision_status', - 'sms_pay_false_status', - 'sms_refund_fail_status', - 'sms_refund_success_status', - 'sms_refund_confirm_status', - 'sms_admin_pay_status', - 'sms_admin_return_status', - 'sms_admin_take_status', - 'sms_admin_postage_status', - 'sms_pay_presell_status', - 'sms_broadcast_room_status', - 'sms_apply_mer_succ_status', - 'sms_apply_mer_fail_status', - 'sms_broadcast_room_fail', - 'procudt_increase_sms', - 'integral_sms', - 'applyments_sms', - ]; - app()->make(ConfigClassifyRepository::class)->delete(41); - app()->make(ConfigRepository::class)->search(['config_classify_id' => 41])->delete(); - app()->make(ConfigValueRepository::class)->clear($config,0); - } - } diff --git a/app/controller/admin/user/MemberInterests.php b/app/controller/admin/user/MemberInterests.php index 0f152508..86008802 100644 --- a/app/controller/admin/user/MemberInterests.php +++ b/app/controller/admin/user/MemberInterests.php @@ -31,7 +31,7 @@ class MemberInterests extends BaseController public function getLst() { [$page, $limit] = $this->getPage(); - $where = $this->request->params(['name','type']); + $where = $this->request->params(['name',['type',$this->repository::TYPE_FREE]]); return app('json')->success($this->repository->getList($where, $page, $limit)); } @@ -49,7 +49,7 @@ class MemberInterests extends BaseController public function updateForm($id) { - return app('json')->success(formToData($this->repository->form($id))); + return app('json')->success(formToData($this->repository->form($id, $this->repository::TYPE_FREE))); } public function update($id) @@ -77,9 +77,6 @@ class MemberInterests extends BaseController $id = (int)$id; if (!$id || !$brokerage = $this->repository->get($id)) { return app('json')->fail('数据不存在'); - - - } $brokerage->delete(); return app('json')->success('删除成功'); @@ -87,10 +84,41 @@ class MemberInterests extends BaseController public function checkParams() { - $data = $this->request->params(['brokerage_level', 'name', 'info', 'pic', 'type']); - if (!$data['name'] || !$data['pic'] || empty($data['brokerage_level'])) throw new ValidateException('请填写正确的权益信息'); - $count = app()->make(UserBrokerageRepository::class)->getWhereCount(['brokerage_level' => $data['brokerage_level'], 'type' => $data['type']]); - if (!$count) throw new ValidateException('会员等级不存在'); + $data = $this->request->params(['brokerage_level', 'name', 'info', 'pic', 'type',['has_type',0],['link',''],['value',''],['on_pic','']]); + if ($data['type'] == $this->repository::TYPE_FREE) { + if(!$data['name'] || !$data['pic'] || empty($data['brokerage_level'])) + throw new ValidateException('请填写正确的权益信息'); + $count = app()->make(UserBrokerageRepository::class)->getWhereCount(['brokerage_level' => $data['brokerage_level'], 'type' => $data['type']]); + if (!$count) throw new ValidateException('会员等级不存在'); + } else { + if (mb_strlen($data['name']) > 6) throw new ValidateException('名称必须小于6个字符'); + if ($data['value'] < 0 && in_array($data['has_type'],[$this->repository::HAS_TYPE_SIGN,$this->repository::HAS_TYPE_PAY,$this->repository::HAS_TYPE_MEMBER])){ + throw new ValidateException('倍数不能位负数'); + } + } + return $data; } + + public function getSvipInterests() + { + $where['type'] = $this->repository::TYPE_SVIP; + $data = $this->repository->getList($where,1,10); + return app('json')->success($data['list']); + } + public function updateSvipForm($id) + { + return app('json')->success(formToData($this->repository->svipForm($id))); + } + + public function switchWithStatus($id) + { + $status = $this->request->param('status') == 1 ? 1 :0; + try{ + $this->repository->update($id,['status' => $status]); + return app('json')->success('修改成功'); + }catch (\Exception $exception) { + return app('json')->success('修改失败'); + } + } } diff --git a/app/controller/admin/user/Svip.php b/app/controller/admin/user/Svip.php new file mode 100644 index 00000000..ce5a7278 --- /dev/null +++ b/app/controller/admin/user/Svip.php @@ -0,0 +1,194 @@ + +// +---------------------------------------------------------------------- + + +namespace app\controller\admin\user; + + +use app\common\repositories\system\groupData\GroupDataRepository; +use app\common\repositories\system\groupData\GroupRepository; +use app\common\repositories\system\serve\ServeOrderRepository; +use app\common\repositories\user\MemberinterestsRepository; +use app\common\repositories\user\UserBrokerageRepository; +use app\common\repositories\user\UserOrderRepository; +use app\validate\admin\UserBrokerageValidate; +use crmeb\basic\BaseController; +use think\App; + +class Svip extends BaseController +{ + protected $repository; + + public function __construct(App $app, UserBrokerageRepository $repository) + { + parent::__construct($app); + $this->repository = $repository; + } + + /** + * TODO 购买会员套餐的列表 + * @param GroupRepository $groupRepository + * @param GroupDataRepository $groupDataRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/4 + */ + public function getTypeLst(GroupRepository $groupRepository,GroupDataRepository $groupDataRepository) + { + [$page, $limit] = $this->getPage(); + $group_id = $groupRepository->getSearch(['group_key' => 'svip_pay'])->value('group_id'); + $lst = $groupDataRepository->getGroupDataLst(0, intval($group_id), $page, $limit); + return app('json')->success($lst); + } + + /** + * TODO 添加够没类型 + * @param GroupRepository $groupRepository + * @param GroupDataRepository $groupDataRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/4 + */ + public function createTypeCreateForm(GroupRepository $groupRepository, GroupDataRepository $groupDataRepository) + { + $group_id = $groupRepository->getSearch(['group_key' => 'svip_pay'])->value('group_id'); + $data = $groupDataRepository->reSetDataForm($group_id, null, null); + return app('json')->success(formToData($data)); + } + + /** + * TODO 编辑会员购买类型 + * @param $id + * @param GroupRepository $groupRepository + * @param GroupDataRepository $groupDataRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/8 + */ + public function updateTypeCreateForm($id, GroupRepository $groupRepository, GroupDataRepository $groupDataRepository) + { + $group_id = $groupRepository->getSearch(['group_key' => 'svip_pay'])->value('group_id'); + $data = $groupDataRepository->reSetDataForm($group_id, $id, null); + return app('json')->success(formToData($data)); + } + + + /** + * TODO + * @return \think\response\Json + * @author Qinii + * @day 2022/11/8 + */ + public function getInterestsLst(MemberinterestsRepository $memberinterestsRepository) + { + $data = $memberinterestsRepository->getInterestsByLevel($memberinterestsRepository::TYPE_SVIP); + return app('json')->success($data); + } + + + public function createForm() + { + return app('json')->success(formToData($this->repository->form())); + } + + public function create() + { + $data = $this->checkParams(); + if ($this->repository->fieldExists('brokerage_level', $data['brokerage_level'],null, $data['type'])) { + return app('json')->fail('会员等级已存在'); + } + if ($data['type']) { + $data['brokerage_rule'] = [ + 'image' => $data['image'], + 'value' => $data['value'], + ]; + } + unset($data['image'], $data['value']); + + $this->repository->create($data); + return app('json')->success('添加成功'); + } + + public function updateForm($id) + { + return app('json')->success(formToData($this->repository->form($id))); + } + + public function update($id) + { + $id = (int)$id; + $data = $this->checkParams(); + if (!$id || !$this->repository->get($id)) { + return app('json')->fail('数据不存在'); + } + if ($this->repository->fieldExists('brokerage_level', $data['brokerage_level'], $id, $data['type'])) { + return app('json')->fail('会员等级已存在'); + } + + if ($data['type']) { + $data['brokerage_rule'] = [ + 'image' => $data['image'], + 'value' => $data['value'], + ]; + } + unset($data['image'], $data['value']); + + $data['brokerage_rule'] = json_encode($data['brokerage_rule'], JSON_UNESCAPED_UNICODE); + $this->repository->update($id, $data); + return app('json')->success('修改成功'); + } + + public function detail($id) + { + $id = (int)$id; + if (!$id || !$brokerage = $this->repository->get($id)) { + return app('json')->fail('数据不存在'); + } + return app('json')->success($brokerage->toArray()); + } + + public function delete($id) + { + $id = (int)$id; + if (!$id || !$brokerage = $this->repository->get($id)) { + return app('json')->fail('数据不存在'); + } + if ($brokerage->user_num > 0) { + return app('json')->fail('该等级下有数据,不能进行删除操作!'); + } + $brokerage->delete(); + return app('json')->success('删除成功'); + } + + public function checkParams() + { + $data = $this->request->params(['brokerage_level', 'brokerage_name', 'brokerage_icon', 'brokerage_rule', 'extension_one', 'extension_two', 'image', 'value', ['type',0]]); + app()->make(UserBrokerageValidate::class)->check($data); + return $data; + } + + /** + * TODO 会员购买记录 + * @param UserOrderRepository $userOrderRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/12 + */ + public function payList(UserOrderRepository $userOrderRepository) + { + [$page, $limit] = $this->getPage(); + $type = $this->request->param('svip_type',''); + $where = $this->request->params(['pay_type','title','date','nickname','keyword']); + if($type) $where['type'] = $userOrderRepository::TYPE_SVIP.$type; + $data = $userOrderRepository->getList($where,$page, $limit); + return app('json')->success($data); + } +} diff --git a/app/controller/admin/user/User.php b/app/controller/admin/user/User.php index 81846308..7c286f47 100644 --- a/app/controller/admin/user/User.php +++ b/app/controller/admin/user/User.php @@ -29,6 +29,7 @@ use app\common\repositories\wechat\WechatNewsRepository; use app\common\repositories\wechat\WechatUserRepository; use app\validate\admin\UserNowMoneyValidate; use app\validate\admin\UserValidate; +use crmeb\services\ExcelService; use FormBuilder\Exception\FormBuilderException; use think\App; use think\db\exception\DataNotFoundException; @@ -87,6 +88,7 @@ class User extends BaseController 'city', 'group_id', 'phone', + 'uid', ]); [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->getList($where, $page, $limit)); @@ -544,8 +546,10 @@ class User extends BaseController if ($merId) { $where['mer_id'] = $merId; } - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'searchLog', $this->request->merId()); - return app('json')->success('开始生成导出文件'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->searchLog($where, $page, $limit); + return app('json')->success($data); + } public function memberForm($id) @@ -575,4 +579,16 @@ class User extends BaseController $this->repository->updateLevel($id, $brokerage_level, 0); return app('json')->success('修改成功'); } + + public function svipForm($id) + { + return app('json')->success(formToData($this->repository->svipForm($id))); + } + + public function svipUpdate($id) + { + $data = $this->request->params(['is_svip','add_time','type']); + $this->repository->svipUpdate($id, $data,$this->request->adminId()); + return app('json')->success('修改成功'); + } } diff --git a/app/controller/admin/user/UserBill.php b/app/controller/admin/user/UserBill.php index f453c5c2..1e63e5a5 100644 --- a/app/controller/admin/user/UserBill.php +++ b/app/controller/admin/user/UserBill.php @@ -17,6 +17,7 @@ namespace app\controller\admin\user; use app\common\repositories\store\ExcelRepository; use crmeb\basic\BaseController; use app\common\repositories\user\UserBillRepository; +use crmeb\services\ExcelService; use think\App; class UserBill extends BaseController @@ -45,7 +46,8 @@ class UserBill extends BaseController public function export() { $where = $this->request->params(['keyword', 'date', 'type']); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'bill', $this->request->merId()); - return app('json')->success('开始导出数据'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->bill($where,$page,$limit); + return app('json')->success($data); } } diff --git a/app/controller/admin/user/UserExtract.php b/app/controller/admin/user/UserExtract.php index d1125c80..eed007bc 100644 --- a/app/controller/admin/user/UserExtract.php +++ b/app/controller/admin/user/UserExtract.php @@ -14,6 +14,7 @@ namespace app\controller\admin\user; use app\common\repositories\store\ExcelRepository; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; use app\validate\api\UserExtractValidate as validate; use app\common\repositories\user\UserExtractRepository as repository; @@ -74,7 +75,8 @@ class UserExtract extends BaseController public function export() { $where = $this->request->params(['status','keyword','date','extract_type']); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'extract', $this->request->merId()); - return app('json')->success('开始导出数据'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->extract($where,$page,$limit); + return app('json')->success($data); } } diff --git a/app/controller/admin/user/UserIntegral.php b/app/controller/admin/user/UserIntegral.php index 66a789d0..c2d3de8c 100644 --- a/app/controller/admin/user/UserIntegral.php +++ b/app/controller/admin/user/UserIntegral.php @@ -20,6 +20,7 @@ use app\common\repositories\system\config\ConfigValueRepository; use app\common\repositories\user\UserBillRepository; use app\validate\admin\IntegralConfigValidate; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; class UserIntegral extends BaseController @@ -61,8 +62,10 @@ class UserIntegral extends BaseController { $where = $this->request->params(['keyword', 'date']); $where['category'] = 'integral'; - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'integralLog', $this->request->merId()); - return app('json')->success('开始导出数据'); + + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->integralLog($where,$page,$limit); + return app('json')->success($data); } public function getConfig() diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 169f96ef..138e7cce 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -16,6 +16,7 @@ namespace app\controller\api; use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\order\StoreRefundOrderRepository; +use app\common\repositories\system\notice\SystemNoticeConfigRepository; use app\common\repositories\user\UserRepository; use app\common\repositories\wechat\RoutineQrcodeRepository; use app\common\repositories\wechat\WechatUserRepository; @@ -37,9 +38,11 @@ use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; use think\exception\ValidateException; use think\facade\Cache; +use think\facade\Log; +use think\facade\Queue; +use crmeb\jobs\SendSmsJob; use think\facade\Db; - /** * Class Auth * @package app\controller\api @@ -50,10 +53,21 @@ class Auth extends BaseController { public function test() { - $data['tempCode'] = 'ORDER_PAY_SUCCESS'; - $data['id'] = '8'; - halt($data); - app()->make(WechatTemplateMessageService::class)->sendTemplate($data); +// $data = [ +// 'tempId' => '', +// 'id' => '', +// ]; +// Queue::push(SendSmsJob::class,$data); +// $status = app()->make(SystemNoticeConfigRepository::class)->getNoticeStatusByConstKey($data['tempId']); +// if ($status['notice_sms'] == 1) { +// SmsService::sendMessage($data); +// } +// if ($status['notice_wechat'] == 1) { +// app()->make(WechatTemplateMessageService::class)->sendTemplate($data); +// } +// if ($status['notice_routine'] == 1) { +// app()->make(WechatTemplateMessageService::class)->subscribeSendTemplate($data); +// } } /** @@ -135,6 +149,7 @@ class Auth extends BaseController $data['total_consume'] = $user['pay_price']; $data['extension_status'] = systemConfig('extension_status'); if (systemConfig('member_status')) $data['member_icon'] = $this->request->userInfo()->member->brokerage_icon ?? ''; + if ($data['is_svip'] == 3) $data['svip_endtime'] = date('Y-m-d H:i:s',strtotime("+100 year")); $find=Db::name('nk_user')->where('user_id',$user['uid'])->find(); if ($find){ $data['group_id']=$find['group_id']; @@ -330,8 +345,8 @@ class Auth extends BaseController { $data = $this->request->params(['phone', 'sms_code', 'spread', 'auth_token',['user_type','h5']]); $validate->sceneSmslogin()->check($data); -// $sms_code = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['sms_code'], 'login'); -// if (!$sms_code) return app('json')->fail('验证码不正确'); + $sms_code = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['sms_code'], 'login'); + if (!$sms_code) return app('json')->fail('验证码不正确'); $user = $repository->accountByUser($data['phone']); $auth = $this->parseAuthToken($data['auth_token']); if (!$user) { diff --git a/app/controller/api/Common.php b/app/controller/api/Common.php index b44671df..8d18b124 100644 --- a/app/controller/api/Common.php +++ b/app/controller/api/Common.php @@ -26,6 +26,7 @@ use app\common\repositories\system\CacheRepository; use app\common\repositories\system\diy\DiyRepository; use app\common\repositories\system\groupData\GroupDataRepository; use app\common\repositories\system\merchant\MerchantRepository; +use app\common\repositories\system\notice\SystemNoticeConfigRepository; use app\common\repositories\user\UserRepository; use app\common\repositories\user\UserSignRepository; use app\common\repositories\user\UserVisitRepository; @@ -98,9 +99,11 @@ class Common extends BaseController public function config() { - $config = systemConfig(['open_update_info', 'store_street_theme', 'is_open_service', 'is_phone_login', 'global_theme', 'integral_status', 'mer_location', 'alipay_open', 'hide_mer_status', 'mer_intention_open', 'share_info', 'share_title', 'share_pic', 'store_user_min_recharge', 'recharge_switch', 'balance_func_status', 'yue_pay_status', 'site_logo', 'routine_logo', 'site_name', 'login_logo', 'procudt_increase_status', 'sys_extension_type', 'member_status', 'copy_command_status', 'community_status', 'withdraw_type', 'recommend_switch', 'member_interests_status', 'beian_sn', 'hot_ranking_switch']); + $config = systemConfig(['open_update_info', 'store_street_theme', 'is_open_service', 'is_phone_login', 'global_theme', 'integral_status', 'mer_location', 'alipay_open', 'hide_mer_status', 'mer_intention_open', 'share_info', 'share_title', 'share_pic', 'store_user_min_recharge', 'recharge_switch', 'balance_func_status', 'yue_pay_status', 'site_logo', 'routine_logo', 'site_name', 'login_logo', 'procudt_increase_status', 'sys_extension_type', 'member_status', 'copy_command_status', 'community_status','community_reply_status','community_app_switch', 'withdraw_type', 'recommend_switch', 'member_interests_status', 'beian_sn', 'community_reply_auth','hot_ranking_switch','svip_switch_status']); $make = app()->make(TemplateMessageRepository::class); + $cache = app()->make(CacheRepository::class)->search(['copyright_status', 'copyright_context', 'copyright_image', 'sys_intention_agree']); + if (!isset($cache['sys_intention_agree'])) { $cache['sys_intention_agree'] = systemConfig('sys_intention_agree'); } @@ -113,7 +116,7 @@ class Common extends BaseController $config['withdraw_type'] = ['1', '2', '3']; } - $config['tempid'] = $make->getSubscribe(); + $config['tempid'] = app()->make(SystemNoticeConfigRepository::class)->getSubscribe(); $config['global_theme'] = $this->getThemeVar($config['global_theme']); $config['navigation'] = app()->make(DiyRepository::class)->getNavigation(); $config = array_merge($config, $cache); @@ -351,8 +354,9 @@ class Common extends BaseController } - public function getCommand($key) + public function getCommand() { + $key = $this->request->param('key'); if (!preg_match('/^(\/@[1-9]{1}).*\*\//', $key)) { return app('json')->fail('无效口令'); } diff --git a/app/controller/api/Wechat.php b/app/controller/api/Wechat.php index 59482f8c..0a5fe805 100644 --- a/app/controller/api/Wechat.php +++ b/app/controller/api/Wechat.php @@ -21,6 +21,8 @@ class Wechat extends BaseController { public function jsConfig() { - return app('json')->success(WechatService::create()->jsSdk($this->request->param('url')?:$this->request->host())); + $data = WechatService::create()->jsSdk($this->request->param('url')?:$this->request->host()); + $data['openTagList'] = ['wx-open-launch-weapp']; + return app('json')->success($data); } } diff --git a/app/controller/api/community/Community.php b/app/controller/api/community/Community.php index 27b2ce14..85701158 100644 --- a/app/controller/api/community/Community.php +++ b/app/controller/api/community/Community.php @@ -55,12 +55,14 @@ class Community extends BaseController { $where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id']); $a=true; - if (!$where['category_id']){ + if (!$where['category_id']) { unset($where['category_id']); //查询非社区数据 $where['no_category_id']=69; $a=false; - } + } else if ($where['category_id'] == -1) { + $where['is_type'] = $this->repository::COMMUNIT_TYPE_VIDEO; + unset($where['category_id']); if ($a &&$where['category_id']==69){ [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->getApiListTwo($where, $page, $limit, $this->user)); @@ -70,6 +72,20 @@ class Community extends BaseController return app('json')->success($this->repository->getApiList($where, $page, $limit, $this->user)); } + /** + * TODO 视频列表 + * @return \think\response\Json + * @author Qinii + * @day 2022/11/29 + */ + public function videoShow() + { + [$page, $limit] = $this->getPage(); + $where['community_id'] = $this->request->param('id',''); + $where = array_merge($where,$this->repository::IS_SHOW_WHERE); + return app('json')->success($this->repository->getApiVideoList($where, $page, $limit, $this->user)); + } + /** * TODO 关注的人的文章 * @param RelevanceRepository $relevanceRepository @@ -107,6 +123,35 @@ class Community extends BaseController return app('json')->success($this->repository->getApiList($where, $page, $limit, $this->user)); } + /** + * TODO 某个用户的视频 + * @param $id + * @return \think\response\Json + * @author Qinii + * @day 10/29/21 + */ + public function userCommunityVideolst($id) + { + $where = []; + [$page, $limit] = $this->getPage(); + $is_start = $this->request->param('is_star',0); + if ($is_start) { + //某人赞过的视频 + $where = $this->repository::IS_SHOW_WHERE; + } else { + //某个人的视频 + if (!$this->user || $this->user->uid != $id) { + $where =$this->repository::IS_SHOW_WHERE; + } + $where['uid'] = $id; + } + + $where['community_id'] = $this->request->param('community_id',''); + $where['is_del'] = 0; + $data = $this->repository->getApiVideoList($where, $page, $limit, $this->user,$is_start); + return app('json')->success($data); + } + /** * TODO 我赞过的文章 @@ -118,7 +163,8 @@ class Community extends BaseController public function getUserStartCommunity(RelevanceRepository $relevanceRepository) { [$page, $limit] = $this->getPage(); - $data = $relevanceRepository->getUserStartCommunity($this->user->uid,$page, $limit); + $where['uid'] = $this->user->uid; + $data = $relevanceRepository->getUserStartCommunity($where,$page, $limit); return app('json')->success($data); } @@ -181,14 +227,8 @@ class Community extends BaseController $data = $this->checkParams(); $this->checkUserAuth(); $data['uid'] = $this->request->uid(); - if (systemConfig('community_audit')) { - $data['status'] = 1; - $data['is_show'] = 1; - } else { - $data['status'] = 0; - $data['is_show'] = 0; - } $res = $this->repository->create($data); + //判断是否发表到社区 if ($data['category_id']==69){ $data['community_id']=$res; event('community_address',$data); @@ -229,25 +269,38 @@ class Community extends BaseController $this->checkUserAuth(); if(!$this->repository->uidExists($id, $this->user->uid)) return app('json')->success('内容不存在或不属于您'); - if (systemConfig('community_audit')) { - $data['status'] = 1; - $data['is_show'] = 1; - } else { - $data['status'] = 0; - $data['is_show'] = 0; - } - $this->repository->edit($id, $data); return app('json')->success(['community_id' => $id]); } public function checkParams() { - $data = $this->request->params(['image','topic_id','content','spu_id','order_id','category_id']); + $data = $this->request->params(['image','topic_id','content','spu_id','order_id',['is_type',1],'video_link']); + $config = systemConfig(["community_app_switch",'community_audit','community_video_audit']); + $data['status'] = 0; + $data['is_show'] = 0; + if ($data['is_type'] == 1) { + if (!in_array($this->repository::COMMUNIT_TYPE_FONT,$config['community_app_switch'])) + throw new ValidateException('社区图文未开启'); + if ($config['community_audit']) { + $data['status'] = 1; + $data['is_show'] = 1; + $data['status_time'] = date('Y-m-d H:i:s', time()); + } + } else { + if (!in_array($this->repository::COMMUNIT_TYPE_VIDEO,$config['community_app_switch'])) + throw new ValidateException('短视频未开启'); + if ($config['community_video_audit']) { + $data['status'] = 1; + $data['is_show'] = 1; + $data['status_time'] = date('Y-m-d H:i:s', time()); + } + if (!$data['video_link']) throw new ValidateException('请上传视频'); + + } + $data['content'] = filter_emoji($data['content']); - app()->make(CommunityValidate::class)->check($data); - $arr = explode("\n", $data['content']); $title = rtrim(ltrim($arr[0])); if (mb_strlen($title) > 40 ){ @@ -369,4 +422,13 @@ class Community extends BaseController $data = $this->repository->getSpuByOrder($id, $this->request->userInfo()->uid); return app('json')->success($data); } + + public function qrcode($id) + { + $id = (int)$id; + $type = $this->request->param('type'); + $url = $this->repository->qrcode($id, $type, $this->request->userInfo()); + if (!$url) return app('json')->fail('二维码生成失败'); + return app('json')->success(compact('url')); + } } diff --git a/app/controller/api/server/StoreOrder.php b/app/controller/api/server/StoreOrder.php index 69e483fe..70ef813f 100644 --- a/app/controller/api/server/StoreOrder.php +++ b/app/controller/api/server/StoreOrder.php @@ -67,9 +67,11 @@ class StoreOrder extends BaseController { [$page, $limit] = $this->getPage(); $where['status'] = $this->request->param('status'); + $where['is_verify'] = $this->request->param('is_verify'); $where['search'] = $this->request->param('store_name'); $where['mer_id'] = $merId; $where['is_del'] = 0; + if($where['status'] == 2) $where['order_type'] = 0; return app('json')->success($repository->merchantGetList($where, $page, $limit)); } diff --git a/app/controller/api/server/StoreProduct.php b/app/controller/api/server/StoreProduct.php index c5a17921..d39a5ffd 100644 --- a/app/controller/api/server/StoreProduct.php +++ b/app/controller/api/server/StoreProduct.php @@ -71,18 +71,15 @@ class StoreProduct extends BaseController */ public function create($merId, StoreProductValidate $validate) { - $data = $this->checkParams($validate); + $res = $this->request->params($this->repository::CREATE_PARAMS); + $data = $this->repository->checkParams($res,$merId); $data['mer_id'] = $merId; $data['is_gift_bag'] = 0; - $this->repository->check($data, $merId); $merchant = app()->make(MerchantRepository::class)->get($merId); - $data['status'] = $merchant->is_audit ? 0 : 1; - $data['mer_status'] = ($merchant['is_del'] || !$merchant['mer_state'] || !$merchant['status']) ? 0 : 1; $data['rate'] = 3; $this->repository->create($data, 0, 1); - return app('json')->success('添加成功'); } @@ -97,11 +94,12 @@ class StoreProduct extends BaseController */ public function update($merId, $id, StoreProductValidate $validate) { + $res = $this->request->params($this->repository::CREATE_PARAMS); + $data = $this->repository->checkParams($res,$merId,$id); + $merchant = app()->make(MerchantRepository::class)->get($merId); - $data = $this->checkParams($validate); if (!$this->repository->merExists($merId, $id)) return app('json')->fail('数据不存在'); - $this->repository->check($data, $merId); $pro = $this->repository->getWhere(['product_id' => $id]); if ($pro->status == -2) { $data['status'] = 0; @@ -114,86 +112,6 @@ class StoreProduct extends BaseController return app('json')->success('编辑成功'); } - public function checkParams(StoreProductValidate $validate) - { - $params = [ - "image", - "slider_image", - "store_name", - "store_info", - "keyword", - "bar_code", - ["brand_id", 0], - "guarantee_template_id", - "cate_id", - "mer_cate_id", - "unit_name", - "sort", - "is_show", - "is_good", - ['is_gift_bag', 0], - 'once_count', - 'integral_rate', - "video_link", - "temp_id", - "content", - "spec_type", - "extension_type", - "attr", - "attrValue", - ['give_coupon_ids', []], - 'mer_labels', - ['delivery_way',2], - 'delivery_free', - ['type',0], - 'is_gift_bag', - ['once_max_count',0], - ['once_min_count',0], - ['pay_limit',0], - ]; - $data = $this->request->params($params); - if (!$data['pay_limit']) $data['once_max_count'] = 0; - app()->make(ProductLabelRepository::class)->checkHas($this->merId, $data['mer_labels']); - if (!$data['spec_type']) { - foreach ($data['attrValue'] as $k => $datum) { - $datum['image'] = $data['image']; - $datum['volume'] = 0; - $datum['weight'] = 0; - $data['attrValue'][$k] = $datum; - } - } - $validate->check($data); - if (isset($data['type']) && $data['type']) { - $key = ['email','text','number','date','time','idCard','mobile','image']; - if (count($data['extend']) > 10) { - throw new ValidateException('附加表单不能超过10条'); - } - if ($data['extend']) { - $title = []; - foreach ($data['extend'] as $item) { - if (empty($item['title']) ){ - throw new ValidateException('表单名称不能为空:'.$item['key']); - } - if (in_array($item['title'],$title)) { - throw new ValidateException('表单名称不能重复:'.$item['title']); - } - $title[] = $item['title']; - if (!in_array($item['key'], $key)) { - throw new ValidateException('表单类型错误:'.$item['key']); - } - $extend[] = [ - 'title' => $item['title'], - 'key' => $item['key'] , - 'require' => $item['require'], - ]; - } - } - } - - $data['extend'] = $extend ?? []; - return $data; - } - /** * TODO 详情 * @param $merId @@ -222,7 +140,7 @@ class StoreProduct extends BaseController $status = $this->request->param('status', 0) == 1 ? 1 : 0; if (!$this->repository->merExists($merId, $id)) return app('json')->fail('数据不存在'); - $this->repository->switchShow([$id],$status, 'is_show',$merId); + $this->repository->switchShow($id,$status, 'is_show',$merId); return app('json')->success('修改成功'); } diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index eac91d69..cc0f8236 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -12,7 +12,9 @@ namespace app\controller\api\store\merchant; +use app\common\repositories\system\merchant\MerchantAdminRepository; use app\common\repositories\system\merchant\MerchantCategoryRepository; +use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\system\merchant\MerchantTypeRepository; use app\validate\api\MerchantIntentionValidate; use crmeb\services\SmsService; @@ -42,6 +44,14 @@ class MerchantIntention extends BaseController return app('json')->fail('未开启商户入驻'); } if ($this->userInfo) $data['uid'] = $this->userInfo->uid; + $make = app()->make(MerchantRepository::class); + if ($make->fieldExists('mer_name', $data['mer_name'])) + throw new ValidateException('商户名称已存在,不可申请'); + if ($make->fieldExists('mer_phone', $data['phone'])) + throw new ValidateException('手机号已存在,不可申请'); + $adminRepository = app()->make(MerchantAdminRepository::class); + if ($adminRepository->fieldExists('account', $data['phone'])) + throw new ValidateException('手机号已是管理员,不可申请'); $intention = $this->repository->create($data); SwooleTaskService::admin('notice', [ 'type' => 'new_intention', diff --git a/app/controller/api/store/order/StoreCart.php b/app/controller/api/store/order/StoreCart.php index 16403d02..6156aa4b 100644 --- a/app/controller/api/store/order/StoreCart.php +++ b/app/controller/api/store/order/StoreCart.php @@ -48,7 +48,6 @@ class StoreCart extends BaseController $this->repository = $repository; } - /** * @Author:Qinii * @Date: 2020/5/28 @@ -57,7 +56,7 @@ class StoreCart extends BaseController public function lst() { [$page, $limit] = $this->getPage(); - return app('json')->success($this->repository->getList($this->request->uid())); + return app('json')->success($this->repository->getList($this->request->userInfo())); } /** diff --git a/app/controller/api/store/order/StoreOrder.php b/app/controller/api/store/order/StoreOrder.php index d6859035..13793207 100644 --- a/app/controller/api/store/order/StoreOrder.php +++ b/app/controller/api/store/order/StoreOrder.php @@ -23,6 +23,7 @@ use app\common\repositories\store\order\StoreCartRepository; use app\common\repositories\store\order\StoreGroupOrderRepository; use app\common\repositories\store\order\StoreOrderRepository; use crmeb\services\ExpressService; +use crmeb\services\LockService; use think\App; use think\exception\ValidateException; @@ -99,14 +100,9 @@ class StoreOrder extends BaseController // if (!$addressId) // return app('json')->fail('请选择地址'); - makeLock()->lock(); - try { - $groupOrder = $orderCreateRepository->v2CreateOrder(array_search($payType, StoreOrderRepository::PAY_TYPE), $this->request->userInfo(), $cartId, $extend, $mark, $receipt_data, $takes, $couponIds, $useIntegral, $addressId, $post); - } catch (\Throwable $e) { - makeLock()->unlock(); - throw $e; - } - makeLock()->unlock(); + $groupOrder = app()->make(LockService::class)->exec('order.create', function () use ($orderCreateRepository, $receipt_data, $mark, $extend, $cartId, $payType, $takes, $couponIds, $useIntegral, $addressId, $post) { + return $orderCreateRepository->v2CreateOrder(array_search($payType, StoreOrderRepository::PAY_TYPE), $this->request->userInfo(), $cartId, $extend, $mark, $receipt_data, $takes, $couponIds, $useIntegral, $addressId, $post); + }); if ($groupOrder['pay_price'] == 0) { $this->repository->paySuccess($groupOrder); @@ -285,20 +281,11 @@ class StoreOrder extends BaseController public function createReceipt($id) { - $data = $this->request->params([ - 'receipt_type' , - 'receipt_title' , - 'duty_paragraph', - 'receipt_title_type', - 'bank_name', - 'bank_code', - 'address', - 'tel', - 'email' - ]); - $order = $this->repository->getWhere(['order_id' => $id, 'uid' => $this->request->uid(), 'is_del' => 0, 'order_type' => 1]); + $data = $this->request->params(['receipt_type' , 'receipt_title' , 'duty_paragraph', 'receipt_title_type', 'bank_name', 'bank_code', 'address','tel', 'email']); + $order = $this->repository->getWhere(['order_id' => $id, 'uid' => $this->request->uid(), 'is_del' => 0]); if (!$order) return app('json')->fail('订单不属于您或不存在'); app()->make(StoreOrderReceiptRepository::class)->add($data, $order); + return app('json')->success('操作成功'); } public function getOrderDelivery($id, DeliveryOrderRepository $orderRepository) @@ -306,5 +293,4 @@ class StoreOrder extends BaseController $res = $orderRepository->show($id, $this->request->uid()); return app('json')->success($res); } - } diff --git a/app/controller/api/store/order/StoreOrderVerify.php b/app/controller/api/store/order/StoreOrderVerify.php index 076edaf4..4b573fcb 100644 --- a/app/controller/api/store/order/StoreOrderVerify.php +++ b/app/controller/api/store/order/StoreOrderVerify.php @@ -29,18 +29,6 @@ class StoreOrderVerify extends BaseController public function __construct(App $app) { parent::__construct($app); - $merId = $this->request->route('merId'); - $user = $this->request->userInfo(); - $userInfo = $this->request->userInfo(); - $service = app()->make(StoreServiceRepository::class)->getService($userInfo->uid, $merId); - if (!$service && $userInfo->main_uid) { - $service = app()->make(StoreServiceRepository::class)->getService($userInfo->main_uid, $merId); - } - if (!$service || !$service->customer) { - throw new HttpResponseException(app('json')->fail('没有权限')); - } - $this->service = $service; - $this->user = $user; } public function detail($merId, $id, StoreOrderRepository $repository) @@ -49,12 +37,13 @@ class StoreOrderVerify extends BaseController if (!$order) return app('json')->fail('订单不存在'); if ($order->mer_id != $merId) return app('json')->fail('没有权限查询该订单'); - return app('json')->success($order->toArray()); + return app('json')->success($order); } public function verify($merId, $id, StoreOrderRepository $repository) { - $repository->verifyOrder($id, $merId, $this->service->service_id); + $data = $this->request->params(['data','verify_code']); + $repository->verifyOrder($id, $merId, $data,$this->request->serviceInfo()->service_id); return app('json')->success('订单核销成功'); } } diff --git a/app/controller/api/store/order/StoreRefundOrder.php b/app/controller/api/store/order/StoreRefundOrder.php index c69e230b..5b3d8e94 100644 --- a/app/controller/api/store/order/StoreRefundOrder.php +++ b/app/controller/api/store/order/StoreRefundOrder.php @@ -98,7 +98,7 @@ class StoreRefundOrder extends BaseController $total_refund_price = (float)$data['total_refund_price']; $postage_price = (float)$data['postage_price']; } - $status = $order->status; + $status = (!$order->status || $order->status == 9) ? 0 : $order->status; $activity_type = $order->activity_type; return app('json')->success(compact('activity_type', 'total_refund_price', 'product', 'postage_price', 'status')); } @@ -207,4 +207,10 @@ class StoreRefundOrder extends BaseController return app('json')->success(compact('refund', 'express')); } + public function cancel($id) + { + $this->repository->cancel($id, $this->request->userInfo()); + return app('json')->success('取消成功'); + } + } diff --git a/app/controller/api/store/product/Discounts.php b/app/controller/api/store/product/Discounts.php index a68ba027..1844d5d6 100644 --- a/app/controller/api/store/product/Discounts.php +++ b/app/controller/api/store/product/Discounts.php @@ -48,7 +48,7 @@ class Discounts extends BaseController $where['discount_id'] = $discount_id; } - return app('json')->success($this->repository->getApilist($where, $id)); + return app('json')->success($this->repository->getApilist($where)); } diff --git a/app/controller/api/store/product/StoreCoupon.php b/app/controller/api/store/product/StoreCoupon.php index fca8b4a7..0493ddb8 100644 --- a/app/controller/api/store/product/StoreCoupon.php +++ b/app/controller/api/store/product/StoreCoupon.php @@ -111,11 +111,7 @@ class StoreCoupon extends BaseController { if (!$repository->exists($id)) return app('json')->fail('优惠券不存在'); - try { - $repository->receiveCoupon($id, $this->uid); - } catch (\Exception $e) { - return app('json')->fail('优惠券已被领完'); - } + $repository->receiveCoupon($id, $this->uid); return app('json')->success('领取成功'); } @@ -126,8 +122,9 @@ class StoreCoupon extends BaseController */ public function getList(StoreCouponRepository $couponRepository) { - $where = $this->request->params(['type','mer_id', 'product','is_pc']); + $where = $this->request->params(['type','mer_id', 'product','is_pc',['send_type',0]]); [$page, $limit] = $this->getPage(); + $where['not_svip'] = 1; $data = $couponRepository->apiList($where, $page, $limit, $this->uid); return app('json')->success($data); } diff --git a/app/controller/api/store/product/StoreProduct.php b/app/controller/api/store/product/StoreProduct.php index b2a0c36a..b63ecf94 100644 --- a/app/controller/api/store/product/StoreProduct.php +++ b/app/controller/api/store/product/StoreProduct.php @@ -13,11 +13,11 @@ namespace app\controller\api\store\product; -use app\common\repositories\store\GuaranteeTemplateRepository; +use app\common\repositories\store\PriceRuleRepository; use app\common\repositories\store\product\SpuRepository; +use app\common\repositories\store\StoreCategoryRepository; use app\common\repositories\system\groupData\GroupDataRepository; use app\common\repositories\user\UserMerchantRepository; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\product\ProductRepository as repository; @@ -66,7 +66,7 @@ class StoreProduct extends BaseController { $data = $this->repository->detail($id, $this->userInfo); if (!$data){ - queue(ChangeSpuStatusJob::class,['id' => $id,'product_type' => 0]); + app()->make(SpuRepository::class)->changeStatus($id,0); return app('json')->fail('商品已下架'); } @@ -176,4 +176,21 @@ class StoreProduct extends BaseController if(!$data) return app('json')->fail('数据不存在'); return app('json')->success($data); } + + public function priceRule($id) + { + $path = app()->make(StoreCategoryRepository::class)->query(['store_category_id' => $id, 'mer_id' => 0])->value('path'); + if ($path && $path !== '/') { + $ids = explode('/', trim($path, '/')); + $ids[] = $id; + } else { + $ids[] = $id; + } + $rule = app()->make(PriceRuleRepository::class)->search(['cate_id' => $ids, 'is_show' => 1]) + ->order('sort DESC,rule_id DESC')->find(); + if ($rule) { + return app('json')->success($rule->toArray()); + } + return app('json')->fail('规则不存在'); + } } diff --git a/app/controller/api/store/product/StoreProductGroup.php b/app/controller/api/store/product/StoreProductGroup.php index c2dd22fd..72efc66a 100644 --- a/app/controller/api/store/product/StoreProductGroup.php +++ b/app/controller/api/store/product/StoreProductGroup.php @@ -14,7 +14,6 @@ namespace app\controller\api\store\product; use app\common\repositories\store\product\ProductGroupBuyingRepository; use app\common\repositories\store\product\ProductGroupUserRepository; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\product\ProductGroupRepository; diff --git a/app/controller/api/store/product/StoreProductSeckill.php b/app/controller/api/store/product/StoreProductSeckill.php index 4d72a54d..db4d931b 100644 --- a/app/controller/api/store/product/StoreProductSeckill.php +++ b/app/controller/api/store/product/StoreProductSeckill.php @@ -13,8 +13,8 @@ namespace app\controller\api\store\product; +use app\common\repositories\store\product\SpuRepository; use app\common\repositories\store\StoreSeckillTimeRepository; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\product\ProductRepository as repository; @@ -65,7 +65,7 @@ class StoreProductSeckill extends BaseController { $data = $this->repository->seckillDetail($id,$this->userInfo); if (!$data) { - queue(ChangeSpuStatusJob::class,['id' => $id,'product_type' => 1]); + app()->make(SpuRepository::class)->changeStatus($id, 1); return app('json')->fail('商品不存在'); } return app('json')->success($data); diff --git a/app/controller/api/store/product/StoreReply.php b/app/controller/api/store/product/StoreReply.php index 9cd407be..98f186ee 100644 --- a/app/controller/api/store/product/StoreReply.php +++ b/app/controller/api/store/product/StoreReply.php @@ -68,11 +68,9 @@ class StoreReply extends BaseController $data = $this->request->params(['comment', 'product_score', 'service_score', 'postage_score', ['pics', []]]); $validate->check($data); $user = $this->request->userInfo(); - $_name = mb_substr($user['nickname'],0,1).'***'; - $name = (strLen($user['nickname']) > 6) ? $_name.mb_substr($user['nickname'],-1,1) : $_name; $data['uid'] = $this->request->uid(); $data['order_product_id'] = (int)$id; - $data['nickname'] = $name; + $data['nickname'] = $user['nickname']; $data['avatar'] = $user['avatar']; $this->repository->reply($data); return app('json')->success('评价成功'); diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index ff142939..80c13535 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\controller\api\store\product; +use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\StoreCategoryRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\common\repositories\user\UserHistoryRepository; @@ -59,7 +60,7 @@ class StoreSpu extends BaseController ]); $where['is_gift_bag'] = 0; $where['product_type'] = 0; - $where['order'] = $where['order'] ? $where['order'] : 'star'; + $where['order'] = $where['order'] ?: 'star'; if ($where['is_trader'] != 1) unset($where['is_trader']); $data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo); return app('json')->success($data); @@ -156,6 +157,7 @@ class StoreSpu extends BaseController break; } $where['product_type'] = 0; + $where['is_stock'] = 1; $data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo); return app('json')->success($data); } @@ -306,7 +308,7 @@ class StoreSpu extends BaseController $data = []; foreach ($cateId as $cate_id) { $cate = app()->make(StoreCategoryRepository::class)->get($cate_id); - $list = $this->repository->getHotRanking($cate_id ?: 0); + $list = $this->repository->getHotRanking($cate_id); $data[] = [ 'cate_id' => $cate['store_category_id'] ?? 0, 'cate_name' => $cate['cate_name'] ?? '总榜', @@ -317,4 +319,5 @@ class StoreSpu extends BaseController } + } diff --git a/app/controller/api/store/service/Service.php b/app/controller/api/store/service/Service.php index 262b0aa9..8a54887e 100644 --- a/app/controller/api/store/service/Service.php +++ b/app/controller/api/store/service/Service.php @@ -191,4 +191,5 @@ class Service extends BaseController return app('json')->success('登录成功'); } + } diff --git a/app/controller/api/user/Svip.php b/app/controller/api/user/Svip.php new file mode 100644 index 00000000..de6b339b --- /dev/null +++ b/app/controller/api/user/Svip.php @@ -0,0 +1,168 @@ + +// +---------------------------------------------------------------------- + + +namespace app\controller\api\user; + +use app\common\model\user\UserOrder; +use app\common\repositories\store\coupon\StoreCouponRepository; +use app\common\repositories\store\order\StoreOrderRepository; +use app\common\repositories\store\product\ProductRepository; +use app\common\repositories\store\product\SpuRepository; +use app\common\repositories\system\groupData\GroupDataRepository; +use app\common\repositories\system\groupData\GroupRepository; +use app\common\repositories\system\serve\ServeOrderRepository; +use app\common\repositories\user\MemberinterestsRepository; +use app\common\repositories\user\UserBillRepository; +use app\common\repositories\user\UserOrderRepository; +use app\common\repositories\user\UserRepository; +use crmeb\basic\BaseController; +use app\common\repositories\user\FeedbackRepository; +use think\App; +use think\exception\ValidateException; + +class Svip extends BaseController +{ + protected $repository; + + public function __construct(App $app, UserBillRepository $repository) + { + parent::__construct($app); + $this->repository = $repository; + if (!systemConfig('svip_switch_status')) throw new ValidateException('付费会员未开启'); + } + + /** + * TODO 会员卡类型列表 + * @param GroupRepository $groupRepository + * @param GroupDataRepository $groupDataRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/7 + */ + public function getTypeLst(GroupRepository $groupRepository,GroupDataRepository $groupDataRepository) + { + $group_id = $groupRepository->getSearch(['group_key' => 'svip_pay'])->value('group_id'); + $where['group_id'] = $group_id; + $where['status'] = 1; + $list = $groupDataRepository->getSearch($where)->field('group_data_id,value,sort,status')->order('sort DESC')->select(); + if ($this->request->isLogin() && $this->request->userInfo()->is_svip != -1) { + foreach ($list as $item) { + if ($item['value']['svip_type'] != 1) $res[] = $item; + } + } + $list = $res ?? $list; + $def = []; + if ($list && isset($list[0])) { + $def = $list[0] ? (['group_data_id' => $list[0]['group_data_id']] + $list[0]['value']) : []; + } + return app('json')->success(['def' => $def, 'list' => $list]); + } + + /** + * TODO 购买会员 + * @param $id + * @param GroupDataRepository $groupDataRepository + * @param ServeOrderRepository $serveOrderRepository + * @return \think\response\Json|void + * @author Qinii + * @day 2022/11/7 + */ + public function createOrder($id, GroupDataRepository $groupDataRepository, UserOrderRepository $userOrderRepository) + { + $params = $this->request->params(['pay_type','return_url']); + if (!in_array($params['pay_type'], ['weixin', 'routine', 'h5', 'alipay', 'alipayQr', 'weixinQr'], true)) + return app('json')->fail('请选择正确的支付方式'); + $res = $groupDataRepository->getWhere(['group_data_id' => $id, 'status' => 1]); + if (!$res) return app('json')->fail('参数有误~'); + if ($this->request->userInfo()->is_svip == 3) + return app('json')->fail('您已经是终身会员~'); + if ($this->request->userInfo()->is_svip !== -1 && $res['value']['svip_type'] == 1) + return app('json')->fail('请选择其他会员类型'); + $params['is_app'] = $this->request->isApp(); + return $userOrderRepository->add($res,$this->request->userInfo(),$params); + } + + /** + * TODO 会员中心个人信息 + * @return \think\response\Json + * @author Qinii + * @day 2022/11/9 + */ + public function svipUserInfo() + { + if ($this->request->isLogin()) { + $user = app()->make(UserRepository::class)->getSearch([])->field('uid,nickname,avatar,is_svip,svip_endtime,svip_save_money')->find($this->request->uid()); + if ($user && $user['is_svip'] == 3) $user['svip_endtime'] = date('Y-m-d H:i:s',strtotime("+100 year")); + } + $data['user'] = $user ?? new \stdClass(); + $data['interests'] = systemConfig('svip_switch_status') ? app()->make(MemberinterestsRepository::class)->getInterestsByLevel(MemberinterestsRepository::TYPE_SVIP) : []; + + return app('json')->success($data); + } + + /** + * TODO 获取会员优惠券列表 + * @param StoreCouponRepository $couponRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/17 + */ + public function svipCoupon(StoreCouponRepository $couponRepository) + { + $where['send_type'] = $couponRepository::GET_COUPON_TYPE_SVIP; + $uid = $this->request->isLogin() ? $this->request->uid() : null; + $data = $couponRepository->sviplist($where, $uid); + return app('json')->success($data); + } + + /** + * TODO 领取会员优惠券 + * @param $id + * @param StoreCouponRepository $couponRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/17 + */ + public function receiveCoupon($id, StoreCouponRepository $couponRepository) + { + if (!$this->request->userInfo()->is_svip) + return app('json')->fail('您还不是付费会员'); + if (!$couponRepository->exists($id)) + return app('json')->fail('优惠券不存在'); + try { + $couponRepository->receiveSvipCounpon($id, $this->request->uid()); + } catch (\Exception $e) { + return app('json')->fail('优惠券已被领完'); + } + return app('json')->success('领取成功'); + } + + /** + * TODO 会员专属商品 + * @param SpuRepository $spuRepository + * @return \think\response\Json + * @author Qinii + * @day 2022/11/17 + */ + public function svipProductList(SpuRepository $spuRepository) + { + [$page, $limit] = $this->getPage(); + $user = $this->request->isLogin() ? $this->request->userInfo() : null; + $where['is_gift_bag'] = 0; + $where['product_type'] = 0; + $where['order'] = 'star'; + $where['svip'] = 1; + $data = $spuRepository->getApiSearch($where, $page, $limit, $user); + return app('json')->success($data); + } +} diff --git a/app/controller/api/user/User.php b/app/controller/api/user/User.php index 0e5b0af7..183dcbcc 100644 --- a/app/controller/api/user/User.php +++ b/app/controller/api/user/User.php @@ -605,7 +605,8 @@ class User extends BaseController } $data['next_level'] = $next_level; - $data['interests'] = app()->make(MemberinterestsRepository::class)->getInterestsByLevel($this->user->member_level, 1); + $makeInteres = app()->make(MemberinterestsRepository::class); + $data['interests'] = systemConfig('member_interests_status') ? $makeInteres->getInterestsByLevel($makeInteres::TYPE_FREE,$this->user->member_level) : [] ; $data['today'] = app()->make(UserBillRepository::class)->search([ 'category' => 'sys_members', @@ -615,17 +616,22 @@ class User extends BaseController $config_key = ['member_pay_num', 'member_sign_num', 'member_reply_num', 'member_share_num']; if (systemConfig('community_status')) $config_key[] = 'member_community_num'; - $data['config'] = systemConfig($config_key); + $config= systemConfig($config_key); + if ($this->user->is_svip > 0) { + foreach ($config as $key => $item) { + $data['config'][$key] = $item .' x' . $makeInteres->getSvipInterestVal($makeInteres::HAS_TYPE_MEMBER).' '; + } + } else { + $data['config'] = $config; + } return app('json')->success($data); } public function notice() { - $type = $this->request->param('type'); - if (empty($type)) return app('json')->fail('缺少参数'); - + $type = $this->request->param('type',0); $arr = [ '0' => 'brokerage_level', '1' => 'member_level', diff --git a/app/controller/api/user/UserExtract.php b/app/controller/api/user/UserExtract.php index 4a8ddadb..186e6855 100644 --- a/app/controller/api/user/UserExtract.php +++ b/app/controller/api/user/UserExtract.php @@ -55,7 +55,7 @@ class UserExtract extends BaseController public function checkParams(validate $validate) { - $data = $this->request->params(['extract_type','bank_code','bank_address','alipay_code','wechat','extract_pic','extract_price','real_name']); + $data = $this->request->params(['extract_type','bank_code','bank_address','alipay_code','wechat','extract_pic','extract_price','real_name','bank_name']); $validate->check($data); return $data; } diff --git a/app/controller/merchant/Common.php b/app/controller/merchant/Common.php index 455ac957..bc271941 100644 --- a/app/controller/merchant/Common.php +++ b/app/controller/merchant/Common.php @@ -262,8 +262,8 @@ class Common extends BaseController return app('json')->fail('请上传视频'); validate(["file|视频" => [ 'fileSize' => config('upload.filesize'), - 'fileExt' => 'mp4', - 'fileMime' => 'video/mp4', + 'fileExt' => 'mp4,mov', + 'fileMime' => 'video/mp4,video/quicktime', ]])->check(['file' => $file]); $upload = UploadService::create(1); $data = $upload->to('media')->validate([])->move('file'); diff --git a/app/controller/merchant/store/StoreImport.php b/app/controller/merchant/store/StoreImport.php index ee4589dc..225ee328 100644 --- a/app/controller/merchant/store/StoreImport.php +++ b/app/controller/merchant/store/StoreImport.php @@ -15,6 +15,7 @@ use app\common\repositories\store\ExcelRepository; use app\common\repositories\store\order\StoreImportDeliveryRepository; use app\common\repositories\store\order\StoreOrderRepository; use crmeb\jobs\ImportSpreadsheetExcelJob; +use crmeb\services\ExcelService; use crmeb\services\SpreadsheetExcelService; use crmeb\services\UploadService; use think\App; @@ -64,8 +65,9 @@ class StoreImport extends BaseController 'import_id' => $id, 'mer_id' => $this->request->merId() ]; - app()->make(ExcelRepository::class)->create($where,$this->request->adminId(),'importDelivery',$this->request->merId()); - return app('json')->success('开始生成数据,请去导出文件列表下载'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->importDelivery($where, $page, $limit); + return app('json')->success($data); } /** diff --git a/app/controller/merchant/store/order/Order.php b/app/controller/merchant/store/order/Order.php index 763493dc..a8c8eeb2 100644 --- a/app/controller/merchant/store/order/Order.php +++ b/app/controller/merchant/store/order/Order.php @@ -17,6 +17,7 @@ use app\common\repositories\store\order\MerchantReconciliationRepository; use app\common\repositories\store\order\StoreOrderRepository; use crmeb\exceptions\UploadException; use crmeb\jobs\BatchDeliveryJob; +use crmeb\services\ExcelService; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\order\StoreOrderRepository as repository; @@ -332,12 +333,20 @@ class Order extends BaseController * @author xaboy * @day 2020/8/15 */ - public function verify($code) + public function verify($id) { - $this->repository->verifyOrder($code, $this->request->merId(), 0); + $data = $this->request->params(['data','verify_code']); + $this->repository->verifyOrder($id, $this->request->merId(), $data); return app('json')->success('订单核销成功'); } + public function verifyDetail($code) + { + $order = $this->repository->codeByDetail($code); + if (!$order) return app('json')->fail('订单不存在'); + return app('json')->success($order); + } + /** * @param $id * @return mixed @@ -389,6 +398,7 @@ class Order extends BaseController */ public function excel() { + [$page, $limit] = $this->getPage(); $where = $this->request->params(['status', 'date', 'order_sn', 'order_type', 'username', 'keywords', 'take_order']); if ($where['take_order']) { $where['status'] = -1; @@ -397,8 +407,8 @@ class Order extends BaseController unset($where['order_type']); } $where['mer_id'] = $this->request->merId(); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'order', $this->request->merId()); - return app('json')->success('开始导出数据'); + $data = app()->make(ExcelService::class)->order($where,$page,$limit); + return app('json')->success($data); } /** @@ -432,8 +442,11 @@ class Order extends BaseController $make = app()->make(StoreOrderRepository::class); if (is_array($where['id'])) $where['order_ids'] = $where['id']; $count = $make->search($where)->count(); - if (!$count) app('json')->fail('没有可导出数据'); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'delivery', $this->request->merId()); - return app('json')->success('开始导出数据'); + if (!$count) return app('json')->fail('没有可导出数据'); + + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->delivery($where,$page,$limit); + return app('json')->success($data); + } } diff --git a/app/controller/merchant/store/order/RefundOrder.php b/app/controller/merchant/store/order/RefundOrder.php index 0f7db41a..9c3e9986 100644 --- a/app/controller/merchant/store/order/RefundOrder.php +++ b/app/controller/merchant/store/order/RefundOrder.php @@ -15,6 +15,7 @@ namespace app\controller\merchant\store\order; use app\common\repositories\store\ExcelRepository; use app\common\repositories\store\order\MerchantReconciliationRepository; use app\common\repositories\store\order\StoreRefundStatusRepository; +use crmeb\services\ExcelService; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\order\StoreRefundOrderRepository as repository; @@ -193,8 +194,6 @@ class RefundOrder extends BaseController */ public function express($id) { -// if(!$this->repository->getWhereCount(['refund_order_id' => $id,'status' =>2])) -// return app('json')->fail('订单信息或状态错误'); return app('json')->success($this->repository->express($id)); } @@ -202,7 +201,8 @@ class RefundOrder extends BaseController { $where = $this->request->params(['refund_order_sn','status','refund_type','date','order_sn','id']); $where['mer_id'] = $this->request->merId(); - app()->make(ExcelRepository::class)->create($where,$this->request->adminId(),'refundOrder',$this->request->merId()); - return app('json')->success('开始生成导出文件'); + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->refundOrder($where, $page, $limit); + return app('json')->success($data); } } diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php index 9f221bdf..83a0df41 100644 --- a/app/controller/merchant/store/product/Product.php +++ b/app/controller/merchant/store/product/Product.php @@ -12,15 +12,12 @@ namespace app\controller\merchant\store\product; -use app\common\repositories\store\GuaranteeTemplateRepository; use app\common\repositories\store\order\StoreCartRepository; -use app\common\repositories\store\product\ProductLabelRepository; +use app\common\repositories\store\product\ProductAttrValueRepository; use app\common\repositories\store\product\SpuRepository; use app\common\repositories\store\shipping\ShippingTemplateRepository; use app\common\repositories\store\StoreCategoryRepository; -use crmeb\jobs\ChangeSpuStatusJob; use crmeb\services\UploadService; -use crmeb\traits\CategoresRepository; use think\App; use crmeb\basic\BaseController; use app\validate\merchant\StoreProductValidate as validate; @@ -74,16 +71,15 @@ class Product extends BaseController * @param validate $validate * @return mixed */ - public function create(validate $validate) + public function create() { - $merchant = $this->request->merchant(); - $data = $this->checkParams($validate,0); + $params = $this->request->params($this->repository::CREATE_PARAMS); + $data = $this->repository->checkParams($params,$this->request->merId()); $data['mer_id'] = $this->request->merId(); if ($data['is_gift_bag'] && !$this->repository->checkMerchantBagNumber($data['mer_id'])) return app('json')->fail('礼包数量超过数量限制'); - $this->repository->check($data,$this->request->merId()); $data['status'] = $this->request->merchant()->is_audit ? 0 : 1; - $data['mer_status'] = ($merchant['is_del'] || !$merchant['mer_state'] || !$merchant['status']) ? 0 : 1; + $data['mer_status'] = ($this->request->merchant()->is_del || !$this->request->merchant()->mer_state || !$this->request->merchant()->status) ? 0 : 1; $data['rate'] = 3; $this->repository->create($data,0); return app('json')->success('添加成功'); @@ -96,20 +92,19 @@ class Product extends BaseController * @param validate $validate * @return mixed */ - public function update($id,validate $validate) + public function update($id) { - $merchant = $this->request->merchant(); - $data = $this->checkParams($validate, $id); + $params = $this->request->params($this->repository::CREATE_PARAMS); + $data = $this->repository->checkParams($params,$this->request->merId(), $id); if (!$this->repository->merExists($this->request->merId(), $id)) return app('json')->fail('数据不存在'); - $this->repository->check($data, $this->request->merId()); $pro = $this->repository->getWhere(['product_id' => $id]); if ($pro->status == -2) { $data['status'] = 0; } else { $data['status'] = $this->request->merchant()->is_audit ? 0 : 1; } - $data['mer_status'] = ($merchant['is_del'] || !$merchant['mer_state'] || !$merchant['status']) ? 0 : 1; + $data['mer_status'] = ($this->request->merchant()->is_del || !$this->request->merchant()->mer_state || !$this->request->merchant()->status) ? 0 : 1; $data['mer_id'] = $this->request->merId(); $this->repository->edit($id, $data, $this->request->merId(), 0); return app('json')->success('编辑成功'); @@ -143,20 +138,7 @@ class Product extends BaseController return app('json')->success('删除成功'); } - /** - * @Author:Qinii - * @Date: 2020/5/18 - * @param int $id - * @return mixed - */ - public function switchStatus($id) - { - $status = $this->request->param('status', 0) == 1 ? 1 : 0; - if(!$this->repository->merExists($this->request->merId(),$id)) - return app('json')->fail('数据不存在'); - $this->repository->switchShow([$id], $status,'is_show',$this->request->merId()); - return app('json')->success('修改成功'); - } + /** * @Author:Qinii @@ -168,93 +150,6 @@ class Product extends BaseController return app('json')->success($this->repository->getFilter($this->request->merId(),'商品',0)); } - /** - * @Author:Qinii - * @Date: 2020/5/8 - * @Time: 14:39 - * @param validate $validate - * @return array - */ - public function checkParams(validate $validate, $id) - { - $params = [ - "image", - "slider_image", - "store_name", - "store_info", - "keyword", - "bar_code", - ["brand_id",0], - "guarantee_template_id", - "cate_id", - "mer_cate_id", - "unit_name", - "sort" , - "is_show", - "is_good", - 'is_gift_bag', - 'once_max_count', - 'once_min_count', - 'pay_limit', - 'integral_rate', - "video_link", - "temp_id", - "content", - "spec_type", - "extension_type", - "attr", - "attrValue", - ['give_coupon_ids',[]], - 'mer_labels', - 'delivery_way', - 'delivery_free', - ['type',0], - 'extend', - ]; - $data = $this->request->params($params); - if (!$data['pay_limit']) $data['once_max_count'] = 0; - if (isset($data['type']) && $data['type']) { - $key = ['email','text','number','date','time','idCard','mobile','image']; - if (count($data['extend']) > 10) { - throw new ValidateException('附加表单不能超过10条'); - } - if ($data['extend']) { - $title = []; - foreach ($data['extend'] as $item) { - if (empty($item['title']) ){ - throw new ValidateException('表单名称不能为空:'.$item['key']); - } - if (in_array($item['title'],$title)) { - throw new ValidateException('表单名称不能重复:'.$item['title']); - } - $title[] = $item['title']; - if (!in_array($item['key'], $key)) { - throw new ValidateException('表单类型错误:'.$item['key']); - } - $extend[] = [ - 'title' => $item['title'], - 'key' => $item['key'] , - 'require' => $item['require'], - ]; - } - } - } - - app()->make(ProductLabelRepository::class)->checkHas($this->request->merId(),$data['mer_labels']); - $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'],'is_show' => 1]); - if (!$count) throw new ValidateException('平台分类不存在或不可用'); - - $validate->check($data); - if ($id) { - $product = $this->repository->get($id); - if (!$product['type']) unset($data['type']); - } - $data['extend'] = $extend ?? []; - //单次限购 - - return $data; - } - /** * TODO * @return mixed @@ -263,13 +158,13 @@ class Product extends BaseController */ public function config() { - $data['extension_status'] = systemConfig('extension_status'); - $data['integral_status'] = 0; - $data['integral_rate'] = 0; - if(systemConfig('integral_status') && merchantConfig($this->request->merId(),'mer_integral_status')) { - $data['integral_status'] = 1; - $data['integral_rate'] = merchantConfig($this->request->merId(),'mer_integral_rate'); - } + $data = systemConfig(['extension_status','svip_switch_status','integral_status']); + $merData= merchantConfig($this->request->merId(),['mer_integral_status','mer_integral_rate','mer_svip_status','svip_store_rate']); + $svip_store_rate = $merData['svip_store_rate'] > 0 ? bcdiv($merData['svip_store_rate'],100,2) : 0; + $data['mer_svip_status'] = ($data['svip_switch_status'] && $merData['mer_svip_status'] != 0 ) ? 1 : 0; + $data['svip_store_rate'] = $svip_store_rate; + $data['integral_status'] = $data['integral_status'] && $merData['mer_integral_status'] ? 1 : 0; + $data['integral_rate'] = $merData['mer_integral_rate'] ?: 0; $data['delivery_way'] = $this->request->merchant()->delivery_way ? $this->request->merchant()->delivery_way : [2]; $data['is_audit'] = $this->request->merchant()->is_audit; return app('json')->success($data); @@ -365,6 +260,21 @@ class Product extends BaseController return app('json')->success('编辑成功'); } + /** + * TODO 上下架 + * @Author:Qinii + * @Date: 2020/5/18 + * @param int $id + * @return mixed + */ + public function switchStatus($id) + { + $status = $this->request->param('status', 0) == 1 ? 1 : 0; + $this->repository->switchShow($id, $status,'is_show',$this->request->merId()); + return app('json')->success('修改成功'); + } + + /** * TODO 批量上下架 * @return \think\response\Json @@ -376,7 +286,7 @@ class Product extends BaseController $ids = $this->request->param('ids'); if (empty($ids)) return app('json')->fail('请选择商品'); $status = $this->request->param('status') == 1 ? 1 : 0; - $this->repository->switchShow($ids,$status,'is_show',$this->request->merId()); + $this->repository->batchSwitchShow($ids,$status,'is_show',$this->request->merId()); return app('json')->success('修改成功'); } @@ -435,4 +345,37 @@ class Product extends BaseController $this->repository->updates($ids,$data); return app('json')->success('修改成功'); } + + /** + * TODO 批量设置佣金 + * @param ProductAttrValueRepository $repository + * @return \think\response\Json + * @author Qinii + * @day 2022/12/26 + */ + public function batchExtension(ProductAttrValueRepository $repository) + { + $ids = $this->request->param('ids'); + $data = $this->request->params(['extension_one','extension_two']); + if ($data['extension_one'] > 1 || $data['extension_one'] < 0 || $data['extension_two'] < 0 || $data['extension_two'] > 1) { + return app('json')->fail('比例0~1之间'); + } + if (empty($ids)) return app('json')->fail('请选择商品'); + if (!$this->repository->merInExists($this->request->merId(), $ids)) + return app('json')->fail('请选择您自己商品'); + $repository->updatesExtension($ids,$data); + return app('json')->success('修改成功'); + } + + public function batchSvipType() + { + $ids = $this->request->param('ids'); + $data = $this->request->params([['svip_price_type',0]]); + + if (empty($ids)) return app('json')->fail('请选择商品'); + if (!$this->repository->merInExists($this->request->merId(), $ids)) + return app('json')->fail('请选择您自己商品'); + $this->repository->updates($ids,$data); + return app('json')->success('修改成功'); + } } diff --git a/app/controller/merchant/store/product/ProductAssist.php b/app/controller/merchant/store/product/ProductAssist.php index 6e08a870..df9f401f 100644 --- a/app/controller/merchant/store/product/ProductAssist.php +++ b/app/controller/merchant/store/product/ProductAssist.php @@ -16,7 +16,6 @@ use app\common\repositories\store\product\ProductAssistRepository as repository; use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\SpuRepository; use crmeb\basic\BaseController; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use app\validate\merchant\StoreProductAssistValidate; @@ -108,7 +107,7 @@ class ProductAssist extends BaseController if(!$this->repository->detail($this->request->merId(),$id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['is_show' => $status]); - Queue(ChangeSpuStatusJob::class,['product_type' => 3 ,'id' => $id]); + app()->make(SpuRepository::class)->changeStatus($id,3); return app('json')->success('修改成功'); } diff --git a/app/controller/merchant/store/product/ProductCopy.php b/app/controller/merchant/store/product/ProductCopy.php index 319800ff..6e7193fc 100644 --- a/app/controller/merchant/store/product/ProductCopy.php +++ b/app/controller/merchant/store/product/ProductCopy.php @@ -69,8 +69,6 @@ class ProductCopy extends BaseController return app('json')->success(['count' => $count]); } - - /** * TODO 复制商品 * @return mixed @@ -80,44 +78,13 @@ class ProductCopy extends BaseController public function get() { $status = systemConfig('copy_product_status'); - if(!$status) return app('json')->fail('复制商品功能未开启'); + if($status == 0) return app('json')->fail('请前往平台后台-设置-第三方接口-开启采集'); $num = app()->make(MerchantRepository::class)->getCopyNum($this->request->merId()); if($num <= 0) return app('json')->fail('复制商品次数已用完'); - $data = $this->request->params(['type','id','shopid','url']); - - $type = systemConfig('copy_product_status'); - if( $type == 2 ){ - $res = $this->repository->crmebCopyProduct($data,$this->request->merId()); - } else { - $res = $this->repository->copyProduct($data,$this->request->merId()); - } - + $url = $this->request->param('url'); + if (!$url) return app('json')->fail('请输入采集链接'); + $res = $this->repository->getProduct($url,$this->request->merId()); return app('json')->success($res); } - public function save(validate $validate,ProductRepository $productRepository) - { - $merchant = $this->request->merchant(); - $data = $this->checkParams($validate); - $data['mer_id'] = $this->request->merId(); - $productRepository->check($data,$this->request->merId()); - $data['status'] = $this->request->merchant()->is_audit ? 0 : 1; - $data['mer_status'] = ($merchant['is_del'] || !$merchant['mer_state'] || !$merchant['status']) ? 0 : 1; - $this->repository->create($data,0); - return app('json')->success('添加成功'); - } - - public function checkParams(validate $validate) - { - $params = [ - "image", "slider_image", "store_name", "store_info", "keyword", "bar_code", "brand_id","guarantee_template_id","once_count", - "cate_id", "mer_cate_id", "unit_name", "sort" , "is_show", "is_good",'is_gift_bag', - "video_link", "temp_id", "content", "spec_type","extension_type", "attr", "attrValue",['give_coupon_ids',[]],'mer_labels',['delivery_way',2],'delivery_free',['type',0],['once_max_count',0],['once_min_count',0],['pay_limit',0], - ]; - $data = $this->request->params($params); - if (!$data['pay_limit']) $data['once_max_count'] = 0; - $validate->check($data); - return $data; - } - } diff --git a/app/controller/merchant/store/product/ProductGroup.php b/app/controller/merchant/store/product/ProductGroup.php index 8789c511..2b918532 100644 --- a/app/controller/merchant/store/product/ProductGroup.php +++ b/app/controller/merchant/store/product/ProductGroup.php @@ -12,7 +12,6 @@ namespace app\controller\merchant\store\product; use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\SpuRepository; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\product\ProductGroupRepository; @@ -73,7 +72,7 @@ class ProductGroup extends BaseController return app('json')->fail('数据不存在'); $this->repository->update($id,['is_del' => 1]); event('product.groupDelete',compact('id')); - Queue(ChangeSpuStatusJob::class,['product_type' => 4 ,'id' => $id]); + app()->make(SpuRepository::class)->changeStatus($id,4); return app('json')->success('删除成功'); } @@ -97,7 +96,7 @@ class ProductGroup extends BaseController if(!$this->repository->detail($this->request->merId(),$id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['is_show' => $status]); - Queue(ChangeSpuStatusJob::class,['product_type' => 4 ,'id' => $id]); + app()->make(SpuRepository::class)->changeStatus($id,4); return app('json')->success('修改成功'); } diff --git a/app/controller/merchant/store/product/ProductPresell.php b/app/controller/merchant/store/product/ProductPresell.php index 06ce30d2..a627d364 100644 --- a/app/controller/merchant/store/product/ProductPresell.php +++ b/app/controller/merchant/store/product/ProductPresell.php @@ -16,7 +16,6 @@ use app\common\repositories\store\product\ProductPresellRepository as repository use app\common\repositories\store\product\ProductRepository; use app\common\repositories\store\product\SpuRepository; use crmeb\basic\BaseController; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use app\validate\merchant\StoreProductPresellValidate; @@ -115,7 +114,7 @@ class ProductPresell extends BaseController if (!$this->repository->detail($this->request->merId(), $id)) return app('json')->fail('数据不存在'); $this->repository->update($id, ['is_show' => $status]); - Queue(ChangeSpuStatusJob::class, ['product_type' => 2, 'id' => $id]); + app()->make(SpuRepository::class)->changeStatus($id,2); return app('json')->success('修改成功'); } diff --git a/app/controller/merchant/store/product/ProductSeckill.php b/app/controller/merchant/store/product/ProductSeckill.php index 5a11d047..975c6193 100644 --- a/app/controller/merchant/store/product/ProductSeckill.php +++ b/app/controller/merchant/store/product/ProductSeckill.php @@ -12,12 +12,10 @@ namespace app\controller\merchant\store\product; -use app\common\dao\store\StoreSeckillActiveDao; use app\common\repositories\store\product\ProductLabelRepository; use app\common\repositories\store\product\SpuRepository; use app\common\repositories\store\StoreSeckillActiveRepository; use app\common\repositories\store\StoreSeckillTimeRepository; -use crmeb\jobs\ChangeSpuStatusJob; use think\App; use crmeb\basic\BaseController; use app\validate\merchant\StoreSeckillProductValidate as validate; @@ -189,12 +187,7 @@ class ProductSeckill extends BaseController */ public function checkParams(validate $validate) { - $params = [ - "image", "slider_image", "store_name", "store_info", "keyword", "bar_code", ["brand_id",0],"start_day","end_day","guarantee_template_id", - "once_count", "start_time","end_time","old_product_id", "cate_id", "mer_cate_id", "unit_name", "sort" , "is_show", "is_good", - 'is_gift_bag', "video_link", "temp_id", "content", "spec_type","extension_type", "attr", "attrValue","all_pay_count", "once_pay_count", - ['give_coupon_ids',[]],'mer_labels','delivery_way','delivery_free' - ]; + $params = array_merge($this->repository::CREATE_PARAMS,["start_day","end_day", "start_time","end_time","once_count","all_pay_count", "once_pay_count","old_product_id"]); $data = $this->request->params($params); app()->make(ProductLabelRepository::class)->checkHas($this->request->merId(),$data['mer_labels']); $validate->check($data); diff --git a/app/controller/merchant/store/shipping/City.php b/app/controller/merchant/store/shipping/City.php index f572fac8..8247d8b7 100644 --- a/app/controller/merchant/store/shipping/City.php +++ b/app/controller/merchant/store/shipping/City.php @@ -16,6 +16,7 @@ use app\common\repositories\store\CityAreaRepository; use think\App; use crmeb\basic\BaseController; use app\common\repositories\store\shipping\CityRepository as repository; +use think\facade\Log; class City extends BaseController { @@ -55,7 +56,10 @@ class City extends BaseController return app('json')->fail('地址不存在'); $make = app()->make(CityAreaRepository::class); $city = $make->search(compact('address'))->order('id DESC')->find(); - if (!$city) return app('json')->fail('地址不存在'); + if (!$city){ + Log::info('用户定位对比失败,请在城市数据中增加:'.var_export($address,true)); + return app('json')->fail('地址不存在'); + } return app('json')->success($make->getCityList($city)); } diff --git a/app/controller/merchant/system/financial/Financial.php b/app/controller/merchant/system/financial/Financial.php index 55006a19..9ec70428 100644 --- a/app/controller/merchant/system/financial/Financial.php +++ b/app/controller/merchant/system/financial/Financial.php @@ -15,6 +15,7 @@ use app\common\repositories\system\financial\FinancialRepository; use app\common\repositories\system\merchant\MerchantRepository; use app\validate\merchant\MerchantFinancialAccountValidate; use crmeb\basic\BaseController; +use crmeb\services\ExcelService; use think\App; class Financial extends BaseController @@ -161,7 +162,10 @@ class Financial extends BaseController $where['keywords_'] = $where['keyword']; unset($where['keyword']); $where['mer_id'] = $this->request->merId(); - app()->make(ExcelRepository::class)->create($where, $this->request->adminId(), 'financialLog', $this->request->merId()); - return app('json')->success('开始导出数据'); + + [$page, $limit] = $this->getPage(); + $data = app()->make(ExcelService::class)->financialLog($where,$page,$limit); + return app('json')->success($data); + } } diff --git a/app/controller/merchant/user/User.php b/app/controller/merchant/user/User.php index 689c0f5d..edd8caa7 100644 --- a/app/controller/merchant/user/User.php +++ b/app/controller/merchant/user/User.php @@ -16,9 +16,6 @@ namespace app\controller\merchant\user; use crmeb\basic\BaseController; use app\common\repositories\user\UserRepository; use think\App; -use think\facade\Queue; -use crmeb\jobs\SendTemplateMessageJob; -use crmeb\services\WechatTemplateService; class User extends BaseController { diff --git a/app/controller/service/Service.php b/app/controller/service/Service.php index aa7a339c..6ab41acd 100644 --- a/app/controller/service/Service.php +++ b/app/controller/service/Service.php @@ -59,7 +59,7 @@ class Service extends BaseController if ($data === false) { return app('json')->fail($upload->getError()); } - return app('json')->success(['src' => rtrim(systemConfig('site_url'),'/').path_to_url($upload->getFileInfo()->filePath)]); + return app('json')->success(['src' => tidy_url($upload->getFileInfo()->filePath)]); } public function getOrderInfo($id) @@ -98,4 +98,5 @@ class Service extends BaseController $data = app()->make(ProductRepository::class)->getWhere(['product_id' => $id],'*',['content']); return app('json')->success($data); } + } diff --git a/app/event.php b/app/event.php index 4717e53b..6fa1d90e 100644 --- a/app/event.php +++ b/app/event.php @@ -52,9 +52,12 @@ return [ \crmeb\listens\AutoUnlockMerchantMoneyListen::class, \crmeb\listens\SumCountListen::class, \crmeb\listens\SyncHotRankingListen::class, - \crmeb\listens\AuthCancelActivityListen::class + \crmeb\listens\AuthCancelActivityListen::class, + \crmeb\listens\CloseUserSvipListen::class, + \crmeb\listens\SendSvipCouponListen::class, ] : [], 'pay_success_user_recharge' => [\crmeb\listens\pay\UserRechargeSuccessListen::class], + 'pay_success_user_order' => [\crmeb\listens\pay\UserOrderSuccessListen::class], 'pay_success_order' => [\crmeb\listens\pay\OrderPaySuccessListen::class], 'pay_success_presell' => [\crmeb\listens\pay\PresellPaySuccessListen::class], 'pay_success_meal' => [\crmeb\listens\pay\MealSuccessListen::class], diff --git a/app/validate/admin/ParameterTemplateValidate.php b/app/validate/admin/ParameterTemplateValidate.php new file mode 100644 index 00000000..be706db8 --- /dev/null +++ b/app/validate/admin/ParameterTemplateValidate.php @@ -0,0 +1,28 @@ + +// +---------------------------------------------------------------------- + + +namespace app\validate\admin; + + +use think\Validate; + +class ParameterTemplateValidate extends Validate +{ + protected $failException = true; + + protected $rule = [ + 'template_name|模板名称' => 'require|max:25', + 'params|参数' => 'require|array', + ]; +} + diff --git a/app/validate/admin/PriceRuleValidate.php b/app/validate/admin/PriceRuleValidate.php new file mode 100644 index 00000000..617ff2b3 --- /dev/null +++ b/app/validate/admin/PriceRuleValidate.php @@ -0,0 +1,29 @@ + +// +---------------------------------------------------------------------- + +namespace app\validate\admin; + + +use think\Validate; + +class PriceRuleValidate extends Validate +{ + protected $failException = true; + + protected $rule = [ + 'rule_name|名称' => 'require|max:32', + 'cate_id|分类' => 'array', + 'sort|排序' => 'require|integer', + 'is_show|是否显示' => 'require|in:0,1', + 'content|价格说明详情' => 'require', + ]; + +} diff --git a/app/validate/api/UserBaseInfoValidate.php b/app/validate/api/UserBaseInfoValidate.php index f20dbdd3..f48173da 100644 --- a/app/validate/api/UserBaseInfoValidate.php +++ b/app/validate/api/UserBaseInfoValidate.php @@ -21,6 +21,10 @@ class UserBaseInfoValidate extends Validate protected $failException = true; protected $rule = [ - 'nickname|昵称' => 'require|max:30' + 'nickname|昵称' => 'require|max:8' + ]; + + protected $message = [ + 'nickname.max' => '昵称最多8个字符' ]; } diff --git a/app/validate/merchant/StoreCouponValidate.php b/app/validate/merchant/StoreCouponValidate.php index 79d19f6f..099998ff 100644 --- a/app/validate/merchant/StoreCouponValidate.php +++ b/app/validate/merchant/StoreCouponValidate.php @@ -31,7 +31,7 @@ class StoreCouponValidate extends Validate 'status|状态' => 'require|in:0,1', 'type|优惠券类型' => 'require|in:0,1,10,11,12', 'product_id|商品' => 'requireIf:type,1|array|>:0', - 'send_type|类型' => 'require|in:0,1,2,3', + 'send_type|类型' => 'require|in:0,1,2,3,4,5', 'full_reduction|满赠金额' => 'requireIf:send_type,1|float|>=:0', 'is_limited|是否限量' => 'require|in:0,1', 'is_timeout|是否限时' => 'require|in:0,1', diff --git a/app/validate/merchant/StoreProductValidate.php b/app/validate/merchant/StoreProductValidate.php index e3e5ea95..5099ac54 100644 --- a/app/validate/merchant/StoreProductValidate.php +++ b/app/validate/merchant/StoreProductValidate.php @@ -33,7 +33,6 @@ class StoreProductValidate extends Validate "attrValue|商品属性" => "require|array|productAttrValue", 'type|商品类型' => 'require|in:0,1', 'delivery_way|发货方式' => 'requireIf:is_ficti,0|require', - 'type|' => 'require', 'once_min_count|最小限购' => 'min:0', 'pay_limit|是否限购' => 'require|in:0,1,2|payLimit', ]; @@ -48,8 +47,6 @@ class StoreProductValidate extends Validate protected function productAttrValue($value,$rule,$data) { $arr = []; - $extension_one_rate = systemConfig('extension_one_rate'); - $extension_two_rate = systemConfig('extension_two_rate'); try{ foreach ($value as $v){ $sku = ''; @@ -57,23 +54,14 @@ class StoreProductValidate extends Validate sort($v['detail'],SORT_STRING); $sku = implode(',',$v['detail']); } - if(in_array($sku,$arr)) return '商品SKU重复'; $arr[] = $sku; if(isset($data['extension_type']) && $data['extension_type'] && systemConfig('extension_status')){ - if(!isset($v['extension_one']) || !isset($v['extension_two'])) return '佣金比例必须填写'; + if(!isset($v['extension_one']) || !isset($v['extension_two'])) return '佣金金额必须填写'; if(($v['extension_one'] < 0) || ($v['extension_two'] < 0)) - return '不可存在负数'; + return '佣金金额不可存在负数'; if($v['price'] < bcadd($v['extension_one'],$v['extension_two'],2)) return '自定义佣金总金额不能大于商品售价'; - if(isset($v['extension_one'])){ - if((bccomp($v['extension_one'],bcmul($v['price'],$extension_one_rate,2),2)) == -1) - return '设置一级佣金不能低于系统比例'; - } - if(isset($v['extension_two'])){ - if((bccomp($v['extension_two'],bcmul($v['price'],$extension_two_rate,2),2)) == -1) - return '设置二级佣金不能低于系统比例'; - } } } } catch (\Exception $exception) { diff --git a/app/webscoket/handler/ServiceHandler.php b/app/webscoket/handler/ServiceHandler.php index 04bc7972..fb2e9002 100644 --- a/app/webscoket/handler/ServiceHandler.php +++ b/app/webscoket/handler/ServiceHandler.php @@ -150,7 +150,7 @@ class ServiceHandler if (!isset($data['msn_type']) || !isset($data['msn']) || !isset($data['uid']) || !isset($data['mer_id'])) return app('json')->message('err_tip', '数据格式错误'); if (!$data['msn']) return app('json')->message('err_tip', '请输入发送内容'); - if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8])) + if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8, 100])) return app('json')->message('err_tip', '消息类型有误'); $service = app()->make(StoreServiceRepository::class)->get($frame->payload[0]); if (!$service || !$service['status'] || !$service['is_open']) @@ -170,7 +170,16 @@ class ServiceHandler } catch (ValidateException $e) { return app('json')->message('err_tip', $e->getMessage()); } + if ($data['msn_type'] == 100) { + if (!$storeServiceLogRepository->query(['service_log_id' => $data['msn']]) + ->where('create_time', '>', date('Y-m-d H:i:s', strtotime('- 120 seconds')))->where('mer_id', $data['mer_id'])->where('send_type', 1)->count()) { + return app('json')->message('err_tip', '消息不能撤回'); + } + } $log = $storeServiceLogRepository->create($data); + if ($data['msn_type'] == 100) { + $storeServiceLogRepository->query(['service_log_id' => $data['msn']])->delete(); + } app()->make(StoreServiceUserRepository::class)->updateInfo($log, false); $storeServiceLogRepository->getSendData($log); $log->set('service', $service->visible(['service_id', 'avatar', 'nickname'])->toArray()); diff --git a/app/webscoket/handler/UserHandler.php b/app/webscoket/handler/UserHandler.php index 5ecf27bb..df556dab 100644 --- a/app/webscoket/handler/UserHandler.php +++ b/app/webscoket/handler/UserHandler.php @@ -204,7 +204,7 @@ class UserHandler if (!isset($data['msn_type']) || !isset($data['msn']) || !isset($data['uid']) || !isset($data['mer_id'])) return app('json')->message('err_tip', '数据格式错误'); if (!$data['msn']) return app('json')->message('err_tip', '请输入发送内容'); - if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8])) + if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8, 100])) return app('json')->message('err_tip', '消息类型有误'); $service = app()->make(StoreServiceRepository::class)->getService($frame->uid, (int)$data['mer_id']); if (!$service || !$service['status']) @@ -224,13 +224,22 @@ class UserHandler } catch (ValidateException $e) { return app('json')->message('err_tip', $e->getMessage()); } + if ($data['msn_type'] == 100) { + if (!$storeServiceLogRepository->query(['service_log_id' => $data['msn']]) + ->where('create_time', '>', date('Y-m-d H:i:s', strtotime('- 120 seconds')))->where('mer_id', $data['mer_id'])->where('send_type', 1)->count()) { + return app('json')->message('err_tip', '消息不能撤回'); + } + } $log = $storeServiceLogRepository->create($data); + if ($data['msn_type'] == 100) { + $storeServiceLogRepository->query(['service_log_id' => $data['msn']])->delete(); + } app()->make(StoreServiceUserRepository::class)->updateInfo($log, false); $storeServiceLogRepository->getSendData($log); $log->set('service', $service->visible(['service_id', 'avatar', 'nickname'])->toArray()); $log = $log->toArray(); $log['send_time'] = strtotime($log['create_time']); - $log['send_date'] = date('H:i',strtotime($log['create_time'])); + $log['send_date'] = date('H:i', strtotime($log['create_time'])); SwooleTaskService::chatToUser([ 'uid' => $data['uid'], 'data' => $log, @@ -255,7 +264,7 @@ class UserHandler if (!isset($data['msn_type']) || !isset($data['msn']) || !isset($data['mer_id'])) return app('json')->message('err_tip', '数据格式错误'); if (!$data['msn']) return app('json')->message('err_tip', '请输入发送内容'); - if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8])) + if (!in_array($data['msn_type'], [1, 2, 3, 4, 5, 6, 7, 8, 100])) return app('json')->message('err_tip', '消息类型有误'); if ($data['mer_id'] && !app()->make(MerchantRepository::class)->exists(intval($data['mer_id']))) return app('json')->message('err_tip', '商户不存在'); @@ -264,7 +273,7 @@ class UserHandler $service = app()->make(StoreServiceRepository::class)->getChatService($data['mer_id'], $frame->uid); if (!$service) return app('json')->message('err_tip', '该商户暂无有效客服'); - $data['msn'] = filter_emoji(trim(strip_tags(str_replace(["\n", "\t", "\r", " ", " "], '', htmlspecialchars_decode($data['msn']))))); + $data['msn'] = trim(strip_tags(htmlspecialchars_decode($data['msn']))); if (!$data['msn']) return app('json')->message('err_tip', '内容字符无效'); $this->switchChat($frame->uid, $frame->fd, $data['mer_id']); @@ -277,7 +286,16 @@ class UserHandler } catch (ValidateException $e) { return app('json')->message('err_tip', $e->getMessage()); } + if ($data['msn_type'] == 100) { + if (!$storeServiceLogRepository->query(['service_log_id' => $data['msn']]) + ->where('create_time', '>', date('Y-m-d H:i:s', strtotime('- 120 seconds')))->where('uid', $data['uid'])->where('send_type', 0)->count()) { + return app('json')->message('err_tip', '消息不能撤回'); + } + } $log = $storeServiceLogRepository->create($data); + if ($data['msn_type'] == 100) { + $storeServiceLogRepository->query(['service_log_id' => $data['msn']])->delete(); + } app()->make(StoreServiceUserRepository::class)->updateInfo($log, true); $storeServiceLogRepository->getSendData($log); $log->user; diff --git a/cert_crmeb.key b/cert_crmeb.key index 120e5b51..2c0ec1c0 100644 --- a/cert_crmeb.key +++ b/cert_crmeb.key @@ -1 +1 @@ -TQNLoFxalS7DUihukQpHQmmPW2I4HGrUBPgv33n+CtR3TK1UVTswRz8VPLoB/1jpxedvnMipu2Hx194y3cwWWKrOkEF/gBCDE20kWdiwAHTPLDXDiY9ORWLUR6EDoeGQWdcrcJAoptSi7ntAqqcVYQgncQSEPY4Ukuox6US5AmY=,00000000 \ No newline at end of file +DtY7vc634+tbokk7ghP0HxmLhcmcb8JojfiEMu649qaPcpUdkH89ooxhTJMrVQKBz/+7V3WRCyy7c+GcIDYBHUMACTUgLQoW/tbfpR/WkWqQHQeLCypUuQW3O7b19kW0FR7n78OekUQE7PcVKFgN0q4ZSnVpCgZvz/g3gYaKw4+Ps3JO10dEhB7S/GiEX/789YMuLJH8mCHwkd17D8RXxf7BLBBLReHJPeqBdFn0R5NffDlyA/PfT+5WJkU1k3TONLfgBx4V64UhPI8OPxFuMZ+zx+HQAw9bJpDL4dSFXaAdK01m4x7Ct3ytPeU+IvfFvHGZGonyKmi3MToI1EhQOw==, \ No newline at end of file diff --git a/composer.json b/composer.json index 09e90fa2..7c52ef34 100644 --- a/composer.json +++ b/composer.json @@ -69,6 +69,12 @@ "": "extend/" } }, + "repositories": { + "packagist": { + "type": "composer", + "url": "https://mirrors.aliyun.com/composer/" + } + }, "config": { "preferred-install": "dist" }, diff --git a/config/database.php b/config/database.php index b4248f09..af6c062c 100644 --- a/config/database.php +++ b/config/database.php @@ -68,63 +68,63 @@ return [ 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, ], 'nongke' => [ - // 数据库类型 - 'type' => Env::get('databasenk.type', 'mysql'), - // 服务器地址 - 'hostname' => Env::get('databasenk.hostname', '127.0.0.1'), - // 数据库名 - 'database' => Env::get('databasenk.database', ''), - // 用户名 - 'username' => Env::get('databasenk.username', 'root'), - // 密码 - 'password' => Env::get('databasenk.password', ''), - // 端口 - 'hostport' => Env::get('databasenk.hostport', '3306'), - // 数据库连接参数 - 'params' => [], - // 数据库编码默认采用utf8 - 'charset' => Env::get('databasenk.charset', 'utf8'), - // 数据库表前缀 - 'prefix' => Env::get('databasenk.prefix', ''), + // 数据库类型 + 'type' => Env::get('databasenk.type', 'mysql'), + // 服务器地址 + 'hostname' => Env::get('databasenk.hostname', '127.0.0.1'), + // 数据库名 + 'database' => Env::get('databasenk.database', ''), + // 用户名 + 'username' => Env::get('databasenk.username', 'root'), + // 密码 + 'password' => Env::get('databasenk.password', ''), + // 端口 + 'hostport' => Env::get('databasenk.hostport', '3306'), + // 数据库连接参数 + 'params' => [], + // 数据库编码默认采用utf8 + 'charset' => Env::get('databasenk.charset', 'utf8'), + // 数据库表前缀 + 'prefix' => Env::get('databasenk.prefix', ''), ], 'dev' => [ - // 数据库类型 - 'type' => env('database3.type', 'mysql'), - // 服务器地址 - 'hostname' => env('database3.hostname', '127.0.0.1'), - // 数据库名 - 'database' => env('database3.database', ''), - // 用户名 - 'username' => env('database3.username', 'root'), - // 密码 - 'password' => env('database3.password', ''), - // 端口 - 'hostport' => env('database3.hostport', '3306'), - // 数据库连接参数 - 'params' => [], - // 数据库编码默认采用utf8 - 'charset' => env('database3.charset', 'utf8'), - // 数据库表前缀 - 'prefix' => env('database3.prefix', ''), - - // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) - 'deploy' => 0, - // 数据库读写是否分离 主从式有效 - 'rw_separate' => false, - // 读写分离后 主服务器数量 - 'master_num' => 1, - // 指定从服务器序号 - 'slave_no' => '', - // 是否严格检查字段是否存在 - 'fields_strict' => true, - // 是否需要断线重连 - 'break_reconnect' => true, - // 监听SQL - 'trigger_sql' => env('app_debug', true), - // 开启字段缓存 - 'fields_cache' => false, - // 字段缓存路径 - 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, + // 数据库类型 + 'type' => env('database3.type', 'mysql'), + // 服务器地址 + 'hostname' => env('database3.hostname', '127.0.0.1'), + // 数据库名 + 'database' => env('database3.database', ''), + // 用户名 + 'username' => env('database3.username', 'root'), + // 密码 + 'password' => env('database3.password', ''), + // 端口 + 'hostport' => env('database3.hostport', '3306'), + // 数据库连接参数 + 'params' => [], + // 数据库编码默认采用utf8 + 'charset' => env('database3.charset', 'utf8'), + // 数据库表前缀 + 'prefix' => env('database3.prefix', ''), + + // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) + 'deploy' => 0, + // 数据库读写是否分离 主从式有效 + 'rw_separate' => false, + // 读写分离后 主服务器数量 + 'master_num' => 1, + // 指定从服务器序号 + 'slave_no' => '', + // 是否严格检查字段是否存在 + 'fields_strict' => true, + // 是否需要断线重连 + 'break_reconnect' => true, + // 监听SQL + 'trigger_sql' => env('app_debug', true), + // 开启字段缓存 + 'fields_cache' => false, + // 字段缓存路径 + 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, ], // 更多的数据库配置信息 ], diff --git a/config/sms.php b/config/sms.php index e931b24d..c263063e 100644 --- a/config/sms.php +++ b/config/sms.php @@ -28,54 +28,56 @@ return [ 'template_id' => [ //验证码 'VERIFICATION_CODE' => 538393, - //发货提醒 + //发货提醒 2.1 'DELIVER_GOODS_CODE' => 520269, - //确认收货提醒 + //确认收货提醒 2.1 'ORDER_TAKE_SUCCESS' => 520271, - //支付成功 + //支付成功 2.1 'ORDER_PAY_SUCCESS' => 520268, - //改价提醒 + //改价提醒 2.1 'PRICE_REVISION_CODE' => 528288, - //订单未支付 + //提醒付款通知 -2.1 'ORDER_PAY_FALSE' => 528116, - //商家同意退款提醒 + //商家同意退款提醒 2.1 'REFUND_SUCCESS_CODE' => 536113, - //商家拒绝退款提醒 + //商家拒绝退款提醒 2.1 'REFUND_FAIL_CODE' => 536112, - //退款确认提醒 + //退款确认提醒 2.1 'REFUND_CONFORM_CODE' => 536111, - //管理员支付成功提醒 + //管理员支付成功提醒 2.1 'ADMIN_PAY_SUCCESS_CODE' => 520273, - //管理员退货提醒 + //管理员退款单提醒 -2.1 'ADMIN_RETURN_GOODS_CODE' => 520274, - //管理员确认收货 + //管理员确认收货 2.1 'ADMIN_TAKE_DELIVERY_CODE' => 520422, - //退货信息提醒 + //退货信息提醒 2.1 'ADMIN_DELIVERY_CODE' => 440415, - //直播通过通知 + //直播通过通知 2.1 'BROADCAST_ROOM_CODE' => 549311, - //直播未通过通知 + //直播未通过通知 2.1 'BROADCAST_ROOM_FAIL' => 549038, - //预售订单尾款支付 + //预售订单尾款支付 2.1 'PAY_PRESELL_CODE' => 543128, - //商户申请入驻通过 + //商户申请入驻通过 2.1 'APPLY_MER_SUCCESS' => 544837, - //商户申请入驻未通过 + //商户申请入驻未通过 2.1 'APPLY_MER_FAIL' => 544838, - //到货通知 + //到货通知 2.1 'PRODUCT_INCREASE' => 549146, - //积分即将到期提醒 + //积分即将到期提醒 2.1 'INTEGRAL_INVALID' => 550529, - //商户申请分账通过 + //商户申请分账通过 2.1 'APPLYMENTS_SUCCESS' => 550526, - //商户申请分账未通过 - 'APPLYMENTS_FAIL' => 550523, - //商户申请分账待验证 + //商户申请分账待验证 2.1 'APPLYMENTS_SIGN' => 550525, - //商户申请退回保证金通过 + //商户申请分账未通过 2.1 + 'APPLYMENTS_FAIL' => 550523, + //商户申请退回保证金通过 2.1 'REFUND_MARGIN_SUCCESS' => 710327, - //商户申请退回保证金未通过 + //商户申请退回保证金未通过 2.1 'REFUND_MARGIN_FAIL' => 710328, + //付费会员充值成功提醒 2.1 + 'SVIP_PAY_SUCCESS' => 856046 ], ], //阿里云 diff --git a/config/template.php b/config/template.php index 44c58137..3851133d 100644 --- a/config/template.php +++ b/config/template.php @@ -20,57 +20,57 @@ return [ 'isLog' => true, //驱动模式 'stores' => [ - //微信 - 'wechat' => [ - //短信模板id - 'template_id' => [ - //订单生成通知 - 'ORDER_CREATE' => 'OPENTM205213550', - //支付成功 - 'ORDER_PAY_SUCCESS' => 'OPENTM207791277', - //订单发货提醒(快递) - 'ORDER_POSTAGE_SUCCESS' => 'OPENTM200565259', - //订单发货提醒(送货) - 'ORDER_DELIVER_SUCCESS' => 'OPENTM207707249', - //提现结果 - 'EXTRACT_NOTICE' => 'OPENTM207601150', - //订单收货通知 - 'ORDER_TAKE_SUCCESS' => 'OPENTM413386489', - //帐户资金变动提醒 - 'USER_BALANCE_CHANGE' => 'OPENTM405847076', - //退款申请通知 - 'ORDER_REFUND_STATUS' => 'OPENTM407277862', - //退款进度提醒 - 'ORDER_REFUND_NOTICE' => 'OPENTM401479948', - //退货确认提醒 - 'ORDER_REFUND_END' => 'OPENTM406292353', - //拼团成功 - 'GROUP_BUYING_SUCCESS'=>'OPENTM417762951', - //预订商品到货通知 - 'PRODUCT_INCREASE' => 'OPENTM200443061', - //访客消息通知 - 'SERVER_NOTICE' => 'OPENTM417984821', - ], - ], - //订阅消息 - 'subscribe' => [ - 'template_id' => [ - //订单发货提醒(快递) - 'ORDER_POSTAGE_SUCCESS' => 1458, - //提现成功通知 - 'USER_EXTRACT' => 1470, - //订单发货提醒(配送) - 'ORDER_DELIVER_SUCCESS' => 1128, - //退款通知 - 'ORDER_REFUND_NOTICE' => 1451, - //充值成功 - 'RECHARGE_SUCCESS' => 755, - //订单支付成功 - 'ORDER_PAY_SUCCESS' => 1927, - //商品到货通知 - 'PRODUCT_INCREASE' => 5019 - ], - ], +// //微信 +// 'wechat' => [ +// //短信模板id +// 'template_id' => [ +// //订单生成通知 +// 'ORDER_CREATE' => 'OPENTM205213550', +// //支付成功 +// 'ORDER_PAY_SUCCESS' => 'OPENTM207791277', +// //订单发货提醒(快递) +// 'ORDER_POSTAGE_SUCCESS' => 'OPENTM200565259', +// //订单发货提醒(送货) +// 'ORDER_DELIVER_SUCCESS' => 'OPENTM207707249', +// //提现结果 +// 'EXTRACT_NOTICE' => 'OPENTM207601150', +// //订单收货通知 +// 'ORDER_TAKE_SUCCESS' => 'OPENTM413386489', +// //帐户资金变动提醒 +// 'USER_BALANCE_CHANGE' => 'OPENTM405847076', +// //退款申请通知 +// 'ORDER_REFUND_STATUS' => 'OPENTM407277862', +// //退款进度提醒 +// 'ORDER_REFUND_NOTICE' => 'OPENTM401479948', +// //退货确认提醒 +// 'ORDER_REFUND_END' => 'OPENTM406292353', +// //拼团成功 +// 'GROUP_BUYING_SUCCESS'=>'OPENTM417762951', +// //预订商品到货通知 +// 'PRODUCT_INCREASE' => 'OPENTM200443061', +// //访客消息通知 +// 'SERVER_NOTICE' => 'OPENTM417984821', +// ], +// ], +// //订阅消息 +// 'subscribe' => [ +// 'template_id' => [ +// //订单发货提醒(快递) +// 'ORDER_POSTAGE_SUCCESS' => 1458, +// //提现成功通知 +// 'USER_EXTRACT' => 1470, +// //订单发货提醒(配送) +// 'ORDER_DELIVER_SUCCESS' => 1128, +// //退款通知 +// 'ORDER_REFUND_NOTICE' => 1451, +// //充值成功 +// 'RECHARGE_SUCCESS' => 755, +// //订单支付成功 +// 'ORDER_PAY_SUCCESS' => 1927, +// //商品到货通知 +// 'PRODUCT_INCREASE' => 5019 +// ], +// ], ] ]; diff --git a/config/upload.php b/config/upload.php index 7d5481e3..881867b5 100644 --- a/config/upload.php +++ b/config/upload.php @@ -19,9 +19,9 @@ return [ //上传文件大小 'filesize' => 52428800, //上传文件后缀类型 - 'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key','xlsx','xls'], + 'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key','xlsx','xls','ico'], //上传文件类型 - 'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg'], + 'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'image/vnd.microsoft.icon'], //驱动模式 'stores' => [ //本地上传配置 diff --git a/crmeb/jobs/ChangeSpuStatusJob.php b/crmeb/jobs/ChangeSpuStatusJob.php index fdfefec3..1b58d5c9 100644 --- a/crmeb/jobs/ChangeSpuStatusJob.php +++ b/crmeb/jobs/ChangeSpuStatusJob.php @@ -24,7 +24,11 @@ class ChangeSpuStatusJob implements JobInterface { try{ $make = app()->make(SpuRepository::class); - if(!is_array($data['id']) && is_numeric($data['id'])){ + if (is_array($data['id'])){ + foreach ($data['id'] as $i) { + $make->changeStatus($i,$data['product_type']); + } + } else if(is_numeric($data['id'])){ $make->changeStatus($data['id'],$data['product_type']); } }catch (\Exception $exception){ diff --git a/crmeb/jobs/CloseSvipCouponJob.php b/crmeb/jobs/CloseSvipCouponJob.php new file mode 100644 index 00000000..313ed62a --- /dev/null +++ b/crmeb/jobs/CloseSvipCouponJob.php @@ -0,0 +1,40 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\jobs; + + +use app\common\repositories\store\coupon\StoreCouponRepository; +use app\common\repositories\store\coupon\StoreCouponUserRepository; +use crmeb\interfaces\JobInterface; +use think\facade\Log; + +class CloseSvipCouponJob implements JobInterface +{ + public function fire($job, $type) + { + $meka = app()->make(StoreCouponRepository::class); + try { + $couponIds = $meka->validCouponQuery(null,StoreCouponRepository::GET_COUPON_TYPE_SVIP)->column('coupon_id'); + app()->make(StoreCouponUserRepository::class)->getSearch([])->whereIn('coupon_id',$couponIds)->update(['status' => 2]); + } catch (\Exception $e) { + Log::INFO('付费会员优惠券过期操作失败:'.implode(',',$couponIds)); + }; + $job->delete(); + } + + public function failed($data) + { + // TODO: Implement failed() method. + } +} diff --git a/crmeb/jobs/CloseUserSvipJob.php b/crmeb/jobs/CloseUserSvipJob.php new file mode 100644 index 00000000..95b926a7 --- /dev/null +++ b/crmeb/jobs/CloseUserSvipJob.php @@ -0,0 +1,40 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\jobs; + + +use app\common\repositories\system\CacheRepository; +use app\common\repositories\user\UserRepository; +use crmeb\interfaces\JobInterface; +use think\facade\Log; + +class CloseUserSvipJob implements JobInterface +{ + public function fire($job, $type) + { + $make = app()->make(UserRepository::class); + try { + $uids = $make->search(['is_svip' => 1])->whereTime('svip_endtime','<=',time())->column('User.uid'); + $make->updates($uids,['is_svip' => 0]); + } catch (\Exception $e) { + Log::INFO('关闭付费会员失败:'.implode(',',$uids)); + }; + $job->delete(); + } + + public function failed($data) + { + // TODO: Implement failed() method. + } +} diff --git a/crmeb/jobs/SendSmsJob.php b/crmeb/jobs/SendSmsJob.php index 8b8c6f3a..70db9317 100644 --- a/crmeb/jobs/SendSmsJob.php +++ b/crmeb/jobs/SendSmsJob.php @@ -17,6 +17,7 @@ namespace crmeb\jobs; use app\common\repositories\system\notice\SystemNoticeConfigRepository; use crmeb\interfaces\JobInterface; use crmeb\services\SmsService; +use crmeb\services\WechatTemplateMessageService; use think\facade\Log; class SendSmsJob implements JobInterface @@ -27,11 +28,25 @@ class SendSmsJob implements JobInterface $status = app()->make(SystemNoticeConfigRepository::class)->getNoticeStatusByConstKey($data['tempId']); if ($status['notice_sms'] == 1) { try { - SmsService::sendMessage($data['tempId'], $data['id']); + SmsService::sendMessage($data); } catch (\Exception $e) { Log::info('发送短信失败' . var_export($data, 1) . $e->getMessage()); } } + if ($status['notice_wechat'] == 1) { + try { + app()->make(WechatTemplateMessageService::class)->sendTemplate($data); + } catch (\Exception $e) { + Log::info('模板消息发送失败' . var_export($data, 1) . $e->getMessage()); + } + } + if ($status['notice_routine'] == 1) { + try { + app()->make(WechatTemplateMessageService::class)->subscribeSendTemplate($data); + } catch (\Exception $e) { + Log::info('订阅消息发送失败' . var_export($data, 1) . $e->getMessage()); + } + } $job->delete(); } diff --git a/crmeb/jobs/SendSvipCouponJob.php b/crmeb/jobs/SendSvipCouponJob.php new file mode 100644 index 00000000..8689434d --- /dev/null +++ b/crmeb/jobs/SendSvipCouponJob.php @@ -0,0 +1,44 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\jobs; + + +use app\common\repositories\store\coupon\StoreCouponRepository; +use app\common\repositories\store\coupon\StoreCouponUserRepository; +use app\common\repositories\system\CacheRepository; +use app\common\repositories\user\UserRepository; +use crmeb\interfaces\JobInterface; +use think\facade\Cache; +use think\facade\Log; +use think\facade\Queue; + +class SendSvipCouponJob implements JobInterface +{ + public function fire($job, $type) + { + $moth = date('Y-m-d',time()); + $meka = app()->make(StoreCouponRepository::class); + try { + $couponIds = $meka->sendSvipCoupon(); + } catch (\Exception $e) { + Log::INFO('发送付费会员优惠券失败:'.$moth); + }; + $job->delete(); + } + + public function failed($data) + { + // TODO: Implement failed() method. + } +} diff --git a/crmeb/jobs/SyncProductTopJob.php b/crmeb/jobs/SyncProductTopJob.php index 95f6f36e..ae84e39e 100644 --- a/crmeb/jobs/SyncProductTopJob.php +++ b/crmeb/jobs/SyncProductTopJob.php @@ -19,16 +19,17 @@ class SyncProductTopJob implements JobInterface try{ $SpuRepository = app()->make(SpuRepository::class); $RedisCacheService = app()->make(RedisCacheService::class); - $prefix = env('QUEUE_NAME','merchant').'_hot_ranking_'; + $prefix = env('queue_name','merchant').'_hot_ranking_'; $oldKeys1 = $RedisCacheService->keys($prefix.'top_*') ?: []; $oldKeys1 = array_combine($oldKeys1, $oldKeys1); $mset = []; $hot = systemConfig(['hot_ranking_switch','hot_ranking_lv']); if (!$hot['hot_ranking_switch']) return ; - - $ids = $SpuRepository->search(['status' => 1, 'mer_status' => 1, 'is_del' => 0, 'product_type' => 0]) - ->order('P.sales DESC, P.rank DESC, P.sort DESC, spu_id DESC')->limit(15)->column('spu_id'); - + $where['product_type'] = 0; + $where['spu_status'] = 1; + $where['mer_status'] = 1; + $where['order'] = 'sales'; + $ids = $SpuRepository->search($where)->limit(15)->column('spu_id'); $mset[$prefix.'top_0'] = implode(',', $ids); unset($oldKeys1[$prefix.'top_0']); @@ -39,9 +40,8 @@ class SyncProductTopJob implements JobInterface $id = $item['store_category_id']; $ids = $make->findChildrenId($id); $ids[] = $id; - $spuList = $SpuRepository->search(['status' => 1, 'mer_status' => 1, 'is_del' => 0, 'product_type' => 0]) - ->whereIn('cate_id',$ids) - ->order('P.sales DESC, P.rank DESC, P.sort DESC, spu_id DESC')->limit(15)->select(); + $where['cate_id'] = $ids; + $spuList = $SpuRepository->search($where)->limit(15)->select(); if (count($spuList)) { foreach ($spuList as $i => $spu) { $key = $prefix.'top_item_' . $id . '_' . $spu['spu_id']; @@ -57,7 +57,6 @@ class SyncProductTopJob implements JobInterface } if (count($mset)) { $RedisCacheService->mSet($mset); - Log::info('热卖排行统计:'.var_export(['=======',$mset,'======='],1)); } if (count($oldKeys1)) { $RedisCacheService->handler()->del(...array_values($oldKeys1)); diff --git a/crmeb/listens/CloseUserSvipListen.php b/crmeb/listens/CloseUserSvipListen.php new file mode 100644 index 00000000..3d3b2d34 --- /dev/null +++ b/crmeb/listens/CloseUserSvipListen.php @@ -0,0 +1,30 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\listens; + +use crmeb\interfaces\ListenerInterface; +use crmeb\jobs\CloseUserSvipJob; +use crmeb\services\TimerService; +use think\facade\Queue; + +class CloseUserSvipListen extends TimerService implements ListenerInterface +{ + + public function handle($event): void + { + $this->tick(1000 * 60 * 15, function () { + request()->clearCache(); + Queue::push(CloseUserSvipJob::class,[]); + }); + } +} diff --git a/crmeb/listens/SendSvipCouponListen.php b/crmeb/listens/SendSvipCouponListen.php new file mode 100644 index 00000000..4ecaf8b1 --- /dev/null +++ b/crmeb/listens/SendSvipCouponListen.php @@ -0,0 +1,45 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\listens; + +use crmeb\interfaces\ListenerInterface; +use crmeb\jobs\CloseSvipCouponJob; +use crmeb\jobs\SendSvipCouponJob; +use crmeb\services\TimerService; +use think\facade\Cache; +use think\facade\Queue; + +class SendSvipCouponListen extends TimerService implements ListenerInterface +{ + + public function handle($event): void + { + $this->tick(1000 * 60 * 60 * 23, function () { + $key = 'send_svip_coupon_status'; + $nuxt = Cache::get($key); + if (!$nuxt || $nuxt < time()) { + Queue::later(60,SendSvipCouponJob::class,[]); + $day = date('Y-m-d',time()); + + $nuxt = strtotime(date('Y-m-01', strtotime($day)) . ' +1 month'); + $delay = $nuxt - time(); + Cache::set($key, $nuxt); + Queue::later($delay,SendSvipCouponJob::class,[]); + + $last = strtotime(date('Y-m-d',$nuxt) . " -1 day"); + $ldelay = (($last - time()) > 0) ?: 10; + Queue::later($ldelay,CloseSvipCouponJob ::class,[]); + } + }); + } +} diff --git a/crmeb/listens/SwooleTaskListen.php b/crmeb/listens/SwooleTaskListen.php index 3733d0fc..e0f5007a 100644 --- a/crmeb/listens/SwooleTaskListen.php +++ b/crmeb/listens/SwooleTaskListen.php @@ -13,7 +13,6 @@ namespace crmeb\listens; - use app\common\repositories\store\service\StoreServiceLogRepository; use app\common\repositories\store\service\StoreServiceReplyRepository; use app\common\repositories\store\service\StoreServiceUserRepository; @@ -23,7 +22,7 @@ use app\common\repositories\user\UserVisitRepository; use app\webscoket\handler\UserHandler; use app\webscoket\Manager; use crmeb\interfaces\ListenerInterface; -use crmeb\jobs\SendTemplateMessageJob; +use crmeb\jobs\SendSmsJob; use Swoole\Server; use Swoole\Server\Task; use think\facade\Cache; @@ -91,15 +90,11 @@ class SwooleTaskListen implements ListenerInterface $user = app()->make(UserRepository::class)->get($data['data']['uid']); $params = [ 'mer_id' => $data['data']['mer_id'], - 'keyword1' => $user['nickname'], - 'keyword3' => '客户咨询', - 'url' => rtrim(systemConfig('site_url'), '/') . '/pages/chat/customer_list/chat?userId=' . $data['data']['uid'] . '&mer_id=' . $data['data']['mer_id'] + 'keyword1' => date('Y-m-d H:i:s',time()), + 'keyword2' => $data['data'], + 'url' => '/pages/chat/customer_list/chat?userId=' . $data['data']['uid'] . '&mer_id=' . $data['data']['mer_id'] ]; - Queue::push(SendTemplateMessageJob::class, [ - 'tempCode' => 'SERVER_NOTICE', - 'id' => $data['uid'], - 'data' => $params - ]); + Queue::push(SendSmsJob::class, ['tempId' => 'SERVER_NOTICE', 'id' => $data['uid'], 'params' => $params]); }else{ $serviceLogRepository->serviceRead($data['data']['mer_id'], $data['data']['uid'], $data['data']['service_id']); app()->make(StoreServiceUserRepository::class)->read($data['data']['mer_id'], $data['data']['uid'], true); @@ -171,15 +166,11 @@ class SwooleTaskListen implements ListenerInterface //TODO 用户消息提醒 $params = [ 'mer_id' => $data['data']['mer_id'], - 'keyword1' => '客服', - 'keyword3' => '客服回复', - 'url' => rtrim(systemConfig('site_url'), '/') . '/pages/chat/customer_list/chat?mer_id=' . $data['data']['mer_id'] + 'keyword1' => date('Y-m-d H:i:s', time()), + 'keyword2' => $data['data'], + 'url' => '/pages/chat/customer_list/chat?mer_id=' . $data['data']['mer_id'] ]; - Queue::push(SendTemplateMessageJob::class, [ - 'tempCode' => 'SERVER_NOTICE', - 'id' => $data['uid'], - 'data' => $params - ]); + Queue::push(SendSmsJob::class, ['id' => $data['uid'], 'tempId' => 'SERVER_NOTICE', 'params' => $params]); } } diff --git a/crmeb/listens/SyncHotRankingListen.php b/crmeb/listens/SyncHotRankingListen.php index 1c842409..19a0ac61 100644 --- a/crmeb/listens/SyncHotRankingListen.php +++ b/crmeb/listens/SyncHotRankingListen.php @@ -23,6 +23,8 @@ class SyncHotRankingListen extends TimerService implements ListenerInterface public function handle($event): void { + $hot = systemConfig('hot_ranking_switch'); + if (!$hot) return ; $time = systemConfig('hot_ranking_time'); $time = ($time && $time > 1) ?: 1 ; $this->tick(1000 * 60 * 60 * $time, function () { diff --git a/crmeb/listens/pay/UserOrderSuccessListen.php b/crmeb/listens/pay/UserOrderSuccessListen.php new file mode 100644 index 00000000..f4d9fa14 --- /dev/null +++ b/crmeb/listens/pay/UserOrderSuccessListen.php @@ -0,0 +1,28 @@ + +// +---------------------------------------------------------------------- + + +namespace crmeb\listens\pay; + + +use app\common\repositories\user\UserOrderRepository; +use app\common\repositories\user\UserRechargeRepository; +use crmeb\interfaces\ListenerInterface; + +class UserOrderSuccessListen implements ListenerInterface +{ + + public function handle($data): void + { + app()->make(UserOrderRepository::class)->paySuccess($data); + } +} diff --git a/crmeb/services/DownloadImageService.php b/crmeb/services/DownloadImageService.php index 846d0d01..10b235b7 100644 --- a/crmeb/services/DownloadImageService.php +++ b/crmeb/services/DownloadImageService.php @@ -53,7 +53,7 @@ class DownloadImageService * @author xaboy * @day 2020/8/1 */ - public function downloadImage($url, $name = '', $upload_type = 1) + public function downloadImage($url, $path = 'def', $name = '', $upload_type = null) { if (!$name) { //TODO 获取要下载的文件名称 @@ -61,34 +61,21 @@ class DownloadImageService $name = $downloadImageInfo['file_name']; if (!$name) throw new ValidateException('上传图片不存在'); } - ob_start(); readfile($url); $content = ob_get_contents(); ob_end_clean(); - $size = strlen(trim($content)); if (!$content || $size <= 2) throw new ValidateException('图片流获取失败'); - $date_dir = date('Y') . DIRECTORY_SEPARATOR . date('m') . DIRECTORY_SEPARATOR . date('d'); $upload = UploadService::create($upload_type); - if ($this->path == 'attach') { - $date_dir = date('Y') . DIRECTORY_SEPARATOR . date('m') . DIRECTORY_SEPARATOR . date('d'); - $to_path = $this->path . '/' . $date_dir; - } else { - $to_path = $this->path; - } - - if ($upload->to($to_path)->stream($content, $name) === false) { + if ($upload->to($path)->stream($content, $name) === false) { throw new ValidateException('图片下载失败'); } $imageInfo = $upload->getUploadInfo(); - $date['path'] = $imageInfo['dir']; $date['name'] = $imageInfo['name']; $date['size'] = $imageInfo['size']; $date['mime'] = $imageInfo['type']; - $date['image_type'] = $upload_type; - $date['is_exists'] = false; return $date; } diff --git a/crmeb/services/ExcelService.php b/crmeb/services/ExcelService.php index 08b10f09..97eb3dbb 100644 --- a/crmeb/services/ExcelService.php +++ b/crmeb/services/ExcelService.php @@ -83,39 +83,33 @@ class ExcelService */ public function searchLog(array $where, int $id) { - $query = app()->make(UserVisitRepository::class)->search($where); - $header = ['序号', '用户ID', '用户昵称', '用户类型', '搜索词', '搜索时间', '首次访问时间']; - $title = [ - 'title' => '搜索记录', - 'sheets' => '搜索记录', - 'mark' => ['生成时间:' . date('Y-m-d H:i:s', time())], - ]; - $searchLog = []; $user_type = [ 'h5' => 'H5', 'wechat' => '公众号', 'routine' => '小程序', ]; - - $query->with(['user' => function ($query) { + $export = []; + $title = []; + $query = app()->make(UserVisitRepository::class)->search($where)->with(['user' => function ($query) { $query->field('uid,nickname,avatar,user_type,create_time'); - }])->order('create_time DESC')->chunk(100, function ($logs) use (&$export, $user_type) { - foreach ($logs as $log) { - $export[] = [ - $log['user_visit_id'], - $log['user'] ? $log['user']['uid'] : '未登录', - $log['user'] ? $log['user']['nickname'] : '未知', - $log['user'] ? ($user_type[$log['user']['user_type']] ?? $log['user']['user_type']) : '未知', - $log['content'], - $log['create_time'], - $log['user'] ? $log['user']['create_time'] : '未知', - ]; - } - }); + }])->order('create_time DESC'); + $count = $query->count(); + $logs = $query->select(); + foreach ($logs as $log) { + $export[] = [ + $log['user_visit_id'], + $log['user'] ? $log['user']['uid'] : '未登录', + $log['user'] ? $log['user']['nickname'] : '未知', + $log['user'] ? ($user_type[$log['user']['user_type']] ?? $log['user']['user_type']) : '未知', + $log['content'], + $log['create_time'], + $log['user'] ? $log['user']['create_time'] : '未知', + ]; + } $filename = '搜索记录_' . date('YmdHis'); - $end = []; - return $this->export($id, 'searchLog', $header, $title, $export, $filename, $end); + $foot = []; + return compact('count','header','title','export','foot','filename'); } /** @@ -125,77 +119,59 @@ class ExcelService * @author Qinii * @day 2020-08-10 */ - public function order(array $where,int $id) + public function order(array $where, int $page, int $limit ) { + $paytype = [0 => '余额', 1 => '微信', 2 => '小程序', 3 => 'H5', 4 => '支付宝', 5 => '支付宝扫码', 6 => '微信扫码',]; $make = app()->make(StoreOrderRepository::class); $status = $where['status']; $del = $where['mer_id'] > 0 ? 0 : null; unset($where['status']); - $query = $make->search($where,$del)->where($make->getOrderType($status))->with([ + $query = $make->search($where, $del)->where($make->getOrderType($status))->with([ 'orderProduct', 'merchant' => function ($query) {return $query->field('mer_id,mer_name');}, 'user', 'spread', ])->order('order_id ASC'); - - $header = ['序号','商户名称','订单编号','订单类型','推广人','用户信息', '商品名称','商品规格','单商品总数','商品价格(元)','优惠','实付邮费(元)','实付金额(元)','已退款金额(元)', '收货人','收货人电话','收货地址','物流单号/送货人电话','下单时间','支付方式','支付状态','商家备注']; - $title = [ - 'title' => '订单列表', - 'sheets' => '订单信息', - 'mark' => ['生成时间:' . date('Y-m-d H:i:s',time())], - ]; + $count = $query->count(); + $list = $query->page($page, $limit)->select()->append(['refund_price']); $export = []; - $limit = 20; - $count = ceil(($query->count())/$limit); - $i = 1; - $paytype = [ - 0 => '余额', - 1 => '微信', - 2 => '小程序', - 3 => 'H5', - 4 => '支付宝', - 5 => '支付宝扫码', - 6 => '微信扫码', - ]; - for( $page = 1; $page <= $count; $page++ ) { - $list = $query->page($page, $limit)->select()->each(function($item){ - $item['refund_price'] = app()->make(StoreRefundOrderRepository::class)->refundPirceByOrder([$item['order_id']]); - return $item; - }); - foreach ($list as $item){ - foreach ($item['orderProduct'] as $key => $value){ - $export[] = [ - $i, - $item['merchant']['mer_name'], - $item['order_sn'], - $item['order_type'] ? '核销订单':'普通订单', - $item['spread']['nickname'] ?? '无', - $item['user']['nickname'] ?? $item['uid'], - $value['cart_info']['product']['store_name'], - $value['cart_info']['productAttr']['sku'], - $value['product_num'], - $value['cart_info']['productAttr']['price'], - ($key == 0 ) ? $item['coupon_price'] : 0, - ($key == 0 ) ? $item['pay_postage'] : 0, - $value['product_price'], - ($key == 0 ) ? $item['refund_price'] : 0, - $item['real_name'], - $item['user_phone'], - $item['user_address'], - $item['delivery_id'], - $item['create_time'], - $paytype[$item['pay_type']], - $item['paid'] ? '已支付':'未支付', - $item['remark'] - ]; - $i++; - } + foreach ($list as $item) { + $product = []; + foreach ($item['orderProduct'] as $value) { + $product[] = [ + $value['cart_info']['product']['store_name'], + $value['cart_info']['productAttr']['sku'] ?: '无', + $value['product_num'].' '. $value['unit_name'], + $value['cart_info']['productAttr']['price'] + ]; } + $one = [ + $item['merchant']['mer_name'], + $item['order_sn'], + $item['order_type'] ? '核销订单':'普通订单', + $item['spread']['nickname'] ?? '无', + $item['user']['nickname'] ?? $item['uid'], + $product, + $item['coupon_price'] , + $item['pay_postage'], + $value['product_price'], + $item['refund_price'], + $item['real_name'], + $item['user_phone'], + $item['user_address'] ?: '', + $item['delivery_id'] ?: '', + $item['create_time'], + $paytype[$item['pay_type']], + $item['paid'] ? '已支付':'未支付', + $item['remark'] ?: '', + ]; + $export[] = $one; } - + $header = ['商户名称','订单编号','订单类型','推广人','用户信息', '商品名称','商品规格','商品数量','商品价格','优惠','实付邮费(元)','实付金额(元)','已退款金额(元)', '收货人','收货人电话','收货地址','物流/电话','下单时间','支付方式','支付状态','商家备注']; $filename = '订单列表_'.date('YmdHis'); - $end = []; - return $this->export($id, 'order', $header, $title, $export,$filename, $end); + $title = ['订单列表','导出时间:'.date('Y-m-d H:i:s',time())]; + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -205,7 +181,7 @@ class ExcelService * @author Qinii * @day 2020-08-10 */ - public function financial(array $where,int $id) + public function financial(array $where,int $page,int $limit) { $_key = [ 'mer_accoubts' => '财务对账', @@ -216,47 +192,46 @@ class ExcelService 'refund_brokerage_one' => '返还一级分佣', 'refund_brokerage_two' => '返还二级分佣', 'order' => '订单支付', + 'order_platform_coupon' => '平台优惠券补贴', + 'refund_platform_coupon' => '退回平台优惠券', + 'order_svip_coupon' => '付费会员卷', + 'refund_svip_coupon' => '退回付费会员卷', ]; $make = app()->make(FinancialRecordRepository::class); - $query = $make->search($where)->with(['merchant']); + $query = $make->search($where)->with([ + 'merchant', + 'orderInfo', + 'refundOrder' + ]); - - $header = ['序号','商户名称','交易流水单号','总订单号','子订单号','用户名','用户ID','交易类型','收入/支出','金额','创建时间']; + $header = ['商户名称','交易流水单号','类型','总订单号','订单号/退款单号','用户名','用户ID','交易类型','收入/支出','金额','创建时间']; $title = [ - 'title' => '流水列表', - 'sheets' => '流水信息', - 'mark' => ['生成时间:' . date('Y-m-d H:i:s',time())], + '流水列表', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; - $export = []; - $limit = 20; - $count = ceil(($query->count())/$limit); - $i = 1; - $order_make = app()->make(StoreOrderRepository::class); - for( $page = 1; $page <= $count; $page++ ) { - $list = $query->page($page,$limit)->select(); - foreach ($list as $k => $v) { - $order = $order_make->get($v['order_id']); - $export[] = [ - $i, - $v['merchant']['mer_name'], - $v['financial_record_sn'], - $order['groupOrder']['group_order_sn'] ?? '无数据', - $v['order_sn'], - $v['user_info'], - $v['user_id'], - $_key[$v['financial_type']], - $v['financial_pm'] ? '收入' : '支出', - ($v['financial_pm'] ? '+ ' : '- ') . $v['number'], - $v['create_time'], - ]; - $i++; - } + $count = $query->count(); + $list = $query->page($page,$limit)->select(); + foreach ($list as $v) { + $wx = (substr($v['order_sn'],0,2) === 'wx'); + $export[] = [ + $v['merchant']['mer_name'], + $v['financial_record_sn'], + $wx ? '订单' : '退款单', + $wx ? $v['orderInfo']['groupOrder']['group_order_sn'] : '' , + $wx ? $v['order_sn'] : $v['refundOrder']['refund_order_sn'] , + $v['user_info'], + $v['user_id'], + $_key[$v['financial_type']], + $v['financial_pm'] ? '收入' : '支出', + ($v['financial_pm'] ? '+ ' : '- ') . $v['number'], + $v['create_time'], + ]; } $filename = '流水列表_'.date('YmdHis'); - - return $this->export($id,'financial',$header,$title,$export,$filename,[],'xlsx'); + $foot =[]; + return compact('count','header','title','export','foot','filename'); } /** @@ -266,46 +241,40 @@ class ExcelService * @author Qinii * @day 3/13/21 */ - public function delivery(array $where,int $id) + public function delivery(array $where,int $page, int $limit) { $make = app()->make(StoreOrderRepository::class); $where['order_type'] = 0; $query = $make->search($where)->with(['orderProduct'])->order('order_id ASC'); - $header = ['序号','订单编号','物流公司','物流编码','物流单号', '发货地址','用户信息','手机号','商品信息','支付时间']; + $header = ['订单编号','物流公司','物流编码','物流单号', '发货地址','用户信息','手机号','商品信息','支付时间']; $title = [ - 'title' => '批量发货单', - 'sheets' => '发货信息', - 'mark' => ['生成时间:' . date('Y-m-d H:i:s',time())], + '批量发货单', + '生成时间:' . date('Y-m-d H:i:s',time()), ]; $filename = '批量发货单_'.date('YmdHis'); $export = []; - $limit = 20; - $count = ceil(($query->count())/$limit); - $i = 1; - for( $page = 1; $page <= $count; $page++ ) { - $data = $query->page($page,$limit)->select(); - foreach ($data as $key => $item){ - $product = ''; - foreach ($item['orderProduct'] as $value){ - $product = $product.$value['cart_info']['product']['store_name'].'【'. $value['cart_info']['productAttr']['sku'] .'】【' . $value['product_num'].'】'.PHP_EOL; - } - $export[] = [ - $i, - $item['order_sn'] ?? '', - '', - $item['delivery_name']??"", - $item['delivery_id']??"", - $item['user_address']??"", - $item['real_name'] ?? '', - $item['user_phone'] ?? '', - $product, - $item['pay_time'] ?? '', - ]; - $i++; + $count = $query->count(); + $data = $query->page($page,$limit)->select(); + foreach ($data as $item){ + $product = ''; + foreach ($item['orderProduct'] as $value){ + $product = $product.$value['cart_info']['product']['store_name'].'【'. $value['cart_info']['productAttr']['sku'] .'】【' . $value['product_num'].'】'.PHP_EOL; } + $export[] = [ + $item['order_sn'] ?? '', + '', + $item['delivery_name']??"", + $item['delivery_id']??"", + $item['user_address']??"", + $item['real_name'] ?? '', + $item['user_phone'] ?? '', + $product, + $item['pay_time'] ?? '', + ]; } - $end = []; - return $this->export($id,'delivery',$header,$title,$export,$filename,$end); + + $foot = []; + return compact('count','header','title','export','foot','filename'); } /** @@ -315,40 +284,30 @@ class ExcelService * @author Qinii * @day 3/17/21 */ - public function importDelivery(array $where,int $id) + public function importDelivery(array $where,int $page,int $limit) { $make = app()->make(StoreImportDeliveryRepository::class); $query = $make->getSearch($where)->order('create_time ASC'); $title = [ - 'title' => '发货记录', - 'sheets' => '发货信息', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '发货记录', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; - $header = ['序号','订单编号','物流公司','物流单号', '发货状态','备注']; + $header = ['订单编号','物流公司','物流单号', '发货状态','备注']; $filename = '发货单记录_'.date('YmdHis'); $export = []; - $limit = 20; - $count = ceil(($query->count())/$limit); - $i = 1; - for( $page = 1; $page <= $count; $page++ ) { - $data = $query->page($page,$limit)->select(); - foreach ($data as $key => $item){ - $export[] = [ - $i, - $item['order_sn'], - $item['delivery_name'], - $item['delivery_id'], - $item['status'], - $item['mark'], - ]; - $i++; - } - + $count = $query->count(); + $data = $query->page($page,$limit)->select(); + foreach ($data as $item){ + $export[] = [ + $item['order_sn'], + $item['delivery_name'], + $item['delivery_id'], + $item['status'], + $item['mark'], + ]; } - $end = []; - return $this->export($id,'delivery',$header,$title,$export,$filename,$end); + $foot = []; + return compact('count','header','title','export','foot','filename'); } /** @@ -358,7 +317,7 @@ class ExcelService * @author Qinii * @day 3/25/21 */ - public function exportFinancial(array $where,int $id) + public function exportFinancial(array $where,int $page, int $limit) { /* order 收入 公共 新订单 @@ -420,39 +379,32 @@ class ExcelService $refund = $make->countRefund($where['type'],$where,$date_); $charge = bcsub($income['number'],$expend['number'],2); $filename = $title_.'('.$date_.')'.time(); - $title = []; - $header = []; $export = []; - $end = []; $limit = 20; - $count = ceil(($query->count())/$limit); + $count = $query->count(); $i = 1; $order_make = app()->make(StoreOrderRepository::class); //平台 if(!$where['is_mer']){ - $header = ['序号','商户类别','商户分类','商户名称','总订单号','订单编号','交易流水号','交易时间', '对方信息','交易类型','收支金额','备注']; - for( $page = 1; $page <= $count; $page++ ) { - $list = $query->page($page, $limit)->order('create_time DESC')->select(); - foreach ($list as $key => $value) { - $order = $order_make->get($value['order_id']); - $export[] = [ - $i, - $value['merchant']['is_trader'] ? '自营' : '非自营', - $value['merchant']['merchantCategory']['category_name'] ?? '平台', - $value['merchant']['mer_name'] ?? '平台', - $order['groupOrder']['group_order_sn'] ?? '无数据', - $value['order_sn'], - $value['financial_record_sn'], - $value['create_time'], - $value['user_info'], - $financialType[$value['financial_type']], - (in_array($value['financial_type'], $sys_pm_1) ? '+' : '-') . $value['number'], - '' - ]; - $i++; - } + $header = ['商户类别','商户分类','商户名称','总订单号','订单编号','交易流水号','交易时间', '对方信息','交易类型','收支金额','备注']; + $list = $query->page($page, $limit)->order('create_time DESC')->select(); + foreach ($list as $value) { + $order = $order_make->get($value['order_id']); + $export[] = [ + $value['merchant']['is_trader'] ? '自营' : '非自营', + $value['merchant']['merchantCategory']['category_name'] ?? '平台', + $value['merchant']['mer_name'] ?? '平台', + $order['groupOrder']['group_order_sn'] ?? '无数据', + $value['order_sn'], + $value['financial_record_sn'], + $value['create_time'], + $value['user_info'], + $financialType[$value['financial_type']], + (in_array($value['financial_type'], $sys_pm_1) ? '+' : '-') . $value['number'], + '' + ]; } - $end = [ + $foot = [ '合计:平台应入账手续费 '.$charge, '收入合计: '.'订单支付'.$income['count'].'笔,'.'实际支付金额共:'.$income['number'].'元;', '支出合计: '.'佣金支出'.$expend['count_brokerage'].'笔,支出金额:'.$expend['number_brokerage'].'元;商户入账支出'.$expend['count_order'].'笔,支出金额:'.$expend['number_order'].'元;退款手续费'.$expend['count_charge'].'笔,支出金额'.$expend['number_charge'].'元;合计支出'.$expend['number'], @@ -461,33 +413,29 @@ class ExcelService }else{ $header = ['序号','总订单号','子订单编号','交易流水号','交易时间', '对方信息','交易类型','收支金额','备注']; $mer_name = ''; - - for( $page = 1; $page <= $count; $page++ ) { - $list = $query->page($page, $limit)->order('create_time DESC')->select(); - - - foreach ($list as $key => $value) { - $order = $order_make->get($value['order_id']); - $export[] = [ - $i, - $order['groupOrder']['group_order_sn'] ?? '无数据', - $value['order_sn'], - $value['financial_record_sn'], - $value['create_time'], - $value['user_info'], - $financialType[$value['financial_type']], - (in_array($value['financial_type'], $mer_pm_1) ? '+' : '-') . $value['number'], - '' - ]; - $i++; - $mer_name = $mer_name ? $mer_name : ($value['merchant']['mer_name'] ?? ''); - } + $list = $query->page($page, $limit)->order('create_time DESC')->select(); + foreach ($list as $key => $value) { + $order = $order_make->get($value['order_id']); + $export[] = [ + $i, + $order['groupOrder']['group_order_sn'] ?? '无数据', + $value['order_sn'], + $value['financial_record_sn'], + $value['create_time'], + $value['user_info'], + $financialType[$value['financial_type']], + (in_array($value['financial_type'], $mer_pm_1) ? '+' : '-') . $value['number'], + '' + ]; + $i++; + $mer_name = $mer_name ? $mer_name : ($value['merchant']['mer_name'] ?? ''); } + $count_brokeage = $expend['count_brokerage'] + $expend['count_refund_brokerage']; $number_brokeage = bcsub($expend['number_brokerage'],$expend['number_refund_brokerage'],2); $count_charge = $expend['count_charge']+$expend['count_order_charge']; $number_charge = bcsub($expend['number_order_charge'],$expend['number_charge'],2); - $end = [ + $foot = [ '合计:商户应入金额 '.$charge, '收入合计: '.'订单支付'.$income['count'].'笔,'.'实际支付金额共:'.$income['number'].'元;', '支出合计: '.'佣金支出'.$count_brokeage.'笔,支出金额:'.$number_brokeage.'元;退款'.$expend['count_refund'].'笔,支出金额:'.$expend['number_refund'].'元;平台手续费'.$count_charge.'笔,支出金额:'.$number_charge.'元;合计支出金额:'.$expend['number'].'元;', @@ -497,15 +445,12 @@ class ExcelService } $title = [ - 'title' => $title_, - 'sheets' => $title_.'信息', - 'mark' => [ - $mer_name ?? '平台', - '结算账期:【' .$start_date.'】至【'.$end_date.'】', - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + $title_, + $mer_name ?? '平台', + '结算账期:【' .$start_date.'】至【'.$end_date.'】', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; - return $this->export($id,'financial',$header,$title,$export,$filename,$end); + return compact('count','header','title','export','foot','filename'); } /** @@ -515,7 +460,7 @@ class ExcelService * @author Qinii * @day 6/10/21 */ - public function refundOrder(array $where,int $id) + public function refundOrder(array $where,int $page, int $limit) { $query = app()->make(StoreRefundOrderRepository::class)->search($where) ->where('is_system_del', 0)->with([ @@ -529,18 +474,14 @@ class ExcelService 'merchant' => function ($query) { $query->field('mer_id,mer_name'); }, - ])->order('create_time DESC'); + ])->order('StoreRefundOrder.create_time DESC'); $title = [ - 'title' => '退款订单', - 'sheets' => '退款单信息', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '退款订单', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; - $header = ['序号','商户名称','退款单号','申请时间','最新更新时间', '退款金额','退货件量','退货商品信息','退款类型','订单状态','拒绝理由','退货人','退货地址','相关订单号','退货物流公司','退货物流单号','备注']; + $header = ['商户名称','退款单号','申请时间','最新更新时间', '退款金额','退货件量','退货商品信息','退款类型','订单状态','拒绝理由','退货人','退货地址','相关订单号','退货物流公司','退货物流单号','备注']; $filename = '退款订单'.time(); - $path = 'refundOrder'; $status = [ 0 => '待审核', @@ -549,40 +490,35 @@ class ExcelService 3 => '已退款', -1=> '审核未通过', ]; - $limit = 20; - $count= ceil(($query->count())/$limit); - $i = 1; - for( $page = 1; $page <= $count; $page++ ){ - $data = $query->page($page,$limit)->select()->toArray(); - foreach ($data as $k => $datum){ - $product = ''; - foreach ($datum['refundProduct'] as $value){ - $product .= '【'.$value['product']['cart_info']['product']['product_id'].'】'.$value['product']['cart_info']['product']['store_name'].'*'.$value['refund_num'].$value['product']['cart_info']['product']['unit_name'].PHP_EOL; - } - $export[] = [ - $i, - $datum['merchant']['mer_name'], - $datum['refund_order_sn'], - $datum['create_time'], - $datum['status_time'] ?? ' ', - $datum['refund_price'], - $datum['refund_num'], - $product, - ($datum['refund_type'] == 1 ) ? '仅退款' : '退款退货', - $status[$datum['status']], - $datum['fail_message'], - $datum['order']['real_name'], - $datum['order']['user_address'], - $datum['order']['order_sn'], - $datum['delivery_type'], - $datum['delivery_id'], - $datum['mark'], - ]; - $i++; + $count= $query->count(); + $data = $query->page($page,$limit)->select()->toArray(); + foreach ($data as $datum){ + $product = ''; + foreach ($datum['refundProduct'] as $value){ + $product .= '【'.$value['product']['cart_info']['product']['product_id'].'】'.$value['product']['cart_info']['product']['store_name'].'*'.$value['refund_num'].$value['product']['cart_info']['product']['unit_name'].PHP_EOL; } - + $export[] = [ + $datum['merchant']['mer_name'], + $datum['refund_order_sn'], + $datum['create_time'], + $datum['status_time'] ?? ' ', + $datum['refund_price'], + $datum['refund_num'], + $product, + ($datum['refund_type'] == 1 ) ? '仅退款' : '退款退货', + $status[$datum['status']], + $datum['fail_message'], + $datum['order']['real_name'], + $datum['order']['user_address'], + $datum['order']['order_sn'], + $datum['delivery_type'], + $datum['delivery_id'], + $datum['mark'], + ]; } - $this->export($id, $path, $header, $title, $export, $filename); + + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -592,63 +528,57 @@ class ExcelService * @author Qinii * @day 6/10/21 */ - public function integralLog($where,$id) + public function integralLog($where,int $page, int $limit) { $title = [ - 'title' => '积分日志', - 'sheets' => '积分日志', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '积分日志', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $header = ['用户ID','用户昵称','积分标题','变动积分', '当前积分余额','备注','时间']; $filename = '积分日志'.time(); - $path = 'integralLog'; $export = []; - app()->make(UserBillRepository::class)->searchJoin($where)->order('a.create_time DESC') - ->chunk(100,function($list) use(&$export){ - foreach ($list as $item) { - $export[] = [ - $item['uid'], - $item['nickname'], - $item['title'], - $item['number'], - $item['balance'], - $item['mark'], - $item['create_time'], - ]; - } - }); - $this->export($id, $path, $header, $title, $export, $filename); + $query = app()->make(UserBillRepository::class)->searchJoin($where)->order('a.create_time DESC'); + $count = $query->count(); + $list = $query->page($page,$limit)->select(); + foreach ($list as $item) { + $export[] = [ + $item['uid'], + $item['nickname'], + $item['title'], + $item['number'], + $item['balance'], + $item['mark'], + $item['create_time'], + ]; + } + $foot = ''; + return compact('count','header','title','export','foot','filename'); } - public function intention($where,$id) + public function intention($where,int $page, int $limit) { $title = [ - 'title' => '申请列表', - 'sheets' => '申请列表', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '申请列表', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $header = ['商户姓名','联系方式','备注','店铺名称','店铺分类','时间']; $filename = '申请列表'.time(); - $path = 'intention'; $export = []; - app()->make(MerchantIntentionRepository::class)->search($where)->with(['merchantCategory', 'merchantType'])->order('a.create_time DESC') - ->chunk(100,function($list) use(&$export){ - foreach ($list as $item) { - $export[] = [ - $item['name'], - $item['phone'], - $item['mark'], - $item['mer_name'], - $item['category_name'], - $item['create_time'], - ]; - } - }); - $this->export($id, $path, $header, $title, $export, $filename); + $query = app()->make(MerchantIntentionRepository::class)->search($where)->with(['merchantCategory', 'merchantType'])->order('a.create_time DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->select(); + foreach ($list as $item) { + $export[] = [ + $item['name'], + $item['phone'], + $item['mark'], + $item['mer_name'], + $item['category_name'], + $item['create_time'], + ]; + } + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -658,50 +588,47 @@ class ExcelService * @author Qinii * @day 9/28/21 */ - public function financialLog(array $where, int $id) + public function financialLog(array $where, int $page, int $limit) { $title = [ - 'title' => '转账记录', - 'sheets' => '转账记录', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '转账记录', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $header = ['商户名称','申请时间','转账金额','到账状态','审核状态','拒绝理由','商户余额','转账信息']; $filename = '转账记录_'.time(); - $path = 'financial'; $export = []; - app()->make(FinancialRepository::class)->search($where)->with('merchant')->order('create_time DESC') - ->chunk(100, function($list) use(&$export){ - foreach ($list as $item) { - if ($item->financial_type == 1) { - $acount = '姓名:'.$item->financial_account->name.PHP_EOL; - $acount .= '银行名称:'.$item->financial_account->bank.PHP_EOL; - $acount .= '银行卡号:'.$item->financial_account->bank_code; - } - if ($item->financial_type == 2) { - $acount = '姓名:'.$item->financial_account->name.PHP_EOL; - $acount .= '微信号:'.$item->financial_account->wechat.PHP_EOL; - $acount .= '收款二维码地址:'.$item->financial_account->wechat_code; - } - if ($item->financial_type == 3) { - $acount = '姓名:'.$item->financial_account->name.PHP_EOL; - $acount .= '支付宝号:'.$item->financial_account->alipay.PHP_EOL; - $acount .= '收款二维码地址:'.$item->financial_account->alipay_code; - } - $export[] = [ - $item->merchant->mer_name, - $item->create_time, - $item->extract_money, - $item->financial_status == 1 ? '已转账' : '未转账', - $item->status == 1 ? '通过' : ($item->status == 0 ? '待审核' : '拒绝'), - $item->refusal, - $item->mer_money, - $acount, - ]; - } - }); - $this->export($id, $path, $header, $title, $export, $filename); + $query = app()->make(FinancialRepository::class)->search($where)->with('merchant')->order('create_time DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->select(); + foreach ($list as $item) { + if ($item->financial_type == 1) { + $acount = '姓名:'.$item->financial_account->name.PHP_EOL; + $acount .= '银行名称:'.$item->financial_account->bank.PHP_EOL; + $acount .= '银行卡号:'.$item->financial_account->bank_code; + } + if ($item->financial_type == 2) { + $acount = '姓名:'.$item->financial_account->name.PHP_EOL; + $acount .= '微信号:'.$item->financial_account->wechat.PHP_EOL; + $acount .= '收款二维码地址:'.$item->financial_account->wechat_code; + } + if ($item->financial_type == 3) { + $acount = '姓名:'.$item->financial_account->name.PHP_EOL; + $acount .= '支付宝号:'.$item->financial_account->alipay.PHP_EOL; + $acount .= '收款二维码地址:'.$item->financial_account->alipay_code; + } + $export[] = [ + $item->merchant->mer_name, + $item->create_time, + $item->extract_money, + $item->financial_status == 1 ? '已转账' : '未转账', + $item->status == 1 ? '通过' : ($item->status == 0 ? '待审核' : '拒绝'), + $item->refusal, + $item->mer_money, + $acount, + ]; + } + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -711,14 +638,11 @@ class ExcelService * @author Qinii * @day 9/28/21 */ - public function extract(array $where, int $id) + public function extract(array $where, int $page, int $limit) { $title = [ - 'title' => '提现申请', - 'sheets' => '提现申请', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '提现申请', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $type = [ '银行卡', @@ -730,35 +654,36 @@ class ExcelService $filename = '提现申请_'.time(); $path = 'extract'; $export = []; - app()->make(UserExtractRepository::class)->search($where)->order('create_time DESC') - ->chunk(100, function($list) use(&$export, $type){ - foreach ($list as $item) { - $acount = ''; - if ($item->extract_type == 0) { - $acount .= '银行地址:'.$item->bank_address.PHP_EOL; - $acount .= '银行卡号:'.$item->bank_code; - } - if ($item->extract_type == 2) { - $acount .= '微信号:'.$item->wechat.PHP_EOL; - $acount .= '收款二维码地址:'.$item->extract_pic; - } - if ($item->extract_type == 1) { - $acount .= '支付宝号:'.$item->alipay.PHP_EOL; - $acount .= '收款二维码地址:'.$item->extract_pic; - } - $export[] = [ - $item->real_name, - $item->uid, - $item->extract_price, - $item->balance, - $item->status == 1 ? '通过' : ($item->status == 0 ? '待审核' : '拒绝'), - $item->fail_msg, - $type[$item->extract_type], - $acount, - ]; - } - }); - $this->export($id, $path, $header, $title, $export, $filename); + $query = app()->make(UserExtractRepository::class)->search($where)->order('create_time DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->select(); + foreach ($list as $item) { + $acount = ''; + if ($item->extract_type == 0) { + $acount .= '银行地址:'.$item->bank_address.PHP_EOL; + $acount .= '银行卡号:'.$item->bank_code; + } + if ($item->extract_type == 2) { + $acount .= '微信号:'.$item->wechat.PHP_EOL; + $acount .= '收款二维码地址:'.$item->extract_pic; + } + if ($item->extract_type == 1) { + $acount .= '支付宝号:'.$item->alipay.PHP_EOL; + $acount .= '收款二维码地址:'.$item->extract_pic; + } + $export[] = [ + $item->real_name, + $item->uid, + $item->extract_price, + $item->balance, + $item->status == 1 ? '通过' : ($item->status == 0 ? '待审核' : '拒绝'), + $item->fail_msg, + $type[$item->extract_type], + $acount, + ]; + } + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -768,36 +693,33 @@ class ExcelService * @author Qinii * @day 9/28/21 */ - public function profitsharing(array $where, int $id) + public function profitsharing(array $where, int $page, int $limit) { $title = [ - 'title' => '分账明细', - 'sheets' => '分账明细', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '分账明细', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $header = ['订单编号','商户名称','订单类型','状态','分账时间','订单金额']; $filename = '分账明细_'.time(); - $path = 'profitsharing'; $export = []; - app()->make(StoreOrderProfitsharingRepository::class)->search($where)->with('order','merchant')->order('create_time DESC') - ->chunk(100, function($list) use(&$export){ - foreach ($list as $item) { - $info = '分账金额:'. $item->profitsharing_price.PHP_EOL; - if(isset($item->profitsharing_price) && $item->profitsharing_price > 0) $info .= '退款金额:'. $item->profitsharing_refund.PHP_EOL; - $info .= '分账给商户金额:'. $item->profitsharing_mer_price; - $export[] = [ - $item->order->order_sn ?? '', - $item->merchant->mer_name, - $item->typeName, - $item->statusName, - $item->profitsharing_time, - $info - ]; - } - }); - $this->export($id, $path, $header, $title, $export, $filename); + $query = app()->make(StoreOrderProfitsharingRepository::class)->search($where)->with('order','merchant')->order('create_time DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->select(); + foreach ($list as $item) { + $info = '分账金额:'. $item->profitsharing_price.PHP_EOL; + if(isset($item->profitsharing_price) && $item->profitsharing_price > 0) $info .= '退款金额:'. $item->profitsharing_refund.PHP_EOL; + $info .= '分账给商户金额:'. $item->profitsharing_mer_price; + $export[] = [ + $item->order->order_sn ?? '', + $item->merchant->mer_name, + $item->typeName, + $item->statusName, + $item->profitsharing_time, + $info + ]; + } + $foot = ''; + return compact('count','header','title','export','foot','filename'); } /** @@ -807,34 +729,31 @@ class ExcelService * @author Qinii * @day 9/28/21 */ - public function bill(array $where, int $id) + public function bill(array $where, int $page, int $limit) { $title = [ - 'title' => '资金记录', - 'sheets' => '资金记录', - 'mark' => [ - '生成时间:' . date('Y-m-d H:i:s',time()) - ], + '资金记录', + '生成时间:' . date('Y-m-d H:i:s',time()) ]; $header = ['用户ID','昵称','金额','明细类型','备注','时间']; $filename = '资金记录_'.time(); - $path = 'bill'; $export = []; - app()->make(UserBillRepository::class) - ->searchJoin($where)->order('a.create_time DESC') - ->chunk(100, function($list) use(&$export){ - foreach ($list as $item) { - $export[] = [ - $item->uid, - $item->user->nickname??'', - $item->number, - $item->title, - $item->mark, - $item->create_time, - ]; - } - }); + $query = app()->make(UserBillRepository::class) + ->searchJoin($where)->order('a.create_time DESC'); + $count = $query->count(); + $list = $query->page($page, $limit)->select(); + foreach ($list as $item) { + $export[] = [ + $item->uid, + $item->user->nickname??'', + $item->number, + $item->title, + $item->mark, + $item->create_time, + ]; + } $export = array_reverse($export); - $this->export($id, $path, $header, $title, $export, $filename); + $foot = ''; + return compact('count','header','title','export','foot','filename'); } } diff --git a/crmeb/services/ExpressService.php b/crmeb/services/ExpressService.php index f1d252c9..d696cd10 100644 --- a/crmeb/services/ExpressService.php +++ b/crmeb/services/ExpressService.php @@ -49,12 +49,10 @@ class ExpressService { $res = app()->make(CrmebServeServices::class)->express()->query($no,'',$form); if (!$res) $res = app()->make(CrmebServeServices::class)->express()->query($no,$type,$form); - $cacheTime = 0; + $cacheTime = 1800; if(!empty($res)){ if($res['status'] == 3){ $cacheTime = 0; - }else{ - $cacheTime = 1800; } } $list = $res['content'] ?? []; @@ -85,10 +83,9 @@ class ExpressService throw new ValidateException($result['msg']); } } + $cacheTime = 1800; if (is_array($result) && isset($result['result']) && isset($result['result']['deliverystatus']) && $result['result']['deliverystatus'] >= 3){ $cacheTime = 0; - } else { - $cacheTime = 1800; } $list = $result['result']['list'] ?? []; return compact('cacheTime','list'); @@ -116,7 +113,7 @@ class ExpressService } $com = app()->make(ExpressRepository::class)->getSearch(['name' => $name])->value('code'); $result = self::query($sn.$suffix, $com, ['phone' => $phone]); - if(!empty($result)){ + if(!empty($result['list'])){ Cache::set('express_' . $sn, $result['list'], $result['cacheTime']); $result = $result['list']; } diff --git a/crmeb/services/MiniProgramService.php b/crmeb/services/MiniProgramService.php index ad425f06..4f42deec 100644 --- a/crmeb/services/MiniProgramService.php +++ b/crmeb/services/MiniProgramService.php @@ -418,4 +418,19 @@ class MiniProgramService } } + public function getPrivateTemplates() + { + try{ + $res = $this->miniprogram()->now_notice->getPrivateTemplates(); + return $res; + if (isset($res['errcode']) && $res['errcode'] == 0 && isset($res['priTmplId'])) { + return $res['priTmplId']; + } else { + throw new ValidateException($res['errmsg']); + } + } catch (\Throwable $e) { + throw new ValidateException($e); + } + } + } diff --git a/crmeb/services/SmsService.php b/crmeb/services/SmsService.php index 41176784..eb1b9fd4 100644 --- a/crmeb/services/SmsService.php +++ b/crmeb/services/SmsService.php @@ -95,156 +95,192 @@ class SmsService } } - public static function sendMessage($tempId, $id) + public static function sendMessage($data) { - if ($tempId == 'DELIVER_GOODS_CODE') { - $order = app()->make(StoreOrderRepository::class)->get($id); - if (!$order || !$order->user_phone) return; - $nickname = $order->user->nickname; - $store_name = $order->orderProduct[0]['cart_info']['product']['store_name'] . (count($order->orderProduct) ? '等' : ''); - $order_id = $order->order_sn; - self::create()->send($order->user_phone, $tempId, compact('nickname', 'store_name', 'order_id')); - } else if ($tempId == 'ORDER_TAKE_SUCCESS') { - $order = app()->make(StoreOrderRepository::class)->get($id); - if (!$order || !$order->user_phone) return; - $order_id = $order->order_sn; - $store_name = $order->orderProduct[0]['cart_info']['product']['store_name'] . (count($order->orderProduct) ? '等' : ''); - self::create()->send($order->user_phone, $tempId, compact('store_name', 'order_id')); - } else if ($tempId == 'ORDER_PAY_SUCCESS') { - $order = app()->make(StoreGroupOrderRepository::class)->get($id); - if (!$order || !$order->user_phone) return; - $pay_price = $order->pay_price; - $order_id = $order->group_order_sn; - self::create()->send($order->user_phone, $tempId, compact('pay_price', 'order_id')); - } else if ($tempId == 'PRICE_REVISION_CODE') { - $order = app()->make(StoreOrderRepository::class)->get($id); - if (!$order || !$order->user_phone) return; - $pay_price = $order->pay_price; - $order_id = $order->order_sn; - self::create()->send($order->user_phone, $tempId, compact('pay_price', 'order_id')); - } else if ($tempId == 'ORDER_PAY_FALSE') { - $order = app()->make(StoreGroupOrderRepository::class)->get($id); - if (!$order || !$order->user_phone) return; - $order_id = $order->group_order_sn; - self::create()->send($order->user_phone, $tempId, compact('order_id')); - } else if ($tempId == 'REFUND_FAIL_CODE') { - $order = app()->make(StoreRefundOrderRepository::class)->get($id); - if (!$order || !$order->order->user_phone) return; - $order_id = $order->order->order_sn; - $store_name = $order->refundProduct[0]->product['cart_info']['product']['store_name'] . (count($order->refundProduct) ? '等' : ''); - self::create()->send($order->order->user_phone, $tempId, compact('order_id', 'store_name')); - } else if ($tempId == 'REFUND_SUCCESS_CODE') { - $order = app()->make(StoreRefundOrderRepository::class)->get($id); - if (!$order || !$order->order->user_phone) return; - $order_id = $order->order->order_sn; - $store_name = $order->refundProduct[0]->product['cart_info']['product']['store_name'] . (count($order->refundProduct) ? '等' : ''); - self::create()->send($order->order->user_phone, $tempId, compact('order_id', 'store_name')); - } else if ($tempId == 'REFUND_CONFORM_CODE') { - $order = app()->make(StoreRefundOrderRepository::class)->get($id); - if (!$order || !$order->order->user_phone) return; - $order_id = $order->order->order_sn; - $store_name = $order->refundProduct[0]->product['cart_info']['product']['store_name'] . (count($order->refundProduct) ? '等' : ''); - self::create()->send($order->order->user_phone, $tempId, compact('order_id', 'store_name')); - } else if ($tempId == 'ADMIN_PAY_SUCCESS_CODE') { - $order = app()->make(StoreGroupOrderRepository::class)->get($id); - if (!$order) return; - foreach ($order->orderList as $_order) { - self::sendMerMessage($_order->mer_id, $tempId, [ - 'order_id' => $_order->order_sn + $tempId = $data['tempId']; + $id = $data['id']; + switch ($tempId) { + //发货提醒 -2.1 + case 'DELIVER_GOODS_CODE': + $order = app()->make(StoreOrderRepository::class)->get($id); + if (!$order || !$order->user_phone) return; + $nickname = $order->user->nickname; + $store_name = $order->orderProduct[0]['cart_info']['product']['store_name'] . (count($order->orderProduct) ? '等' : ''); + $order_id = $order->order_sn; + + self::create()->send($order->user_phone, $tempId, compact('nickname', 'store_name', 'order_id')); + break; + //确认收货短信提醒 -2.1 + case 'ORDER_TAKE_SUCCESS': + $order = app()->make(StoreOrderRepository::class)->get($id); + if (!$order || !$order->user_phone) return; + $order_id = $order->order_sn; + $store_name = $order->orderProduct[0]['cart_info']['product']['store_name'] . (count($order->orderProduct) ? '等' : ''); + + self::create()->send($order->user_phone, $tempId, compact('store_name', 'order_id')); + break; + //用户支付成功提醒 -2.1 + case 'ORDER_PAY_SUCCESS': + //not break; + //改价提醒 -2.1 + case 'PRICE_REVISION_CODE': + $order = app()->make(StoreOrderRepository::class)->get($id); + if (!$order || !$order->user_phone) return; + $pay_price = $order->pay_price; + $order_id = $order->order_sn; + self::create()->send($order->user_phone, $tempId, compact('pay_price', 'order_id')); + break; + //提醒付款通知 -2.1 + case 'ORDER_PAY_FALSE': + $order = app()->make(StoreGroupOrderRepository::class)->get($id); + if (!$order || !$order->user_phone) return; + $order_id = $order->group_order_sn; + + self::create()->send($order->user_phone, $tempId, compact('order_id')); + break; + //商家拒绝退款提醒 -2.1 + case 'REFUND_FAIL_CODE': + $order = app()->make(StoreRefundOrderRepository::class)->get($id); + if (!$order || !$order->order->user_phone) return; + $order_id = $order->order->order_sn; + $store_name = $order->refundProduct[0]->product['cart_info']['product']['store_name'] . (count($order->refundProduct) ? '等' : ''); + + self::create()->send($order->order->user_phone, $tempId, compact('order_id', 'store_name')); + break; + //商家同意退款提醒 -2.1 + case 'REFUND_SUCCESS_CODE': + //notbreak; + //退款确认提醒 -2.1 + case 'REFUND_CONFORM_CODE': + $order = app()->make(StoreRefundOrderRepository::class)->get($id); + if (!$order || !$order->order->user_phone) return; + $order_id = $order->order->order_sn; + $store_name = $order->refundProduct[0]->product['cart_info']['product']['store_name'] . (count($order->refundProduct) ? '等' : ''); + + self::create()->send($order->order->user_phone, $tempId, compact('order_id', 'store_name')); + break; + //管理员 支付成功提醒 -2.1 + case 'ADMIN_PAY_SUCCESS_CODE': + $order = app()->make(StoreGroupOrderRepository::class)->get($id); + if (!$order) return; + foreach ($order->orderList as $_order) { + self::sendMerMessage($_order->mer_id, $tempId, ['order_id' => $_order->order_sn]); + } + break; + //管理员退款单提醒 -2.1 + case 'ADMIN_RETURN_GOODS_CODE': + //notbreak + //退货信息提醒 + case 'ADMIN_DELIVERY_CODE': + $order = app()->make(StoreRefundOrderRepository::class)->get($id); + if (!$order) return; + self::sendMerMessage($order->mer_id, $tempId, ['order_id' => $order->refund_order_sn]); + break; + //管理员确认收货提醒 2.1 + case 'ADMIN_TAKE_DELIVERY_CODE': + $order = app()->make(StoreOrderRepository::class)->get($id); + if (!$order) return; + self::sendMerMessage($order->mer_id, $tempId, ['order_id' => $order->order_sn]); + break; + //直播审核通过主播通知 2.1 + case 'BROADCAST_ROOM_CODE': + $room = app()->make(BroadcastRoomRepository::class)->get($id); + if (!$room) return; + self::create()->send($room->phone, $tempId, [ + 'wechat' => $room->anchor_wechat, + 'date' => date('Y年m月d日 H时i分', strtotime($room->start_time)) ]); - } - } else if ($tempId == 'ADMIN_RETURN_GOODS_CODE') { - $order = app()->make(StoreRefundOrderRepository::class)->get($id); - if (!$order) return; - self::sendMerMessage($order->mer_id, $tempId, [ - 'order_id' => $order->refund_order_sn - ]); - } else if ($tempId == 'ADMIN_TAKE_DELIVERY_CODE') { - $order = app()->make(StoreOrderRepository::class)->get($id); - if (!$order) return; - self::sendMerMessage($order->mer_id, $tempId, [ - 'order_id' => $order->order_sn - ]); - } else if ($tempId == 'ADMIN_DELIVERY_CODE') { - $order = app()->make(StoreRefundOrderRepository::class)->get($id); - if (!$order) return; - self::sendMerMessage($order->mer_id, $tempId, [ - 'order_id' => $order->refund_order_sn - ]); - } else if ($tempId == 'BROADCAST_ROOM_CODE') { - $room = app()->make(BroadcastRoomRepository::class)->get($id); - if (!$room) return; - self::create()->send($room->phone, $tempId, [ - 'wechat' => $room->anchor_wechat, - 'date' => date('Y年m月d日 H时i分', strtotime($room->start_time)) - ]); - } else if ($tempId == 'BROADCAST_ROOM_FAIL') { - $room = app()->make(BroadcastRoomRepository::class)->get($id); - if (!$room) return; - self::create()->send($room->phone, $tempId, [ - 'wechat' => $room->anchor_wechat - ]); - } else if ($tempId == 'PAY_PRESELL_CODE') { - $order = app()->make(StoreOrderRepository::class)->get($id); - if (!$order || !$order->user_phone || !$order->pay_time) return; - self::create()->send($order->user_phone, $tempId, [ - 'date' => date('Y-m-d', strtotime($order->pay_time)), - 'product_name' => $order->orderProduct[0]['cart_info']['product']['store_name'] ?? '' - ]); - } else if ($tempId == 'APPLY_MER_SUCCESS') { - self::create()->send($id['phone'], $tempId, [ - 'date' => date('m月d日', strtotime($id['date'])), - 'mer' => $id['mer'], - 'phone' => $id['phone'], - 'pwd' => $id['pwd'], - 'site_name' => systemConfig('site_name'), - ]); - } else if ($tempId == 'APPLY_MER_FAIL') { - self::create()->send($id['phone'], $tempId, [ - 'date' => date('m月d日', strtotime($id['date'])), - 'mer' => $id['mer'], - 'site' => systemConfig('site_name'), - ]); - } else if ($tempId == 'PRODUCT_INCREASE') { - $product = app()->make(ProductRepository::class)->getWhere(['product_id' => $id], '*', ['attrValue']); - if (!$product) return false; - $unique[] = 1; - foreach ($product['attrValue'] as $item) { - if ($item['stock'] > 0) { - $unique[] = $item['unique']; + break; + //直播未通过通知 2.1 + case 'BROADCAST_ROOM_FAIL': + $room = app()->make(BroadcastRoomRepository::class)->get($id); + if (!$room) return; + self::create()->send($room->phone, $tempId, [ + 'wechat' => $room->anchor_wechat + ]); + break; + //预售尾款支付通知 2.1 + case 'PAY_PRESELL_CODE': + $order = app()->make(StoreOrderRepository::class)->get($id); + if (!$order || !$order->user_phone || !$order->pay_time) return; + self::create()->send($order->user_phone, $tempId, [ + 'date' => date('Y-m-d', strtotime($order->pay_time)), + 'product_name' => $order->orderProduct[0]['cart_info']['product']['store_name'] ?? '' + ]); + break; + //入驻申请通过提醒 2.1 + case 'APPLY_MER_SUCCESS': + self::create()->send($id['phone'], $tempId, [ + 'date' => $id['date'], + 'mer' => $id['mer'], + 'phone' => $id['phone'], + 'pwd' => $id['pwd'], + 'site_name' => systemConfig('site_name'), + ]); + break; + //入驻申请未通过提醒 2.1 + case 'APPLY_MER_FAIL': + self::create()->send($id['phone'], $tempId, [ + 'date' => $id['date'], + 'mer' => $id['mer'], + 'site' => systemConfig('site_name'), + ]); + break; + //到货提醒通知 2.1 + case 'PRODUCT_INCREASE': + $product = app()->make(ProductRepository::class)->getWhere(['product_id' => $id], '*', ['attrValue']); + if (!$product) return ; + $unique[] = 1; + foreach ($product['attrValue'] as $item) { + if ($item['stock'] > 0) $unique[] = $item['unique']; } - } - $make = app()->make(ProductTakeRepository::class); - $query = $make->getSearch(['product_id' => $id, 'status' => 0, 'type' => 1])->where('unique', 'in', $unique); - $tak_id = $query->column('product_take_id'); - $ret = $query->with(['user'])->select(); - foreach ($ret as $item) { - if ($item->user->phone) { - self::create()->send($item->user->phone, $tempId, [ - 'product' => $product->store_name, - 'site' => systemConfig('site_name'), - ]); + $make = app()->make(ProductTakeRepository::class); + $query = $make->getSearch(['product_id' => $id, 'status' => 0, 'type' => 1])->where('unique', 'in', $unique); + $ret = $query->select(); + if (!$ret) return ; + foreach ($ret as $item) { + if ($item->user->phone) { + self::create()->send($item->user->phone, $tempId, [ + 'product' => $product->store_name, + 'site' => systemConfig('site_name'), + ]); + $tak_id[] = $item->product_take_id; + } } - } - app()->make(ProductTakeRepository::class)->updates($tak_id, ['status' => 1]); - } else if ($tempId == 'INTEGRAL_INVALID') { - self::create()->send($id['phone'], $tempId, [ - 'integral' => $id['integral'], - 'date' => date('m月d日', strtotime($id['date'])), - 'site' => systemConfig('site_name'), - ]); - } else if ($tempId == 'REFUND_MARGIN_SUCCESS') { - self::create()->send($id['phone'], $tempId, [ - 'name' => $id['name'], - 'time' => $id['time'], - ]); - } else if ($tempId == 'REFUND_MARGIN_FAIL') { - self::create()->send($id['phone'], $tempId, [ - 'name' => $id['name'], - 'time' => $id['time'], - ]); + if (!empty($tak_id)) app()->make(ProductTakeRepository::class)->updates($tak_id, ['status' => 1]); + break; + //积分即将到期提醒 2.1 + case 'INTEGRAL_INVALID': + self::create()->send($id['phone'], $tempId, [ + 'integral' => $id['integral'], + 'date' => date('m月d日', strtotime($id['date'])), + 'site' => systemConfig('site_name'), + ]); + break; + //保证金退回申请通过通知 2.1 + case 'REFUND_MARGIN_SUCCESS': + //nobreak; + //保证金退回申请未通过通知 2.1 + case 'REFUND_MARGIN_FAIL': + self::create()->send($id['phone'], $tempId, ['name' => $id['name'], 'time' => $id['time'],]); + break; + //分账商户申请通过 2.1 + case 'APPLYMENTS_SUCCESS': + //nobreak; + //商户申请分账待验证 + case 'APPLYMENTS_SIGN': + //nobreak; + //商户申请分账未通过 + case 'APPLYMENTS_FAIL': + self::create()->send($id['phone'], $tempId, ['mer_name' => $id['mer_name']]); + break; + //付费会员支付成功 + case 'SVIP_PAY_SUCCESS': + self::create()->send($id['phone'], $tempId, ['store_name' => systemConfig('site_name'),'date' => $id['date']]); + break; } } + public static function sendMerMessage($merId, string $tempId, array $data) { $noticeServiceInfo = app()->make(StoreServiceRepository::class)->getNoticeServiceInfo($merId); diff --git a/crmeb/services/WechatService.php b/crmeb/services/WechatService.php index 47183abe..273c7ab7 100644 --- a/crmeb/services/WechatService.php +++ b/crmeb/services/WechatService.php @@ -74,6 +74,7 @@ class WechatService $this->application->register(new \crmeb\services\easywechat\certficates\ServiceProvider()); $this->application->register(new \crmeb\services\easywechat\merchant\ServiceProvider); $this->application->register(new \crmeb\services\easywechat\combinePay\ServiceProvider); + $this->application->register(new \crmeb\services\easywechat\storePay\ServiceProvider); } /** @@ -192,8 +193,9 @@ class WechatService $ticket = $message->EventKey; if (strpos($ticket, '_sys_scan_login.') === 0) { $key = str_replace('_sys_scan_login.', '', $ticket); - if(Cache::has('_scan_login' . $key)) + if(Cache::has('_scan_login' . $key)){ Cache::set('_scan_login' . $key, $users[1]['uid']); + } } }; @@ -713,6 +715,11 @@ class WechatService return $this->application->qrcode; } + public function storePay() + { + return $this->application->storePay; + } + public function merchantPay($data) { $ret = [ diff --git a/crmeb/services/WechatTemplateMessageService.php b/crmeb/services/WechatTemplateMessageService.php index 14e7402c..97f8eb0c 100644 --- a/crmeb/services/WechatTemplateMessageService.php +++ b/crmeb/services/WechatTemplateMessageService.php @@ -47,23 +47,19 @@ class WechatTemplateMessageService public function sendTemplate(array $data) { event('wechat.template.before',compact('data')); - $res = $this->templateMessage($data['tempCode'],$data['id'], $data['data'] ?? []); + $res = $this->templateMessage($data); if(!$res || !is_array($res)) return true; foreach($res as $item){ if(is_array($item['uid'])){ foreach ($item['uid'] as $value){ $openid = $this->getUserOpenID($value['uid']); - if (!$openid) { - continue; - } + if (!$openid) continue; $this->send($openid,$item['tempCode'],$item['data'],'wechat',$item['link'],$item['color']); } }else{ $openid = $this->getUserOpenID($item['uid']); - if (!$openid) { - continue; - } + if (!$openid) continue; $this->send($openid,$item['tempCode'],$item['data'],'wechat',$item['link'],$item['color']); } } @@ -138,14 +134,10 @@ class WechatTemplateMessageService */ public function send($openid,$tempCode,$data,$type,$link,$color) { - try{ - $template = new Template($type); - $template->to($openid)->color($color); - if ($link) $template->url($link); - return $template->send($tempCode, $data); - } catch (\Exception $e) { - return false; - } + $template = new Template($type); + $template->to($openid)->color($color); + if ($link) $template->url($link); + return $template->send($tempCode, $data); } /** @@ -156,17 +148,27 @@ class WechatTemplateMessageService * @author Qinii * @day 2020-07-01 */ - public function templateMessage(string $tempCode, $id, $params = []) + public function templateMessage($params) { - $bill_make = app()->make(UserBillRepository::class); + $data = []; + $id = $params['id']; + $tempId = $params['tempId']; + $params = $params['params'] ?? []; + $bill_make = app()->make(UserBillRepository::class); $order_make = app()->make(StoreOrderRepository::class); $refund_make = app()->make(StoreRefundOrderRepository::class); - $order_status_make = app()->make(StoreOrderStatusRepository::class); - $notice_make = app()->make(SystemNoticeConfigRepository::class); - switch ($tempCode) + $stie_url = rtrim(systemConfig('site_url'), '/'); + switch ($tempId) { - case 'ORDER_CREATE': //订单生成通知 - if (!$notice_make->getNoticeWechat('order_success')) return false; + //订单生成通知 2.1 + case 'ORDER_CREATE': + /* + {{first.DATA}} + 时间:{{keyword1.DATA}} + 商品名称:{{keyword2.DATA}} + 订单号:{{keyword3.DATA}} + {{remark.DATA}} + */ $res = $order_make->selectWhere(['group_order_id' => $id]); if(!$res) return false; foreach ($res as $item){ @@ -181,53 +183,80 @@ class WechatTemplateMessageService 'keyword3' => $item->order_sn, 'remark' => '查看详情' ], - 'link' => rtrim(systemConfig('site_url'), '/') . '/pages/admin/orderList/index?types=1&merId=' . $item->mer_id, + 'link' => $stie_url. '/pages/admin/orderList/index?types=1&merId=' . $item->mer_id, 'color' => null ]; } break; - case 'ORDER_PAY_SUCCESS': //支付成功 - if ($notice_make->getNoticeWechat('pay_status')) { - $group_order = app()->make(StoreGroupOrderRepository::class)->get($id); - if(!$group_order) return false; + //支付成功 2.1 + case 'ORDER_PAY_SUCCESS': + /* + {{first.DATA}} + 订单商品:{{keyword1.DATA}} + 订单编号:{{keyword2.DATA}} + 支付金额:{{keyword3.DATA}} + 支付时间:{{keyword4.DATA}} + {{remark.DATA}} + */ + $group_order = app()->make(StoreGroupOrderRepository::class)->get($id); + if(!$group_order) return false; + $data[] = [ + 'tempCode' => 'ORDER_PAY_SUCCESS', + 'uid' => $group_order->uid, + 'data' => [ + 'first' => '您的订单已支付', + 'keyword1' => $group_order->orderList[0]->orderProduct[0]['cart_info']['product']['store_name'], + 'keyword2' => $group_order->group_order_sn, + 'keyword3' => $group_order->pay_price, + 'keyword4' => $group_order->pay_time, + 'remark' => '我们会尽快发货,请耐心等待' + ], + 'link' => $stie_url . '/pages/users/order_list/index?status=1', + 'color' => null + ]; + break; + //管理员支付成功提醒 2.1 + case 'ADMIN_PAY_SUCCESS_CODE': + /* + {{first.DATA}} + 订单商品:{{keyword1.DATA}} + 订单编号:{{keyword2.DATA}} + 支付金额:{{keyword3.DATA}} + 支付时间:{{keyword4.DATA}} + {{remark.DATA}} + */ + $res = $order_make->selectWhere(['group_order_id' => $id]); + if (!$res) return false; + foreach ($res as $item) { $data[] = [ - 'tempCode' => 'ORDER_PAY_SUCCESS', - 'uid' => $group_order->uid, + 'tempCode' => 'ADMIN_PAY_SUCCESS_CODE', + 'uid' => app()->make(StoreServiceRepository::class)->getNoticeServiceInfo($item->mer_id), 'data' => [ - 'first' => '您的订单已支付', - 'keyword1' => $group_order->group_order_sn, - 'keyword2' => $group_order->pay_price, - 'remark' => '我们会尽快发货,请耐心等待' + 'first' => '您有新的支付订单请注意查看。', + 'keyword1' => mb_substr($item->orderProduct[0]->cart_info['product']['store_name'],0,15), + 'keyword2' => $item->order_sn, + 'keyword3' => $item->pay_price, + 'keyword4' => $item->pay_time, + 'remark' => '请尽快发货。' ], - 'link' => rtrim(systemConfig('site_url'), '/') . '/pages/users/order_list/index?status=1', + 'link' => $stie_url . '/pages/admin/orderList/index?types=2&merId=' . $item->mer_id, 'color' => null ]; } - if ($notice_make->getNoticeWechat('admin_pay_status')) { - $res = $order_make->selectWhere(['group_order_id' => $id]); - if (!$res) return false; - foreach ($res as $item) { - $data[] = [ - 'tempCode' => 'ORDER_PAY_SUCCESS', - 'uid' => app()->make(StoreServiceRepository::class)->getNoticeServiceInfo($item->mer_id), - 'data' => [ - 'first' => '您有新的支付订单请注意查看。', - 'keyword1' => $item->order_sn, - 'keyword2' => $item->pay_price, - 'remark' => '请尽快发货。' - ], - 'link' => rtrim(systemConfig('site_url'), '/') . '/pages/admin/orderList/index?types=2&merId=' . $item->mer_id, - 'color' => null - ]; - } - } break; - case 'ORDER_POSTAGE_SUCCESS'://订单发货提醒(快递) - if (!$notice_make->getNoticeWechat('fahuo_status')) return false; + //订单发货提醒 2.1 + case 'DELIVER_GOODS_CODE': + /* + {{first.DATA}} + 订单编号:{{keyword1.DATA}} + 物流公司:{{keyword2.DATA}} + 物流单号:{{keyword3.DATA}} + {{remark.DATA}} + */ $res = $order_make->get($id); if(!$res) return false; $data[] = [ - 'tempCode' => 'ORDER_POSTAGE_SUCCESS', + 'tempCode' => 'DELIVER_GOODS_CODE', 'uid' => $res->uid , 'data' => [ 'first' => '亲,宝贝已经启程了,好想快点来到你身边', @@ -236,169 +265,201 @@ class WechatTemplateMessageService 'keyword3' => $res['delivery_id'], 'remark' => '请耐心等待收货哦。' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/order_details/index?order_id='.$id, + 'link' => $stie_url .'/pages/order_details/index?order_id='.$id, 'color' => null ]; break; - case 'ORDER_DELIVER_SUCCESS'://订单发货提醒(送货) - if (!$notice_make->getNoticeWechat('fahuo_status')) return false; - $res = $order_make->getWith($id,'orderProduct'); + //订单配送提醒 2.1 + case 'ORDER_DELIVER_SUCCESS': + /* + {{first.DATA}} + 订单编号:{{keyword1.DATA}} + 订单金额:{{keyword2.DATA}} + 配送员:{{keyword3.DATA}} + 联系电话:{{keyword4.DATA}} + {{remark.DATA}} + */ + $res = $order_make->get($id); if(!$res) return false; $data[] = [ 'tempCode' => 'ORDER_DELIVER_SUCCESS', 'uid' => $res->uid , 'data' => [ 'first' => '亲,宝贝已经启程了,好想快点来到你身边', - 'keyword1' => '「'.$res['orderProduct'][0]['cart_info']['product']['store_name'].'」等', - 'keyword2' => $res['create_time'], - 'keyword3' => $res['user_address'], - 'keyword4' => $res['delivery_name'], - 'keyword5' => $res['delivery_id'], + 'keyword1' => $res['order_sn'], + 'keyword2' => $res['pay_prices'], + 'keyword3' => $res['delivery_name'], + 'keyword4' => $res['delivery_id'], 'remark' => '请耐心等待收货哦。' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/order_details/index?order_id='.$id, + 'link' => $stie_url .'/pages/order_details/index?order_id='.$id, 'color' => null ]; break; - - case 'ORDER_TAKE_SUCCESS': //订单收货通知 - if (!$notice_make->getNoticeWechat('take_status')) return false; - $res = $order_make->getWith($id,'orderProduct'); + //确认收货提醒 2.1 + case 'ORDER_TAKE_SUCCESS': + /* + {{first.DATA}} + 订单编号:{{keyword1.DATA}} + 订单金额:{{keyword2.DATA}} + 收货时间:{{keyword3.DATA}} + {{remark.DATA}} + */ + $res = $order_make->get($id); if(!$res) return false; - $status = $order_status_make->getWhere(['order_id' => $id,'change_type' => 'take']); $data[] = [ 'tempCode' => 'ORDER_TAKE_SUCCESS', 'uid' => $res->uid, 'data' => [ 'first' => '亲,宝贝已经签收', 'keyword1' => $res['order_sn'], - 'keyword2' => '已收货', - 'keyword3' => $status['change_time'], - 'keyword4' => '「'.$res['orderProduct'][0]['cart_info']['product']['store_name'].'」等', + 'keyword2' => $res['pay_price'], + 'keyword3' => $res['orderStatus'][0]['change_time'], 'remark' => '请确认。' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/order_details/index?order_id='.$id, + 'link' => $stie_url .'/pages/order_details/index?order_id='.$id, 'color' => null ]; break; - case 'USER_BALANCE_CHANGE'://帐户资金变动提醒 - if (!$notice_make->getNoticeWechat('user_bill_change')) return false; - $res = $bill_make->get($id); + case 'ADMIN_TAKE_DELIVERY_CODE': + /* + {{first.DATA}} + 订单编号:{{keyword1.DATA}} + 订单金额:{{keyword2.DATA}} + 收货时间:{{keyword3.DATA}} + {{remark.DATA}} + */ + $res = $order_make->get($id); if(!$res) return false; $data[] = [ - 'tempCode' => 'USER_BALANCE_CHANGE', - 'uid' => $res->uid, + 'tempCode' => 'ORDER_TAKE_SUCCESS', + 'uid' => app()->make(StoreServiceRepository::class)->getNoticeServiceInfo($res->mer_id), 'data' => [ - 'first' => '资金变动提醒', - 'keyword1' => '账户余额变动', - 'keyword2' => $res['create_time'], - 'keyword3' => $res['number'], - 'remark' => '请确认' + 'first' => '亲,宝贝已经签收', + 'keyword1' => $res['order_sn'], + 'keyword2' => $res['pay_price'], + 'keyword3' => $res['orderStatus'][0]['change_time'], + 'remark' => '商品:【'.mb_substr($res['orderProduct'][0]['product']['store_name'],0,15). '】等' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/users/user_money/index', + 'link' => $stie_url .'/pages/order_details/index?order_id='.$id, 'color' => null ]; break; - case 'ORDER_REFUND_STATUS'://退款申请通知 - if (!$notice_make->getNoticeWechat('refund_order_create')) return false; + //退款申请通知 2.1 + case 'ADMIN_RETURN_GOODS_CODE': + /* + {{first.DATA}} + 退款单号:{{keyword1.DATA}} + 退款原因:{{keyword2.DATA}} + 退款金额:{{keyword3.DATA}} + 申请时间:{{keyword4.DATA}} + {{remark.DATA}} + */ $res = $refund_make->get($id); if(!$res) return false; $data[] = [ - 'tempCode' => 'ORDER_REFUND_STATUS', + 'tempCode' => 'ADMIN_RETURN_GOODS_CODE', 'uid' => app()->make(StoreServiceRepository::class)->getNoticeServiceInfo($res->mer_id), 'data' => [ 'first' => '您有新的退款申请', 'keyword1' => $res['refund_order_sn'], - 'keyword2' => $res['refund_price'], - 'keyword3' => $res['refund_message'], + 'keyword2' => $res['refund_message'], + 'keyword3' => $res['refund_price'], + 'keyword4' => $res['create_time'], 'remark' => '请及时处理' ], 'link' => null, 'color' => null ]; break; - case 'ORDER_REFUND_END'://退货确认提醒 - if (!$notice_make->getNoticeWechat('refund_confirm_status')) return false; - $res = $refund_make->getWith($id,['order']); - if(!$res) return false; - $order = $order_make->getWith($res['order_id'],'orderProduct'); - $data[] = [ - 'tempCode' => 'ORDER_REFUND_END', - 'uid' => $res->uid, - 'data' => [ - 'first' => '亲,您有一个订单已退款', - 'keyword1' => $res['refund_order_sn'], - 'keyword2' => $res['order']['order_sn'], - 'keyword3' => $res['refund_price'], - 'keyword4' => '「'.$order['orderProduct'][0]['cart_info']['product']['store_name'].'」等', - 'remark' => $order['activity_type'] == 4 ? '拼团失败,系统自动退款' : '请查看详情' - ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/users/refund/detail?id='.$id, - 'color' => null - ]; - break; - case 'ORDER_REFUND_NOTICE'://退款进度提醒 - $status = [-1=>'审核未通过' ,1 => '商家已同意退货,请尽快将商品退回,并填写快递单号',]; - $res = $refund_make->getWith($id,['order']); - if(!$res || !in_array($res['status'],[-1,1])) return false; - if ($res['status'] == 1 && !$notice_make->getNoticeWechat('refund_success_status')) return false; - if ($res['status'] == -1 && !$notice_make->getNoticeWechat('refund_fail_status')) return false; - $order = $order_make->getWith($res['order_id'],'orderProduct'); - $data[] = [ - 'tempCode' => 'ORDER_REFUND_NOTICE', + //商户同意退款 2.1 + case 'REFUND_SUCCESS_CODE': + /* + {{first.DATA}} + 退款申请单号:{{keyword1.DATA}} + 退款进度:{{keyword2.DATA}} + 时间:{{keyword3.DATA}} + {{remark.DATA}} + */ + $res = $refund_make->get($id); + if(!$res || $res['status'] != 1) return false; + $data = [ + 'tempCode' => 'REFUND_SUCCESS_CODE', 'uid' => $res->uid, 'data' => [ 'first' => '退款进度提醒', 'keyword1' => $res['refund_order_sn'], - 'keyword2' => $status[$res['status']], - 'keyword3' => '「'.$order['orderProduct'][0]['cart_info']['product']['store_name'].'」等', - 'keyword4' => $res['refund_price'], + 'keyword2' => '商家已同意退货,请尽快将商品退回,并填写快递单号', + 'keyword3' => $res->status_time, 'remark' => '' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/users/refund/detail?id='.$id, + 'link' => $stie_url .'/pages/users/refund/detail?id='.$id, 'color' => null ]; break; - case 'GROUP_BUYING_SUCCESS': + //商户拒绝退款 2.1 + case 'REFUND_FAIL_CODE': /* - {{first.DATA}} - 商品名称:{{keyword1.DATA}} - 订单号:{{keyword2.DATA}} - 支付金额:{{keyword3.DATA}} - 支付时间:{{keyword4.DATA}} + {{first.DATA}} + 退款申请单号:{{keyword1.DATA}} + 退款进度:{{keyword2.DATA}} + 时间:{{keyword3.DATA}} {{remark.DATA}} */ - if (!$notice_make->getNoticeWechat('group_buying_success')) return false; - $res = app()->make(ProductGroupBuyingRepository::class)->get($id); - if(!$res) return false; - $buying_make = app()->make(ProductGroupUserRepository::class); - $ret = $buying_make->getSearch(['group_buying_id' => $id])->where('uid','>',0)->select(); - foreach ($ret as $item){ - $data[] = [ - 'tempCode' => 'GROUP_BUYING_SUCCESS', - 'uid' => $item->uid, - 'data' => [ - 'first' => '恭喜您拼团成功!', - 'keyword1' => '「'.$res->productGroup->product['store_name'].'」', - 'keyword2' => $item->orderInfo['order_sn'], - 'keyword3' => $item->orderInfo['pay_price'], - 'keyword4' => $item->orderInfo['pay_time'], - 'remark' => '' - ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/order_details/index?order_id='.$item['order_id'], - 'color' => null - ]; - } + $res = $refund_make->get($id); + if(!$res || $res['status'] != -1) return false; + $data = [ + 'tempCode' => 'REFUND_FAIL_CODE', + 'uid' => $res->uid, + 'data' => [ + 'first' => '退款进度提醒', + 'keyword1' => $res['refund_order_sn'], + 'keyword2' => '商家已拒绝退款,如有疑问请联系商户', + 'keyword3' => $res->status_time, + 'remark' => '' + ], + 'link' => $stie_url.'/pages/users/refund/detail?id='.$id, + 'color' => null + ]; break; - case'PRODUCT_INCREASE': + //退款成功通知 2.1 + case 'REFUND_CONFORM_CODE': /* - {{first.DATA}} - 预订商品:{{keyword1.DATA}} - 到货数量:{{keyword2.DATA}} - 到货时间:{{keyword3.DATA}} - {{remark.DATA}} + {{first.DATA}} + 订单号:{{keyword1.DATA}} + 下单日期:{{keyword2.DATA}} + 商品名称:{{keyword3.DATA}} + 退款金额:{{keyword4.DATA}} + 退货原因:{{keyword5.DATA}} + {{remark.DATA}} + */ + $res = $refund_make->get($id); + if(!$res || $res['status'] != 3) return false; + $data = [ + 'tempCode' => 'REFUND_CONFORM_CODE', + 'uid' => $res->uid, + 'data' => [ + 'first' => '亲,您有一个订单已退款', + 'keyword1' => $res['refund_order_sn'], + 'keyword2' => $res['order']['create_time'], + 'keyword3' => '「'.mb_substr($res['refundProduct'][0]['product']['cart_info']['product']['store_name'],0,15).'」等', + 'keyword4' => $res['refund_price'], + 'keyword5' => $res['refund_message'], + 'remark' => '请查看详情' + ], + 'link' => $stie_url.'/pages/users/refund/detail?id='.$id, + 'color' => null + ]; + break; + //到货通知 2.1 + case 'PRODUCT_INCREASE': + /* + {{first.DATA}} + 商品名称:{{keyword1.DATA}} + 到货地点:{{keyword2.DATA}} + 到货时间:{{keyword3.DATA}} + {{remark.DATA} */ - if (!$notice_make->getNoticeWechat('prodcut_increase_status')) return false; $make = app()->make(ProductTakeRepository::class); $product = app()->make(ProductRepository::class)->getWhere(['product_id' => $id],'*',['attrValue']); if(!$product) return false; @@ -408,55 +469,111 @@ class WechatTemplateMessageService $unique[] = $item['unique']; } } - $query = $make->getSearch(['product_id' => $id,'status' =>0,'type' => 2])->where('unique','in',$unique); - $uid = $query->column('uid,product_id'); - if(!$uid) return false; - $tak_id = $query->column('product_take_id'); - app()->make(ProductTakeRepository::class)->updates($tak_id,['status' => 1]); - + $res = $make->getSearch(['product_id' => $id,'status' =>0,'type' => 2])->where('unique','in',$unique)->column('uid,product_id,product_take_id'); + $uids = array_unique(array_column($res,'uid')); + if (!$uids) return false; + $takeId = array_column($res,'product_take_id'); + foreach ($uids as $uid) { + $data[] = [ + 'tempCode' => 'PRODUCT_INCREASE', + 'uid' => $uid, + 'data' => [ + 'first' => '亲,你想要的商品已到货,可以购买啦~', + 'keyword1' => '「'.$product->store_name.'」', + 'keyword2' => $product->merchant->mer_name, + 'keyword3' => date('Y-m-d H:i:s',time()), + 'remark' => '到货商品:【'.mb_substr($product['store_name'],0,15).'】等,点击查看' + ], + 'link' => $stie_url.'/pages/goods_details/index?id='.$id, + 'color' => null + ]; + } + $make->updates($takeId,['status' => 1]); + break; + //余额变动 2.1 + case 'USER_BALANCE_CHANGE': + /* + {{first.DATA}} + 用户名:{{keyword1.DATA}} + 变动时间:{{keyword2.DATA}} + 变动金额:{{keyword3.DATA}} + 可用余额:{{keyword4.DATA}} + 变动原因:{{keyword5.DATA}} + {{remark.DATA}} + */ + $res = $bill_make->get($id); + if(!$res) return false; $data[] = [ - 'tempCode' => 'PRODUCT_INCREASE', - 'uid' => $uid, + 'tempCode' => 'USER_BALANCE_CHANGE', + 'uid' => $res->uid, 'data' => [ - 'first' => '亲,你想要的商品已到货,可以购买啦~', - 'keyword1' => '「'.$product->store_name.'」', - 'keyword2' => $product->stock, - 'keyword3' => date('Y-m-d H:i:s',time()), - 'remark' => '' + 'first' => '资金变动提醒', + 'keyword1' => $res->user->nickname, + 'keyword2' => $res['create_time'], + 'keyword3' => $res['number'], + 'keyword4' => $res['balance'], + 'keyword5' => $res['title'], + 'remark' => '请确认' ], - 'link' => rtrim(systemConfig('site_url'),'/').'/pages/goods_details/index?id='.$id, + 'link' => $stie_url.'/pages/users/user_money/index', 'color' => null ]; break; + //拼团成功 2.1 + case 'GROUP_BUYING_SUCCESS': + /* + {{first.DATA}} + 订单编号:{{keyword1.DATA}} + 订单信息:{{keyword2.DATA}} + 注意信息:{{keyword3.DATA}} + {{remark.DATA}} + */ + $res = app()->make(ProductGroupBuyingRepository::class)->get($id); + if(!$res) return false; + $ret = app()->make(ProductGroupUserRepository::class)->getSearch(['group_buying_id' => $id])->where('uid','>',0)->select(); + foreach ($ret as $item){ + $data[] = [ + 'tempCode' => 'GROUP_BUYING_SUCCESS', + 'uid' => $item->uid, + 'data' => [ + 'first' => '恭喜您拼团成功!', + 'keyword1' => $item->orderInfo['order_sn'], + 'keyword2' => '「'.mb_substr($res->productGroup->product['store_name'],0,15).'」', + 'keyword3' => '无', + 'remark' => '' + ], + 'link' => $stie_url.'/pages/order_details/index?order_id='.$item['order_id'], + 'color' => null + ]; + } + break; + //客服消息 2.1 case'SERVER_NOTICE': /* {{first.DATA}} - 访客姓名:{{keyword1.DATA}} - 联系方式:{{keyword2.DATA}} - 项目名称:{{keyword3.DATA}} + 回复时间:{{keyword1.DATA}} + 回复内容:{{keyword2.DATA}} {{remark.DATA}} */ - if (!$notice_make->getNoticeWechat('server_notice')) return false; + $first = '【平台】'; if ($params['mer_id']) { $mer = app()->make(MerchantRepository::class)->get($params['mer_id']); + $first = '【' . $mer['mer_name'] . '】'; } - $data[] = [ 'tempCode' => 'SERVER_NOTICE', 'uid' => $id, 'data' => [ - 'first' => '亲,您有新的消息请注意查看~', + 'first' => $first .'亲,您有新的消息请注意查看~', 'keyword1' => $params['keyword1'], - 'keyword2' => $mer['mer_name'] ?? systemConfig('site_name').'【平台】', - 'keyword3' => $params['keyword3'], + 'keyword2' => $params['keyword2'], 'remark' => '' ], - 'link' => $params['url'], + 'link' => $stie_url.$params['url'], 'color' => null ]; break; default: - return false; break; } return $data; @@ -470,18 +587,20 @@ class WechatTemplateMessageService * @author Qinii * @day 2020-07-01 */ - public function subscribeTemplateMessage(string $tempCode, $id) + public function subscribeTemplateMessage($params) { + $data = []; + $id = $params['id']; + $tempId = $params['tempId']; $user_make = app()->make(UserRechargeRepository::class); $order_make = app()->make(StoreOrderRepository::class); $refund_make = app()->make(StoreRefundOrderRepository::class); $order_group_make = app()->make(StoreGroupOrderRepository::class); $extract_make = app()->make(UserExtractRepository::class); - $notice_make = app()->make(SystemNoticeConfigRepository::class); - switch($tempCode) + switch($tempId) { - case 'ORDER_PAY_SUCCESS': //订单支付成功 - if(!$notice_make->getNoticeRoutine('pay_status')) return false; + //订单支付成功 + case 'ORDER_PAY_SUCCESS': $res = $order_group_make->get($id); if(!$res) return false; $data[] = [ @@ -497,26 +616,8 @@ class WechatTemplateMessageService 'color' => null ]; break; - case 'ORDER_DELIVER_SUCCESS': //订单发货提醒(送货) - if(!$notice_make->getNoticeRoutine('fahuo_status')) return false; - $res = $order_make->getWith($id,'orderProduct'); - if(!$res) return false; - $name = mb_substr($res['orderProduct'][0]['cart_info']['product']['store_name'],0,10); - $data[] = [ - 'tempCode' => 'ORDER_DELIVER_SUCCESS', - 'uid' => $res->uid, - 'data' => [ - 'thing8' => '「'.$name.'」等', - 'character_string1' => $res->order_sn, - 'name4' => $res->delivery_name, - 'phone_number10' => $res->delivery_id, - ], - 'link' => 'pages/order_details/index?order_id='.$id, - 'color' => null - ]; - break; - case 'ORDER_POSTAGE_SUCCESS': //订单发货提醒(快递) - if(!$notice_make->getNoticeRoutine('fahuo_status')) return false; + //订单发货提醒(快递) + case 'DELIVER_GOODS_CODE': $res = $order_make->getWith($id,'orderProduct'); if(!$res) return false; $name = mb_substr($res['orderProduct'][0]['cart_info']['product']['store_name'],0,10); @@ -541,20 +642,34 @@ class WechatTemplateMessageService 'color' => null ]; break; - case 'ORDER_REFUND_NOTICE': //退款通知 - $status = [-1=>'审核未通过' ,1 => '商家已同意退货,请尽快将商品退回',3 => '退款成功']; - $res = $refund_make->getWith($id,['order']); - if(!$res || !in_array($res['status'],[-1,1,3])) return false; - if($res['status'] == -1 && !$notice_make->getNoticeRoutine('refund_fail_status')) return false; - if($res['status'] == 1 && !$notice_make->getNoticeRoutine('refund_success_status')) return false; - if($res['status'] == 3 && !$notice_make->getNoticeRoutine('refund_confirm_status')) return false; - $order = $order_make->getWith($res['order_id'],'orderProduct'); - $name = mb_substr($order['orderProduct'][0]['cart_info']['product']['store_name'],0,10); + //订单发货提醒(送货) + case 'ORDER_DELIVER_SUCCESS': + $res = $order_make->getWith($id,'orderProduct'); + if(!$res) return false; + $name = mb_substr($res['orderProduct'][0]['cart_info']['product']['store_name'],0,10); + $data[] = [ + 'tempCode' => 'ORDER_DELIVER_SUCCESS', + 'uid' => $res->uid, + 'data' => [ + 'thing8' => '「'.$name.'」等', + 'character_string1' => $res->order_sn, + 'name4' => $res->delivery_name, + 'phone_number10' => $res->delivery_id, + ], + 'link' => 'pages/order_details/index?order_id='.$id, + 'color' => null + ]; + break; + //退款通知 + case 'REFUND_CONFORM_CODE': + $res = $refund_make->get($id); + if(!$res) return false; + $name = mb_substr($res['refundProduct'][0]['product']['cart_info']['product']['store_name'],0,10); $data[] = [ 'tempCode' => 'ORDER_REFUND_NOTICE', 'uid' => $res->uid, 'data' => [ - 'thing1' => $status[$res->status], + 'thing1' => '退款成功', 'thing2' => '「'.$name.'」等', 'character_string6' => $res->refund_order_sn, 'amount3' => $res->refund_price, @@ -564,12 +679,12 @@ class WechatTemplateMessageService 'color' => null ]; break; - case 'RECHARGE_SUCCESS': //充值成功 - if(!$notice_make->getNoticeRoutine('user_bill_change')) return false; + //资金变动 + case 'USER_BALANCE_CHANGE': $res = $user_make->get($id); if(!$res) return false; $data[] = [ - 'tempCode' => 'RECHARGE_SUCCESS', + 'tempCode' => 'USER_BALANCE_CHANGE', 'uid' => $res->uid, 'data' => [ 'character_string1' => $res->order_id, @@ -581,8 +696,8 @@ class WechatTemplateMessageService 'color' => null ]; break; - case 'USER_EXTRACT': //提现结果通知 - if(!$notice_make->getNoticeRoutine('user_extract_status')) return false; + //提现结果通知 + case 'EXTRACT_NOTICE': $res = $extract_make->get($id); if(!$res) return false; $data[] = [ @@ -598,13 +713,13 @@ class WechatTemplateMessageService 'color' => null ]; break; + //到货通知 case'PRODUCT_INCREASE': /* 商品名称 {{thing1.DATA}} 商品价格:{{amount5.DATA}} 温馨提示:{{thing2.DATA}} */ - if(!$notice_make->getNoticeRoutine('prodcut_increase_status')) return false; $make = app()->make(ProductTakeRepository::class); $product = app()->make(ProductRepository::class)->getWhere(['product_id' => $id],'*',['attrValue']); if(!$product) return false; @@ -614,22 +729,24 @@ class WechatTemplateMessageService $unique[] = $item['unique']; } } - $query = $make->getSearch(['product_id' => $id,'status' =>0,'type' => 3])->where('unique','in',$unique); - $uid = $query->column('uid'); - if(!$uid) return false; - $tak_id = $query->column('product_take_id'); - app()->make(ProductTakeRepository::class)->updates($tak_id,['status' => 1]); - $data[] = [ - 'tempCode' => 'PRODUCT_INCREASE', - 'uid' => $uid, - 'data' => [ - 'thing1' => '「'.mb_substr($product->store_name,0,10) .'」', - 'amount5' => $product->price, - 'thing2' => '亲!你想要的商品已到货,可以购买啦~', - ], - 'link' => 'pages/goods_details/index?id='.$id, - 'color' => null - ]; + $res = $make->getSearch(['product_id' => $id,'status' =>0,'type' => 3])->where('unique','in',$unique)->column('uid,product_id,product_take_id'); + $uids = array_unique(array_column($res,'uid')); + if (!$uids) return false; + $takeId = array_column($res,'product_take_id'); + foreach ($uids as $uid) { + $data[] = [ + 'tempCode' => 'PRODUCT_INCREASE', + 'uid' => $uid, + 'data' => [ + 'thing1' => '「'.mb_substr($product->store_name,0,10) .'」', + 'amount5' => $product->price, + 'thing2' => '亲!你想要的商品已到货,可以购买啦~', + ], + 'link' => 'pages/goods_details/index?id='.$id, + 'color' => null + ]; + } + if ($takeId) $make->updates($takeId,['status' => 1]); break; default: return false; diff --git a/crmeb/services/easywechat/storePay/Client.php b/crmeb/services/easywechat/storePay/Client.php new file mode 100644 index 00000000..be99b028 --- /dev/null +++ b/crmeb/services/easywechat/storePay/Client.php @@ -0,0 +1,59 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace crmeb\services\easywechat\storePay; + +use crmeb\services\easywechat\BaseClient; +use EasyWeChat\Core\AbstractAPI; +use EasyWeChat\Core\AccessToken; +use EasyWeChat\Core\Exceptions\HttpException; +use EasyWeChat\Core\Http; +use EasyWeChat\Payment\API; +use EasyWeChat\Payment\Merchant; +use GuzzleHttp\HandlerStack; +use think\Exception; +use EasyWeChat\Support\XML; +use EasyWeChat\Support\Collection; +use Psr\Http\Message\ResponseInterface; +use think\exception\ValidateException; + +/** + * Class Client. + * + * @author ClouderSky + */ +class Client extends BaseClient +{ + const API = 'https://api.mch.weixin.qq.com'; + + public function transferBatches(array $data) + { + $api = '/v3/transfer/batches'; + $params = [ + "appid" => $this->app['config']['app_id'], + "out_batch_no" => "plfk2020042013", + "batch_name" => "分销明细", + "batch_remark" => "分销明细", + "total_amount" => 100, + "total_num" => 1, + "transfer_detail_list" => [ + [ + "openid" => "oOdvCvjvCG0FnCwcMdDD_xIODRO0", + "out_detail_no" => "x23zy545Bd5436", + "transfer_amount" => 100, + "transfer_remark" => "分销明细", + ] + ], + ]; + $res = $this->request($api, 'POST', ['sign_body' => json_encode($params, JSON_UNESCAPED_UNICODE)], true); + } + +} diff --git a/crmeb/services/easywechat/storePay/ServiceProvider.php b/crmeb/services/easywechat/storePay/ServiceProvider.php new file mode 100644 index 00000000..938d8fd2 --- /dev/null +++ b/crmeb/services/easywechat/storePay/ServiceProvider.php @@ -0,0 +1,33 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace crmeb\services\easywechat\storePay; + +use Pimple\Container; +use Pimple\ServiceProviderInterface; + +/** + * Class ServiceProvider. + * + * @author ClouderSky + */ +class ServiceProvider implements ServiceProviderInterface +{ + /** + * {@inheritdoc}. + */ + public function register(Container $pimple) + { + $pimple['storePay'] = function ($pimple) { + return new Client($pimple['access_token'], $pimple); + }; + } +} diff --git a/crmeb/services/printer/storage/YiLianYun.php b/crmeb/services/printer/storage/YiLianYun.php index b6b35104..da9eaa30 100644 --- a/crmeb/services/printer/storage/YiLianYun.php +++ b/crmeb/services/printer/storage/YiLianYun.php @@ -89,9 +89,11 @@ class YiLianYun extends PrinterService $goodsStr .= ''; $orderInfo = $config['orderInfo']; $name = $config['name']; + $orderType = $orderInfo['order_type'] ? "核销订单" : '普通订单'; $this->printerContent = <<
** {$name} **
---------------- +订单类型:{$orderType}\r 订单编号:{$orderInfo['order_sn']}\r 打印时间: {$timeYmd} \r 付款时间: {$orderInfo['pay_time']}\r diff --git a/crmeb/services/sms/storage/Yunxin.php b/crmeb/services/sms/storage/Yunxin.php index 3235f317..5b08e7c5 100644 --- a/crmeb/services/sms/storage/Yunxin.php +++ b/crmeb/services/sms/storage/Yunxin.php @@ -12,6 +12,7 @@ namespace crmeb\services\sms\storage; use app\common\dao\system\sms\SmsRecordDao; +use app\common\repositories\system\notice\SystemNoticeConfigRepository; use crmeb\exceptions\SmsException; use crmeb\services\BaseSmss; use think\exception\ValidateException; @@ -99,7 +100,9 @@ class Yunxin extends BaseSmss */ protected function getTemplateCode(string $templateId) { - return $this->templateIds[$templateId] ?? null; + $temp = app()->make(SystemNoticeConfigRepository::class)->getSmsTemplate($templateId); + if (!$temp) throw new ValidateException('模板不存在:'. $templateId); + return $temp; } /** diff --git a/crmeb/services/template/storage/Subscribe.php b/crmeb/services/template/storage/Subscribe.php index ad362beb..44762a18 100644 --- a/crmeb/services/template/storage/Subscribe.php +++ b/crmeb/services/template/storage/Subscribe.php @@ -12,6 +12,7 @@ namespace crmeb\services\template\storage; +use app\common\repositories\system\notice\SystemNoticeConfigRepository; use app\common\repositories\wechat\TemplateMessageRepository; use crmeb\basic\BaseMessage; use crmeb\services\MiniProgramService; @@ -36,7 +37,8 @@ class Subscribe extends BaseMessage */ public function getTempId(string $templateId) { - return app()->make(TemplateMessageRepository::class)->getTempId($templateId, 0); + $tempkey = app()->make(SystemNoticeConfigRepository::class)->getSearch(['const_key' => $templateId])->with(['routineTemplate'])->find(); + return $tempkey['routineTemplate']['tempid']; } /** @@ -47,17 +49,15 @@ class Subscribe extends BaseMessage */ public function send(string $templateId, array $data = []) { - $templateId = $this->getTemplateCode($templateId); - if (!$templateId) { - return ; //$this->setError('Template number does not exist'); - } +// $templateId = $this->getTemplateCode($templateId); +// if (!$templateId) { +// return ; //$this->setError('Template number does not exist'); +// } $tempid = $this->getTempId($templateId); - if (!$tempid) { + if (!$tempid || !$this->openId) { return ; //$this->setError('Template ID does not exist'); } - if (!$this->openId) { - return ; //$this->setError('Openid does not exist'); - } + try { $res = MiniProgramService::create()->sendSubscribeTemlate($this->openId, $tempid, $data, $this->toUrl); $this->clear(); diff --git a/crmeb/services/template/storage/Wechat.php b/crmeb/services/template/storage/Wechat.php index 4bd7ce52..877675b6 100644 --- a/crmeb/services/template/storage/Wechat.php +++ b/crmeb/services/template/storage/Wechat.php @@ -12,6 +12,7 @@ namespace crmeb\services\template\storage; +use app\common\repositories\system\notice\SystemNoticeConfigRepository; use app\common\repositories\wechat\TemplateMessageRepository; use crmeb\basic\BaseMessage; use crmeb\services\WechatService; @@ -45,7 +46,8 @@ class Wechat extends BaseMessage */ public function getTempId(string $templateId) { - return app()->make(TemplateMessageRepository::class)->getTempId($templateId, 1); + $tempkey = app()->make(SystemNoticeConfigRepository::class)->getSearch(['const_key' => $templateId])->with(['wechatTemplate'])->find(); + return $tempkey['wechatTemplate']['tempid']; } /** @@ -56,20 +58,17 @@ class Wechat extends BaseMessage */ public function send(string $templateId, array $data = []) { - $templateId = $this->getTemplateCode($templateId); - if (!$templateId) { - return ; - //return $this->setError('Template number does not exist'); - } +// $templateId = $this->getTemplateCode($templateId); +// if (!$templateId) { +// return ; +// //return $this->setError('Template number does not exist'); +// } $tempid = $this->getTempId($templateId); - if (!$tempid) { + if (!$tempid || !$this->openId) { return ; //return $this->setError('Template ID does not exist'); } - if (!$this->openId) { - return ; - //return $this->setError('Openid does not exist'); - } + $miniprogram = []; if ($this->miniprogram['appid']) $miniprogram = $this->miniprogram; try { diff --git a/public/index.html b/public/index.html index 48848c0d..40b781bd 100644 --- a/public/index.html +++ b/public/index.html @@ -2,4 +2,4 @@ document.write('') if(window.location.protocol == 'https:'){ document.write('') - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/public/kefu.html b/public/kefu.html index b45c76f5..fa883cb4 100644 --- a/public/kefu.html +++ b/public/kefu.html @@ -1 +1 @@ -客服系统
\ No newline at end of file +客服系统
\ No newline at end of file diff --git a/public/kefu/css/chunk-8416f510.f6b970c2.css b/public/kefu/css/chunk-8416f510.f6b970c2.css new file mode 100644 index 00000000..6c5e06ce --- /dev/null +++ b/public/kefu/css/chunk-8416f510.f6b970c2.css @@ -0,0 +1 @@ +.base-header[data-v-7409452e]{z-index:99;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:66px;padding:0 0 0 15px;background:-webkit-gradient(linear,right top,left top,from(#1890ff),to(#3875ea));background:linear-gradient(270deg,#1890ff,#3875ea);color:#fff;-ms-flex-negative:0;flex-shrink:0}.base-header .left-wrapper[data-v-7409452e],.base-header[data-v-7409452e]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;align-items:center}.base-header .left-wrapper[data-v-7409452e]{-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-align:center}.base-header .left-wrapper .search_box[data-v-7409452e]{width:295px;border-radius:17px;overflow:hidden}.base-header .left-wrapper .user_info[data-v-7409452e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:10px}.base-header .left-wrapper .user_info img[data-v-7409452e]{width:40px;height:40px;margin-right:10px;border-radius:50%}.base-header .left-wrapper .user_info span[data-v-7409452e]{font-size:16px}.base-header .left-wrapper .user_info .status-box[data-v-7409452e]{position:relative;cursor:pointer}.base-header .left-wrapper .user_info .status[data-v-7409452e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:5px 10px;margin-left:10px;background:#eaffeb;color:rgba(0,0,0,.65);border-radius:15px;font-size:14px}.base-header .left-wrapper .user_info .status .dot[data-v-7409452e]{width:6px;height:6px;margin-right:3px;border-radius:50%;background:#48d452}.base-header .left-wrapper .user_info .status.off[data-v-7409452e]{background:#f3f3f3}.base-header .left-wrapper .user_info .status.off .dot[data-v-7409452e]{background:#999}.base-header .left-wrapper .user_info .online-down[data-v-7409452e]{z-index:50;position:absolute;font-size:14px;left:0;bottom:-70px;width:86px;background:#fff;color:#333;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.08);box-shadow:0 2px 4px 0 rgba(0,0,0,.08);border-radius:5px}.base-header .left-wrapper .user_info .online-down .item[data-v-7409452e]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 10px 7px 30px;cursor:pointer}.base-header .left-wrapper .user_info .online-down .item i[data-v-7409452e]{width:10px;height:10px;margin-right:8px;border-radius:50%;background:#999}.base-header .left-wrapper .user_info .online-down .item i.green[data-v-7409452e]{background:#48d452}.base-header .left-wrapper .user_info .online-down .item .iconfont[data-v-7409452e]{position:absolute;left:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:12px}.base-header .left-wrapper .out-btn[data-v-7409452e]{position:absolute;right:30px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:86px;height:26px;line-height:28px;text-align:center;background:#fff;border-radius:16px;color:#3875ea;font-size:13px;cursor:pointer}.base-header .right-menu[data-v-7409452e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.base-header .right-menu .menu-item[data-v-7409452e]{position:relative;margin-right:30px;font-size:14px;font-weight:400;cursor:pointer}.base-header .right-menu .menu-item.on[data-v-7409452e]{font-weight:600}.base-header .right-menu .menu-item.on[data-v-7409452e]:after{position:absolute;left:0;bottom:-22px;content:"";width:100%;height:2px;background:#fff}.empty-wrapper[data-v-bf5ce538]{margin-top:60px;text-align:center;font-size:12px;color:#666}.empty-wrapper img[data-v-bf5ce538]{width:36%}.line1[data-v-8ef36ac2]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatList[data-v-8ef36ac2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:320px;border-right:1px solid #ececec}.chatList .tab-head[data-v-8ef36ac2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:50px;-ms-flex-negative:0;flex-shrink:0;font-size:14px;color:#000}.chatList .tab-head .el-input[data-v-8ef36ac2]{width:295px}.chatList .tab-head[data-v-8ef36ac2] .el-input__inner{border-radius:15px}.chatList .scroll-box[data-v-8ef36ac2]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:320px;height:500px;overflow-y:scroll}.chatList .scroll-box[data-v-8ef36ac2] .el-scrollbar__wrap{overflow-x:hidden}.chatList .scroll-box .chat-item[data-v-8ef36ac2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px 10px;height:74px;-webkit-box-sizing:border-box;box-sizing:border-box;border-left:3px solid transparent;cursor:pointer}.chatList .scroll-box .chat-item.active[data-v-8ef36ac2]{background:#eff0f1;border-left:3px solid #1890ff}.chatList .scroll-box .chat-item .avatar[data-v-8ef36ac2]{position:relative;width:40px;height:40px}.chatList .scroll-box .chat-item .avatar img[data-v-8ef36ac2]{display:block;width:100%;height:100%;border-radius:50%}.chatList .scroll-box .chat-item .avatar .status[data-v-8ef36ac2]{position:absolute;right:3px;bottom:0;width:8px;height:8px;background:#48d452;border:1px solid #fff;border-radius:50%}.chatList .scroll-box .chat-item .avatar .status.off[data-v-8ef36ac2]{background:#999}.chatList .scroll-box .chat-item .user-info[data-v-8ef36ac2]{width:155px;margin-left:12px;margin-top:5px;font-size:16px}.chatList .scroll-box .chat-item .user-info .hd[data-v-8ef36ac2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:rgba(0,0,0,.65)}.chatList .scroll-box .chat-item .user-info .hd .name[data-v-8ef36ac2]{max-width:67%}.chatList .scroll-box .chat-item .user-info .hd .label[data-v-8ef36ac2]{margin-left:5px;color:#3875ea;font-size:12px;background:#d8e5ff;border-radius:2px;padding:1px 5px}.chatList .scroll-box .chat-item .user-info .hd .label.H5[data-v-8ef36ac2]{background:#faf1d0;color:#dc9a04}.chatList .scroll-box .chat-item .user-info .hd .label.wechat[data-v-8ef36ac2]{background:rgba(64,194,73,.16);color:#40c249}.chatList .scroll-box .chat-item .user-info .hd .label.pc[data-v-8ef36ac2]{background:rgba(100,64,194,.16);color:#6440c2}.chatList .scroll-box .chat-item .user-info .bd[data-v-8ef36ac2]{margin-top:3px;font-size:12px;color:#8e959e;overflow:hidden;text-overflow:ellipsis}.chatList .scroll-box .chat-item .right-box[data-v-8ef36ac2]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:#8e959e}.chatList .scroll-box .chat-item .right-box .time[data-v-8ef36ac2]{font-size:12px}.chatList .scroll-box .chat-item .right-box .num[data-v-8ef36ac2]{margin-right:12px}.content{width:100%}.content img{max-width:100%!important;display:block}[data-v-39697127] .el-dialog{overflow-x:hidden}[data-v-39697127] .el-dialog__body{padding:0!important}[data-v-39697127] .el-dialog__header{padding:0}[data-v-39697127] .el-scrollbar__wrap{overflow-x:hidden}.title-box[data-v-39697127]{height:46px;line-height:46px;background:#fff;text-align:center;color:#333;font-size:16px}.goods_detail[data-v-39697127]{overflow:hidden}.goods_detail .swiper-box .demo-carousel[data-v-39697127]{width:375px;height:375px}.goods_detail .swiper-box .demo-carousel img[data-v-39697127]{width:100%;height:100%;display:block}.goods_detail .goods_info[data-v-39697127]{padding:15px;background:#fff}.goods_detail .goods_info .number-wrapper[data-v-39697127]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.goods_detail .goods_info .number-wrapper .price[data-v-39697127]{color:#ff3838;font-size:25px}.goods_detail .goods_info .number-wrapper .price span[data-v-39697127]{font-size:15px}.goods_detail .goods_info .number-wrapper .old-price[data-v-39697127]{font-size:15px;margin-left:10px;color:#333}.goods_detail .goods_info .name[data-v-39697127]{font-size:16px;color:#333}.goods_detail .goods_info .msg[data-v-39697127]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:10px}.goods_detail .goods_info .msg .item[data-v-39697127]{color:#999;font-size:14px}.goods_detail .con-box[data-v-39697127]{margin-top:10px;padding-bottom:20px}.right-wrapper[data-v-2493df8c]{width:280px;height:100%;overflow-y:auto}.right-wrapper .user-wrapper[data-v-2493df8c]{padding:0 8px}.right-wrapper .user-wrapper .user[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 0;border-bottom:1px solid #ececec}.right-wrapper .user-wrapper .user .avatar[data-v-2493df8c]{width:42px;height:42px}.right-wrapper .user-wrapper .user .avatar img[data-v-2493df8c]{display:block;width:100%;height:100%;border-radius:50%}.right-wrapper .user-wrapper .user .name[data-v-2493df8c]{max-width:150px;margin-left:10px;font-size:16px;color:rgba(0,0,0,.65)}.right-wrapper .user-wrapper .user .label[data-v-2493df8c]{margin-left:5px;font-size:12px;border-radius:2px;padding:2px 5px}.right-wrapper .user-wrapper .user .label.H5[data-v-2493df8c]{background:#faf1d0;color:#dc9a04}.right-wrapper .user-wrapper .user .label.wechat[data-v-2493df8c]{background:rgba(64,194,73,.16);color:#40c249}.right-wrapper .user-wrapper .user .label.pc[data-v-2493df8c]{background:rgba(100,64,194,.16);color:#6440c2}.routine[data-v-2493df8c]{color:#3875ea;background:#d8e5ff}.user-info[data-v-2493df8c]{padding:15px 0 0;border-bottom:1px solid #ececec}.user-info .item[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;margin-bottom:15px;font-size:14px;color:#333}.user-info .item .item-mark[data-v-2493df8c]{color:#999}.user-info .item .el-textarea[data-v-2493df8c],.user-info .item div[data-v-2493df8c]{width:70%}.user-info .item span[data-v-2493df8c]{width:45px;font-size:13px;color:#666;text-align:right;margin-right:5px}.user-info .label-list[data-v-2493df8c]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.user-info .label-list span[data-v-2493df8c]{width:70px;font-size:13px;color:#666}.user-info .label-list .con[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex:1;flex:1}.user-info .label-list .con .label-item[data-v-2493df8c]{margin-right:8px;margin-bottom:8px;padding:0 5px;color:#1890ff;font-size:13px;background:rgba(24,144,255,.1)}.user-info .label-list .right-icon[data-v-2493df8c]{position:absolute;right:0;top:0;cursor:pointer}.order-wrapper[data-v-2493df8c] .el-scrollbar__wrap{overflow-x:hidden}.order-wrapper .tab-head[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:46px;border-bottom:1px solid #ececec}.order-wrapper .tab-head .tab-item[data-v-2493df8c]{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center;font-size:14px;cursor:pointer}.order-wrapper .tab-head .tab-item.active[data-v-2493df8c]{color:#1890ff;font-size:15px;font-weight:600}.order-wrapper .tab-head .tab-item.active[data-v-2493df8c]:after{content:" ";position:absolute;left:0;bottom:-12px;width:100%;height:2px;background:#1890ff}.order-wrapper .search-box[data-v-2493df8c]{padding:0 8px;margin-top:12px}.order-wrapper .search-box[data-v-2493df8c] .el-input__inner{border-radius:17px}.order-wrapper .order-list[data-v-2493df8c]{padding:0 8px;margin-top:10px}.order-wrapper .order-item[data-v-2493df8c]{margin-bottom:18px}.order-wrapper .order-item .head[data-v-2493df8c]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:36px;padding:0 10px;background:#f5f5f5;font-size:13px}.order-wrapper .order-item .head .left[data-v-2493df8c],.order-wrapper .order-item .head[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.order-wrapper .order-item .head .left[data-v-2493df8c]{color:#1890ff}.order-wrapper .order-item .head .left .font-box[data-v-2493df8c]{margin-right:8px}.order-wrapper .order-item .head .left .font-box .iconfont[data-v-2493df8c]{font-size:18px}.order-wrapper .order-item .goods-list[data-v-2493df8c]{max-height:156px;overflow:hidden}.order-wrapper .order-item .goods-list.auto[data-v-2493df8c]{max-height:none}.order-wrapper .order-item .goods-list .goods-item[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:15px}.order-wrapper .order-item .goods-list .goods-item .img-box[data-v-2493df8c]{width:60px;height:60px}.order-wrapper .order-item .goods-list .goods-item .img-box img[data-v-2493df8c]{display:block;width:100%;height:100%;border-radius:2px}.order-wrapper .order-item .goods-list .goods-item .info[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:180px;margin-left:10px;font-size:14px}.order-wrapper .order-item .goods-list .goods-item .info .sku[data-v-2493df8c]{font-size:12px;color:#999}.order-wrapper .more-box[data-v-2493df8c]{text-align:right;color:#1890ff;font-size:13px;padding-right:10px}.order-wrapper .more-box span[data-v-2493df8c]{cursor:pointer}.order-wrapper .order-info[data-v-2493df8c]{margin-top:15px}.order-wrapper .order-info .info-item[data-v-2493df8c]{margin-bottom:5px;font-size:13px}.order-wrapper .order-info .info-item span[data-v-2493df8c]{display:inline-block;width:70px;text-align:right}.order-wrapper .btn-wrapper[data-v-2493df8c]{margin-top:10px}.order-wrapper .btn-wrapper .btn[data-v-2493df8c]{margin-right:5px}.order-wrapper .btn-wrapper .btn[data-v-2493df8c]:last-child{margin-right:0}.goods-wrapper[data-v-2493df8c] .el-scrollbar__wrap{overflow-x:hidden}.goods-wrapper .goods-tab[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 40px;border-bottom:1px solid #ececec}.goods-wrapper .goods-tab .tab-item[data-v-2493df8c]{position:relative;height:50px;line-height:50px;font-size:14px;cursor:pointer}.goods-wrapper .goods-tab .tab-item.active[data-v-2493df8c]{color:#1890ff}.goods-wrapper .goods-tab .tab-item.active[data-v-2493df8c]:after{content:" ";position:absolute;left:0;bottom:0;width:100%;height:2px;background:#1890ff}.goods-wrapper .search-box[data-v-2493df8c]{margin-top:10px;padding:0 8px}.goods-wrapper .search-box[data-v-2493df8c] .el-input__inner{border-radius:17px}.goods-wrapper .list-wrapper[data-v-2493df8c]{padding:0 8px}.goods-wrapper .list-wrapper .list-item[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:15px}.goods-wrapper .list-wrapper .list-item .img-box[data-v-2493df8c]{width:60px;height:60px}.goods-wrapper .list-wrapper .list-item .img-box img[data-v-2493df8c]{display:block;width:100%;height:100%;border-radius:2px}.goods-wrapper .list-wrapper .list-item .info[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:180px;margin-left:10px;font-size:14px}.goods-wrapper .list-wrapper .list-item .info .sku[data-v-2493df8c]{font-size:12px;color:#999}.goods-wrapper .list-wrapper .list-item .info .sku span[data-v-2493df8c]{margin-right:10px}.goods-wrapper .list-wrapper .list-item .info .price[data-v-2493df8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;color:red}.goods-wrapper .list-wrapper .list-item .info .price .push[data-v-2493df8c]{color:#1890ff;cursor:pointer}.label-box[data-v-2493df8c] .ivu-modal-header{padding:0;border:0;background:#fff;height:50px;border-radius:6px}.label-box .label-head[data-v-2493df8c]{height:50px;line-height:50px;text-align:center;font-size:13px;color:#333;border-bottom:1px solid #f0f0f0}[data-v-af82a944] .el-dialog__header{padding-bottom:0}[data-v-af82a944] .el-dialog__body{padding-top:0!important;padding-bottom:0!important}.head .tab-bar[data-v-af82a944]{display:-webkit-box;display:-ms-flexbox;display:flex}.head .tab-bar .tab-item[data-v-af82a944]{margin-right:24px;color:#999;font-size:14px;font-weight:500}.head .tab-bar .tab-item.on[data-v-af82a944]{color:#333}.head .search-box[data-v-af82a944]{margin-top:15px}.head .search-box[data-v-af82a944] .el-input__suffix-inner{line-height:32px}.main[data-v-af82a944]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:15px;height:365px}.main .left-box[data-v-af82a944]{width:106px;height:100%;border-right:1px solid #ececec;overflow:hidden}.main .left-box[data-v-af82a944] .el-scrollbar__wrap{overflow-x:hidden}.main .left-box .left-item[data-v-af82a944]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:36px;padding:0 14px 0 0;font-size:13px;cursor:pointer}.main .left-box .left-item.on[data-v-af82a944]{background:#f0fafe;color:#1890ff;border-right:2px solid #1890ff}.main .left-box .left-item.on .iconDot[data-v-af82a944]{z-index:1;opacity:1}.main .left-box .left-item:first-child.on .iconDot[data-v-af82a944],.main .left-box .left-item:nth-child(2).on .iconDot[data-v-af82a944]{display:none}.main .left-box .left-item .iconaddto[data-v-af82a944]{font-size:12px}.main .left-box .left-item .iconDot[data-v-af82a944]{z-index:-1;opacity:0}.main .left-box .left-item .edit-wrapper[data-v-af82a944]{z-index:50;position:absolute;right:-2px;top:-4px;background:#fff;width:80px;-webkit-box-shadow:0 1px 6px rgba(0,0,0,.2);box-shadow:0 1px 6px rgba(0,0,0,.2);border-radius:4px}.main .left-box .left-item .edit-wrapper .edit-item[data-v-af82a944]{padding:8px 16px;color:#666!important;cursor:pointer}.main .left-box .left-item .edit-bg[data-v-af82a944]{z-index:40;position:fixed;left:0;top:0;width:100%;height:100%;background:transparent}.main .right-box[data-v-af82a944]{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 0 0 12px;overflow-x:hidden}.main .right-box[data-v-af82a944] .el-scrollbar__wrap{overflow-x:hidden}.main .right-box .msg-item[data-v-af82a944]{margin-top:12px;-webkit-transition:all .3s ease;transition:all .3s ease;cursor:pointer}.main .right-box .msg-item .box1[data-v-af82a944]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.main .right-box .msg-item .box1 .txt-box[data-v-af82a944]{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px;color:#999}.main .right-box .msg-item .box1 .txt-box .title[data-v-af82a944]{max-width:370px;margin-right:5px;color:#333;font-weight:700}.main .right-box .msg-item .box1 .edit-box[data-v-af82a944]{z-index:-1;opacity:0;position:absolute;right:7px;top:0;width:60px;height:30px;background:#fff}.main .right-box .msg-item .box1 .edit-box .iconfont[data-v-af82a944]{margin:0 8px;color:#000;font-size:16px;cursor:pointer}.main .right-box .msg-item .box2[data-v-af82a944]{padding-bottom:15px;border-radius:5px;background:#f5f5f5}.main .right-box .msg-item .box2 .input-box[data-v-af82a944]{border-bottom:1px solid #eee}.main .right-box .msg-item .box2 .input-box[data-v-af82a944] .el-input__inner{background:transparent;border:0;border-radius:0}.main .right-box .msg-item .box2 .content[data-v-af82a944]{font-size:12px;padding:12px 11px 0;color:#333}.main .right-box .msg-item .box2 .bom[data-v-af82a944]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px 0 11px;margin-top:10px}.main .right-box .msg-item .box2 .bom button[data-v-af82a944]{margin-left:8px;width:70px}.main .right-box .msg-item[data-v-af82a944]:hover{-webkit-transition:all .3s ease;transition:all .3s ease}.main .right-box .msg-item:hover .box1 .edit-box[data-v-af82a944]{z-index:1;opacity:1;-webkit-transition:all .3s ease;transition:all .3s ease}.main .right-box .add-box[data-v-af82a944]{border-radius:0;margin-bottom:10px}.main .right-box .add-box .box2[data-v-af82a944]{padding-bottom:0;border-radius:0}.main .right-box .add-box .box2 .conBox[data-v-af82a944]{height:0;overflow:hidden}.main .right-box .add-box .box2 .conBox.active[data-v-af82a944]{-webkit-animation:mymove .4s ease;animation:mymove .4s ease;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.class-box[data-v-af82a944] .el-dialog__header{padding-bottom:10px;background:#fafafa;border-bottom:1px solid #e8eaec}.class-box[data-v-af82a944] .el-dialog__body{padding-top:18px!important;padding-bottom:20px!important}.class-box .item[data-v-af82a944]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:20px}.class-box .item[data-v-af82a944]:last-child{margin-bottom:0}.class-box .item input[data-v-af82a944]{-webkit-box-flex:1;-ms-flex:1;flex:1}.class-box .item span[data-v-af82a944]{width:80px;font-size:12px}.right-scroll[data-v-af82a944] .ivu-scroll-container .ivu-scroll-loader:first-child{display:none}@-webkit-keyframes mymove{0%{height:0}to{height:150px}}@keyframes mymove{0%{height:0}to{height:150px}}.title[data-v-ccb6ad70]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-ccb6ad70]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.logistics[data-v-ccb6ad70]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px 0}.logistics .logistics_img[data-v-ccb6ad70]{width:45px;height:45px;margin-right:12px}.logistics .logistics_img img[data-v-ccb6ad70]{width:100%;height:100%}.logistics .logistics_cent span[data-v-ccb6ad70]{display:block;font-size:12px}.trees-coadd[data-v-ccb6ad70]{width:100%;height:400px;border-radius:4px;overflow:hidden}.trees-coadd .scollhide[data-v-ccb6ad70]{width:100%;height:100%;overflow:auto;margin-left:18px;padding:10px 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.trees-coadd .scollhide .content[data-v-ccb6ad70]{font-size:12px}.trees-coadd .scollhide .time[data-v-ccb6ad70]{font-size:12px;color:#2d8cf0}.scollhide[data-v-ccb6ad70]::-webkit-scrollbar{display:none}.order_detail .msg-box[data-v-72cd2a05]{border-bottom:1px solid #e8eaed}.order_detail .msg-box .box-title[data-v-72cd2a05]{padding-top:20px;font-size:16px;color:#333}.order_detail .msg-box .msg-wrapper[data-v-72cd2a05]{margin-top:15px;padding-bottom:10px}.order_detail .msg-box .msg-wrapper .msg-item[data-v-72cd2a05]{display:-webkit-box;display:-ms-flexbox;display:flex}.order_detail .msg-box .msg-wrapper .msg-item .item[data-v-72cd2a05]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-bottom:15px;font-size:12px}.order_detail .msg-box .msg-wrapper .msg-item .item span[data-v-72cd2a05]{color:#333}.order_detail .msg-box:first-child .box-title[data-v-72cd2a05]{padding-top:0}.order_detail .product_info[data-v-72cd2a05]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.order_detail .product_info img[data-v-72cd2a05]{width:36px;height:36px;border-radius:4px;margin-right:10px}.order_detail[data-v-72cd2a05] .el-table .cell{font-size:12px}.order_detail .msg-box[data-v-42bcc57e]{border-bottom:1px solid #e8eaed}.order_detail .msg-box .box-title[data-v-42bcc57e]{padding-top:20px;font-size:16px;color:#333}.order_detail .msg-box .msg-wrapper[data-v-42bcc57e]{margin-top:15px;padding-bottom:10px}.order_detail .msg-box .msg-wrapper .msg-item[data-v-42bcc57e]{display:-webkit-box;display:-ms-flexbox;display:flex}.order_detail .msg-box .msg-wrapper .msg-item .item[data-v-42bcc57e]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-bottom:15px;font-size:12px}.order_detail .msg-box .msg-wrapper .msg-item .item span[data-v-42bcc57e]{color:#333}.order_detail .msg-box:first-child .box-title[data-v-42bcc57e]{padding-top:0}.order_detail .product_info[data-v-42bcc57e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.order_detail .product_info img[data-v-42bcc57e]{width:36px;height:36px;border-radius:4px;margin-right:10px}.order_detail[data-v-42bcc57e] .el-table .cell{font-size:12px}.em{display:inline-block;height:1em;width:1em;overflow:hidden;line-height:18px;font-size:22px;vertical-align:middle;margin-top:-4px;color:transparent!important;background-size:4100%;background-image:url(../../kefu/img/look.62b51bae.png)!important}.em.em-tlj-1{background-position:0 0}.em.em-tlj-2{background-position:0 2.5%}.em.em-tlj-3{background-position:0 5%}.em.em-tlj-4{background-position:0 7.5%}.em.em-tlj-5{background-position:0 10%}.em.em-tlj-6{background-position:0 12.5%}.em.em-tlj-7{background-position:0 15%}.em.em-tlj-8{background-position:0 17.5%}.em.em-tlj-9{background-position:0 20%}.em.em-tlj-10{background-position:0 22.5%}.em.em-tlj-11{background-position:0 25%}.em.em-tlj-12{background-position:0 27.5%}.em.em-tlj-13{background-position:0 30%}.em.em-tlj-14{background-position:0 32.5%}.em.em-tlj-15{background-position:0 35%}.em.em-tlj-16{background-position:0 37.5%}.em.em-tlj-17{background-position:0 40%}.em.em-tlj-18{background-position:0 42.5%}.em.em-tlj-19{background-position:0 45%}.em.em-tlj-20{background-position:0 47.5%}.em.em-tlj-21{background-position:0 50%}.em.em-tlj-22{background-position:0 52.5%}.em.em-tlj-23{background-position:0 55%}.em.em-tlj-24{background-position:0 57.5%}.em.em-tlj-25{background-position:0 60%}.em.em-tlj-26{background-position:0 62.5%}.em.em-tlj-27{background-position:0 65%}.em.em-tlj-28{background-position:0 67.5%}.em.em-tlj-29{background-position:0 70%}.em.em-tlj-30{background-position:0 72.5%}.em.em-tlj-31{background-position:0 75%}.em.em-tlj-32{background-position:0 77.5%}.em.em-tlj-33{background-position:0 80%}.em.em-tlj-34{background-position:0 82.5%}.em.em-tlj-35{background-position:0 85%}.em.em-tlj-36{background-position:0 87.5%}.em.em-tlj-37{background-position:0 90%}.em.em-tlj-38{background-position:0 92.5%}.em.em-tlj-39{background-position:0 95%}.em.em-tlj-40{background-position:0 97.5%}.em.em-tlj-41{background-position:0 100%}.em.em-tlj-42{background-position:2.5% 0}.em.em-tlj-43{background-position:2.5% 2.5%}.em.em-tlj-44{background-position:2.5% 5%}.em.em-tlj-45{background-position:2.5% 7.5%}.em.em-tlj-46{background-position:2.5% 10%}.em.em-tlj-47{background-position:2.5% 12.5%}.em.em-tlj-48{background-position:2.5% 15%}.em.em-tlj-49{background-position:2.5% 17.5%}.em.em-tlj-50{background-position:2.5% 20%}.em.em-tlj-51{background-position:2.5% 22.5%}.em.em-tlj-52{background-position:2.5% 25%}.em.em-tlj-53{background-position:2.5% 27.5%}.em.em-tlj-54{background-position:2.5% 30%}.em.em-tlj-55{background-position:2.5% 32.5%}.em.em-tlj-56{background-position:2.5% 35%}.em.em-tlj-57{background-position:2.5% 37.5%}.em.em-tlj-58{background-position:2.5% 40%}.em.em-tlj-59{background-position:2.5% 42.5%}.em.em-tlj-60{background-position:2.5% 45%}.em.em-tlj-61{background-position:2.5% 47.5%}.em.em-tlj-62{background-position:2.5% 50%}.em.em-tlj-63{background-position:2.5% 52.5%}.em.em-tlj-64{background-position:2.5% 55%}.em.em-tlj-65{background-position:2.5% 57.5%}.em.em-tlj-66{background-position:2.5% 60%}.em.em-tlj-67{background-position:2.5% 62.5%}.em.em-tlj-68{background-position:2.5% 65%}.em.em-tlj-69{background-position:2.5% 67.5%}.em.em-tlj-70{background-position:2.5% 70%}.em.em-tlj-71{background-position:2.5% 72.5%}.em.em-tlj-72{background-position:2.5% 75%}.em.em-tlj-73{background-position:2.5% 77.5%}.em.em-tlj-74{background-position:2.5% 80%}.em.em-tlj-75{background-position:2.5% 82.5%}.em.em-tlj-76{background-position:2.5% 85%}.em.em-tlj-77{background-position:2.5% 87.5%}.em.em-tlj-78{background-position:2.5% 90%}.em.em-tlj-79{background-position:2.5% 92.5%}.em.em-tlj-80{background-position:2.5% 95%}.em.em-tlj-81{background-position:2.5% 97.5%}.em.em-tlj-82{background-position:2.5% 100%}.em.em-tlj-83{background-position:5% 0}.em.em-tlj-84{background-position:5% 2.5%}.em.em-tlj-85{background-position:5% 5%}.em.em-tlj-86{background-position:5% 7.5%}.em.em-tlj-87{background-position:5% 10%}.em.em-tlj-88{background-position:5% 12.5%}.em.em-tlj-89{background-position:5% 15%}.em.em-tlj-90{background-position:5% 17.5%}.em.em-tlj-91{background-position:5% 20%}.em.em-tlj-92{background-position:5% 22.5%}.em.em-tlj-93{background-position:5% 25%}.em.em-tlj-94{background-position:5% 27.5%}.em.em-tlj-95{background-position:5% 30%}.em.em-tlj-96{background-position:5% 32.5%}.kefu-layouts[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;width:100%;display:flex;background:#ccc;overflow:scroll}.kefu-layouts #chat_scroll[data-v-47247b73]{width:100%;height:100%;padding:20px;overflow-y:scroll}.kefu-layouts #chat_scroll .time[data-v-47247b73]{margin:15px 0;text-align:center;color:#999;font-size:12px}.kefu-layouts .content-wrapper[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:90%;min-width:1000px;max-width:1200px;height:90%;min-height:600px;max-height:800px;background:#fff}.kefu-layouts .content-wrapper .container[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:0}.kefu-layouts .content-wrapper .container .chat-content[data-v-47247b73]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0;overflow:hidden;border-right:1px solid #ececec}.kefu-layouts .content-wrapper .container .chat-content .chat-body[data-v-47247b73]{height:100%;overflow:hidden}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item[data-v-47247b73]{margin-bottom:10px;position:relative}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .recall[data-v-47247b73]{width:70px;height:30px;line-height:30px;background:#fff;border-radius:2px;text-align:center;font-size:12px;-webkit-box-shadow:0 3px 6px 1px rgba(51,51,51,.1);box-shadow:0 3px 6px 1px rgba(51,51,51,.1);position:absolute;bottom:-20px;right:50px;z-index:10}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .recall .recall-item[data-v-47247b73]{cursor:pointer}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .recall-msg[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;color:#999;font-size:12px;margin:15px 0}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .time[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:#999;font-size:14px;margin:18px 0}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .flex-box[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .avatar[data-v-47247b73]{width:40px;height:40px;margin-right:16px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .avatar img[data-v-47247b73]{display:block;width:100%;height:100%;border-radius:50%}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item.right-box .flex-box[data-v-47247b73]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item.right-box .flex-box .avatar[data-v-47247b73]{margin-right:0;margin-left:16px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item.right-box .flex-box .msg-wrapper[data-v-47247b73]{background:#cde0ff}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item.right-box.gary .msg-wrapper[data-v-47247b73]{background:#f5f5f5}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper[data-v-47247b73]{max-width:320px;background:#f5f5f5;border-radius:10px;color:#000;font-size:14px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .txt-wrapper[data-v-47247b73]{word-break:break-all;white-space:pre-wrap}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .pad16[data-v-47247b73]{padding:9px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .img-wraper img[data-v-47247b73]{max-width:100%;height:auto;display:block}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;width:320px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .img-box[data-v-47247b73]{width:60px;height:60px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .img-box img[data-v-47247b73]{width:100%;height:100%;border-radius:5px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .order-info[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:224px;margin-left:10px;font-size:12px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .order-info .price-box[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;color:red}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .order-info .price-box .more[data-v-47247b73]{font-size:12px;color:#1890ff}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .order-info .name[data-v-47247b73]{font-size:14px}.kefu-layouts .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper .order-info .sku[data-v-47247b73]{margin:1px 0;color:#999}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea[data-v-47247b73]{height:214px;border-top:1px solid #ececec}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper[data-v-47247b73]{position:relative;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:15px 0}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .left-wrapper[data-v-47247b73],.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .left-wrapper .icon-item[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:20px;cursor:pointer}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .left-wrapper .icon-item span[data-v-47247b73]{font-size:22px;color:#333}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .right-wrapper[data-v-47247b73]{position:relative;padding-right:20px;width:300px}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .right-wrapper .icon-item[data-v-47247b73]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:15px;color:#333;cursor:pointer}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .right-wrapper .icon-item span[data-v-47247b73]{margin-left:10px}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .right-wrapper .transfer-box[data-v-47247b73]{z-index:60;position:absolute;right:1px;bottom:43px;width:140px;background:#fff;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15);padding:16px}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .right-wrapper .transfer-bg[data-v-47247b73]{z-index:50;position:fixed;left:0;top:0;width:100%;height:100%;background:transparent}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .emoji-box[data-v-47247b73]{position:absolute;left:0;top:0;-webkit-transform:translateY(-100%);transform:translateY(-100%);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:365px;padding:15px 9px;-webkit-box-shadow:0 0 13px 1px rgba(0,0,0,.1);box-shadow:0 0 13px 1px rgba(0,0,0,.1);background:#fff}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .emoji-box .emoji-item[data-v-47247b73]{margin-right:13px;margin-bottom:8px;cursor:pointer}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .chat-btn-wrapper .emoji-box .emoji-item[data-v-47247b73]:nth-child(10n){margin-right:0}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .textarea-box[data-v-47247b73] .el-textarea__inner{resize:none!important;height:148px;border-color:transparent;font-size:14px!important}.kefu-layouts .content-wrapper .container .chat-content .chat-textarea .textarea-box .send-btn[data-v-47247b73]{position:absolute;right:0;bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-top:10px;margin-right:10px;width:80px}.kefu-layouts .happy-scroll[data-v-47247b73]{width:100%;height:100%;overflow:hidden;position:relative}.kefu-layouts[data-v-47247b73] .happy-scroll-content{width:100%}.kefu-layouts[data-v-47247b73] .happy-scroll-content .demo-spin-icon-load{-webkit-animation:ani-demo-spin-data-v-47247b73 1s linear infinite;animation:ani-demo-spin-data-v-47247b73 1s linear infinite}@-webkit-keyframes ani-demo-spin-data-v-47247b73{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ani-demo-spin-data-v-47247b73{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.kefu-layouts[data-v-47247b73] .happy-scroll-content .demo-spin-col{height:100px;position:relative;border:1px solid #eee} \ No newline at end of file diff --git a/public/kefu/js/app.db1bc7fa.js b/public/kefu/js/app.db1bc7fa.js new file mode 100644 index 00000000..6f143cdc --- /dev/null +++ b/public/kefu/js/app.db1bc7fa.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0781":function(e,t,n){"use strict";n.r(t);n("24ab");var c=n("83d6"),i=n.n(c),a=i.a.showSettings,o=i.a.tagsView,r=i.a.fixedHeader,s=i.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:a,tagsView:o,fixedHeader:r,sidebarLogo:s,isEdit:!1},A={CHANGE_SETTING:function(e,t){var n=t.key,c=t.value;e.hasOwnProperty(n)&&(e[n]=c)},SET_ISEDIT:function(e,t){e.isEdit=t}},d={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)},setEdit:function(e,t){var n=e.commit;n("SET_ISEDIT",t)}};t["default"]={namespaced:!0,state:u,mutations:A,actions:d}},"096e":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"0f9a":function(e,t,n){"use strict";n.r(t);var c=n("c80c"),i=(n("96cf"),n("3b8d")),a=(n("7f7f"),n("42e3")),o=n("5f87"),r=n("a18c"),s=n("a78e"),u=n.n(s),A={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList"))},d={SET_MENU_LIST:function(e,t){e.menuList=t},SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t}},l={login:function(e,t){var n=e.commit;return new Promise((function(e,c){Object(a["j"])(t).then((function(t){var c=t.data;n("SET_TOKEN",c.token),u.a.set("ServiceInfo",c.admin),Object(o["c"])(c.token),e(c)})).catch((function(e){c(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,c){Object(a["c"])(n.token).then((function(n){var i=n.data;i||c("Verification failed, please Login again.");var a=i.roles,o=i.name,r=i.avatar,s=i.introduction;(!a||a.length<=0)&&c("getInfo: roles must be a non-null array!"),t("SET_ROLES",a),t("SET_NAME",o),t("SET_AVATAR",r),t("SET_INTRODUCTION",s),e(i)})).catch((function(e){c(e)}))}))},logout:function(e){var t=e.commit,n=e.state,c=e.dispatch;return new Promise((function(e,i){Object(a["k"])(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),Object(r["d"])(),u.a.remove("ServiceInfo"),c("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),e()}))},changeRoles:function(e,t){var n=e.commit,a=e.dispatch;return new Promise(function(){var e=Object(i["a"])(Object(c["a"])().mark((function e(i){var s,u,A,d;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t+"-token",n("SET_TOKEN",s),Object(o["c"])(s),e.next=5,a("getInfo");case 5:return u=e.sent,A=u.roles,Object(r["d"])(),e.next=10,a("permission/generateRoutes",A,{root:!0});case 10:d=e.sent,r["c"].addRoutes(d),a("tagsView/delAllViews",null,{root:!0}),i();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}};t["default"]={namespaced:!0,state:A,mutations:d,actions:l}},"12a5":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},1430:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},1779:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"17df":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"18f0":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"2a3d":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"2f11":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},3046:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"30c3":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return o}));var c=n("db72"),i=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function a(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function o(e,t){var n=[];return e.forEach((function(e){var i=Object(c["a"])({},e);a(t,i)&&(i.children&&(i.children=o(i.children,t)),n.push(i))})),n}var r={routes:[],addRoutes:[]},s={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["b"].concat(t)}},u={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var c;c=t.includes("admin2")?i["asyncRoutes"]||[]:o(i["asyncRoutes"],t),n("SET_ROUTES",c),e(c)}))}};t["default"]={namespaced:!0,state:r,mutations:s,actions:u}},3289:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"42e3":function(e,t,n){"use strict";n("ac6a");var c=n("bc3a"),i=n.n(c),a=n("4360"),o=n("bbcc"),r=i.a.create({baseURL:o["a"].https,timeout:6e4}),s={login:!0};function u(e){var t=a["a"].getters.token,n=e.headers||{};return t&&(n["X-Token"]=t,e.headers=n),new Promise((function(t,n){r(e).then((function(e){var c=e.data||{};return 200!==e.status?n({message:"请求失败",res:e,data:c}):-1===[41e4,410001,410002,4e4].indexOf(c.status)?200===c.status?t(c,e):n({message:c.message,res:e,data:c}):void a["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(e){return n({message:e})}))}))}var A=["post","put","patch","delete"].reduce((function(e,t){return e[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,data:n,method:t},s,c))},e}),{});["get","head"].forEach((function(e){A[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,params:n,method:e},s,c))}}));var d=A;function l(e){return d.get("/user/lst",e)}function v(e,t){return d.get("/history/"+e,t)}function f(){return d.get("/info")}function h(){return d.get("/user")}function w(e,t){return d.post("/user/mark/"+e,{mark:t})}function m(){return d.get("captcha")}function g(e){return d.post("login",e)}function p(){return d.post("logout")}function b(e){return d.get("order/".concat(e))}function V(e){return d.get("refund/".concat(e))}function z(e){return d.get("order_express/".concat(e))}function x(e){return d.get("refund_express/".concat(e))}function E(e,t){return d.get("order_status/".concat(e),t)}function y(e){return d.get("product/".concat(e))}function H(){return d.get("config")}function M(){return d.get("../api/version")}n.d(t,"o",(function(){return l})),n.d(t,"i",(function(){return v})),n.d(t,"l",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return b})),n.d(t,"p",(function(){return V})),n.d(t,"h",(function(){return z})),n.d(t,"q",(function(){return x})),n.d(t,"r",(function(){return E})),n.d(t,"n",(function(){return y})),n.d(t,"f",(function(){return H})),n.d(t,"v",(function(){return M}))},4360:function(e,t,n){"use strict";n("a481"),n("ac6a");var c=n("2b0e"),i=n("2f62"),a=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},isEdit:function(e){return e.settings.isEdit},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs},menuList:function(e){return e.user.menuList}}),o=a,r=n("bfa9");c["default"].use(i["a"]);var s=n("c653"),u=s.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),c=s(t);return e[n]=c.default,e}),{}),A=(new r["a"]({storage:window.localStorage}),new i["a"].Store({modules:u,getters:o}));t["a"]=A},"47f1":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"47ff":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"4d49":function(e,t,n){"use strict";n.r(t);var c={logs:[]},i={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},a={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:c,mutations:i,actions:a}},"4df5":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(r);t["default"]=r},"4fb4":function(e,t,n){e.exports=n.p+"kefu/img/no.7de91001.png"},"51ff":function(e,t,n){var c={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=a(e);return n(t)}function a(e){var t=c[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(c)},i.resolve=a,e.exports=i,i.id="51ff"},"56d6":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"56d7":function(e,t,n){"use strict";n.r(t);var c={};n.r(c),n.d(c,"timeAgo",(function(){return pe})),n.d(c,"numberFormatter",(function(){return be})),n.d(c,"toThousandFilter",(function(){return Ve})),n.d(c,"uppercaseFirst",(function(){return ze})),n.d(c,"filterEmpty",(function(){return N})),n.d(c,"filterYesOrNo",(function(){return j})),n.d(c,"filterShowOrHide",(function(){return F})),n.d(c,"filterShowOrHideForFormConfig",(function(){return P})),n.d(c,"filterYesOrNoIs",(function(){return Q})),n.d(c,"paidFilter",(function(){return q})),n.d(c,"payTypeFilter",(function(){return W})),n.d(c,"orderStatusFilter",(function(){return G})),n.d(c,"activityOrderStatus",(function(){return U})),n.d(c,"cancelOrderStatusFilter",(function(){return J})),n.d(c,"orderPayType",(function(){return Y})),n.d(c,"takeOrderStatusFilter",(function(){return Z})),n.d(c,"orderRefundFilter",(function(){return X})),n.d(c,"accountStatusFilter",(function(){return K})),n.d(c,"reconciliationFilter",(function(){return $})),n.d(c,"reconciliationStatusFilter",(function(){return ee})),n.d(c,"productStatusFilter",(function(){return te})),n.d(c,"couponTypeFilter",(function(){return ne})),n.d(c,"couponUseTypeFilter",(function(){return ce})),n.d(c,"broadcastStatusFilter",(function(){return ie})),n.d(c,"liveReviewStatusFilter",(function(){return ae})),n.d(c,"broadcastType",(function(){return oe})),n.d(c,"broadcastDisplayType",(function(){return re})),n.d(c,"filterClose",(function(){return se})),n.d(c,"exportOrderStatusFilter",(function(){return ue})),n.d(c,"transactionTypeFilter",(function(){return Ae})),n.d(c,"seckillStatusFilter",(function(){return de})),n.d(c,"seckillReviewStatusFilter",(function(){return le})),n.d(c,"deliveryStatusFilter",(function(){return ve})),n.d(c,"organizationType",(function(){return fe})),n.d(c,"id_docType",(function(){return he})),n.d(c,"deliveryType",(function(){return we})),n.d(c,"activityTypeFilter",(function(){return me}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var i=n("2b0e"),a=n("a78e"),o=n.n(a),r=(n("f5df"),n("5c96")),s=n.n(r),u=(n("b20f"),n("caf9")),A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):e._e()},d=[],l={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},v=l,f=n("2877"),h=Object(f["a"])(v,A,d,!1,null,null,null),w=h.exports,m=n("4360"),g=n("a18c"),p=(n("d07c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),b=[];n("6b54");function V(e){return/^(https?:|mailto:|tel:)/.test(e)}var z={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return V(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},x=z,E=(n("cf1c"),Object(f["a"])(x,p,b,!1,null,"61194e00",null)),y=E.exports;i["default"].component("svg-icon",y);var H=n("51ff"),M=function(e){return e.keys().map(e)};M(H);var B=n("c80c"),O=(n("96cf"),n("3b8d")),L=n("323e"),S=n.n(L),T=(n("a5d8"),n("5f87")),C=n("bbcc");C["a"].title;var I=n("83d6"),k=n("42e3");S.a.configure({showSpinner:!1});var D=["".concat(I["roterPre"],"/login"),"/auth-redirect"];g["c"].beforeEach(function(){var e=Object(O["a"])(Object(B["a"])().mark((function e(t,n,c){var i;return Object(B["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(S.a.start(),i=Object(T["a"])(),!i){e.next=6;break}t.path==="".concat(I["roterPre"],"/login")?(c({path:I["roterPre"]+"/"}),S.a.done()):"/"===n.fullPath&&n.path!=="".concat(I["roterPre"],"/login")?Object(k["c"])().then((function(e){o.a.set("ServiceInfo",e.data),c()})).catch((function(e){c()})):c(),e.next=14;break;case 6:if(-1===D.indexOf(t.path)){e.next=10;break}c(),e.next=14;break;case 10:return e.next=12,m["a"].dispatch("user/resetToken");case 12:c("".concat(I["roterPre"],"/login?redirect=").concat(t.path)),S.a.done();case 14:m["a"].dispatch("settings/setEdit",!1);case 15:case"end":return e.stop()}}),e)})));return function(t,n,c){return e.apply(this,arguments)}}()),g["c"].afterEach((function(){S.a.done()}));var R=n("7212"),_=n.n(R);n("dfa4"),n("a481"),n("c5f6");function N(e){var t="-";return e?(t=e,t):t}function j(e){return e?"是":"否"}function F(e){return e?"显示":"不显示"}function P(e){return"‘0’"===e?"显示":"不显示"}function Q(e){return e?"否":"是"}function q(e){var t={0:"未支付",1:"已支付"};return t[e]}function W(e){var t={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return t[e]}function G(e){var t={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return t[e]}function U(e){var t={"-1":"未完成",10:"已完成",0:"进行中"};return t[e]}function J(e){var t={0:"待提货",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return t[e]}function Y(e){var t={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return t[e]}function Z(e){var t={0:"待提货",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return t[e]}function X(e){var t={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return t[e]}function K(e){var t={0:"未转账",1:"已转账"};return t[e]}function $(e){return e>0?"已对账":"未对账"}function ee(e){var t={0:"未确认",1:"已拒绝",2:"已确认"};return t[e]}function te(e){var t={0:"下架",1:"上架显示","-1":"平台关闭"};return t[e]}function ne(e){var t={0:"店铺券",1:"商品券"};return t[e]}function ce(e){var t={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return t[e]}function ie(e){var t={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return t[e]}function ae(e){var t={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return t[e]}function oe(e){var t={0:"手机直播",1:"推流"};return t[e]}function re(e){var t={0:"竖屏",1:"横屏"};return t[e]}function se(e){return e?"✔":"✖"}function ue(e){var t={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return t[e]}function Ae(e){var t={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付"};return t[e]}function de(e){var t={0:"未开始",1:"正在进行","-1":"已结束"};return t[e]}function le(e){var t={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return t[e]}function ve(e){var t={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return t[e]}function fe(e){var t={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return t[e]}function he(e){var t={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return t[e]}function we(e){var t={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return t[e]}function me(e){var t={0:"--",1:"秒杀",2:"预售",3:"助力",4:"拼团"};return t[e]}function ge(e,t){return 1===e?e+t:e+t+"s"}function pe(e){var t=Date.now()/1e3-Number(e);return t<3600?ge(~~(t/60)," minute"):t<86400?ge(~~(t/3600)," hour"):ge(~~(t/86400)," day")}function be(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],c=0;c=n[c].value)return(e/n[c].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[c].symbol;return e.toString()}function Ve(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function ze(e){return e.charAt(0).toUpperCase()+e.slice(1)}i["default"].prototype.bus=new i["default"],i["default"].use(_.a),i["default"].use(u["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),i["default"].use(s.a,{size:o.a.get("size")||"medium"}),Object.keys(c).forEach((function(e){i["default"].filter(e,c[e])}));var xe=xe||[];(function(){var e=document.createElement("script");e.src="https://cdn.oss.9gt.net/js/es.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})(),g["c"].beforeEach((function(e,t,n){xe&&e.path&&xe.push(["_trackPageview","/#"+e.fullPath]),n()})),i["default"].config.productionTip=!1;t["default"]=new i["default"]({el:"#app",router:g["c"],store:m["a"],render:function(e){return e(w)}})},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s}));var c=n("a78e"),i=n.n(c),a="SerToken";function o(){return i.a.get(a)}function r(e){return i.a.set(a,e)}function s(){return i.a.remove(a)}},6599:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},6683:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"708a":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},7153:function(e,t){e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNENTU5QTc5RkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNENTU5QTdBRkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0Q1NTlBNzdGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0Q1NTlBNzhGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCADIAMgDAREAAhEBAxEB/8QAcQABAAMAAgMBAAAAAAAAAAAAAAYHCAMFAQIECgEBAAAAAAAAAAAAAAAAAAAAABAAAQQBAgMHAgUFAQAAAAAAAAECAwQFEQYhQRIxIpPUVQcXMhNRYUIjFCQVJXW1NhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/egAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHhVREVVVERE1VV4IiJ2qq8kQCs8p7s7Uxtl9WN17JujcrJJsdDC+sjmro5GTWLNZJtOSs6mLyUCT7d3dg90Rvdi7KrNE1HT07DPs24WquiOdFq5r49eHUxz2oq6a6gSYAAAAAAAAAAAAAAAAAAAAAAAAAV17p5Gxj9oW0rOdG+9Yr4+SRiqjmwTdck6IqdiSxwrGv5PUDJgEj2lkbOL3JhrVVzmv8A7hWgka3X96vZlZBYhVP1JJFIqJ+C6L2oBtUAAAzl7nb7ktXEwWFsujrY+wyW5bgerXWL9d6Pjiiexdfs0pWoqr+qVNexqKoW5sfdMW6sJFacrW5Cr01snCmidNhreE7Wp2Q2mp1t5IvU3j0qBMQAAAAAAAAAAAAAAAAAAA6PceDr7jw13EWHLG2yxqxTInU6CxE5JYJkTVOpGSNTqTVOpqqmqagZSymxN14qy+vJhb1tqOVsdnHVpr1eZNe65j67HqzqTsa9Gu/FAJ/7e+3GTTJ1c3nqzqNajIyzUpz6NtWbUao6CSWHi6vDBIiO0f0vc5qJppqoGhZ54a0MtixKyGCCN8s00rkZHFHG1XPe9ztEa1rU1VQM73/d66m5Y7NGPr29WV1Z1J7UbLehc9v3biucnVFY7qLEmujWpoqd5wEm3z7k0osJXg27cbNdzNb7n8iJ2j8dUcrmSK9PqhvPc1zEaujo9FdwVG6hm4CXbK3RNtXNQ3dXOoz9NfJQN4/cqucmsjW9izVnd9nNdFbqiOUDYsE8NmGKxXkZNBPGyaGWNUcySKRqPjkY5OCte1UVAOUAAAAAAAAAAAAAAAAAAAABVREVVXRE4qq8ERE7VVQMye5W/Vzcz8HiJv8AEV5P6mxG7hkrEa8OlyfVShend5PcnVxRGgVEAAAANAe0W7utq7Vvy95iSTYiR6/UzjJYo6rzZxkj/LqTk1AL4AAAAAAAAAAAAAAAAAAED3fv7E7VjdBql7LOZrFj4np+11Jq2S7InV/Hj5omivdyTTigUfjPdLcdXNvyd+db1OyrWWcYn7daKBqr0/wWd5K80SOXR3FX/rVy8UCSb/8AcyDJ0WYnbk0qQXIGPyVxWPhl+3K3VccxHaOaui6TOTVF+lFVFcBR4AAAAAc9WzPTsQW6sr4bNaWOeCZi6Pjlicj2Pav4tcgG38NckyOIxWQma1st7G0bkrWaoxslmrFM9rEVVVGo566ar2AdkAAAAAAAAAAAAAAAA6fcM81XAZyzXkdFPXw+TnglYuj45oqU8kcjV5OY9qKn5oBiKSWSaR8s0j5ZZXufJLI9z5JHuXVz3vcque9yrqqquqqB6AAAAAAAAANt7X/8zt3/AEWI/wCfXA70AAAAAAAAAAAAAAAB8mQpx5Ghdx8znsivVLNOV8atSRkdqF8D3Rq5rmo9rXqqaoqa8gKp+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkALWx9OPHUKWPhc98VGpWpxPkVqyPjqwsgY6RWta1XuaxFXRETXkB9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="},7509:function(e,t,n){"use strict";n.r(t);var c=n("75fc"),i=n("768b"),a=(n("ac6a"),n("2d63")),o=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),r={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,c=Object(a["a"])(e.visitedViews.entries());try{for(c.s();!(n=c.n()).done;){var o=Object(i["a"])(n.value,2),r=o[0],s=o[1];if(s.path===t.path){e.visitedViews.splice(r,1);break}}}catch(u){c.e(u)}finally{c.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,c=Object(a["a"])(e.visitedViews);try{for(c.s();!(n=c.n()).done;){var i=n.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(o){c.e(o)}finally{c.f()}}},s={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(c["a"])(i.visitedViews),cachedViews:Object(c["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(c["a"])(i.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(c["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(c["a"])(i.visitedViews),cachedViews:Object(c["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(c["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(c["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(c["a"])(i.visitedViews),cachedViews:Object(c["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(c["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(c["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:o,mutations:r,actions:s}},"80da":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(r);t["default"]=r},"83d6":function(e,t){e.exports={roterPre:"/kefu",title:"客服系统",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8644:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"8aa6":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"8e8d":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"8fb7":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"90fb":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"93cd":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},9921:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"9bbf":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},"9d91":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},a14a:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return u}));var c=n("2b0e"),i=n("8c4f"),a=n("83d6");c["default"].use(i["a"]);var o=[{path:"/",hidden:!0,redirect:a["roterPre"]+"/dashboard"},{path:a["roterPre"]+"/",hidden:!0,redirect:a["roterPre"]+"/dashboard"},{path:"".concat(a["roterPre"],"/login"),component:function(){return Promise.all([n.e("chunk-2d21d0c2"),n.e("chunk-0012bcd5")]).then(n.bind(null,"9ed6"))},hidden:!0},{path:a["roterPre"]+"/404",component:function(){return n.e("chunk-7f788446").then(n.bind(null,"1db4"))},hidden:!0},{path:a["roterPre"]+"/dashboard",hidden:!0,component:function(){return n.e("chunk-8416f510").then(n.bind(null,"c86c"))}},{path:"*",redirect:a["roterPre"]+"/404",hidden:!0}],r=function(){return new i["a"]({mode:"history",scrollBehavior:function(){return{y:0}},routes:o})},s=r();function u(){var e=r();s.matcher=e.matcher}t["c"]=s},aa46:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},ab00:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},ad1c:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(r);t["default"]=r},bbcc:function(e,t,n){"use strict";var c=n("a78e"),i=n.n(c),a="".concat(location.origin),o=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,r=i.a.get("MerInfo")?JSON.parse(i.a.get("MerInfo")).login_title:"",s={httpUrl:a,https:a+"/ser",wsSocketUrl:o,title:r||"客服系统"};t["a"]=s},bc35:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},bcc8:function(e,t,n){},c653:function(e,t,n){var c={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=a(e);return n(t)}function a(e){var t=c[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(c)},i.resolve=a,e.exports=i,i.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},cbb7:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(r);t["default"]=r},cf1c:function(e,t,n){"use strict";n("bcc8")},d056:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},d07c:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(r);t["default"]=r},d9cd:function(e,t,n){"use strict";n.r(t);var c=n("a78e"),i=n.n(c),a={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:i.a.get("size")||"medium"},o={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){i.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,i.a.set("size",t)}},r={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,c=t.withoutAnimation;n("CLOSE_SIDEBAR",c)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:a,mutations:o,actions:r}},dbc7:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},dcf8:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},e534:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},e7c8:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},eb1b:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(r);t["default"]=r},f782:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});o.a.add(r);t["default"]=r},f9a1:function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(r);t["default"]=r}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/public/kefu/js/chunk-8416f510.6cf87f52.js b/public/kefu/js/chunk-8416f510.6cf87f52.js new file mode 100644 index 00000000..48a598f7 --- /dev/null +++ b/public/kefu/js/chunk-8416f510.6cf87f52.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8416f510"],{"011a":function(t,e,s){t.exports=s.p+"kefu/img/no_chat.b9c3e583.png"},"03a9":function(t,e,s){},"060a":function(t,e,s){t.exports=s.p+"kefu/img/no_tk.401d40f4.png"},"0980":function(t,e,s){"use strict";s("add4")},"0bb3":function(t,e,s){},"0e60":function(t,e,s){},"16b0":function(t,e,s){t.exports=s.p+"kefu/media/notice.51a07ae7.wav"},"17e9":function(t,e,s){},"18c2":function(t,e,s){},"21b5":function(t,e,s){"use strict";s("0e60")},2288:function(t,e,s){},2294:function(t,e,s){},"2f21":function(t,e,s){"use strict";var i=s("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},3638:function(t,e,s){},"3ed8":function(t,e,s){},4112:function(t,e,s){t.exports=s.p+"kefu/img/no_user.a09b282b.png"},"468b":function(t,e,s){t.exports=s.p+"kefu/img/no_all.174e30c0.png"},"55dd":function(t,e,s){"use strict";var i=s("5ca1"),a=s("d8e8"),n=s("4bf8"),r=s("79e5"),o=[].sort,l=[1,2,3];i(i.P+i.F*(r((function(){l.sort(void 0)}))||!r((function(){l.sort(null)}))||!s("2f21")(o)),"Array",{sort:function(t){return void 0===t?o.call(n(this)):o.call(n(this),a(t))}})},5611:function(t,e,s){"use strict";s("2294")},"5a0c":function(t,e,s){!function(e,s){t.exports=s()}(0,(function(){"use strict";var t=1e3,e=6e4,s=36e5,i="millisecond",a="second",n="minute",r="hour",o="day",l="week",c="month",d="quarter",u="year",v="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(t,e,s){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(s)+t},g={s:p,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),i=Math.floor(s/60),a=s%60;return(e<=0?"+":"-")+p(i,2,"0")+":"+p(a,2,"0")},m:function t(e,s){if(e.date()1)return t(r[0])}else{var o=e.name;b[o]=e,a=o}return!i&&a&&(C=a),a||!i&&C},x=function(t,e){if(y(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new k(s)},D=g;D.l=w,D.i=y,D.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function f(t){this.$L=w(t.locale,null,!0),this.parse(t)}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(h);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return s?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return D},p.isValid=function(){return!(this.$d.toString()===m)},p.isSame=function(t,e){var s=x(t);return this.startOf(e)<=s&&s<=this.endOf(e)},p.isAfter=function(t,e){return x(t)")])])])])]:t._e(),t._v(" "),7==e.msn_type?[e.presell?s("div",{staticClass:"order-wrapper pad16"},[s("div",{staticClass:"img-box"},[s("img",{attrs:{src:e.presell.product.image,alt:""}})]),t._v(" "),s("div",{staticClass:"order-info"},[s("div",{staticClass:"name line1"},[t._v("\n "+t._s(e.presell.product.store_name)+"\n ")]),t._v(" "),s("div",{staticClass:"sku"},[t._v("\n 库存:"+t._s(e.presell.product.stock)+" 销量:"+t._s(parseInt(e.presell.product.sales)+parseInt(e.presell.product.ficti?e.presell.product.ficti:0))+"\n ")]),t._v(" "),s("div",{staticClass:"price-box"},[s("div",{staticClass:"num"},[t._v("\n ¥ "+t._s(e.presell.product.price)+"\n ")]),t._v(" "),s("a",{staticClass:"more",attrs:{herf:"javascript:;"},on:{click:function(s){return s.stopPropagation(),t.lookGoods(e.presell.product.product_id)}}},[t._v("查看商品 >")])])])]):t._e()]:t._e(),t._v(" "),5===e.msn_type&&e.orderInfo&&e.orderInfo.order_id?t._l(e.orderInfo.orderProduct,(function(i,a){return s("div",{key:i.id,staticClass:"order-wrapper pad16"},[0==a?s("div",{staticClass:"img-box"},[s("img",{attrs:{src:i.cart_info.product.image,alt:""}})]):t._e(),t._v(" "),0==a?s("div",{staticClass:"order-info"},[s("div",{staticClass:"name line1"},[t._v("\n 订单号:"+t._s(e.orderInfo.order_sn)+"\n ")]),t._v(" "),s("div",{staticClass:"sku"},[t._v("\n 商品数量:"+t._s(e.orderInfo.total_num)+"\n ")]),t._v(" "),s("div",{staticClass:"price-box"},[s("div",{staticClass:"num"},[t._v("\n ¥ "+t._s(e.orderInfo.pay_price)+"\n ")]),t._v(" "),s("a",{staticClass:"more",attrs:{href:"javascript:;"},on:{click:function(s){return s.stopPropagation(),t.lookOrder(e)}}},[t._v("查看订单 >")])])]):t._e()])})):t._e(),t._v(" "),6===e.msn_type&&e.refundOrder&&e.refundOrder.refund_order_id?t._l(e.refundOrder.refundProduct,(function(i,a){return s("div",{key:i.id,staticClass:"order-wrapper pad16"},[0==a?s("div",{staticClass:"img-box"},[s("img",{attrs:{src:i.product.cart_info.product.image,alt:""}})]):t._e(),t._v(" "),0==a?s("div",{staticClass:"order-info"},[s("div",{staticClass:"name line1"},[t._v("\n 退款单号:"+t._s(e.refundOrder.refund_order_sn)+"\n ")]),t._v(" "),s("div",{staticClass:"sku"},[t._v("\n 商品数量:"+t._s(e.refundOrder.refund_num)+"\n ")]),t._v(" "),s("div",{staticClass:"price-box"},[s("div",{staticClass:"num"},[t._v("\n ¥ "+t._s(e.refundOrder.refund_price)+"\n ")]),t._v(" "),s("a",{staticClass:"more",attrs:{href:"javascript:;"},on:{click:function(s){return t.lookRefundOrder(e)}}},[t._v("查看退款单 >")])])]):t._e()])})):t._e()],2),t._v(" "),100===e.msn_type?[s("div",{staticClass:"recall-msg"},[t._v("你撤回了一条消息")])]:t._e(),t._v(" "),e.longpress&&t.press&&(new Date).getTime()/1e3-e.send_time<=120?s("div",{staticClass:"recall"},[(new Date).getTime()/1e3-e.send_time<=120?s("div",{staticClass:"recall-item",on:{click:function(s){return s.stopPropagation(),t.reverstMsg(e)}}},[t._v("撤回")]):t._e()]):t._e()],2)])}))],2)}))],2)]),t._v(" "),s("div",{staticClass:"chat-textarea"},[s("div",{staticClass:"chat-btn-wrapper"},[t.active&&t.isOnline&&!t.closed?s("div",{staticClass:"left-wrapper"},[s("div",{staticClass:"icon-item"},[s("el-upload",{attrs:{"show-file-list":!1,headers:t.header,data:t.uploadData,"on-success":t.handleSuccess,format:["jpg","jpeg","png","gif"],"on-format-error":t.handleFormatError,"before-upload":t.onBeforeUpload,action:t.upload}},[s("span",{staticClass:"iconfont icontupian1"})])],1),t._v(" "),s("div",{staticClass:"icon-item",on:{click:function(e){e.stopPropagation(),t.isEmoji=!t.isEmoji}}},[s("span",{staticClass:"iconfont iconbiaoqing1"})])]):t._e(),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isEmoji,expression:"isEmoji"}],staticClass:"emoji-box"},t._l(t.emojiList,(function(e,i){return s("div",{key:i,staticClass:"emoji-item"},[s("i",{staticClass:"em",class:e,on:{click:function(s){return s.stopPropagation(),t.select(e)}}})])})),0)]),t._v(" "),s("div",{staticClass:"textarea-box",staticStyle:{position:"relative"}},[s("el-input",{staticStyle:{"font-size":"14px"},attrs:{type:"textarea",rows:4,placeholder:"请输入文字内容"},nativeOn:{keydown:function(e){return t.chatKeydown(e)}},model:{value:t.chatCon,callback:function(e){t.chatCon=e},expression:"chatCon"}}),t._v(" "),s("div",{staticClass:"send-btn"},[s("el-button",{staticClass:"btns",attrs:{type:"primary",disabled:!t.chatCon.trim()},on:{click:function(e){return e.stopPropagation(),t.sendText(e)}}},[t._v("发送\n ")])],1)],1)])]),t._v(" "),s("div",{staticStyle:{width:"280px",overflow:"hidden"}},[s("rightMenu",{attrs:{user:t.active}})],1)],1)],1),t._v(" "),s("msgWindow",{ref:"msgWindow"}),t._v(" "),s("goodsDetail",{ref:"goodsDetail",attrs:{"goods-id":t.goodsId}}),t._v(" "),s("orderDetail",{ref:"orderDetail",attrs:{"order-id":t.orderId}}),t._v(" "),s("refundOrderDetail",{ref:"refundOrderDetail",attrs:{"order-id":t.orderId}})],1)},a=[],n=(s("ac6a"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"base-header"},[s("div",{staticClass:"left-wrapper"},[s("div",{staticClass:"user_info"},[s("img",{attrs:{src:t.merchant.avatar}}),t._v(" "),s("span",[t._v(t._s(t.merchant.name))]),t._v(" "),t.ServiceInfo?s("span",{staticStyle:{"margin-left":"3px"}},[t._v(" - "+t._s(t.ServiceInfo.nickname))]):t._e(),t._v(" "),s("div",{staticClass:"status-box"},[s("div",{staticClass:"status",class:t.isOnline?"on":"off",on:{click:function(e){return e.stopPropagation(),t.setOnline(e)}}},[s("span",{staticClass:"dot"}),t._v("\n "+t._s(t.isOnline?"在线":"下线")+"\n ")]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.onlinePop,expression:"onlinePop"}],staticClass:"online-down"},[s("div",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.changeOnline(!0)}}},[t.isOnline?s("span",{staticClass:"iconfont iconduihao"}):t._e(),s("i",{staticClass:"green"}),t._v("在线\n ")]),t._v(" "),s("div",{staticClass:"item",on:{click:function(e){return e.stopPropagation(),t.changeOnline(!1)}}},[t.isOnline?t._e():s("span",{staticClass:"iconfont iconduihao"}),s("i"),t._v("下线\n ")])])])]),t._v(" "),s("div",{staticClass:"out-btn",on:{click:function(e){return e.stopPropagation(),t.outLogin(e)}}},[t._v("退出登录")])])])}),r=[],o=s("c80c"),l=(s("96cf"),s("3b8d")),c=s("42e3"),d=s("83d6"),u=s("a78e"),v=s.n(u),m={name:"BaseHeader",props:{isOnline:Boolean},data:function(){return{merchant:{},onlinePop:!1,ServiceInfo:null}},computed:{},watch:{$route:function(){var t=v.a.get("ServiceInfo");t&&(this.ServiceInfo=JSON.parse(t))}},mounted:function(){var t=this;Object(c["l"])().then((function(e){t.merchant=e.data})),document.addEventListener("click",(function(){t.onlinePop=!1}));var e=v.a.get("ServiceInfo");e&&(this.ServiceInfo=JSON.parse(e))},methods:{setOnline:function(){this.onlinePop=!this.onlinePop},changeOnline:function(t){this.setOnline(),this.isOnline!=t&&this.$emit("online",t)},outLogin:function(){var t=this;this.$confirm("您确定退出登录当前账户吗?",{title:"退出登录确认"}).then(Object(l["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("user/logout");case 2:setTimeout((function(){location.href="".concat(d["roterPre"],"/login?redirect=").concat(t.$route.fullPath)}),300);case 3:case"end":return e.stop()}}),e)}))))}}},h=m,_=(s("68e0"),s("2877")),f=Object(_["a"])(h,n,r,!1,null,"7409452e",null),p=f.exports,g=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"chatList"},[s("div",{staticClass:"tab-head"},[s("ElInput",{attrs:{"prefix-icon":"el-icon-search",placeholder:"搜索用户名称",size:"mini"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit(e)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),t._v(" "),s("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.handleScroll,expression:"handleScroll"}],staticClass:"scroll-box",staticStyle:{height:"100%"},attrs:{"infinite-scroll-disabled":t.loading||t.loaded}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticStyle:{"text-align":"center","margin-bottom":"10px"}},[s("i",{staticClass:"el-icon-loading"})]),t._v(" "),t.userList.length>0?t._l(t.userList,(function(e,i){return s("div",{key:i,staticClass:"chat-item",class:{active:t.curId==e.service_user_id},on:{click:function(s){return t.selectUser(e)}}},[s("div",{staticClass:"avatar"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.user&&e.user.avatar,expression:"item.user && item.user.avatar"}],attrs:{alt:""}}),t._v(" "),s("div",{staticClass:"status",class:{off:0==e.is_online}})]),t._v(" "),s("div",{staticClass:"user-info"},[e.user?s("div",{staticClass:"hd"},[s("span",{staticClass:"name line1"},[t._v(t._s(e.user.nickname))]),t._v(" "),"routine"===e.user.user_type?[s("span",{staticClass:"label"},[t._v("小程序")])]:t._e(),t._v(" "),"h5"===e.user.user_type?[s("span",{staticClass:"label H5"},[t._v("WEB")])]:t._e(),t._v(" "),"wechat"===e.user.user_type?[s("span",{staticClass:"label wechat"},[t._v("公众号")])]:t._e(),t._v(" "),"apple"===e.user.user_type?[s("span",{staticClass:"label pc"},[t._v("APP")])]:t._e()],2):t._e(),t._v(" "),e.last?s("div",{staticClass:"bd line1"},[1===e.last.msn_type?[t._v(t._s(e.last.msn))]:t._e(),t._v(" "),2===e.last.msn_type?[t._v("[表情]")]:t._e(),t._v(" "),3===e.last.msn_type?[t._v("[图片]")]:t._e(),t._v(" "),4===e.last.msn_type?[t._v("[商品]")]:t._e(),t._v(" "),5===e.last.msn_type||6===e.last.msn_type?[t._v("[订单]")]:t._e()],2):t._e()]),t._v(" "),s("div",{staticClass:"right-box"},[e.last?s("div",{staticClass:"time"},[t._v(t._s(t._f("toDay")(e.last.create_time)))]):t._e(),t._v(" "),e.service_unread>0&&t.curId!=t.userList[0].service_user_id?s("div",{staticClass:"num"},[s("ElBadge",{attrs:{value:e.service_unread}},[s("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e()])])})):t._e(),t._v(" "),t.loaded&&!t.userList.length?s("empty",{attrs:{msg:"暂无用户列表",status:"1"}}):t._e()],2)])},C=[],b=s("5a0c"),y=s.n(b),w=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"empty-wrapper"},[1==t.status?[i("img",{attrs:{src:s("011a"),alt:""}})]:t._e(),t._v(" "),2==t.status?[i("img",{attrs:{src:s("4112"),alt:""}})]:t._e(),t._v(" "),3==t.status?[i("img",{attrs:{src:s("468b"),alt:""}})]:t._e(),t._v(" "),4==t.status?[i("img",{attrs:{src:s("ea87"),alt:""}})]:t._e(),t._v(" "),5==t.status?[i("img",{attrs:{src:s("5f70"),alt:""}})]:t._e(),t._v(" "),6==t.status?[i("img",{attrs:{src:s("060a"),alt:""}})]:t._e(),t._v(" "),i("p",[t._v(t._s(t.msg))])],2)},x=[],D=(s("c5f6"),{name:"Empty",props:{status:{type:[String,Number],default:1},msg:{type:String,default:""}}}),k=D,j=(s("ef44"),Object(_["a"])(k,w,x,!1,null,"bf5ce538",null)),O=j.exports,L={name:"ChatList",components:{empty:O},filters:{toDay:function(t){return t?y()(t).format("M月D日 HH:mm"):""}},data:function(){return{keyword:"",userList:[],curId:"",page:1,limit:15,loaded:!1,loading:!1}},mounted:function(){this.getList()},methods:{submit:function(){this.page=1,this.loaded=!1,this.loading=!1,this.getList()},updateChatList:function(){var t=1,e=(this.page-1)*this.limit;this.getList({page:t,limit:e})},getList:function(t){var e=this;!t&&this.loaded||!t&&this.loading||(t||(this.loading=!0),Object(c["o"])({page:t?t.page:this.page,limit:t?t.limit:this.limit,keyword:this.keyword}).then((function(s){var i=s.data.list;t?e.userList=i:(e.loaded=i.length0&&e.$emit("active",i[0]),e.page++,e.loading=!1)})))},selectUser:function(t){this.curId!=t.service_user_id&&(t.service_unread=0,this.curId=t.service_user_id,this.$emit("active",t))},handleScroll:function(){this.getList()}}},S=L,M=(s("5611"),Object(_["a"])(S,g,C,!1,null,"8ef36ac2",null)),$=M.exports,A=["em-tlj-1","em-tlj-2","em-tlj-3","em-tlj-4","em-tlj-5","em-tlj-6","em-tlj-7","em-tlj-8","em-tlj-9","em-tlj-10","em-tlj-11","em-tlj-12","em-tlj-13","em-tlj-14","em-tlj-15","em-tlj-16","em-tlj-17","em-tlj-18","em-tlj-19","em-tlj-20","em-tlj-21","em-tlj-22","em-tlj-23","em-tlj-24","em-tlj-25","em-tlj-26","em-tlj-27","em-tlj-28","em-tlj-29","em-tlj-30","em-tlj-31","em-tlj-32","em-tlj-33","em-tlj-34","em-tlj-35","em-tlj-36","em-tlj-37","em-tlj-38","em-tlj-39","em-tlj-40","em-tlj-41","em-tlj-42","em-tlj-43","em-tlj-44","em-tlj-45","em-tlj-46","em-tlj-47","em-tlj-48","em-tlj-49","em-tlj-50","em-tlj-51","em-tlj-52","em-tlj-53","em-tlj-54","em-tlj-55","em-tlj-56","em-tlj-57","em-tlj-58","em-tlj-59","em-tlj-60","em-tlj-61","em-tlj-62","em-tlj-63","em-tlj-64","em-tlj-65","em-tlj-66","em-tlj-67","em-tlj-68","em-tlj-69","em-tlj-70","em-tlj-71","em-tlj-72","em-tlj-73","em-tlj-74","em-tlj-75","em-tlj-76","em-tlj-77","em-tlj-78","em-tlj-79","em-tlj-80","em-tlj-81","em-tlj-82","em-tlj-83","em-tlj-84","em-tlj-85","em-tlj-86","em-tlj-87","em-tlj-88","em-tlj-89","em-tlj-90","em-tlj-91","em-tlj-92","em-tlj-93","em-tlj-94","em-tlj-95","em-tlj-96"],E=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:"商品详情",visible:t.dialogVisible,width:"375px","show-close":!1,top:"6vh","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"title-box",attrs:{slot:"title"},slot:"title"},[t._v("商品详情")]),t._v(" "),s("div",{staticClass:"goods_detail",staticStyle:{height:"600px"}},[s("el-scrollbar",{staticStyle:{height:"100%"}},[s("div",{staticStyle:{width:"375px"}},[s("div",{staticClass:"swiper-box"},[s("el-carousel",{attrs:{"indicator-position":"outside",autoplay:""}},t._l(t.goodsInfo.slider_image,(function(t,e){return s("el-carousel-item",{key:e},[s("div",{staticClass:"demo-carousel"},[s("img",{attrs:{src:t,alt:""}})])])})),1)],1),t._v(" "),s("div",{staticClass:"goods_info"},[s("div",{staticClass:"number-wrapper"},[s("div",{staticClass:"price"},[s("span",[t._v("¥")]),t._v(t._s(t.goodsInfo.price))])]),t._v(" "),s("div",{staticClass:"name"},[t._v(t._s(t.goodsInfo.store_name))]),t._v(" "),s("div",{staticClass:"msg"},[s("div",{staticClass:"item"},[t._v("市场价:¥"+t._s(t.goodsInfo.ot_price))]),t._v(" "),s("div",{staticClass:"item"},[t._v("库存:"+t._s(t.goodsInfo.stock))]),t._v(" "),s("div",{staticClass:"item"},[t._v("销量:"+t._s(t.goodsInfo.sales))])])]),t._v(" "),s("div",{staticClass:"con-box"},[s("div",{staticClass:"title-box"},[t._v("商品介绍")]),t._v(" "),t.goodsInfo.content?s("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsInfo.content.content)}}):t._e()])])])],1)])},I=[],T={name:"GoodsDetail",data:function(){return{value2:0,dialogVisible:!1,goodsInfo:{content:{}}}},mounted:function(){},methods:{openBox:function(t){this.dialogVisible=!0,this.getInfo(t)},getInfo:function(t){var e=this;Object(c["n"])(t).then((function(t){e.goodsInfo=t.data}))},handleClose:function(){this.dialogVisible=!1}}},P=T,F=(s("d6c7"),s("ed97"),Object(_["a"])(P,E,I,!1,null,"39697127",null)),B=F.exports,V=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"right-wrapper"},[[t.user?s("div",{staticClass:"user-wrapper"},[s("div",{staticClass:"user"},[t.user.user?s("div",{staticClass:"avatar"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.user.user.avatar,expression:"user.user.avatar"}],attrs:{alt:""}})]):t._e(),t._v(" "),s("div",{staticClass:"name line1"},[t._v(t._s(t.user.user.nickname))]),t._v(" "),s("div",{staticClass:"label"},["routine"===t.user.user.user_type?[s("span",{staticClass:"label routine"},[t._v("小程序")])]:t._e(),t._v(" "),"h5"===t.user.user.user_type?[s("span",{staticClass:"label H5"},[t._v("WEB")])]:t._e(),t._v(" "),"wechat"===t.user.user.user_type?[s("span",{staticClass:"label wechat"},[t._v("公众号")])]:t._e(),t._v(" "),"apple"===t.user.user.user_type?[s("span",{staticClass:"label pc"},[t._v("APP")])]:t._e()],2)]),t._v(" "),s("div",{staticClass:"user-info"},[s("div",{staticClass:"item"},[s("span",[t._v("手机号: ")]),t._v("\n "+t._s(t.user.user.phone||"暂无")+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("备 注: ")]),t._v(" "),t.showText?t._e():[t.user.mark?s("div",{staticStyle:{"word-wrap":"break-word"},on:{click:t.showTextFn}},[t._v(t._s(t.user.mark))]):s("div",{staticClass:"item-mark",on:{click:t.showTextFn}},[t._v("请输入")])],t._v(" "),t.showText?s("ElInput",{ref:"input",attrs:{type:"textarea",rows:4},on:{blur:t.changeMark},model:{value:t.user.mark,callback:function(e){t.$set(t.user,"mark",e)},expression:"user.mark"}}):t._e()],2)]),t._v(" "),s("div",{staticClass:"user-info"},[s("div",{staticClass:"item"},[s("span",[t._v("推荐人: ")]),t._v(" "),t.user.user.spread?[t._v(t._s(t.user.user.spread.nickname))]:[t._v("暂无")]],2),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("余 额: ")]),t._v("\n "+t._s(t.user.user.now_money)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("推广员: ")]),t._v(t._s(t.user.user.is_promoter?"是":"否")+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("生 日: ")]),t._v("\n "+t._s(t._f("getDay")(t.user.user.birthday))+"\n ")])])]):s("empty",{attrs:{status:"2",msg:"暂无用户信息"}})]],2)},N=[],H={name:"RightMenu",components:{empty:O},filters:{getDay:function(t){return t?y()(t).format("YYYY年M月D日"):"未知"}},props:{user:{}},data:function(){return{mark:"",showText:!1,limit:10,page:1}},methods:{showTextFn:function(){var t=this;this.showText=!0,this.$nextTick((function(){t.$refs.input.focus()}))},changeMark:function(){var t=this;this.showText=!1,Object(c["e"])(this.user.uid,this.user.mark).then((function(e){t.$message.success("设置成功")})).catch((function(e){t.$message.error("设置失败")}))}}},z=H,W=(s("8933"),Object(_["a"])(z,V,N,!1,null,"2493df8c",null)),Y=W.exports,R=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:"商品详情",visible:t.dialogVisible,width:"600px","show-close":!0,top:"10vh","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("div",{staticClass:"head",attrs:{slot:"title"},slot:"title"},[s("div",{staticClass:"tab-bar"},t._l(t.tabList,(function(e,i){return s("a",{key:i,staticClass:"tab-item",class:{on:e.key==t.tabCur},attrs:{href:"javascript:;"},on:{click:function(s){return t.bindTab(e)}}},[t._v(t._s(e.title))])})),0),t._v(" "),s("div",{staticClass:"search-box"},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"搜索快捷回复",size:"small"},on:{"on-enter":t.bindSearch},model:{value:t.searchTxt,callback:function(e){t.searchTxt=e},expression:"searchTxt"}},[s("i",{staticClass:"el-icon-search",attrs:{slot:"suffix"},slot:"suffix"})])],1)]),t._v(" "),s("div",{staticClass:"msg-box"},[s("div",{staticClass:"main"},[s("div",{staticClass:"left-box",staticStyle:{height:"365px"}},[s("el-scrollbar",{staticStyle:{height:"100%"}},[t.tabCur?s("div",{staticClass:"left-item"},[s("p",[t._v("分组")]),t._v(" "),s("span",{staticClass:"el-icon-plus",on:{click:t.openAddSort}})]):t._e(),t._v(" "),t._l(t.sortList,(function(e,i){return s("div",{key:i,staticClass:"left-item",class:{on:t.cateId==e.id},on:{click:function(s){return t.selectSort(e)}}},[s("p",[t._v(t._s(e.name))]),t._v(" "),t.tabCur?[s("span",{staticClass:"iconfont iconDot",on:{click:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"top",void 0,s.key,void 0)?null:t.bindEdit(e,i)}}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"item.isEdit"}],staticClass:"edit-wrapper"},[s("div",{staticClass:"edit-item",on:{click:function(s){return t.editSort(e)}}},[t._v("编辑")]),t._v(" "),s("div",{staticClass:"edit-item",on:{click:function(s){return t.delSort(e,"删除分类",i)}}},[t._v("删除")])]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"item.isEdit"}],staticClass:"edit-bg",on:{click:function(t){t.stopPropagation(),e.isEdit=!1}}})]:t._e()],2)}))],2)],1),t._v(" "),s("div",{staticClass:"right-box"},[s("div",{staticClass:"right-scroll",staticStyle:{height:"360px"}},[s("el-scrollbar",{staticStyle:{height:"100%"}},[t.tabCur?s("div",{staticClass:"msg-item add-box",staticStyle:{"margin-top":"0"}},[s("div",{staticClass:"box2"},[s("el-input",{staticClass:"input-box",staticStyle:{width:"100%"},attrs:{placeholder:"输入标题(选填)"},on:{focus:t.bindFocus},model:{value:t.addMsg.title,callback:function(e){t.$set(t.addMsg,"title",e)},expression:"addMsg.title"}}),t._v(" "),s("div",{staticClass:"conBox",class:{active:t.addMsg.isEdit}},[s("div",{staticClass:"content"},[s("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入内容"},model:{value:t.addMsg.message,callback:function(e){t.$set(t.addMsg,"message",e)},expression:"addMsg.message"}})],1),t._v(" "),s("div",{staticClass:"bom"},[s("div",{staticClass:"select"},[s("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.addMsg.cateId,callback:function(e){t.$set(t.addMsg,"cateId",e)},expression:"addMsg.cateId"}},t._l(t.sortList,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),t._v(" "),s("div",{staticClass:"btns-box"},[s("el-button",{attrs:{size:"small"},on:{click:function(e){e.stopPropagation(),t.addMsg.isEdit=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return e.stopPropagation(),t.bindAdd(e)}}},[t._v("保存")])],1)])])],1)]):t._e(),t._v(" "),t._l(t.list,(function(e,i){return e.id?s("div",{key:i,staticClass:"msg-item"},[e.isEdit?s("div",{staticClass:"box2"},[s("el-input",{staticClass:"input-box",staticStyle:{width:"100%"},attrs:{placeholder:"输入标题(选填)"},model:{value:e.title,callback:function(s){t.$set(e,"title",s)},expression:"item.title"}}),t._v(" "),s("div",{staticClass:"content"},[s("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入内容"},model:{value:e.message,callback:function(s){t.$set(e,"message",s)},expression:"item.message"}})],1),t._v(" "),s("div",{staticClass:"bom"},[s("div",{staticClass:"select"},[s("el-select",{staticStyle:{width:"100px"},attrs:{size:"small"},model:{value:t.cateId,callback:function(e){t.cateId=e},expression:"cateId"}},t._l(t.sortList,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),t._v(" "),s("div",{staticClass:"btns-box"},[s("el-button",{on:{click:function(t){t.stopPropagation(),e.isEdit=!1}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return s.stopPropagation(),t.updataMsg(e)}}},[t._v("保存")])],1)])],1):s("div",{staticClass:"box1"},[s("div",{staticClass:"txt-box",on:{click:function(s){return t.bindRadio(e)}}},[e.title?s("span",{staticClass:"title"},[t._v(t._s(t._f("filtersTitle")(e.title)))]):t._e(),t._v(" "),e.message?s("span",[t._v(t._s(t._f("filtersCon")(e.message)))]):t._e()]),t._v(" "),t.tabCur?s("div",{staticClass:"edit-box"},[s("span",{staticClass:"iconfont iconbianji",on:{click:function(s){return s.stopPropagation(),t.editMsg(e)}}}),t._v(" "),s("span",{staticClass:"iconfont iconshanchu",on:{click:function(s){return s.stopPropagation(),t.delMsg(e,"删除话术",i)}}})]):t._e()])]):t._e()}))],2)],1)])]),t._v(" "),s("el-dialog",{staticClass:"class-box",attrs:{visible:t.isAddSort,title:t.maskTitle,width:"304px","append-to-body":!0,modal:!1,"footer-hide":!0},on:{"update:visible":function(e){t.isAddSort=e}}},[s("div",{staticClass:"item"},[s("span",[t._v("分组名称:")]),t._v(" "),s("el-input",{attrs:{size:"small",placeholder:"分组名称"},model:{value:t.classTitle,callback:function(e){t.classTitle=e},expression:"classTitle"}})],1),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("分组排序:")]),t._v(" "),s("el-input",{attrs:{size:"small",placeholder:"输入排序"},model:{value:t.classSort,callback:function(e){t.classSort=e},expression:"classSort"}})],1),t._v(" "),s("div",{staticClass:"btn"},[s("el-button",{staticStyle:{background:"#1890ff",width:"100%"},attrs:{type:"primary"},on:{click:t.addServiceCate}},[t._v("确定")])],1)])],1)])},U=[],G=(s("7f7f"),s("55dd"),{name:"MsgWindow",filters:{filtersTitle:function(t){var e=37;if(t.length>e){var s=t.substring(0,e);return"".concat(s,"...")}return t},filtersCon:function(t){var e=113;if(t.length>e){var s=t.substring(0,e);return"".concat(s,"...")}return t}},data:function(){return{ops:{vuescroll:{mode:"native",enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0,pullRefresh:{enable:!1},pushLoad:{enable:!1,auto:!0,autoLoadDistance:10}},bar:{background:"#393232",opacity:".5",size:"2px"}},isScroll:!0,page:1,limit:10,tabCur:1,tabList:[{title:"个人库",key:1},{title:"公共库",key:0}],searchTxt:"",list:[{isEdit:!1}],model1:"",msgTitle:"",sortList:[],cateId:"",addMsg:{title:"",message:"",cateId:"",isEdit:!1},isAddSort:!1,classTitle:"",classSort:"",maskTitle:"",editObj:{},dialogVisible:!1}},mounted:function(){},methods:{editMsg:function(t){t.isEdit=!0,this.cateId=t.cate_id},handleClose:function(){this.dialogVisible=!1},openBox:function(){this.dialogVisible=!0},bindEdit:function(t,e){t.isEdit=!t.isEdit},bindTab:function(t){this.tabCur=t.key,this.cateId="",this.sortList=[],this.isScroll=!0,this.page=1,this.list=[],this.serviceCate()},bindSearch:function(){this.isScroll=!0,this.page=1,this.list=[],this.getList()},selectSort:function(t){this.cateId!=t.id&&(this.sortList.forEach((function(e,s){e.id!=t.id&&(e.isEdit=!1)})),this.cateId=t.id,this.isScroll=!0,this.page=1,this.list=[],this.getList())},delSort:function(t,e,s){var i=this,a={title:e,num:s,url:"/service/cate/".concat(t.id),method:"DELETE",ids:"",kefu:!0};this.$modalSure(a).then((function(t){i.$Message.success(t.msg),i.isScroll=!0,i.page=1,i.list=[],i.cateId="",i.serviceCate()})).catch((function(t){i.$Message.error(t.msg)}))},serviceCate:function(){var t=this;Object(c["serviceCate"])({type:this.tabCur}).then((function(e){e.data.data.forEach((function(t,e){t.isEdit=!1})),t.sortList=e.data.data,""===t.cateId&&(t.cateId=e.data.data[0].id),t.getList()}))},getList:function(){var t=this;this.isScroll&&Object(c["speeChcraft"])({page:this.page,limit:this.limit,title:this.searchTxt,cate_id:this.cateId,type:this.tabCur}).then((function(e){t.isScroll=e.data.length>=t.limit,e.data.forEach((function(t,e){t.isEdit=!1})),t.page++,t.list=t.list.concat(e.data)}))},updataMsg:function(t){var e=this;Object(c["serviceCateUpdate"])(t.id,{title:t.title,cate_id:this.cateId,message:t.message}).then((function(s){e.$Message.success("修改成功"),t.isEdit=!1})).catch((function(s){e.$Message.error(s.msg),t.isEdit=!0}))},bindFocus:function(){this.list.forEach((function(t,e){t.isEdit=!1})),this.addMsg.isEdit=!0},openAddSort:function(){this.isAddSort=!0,this.maskTitle="添加分组",this.editObj.id=0},bindAdd:function(){var t=this;Object(c["addSpeeChcraft"])({title:this.addMsg.title,cate_id:this.addMsg.cateId,message:this.addMsg.message}).then((function(e){t.addMsg.title="",t.addMsg.message="",t.addMsg.cateId="",t.addMsg.isEdit=!1,t.$Message.success(e.msg),e.data.isEdit=!1,t.page=1,t.list=[],t.isScroll=!0,t.serviceCate()})).catch((function(e){t.$Message.error(e.msg)}))},delMsg:function(t,e,s,i){var a=this,n={title:e,num:s,url:"service/speechcraft/".concat(t.id),method:"DELETE",ids:"",kefu:!0};this.$modalSure(n).then((function(t){a.$Message.success(t.msg),a.list.splice(s,1)})).catch((function(t){a.$Message.error(t.msg)}))},addServiceCate:function(){var t=this;this.editObj.id?Object(c["editServiceCate"])(this.editObj.id,{name:this.classTitle,sort:this.classSort}).then((function(e){t.classTitle="",t.classSort="",t.$Message.success(e.msg),t.isAddSort=!1,t.page=1,t.list=[],t.isScroll=!0,t.serviceCate()})).catch((function(e){t.classTitle="",t.classSort="",t.$Message.error(res.msg)})):Object(c["addServiceCate"])({name:this.classTitle,sort:this.classSort}).then((function(e){t.classTitle="",t.classSort="",t.$Message.success(e.msg),t.isAddSort=!1,t.page=1,t.list=[],t.isScroll=!0,t.serviceCate()})).catch((function(e){t.classTitle="",t.classSort="",t.$Message.error(res.msg)}))},editSort:function(t){this.classSort=t.sort,this.classTitle=t.name,this.isAddSort=!0,this.maskTitle="编辑分组",this.editObj=t},handleReachBottom:function(){this.getList()},bindRadio:function(t){this.$emit("activeTxt",t.message)}}}),q=G,J=(s("6371"),s("21b5"),Object(_["a"])(q,R,U,!1,null,"af82a944",null)),Q=J.exports,Z=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-dialog",{attrs:{title:"订单详情",visible:t.dialogVisible,width:"700px","show-close":!0,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.orderDetail?s("div",{staticClass:"order_detail"},[s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("订单信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("订单编号:")]),t._v(t._s(t.orderDetail.order_sn)+"\n ")]),t._v(" "),s("div",{staticClass:"item",staticStyle:{color:"red"}},[0===t.orderDetail.order_type?s("span",{staticStyle:{color:"red"}},[t._v("订单状态:"+t._s(t._f("orderStatusFilter")(t.orderDetail.status)))]):s("span",{staticStyle:{color:"red"}},[t._v("订单状态:"+t._s(t._f("cancelOrderStatusFilter")(t.orderDetail.status)))])])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("商品数量:")]),t._v(t._s(t.orderDetail.total_num)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("商品总价:")]),t._v(t._s(t.orderDetail.total_price)+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("优惠券金额:")]),t._v(t._s(t.orderDetail.coupon_price)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("交付邮费:")]),t._v(t._s(t.orderDetail.pay_postage)+"\n ")])]),t._v(" "),t.orderDetail.integral>0?s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("抵扣积分:")]),t._v(t._s(t.orderDetail.integral)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("积分抵扣金额:")]),t._v(t._s(t.orderDetail.integral_price)+"\n ")])]):t._e(),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("实际支付:")]),t._v(t._s(t.orderDetail.finalOrder?parseFloat(t.orderDetail.finalOrder.pay_price)+parseFloat(t.orderDetail.pay_price):t.orderDetail.pay_price)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("支付方式:")]),t._v(t._s(t._f("payTypeFilter")(t.orderDetail.pay_type))+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("创建时间:")]),t._v(t._s(t.orderDetail.create_time)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("推广人:")]),t._v("--\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("一级佣金:")]),t._v(t._s(parseFloat(t.orderDetail.extension_one))+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("二级佣金:")]),t._v(t._s(parseFloat(t.orderDetail.extension_two))+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("订单类型:")]),t._v(t._s(2==t.orderDetail.order_type?"虚拟订单":1==t.orderDetail.order_type?"核销订单":"普通订单")+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("活动类型:")]),t._v(t._s(t._f("activityTypeFilter")(t.orderDetail.activity_type))+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("买家备注:")]),t._v(t._s(t.orderDetail.mark||"--")+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("商家备注:")]),t._v(t._s(t.orderDetail.remark||"--")+"\n ")])])])]),t._v(" "),s("div",{staticClass:"goods-box"},[s("el-table",{attrs:{data:t.orderList,size:"mini"}},[s("el-table-column",{attrs:{prop:"product_id",label:"商品ID","min-width":"80"}}),t._v(" "),s("el-table-column",{attrs:{prop:"productInfo",label:"商品名称","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"product_info"},[s("img",{attrs:{src:e.row.cart_info.productAttr.image,alt:""}}),t._v(" "),s("p",[t._v(t._s(e.row.cart_info.product.store_name))])])]}}],null,!1,1669425646)}),t._v(" "),s("el-table-column",{attrs:{prop:"product_price",label:"商品售价","min-width":"80"}}),t._v(" "),s("el-table-column",{attrs:{prop:"product_num",label:"商品数量","min-width":"80"}})],1)],1),t._v(" "),"1"===t.orderDetail.delivery_type||"4"===t.orderDetail.delivery_type?s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("物流信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[t._v("快递公司:"+t._s(t.orderDetail.delivery_name))]),t._v(" "),s("div",{staticClass:"item"},[t._v("快递单号:"+t._s(t.orderDetail.delivery_id)+"\n "),s("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])])]):t._e(),t._v(" "),"2"===t.orderDetail.delivery_type?s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("配送信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[t._v("送货人姓名:"+t._s(t.orderDetail.delivery_name))]),t._v(" "),s("div",{staticClass:"item"},[t._v("送货人姓名:"+t._s(t.orderDetail.delivery_name))])])])]):t._e()]):t._e()]),t._v(" "),s("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px","before-close":t.close},on:{"update:visible":function(e){t.dialogLogistics=e}}},[t.orderDetail?s("logistics-from",{attrs:{"order-detail":t.orderDetail,result:t.result}}):t._e()],1)],1)},K=[],X=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"logistics acea-row row-top"},[t._m(0),t._v(" "),s("div",{staticClass:"logistics_cent"},[s("span",[t._v("物流公司:"+t._s(t.logisticsName?t.orderDetail.delivery_type:t.orderDetail.delivery_name))]),t._v(" "),s("span",[t._v("物流单号:"+t._s(t.orderDetail.delivery_id))])])]),t._v(" "),s("div",{staticClass:"acea-row row-column-around trees-coadd"},[s("div",{staticClass:"scollhide"},[s("el-timeline",t._l(t.result,(function(e,i){return s("el-timeline-item",{key:i},[s("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),s("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])])},tt=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"logistics_img"},[i("img",{attrs:{src:s("bd9b")}})])}],et={name:"Logistics",props:{orderDetail:{type:Object,default:null},result:{type:Array,default:function(){return[]}},logisticsName:{type:String,default:""}}},st=et,it=(s("67cd"),Object(_["a"])(st,X,tt,!1,null,"ccb6ad70",null)),at=it.exports,nt={name:"OrderDetail",components:{logisticsFrom:at},data:function(){return{dialogLogistics:!1,orderDetail:{},result:{},orderList:[],dialogVisible:!1}},mounted:function(){},methods:{openBox:function(t){this.dialogVisible=!0,this.getOrderInfo(t)},handleClose:function(){this.dialogVisible=!1},getOrderInfo:function(t){var e=this;Object(c["m"])(t).then((function(t){e.orderDetail=t.data,e.orderList=t.data.orderProduct}))},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},close:function(){this.dialogLogistics=!1},getOrderData:function(){var t=this;Object(c["h"])(this.orderDetail.order_id).then(function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(s){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=s.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}}},rt=nt,ot=(s("8841"),Object(_["a"])(rt,Z,K,!1,null,"72cd2a05",null)),lt=ot.exports,ct=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-dialog",{attrs:{title:"退款单详情",visible:t.dialogVisible,width:"700px","show-close":!0,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.orderDetail?s("div",{staticClass:"order_detail"},[s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("用户信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("用户昵称:")]),t._v(t._s(t.orderDetail.user&&t.orderDetail.user.nickname)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("退货人:")]),t._v(t._s(t.orderDetail.order&&t.orderDetail.order.real_name)+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("联系电话:")]),t._v(t._s(t.orderDetail.order&&t.orderDetail.order.user_phone)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("退货地址:")]),t._v(t._s(t.orderDetail.order&&t.orderDetail.order.user_address)+"\n ")])])])]),t._v(" "),s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("订单信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("订单编号:")]),t._v(t._s(t.orderDetail.order&&t.orderDetail.order.order_sn)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("订单状态:")]),t._v(t._s(t._f("orderRefundFilter")(t.orderDetail.status))+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("退款单号:")]),t._v(t._s(t.orderDetail.refund_order_sn)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("退款商品名称:")]),t._v(" "),s("span",{staticClass:"product_name"},t._l(t.orderDetail.refundProduct,(function(e,i){return s("span",{key:i},[e.product&&e.product.cart_info&&e.product.cart_info.product?s("span",[t._v(t._s(e.product.cart_info.product.store_name))]):t._e()])})),0)])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("退款商品件数:")]),t._v(t._s(t.orderDetail.refund_num)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("退款总金额:")]),t._v(t._s(t.orderDetail.refund_price)+"\n ")])]),t._v(" "),s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[s("span",[t._v("创建时间:")]),t._v(t._s(t.orderDetail.create_time)+"\n ")]),t._v(" "),s("div",{staticClass:"item"},[s("span",[t._v("商家备注:")]),t._v(t._s(t.orderDetail.mer_mark)+"\n ")])])])]),t._v(" "),s("div",{staticClass:"goods-box"},[s("el-table",{attrs:{data:t.tableDataLog.data,size:"mini"}},[s("el-table-column",{attrs:{prop:"refund_order_id",align:"center",label:"退款单ID","min-width":"80"}}),t._v(" "),s("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),t._v(" "),s("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],1)],1),t._v(" "),2!=t.orderDetail.status&&3!=t.orderDetail.status||2!=t.orderDetail.refund_type?t._e():s("div",{staticClass:"msg-box",staticStyle:{border:"none"}},[s("div",{staticClass:"box-title"},[t._v("物流信息")]),t._v(" "),s("div",{staticClass:"msg-wrapper"},[s("div",{staticClass:"msg-item"},[s("div",{staticClass:"item"},[t._v("快递公司:"+t._s(t.orderDetail.delivery_name))]),t._v(" "),s("div",{staticClass:"item"},[t._v("快递单号:"+t._s(t.orderDetail.delivery_id)+"\n "),s("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])])])]):t._e()]),t._v(" "),s("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px","before-close":t.close},on:{"update:visible":function(e){t.dialogLogistics=e}}},[t.orderDetail?s("logistics-from",{attrs:{"order-detail":t.orderDetail,result:t.result}}):t._e()],1)],1)},dt=[],ut={name:"RefundOrderDetail",components:{logisticsFrom:at},data:function(){return{dialogLogistics:!1,orderDetail:{},result:{},dialogVisible:!1,LogLoading:!1,tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0}}},mounted:function(){},methods:{openBox:function(t){this.dialogVisible=!0,this.getOrderInfo(t)},handleClose:function(){this.dialogVisible=!1},getOrderInfo:function(t){var e=this;Object(c["p"])(t).then((function(t){e.orderDetail=t.data}))},onOrderLog:function(t){var e=this;this.LogLoading=!0,this.order_id=t,Object(c["r"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count,e.LogLoading=!1})).catch((function(t){e.$message.error(t.message),e.LogLoading=!1}))},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},close:function(){this.dialogLogistics=!1},getOrderData:function(){var t=this;Object(c["q"])(this.orderDetail.refund_order_id).then(function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(s){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=s.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}}},vt=ut,mt=(s("5dc8"),Object(_["a"])(vt,ct,dt,!1,null,"42bcc57e",null)),ht=mt.exports,_t=s("5f87"),ft=s("bbcc"),pt=(s("a481"),function(t){this.ws=new WebSocket(gt(t)),this.ws.onopen=this.onOpen.bind(this),this.ws.onerror=this.onError.bind(this),this.ws.onmessage=this.onMessage.bind(this),this.ws.onclose=this.onClose.bind(this)});function gt(t){t=t.replace("https:","wss:"),t=t.replace("http:","ws:");var e="https:"===document.location.protocol;return e?t.replace("ws:","wss:"):t.replace("wss:","ws:")}pt.prototype={vm:function(t){this.vm=t},close:function(){clearInterval(this.timer),this.ws.close()},onOpen:function(){this.init(),this.vm.$emit("socket_open")},init:function(){var t=this;this.loaded=!0,this.timer=setInterval((function(){t.send({type:"ping"})}),1e4)},onLoad:function(t){this.loaded?t():this.vm.$once("socket_open",t)},send:function(t){return this.ws.send(JSON.stringify(t))},onMessage:function(t){var e=JSON.parse(t.data),s=e.type,i=e.data,a=void 0===i?{}:i;this.vm.$emit(s,a)},onClose:function(){clearInterval(this.timer),this.vm.$emit("socket_close")},onError:function(t){this.vm.$emit("socket-error",t)}},pt.prototype.constructor=pt;var Ct=pt,bt=s("5c96"),yt=s("16b0"),wt=function(t,e){e=1*e||1;var s=[];return t.forEach((function(t,i){i%e===0&&s.push([]),s[s.length-1].push(t)})),s},xt={name:"PCList",components:{baseHeader:p,chatList:$,goodsDetail:B,orderDetail:lt,refundOrderDetail:ht,msgWindow:Q,rightMenu:Y},data:function(){return{mp3:new Audio(yt),active:null,isEmoji:!1,chatCon:"",emojiGroup:wt(A,20),emojiList:A,userActive:{},kefuInfo:{},chatList:[],page:1,limit:20,loaded:!1,loading:!1,online:!0,goodsId:"",isOrder:!1,isOnline:!1,closed:!1,orderId:"",upload:"",header:{},uploadData:{filename:"file"},tourist:0,socket:null,press:!1}},mounted:function(){var t=this;this.upload=ft["a"].https+"/upload/file",this.header["X-Token"]=Object(_t["a"])(),this.createSocket(),this.$on("socket_open",(function(){t.isOnline=!0,t.active&&t.socket.send({data:{mer_id:t.active.mer_id,uid:t.active.uid},type:"service_chat_start"})})),this.$on(["reply","chat","send_chat"],(function(e){if(e.longpress=!1,t.chatList.length>0&&t.chatList[t.chatList.length-1]["children"].length>0){var s=t.chatList[t.chatList.length-1]["children"].length-1,i=t.chatList[t.chatList.length-1]["children"][s];e.send_time-i.send_time>300?t.chatList.push({time:e.create_time,children:[e]}):t.chatList[t.chatList.length-1]["children"].push(e)}else t.chatList.push({time:e.create_time,children:[e]});t.active&&e.uid===t.active.uid&&(t.active.last=e);var a=t.$refs.chatList.userList.indexOf(t.active);t.$refs.chatList.userList.splice(a,1),t.$refs.chatList.userList.unshift(t.active),t.deleteMsg(e),t.$nextTick((function(){t.$refs.scrollBox.scrollTop=t.$refs.scrollBox.scrollHeight-t.$refs.scrollBox.clientHeight}))})),this.$on("back_chat",(function(e){t.mp3.play(),t.$refs.chatList.updateChatList()})),this.$on(["socket_error","socket_close"],(function(){!t.closed&&t.isOnline?bt["MessageBox"].confirm("连接失败,是否重新连接?","提示").then((function(e){t.createSocket()})):t.isOnline=!1})),this.$on("err_tip",(function(e){t.$message.error(e)}))},methods:{onBeforeUpload:function(){return this.active?!this.isOnline||this.closed?(this.$message.error("已离线,发送失败"),!1):void 0:(this.$message.error("请选择发送用户"),!1)},chatKeydown:function(t){13===t.keyCode&&(t.stopPropagation(),t.preventDefault(),t.ctrlKey?this.chatCon+="\n":this.chatCon&&this.sendText())},createSocket:function(){var t="".concat(ft["a"].wsSocketUrl,"?type=ser&token=")+Object(_t["a"])();this.socket=new Ct(t),this.socket.vm(this)},changeOnline:function(t){this.isOnline=t,t?this.createSocket():(this.socket.send({data:{},type:"service_chat_end"}),this.socket.close())},showReverst:function(t){t.longpress=!0,this.press=!0},reverstMsg:function(t){this.socket.send({data:{msn:t.service_log_id,msn_type:100,mer_id:this.chatId},type:"send_chat"}),setTimeout((function(){t.longpress=!1}),300)},deleteMsg:function(t){var e=this;e.chatList.forEach((function(e,s){e.children.forEach((function(s,i){100==t.msn_type&&t.msn==s.service_log_id&&e.children.splice(i,1)}))}))},roomClick:function(t){!this.isEmoji||t.target.classList.contains("emoji-box")||t.target.classList.contains("emoji-item")||t.target.classList.contains("em")||(this.isEmoji=!1)},activeUser:function(t){var e=this;this.active=t,this.chatList=[],document.title="正在和".concat(t.user.nickname,"对话中"),this.page=1,this.loading=!1,this.loaded=!1,this.socket.onLoad((function(){e.socket.send({data:{mer_id:t.mer_id,uid:t.uid},type:"service_chat_start"})})),this.getChatList()},handleFormatError:function(t){this.$message.error("上传图片只能是 jpg、jpg、jpeg、gif 格式!")},getChatList:function(){var t=this;if(!this.loaded&&!this.loading&&this.active){this.loading=!0;var e="";this.chatList.length&&(e=this.chatList[0].service_log_id),Object(c["i"])(this.active.uid,{page:this.page,limit:this.limit,last_id:e}).then((function(s){var i=s.data.list,a=t.getChatTime(i),n=[];for(var r in a){var o=r,l={};l.time=o,a[r].forEach((function(t,e){t.longpress=!1})),l.children=a[r],n.push(l)}t.chatList=n.concat(t.chatList),t.page++,setTimeout((function(){t.loading=!1,t.loaded=i.length加载中...
\ No newline at end of file +加载中...
\ No newline at end of file diff --git a/public/mer/css/chunk-1306dfb6.3286df8c.css b/public/mer/css/chunk-1306dfb6.3286df8c.css new file mode 100644 index 00000000..7984af50 --- /dev/null +++ b/public/mer/css/chunk-1306dfb6.3286df8c.css @@ -0,0 +1 @@ +.avatar[data-v-a6de1244]{width:60px;height:60px;margin-left:18px}.avatar img[data-v-a6de1244]{width:100%;height:100%}.dashboard-workplace-header-avatar[data-v-a6de1244]{margin-right:16px;font-weight:600}.dashboard-workplace-header-tip[data-v-a6de1244]{width:82%;display:inline-block;vertical-align:middle;margin-top:-12px}.dashboard-workplace-header-tip-title[data-v-a6de1244]{font-size:13px;color:#000;margin-bottom:12px}.dashboard-workplace-header-tip-desc-sp[data-v-a6de1244]{width:32%;color:#17233d;font-size:13px;display:inline-block}.dashboard-workplace-header-extra .ivu-col p[data-v-a6de1244]{text-align:right}.dashboard-workplace-header-extra .ivu-col p:first-child span[data-v-a6de1244]:first-child{margin-right:4px}.dashboard-workplace-header-extra .ivu-col p:first-child span[data-v-a6de1244]:last-child{color:#808695}.dashboard-workplace-header-extra .ivu-col p[data-v-a6de1244]:last-child{font-size:22px}.selWidth[data-v-6166f5c4]{width:219px!important}.seachTiele[data-v-6166f5c4]{line-height:35px}.fr[data-v-6166f5c4]{float:right}.spBlock[data-v-35e27384]{cursor:pointer;display:block;padding:5px 0}.check[data-v-35e27384]{color:#00a2d4}.selWidth[data-v-35e27384]{width:100%!important}.dia[data-v-35e27384] .el-dialog__body{height:700px!important}.text-right[data-v-35e27384]{text-align:right}.container[data-v-35e27384]{min-width:821px}.container[data-v-35e27384] .el-form-item{width:100%}.container[data-v-35e27384] .el-form-item__content{width:72%}.vipName[data-v-35e27384]{color:#dab176}.el-dropdown-link[data-v-35e27384]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-35e27384]{font-size:12px}.demo-table-expand[data-v-35e27384]{font-size:0}.demo-table-expand label[data-v-35e27384]{width:90px;color:#99a9bf}.demo-table-expand .el-form-item[data-v-35e27384]{margin-right:0;margin-bottom:0;width:33.33%}[data-v-35e27384] [type=reset],[type=submit][data-v-35e27384],button[data-v-35e27384],html [type=button][data-v-35e27384]{-webkit-appearance:none!important}.box-container[data-v-35e27384]{overflow:hidden}.box-container .list[data-v-35e27384]{line-height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.box-container .list .name[data-v-35e27384]{display:inline-block;width:100px;text-align:right;color:#606266}.box-container .list .blue[data-v-35e27384]{color:#1890ff} \ No newline at end of file diff --git a/public/mer/css/chunk-228dd6f8.0b657bdb.css b/public/mer/css/chunk-228dd6f8.0b657bdb.css new file mode 100644 index 00000000..66871d5f --- /dev/null +++ b/public/mer/css/chunk-228dd6f8.0b657bdb.css @@ -0,0 +1 @@ +.selWidth[data-v-54762ce4]{width:300px!important}.description[data-v-54762ce4]{padding-bottom:15px;margin-top:15px}.description-term[data-v-54762ce4]{display:table-cell;width:100%;line-height:40px;font-size:12px;margin-top:10px;color:#333;border-bottom:1px solid #dcdfe6}.description .name[data-v-54762ce4]{display:inline-block;width:120px} \ No newline at end of file diff --git a/public/mer/css/chunk-33b61c20.7ef68ed8.css b/public/mer/css/chunk-33b61c20.7ef68ed8.css new file mode 100644 index 00000000..5fcd06ab --- /dev/null +++ b/public/mer/css/chunk-33b61c20.7ef68ed8.css @@ -0,0 +1 @@ +.selWidth[data-v-649017bf]{width:300px!important} \ No newline at end of file diff --git a/public/mer/css/chunk-4f7a44e8.5d58d05d.css b/public/mer/css/chunk-4f7a44e8.5d58d05d.css new file mode 100644 index 00000000..c1f0b473 --- /dev/null +++ b/public/mer/css/chunk-4f7a44e8.5d58d05d.css @@ -0,0 +1 @@ +[data-v-660b68cd] .el-dialog__title{font-weight:700}.selWidth[data-v-660b68cd]{width:300px}.el-dropdown-link[data-v-660b68cd]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-660b68cd]{font-size:12px}.font-red[data-v-660b68cd]{color:#ff4949}.tabBox_tit[data-v-660b68cd]{width:60%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.pictrue[data-v-660b68cd]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-660b68cd]{width:100%;height:100%}.box-container[data-v-660b68cd]{overflow:hidden;padding:0 10px}.box-container .list.image[data-v-660b68cd]{margin:20px 0;position:relative}.box-container .list.image img[data-v-660b68cd]{position:absolute;top:-20px}.box-container .list[data-v-660b68cd]{float:left;line-height:40px}.box-container .sp100[data-v-660b68cd]{width:100%}.acea-row[data-v-660b68cd]{margin-bottom:25px} \ No newline at end of file diff --git a/public/mer/css/chunk-546dc2ee.2451a038.css b/public/mer/css/chunk-546dc2ee.2451a038.css new file mode 100644 index 00000000..5b4e2102 --- /dev/null +++ b/public/mer/css/chunk-546dc2ee.2451a038.css @@ -0,0 +1 @@ +[data-v-2f60d12b] .el-form-item__content{position:static}.box-container[data-v-ca473d28]{overflow:hidden}.box-container .list[data-v-ca473d28]{float:left;line-height:40px}.box-container .sp[data-v-ca473d28]{width:50%}.box-container .sp3[data-v-ca473d28]{width:33.3333%}.box-container .sp100[data-v-ca473d28]{width:100%}.box-container .list .name[data-v-ca473d28]{display:inline-block;width:150px;text-align:right;color:#606266}.box-container .list .blue[data-v-ca473d28]{color:#1890ff}.box-container .list.image[data-v-ca473d28]{margin-bottom:40px}.box-container .list.image img[data-v-ca473d28]{position:relative;top:40px}.el-textarea[data-v-ca473d28]{width:400px}.copyBtn[data-v-ca473d28]{padding:6px 10px}.modalbox[data-v-4d63497b] .el-dialog{min-width:550px}.selWidth[data-v-4d63497b]{width:400px}.seachTiele[data-v-4d63497b]{line-height:35px}.fa[data-v-4d63497b]{color:#0a6aa1;display:block}.sheng[data-v-4d63497b]{color:red;display:block} \ No newline at end of file diff --git a/public/mer/css/chunk-54fd21fe.103b1af3.css b/public/mer/css/chunk-54fd21fe.103b1af3.css new file mode 100644 index 00000000..485b87ec --- /dev/null +++ b/public/mer/css/chunk-54fd21fe.103b1af3.css @@ -0,0 +1 @@ +.title[data-v-2bc8853c]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-2bc8853c]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.description-term100[data-v-2bc8853c]{display:table-cell;padding-bottom:10px;line-height:20px;width:100%;font-size:12px}.product_name[data-v-2bc8853c]{margin-left:90px;position:relative;top:-20px}.demo-image__preview .el-image[data-v-2bc8853c],.demo-image__preview img[data-v-2bc8853c]{width:40px;height:40px}.title[data-v-0aac799c]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-0aac799c]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.logistics[data-v-0aac799c]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px 0}.logistics .logistics_img[data-v-0aac799c]{width:45px;height:45px;margin-right:12px}.logistics .logistics_img img[data-v-0aac799c]{width:100%;height:100%}.logistics .logistics_cent span[data-v-0aac799c]{display:block;font-size:12px}.trees-coadd[data-v-0aac799c]{width:100%;height:400px;border-radius:4px;overflow:hidden}.trees-coadd .scollhide[data-v-0aac799c]{width:100%;height:100%;overflow:auto;margin-left:18px;padding:10px 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.trees-coadd .scollhide .content[data-v-0aac799c]{font-size:12px}.trees-coadd .scollhide .time[data-v-0aac799c]{font-size:12px;color:#2d8cf0}.scollhide[data-v-0aac799c]::-webkit-scrollbar{display:none}.demo-table-expands[data-v-69585609] label{width:110px!important;color:#99a9bf}.selWidth[data-v-69585609]{width:300px}.el-dropdown-link[data-v-69585609]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-69585609]{font-size:12px}.tabBox_tit[data-v-69585609]{width:60%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box} \ No newline at end of file diff --git a/public/mer/css/chunk-5a643ebc.1f6ff408.css b/public/mer/css/chunk-5a643ebc.1f6ff408.css new file mode 100644 index 00000000..cf41e858 --- /dev/null +++ b/public/mer/css/chunk-5a643ebc.1f6ff408.css @@ -0,0 +1 @@ +.panel-container .panel-title[data-v-27299f7a]{padding:20px 20px 0 20px}.el-input__inner[data-v-27299f7a]{border:none!important}.align-right[data-v-27299f7a]{text-align:right}.panel-group .card-panel[data-v-27299f7a]{cursor:pointer;font-size:14px;overflow:hidden;color:#8c8c8c;background:#fff;position:relative}.panel-group .card-panel .card-panel-icon-wrapper[data-v-27299f7a]{float:left;margin:14px 0 0 14px;padding:16px;-webkit-transition:all .38s ease-out;transition:all .38s ease-out;border-radius:6px}.panel-group .card-panel .card-panel-icon[data-v-27299f7a]{float:left;font-size:48px}.panel-group .card-panel .card-panel-description[data-v-27299f7a]{padding:0 20px;margin:19px 0}.panel-group .card-panel .card-panel-description .card-panel-text[data-v-27299f7a]{line-height:18px;margin-bottom:12px;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;display:-webkit-box;display:-ms-flexbox;display:flex}.panel-group .card-panel .card-panel-description .card-panel-text .card-order[data-v-27299f7a]{color:#303133;font-size:16px}.panel-group .card-panel .card-panel-description .card-panel-text .card-date[data-v-27299f7a]{border:1px solid #6394f9;border-radius:3px;color:#6394f9;background:#f4f7ff;text-align:center;line-height:20px;width:38px}.panel-group .card-panel .card-panel-description .card-panel-num[data-v-27299f7a]{font-size:30px;color:#000;font-weight:700}.panel-group .card-panel-compared[data-v-27299f7a]{margin:15px 0}.panel-group .card-panel-compared span[data-v-27299f7a]{color:red;margin-left:5px}.panel-group .card-panel-compared span i[data-v-27299f7a]{display:inline-block;border:5px solid transparent;border-bottom:5px solid red;position:relative;bottom:1px;left:5px}.panel-group .card-panel-compared span.isdecline[data-v-27299f7a]{color:green}.panel-group .card-panel-compared span.isdecline i[data-v-27299f7a]{border-bottom:none;border-top:5px solid green}.panel-group .card-panel-date[data-v-27299f7a]{border-top:1px solid #eee;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:13px 20px}.panel-group-count[data-v-27299f7a]{margin-top:18px}.panel-group-count .card-panel-item[data-v-27299f7a]{float:left}.panel-group-count .card-panel-count[data-v-27299f7a]{background-color:#fff;border-radius:4px;height:104px;text-align:center;padding-top:20px}.panel-group-count .card-panel-count span[data-v-27299f7a]{display:block}.panel-group-count .card-panel-count .iconfont[data-v-27299f7a]{font-size:27px}.panel-group-count .card-panel-count .panel-text[data-v-27299f7a]{font-size:14px;color:#303133;margin-top:15px}@media (max-width:550px){.card-panel-description[data-v-27299f7a]{display:none}.card-panel-icon-wrapper[data-v-27299f7a]{float:none!important;width:100%;height:100%;margin:0!important}.card-panel-icon-wrapper .svg-icon[data-v-27299f7a]{display:block;margin:14px auto!important;float:none!important}}@media only screen and (min-width:768px){.el-col-sm-4-8[data-v-27299f7a]{width:20%}}@media only screen and (min-width:992px){.el-col-md-4-8[data-v-27299f7a]{width:20%}}@media only screen and (min-width:1200px){.el-col-lg-4-8[data-v-27299f7a]{width:20%}}@media only screen and (min-width:1920px){.el-col-xl-4-8[data-v-27299f7a]{width:20%}}.todoapp{font:14px Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.4em;color:#4d4d4d;min-width:230px;max-width:550px;margin:0 auto;font-weight:300;background:#fff;z-index:1;position:relative}.todoapp,.todoapp button{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp button{margin:0;padding:0;border:0;background:none;font-size:100%;vertical-align:baseline;font-family:inherit;font-weight:inherit;color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.todoapp :focus{outline:0}.todoapp .hidden{display:none}.todoapp .todoapp{background:#fff;margin:130px 0 40px 0;position:relative;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1)}.todoapp .todoapp input::-webkit-input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::-moz-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp h1{position:absolute;top:-155px;width:100%;font-size:100px;font-weight:100;text-align:center;color:rgba(175,47,47,.15);-webkit-text-rendering:optimizeLegibility;-moz-text-rendering:optimizeLegibility;text-rendering:optimizeLegibility}.todoapp .edit,.todoapp .new-todo{position:relative;margin:0;width:100%;font-size:18px;font-family:inherit;font-weight:inherit;line-height:1.4em;border:0;color:inherit;padding:6px;border:1px solid #999;-webkit-box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp .new-todo{padding:10px 16px 16px 60px;border:none;background:rgba(0,0,0,.003);-webkit-box-shadow:inset 0 -2px 1px rgba(0,0,0,.03);box-shadow:inset 0 -2px 1px rgba(0,0,0,.03)}.todoapp .main{position:relative;z-index:2;border-top:1px solid #e6e6e6}.todoapp .toggle-all{text-align:center;border:none;opacity:0;position:absolute}.todoapp .toggle-all+label{width:60px;height:34px;font-size:0;position:absolute;top:-52px;left:-13px;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.todoapp .toggle-all+label:before{content:"\276F";font-size:22px;color:#e6e6e6;padding:10px 27px 10px 27px}.todoapp .toggle-all:checked+label:before{color:#737373}.todoapp .todo-list{margin:0;padding:0;list-style:none}.todoapp .todo-list li{position:relative;font-size:24px;border-bottom:1px solid #ededed}.todoapp .todo-list li:last-child{border-bottom:none}.todoapp .todo-list li.editing{border-bottom:none;padding:0}.todoapp .todo-list li.editing .edit{display:block;width:506px;padding:12px 16px;margin:0 0 0 43px}.todoapp .todo-list li.editing .view{display:none}.todoapp .todo-list li .toggle{text-align:center;width:40px;height:auto;position:absolute;top:0;bottom:0;margin:auto 0;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.todoapp .todo-list li .toggle+label{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23ededed%22%20stroke-width%3D%223%22/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:0;background-size:36px}.todoapp .todo-list li .toggle:checked+label{background-size:36px;background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E")}.todoapp .todo-list li label{word-break:break-all;padding:15px 15px 15px 50px;display:block;line-height:1;font-size:14px;-webkit-transition:color .4s;transition:color .4s}.todoapp .todo-list li.completed label{color:#d9d9d9;text-decoration:line-through}.todoapp .todo-list li .destroy{display:none;position:absolute;top:0;right:10px;bottom:0;width:40px;height:40px;margin:auto 0;font-size:30px;color:#cc9a9a;-webkit-transition:color .2s ease-out;transition:color .2s ease-out;cursor:pointer}.todoapp .todo-list li .destroy:hover{color:#af5b5e}.todoapp .todo-list li .destroy:after{content:"\D7"}.todoapp .todo-list li:hover .destroy{display:block}.todoapp .todo-list li .edit{display:none}.todoapp .todo-list li.editing:last-child{margin-bottom:-1px}.todoapp .footer{color:#777;position:relative;padding:10px 15px;height:40px;text-align:center;border-top:1px solid #e6e6e6}.todoapp .footer:before{content:"";position:absolute;right:0;bottom:0;left:0;height:40px;overflow:hidden;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2)}.todoapp .todo-count{float:left;text-align:left}.todoapp .todo-count strong{font-weight:300}.todoapp .filters{margin:0;padding:0;position:relative;z-index:1;list-style:none}.todoapp .filters li{display:inline}.todoapp .filters li a{color:inherit;font-size:12px;padding:3px 7px;text-decoration:none;border:1px solid transparent;border-radius:3px}.todoapp .filters li a:hover{border-color:rgba(175,47,47,.1)}.todoapp .filters li a.selected{border-color:rgba(175,47,47,.2)}.todoapp .clear-completed,.todoapp html .clear-completed:active{float:right;position:relative;line-height:20px;text-decoration:none;cursor:pointer}.todoapp .clear-completed:hover{text-decoration:underline}.todoapp .info{margin:65px auto 0;color:#bfbfbf;font-size:10px;text-shadow:0 1px 0 hsla(0,0%,100%,.5);text-align:center}.todoapp .info p{line-height:1}.todoapp .info a{color:inherit;text-decoration:none;font-weight:400}.todoapp .info a:hover{text-decoration:underline}@media screen and (-webkit-min-device-pixel-ratio:0){.todoapp .todo-list li .toggle,.todoapp .toggle-all{background:none}.todoapp .todo-list li .toggle{height:40px}}@media (max-width:430px){.todoapp .footer{height:50px}.todoapp .filters{bottom:10px}}.box-card-component .el-card__header{padding:0!important}.box-card-component .box-card-header[data-v-5acc1735]{position:relative;height:220px}.box-card-component .box-card-header img[data-v-5acc1735]{width:100%;height:100%;-webkit-transition:all .2s linear;transition:all .2s linear}.box-card-component .box-card-header img[data-v-5acc1735]:hover{-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-filter:contrast(130%);filter:contrast(130%)}.box-card-component .mallki-text[data-v-5acc1735]{position:absolute;top:0;right:0;font-size:20px;font-weight:700}.box-card-component .panThumb[data-v-5acc1735]{z-index:100;height:70px!important;width:70px!important;position:absolute!important;top:-45px;left:0;border:5px solid #fff;background-color:#fff;margin:auto}.box-card-component .panThumb[data-v-5acc1735],.box-card-component .panThumb[data-v-5acc1735] .pan-info{-webkit-box-shadow:none!important;box-shadow:none!important}.box-card-component .progress-item[data-v-5acc1735]{margin-bottom:10px;font-size:14px}@media only screen and (max-width:1510px){.box-card-component .mallki-text[data-v-5acc1735]{display:none}}.align-right[data-v-5dd143d3]{text-align:right}[data-v-5dd143d3] .el-radio-button__inner{padding:0;width:62px;line-height:25px}.dashboard-editor-container[data-v-5dd143d3]{padding:0 20px 20px;background-color:#f0f2f5;position:relative}.dashboard-editor-container .github-corner[data-v-5dd143d3]{position:absolute;top:0;border:0;right:0}.dashboard-editor-container .chart-wrapper[data-v-5dd143d3]{background:#fff;margin-bottom:20px;height:330px}.panel-title[data-v-5dd143d3]{padding:20px;color:#000;overflow:hidden;font-weight:700;line-height:36px}.grid-content[data-v-5dd143d3]{margin-bottom:2px;height:100px;line-height:30px;color:#2b2d2c;position:relative;overflow:hidden;font-size:14px}.grid-content .bg-color[data-v-5dd143d3]{padding:20px}.grid-content .grid-count[data-v-5dd143d3]{display:block;font-weight:700;font-size:16px}.grid-floating[data-v-5dd143d3]{position:absolute;right:20px;font-size:13px;font-weight:700;z-index:5;line-height:35px}.grid-floating[data-v-5dd143d3]:before{content:"";display:inline-block;width:85px;height:1px;background:#d8d8d8;position:absolute;top:15px;left:-90px}.grid-floating .grid-conversion-number[data-v-5dd143d3]{display:inline-block;width:45px}.grid-floating[data-v-5dd143d3]:first-child{top:85px}.grid-floating[data-v-5dd143d3]:nth-child(2){top:188px}.grid-floating[data-v-5dd143d3]:nth-child(2):before{width:150px;left:-155px}[data-v-5dd143d3] .el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#fff;background-color:#6394f9;border-color:#6394f9;-webkit-box-shadow:-1px 0 0 0 #6394f9;box-shadow:-1px 0 0 0 #6394f9}.grid-title-count[data-v-5dd143d3]{background:#fff}.select-icon-date[data-v-5dd143d3]{opacity:.6}.grid-title[data-v-5dd143d3]{font-weight:700;padding:20px 0;margin:0 20px;font-size:14px;border-bottom:1px solid #ebeef5}.bg-blue[data-v-5dd143d3]{background-color:#eff4fe}.bg-green[data-v-5dd143d3]{background-color:#effbf6}.bg-gray-dark[data-v-5dd143d3]{background-color:#eff1f4}.grid-list-content[data-v-5dd143d3]{background:#fff;padding:15px;height:388px;overflow:hidden}.grid-list-content .el-row[data-v-5dd143d3]{margin-bottom:6px;border-bottom:1px solid #ebeef5}.grid-list-content .el-row[data-v-5dd143d3]:last-child{margin-bottom:0}.grid-list-content .grid-list[data-v-5dd143d3]{padding:13px}.grid-list-content .grid-list:first-child span[data-v-5dd143d3]{display:block;width:18px;line-height:18px;text-align:center;color:#fff;border-radius:100%;-webkit-border-radius:100%;font-size:12px}.grid-list-content .grid-list:first-child span.navy-blue[data-v-5dd143d3]{background:#d0d0d0}.grid-list-content .grid-list:first-child span.gray0[data-v-5dd143d3]{background:#ebca80}.grid-list-content .grid-list:first-child span.gray1[data-v-5dd143d3]{background:#abb4c7}.grid-list-content .grid-list:first-child span.gray2[data-v-5dd143d3]{background:#ccb3a0}.grid-list-content .grid-list[data-v-5dd143d3]:nth-child(2){position:relative;padding-left:50px}.grid-list-content .grid-list:nth-child(2) span[data-v-5dd143d3]{display:inline-block;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;font-size:14px}.grid-list-content .grid-list:nth-child(2) img[data-v-5dd143d3]{width:30px;height:30px;position:absolute;left:0;top:7px;border-radius:2px}.grid-list-content .grid-list[data-v-5dd143d3]:last-child{font-size:13px;color:#000}.pieChart-switch[data-v-5dd143d3]{font-size:0;position:absolute;top:80px}.pieChart-switch .el-button[data-v-5dd143d3]{display:inline-block;line-height:22px;color:#000;text-align:center;font-size:14px;padding:0;border:none;position:relative;margin:0 15px}.pieChart-switch .el-button[data-v-5dd143d3]:focus,.pieChart-switch .el-button[data-v-5dd143d3]:hover{background:transparent}.pieChart-switch .el-button.active[data-v-5dd143d3]{color:#6394f9}.pieChart-switch .el-button.active[data-v-5dd143d3]:after{content:"";display:inline-block;width:100%;height:2px;background:#6394f9;position:absolute;left:0;bottom:-2px}[data-v-5dd143d3] .align-right .el-input__inner{border:none;padding:0 5px;width:92px;color:#8d8d8d}.bg-trapezoid[data-v-5dd143d3]{position:absolute;left:40%;top:0}.bg-trapezoid span[data-v-5dd143d3]{position:absolute;width:50px;text-align:center}.blue-trapezoid[data-v-5dd143d3]{border-top:100px solid #6395fa;border-left:50px solid transparent;border-right:50px solid transparent}.blue-trapezoid span[data-v-5dd143d3]{color:#fff;top:-62px;left:50%;margin-left:-30px}.blue-trapezoid[data-v-5dd143d3]:hover{border-top-color:#6d9cfc}.green-trapezoid[data-v-5dd143d3]{border-top:400px solid #63daab;border-left:75px solid transparent;border-right:75px solid transparent;top:-265px}.green-trapezoid span[data-v-5dd143d3]{color:#fff;top:-103px;left:50%;margin-left:-30px}.green-trapezoid[data-v-5dd143d3]:hover{border-top-color:#6de3b4}.gray-dark-trapezoid[data-v-5dd143d3]{border-top:670px solid #657798;border-left:90px solid transparent;border-right:90px solid transparent;top:-510px}.gray-dark-trapezoid span[data-v-5dd143d3]{color:#fff;top:-125px;left:50%;margin-left:-24px}.gray-dark-trapezoid[data-v-5dd143d3]:hover{border-top-color:#7b8fb3}@media (max-width:1800px){.blue-trapezoid[data-v-5dd143d3]{border-top:150px solid #6395fa;border-left-width:70px;border-right-width:70px}.blue-trapezoid span[data-v-5dd143d3]{top:-109px}.green-trapezoid[data-v-5dd143d3]{border-top-width:316px;border-left-width:80px;border-right-width:80px;top:-180px}.green-trapezoid span[data-v-5dd143d3]{top:-94px}.gray-dark-trapezoid[data-v-5dd143d3]{border-top-width:545px;border-left-width:90px;border-right-width:90px;top:-443px}.gray-dark-trapezoid span[data-v-5dd143d3]{top:-72px}}@media (max-width:1600px){.blue-trapezoid[data-v-5dd143d3]{border-top:150px solid #6395fa;border-left:45px solid transparent;border-right:45px solid transparent}.green-trapezoid[data-v-5dd143d3]{border-top-width:440px;border-left-width:58px;border-right-width:58px;top:-233px}.green-trapezoid span[data-v-5dd143d3]{top:-170px}.gray-dark-trapezoid[data-v-5dd143d3]{border-top-width:455px;border-left-width:60px;border-right-width:60px;top:-332px}.gray-dark-trapezoid span[data-v-5dd143d3]{top:-85px}}@media (max-width:1024px){.chart-wrapper[data-v-5dd143d3]{padding:8px}} \ No newline at end of file diff --git a/public/mer/css/chunk-5ed4f497.27d2be4f.css b/public/mer/css/chunk-5ed4f497.27d2be4f.css new file mode 100644 index 00000000..a269b475 --- /dev/null +++ b/public/mer/css/chunk-5ed4f497.27d2be4f.css @@ -0,0 +1 @@ +.spBlock[data-v-3e1954f2]{cursor:pointer;display:block;padding:5px 0}.check[data-v-3e1954f2]{color:#00a2d4}.selWidth[data-v-3e1954f2]{width:100%!important}.dia[data-v-3e1954f2] .el-dialog__body{height:700px!important}.text-right[data-v-3e1954f2]{text-align:right}.container[data-v-3e1954f2]{min-width:821px}.vipName[data-v-3e1954f2]{color:#dab176}.el-dropdown-link[data-v-3e1954f2]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-3e1954f2]{font-size:12px}.demo-table-expand[data-v-3e1954f2]{font-size:0}.demo-table-expand label[data-v-3e1954f2]{width:90px;color:#99a9bf}.demo-table-expand .el-form-item[data-v-3e1954f2]{margin-right:0;margin-bottom:0;width:33.33%} \ No newline at end of file diff --git a/public/mer/css/chunk-6231f720.08a2a362.css b/public/mer/css/chunk-6231f720.08a2a362.css new file mode 100644 index 00000000..d4dbbae9 --- /dev/null +++ b/public/mer/css/chunk-6231f720.08a2a362.css @@ -0,0 +1 @@ +.form-create .el-form-item__label[data-v-42170f99]{font-size:12px!important}.FromData[data-v-42170f99] .el-textarea__inner{min-height:100px!important} \ No newline at end of file diff --git a/public/mer/css/chunk-67e1db22.c358a0a3.css b/public/mer/css/chunk-67e1db22.c358a0a3.css new file mode 100644 index 00000000..c86546ca --- /dev/null +++ b/public/mer/css/chunk-67e1db22.c358a0a3.css @@ -0,0 +1 @@ +.selWidth[data-v-73102b09]{width:300px}.el-dropdown-link[data-v-73102b09]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-73102b09]{font-size:12px}.tabBox_tit[data-v-73102b09]{width:60%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.mt20[data-v-73102b09]{margin-top:20px}.demo-image__preview[data-v-73102b09]{position:relative;padding-left:40px}.demo-image__preview .el-image[data-v-73102b09],.el-image__error[data-v-73102b09]{position:absolute;left:0}.maxw180[data-v-73102b09]{display:inline-block;max-width:180px} \ No newline at end of file diff --git a/public/mer/css/chunk-68601afb.f29be98c.css b/public/mer/css/chunk-68601afb.f29be98c.css new file mode 100644 index 00000000..ace8f821 --- /dev/null +++ b/public/mer/css/chunk-68601afb.f29be98c.css @@ -0,0 +1 @@ +.title[data-v-6d70337e]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-6d70337e]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-5245ffd2] .el-cascader{display:block}.dialog-scustom[data-v-5245ffd2]{width:1200px;height:600px}.ela-btn[data-v-5245ffd2]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-5245ffd2]{margin-right:25px}.Box .numPut[data-v-5245ffd2]{width:80%!important}.lunBox[data-v-5245ffd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-5245ffd2]{display:inline-block}.pictrue[data-v-5245ffd2]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5245ffd2]{width:100%;height:100%}.pictrueTab[data-v-5245ffd2]{width:40px!important;height:40px!important}.upLoad[data-v-5245ffd2]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-5245ffd2]{color:red}.buttonGroup[data-v-5245ffd2]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-5245ffd2]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-5245ffd2]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-5245ffd2]{border:1px solid #1890ff}.virtual_boder2[data-v-5245ffd2]{border:1px solid #e7e7e7}.virtual_san[data-v-5245ffd2]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5245ffd2]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5245ffd2]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5245ffd2]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5245ffd2]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5245ffd2]:nth-child(2n){margin:0 12px}.bg[data-v-34cd3ce5]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-34cd3ce5]{z-index:-10}[data-v-34cd3ce5] .upLoadPicBox .upLoad{-webkit-box-orient:vertical;-o-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;line-height:20px}[data-v-34cd3ce5] .upLoadPicBox span{font-size:10px}.proCoupon[data-v-34cd3ce5] .el-form-item__content{margin-top:5px}.tabPic[data-v-34cd3ce5]{width:40px!important;height:40px!important}.tabPic img[data-v-34cd3ce5]{width:100%;height:100%}.noLeft[data-v-34cd3ce5] .el-form-item__content{margin-left:0!important}.tabNumWidth[data-v-34cd3ce5] .el-input-number--medium{width:100px}.tabNumWidth[data-v-34cd3ce5] .el-input-number__decrease,.tabNumWidth[data-v-34cd3ce5] .el-input-number__increase{width:20px!important;font-size:12px!important}.tabNumWidth[data-v-34cd3ce5] .el-input-number--medium .el-input__inner{padding-left:25px!important;padding-right:25px!important}.tabNumWidth[data-v-34cd3ce5] .priceBox .el-input-number__decrease,.tabNumWidth[data-v-34cd3ce5] .priceBox .el-input-number__increase{display:none}.tabNumWidth[data-v-34cd3ce5] .priceBox .el-input-number.is-controls-right .el-input__inner{padding:0 5px}.tabNumWidth[data-v-34cd3ce5] thead{line-height:normal!important}.tabNumWidth[data-v-34cd3ce5] .cell{line-height:normal!important;text-overflow:clip!important}.virtual_boder[data-v-34cd3ce5]{border:1px solid #1890ff}.virtual_boder2[data-v-34cd3ce5]{border:1px solid #e7e7e7}.virtual_san[data-v-34cd3ce5]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-34cd3ce5]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-34cd3ce5]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-34cd3ce5]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-34cd3ce5]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-34cd3ce5]:nth-child(2n){margin:0 12px}.addfont[data-v-34cd3ce5]{display:inline-block;font-size:13px;font-weight:400;color:#1890ff;margin-left:14px;cursor:pointer}.titTip[data-v-34cd3ce5]{display:inline-bolck;font-size:12px;font-weight:400;color:#999}.addCustom_content[data-v-34cd3ce5]{margin-top:20px}.addCustom_content .custom_box[data-v-34cd3ce5]{margin-bottom:10px}.addCustomBox[data-v-34cd3ce5]{margin-top:12px;font-size:13px;font-weight:400;color:#1890ff}.addCustomBox .btn[data-v-34cd3ce5]{cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content}.addCustomBox .remark[data-v-34cd3ce5]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:14px}.selWidth[data-v-34cd3ce5]{width:50%}.ml15[data-v-34cd3ce5]{margin-left:15px}.button-new-tag[data-v-34cd3ce5]{height:28px;line-height:26px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-34cd3ce5]{width:90px;margin-left:10px;vertical-align:bottom}.pictrue[data-v-34cd3ce5]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-34cd3ce5]{width:100%;height:100%}.iview-video-style[data-v-34cd3ce5]{width:40%;height:180px;border-radius:10px;background-color:#707070;margin-top:10px;position:relative;overflow:hidden}.iconv[data-v-34cd3ce5]{color:#fff;line-height:180px;display:inherit;font-size:26px;position:absolute;top:-74px;left:50%;margin-left:-25px}.iview-video-style .mark[data-v-34cd3ce5]{position:absolute;width:100%;height:30px;top:0;background-color:rgba(0,0,0,.5);text-align:center}.uploadVideo[data-v-34cd3ce5]{margin-left:10px}.perW50[data-v-34cd3ce5]{width:50%}.submission[data-v-34cd3ce5]{margin-left:10px}.btndel[data-v-34cd3ce5]{position:absolute;z-index:1;width:20px!important;height:20px!important;left:46px;top:-4px}.labeltop[data-v-34cd3ce5] .el-form-item__label{float:none!important;display:inline-block!important;margin-left:120px!important;width:auto!important} \ No newline at end of file diff --git a/public/mer/css/chunk-7292d9bc.37503672.css b/public/mer/css/chunk-7292d9bc.37503672.css new file mode 100644 index 00000000..091ad894 --- /dev/null +++ b/public/mer/css/chunk-7292d9bc.37503672.css @@ -0,0 +1 @@ +.title[data-v-0aac799c]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-0aac799c]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.logistics[data-v-0aac799c]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px 0}.logistics .logistics_img[data-v-0aac799c]{width:45px;height:45px;margin-right:12px}.logistics .logistics_img img[data-v-0aac799c]{width:100%;height:100%}.logistics .logistics_cent span[data-v-0aac799c]{display:block;font-size:12px}.trees-coadd[data-v-0aac799c]{width:100%;height:400px;border-radius:4px;overflow:hidden}.trees-coadd .scollhide[data-v-0aac799c]{width:100%;height:100%;overflow:auto;margin-left:18px;padding:10px 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.trees-coadd .scollhide .content[data-v-0aac799c]{font-size:12px}.trees-coadd .scollhide .time[data-v-0aac799c]{font-size:12px;color:#2d8cf0}.scollhide[data-v-0aac799c]::-webkit-scrollbar{display:none}.title[data-v-69fcb5de]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-69fcb5de]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.title[data-v-96d4296a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-96d4296a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}.selWidth[data-v-a2a2da96]{width:330px}.title[data-v-a2a2da96]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.pictures[data-v-20d48029]{max-width:100%}.area-desc[data-v-20d48029]{margin:0;color:#999;font-size:12px}.selWidth[data-v-20d48029]{width:300px}.spBlock[data-v-20d48029]{cursor:pointer;display:block;padding:5px 0}.check[data-v-20d48029]{color:#00a2d4}.el-dropdown-link[data-v-20d48029]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-20d48029]{font-size:12px}.tabBox_tit[data-v-20d48029]{width:53%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box}[data-v-20d48029] .row-bg .cell{color:red!important}.headTab[data-v-20d48029]{position:relative}.headTab .headBtn[data-v-20d48029]{position:absolute;right:0;top:-6px}.dropdown[data-v-20d48029]{padding:0 10px;border:1px solid #409eff;margin-right:10px;line-height:28px;border-radius:4px} \ No newline at end of file diff --git a/public/mer/css/chunk-72ca768f.13d19043.css b/public/mer/css/chunk-72ca768f.13d19043.css new file mode 100644 index 00000000..bd3e8061 --- /dev/null +++ b/public/mer/css/chunk-72ca768f.13d19043.css @@ -0,0 +1 @@ +[data-v-14254666] .el-textarea__inner{height:90px}.information[data-v-14254666]{width:100%;padding:10px 20px 80px 20px}.information h2[data-v-14254666]{text-align:center;color:#303133;font-weight:700;font-size:20px}.information .lab-title[data-v-14254666]{width:-webkit-max-content;width:-moz-max-content;width:max-content;font-size:14px;font-weight:700;color:#303133;margin:10px 10%}.information .lab-title[data-v-14254666]:before{content:"";display:inline-block;width:3px;height:13px;background-color:#1890ff;margin-right:6px;position:relative;top:1px}.information .user-msg[data-v-14254666]{padding:0 20px;margin-top:20px}.information .basic-information[data-v-14254666]{padding:0 100px;margin-bottom:20px;font-size:13px;text-rendering:optimizeLegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;color:#606266}.information .basic-information .basic-label[data-v-14254666]{display:inline-block;text-align:right;width:150px;margin-right:10px}.information .trip[data-v-14254666]{color:#999;font-weight:400;font-size:12px}.information[data-v-14254666] .el-form-item__label{color:#303133}.information .demo-ruleForm[data-v-14254666]{overflow:hidden}.information .form-data[data-v-14254666]{padding:30px 8%}.information .form-data .map-sty[data-v-14254666]{width:100%}.information .form-data .pictrue img[data-v-14254666]{border-radius:4px;-o-object-fit:cover;object-fit:cover}.information .form-data .tip-form[data-v-14254666]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.information .form-data .tip-form span[data-v-14254666]{white-space:nowrap;padding-left:10px;line-height:20px}.information .submit-button[data-v-14254666]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;bottom:20px;width:80%;padding:10px 0;background-color:hsla(0,0%,100%,.7)}.font_red[data-v-14254666]{color:red;margin-right:5px;font-weight:700}.margin_main[data-v-14254666]{position:relative}.margin_main .margin_price[data-v-14254666]{cursor:pointer}.margin_main:hover .margin_modal[data-v-14254666]{display:-webkit-box;display:-ms-flexbox;display:flex}.margin_main .margin_modal[data-v-14254666]{position:absolute;left:110px;top:30px;border-radius:8px;background:#fff;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:9;width:250px;height:320px;-webkit-box-shadow:2px 2px 3px 0 rgba(0,0,0,.3);box-shadow:2px 2px 3px 0 rgba(0,0,0,.3);display:none}.margin_main .margin_modal .alic[data-v-14254666]{text-align:center}.margin_main .margin_modal img[data-v-14254666]{display:block;width:150px;height:116px;margin:0 auto 50px}.margin_main .margin_modal span[data-v-14254666]{margin-bottom:10px;display:block;font-weight:400;text-align:center}.margin_main .margin_modal .text_g[data-v-14254666]{font-size:16px;color:#303133}.margin_main .margin_modal .text_b[data-v-14254666]{color:#606266;font-size:18px;font-weight:700;margin-bottom:14px}.margin_main .margin_modal .text_b.b02[data-v-14254666]{color:#ef9b6f}.margin_main .margin_modal .text_b.b01[data-v-14254666]{color:#57d1a0}.margin_main .margin_modal .el-button[data-v-14254666]{margin-top:25px}.margin_main .margin_refused[data-v-14254666]{display:block;margin-bottom:10px;text-align:center;color:#606266}.margin_main .margin_refused span[data-v-14254666]{display:inline}.margin_count[data-v-14254666]{position:relative;display:inline-block}.margin_count .pay_btn:hover+.erweima[data-v-14254666]{display:block}.margin_count .erweima[data-v-14254666]{position:absolute;left:0;top:30px;z-index:9;display:none;width:250px;height:320px;text-align:center;background:#fff;border-radius:8px;padding:10px;-webkit-box-shadow:2px 2px 3px 0 rgba(0,0,0,.3);box-shadow:2px 2px 3px 0 rgba(0,0,0,.3)}.margin_count .erweima img[data-v-14254666]{width:160px;height:160px;margin-top:20px}.margin_count .erweima .pay_type[data-v-14254666]{font-size:16px;color:#303133;font-weight:400}.margin_count .erweima .pay_price[data-v-14254666]{font-size:18px;color:#e57272;margin:10px 0}.margin_count .erweima .pay_title[data-v-14254666]{font-size:16px;color:#303133;margin-top:20px}.margin_count .erweima .pay_time[data-v-14254666]{font-size:12px;color:#6d7278}[data-v-14254666] .el-upload--picture-card{width:58px;height:58px;line-height:70px}[data-v-14254666] .el-upload-list__item{width:58px;height:58px}.upLoadPicBox_qualification[data-v-14254666]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.upLoadPicBox_qualification .uploadpicBox_list[data-v-14254666]{position:relative;height:58px;width:58px;margin:0 20px 20px 0}.upLoadPicBox_qualification .uploadpicBox_list .uploadpicBox_list_image[data-v-14254666]{position:absolute;top:0;left:0;width:58px;height:58px;border-radius:4px;overflow:hidden}.upLoadPicBox_qualification .uploadpicBox_list .uploadpicBox_list_image img[data-v-14254666]{width:100%;height:100%}.upLoadPicBox_qualification .uploadpicBox_list .uploadpicBox_list_method[data-v-14254666]{position:absolute;top:0;left:0;font-size:18px;font-weight:700;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;background:rgba(0,0,0,.4);border-radius:4px;opacity:0;width:100%;height:100%;-webkit-transition:.3s;transition:.3s}.uploadpicBox_list:hover .uploadpicBox_list_method[data-v-14254666]{z-index:11;opacity:1} \ No newline at end of file diff --git a/public/mer/css/chunk-7ab3bf42.43ef4e94.css b/public/mer/css/chunk-7ab3bf42.43ef4e94.css new file mode 100644 index 00000000..4b2faafe --- /dev/null +++ b/public/mer/css/chunk-7ab3bf42.43ef4e94.css @@ -0,0 +1 @@ +.selWidth[data-v-75fe4b2a]{width:300px}.el-dropdown-link[data-v-75fe4b2a]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-75fe4b2a]{font-size:12px}.tabBox_tit[data-v-75fe4b2a]{width:60%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.el-menu-item[data-v-75fe4b2a]{font-weight:700;color:#333}[data-v-75fe4b2a] .el-dialog__header{text-align:left}.el-col[data-v-75fe4b2a]{position:relative}.el-col .el-divider--vertical[data-v-75fe4b2a]{position:absolute;height:100%;right:0;top:0;margin:0}.grid-content[data-v-75fe4b2a]{padding:0 15px;display:block}.grid-content .color_gray[data-v-75fe4b2a],.grid-content .color_red[data-v-75fe4b2a],.grid-content .title[data-v-75fe4b2a]{display:block;line-height:20px}.grid-content .color_red[data-v-75fe4b2a]{color:red;font-weight:700}.grid-content .color_gray[data-v-75fe4b2a]{color:#333;font-weight:700}.grid-content .count[data-v-75fe4b2a]{font-size:12px}.grid-content .list[data-v-75fe4b2a]{margin-top:20px}.grid-content .list .item[data-v-75fe4b2a]{overflow:hidden;margin-bottom:10px}.grid-content .list .cost[data-v-75fe4b2a],.grid-content .list .name[data-v-75fe4b2a]{line-height:20px}.grid-content .list .cost[data-v-75fe4b2a]{text-align:right}.grid-content .list .cost span[data-v-75fe4b2a]{display:block}.grid-content .list .cost_count[data-v-75fe4b2a],.grid-content .list .name[data-v-75fe4b2a]{font-size:12px}.grid-content .list .cost_count[data-v-75fe4b2a]{margin-top:10px}.grid-content .list .cost_num[data-v-75fe4b2a]{font-weight:700;color:#333} \ No newline at end of file diff --git a/public/mer/css/chunk-80a8cf62.500ed102.css b/public/mer/css/chunk-80a8cf62.500ed102.css new file mode 100644 index 00000000..a5073c88 --- /dev/null +++ b/public/mer/css/chunk-80a8cf62.500ed102.css @@ -0,0 +1 @@ +.selWidth[data-v-5a5d12a8]{width:280px!important} \ No newline at end of file diff --git a/public/mer/css/chunk-d575ac72.a5ada92d.css b/public/mer/css/chunk-d575ac72.a5ada92d.css new file mode 100644 index 00000000..101c64f3 --- /dev/null +++ b/public/mer/css/chunk-d575ac72.a5ada92d.css @@ -0,0 +1 @@ +.title[data-v-3500ed7a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-3500ed7a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-3cd1b9b0] .el-cascader{display:block}.dialog-scustom[data-v-3cd1b9b0]{width:1200px;height:600px}.ela-btn[data-v-3cd1b9b0]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-3cd1b9b0]{margin-right:25px}.Box .numPut[data-v-3cd1b9b0]{width:80%!important}.lunBox[data-v-3cd1b9b0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-3cd1b9b0]{display:inline-block}.pictrue[data-v-3cd1b9b0]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-3cd1b9b0]{width:100%;height:100%}.pictrueTab[data-v-3cd1b9b0]{width:40px!important;height:40px!important}.upLoad[data-v-3cd1b9b0]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-3cd1b9b0]{color:red}.buttonGroup[data-v-3cd1b9b0]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-3cd1b9b0]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-3cd1b9b0]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-3cd1b9b0]{border:1px solid #1890ff}.virtual_boder2[data-v-3cd1b9b0]{border:1px solid #e7e7e7}.virtual_san[data-v-3cd1b9b0]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-3cd1b9b0]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-3cd1b9b0]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-3cd1b9b0]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-3cd1b9b0]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-3cd1b9b0]:nth-child(2n){margin:0 12px}[data-v-5e47370c] .el-cascader{display:block}.ela-btn[data-v-5e47370c]{color:#2d8cf0}.priceBox[data-v-5e47370c]{width:80px}.pictrue[data-v-5e47370c]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5e47370c]{width:100%;height:100%}[data-v-5e47370c] .el-input-number__decrease,[data-v-5e47370c] .el-input-number__increase{display:none}[data-v-5e47370c] .el-input-number.is-controls-right .el-input__inner,[data-v-5e47370c] .el-input__inner{padding:0 5px}.pictrueTab[data-v-5e47370c]{width:40px!important;height:40px!important}.upLoad[data-v-5e47370c]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.bg[data-v-03d305fe]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-03d305fe]{z-index:-10}[data-v-03d305fe] table.el-input__inner{padding:0}.demo-table-expand[data-v-03d305fe]{font-size:0}.demo-table-expand1[data-v-03d305fe] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-03d305fe]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-03d305fe]{width:350px!important}.seachTiele[data-v-03d305fe]{line-height:35px} \ No newline at end of file diff --git a/public/mer/css/chunk-ec75d96c.788bc568.css b/public/mer/css/chunk-ec75d96c.788bc568.css new file mode 100644 index 00000000..238a43c5 --- /dev/null +++ b/public/mer/css/chunk-ec75d96c.788bc568.css @@ -0,0 +1 @@ +.box-container[data-v-71c7a22c]{overflow:hidden}.box-container .list[data-v-71c7a22c]{float:left;line-height:40px}.box-container .sp[data-v-71c7a22c]{width:50%}.box-container .sp3[data-v-71c7a22c]{width:33.3333%}.box-container .sp100[data-v-71c7a22c]{width:100%}.box-container .list .name[data-v-71c7a22c]{display:inline-block;width:150px;text-align:right;color:#606266}.box-container .list .blue[data-v-71c7a22c]{color:#1890ff}.box-container .list.image[data-v-71c7a22c]{margin-bottom:40px}.box-container .list.image img[data-v-71c7a22c]{position:relative;top:40px}.el-textarea[data-v-71c7a22c]{width:400px}.customHeight[data-v-aed747c2]{height:800px}.container[data-v-76a17d47]{margin-top:30px;text-align:right}.customHeight[data-v-76a17d47]{height:800px}.table-cont[data-v-76a17d47]{max-height:300px;overflow-y:scroll}.modalbox[data-v-4e9cef11] .el-dialog{min-width:550px}.selWidth[data-v-4e9cef11]{width:400px}.seachTiele[data-v-4e9cef11]{line-height:35px}.fa[data-v-4e9cef11]{color:#0a6aa1;display:block}.sheng[data-v-4e9cef11]{color:red;display:block} \ No newline at end of file diff --git a/public/mer/css/chunk-f1874498.3a71432c.css b/public/mer/css/chunk-f1874498.3a71432c.css new file mode 100644 index 00000000..651a2c9a --- /dev/null +++ b/public/mer/css/chunk-f1874498.3a71432c.css @@ -0,0 +1 @@ +.selWidth[data-v-bf4c001c]{width:300px}table .el-image[data-v-bf4c001c]{display:inline-block}.el-dropdown-link[data-v-bf4c001c]{cursor:pointer;color:#409eff;font-size:12px}.el-icon-arrow-down[data-v-bf4c001c]{font-size:12px}.tabBox_tit[data-v-bf4c001c]{width:60%;font-size:12px!important;margin:0 2px 0 10px;letter-spacing:1px;padding:5px 0;-webkit-box-sizing:border-box;box-sizing:border-box}.mt20[data-v-bf4c001c]{margin-top:20px}.demo-image__preview[data-v-bf4c001c]{position:relative}.maxw180[data-v-bf4c001c]{display:inline-block;max-width:180px} \ No newline at end of file diff --git a/public/mer/js/app.fb622545.js b/public/mer/js/app.fb622545.js new file mode 100644 index 00000000..bad4ecf2 --- /dev/null +++ b/public/mer/js/app.fb622545.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0781":function(t,e,n){"use strict";n.r(e);n("24ab");var a=n("83d6"),i=n.n(a),r=i.a.showSettings,c=i.a.tagsView,o=i.a.fixedHeader,s=i.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:r,tagsView:c,fixedHeader:o,sidebarLogo:s,isEdit:!1},l={CHANGE_SETTING:function(t,e){var n=e.key,a=e.value;t.hasOwnProperty(n)&&(t[n]=a)},SET_ISEDIT:function(t,e){t.isEdit=e}},d={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)},setEdit:function(t,e){var n=t.commit;n("SET_ISEDIT",e)}};e["default"]={namespaced:!0,state:u,mutations:l,actions:d}},"090a":function(t,e,n){},"096e":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"0c6d":function(t,e,n){"use strict";n("ac6a");var a=n("bc3a"),i=n.n(a),r=n("4360"),c=n("bbcc"),o=i.a.create({baseURL:c["a"].https,timeout:6e4}),s={login:!0};function u(t){var e=r["a"].getters.token,n=t.headers||{};return e&&(n["X-Token"]=e,t.headers=n),new Promise((function(e,n){o(t).then((function(t){var a=t.data||{};return 200!==t.status?n({message:"请求失败",res:t,data:a}):-1===[41e4,410001,410002,4e4].indexOf(a.status)?200===a.status?e(a,t):n({message:a.message,res:t,data:a}):void r["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(t){return n({message:t})}))}))}var l=["post","put","patch","delete"].reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,data:n,method:e},s,a))},t}),{});["get","head"].forEach((function(t){l[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,params:n,method:t},s,a))}})),e["a"]=l},"0f9a":function(t,e,n){"use strict";n.r(e);var a=n("c80c"),i=(n("96cf"),n("3b8d")),r=(n("7f7f"),n("c24f")),c=n("5f87"),o=n("a18c"),s=n("a78e"),u=n.n(s),l={token:Object(c["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList"))},d={SET_MENU_LIST:function(t,e){t.menuList=e},SET_TOKEN:function(t,e){t.token=e},SET_INTRODUCTION:function(t,e){t.introduction=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e}},h={login:function(t,e){var n=t.commit;return new Promise((function(t,a){Object(r["q"])(e).then((function(e){var a=e.data;n("SET_TOKEN",a.token),u.a.set("MerName",a.admin.account),Object(c["c"])(a.token),t(a)})).catch((function(t){a(t)}))}))},getMenus:function(t){var e=this,n=t.commit;return new Promise((function(t,a){Object(r["k"])().then((function(e){n("SET_MENU_LIST",e.data),localStorage.setItem("MenuList",JSON.stringify(e.data)),t(e)})).catch((function(t){e.$message.error(t.message),a(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,a){Object(r["j"])(n.token).then((function(n){var i=n.data;i||a("Verification failed, please Login again.");var r=i.roles,c=i.name,o=i.avatar,s=i.introduction;(!r||r.length<=0)&&a("getInfo: roles must be a non-null array!"),e("SET_ROLES",r),e("SET_NAME",c),e("SET_AVATAR",o),e("SET_INTRODUCTION",s),t(i)})).catch((function(t){a(t)}))}))},logout:function(t){var e=t.commit,n=t.state,a=t.dispatch;return new Promise((function(t,i){Object(r["s"])(n.token).then((function(){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(c["b"])(),Object(o["d"])(),u.a.remove(),a("tagsView/delAllViews",null,{root:!0}),t()})).catch((function(t){i(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(c["b"])(),t()}))},changeRoles:function(t,e){var n=t.commit,r=t.dispatch;return new Promise(function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(i){var s,u,l,d;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e+"-token",n("SET_TOKEN",s),Object(c["c"])(s),t.next=5,r("getInfo");case 5:return u=t.sent,l=u.roles,Object(o["d"])(),t.next=10,r("permission/generateRoutes",l,{root:!0});case 10:d=t.sent,o["c"].addRoutes(d),r("tagsView/delAllViews",null,{root:!0}),i();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}};e["default"]={namespaced:!0,state:l,mutations:d,actions:h}},1:function(t,e){},"12a5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},1430:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"15ae":function(t,e,n){"use strict";n("7680")},1779:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"17df":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"18f0":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"1afe":function(t,e,n){"use strict";n("1c90")},"1c90":function(t,e,n){},"1e38":function(t,e,n){"use strict";n("c6b6")},"225f":function(t,e,n){"use strict";n("3ddf")},"24ab":function(t,e,n){t.exports={theme:"#1890ff"}},2580:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},2801:function(t,e,n){"use strict";n.d(e,"k",(function(){return i})),n.d(e,"o",(function(){return r})),n.d(e,"m",(function(){return c})),n.d(e,"n",(function(){return o})),n.d(e,"l",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"s",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"q",(function(){return p})),n.d(e,"p",(function(){return g})),n.d(e,"r",(function(){return b})),n.d(e,"g",(function(){return v})),n.d(e,"f",(function(){return A})),n.d(e,"e",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"h",(function(){return k}));var a=n("0c6d");function i(t){return a["a"].get("store/order/reconciliation/lst",t)}function r(t,e){return a["a"].post("store/order/reconciliation/status/".concat(t),e)}function c(t,e){return a["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function o(t,e){return a["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return a["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function u(t){return a["a"].get("financial_record/list",t)}function l(t){return a["a"].get("financial_record/export",t)}function d(t){return a["a"].get("financial/export",t)}function h(){return a["a"].get("version")}function m(){return a["a"].get("financial/account/form")}function f(){return a["a"].get("financial/create/form")}function p(t){return a["a"].get("financial/lst",t)}function g(t){return a["a"].get("financial/detail/".concat(t))}function b(t){return a["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return a["a"].get("financial_record/lst",t)}function A(t,e){return a["a"].get("financial_record/detail/".concat(t),e)}function w(t){return a["a"].get("financial_record/title",t)}function y(t,e){return a["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return a["a"].get("financial_record/count",t)}},2951:function(t,e,n){},"29c0":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"2bab":function(t,e,n){},"2f11":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},3046:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},3087:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("7f7f");e["default"]={namespaced:!0,state:{configName:"",pageTitle:"",pageName:"",pageShow:1,pageColor:0,pagePic:0,pageColorPicker:"#f5f5f5",pageTabVal:0,pagePicUrl:"",defaultArray:{},pageFooter:{name:"pageFoot",setUp:{tabVal:"0"},status:{title:"是否自定义",name:"status",status:!1},txtColor:{title:"文字颜色",name:"txtColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},activeTxtColor:{title:"选中文字颜色",name:"txtColor",default:[{item:"#F62C2C"}],color:[{item:"#F62C2C"}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},menuList:[{imgList:[n("5946"),n("641c")],name:"首页",link:"/pages/index/index"},{imgList:[n("410e"),n("5640")],name:"分类",link:"/pages/goods_cate/goods_cate"},{imgList:[n("e03b"),n("905e")],name:"逛逛",link:"/pages/plant_grass/index"},{imgList:[n("af8c"),n("73fc")],name:"购物车",link:"/pages/order_addcart/order_addcart"},{imgList:[n("3dde"),n("8ea6")],name:"我的",link:"/pages/user/index"}]}},mutations:{FOOTER:function(t,e){t.pageFooter.status.title=e.title,t.pageFooter.menuList[2]=e.name},ADDARRAY:function(t,e){e.val.id="id"+e.val.timestamp,t.defaultArray[e.num]=e.val},DELETEARRAY:function(t,e){delete t.defaultArray[e.num]},ARRAYREAST:function(t,e){delete t.defaultArray[e]},defaultArraySort:function(t,e){var n=r(t.defaultArray),a=[],i={};function r(t){var e=Object.keys(t),n=e.map((function(e){return t[e]}));return n}function c(t,n,a){return t.forEach((function(t,n){t.id||(t.id="id"+t.timestamp),e.list.forEach((function(e,n){t.id==e.id&&(t.timestamp=e.num)}))})),t}void 0!=e.oldIndex?a=JSON.parse(JSON.stringify(c(n,e.newIndex,e.oldIndex))):(n.splice(e.newIndex,0,e.element.data().defaultConfig),a=JSON.parse(JSON.stringify(c(n,0,0))));for(var o=0;o'});c.a.add(o);e["default"]=o},"31c2":function(t,e,n){"use strict";n.r(e),n.d(e,"filterAsyncRoutes",(function(){return c}));var a=n("db72"),i=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function r(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function c(t,e){var n=[];return t.forEach((function(t){var i=Object(a["a"])({},t);r(e,i)&&(i.children&&(i.children=c(i.children,e)),n.push(i))})),n}var o={routes:[],addRoutes:[]},s={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=i["b"].concat(e)}},u={generateRoutes:function(t,e){var n=t.commit;return new Promise((function(t){var a;a=e.includes("admin2")?i["asyncRoutes"]||[]:c(i["asyncRoutes"],e),n("SET_ROUTES",a),t(a)}))}};e["default"]={namespaced:!0,state:o,mutations:s,actions:u}},3289:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"3dde":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REFEQTg5MUU0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REFEQTg5MUQ0MzlFMTFFOThDMzZDQjMzNTFCMDc3NUEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4dXT0nAAAECElEQVR42uycW0gVURSG5+ixTIlCshN0e8iiC0LRMSUwiiKKQOlGQQXSSwQR0YUo6jV8KYkKeiiKsvAliCLCohQiwlS6oJWUlaWVngq6oVhp/2K2ICF0zD17z6xZC362D+fsOfubmb0us8ZIb2+vIzY0SxEEAlEgCkQxgSgQBaJAFBvAosl8KBKJGP9h7XOn0AmOQcOhTqgjVt9sPDNIJhmJJPUhAxABjQ6yEFoJLYBm/XWSf0FN0F3oKlQJqD8FogsvFcMmaD80dRBffQcdhY4BZmdoIQLgTAxnobwhTNMClQBktS2I1hwLAK7FUDtEgGSToduYb2+ovDMWvBlDBZShaUq6VUoxb6mN9Ri/nbHQFRiueHgCd+PWPsx2TwTAiRgeQ6M9vDB+Q4UAeY/rnnjcY4Bk5O1P4YRFTS3KGEQsqhBDkaHDkdffyNGx7DJ81e9h5VhwFWZhSFjYPuLYG+u57InLLIVTyzndzvmW4uB5nCBOswRxOieIMUsQszhBtJWjRzkt7qMliN85QWyzBPENJ4iPLEFs5ASxyhLEKjYQkTU8wPDKMMAu6Bo3r3nSMMQKnLwvHCEmDB2LaorGqtzGIOKq+Iphn6HDleF4TewgKpCnMVw2EAkcNLkuG5kEPWN+6GE8WoyT1cUaIhZIWcQSqEbz1K+hRZi/xfSarOS0WOgnWjB0RtOUN6F8zPvcxnr80EZCBdsj0Iz/+Pp76ACdDK+anQLT0KQ6wIqhEmgplP6P8OUOdA66AHjdXv62QHWF9QNKAOOOW1Ad77hdEp0qxqSwpQbgvpn6PYGE6DfzdUMTJxOIAtEfFvXTj4FTGYNhEpQN0d9p0CiIHAm1G9NjBoox31J4Y6OH2zeOBbAITJ7ywrmO25+dA2UOYhoKbV5CDY5bwa6DagG2naV3BrRMlepRlrJYQfPK5TdD1dAtx22O/xxYiAA3EsNqaI0Cl27hTutRgfklxy3SJgIBEfCoZWQbtMrR106sw2hPvQ6dgG4ku58ahajaiCmPLQiAQ33quJXvcsDssQ4R8KhpqAyaH8Do5Am0EyArrUAEvBEYDkHbGcSb56EdAzkhzyACIL07QmX+2YxiZgqXqCre4DlEAMxV4UM2w+SDqu5FAFnlGUT1CsV9aBzjLI6eVRcA5DPtVRz1Fmg5c4COSjMvqhc3tRcg+l6hDYPNgTZ4AXFryIozW7QWIDriOVTt+QENCxFEepaTMbbuRbeuKzEWMoBkqcnu/8lCTHPCaSk6IYoJRIEoEAWimED0G8Sw/uPZHp0QW6EPIQNIbXtt2iDG6pspBVoXIpC0zvVq3Xpy5371REqFJjjePTP2gxGQ1j6A2oqyYuKdBaJAFIhiAlEgCkSBKDZ4+yPAAP/CgFUoJ7ivAAAAAElFTkSuQmCC"},"3ddf":function(t,e,n){},"3e58":function(t,e,n){},"410e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDA1MjZDM0I0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDA1MjZDM0E0MzlGMTFFOTkxMTdCN0ZFMDQzOTIyMkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6rO72jAAABsUlEQVR42uzcsU4CQRDG8TtFGhLtKIydJJQ0VD4CRisfQe2oLCyECiwoqHwJ38PEiobGChMri+skoVHIOZtoQi4k7nqZUbj/l0yIEy93/nBng5zEaZpGJF+2IAARRBAJiCCCCCIBEUQQNzmlkG9OmrUjebiRqihe01SqKzXO9BtSPaldxXPPpG6ro8mjGqLkSqpl8OQmUueZXlvqxOiX61hzOW//4QopGZ07eJUxE9lY1nBj+Ydxs+spx/EHUg9FR3yVemE5MxMJiCCCCCIBEUQQQSQggggiiOTnrPufwuo5j98HMYruWc7MRPJbxA+j63r37Glkqj0T+1JvyrPUYQ1W9L97ZcVzz6XuQg+KQ/4FI2nWCrE8q6MJM5GNBUResfjE3d7WNtpYnjP9Q6lro41lrInYkTozeoIvM187wAuLfUXqVHM57xgBlj17Ggm+iZSZyMYCIogERBBBBJGACCKIIBIQQQQRRAIiiCCCSEAEsSiIC6Prmnv2NDILPSD0zfvh16PmR7u4eyBX3d7menuR7nvfi6Wf0Tsxn27MTAQRRAIiiCCCSEAEEcRNzqcAAwAGvzdJXw0gUgAAAABJRU5ErkJggg=="},"432f":function(t,e,n){},4360:function(t,e,n){"use strict";n("a481"),n("ac6a");var a=n("2b0e"),i=n("2f62"),r=(n("7f7f"),{sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},isEdit:function(t){return t.settings.isEdit},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permission_routes:function(t){return t.permission.routes},errorLogs:function(t){return t.errorLog.logs},menuList:function(t){return t.user.menuList}}),c=r,o=n("bfa9");a["default"].use(i["a"]);var s=n("c653"),u=s.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),a=s(e);return t[n]=a.default,t}),{}),l=(new o["a"]({storage:window.localStorage}),new i["a"].Store({modules:u,getters:c}));e["a"]=l},4364:function(t,e,n){},4678:function(t,e,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(t){var e=r(t);return n(e)}function r(t){var e=a[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(a)},i.resolve=r,t.exports=i,i.id="4678"},"47f1":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"47ff":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"4d49":function(t,e,n){"use strict";n.r(e);var a={logs:[]},i={ADD_ERROR_LOG:function(t,e){t.logs.push(e)},CLEAR_ERROR_LOG:function(t){t.logs.splice(0)}},r={addErrorLog:function(t,e){var n=t.commit;n("ADD_ERROR_LOG",e)},clearErrorLog:function(t){var e=t.commit;e("CLEAR_ERROR_LOG")}};e["default"]={namespaced:!0,state:a,mutations:i,actions:r}},"4d7e":function(t,e,n){"use strict";n("de9d")},"4df5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(o);e["default"]=o},"4fb4":function(t,e,n){t.exports=n.p+"mer/img/no.7de91001.png"},"51ff":function(t,e,n){var a={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(t){var e=r(t);return n(e)}function r(t){var e=a[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(a)},i.resolve=r,t.exports=i,i.id="51ff"},5220:function(t,e,n){"use strict";n("090a")},"54d9":function(t,e,n){"use strict";n("2951")},"55d1":function(t,e,n){"use strict";n("bd3e")},5640:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkExQUM1Q0Y0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkExQUM1Q0U0MzlFMTFFOUFFN0FFMjQzRUM3RTIxODkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5UuLmcAAACF0lEQVR42uycMUvDUBDHG61dBHVyKN0chC7ugl9AUWhx8AOoWycHB3VSBwcnv4RTM+UTFJztUuggOJQOTlroYlvqBSqU0kKS13tJm98fjkcffVz6S+6OXl7iDIfDDDLTCgiACEQgIiACEYhAREAEIhCXWdkwXy6Xy/sy3IitKx5TR+zOdd36+GSpVNqT4V5sQ9F3V+yxWq2+qUEUXYkdWji5X2LnE3MVsWNLF9eRZjivxhghWUu+Q0cZOZHCsoCFZYYOxFoG64tinkHuahj4LojVkgCxJZX0M+piqbpbBr7bhr4JZ3IiEBEQgQhEICIgAhGIQERABCIQU6N5tMKKhu2sXZO1hu2sfFIgejFeBK+EMzkRRYXYs3RcvwHnNNTRzokPYj8Z3XvAPqynKfP/czlF332xl7CLnDCPYDiOk4rwDPtYCjmRwgLEdP5jGW1vq9goLK7rfkz43pHh2lJhqWtW51uxU0sn+HLisw/wwoLfbbETzXBeswQwF3BOQ6E3kZITKSwLWFhmyN/e1jZY77fConZjzsSaBr79VpiXBIiNGLe3NcX3u4Hvb8KZnAhEBEQgAhGICIhABCIQERCBCMS0aB6tsEKM29vyhu2sQlIg1mK8CDzCmZyIokIcWDqufsA5DXW1c+LzaNR8tYu/B3La9jZ/bjOje+97MPYbA8vh7cbkRCACEQERiEAEIgIiEIG4zPoTYAALKF4dRnTU+gAAAABJRU5ErkJggg=="},"56d6":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"56d7":function(t,e,n){"use strict";n.r(e);var a={};n.r(a),n.d(a,"parseTime",(function(){return ae["c"]})),n.d(a,"formatTime",(function(){return ae["b"]})),n.d(a,"timeAgo",(function(){return Le})),n.d(a,"numberFormatter",(function(){return Ne})),n.d(a,"toThousandFilter",(function(){return Te})),n.d(a,"uppercaseFirst",(function(){return Qe})),n.d(a,"filterEmpty",(function(){return ie})),n.d(a,"filterYesOrNo",(function(){return re})),n.d(a,"filterShowOrHide",(function(){return ce})),n.d(a,"filterShowOrHideForFormConfig",(function(){return oe})),n.d(a,"filterYesOrNoIs",(function(){return se})),n.d(a,"paidFilter",(function(){return ue})),n.d(a,"payTypeFilter",(function(){return le})),n.d(a,"orderStatusFilter",(function(){return de})),n.d(a,"activityOrderStatus",(function(){return he})),n.d(a,"cancelOrderStatusFilter",(function(){return me})),n.d(a,"orderPayType",(function(){return fe})),n.d(a,"takeOrderStatusFilter",(function(){return pe})),n.d(a,"orderRefundFilter",(function(){return ge})),n.d(a,"accountStatusFilter",(function(){return be})),n.d(a,"reconciliationFilter",(function(){return ve})),n.d(a,"reconciliationStatusFilter",(function(){return Ae})),n.d(a,"productStatusFilter",(function(){return we})),n.d(a,"couponTypeFilter",(function(){return ye})),n.d(a,"couponUseTypeFilter",(function(){return ke})),n.d(a,"broadcastStatusFilter",(function(){return Ce})),n.d(a,"liveReviewStatusFilter",(function(){return Ee})),n.d(a,"broadcastType",(function(){return je})),n.d(a,"broadcastDisplayType",(function(){return xe})),n.d(a,"filterClose",(function(){return Ie})),n.d(a,"exportOrderStatusFilter",(function(){return Oe})),n.d(a,"transactionTypeFilter",(function(){return Re})),n.d(a,"seckillStatusFilter",(function(){return Se})),n.d(a,"seckillReviewStatusFilter",(function(){return Me})),n.d(a,"deliveryStatusFilter",(function(){return ze})),n.d(a,"organizationType",(function(){return Ve})),n.d(a,"id_docType",(function(){return De})),n.d(a,"deliveryType",(function(){return _e})),n.d(a,"runErrandStatus",(function(){return Fe}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var i=n("2b0e"),r=n("a78e"),c=n.n(r),o=(n("f5df"),n("5c96")),s=n.n(o),u=n("c1df"),l=n.n(u),d=n("c7ad"),h=n.n(d),m=(n("24ab"),n("b20f"),n("fc4a"),n("de6e"),n("caf9")),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):t._e()},p=[],g={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},b=g,v=n("2877"),A=Object(v["a"])(b,f,p,!1,null,null,null),w=A.exports,y=n("4360"),k=n("a18c"),C=n("30ba"),E=n.n(C),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{title:"上传图片",visible:t.visible,width:"896px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("upload-index",{attrs:{"is-more":t.isMore},on:{getImage:t.getImage}}):t._e()],1)],1)},x=[],I=n("b5b8"),O={name:"UploadFroms",components:{UploadIndex:I["default"]},data:function(){return{visible:!1,callback:function(){},isMore:""}},watch:{},methods:{handleClose:function(){this.visible=!1},getImage:function(t){this.callback(t),this.visible=!1}}},R=O,S=Object(v["a"])(R,j,x,!1,null,"76ff32bf",null),M=S.exports;i["default"].use(s.a,{size:c.a.get("size")||"medium"});var z,V={install:function(t,e){var n=t.extend(M),a=new n;a.$mount(document.createElement("div")),document.body.appendChild(a.$el),t.prototype.$modalUpload=function(t,e){a.visible=!0,a.callback=t,a.isMore=e}}},D=V,_=n("6625"),F=n.n(_),B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"formDynamic",staticClass:"attrFrom mb20",attrs:{size:"small",model:t.formDynamic,rules:t.rules,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[n("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:t.formDynamic.template_name,callback:function(e){t.$set(t.formDynamic,"template_name",e)},expression:"formDynamic.template_name"}})],1)],1),t._v(" "),t._l(t.formDynamic.template_value,(function(e,a){return n("el-col",{key:a,staticClass:"noForm",attrs:{span:24}},[n("el-form-item",[n("div",{staticClass:"acea-row row-middle"},[n("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemove(a)}}})]),t._v(" "),n("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(a,i){return n("el-tag",{key:i,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(n){return t.handleClose(e.detail,i)}}},[t._v("\n "+t._s(a)+"\n ")])})),t._v(" "),e.inputVisible?n("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small",maxlength:"30"},on:{blur:function(n){return t.createAttr(e.detail.attrsVal,a)}},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createAttr(e.detail.attrsVal,a)}},model:{value:e.detail.attrsVal,callback:function(n){t.$set(e.detail,"attrsVal",n)},expression:"item.detail.attrsVal"}}):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return t.showInput(e)}}},[t._v("+ 添加")])],2)])],1)})),t._v(" "),t.isBtn?n("el-col",{staticClass:"mt10",staticStyle:{"padding-left":"0","padding-right":"0"},attrs:{span:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格值:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),n("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t._v(" "),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t._v(" "),n("el-form-item",[t.isBtn?t._e():n("el-button",{staticClass:"mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("formDynamic")}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确 定")])],1)],1)},L=[],N=(n("7f7f"),n("c4c8")),T={name:"CreatAttr",props:{currentRow:{type:Object,default:null}},data:function(){return{dialogVisible:!1,inputVisible:!1,inputValue:"",spinShow:!1,loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}]},formDynamic:{template_name:"",template_value:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},watch:{currentRow:{handler:function(t,e){this.formDynamic=t},immediate:!0}},mounted:function(){var t=this;this.formDynamic.template_value.map((function(e){t.$set(e,"inputVisible",!1)}))},methods:{resetForm:function(t){this.$msgbox.close(),this.clear(),this.$refs[t].resetFields()},addBtn:function(){this.isBtn=!0},handleClose:function(t,e){t.splice(e,1)},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.template_value.splice(t,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.template_value.push(t);var e={};this.formDynamic.template_value=this.formDynamic.template_value.reduce((function(t,n){return!e[n.value]&&(e[n.value]=t.push(n)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else{if(!this.attrsName)return void this.$message.warning("请输入规格名称!");if(!this.attrsVal)return void this.$message.warning("请输入规格值!")}},createAttr:function(t,e){if(t){this.formDynamic.template_value[e].detail.push(t);var n={};this.formDynamic.template_value[e].detail=this.formDynamic.template_value[e].detail.reduce((function(t,e){return!n[e]&&(n[e]=t.push(e)),t}),[]),this.formDynamic.template_value[e].inputVisible=!1}else this.$message.warning("请添加属性")},showInput:function(t){this.$set(t,"inputVisible",!0)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.template_value.length?e.$message.warning("请至少添加一条属性规格!"):(e.loading=!0,void setTimeout((function(){e.currentRow.attr_template_id?Object(N["l"])(e.currentRow.attr_template_id,e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.clear(),e.$emit("getList")}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)})):Object(N["j"])(e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.template_value=[],this.formDynamic.template_name="",this.isBtn=!1,this.attrsName="",this.attrsVal=""},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""}}},Q=T,H=(n("1e38"),Object(v["a"])(Q,B,L,!1,null,"5523fc24",null)),P=H.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,"label-width":"120px",size:"mini",rules:t.rules}},[n("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入模板名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"运费说明",prop:"info"}},[n("el-input",{staticClass:"withs",attrs:{type:"textarea",placeholder:"请输入运费说明"},model:{value:t.ruleForm.info,callback:function(e){t.$set(t.ruleForm,"info",e)},expression:"ruleForm.info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"type"}},[n("el-radio-group",{on:{change:function(e){return t.changeRadio(t.ruleForm.type)}},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[n("el-radio",{attrs:{label:0}},[t._v("按件数")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("按重量")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("按体积")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送区域及运费",prop:"region"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tempBox",staticStyle:{width:"100%"},attrs:{data:t.ruleForm.region,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"可配送区域","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.$index?n("span",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:e.row.city_ids,callback:function(n){t.$set(e.row,"city_ids",n)},expression:"scope.row.city_ids"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"130px",align:"center",label:t.columns.title},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:a.first,callback:function(e){t.$set(a,"first",e)},expression:"row.first"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"运费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:a.first_price,callback:function(e){t.$set(a,"first_price",e)},expression:"row.first_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:t.columns.title2},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.1},model:{value:a.continue,callback:function(e){t.$set(a,"continue",e)},expression:"row.continue"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",align:"center",label:"续费(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:a.continue_price,callback:function(e){t.$set(a,"continue_price",e)},expression:"row.continue_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.$index>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.region,e.$index)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addRegion(t.ruleForm.region)}}},[t._v("\n 添加配送区域\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"指定包邮",prop:"appoint"}},[n("el-radio-group",{model:{value:t.ruleForm.appoint,callback:function(e){t.$set(t.ruleForm,"appoint",e)},expression:"ruleForm.appoint"}},[n("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",{attrs:{prop:"free"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.ruleForm.free,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"选择地区","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("LazyCascader",{staticStyle:{width:"95%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:a.city_ids,callback:function(e){t.$set(a,"city_ids",e)},expression:"row.city_ids"}})]}}],null,!1,719238884)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"180px",align:"center",label:t.columns.title3},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:1},model:{value:a.number,callback:function(e){t.$set(a,"number",e)},expression:"row.number"}})]}}],null,!1,2893068961)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"最低购买金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.01},model:{value:a.price,callback:function(e){t.$set(a,"price",e)},expression:"row.price"}})]}}],null,!1,2216462721)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.free,e.$index)}}},[t._v("\n 删除\n ")])]}}],null,!1,4029474057)})],1)],1):t._e(),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addFree(t.ruleForm.free)}}},[t._v("\n 添加指定包邮区域\n ")])],1):t._e(),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"指定区域不配送",prop:"undelivery"}},[n("el-radio-group",{model:{value:t.ruleForm.undelivery,callback:function(e){t.$set(t.ruleForm,"undelivery",e)},expression:"ruleForm.undelivery"}},[n("el-radio",{attrs:{label:1}},[t._v("自定义")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),n("br"),t._v('\n (说明: 选择"开启"时, 仅支持上表添加的配送区域)\n ')],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[1===t.ruleForm.undelivery?n("el-form-item",{staticClass:"noBox",attrs:{prop:"city_id3"}},[n("LazyCascader",{staticStyle:{width:"46%"},attrs:{placeholder:"请选择不配送区域",props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:t.ruleForm.city_id3,callback:function(e){t.$set(t.ruleForm,"city_id3",e)},expression:"ruleForm.city_id3"}})],1):t._e()],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入排序"},model:{value:t.ruleForm.sort,callback:function(e){t.$set(t.ruleForm,"sort",e)},expression:"ruleForm.sort"}})],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},G=[],Z=(n("55dd"),n("75fc")),W=(n("c5f6"),n("8a9d")),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,a){return n("el-tag",{key:a,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.item;return[n("div",{staticClass:"name",class:t.isChecked(a[t.props.value])},[t._v("\n "+t._s(a[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),t._v(" "),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),t._v(" "),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,a){return n("el-tag",{key:a,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t._v(" "),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},J=[],q=n("c80c"),X=(n("96cf"),n("3b8d")),K=(n("20d6"),{props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=Object(Z["a"])(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e,n,a,i=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}}),$=K,tt=(n("15ae"),Object(v["a"])($,Y,J,!1,null,null,null)),et=tt.exports,nt={name:"",type:0,appoint:0,sort:0,info:"",region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]},at={},it="重量(kg)",rt="体积(m³)",ct=[{title:"首件",title2:"续件",title3:"最低购买件数"},{title:"首件".concat(it),title2:"续件".concat(it),title3:"最低购买".concat(it)},{title:"首件".concat(rt),title2:"续件".concat(rt),title3:"最低购买".concat(rt)}],ot={name:"CreatTemplates",components:{LazyCascader:et},props:{tempId:{type:Number,default:0},componentKey:{type:Number,default:0}},data:function(){return{loading:!1,rules:{name:[{required:!0,message:"请输入模板名称",trigger:"change"}],info:[{required:!0,message:"请输入运费说明",trigger:"blur"},{min:3,max:500,message:"长度在 3 到 500 个字符",trigger:"blur"}],free:[{type:"array",required:!0,message:"请至少添加一个地区",trigger:"change"}],appoint:[{required:!0,message:"请选择是否指定包邮",trigger:"change"}],undelivery:[{required:!0,message:"请选择是否指定区域不配送",trigger:"change"}],type:[{required:!0,message:"请选择计费方式",trigger:"change"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}]},nodeKey:"city_id",props:{children:"children",label:"name",value:"id",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},dialogVisible:!1,ruleForm:Object.assign({},nt),listLoading:!1,cityList:[],columns:{title:"首件",title2:"续件",title3:"最低购买件数"}}},watch:{componentKey:{handler:function(t,e){t?this.getInfo():this.ruleForm={name:"",type:0,appoint:0,sort:0,region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]}}}},mounted:function(){this.tempId>0&&this.getInfo()},methods:{resetForm:function(t){this.$msgbox.close(),this.$refs[t].resetFields()},onClose:function(t){this.dialogVisible=!1,this.$refs[t].resetFields()},confirmEdit:function(t,e){t.splice(e,1)},changeRadio:function(t){this.columns=Object.assign({},ct[t])},addRegion:function(t){t.push(Object.assign({},{first:1,first_price:1,continue:1,continue_price:0,city_id:[],city_ids:[]}))},addFree:function(t){t.push(Object.assign({},{city_id:[],number:1,price:.01,city_ids:[]}))},lazyLoad:function(t,e){var n=this;if(at[t])at[t]().then((function(t){e(Object(Z["a"])(t.data))}));else{var a=Object(W["a"])(t);at[t]=function(){return a},a.then((function(n){n.data.forEach((function(t){t.leaf=0===t.snum})),at[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},getInfo:function(){var t=this;this.loading=!0,Object(W["d"])(this.tempId).then((function(e){t.dialogVisible=!0;var n=e.data;t.ruleForm={name:n.name,type:n.type,info:n.info,appoint:n.appoint,sort:n.sort,region:n.region,undelivery:n.undelivery,free:n.free,undelives:n.undelives,city_id3:n.undelives.city_ids||[]},t.ruleForm.region.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.ruleForm.free.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.changeRadio(n.type),t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))},change:function(t){return t.map((function(t){var e=[];0!==t.city_ids.length&&(t.city_ids.map((function(t){e.push(t[t.length-1])})),t.city_id=e)})),t},changeOne:function(t){var e=[];if(0!==t.length)return t.map((function(t){e.push(t[t.length-1])})),e},onsubmit:function(t){var e=this,n={name:this.ruleForm.name,type:this.ruleForm.type,info:this.ruleForm.info,appoint:this.ruleForm.appoint,sort:this.ruleForm.sort,region:this.change(this.ruleForm.region),undelivery:this.ruleForm.undelivery,free:this.change(this.ruleForm.free),undelives:{city_id:this.changeOne(this.ruleForm.city_id3)}};this.$refs[t].validate((function(a){if(!a)return!1;0===e.tempId?Object(W["b"])(n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)})):Object(W["f"])(e.tempId,n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)}))}))}}},st=ot,ut=(n("967a"),Object(v["a"])(st,U,G,!1,null,"173db85a",null)),lt=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.getList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},["wu"===t.handle?n("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(a.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),"send"===t.handle?n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.id)}}},[t._v("发送")])]}}],null,!1,2106495788)}):t._e()],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[2,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div",[n("el-button",{staticClass:"fr",attrs:{size:"small",type:"primary"},on:{click:t.ok}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"fr mr20",attrs:{size:"small"},on:{click:t.close}},[t._v("取消")])],1)],1)},ht=[],mt=n("bd86"),ft=n("b7be"),pt=n("83d6"),gt=(z={name:"CouponList",props:{handle:{type:String,default:""},couponId:{type:Array,default:function(){return[]}},keyNum:{type:Number,default:0},couponData:{type:Array,default:function(){return[]}}},data:function(){return{roterPre:pt["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:2,coupon_name:"",send_type:3},multipleSelection:[],attr:[],multipleSelectionAll:[],idKey:"coupon_id",nextPageFlag:!1}},watch:{keyNum:{deep:!0,handler:function(t){this.getList()}}},mounted:function(){this.tableFrom.page=1,this.getList(),this.multipleSelectionAll=this.couponData}},Object(mt["a"])(z,"watch",{couponData:{deep:!0,handler:function(t){this.multipleSelectionAll=this.couponData,this.getList()}}}),Object(mt["a"])(z,"methods",{close:function(){this.$msgbox.close(),this.multipleSelection=[]},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var a=[];this.multipleSelection.forEach((function(i){a.push(i[t]),n.indexOf(i[t])<0&&e.multipleSelectionAll.push(i)}));var i=[];this.tableData.data.forEach((function(e){a.indexOf(e[t])<0&&i.push(e[t])})),i.forEach((function(a){if(n.indexOf(a)>=0)for(var i=0;i0?(this.$emit("getCouponId",this.multipleSelectionAll),this.close()):this.$message.warning("请先选择优惠劵")},getList:function(){var t=this;this.listLoading=!0,Object(ft["F"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1,t.$nextTick((function(){this.setSelectRow()}))})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}),z),bt=gt,vt=(n("55d1"),Object(v["a"])(bt,dt,ht,!1,null,"34dbe50b",null)),At=vt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])},yt=[],kt=n("61f7"),Ct={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(kt["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Et=Ct,jt=(n("cf1c"),Object(v["a"])(Et,wt,yt,!1,null,"61194e00",null)),xt=jt.exports;i["default"].component("svg-icon",xt);var It=n("51ff"),Ot=function(t){return t.keys().map(t)};Ot(It);var Rt=n("323e"),St=n.n(Rt),Mt=(n("a5d8"),n("5f87")),zt=n("bbcc"),Vt=zt["a"].title;function Dt(t){return t?"".concat(t," - ").concat(Vt):"".concat(Vt)}var _t=n("c24f");St.a.configure({showSpinner:!1});var Ft=["".concat(pt["roterPre"],"/login"),"/auth-redirect"];k["c"].beforeEach(function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(e,n,a){var i,r;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=y["a"].getters.isEdit,!i){t.next=5;break}o["MessageBox"].confirm("离开该编辑页面,已编辑信息会丢失,请问您确认离开吗?","提示",{confirmButtonText:"离开",cancelButtonText:"不离开",confirmButtonClass:"btnTrue",cancelButtonClass:"btnFalse",type:"warning"}).then((function(){y["a"].dispatch("settings/setEdit",!1),St.a.start(),document.title=Dt(e.meta.title);var t=Object(Mt["a"])();t?e.path==="".concat(pt["roterPre"],"/login")?(a({path:"/"}),St.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(_t["h"])().then((function(t){a()})).catch((function(t){a()})):a():-1!==Ft.indexOf(e.path)?a():(a("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),St.a.done())})),t.next=21;break;case 5:if(St.a.start(),document.title=Dt(e.meta.title),r=Object(Mt["a"])(),!r){t.next=12;break}e.path==="".concat(pt["roterPre"],"/login")?(a({path:"/"}),St.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(_t["h"])().then((function(t){a()})).catch((function(t){a()})):a(),t.next=20;break;case 12:if(-1===Ft.indexOf(e.path)){t.next=16;break}a(),t.next=20;break;case 16:return t.next=18,y["a"].dispatch("user/resetToken");case 18:a("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),St.a.done();case 20:y["a"].dispatch("settings/setEdit",!1);case 21:case"end":return t.stop()}}),t)})));return function(e,n,a){return t.apply(this,arguments)}}()),k["c"].afterEach((function(){St.a.done()}));var Bt,Lt=n("7212"),Nt=n.n(Lt),Tt=(n("dfa4"),n("db72")),Qt=n("0c6d"),Ht=1,Pt=function(){return++Ht};function Ut(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.$createElement;return new Promise((function(r){t.then((function(t){var c=t.data;c.config.submitBtn=!1,c.config.resetBtn=!1,c.config.form||(c.config.form={}),c.config.formData||(c.config.formData={}),c.config.formData=Object(Tt["a"])(Object(Tt["a"])({},c.config.formData),n.formData),c.config.form.labelWidth="120px",c.config.global={upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}},c=i["default"].observable(c),e.$msgbox({title:c.title,customClass:n.class||"modal-form",message:a("div",{class:"common-form-create",key:Pt()},[a("formCreate",{props:{rule:c.rule,option:c.config},on:{mounted:function(t){Bt=t}}})]),beforeClose:function(t,n,a){var i=function(){setTimeout((function(){n.confirmButtonLoading=!1}),500)};"confirm"===t?(n.confirmButtonLoading=!0,Bt.submit((function(t){Qt["a"][c.method.toLowerCase()](c.api,t).then((function(t){a(),e.$message.success(t.message||"提交成功"),r(t)})).catch((function(t){e.$message.error(t.message||"提交失败")})).finally((function(){i()}))}),(function(){return i()}))):(i(),a())}})})).catch((function(t){e.$message.error(t.message)}))}))}function Gt(t,e){var n=this,a=this.$createElement;return new Promise((function(i,r){n.$msgbox({title:"属性规格",customClass:"upload-form",closeOnClickModal:!1,showClose:!1,message:a("div",{class:"common-form-upload"},[a("attrFrom",{props:{currentRow:t},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){i()})).catch((function(){r(),n.$message({type:"info",message:"已取消"})}))}))}function Zt(t,e,n){var a=this,i=this.$createElement;return new Promise((function(r,c){a.$msgbox({title:"运费模板",customClass:"upload-form-temp",closeOnClickModal:!1,showClose:!1,message:i("div",{class:"common-form-upload"},[i("templatesFrom",{props:{tempId:t,componentKey:n},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){r()})).catch((function(){c(),a.$message({type:"info",message:"已取消"})}))}))}n("a481");var Wt=n("cea2"),Yt=n("40b3"),Jt=n.n(Yt),qt=n("bc3a"),Xt=n.n(qt),Kt=function(t,e,a,i,r,c,o,s){var u=n("3452"),l="/".concat(o,"/").concat(s),d=t+"\n"+i+"\n"+r+"\n"+c+"\n"+l,h=u.HmacSHA1(d,a);return h=u.enc.Base64.stringify(h),"UCloud "+e+":"+h},$t={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):"local"===t.type?this.uploadMp4ToLocal(t.evfile,t.res,t.uploading):"OBS"===t.type?this.obsHttp(t.evfile,t.res,t.uploading):"US3"===t.type?this.us3Http(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var a=new Jt.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),i=t.target.files[0],r=i.name,c=r.lastIndexOf("."),o="";-1!==c&&(o=r.substring(c));var s=(new Date).getTime()+o;return new Promise((function(t,r){a.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:i,onProgress:function(t){n(t)}},(function(n,a){n?r({msg:n}):t({url:e.cdn?e.cdn+s:"http://"+a.Location,ETag:a.ETag})}))}))},obsHttp:function(t,e,n){var a=t.target.files[0],i=a.name,r=i.lastIndexOf("."),c="";-1!==r&&(c=i.substring(r));var o=(new Date).getTime()+c,s=new FormData,u=e.data;s.append("key",o),s.append("AccessKeyId",u.accessid),s.append("policy",u.policy),s.append("signature",u.signature),s.append("file",a),s.append("success_action_status",200);var l=u.host,d=l+"/"+o;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+o:d})})).catch((function(t){e({msg:t})}))}))},us3Http:function(t,e,n){var a=t.target.files[0],i=a.name,r=i.lastIndexOf("."),c="";-1!==r&&(c=i.substring(r));var o=(new Date).getTime()+c,s=e.data,u=Kt("PUT",s.accessid,s.secretKey,"",a.type,"",s.storageName,o);return new Promise((function(t,e){Xt.a.defaults.withCredentials=!1;var i="https://".concat(s.storageName,".cn-bj.ufileos.com/").concat(o);Xt.a.put(i,a,{headers:{Authorization:u,"content-type":a.type}}).then((function(e){n(!1,0),t({url:s.cdn?s.cdn+"/"+o:i})})).catch((function(t){e({msg:t})}))}))},cosHttp:function(t,e,n){var a=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},i=t.target.files[0],r=i.name,c=r.lastIndexOf("."),o="";-1!==c&&(o=r.substring(c));var s=(new Date).getTime()+o,u=e.data,l=u.credentials.sessionToken,d=u.url+a(s).replace(/%2F/g,"/"),h=new XMLHttpRequest;return h.open("PUT",d,!0),l&&h.setRequestHeader("x-cos-security-token",l),h.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){h.onload=function(){if(/^2\d\d$/.test(""+h.status)){var i=h.getResponseHeader("etag");n(!1,0),t({url:u.cdn?u.cdn+a(s).replace(/%2F/g,"/"):d,ETag:i})}else e({msg:"文件 "+s+" 上传失败,状态码:"+h.statu})},h.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},h.send(i),h.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var a=t.target.files[0],i=a.name,r=i.lastIndexOf("."),c="";-1!==r&&(c=i.substring(r));var o=(new Date).getTime()+c,s=new FormData,u=e.data;s.append("key",o),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",a),s.append("success_action_status",200);var l=u.host,d=l+"/"+o;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+o:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var a=e.data.token,i=t.target.files[0],r=i.name,c=r.lastIndexOf("."),o="";-1!==c&&(o=r.substring(c));var s=(new Date).getTime()+o,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},h=Wt["upload"](i,s,a,d,l);return new Promise((function(t,a){h.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){a({msg:t})},complete:function(a){n(!1,0),t({url:e.data.cdn?e.data.cdn+"/"+s:u})}})}))},uploadMp4ToLocal:function(t,e,n){var a=t.target.files[0],i=new FormData;return i.append("file",a),n(!0,100),Object(N["Sb"])(i)}};function te(t,e,n,a,i){var r=this,c=this.$createElement;return new Promise((function(o,s){r.$msgbox({title:"优惠券列表",customClass:"upload-form-coupon",closeOnClickModal:!1,showClose:!1,message:c("div",{class:"common-form-upload"},[c("couponList",{props:{couponData:t,handle:e,couponId:n,keyNum:a},on:{getCouponId:function(t){i(t)}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){o()})).catch((function(){s(),r.$message({type:"info",message:"已取消"})}))}))}function ee(t){var e=this;return new Promise((function(n,a){e.$confirm("确定".concat(t||"删除该条数据吗","?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n()})).catch((function(){e.$message({type:"info",message:"已取消"})}))}))}function ne(t){var e=this;return new Promise((function(n,a){e.$confirm("".concat(t||"该记录删除后不可恢复,您确认删除吗","?"),"提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){n()})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}n("6b54");var ae=n("ed08");function ie(t){var e="-";return t?(e=t,e):e}function re(t){return t?"是":"否"}function ce(t){return t?"显示":"不显示"}function oe(t){return"‘0’"===t?"显示":"不显示"}function se(t){return t?"否":"是"}function ue(t){var e={0:"未支付",1:"已支付"};return e[t]}function le(t){var e={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return e[t]}function de(t){var e={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function he(t){var e={"-1":"未完成",10:"已完成",0:"进行中"};return e[t]}function me(t){var e={0:"待核销",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return e[t]}function fe(t){var e={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return e[t]}function pe(t){var e={0:"待核销",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function ge(t){var e={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return e[t]}function be(t){var e={0:"未转账",1:"已转账"};return e[t]}function ve(t){return t>0?"已对账":"未对账"}function Ae(t){var e={0:"未确认",1:"已拒绝",2:"已确认"};return e[t]}function we(t){var e={0:"下架",1:"上架显示","-1":"平台关闭"};return e[t]}function ye(t){var e={0:"店铺券",1:"商品券"};return e[t]}function ke(t){var e={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return e[t]}function Ce(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return e[t]}function Ee(t){var e={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return e[t]}function je(t){var e={0:"手机直播",1:"推流"};return e[t]}function xe(t){var e={0:"竖屏",1:"横屏"};return e[t]}function Ie(t){return t?"✔":"✖"}function Oe(t){var e={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return e[t]}function Re(t){var e={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付"};return e[t]}function Se(t){var e={0:"未开始",1:"正在进行","-1":"已结束"};return e[t]}function Me(t){var e={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return e[t]}function ze(t){var e={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return e[t]}function Ve(t){var e={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return e[t]}function De(t){var e={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return e[t]}function _e(t){var e={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return e[t]}function Fe(t){var e={"-1":"已取消",0:"待接单",2:"待取货",3:"配送中",4:"已完成",9:"物品返回中",10:"物品返回完成",100:"骑士到店"};return e[t]}function Be(t,e){return 1===t?t+e:t+e+"s"}function Le(t){var e=Date.now()/1e3-Number(t);return e<3600?Be(~~(e/60)," minute"):e<86400?Be(~~(e/3600)," hour"):Be(~~(e/86400)," day")}function Ne(t,e){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],a=0;a=n[a].value)return(t/n[a].value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[a].symbol;return t.toString()}function Te(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var He=n("6618");i["default"].use(D),i["default"].use(E.a),i["default"].use(Nt.a),i["default"].use(m["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),i["default"].component("vue-ueditor-wrap",F.a),i["default"].component("attrFrom",P),i["default"].component("templatesFrom",lt),i["default"].component("couponList",At),i["default"].prototype.$modalForm=Ut,i["default"].prototype.$modalSure=ee,i["default"].prototype.$videoCloud=$t,i["default"].prototype.$modalSureDelete=ne,i["default"].prototype.$modalAttr=Gt,i["default"].prototype.$modalTemplates=Zt,i["default"].prototype.$modalCoupon=te,i["default"].prototype.moment=l.a,i["default"].use(s.a,{size:c.a.get("size")||"medium"}),i["default"].use(h.a),Object.keys(a).forEach((function(t){i["default"].filter(t,a[t])}));var Pe=Pe||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),k["c"].beforeEach((function(t,e,n){Pe&&t.path&&Pe.push(["_trackPageview","/#"+t.fullPath]),t.meta.title&&(document.title=t.meta.title+"-"+JSON.parse(c.a.get("MerInfo")).login_title),n()}));var Ue,Ge=Object(Mt["a"])();Ge&&(Ue=Object(He["a"])(Ge)),i["default"].config.productionTip=!1;e["default"]=new i["default"]({el:"#app",data:{notice:Ue},methods:{closeNotice:function(){this.notice&&this.notice()}},router:k["c"],store:y["a"],render:function(t){return t(w)}})},5946:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDdCOUYzQ0M0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDdCOUYzQ0I0MzlGMTFFOThGQzg4RjY2RUU1Nzg2NTkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74tZTQAAACwklEQVR42uycS0hUURzGz7XRsTI01OkFEhEyWr7ATasWQWXqopUbiRZCmK+yRbSIokUQhKX2tFWbaCUUkYIg0iKyNEo3Ltq6adNGjNyM32H+UJCO4z33fb8Pfpu5c+6c+d17/+ecOw8rk8koxiwFVECJlEiJDCVSIiVSIkOJ7iSRa+PP5qN+9+0GuAZ2gDFwE6z60ZnU3I/QnYlHwAdwB5SCEjAI5kEjL+etcwF8Ayc22JYGs+AqsCjx/5SB1+Al2JPjeUVgCEyCA5T4NyfBd9CxjTanwQJoj7vEQnAXTIMqG+0rwFvwBOyMo8Rq8FFGYNN+dMug0xAniV3gK2h2cJ81MugMeD3oeC2xHIyDF2C3C/tPgofgPdgXRYmnZCA478FrnQWLoDUqEvXZcR9MgYMeHrRK8A48AsVhlqjr1CdZuvk1Oe4Bc6A+bBK1sMsBWqYdA59BnxsHs8Cly0jP3R77OXfbpKyMyCWeCrLEFinobSq4OSd9bAmaRF24h72eWhgkJX0ddmLQcUKiLthfQL8KX/qlVh73S6IlqwPjTvicOhm9e+0OOnYl6ltQE7I6SKrwR7+HURkQK72Q2C4rjzMqemmz8962I3EXeCZHq0JFN/tV9obvg3yvsnwlNsnE+ZKKT65Iva91QmKfLN3SKn6pl5PnoonEEplLFan4Rs8jx3I9IbHFDlbAK5W9pWRt8gLJiMhaA783eFx/lXjcRKJOZ45tt8GtiEh8KnUwEDcgYhdKpERKpESGEimREimRoURKpERKZCjR9SQC0o97Kvu5hp3or9Fdp0SllsCMzbaHeTmzJjKUSImUSIkMJVIiJVIiQ4mUSImUyFAiJVIiJeadPw71Y9Wntv/ml92Gph8PPFfZHxvuNdjHMnhj0F631X8Lc8hQ4Kjdxhb/Ipo1kRIpkaFESqRESmQokRIDm3UBBgBHwWAbFrIgUwAAAABJRU5ErkJggg=="},"5a2b":function(t,e,n){"use strict";n("766a")},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var a=n("a78e"),i=n.n(a),r=n("56d7"),c="merchantToken";function o(){return i.a.get(c)}function s(t){return i.a.set(c,t)}function u(){return r["default"]&&r["default"].closeNotice(),i.a.remove(c)}},"61f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));n("6b54");function a(t){return/^(https?:|mailto:|tel:)/.test(t)}},"641c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUY0MzkzRDQ0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUY0MzkzRDM0MzlFMTFFOTkwQ0NDREZCQTNCN0JEOEQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5PKXo+AAADwklEQVR42uycSWgUQRiFe5JxFyUIihJQENSAJughB/UgIuIS0TYXCdGcRNQkRD2IaHABcSFKxIOoYDTihuhcvCkuqBBcIV48eBLj1YVENI4Z34+/4JKu7vT0xsx78KjDVE/X/1FVb6ozk1Qul7Oo/FRCBIRIiIRIESIhEiIhUoMobXoxlUrFPkDbtktlKJlMJhv3WJwOJinTiSVOiIA3Es0BuFGGAp+BdwHmF0L0BnA2msvwnH9eeg3XAeRLQnSGJzfcCrfBIxy69cO74WOAmSPEvwFORNMBr/B4yR24ASDfxw0xEekMgMvRvBoCQNESuBvXro57/LHORA2PNl3CTuqDv8ITDH1Ow9vDDp3EzUQArETzzAXgc3ieBsxtQ79N0hfvObcoZqKGRzN8xBAeMqijcCtm1/c/rtsBH4SHxxE6iQgWgJiE5jy8zNCtB14PCPcc3kNm21V4RtShE/tyRvErNTxMAG/AlU4ARfoZUZb42aSETugzEYWM0vDY4hIezQB0bojvXaswy6IInViWM4qsQnMFrjB0e6qnkDc+71GO5iK8yNAtkJNOpBA1BFrgw4YQGNBw2fs7PPJ8SLET3m94qJJ36EQGEQVN1vBYauj2Dq5HMQ8C3ner9cw9PYzQiSRYUMQq2dBdAF7X8AgUoIbOEzSS3p1Rhk4gMxEDGq3hsdklPJpQaEdEnwbWaaiMCyp0QlvO+rlNltCssMIjD5DT0FyC5wcROoFD9HiCkPA4JBt+vuGRZ+i0qksMobNHQ2cgEogY2BQ0F3R/cdJbDY+HCXlStEBn5VRDt7vwBoy5J9Rg0Q252wXgNbgqKQA1dB7LmHRsTlqsoWOHEiwaHsf1iYnLeDNrrQQLtdyUxqWbnIS2oZa+QGYibipn1RceAIo+W8mXlzFulJq1dqNKPABsQtMFz7SKT/KkqEsZ+IOIi8eiOQEPs4pXUns7WKR9QcR+0KufAT/CnwbxtwKC1e9Qo9TeafryQNpDqtUbZuo+eYBQIBBPodYWPxfyuzgBiBAJkRAJkSJEQiREQqR8nVjCEk47C9HcCvhta3DqeFQ0EPXe4wuhHi5nQiREBktIkr9n1HjsK6E0hhD/Vxbpet9jume5nLknUoRIiIRIiBQhEiIhEiJFiIRIiEWjMJ7iVNu23e6hX3kI927Evdd4GWPSIVZY5h9EhqlaLmfuiYToV0F/3bg3pL5e9CGuPVF+YCj/FKgsgCJ+WL++H+5VDXAdXBoQwJN+L07xX0RzTyREQqQIkRAJkRApQiTExOqnAAMAXR2Kua55/NAAAAAASUVORK5CYII="},6599:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},6618:function(t,e,n){"use strict";var a=n("bbcc"),i=n("5c96"),r=n.n(i),c=n("a18c"),o=n("83d6"),s=n("2b0e");function u(t){t.$on("notice",(function(t){this.$notify.info({title:t.title||"消息",message:t.message,duration:5e3,onClick:function(){console.log("click")}})}))}function l(t){return new WebSocket("".concat(a["a"].wsSocketUrl,"?type=mer&token=").concat(t))}function d(t){var e,n=l(t),a=new s["default"];function i(t,e){n.send(JSON.stringify({type:t,data:e}))}return n.onopen=function(){a.$emit("open"),e=setInterval((function(){i("ping")}),1e4)},n.onmessage=function(t){a.$emit("message",t);var e=JSON.parse(t.data);if(200===e.status&&a.$emit(e.data.status,e.data.result),"notice"===e.type){var n=a.$createElement;r.a.Notification({title:e.data.data.title,message:n("a",{style:"color: teal"},e.data.data.message),onClick:function(){"min_stock"===e.data.type||"product"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/product/list")}):"reply"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/product/reviews")}):"product_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/product/list?id=")+e.data.data.id+"&type=2"}):"product_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/product/list?id=")+e.data.data.id+"&type=7"}):"product_seckill_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=2"}):"product_seckill_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=7"}):"new_order"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/order/list?id=")+e.data.data.id}):"new_refund_order"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/order/refund?id=")+e.data.data.id}):"product_presell_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=1"}):"product_presell_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=-1"}):"product_group_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=1"}):"product_group_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=-1"}):"product_assist_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=1"}):"product_assist_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=-1"}):"broadcast_status_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=1"}):"broadcast_status_fail"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=-1"}):"goods_status_success"===e.data.type?c["c"].push({path:"".concat(o["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=1"}):"goods_status_fail"===e.data.type&&c["c"].push({path:"".concat(o["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=-1"})}})}},n.onclose=function(t){a.$emit("close",t),clearInterval(e)},u(a),function(){n.close()}}e["a"]=d},6683:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"678b":function(t,e,n){"use strict";n("432f")},"708a":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNENTU5QTc5RkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNENTU5QTdBRkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0Q1NTlBNzdGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0Q1NTlBNzhGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAgICAgICAgICAgIDAwMDAwMDAwMDAQEBAQEBAQIBAQICAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wAARCADIAMgDAREAAhEBAxEB/8QAcQABAAMAAgMBAAAAAAAAAAAAAAYHCAMFAQIECgEBAAAAAAAAAAAAAAAAAAAAABAAAQQBAgMHAgUFAQAAAAAAAAECAwQFEQYhQRIxIpPUVQcXMhNRYUIjFCQVJXW1NhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/egAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHhVREVVVERE1VV4IiJ2qq8kQCs8p7s7Uxtl9WN17JujcrJJsdDC+sjmro5GTWLNZJtOSs6mLyUCT7d3dg90Rvdi7KrNE1HT07DPs24WquiOdFq5r49eHUxz2oq6a6gSYAAAAAAAAAAAAAAAAAAAAAAAAAV17p5Gxj9oW0rOdG+9Yr4+SRiqjmwTdck6IqdiSxwrGv5PUDJgEj2lkbOL3JhrVVzmv8A7hWgka3X96vZlZBYhVP1JJFIqJ+C6L2oBtUAAAzl7nb7ktXEwWFsujrY+wyW5bgerXWL9d6Pjiiexdfs0pWoqr+qVNexqKoW5sfdMW6sJFacrW5Cr01snCmidNhreE7Wp2Q2mp1t5IvU3j0qBMQAAAAAAAAAAAAAAAAAAA6PceDr7jw13EWHLG2yxqxTInU6CxE5JYJkTVOpGSNTqTVOpqqmqagZSymxN14qy+vJhb1tqOVsdnHVpr1eZNe65j67HqzqTsa9Gu/FAJ/7e+3GTTJ1c3nqzqNajIyzUpz6NtWbUao6CSWHi6vDBIiO0f0vc5qJppqoGhZ54a0MtixKyGCCN8s00rkZHFHG1XPe9ztEa1rU1VQM73/d66m5Y7NGPr29WV1Z1J7UbLehc9v3biucnVFY7qLEmujWpoqd5wEm3z7k0osJXg27cbNdzNb7n8iJ2j8dUcrmSK9PqhvPc1zEaujo9FdwVG6hm4CXbK3RNtXNQ3dXOoz9NfJQN4/cqucmsjW9izVnd9nNdFbqiOUDYsE8NmGKxXkZNBPGyaGWNUcySKRqPjkY5OCte1UVAOUAAAAAAAAAAAAAAAAAAAABVREVVXRE4qq8ERE7VVQMye5W/Vzcz8HiJv8AEV5P6mxG7hkrEa8OlyfVShend5PcnVxRGgVEAAAANAe0W7utq7Vvy95iSTYiR6/UzjJYo6rzZxkj/LqTk1AL4AAAAAAAAAAAAAAAAAAED3fv7E7VjdBql7LOZrFj4np+11Jq2S7InV/Hj5omivdyTTigUfjPdLcdXNvyd+db1OyrWWcYn7daKBqr0/wWd5K80SOXR3FX/rVy8UCSb/8AcyDJ0WYnbk0qQXIGPyVxWPhl+3K3VccxHaOaui6TOTVF+lFVFcBR4AAAAAc9WzPTsQW6sr4bNaWOeCZi6Pjlicj2Pav4tcgG38NckyOIxWQma1st7G0bkrWaoxslmrFM9rEVVVGo566ar2AdkAAAAAAAAAAAAAAAA6fcM81XAZyzXkdFPXw+TnglYuj45oqU8kcjV5OY9qKn5oBiKSWSaR8s0j5ZZXufJLI9z5JHuXVz3vcque9yrqqquqqB6AAAAAAAAANt7X/8zt3/AEWI/wCfXA70AAAAAAAAAAAAAAAB8mQpx5Ghdx8znsivVLNOV8atSRkdqF8D3Rq5rmo9rXqqaoqa8gKp+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkAHwttz1LN+LQ8gA+FtuepZvxaHkALWx9OPHUKWPhc98VGpWpxPkVqyPjqwsgY6RWta1XuaxFXRETXkB9YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/9k="},"73fc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0I1NzhERDI0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0I1NzhERDE0MzlFMTFFOTkwOTJBOTgyMTk4RjFDNkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz74PCH/AAAEfUlEQVR42uycTUhUURTH35QKRdnHIopIhTYVaKWLCqIvSUlIcwpaFLQI+oKkFrWqZUGfBC2iTURQiOWIBWZZJmYE0ZdZUUZRJrQysoLKpux/8C2m6x3nzby5753nnAOHS/dd35z3m3vuOffcN4UGBwctEXcyRhAIRIEoEEUEokAUiAJRRCCakSynA8Ph8Aw0ixwOH2hoaGgaDYCc7OiykrgfAWxwOri6ujofIHvEnd3JGlkTBSILiKVw6RwJLP9LF3TvCNfXQZfH/HsCdBn0lkC0BUHiLZpTIwSSXgUiSUUmQEynO9+ERjNxXUwbRMzUr2juKd1zMEMLBGJycj0To3TI6RlLKBRykmAXoelUdy/QHwHj8gtaD62JRCLRdEZnpxH8E3RGTF+OrUGTndDukYKpEXfGukjTumUUeWqxX8n2jVEEsTvdyXYyqQ7NSHURfWb3c5VCzaS65nlgiQkwjzSusBDu/pQjPao4oXmvdH+AvQVO+JjaOzdr+soYz8IqTV+j3wUI3bpYzhhipabvqt8Q70O/K31L4TbjGbryJM2evx/a7itErCW/0bQq3ZQrrmA4Cys0AbbJfgZfZ2I8ly4LiCs3JnODjIYIV862Z2KsROMERu8h2vXHd0r3XBg+ixFHWgtzlb422N7PZSYGYTa6dmW/IHJKdarcpDZeQWy1hle76QBrLIP1cD6aPKW7M5WzcqMQYdA3O2eMlanQkqDvUryciZxdujJIENnto+HKMzXeQKeVT7hCJMP6lL4leJBcbntlu6jMDyIM+2sN1RhjhQLLqqAWHPyYiazyRXjARM0XSAGwjTvEFkbBpdwafnDWDI/5leoNjVS248wAOh4oVLqPWt4fpxLExUrfZkC8qBuc7pc80+HSKsT9DFKdP5b+pQN27hxvXeQgdzELPwcFYoe9gHOTOrc38Awivu2fbtIIg1/sebc38TKwzENDR6bZyqXD0Ms+AKQv9XWiBNsJH08gAiD9MR38LFUuPYcWJ3Oe4bX4ee6sylYNQLJuO2eAbNwZs3AamlfQKcqlswC4gzsgLnniSQ1ASrBrAXgBI15/8KV2pfKHRiEC0lo0mzSXxkHvMJt0dDg1mWOKc9rKADENcbpAdC/nMgGi6cCyG/oQWhQAFilXkzzbsQRVOCXbsiaKCMTAB5bYxHusnXhvsIZ+LPQReglan+pRZQo20DHtLuhqa+inxC+hZ/D5D1jvnW3jaYdCP2co1VyOQDfiQaKGAc5Gcxuar7m8D59/nHtgORoHIEkYesAwQHrOK3EAkhzDmFK2a6J9zrstwbAajDO5tKyEJip27OEcWKiinegHklTlyTNoQ0maxvgG0WnRdcCgDT9Nfr4XEKlG9yXBmB4s7L0GbehwMKadLUS7/H8owbCDhm14bI387iHN1CPck+0TUEoh1HyB3j44iIe84IENWyz9O0HkJethw4tAFCAQgQvtlIbqjOS+dTD+jZe7C9hQZqdblHjTaWMtbOhzU4AIyf+zLXtngSgQRQSiQBSIAlFEIJqRfwIMABiyUOLFGxshAAAAAElFTkSuQmCC"},7509:function(t,e,n){"use strict";n.r(e);var a=n("75fc"),i=n("768b"),r=(n("ac6a"),n("2d63")),c=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),o={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var n,a=Object(r["a"])(t.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var c=Object(i["a"])(n.value,2),o=c[0],s=c[1];if(s.path===e.path){t.visitedViews.splice(o,1);break}}}catch(u){a.e(u)}finally{a.f()}},DEL_CACHED_VIEW:function(t,e){var n=t.cachedViews.indexOf(e.name);n>-1&&t.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var n=t.cachedViews.indexOf(e.name);t.cachedViews=n>-1?t.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var n,a=Object(r["a"])(t.visitedViews);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.path===e.path){i=Object.assign(i,e);break}}}catch(c){a.e(c)}finally{a.f()}}},s={addView:function(t,e){var n=t.dispatch;n("addVisitedView",e),n("addCachedView",e)},addVisitedView:function(t,e){var n=t.commit;n("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var n=t.commit;n("ADD_CACHED_VIEW",e)},delView:function(t,e){var n=t.dispatch,i=t.state;return new Promise((function(t){n("delVisitedView",e),n("delCachedView",e),t({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delVisitedView:function(t,e){var n=t.commit,i=t.state;return new Promise((function(t){n("DEL_VISITED_VIEW",e),t(Object(a["a"])(i.visitedViews))}))},delCachedView:function(t,e){var n=t.commit,i=t.state;return new Promise((function(t){n("DEL_CACHED_VIEW",e),t(Object(a["a"])(i.cachedViews))}))},delOthersViews:function(t,e){var n=t.dispatch,i=t.state;return new Promise((function(t){n("delOthersVisitedViews",e),n("delOthersCachedViews",e),t({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(t,e){var n=t.commit,i=t.state;return new Promise((function(t){n("DEL_OTHERS_VISITED_VIEWS",e),t(Object(a["a"])(i.visitedViews))}))},delOthersCachedViews:function(t,e){var n=t.commit,i=t.state;return new Promise((function(t){n("DEL_OTHERS_CACHED_VIEWS",e),t(Object(a["a"])(i.cachedViews))}))},delAllViews:function(t,e){var n=t.dispatch,i=t.state;return new Promise((function(t){n("delAllVisitedViews",e),n("delAllCachedViews",e),t({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(a["a"])(n.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(a["a"])(n.cachedViews))}))},updateVisitedView:function(t,e){var n=t.commit;n("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:c,mutations:o,actions:s}},"766a":function(t,e,n){},7680:function(t,e,n){},"770f":function(t,e,n){},7791:function(t,e,n){},"7b72":function(t,e,n){},"80da":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(o);e["default"]=o},"83d6":function(t,e){t.exports={roterPre:"/merchant",title:"加载中...",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8593:function(t,e,n){"use strict";n.d(e,"u",(function(){return i})),n.d(e,"n",(function(){return r})),n.d(e,"K",(function(){return c})),n.d(e,"t",(function(){return o})),n.d(e,"s",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"J",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"o",(function(){return h})),n.d(e,"q",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"k",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return k})),n.d(e,"C",(function(){return C})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return j})),n.d(e,"L",(function(){return x})),n.d(e,"y",(function(){return I})),n.d(e,"z",(function(){return O})),n.d(e,"D",(function(){return R})),n.d(e,"G",(function(){return S})),n.d(e,"H",(function(){return M})),n.d(e,"l",(function(){return z})),n.d(e,"e",(function(){return V})),n.d(e,"I",(function(){return D})),n.d(e,"f",(function(){return _})),n.d(e,"p",(function(){return F})),n.d(e,"a",(function(){return B})),n.d(e,"v",(function(){return L})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return Q}));var a=n("0c6d");function i(t,e){return a["a"].get("group/lst",{page:t,limit:e})}function r(){return a["a"].get("group/create/table")}function c(t){return a["a"].get("group/update/table/"+t)}function o(t){return a["a"].get("group/detail/"+t)}function s(t,e,n){return a["a"].get("group/data/lst/"+t,{page:e,limit:n})}function u(t){return a["a"].get("group/data/create/table/"+t)}function l(t,e){return a["a"].get("group/data/update/table/".concat(t,"/").concat(e))}function d(t,e){return a["a"].post("/group/data/status/".concat(t),{status:e})}function h(t){return a["a"].delete("group/data/delete/"+t)}function m(){return a["a"].get("system/attachment/category/formatLst")}function f(){return a["a"].get("system/attachment/category/create/form")}function p(t){return a["a"].get("system/attachment/category/update/form/".concat(t))}function g(t,e){return a["a"].post("system/attachment/update/".concat(t,".html"),e)}function b(t){return a["a"].delete("system/attachment/category/delete/".concat(t))}function v(t){return a["a"].get("system/attachment/lst",t)}function A(t){return a["a"].delete("system/attachment/delete",t)}function w(t,e){return a["a"].post("system/attachment/category",{ids:t,attachment_category_id:e})}function y(){return a["a"].get("service/create/form")}function k(t){return a["a"].get("service/update/form/".concat(t))}function C(t){return a["a"].get("service/list",t)}function E(t,e){return a["a"].post("service/status/".concat(t),{status:e})}function j(t){return a["a"].delete("service/delete/".concat(t))}function x(t){return a["a"].get("user/lst",t)}function I(t,e){return a["a"].get("service/".concat(t,"/user"),e)}function O(t,e,n){return a["a"].get("service/".concat(t,"/").concat(e,"/lst"),n)}function R(t){return a["a"].post("service/login/"+t)}function S(t){return a["a"].get("notice/lst",t)}function M(t){return a["a"].post("notice/read/".concat(t))}function z(t){return a["a"].post("applyments/create",t)}function V(){return a["a"].get("applyments/detail")}function D(t,e){return a["a"].post("applyments/update/".concat(t),e)}function _(t){return a["a"].get("profitsharing/lst",t)}function F(t){return a["a"].get("expr/lst",t)}function B(t){return a["a"].get("expr/partner/".concat(t,"/form"))}function L(t){return a["a"].get("profitsharing/export",t)}function N(t){return a["a"].get("ajcaptcha",t)}function T(t){return a["a"].post("ajcheck",t)}function Q(t){return a["a"].post("ajstatus",t)}},8644:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},8646:function(t,e,n){"use strict";n("770f")},"89e5":function(t,e,n){"use strict";n("7791")},"8a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return c})),n.d(e,"f",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var a=n("0c6d");function i(t){return a["a"].get("v2/system/city/lst/"+t)}function r(t){return a["a"].get("store/shipping/lst",t)}function c(t){return a["a"].post("store/shipping/create",t)}function o(t,e){return a["a"].post("store/shipping/update/".concat(t),e)}function s(t){return a["a"].get("/store/shipping/detail/".concat(t))}function u(t){return a["a"].delete("store/shipping/delete/".concat(t))}},"8aa6":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"8bcc":function(t,e,n){"use strict";n("29c0")},"8e8d":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"8ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDVCRUNFOTg0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDVCRUNFOTc0MzlFMTFFOTkyODA4MTRGOTU2MjgyQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6lVJLmAAAF2klEQVR42uycWWxVRRjH59oismvBvUCImrigRasFjaGCJhjToK1Row2SaELcgsuDuMT4YlJi1KASjWh8KZpAYhuRupCoxQeJgEYeVAhEpBXrUqkoqAi1/v85n0nTfKf39Nw5y53Ol/wzzZlzZvndObN8M6eFgYEB4600O84j8BA9RA/Rm4foIXqIHqI3DzEZq4x6Y6FQSKVAjY2NzGg2dCk0C5oMHYN+g76Fvmhvb9+ZFqAoK7pC1GVf0hAB72wE90G3QKcVuX0/9Cb0EoB+N+ohAt7JCFZCS6GKET7eD70OPQKYB0YlRAC8FsFaaGqJSf0ENQPkh1lAzGxgAcC7EXRYAEg7FdqENO/Ioi6ZtERUdhmCV4rc9ge0C9oDHYHOgC6GphV5bgla5FqnX2cAnI/go2H6vw+g1QwB4+iQZ/nmXAk9BF0f8jyfuRzPfu4kRECYiOBraLoS3QPdicq/FzGtBQhaoTOV6N3QhUjriIt94uMhAPna1kUFSMO9HyOYC32jRJ8D3e9cn4iWcxKCbmjCkKheqBZQumKmO4MTcGWA+hWqRrp/u9QSb1cA0u6KC1BaJJ+9R4ki1CbX1s43Kte2AcJbpSaMNNYj0AYSdyDilRvHEVOJes1iNtqUaYFLLfG8EGfHBot5aINSFX7A012BqE1D+vAa/mgrA6T1PQJt/VztCsQTlGtdCeTTq1yb4ApELZ9xKf1YR12BqL221eivKmxlgLQqZX091H5xBeIu5dp46CKLecxVBi96xPc6AVEGkG4l6laL2dwcMg915nWmdSjXluE1nGrhVT6Fzgsl6l3XViytyrUp0HMW0l6ljMJc9L7hFES8Vp8i+ExbU6MlLS+hFT4Q0i2sR55706hbpUnXVkCdyvXnAWMswmdQ8YGI8OhWetgEm1xDjX7EJ9KqVKr+RADajGBNSPTT7MNk67QYwPMRvB8CkPYk8tqdVr3Sbom0B02wMX+JEsfdv52AxC2CdhN4ZnokjnPAy6AboEVQmINzg/wgqVlWG1V0CmwywUkHm0ZvdwNa4Z+2Esztlikqyda1EPrEYrL0KV5nE2CuW+KgFjkGwWOi42MmwzM6KwBvTRKAyuYsjgwmBHkbNDbiY79DL0PPAmBi6+OyOtAkME80wX7yNVANdJassWkHTXAqbLv0px2A91fSZSo7iHm0XJ/Fcck8RA/RQ3TGKrMugJyUvcAE26o8oz0T4opmmozMkwdNaTiR7pWl4D4TeK15FuerJKc5uRqdZR+E6+Z6aB5UZ/R9kTj2A7RVxOXfdoA95sQUR1pag8z/uNSblFIDOQzx+PHb0EYA/bmsIALcePG2LJWJc9Z9778ClN71NgA9nFuIgMfTBvdCPE5cldNxoM8EZ4BeBMzu3EAEPB48f9QER9zGxKhYvwwU/Mhnj/x9QJZ6B+WeKaIqGXy43j5X/o6zf81dwFehp8SrlA1EOUPNrwBaRtjX7ZPOn/su22R0jbW1KZ4gju502F5hgpNgM0fYd/IE72qUoT9ViCg8v3paB82P8DhHyU4TeJ03Jr2BhLLNksFsMXRVxKncFugmlG1/KhBRyFoBUmx68qUJvnhaF3d0tACUe9L81I3fuMwpcjs/KlqMsm5NFCIKxYJsHjQJ1ox7JC2yMZUbQ9nrpe9eNMxtnNQv/P8TDusQxd+3A5oRchszXi57zLk11IN95wtQ7TAT9xrUozcJV1hLCED2edxTrss7QJqUsU7KrK1q2E2ttL7sa2pq4kDSpUxh+PlYYxIfJ6bUKq82wfbsJGXaNb2tra3HZktsCJkDNpcrQGmVLHuzElVhwj99iw2xRrnWiUK8U+6uLKlDpxI12zZEbTK9w7hjW5RrE21DdN3+ifugh2jBPEQPMR9W6h5LPeZZqxxhMS8riHMiLOr96+zNLsS+UcinzzZEnv87NIoAHjLh58vjOSDEFcZ/ULHEDO9LdMHoU2zl4Xmr/kRvfmDxED1ED9Gbh+gheogeoreR2X8CDACpuyLF6U1ukwAAAABJRU5ErkJggg=="},"8fb7":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"905e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADbRJREFUeF7tnH1wVNUVwM95bxPysV+RBBK+TPgKEQkBYRRDbWihQgWBKgoaa+yAguJIx3Zqh3aMUzva0U7o0CoolqigCDhGQRumOO6MUBgBTSGSBQKJED4MkXzsbrJJ3t7TuQuh2X1v38e+F3Da3H/33nPP+d1zv849bxH6i2kCaFpCvwDoh2iBE/RD7IdoAQELRPR7Yj9ECwhYIKLfE/9XIbavnjgUWeLoEMEwQLQhQzsIFCQASSDmB6SGZBBr8YUvvrOAgWkR190TGx+/yZ7isBcKQDMJcCYijgYAux7LiKgJEasJyCMgeZL2HdiLHpD0tLWyznWBSEVga58y5S4UhGJAmEsASZYYRdAEANuR2KaUlw7utUSmDiHXFGJdSXbS4IyMxwjgGQDI1KFfVBUj6lIVsdDLqYe+fK+vvdOIVsZtvtKCe17HLVOfIKDfAWD6Nb0nEdUCg1+llh38MG4DNBr2OcT2VVMKmUDrEPBmo0YggJ+A+BTtVXAYANiMygKASlGklUkvHToZR1vVJn0GMex9E2/5A2F46sqLvOcLQFAJENorhYRqJjJv2pqqFqWm/sdvyqTExHEiihOBoIgQigDArQmHyE/IVtrLqt7UrGugQp9A5EZiQtI2AJiuMYRNQLAFmbQ5Ze3h/Qb0jqjKByyQP3mmgPAwAS4AzY2KygPdwScHvXLUH2+fEXPDCiG9ZQSfys8NkVgJhNkqsi8gshe/bWtZn1NeH7RSBz6AQkLib4iwBABVvJPtCUhdc6wAaakntj+RfyuhWBFz5yUMAtDLjYHmP1oNL3og2h4dm25LTCkjwOJYg4QAXsY6Z9hfOXrBzEBaBjG4Ij9XEoT9SDHXpoMSdC9xvfJ1rRmFjbb1LS8oEkR4GwD4hiQrCOTtDOC0tHLl9VdPf5ZAbF+aP4wS8MBlD5SLRGBrkmsO/7qvz2uxDOZeKYrJbwPgbOU6tCeA3XFPbdMQ+QF6UKJzHyAWKAyzBIytSn3tyN/0jGhf1gnfknLz1wLicqV+iNEW+2uHl8Sjg2mIgWX5rwKCkmISY6Eljg1fb49Hsb5q0/7oBL5OrorhkctTXzuy3mjfpiC2/2L8PSQIMSDR0tQN1W8YVeha1A8sm7AWAFbK+iIIhqTOSc7y414jesQNsbkk250oOo6QwoKNRKWpf69+zogi17JueGqPvvkDIpwrX4Jot31D9Swj+sQN0V8yvgxQaVqw3al1R+dcr01Er/FhJ8DUrwgVzrMhVmx/8+hmvbLigthaPGq0KCbVAEbdYXkoCmmCvdzcuUuv8mbrtZbk3SaCsE9BzoWLEMjRe5aNC6Lv53mvI+DS6M4Z0DLnWzUbzBp3LdsHHr7pVQKFjZFYif0tr647tmGI/kXZmZCUXAeAEYFUJNqfuqlmmlEAjYsy7BnJAwfgW964Qv11RdlJ2VnownfrvjXaN6/fvCDbneBIqYsOYBBQrf1MTZ6eZckwxMCDuasJhOcVvHCec7N3px5DAg/kzgfEYgY4G/HKUwDxsD55ELAi5WzNejXl2x/MLWSXZ8JcQEzv6ZOI9iNhRXd7x/q0inrFCJCSfoHicc8SYKnsN0az7e94d2nZZBii74FxJxCAv4P0KlRlf+fYJK3O2heNHRpKELYjwG1qdQmgVpSoJGXrsYgQP/faFNvA1wFhsXpf1CIQLk151/u+lk493mhLGVCH0QELpE32zcce0pJhCGLborHTBRE/l3kh0TLne8dV10L//WMnAmKlLDgRSwMCSWBsccrWE2EQ4WXENuAzABinZdTV3wmesW859ic99QOLc18l+aUh2C5dyhi07aJqyMwQxMB9Y58ljHZ7CrazZtWO2uaNTRdSwndrtfCYkq38iXQxo+69ICR+BoD6AV6RJhC7t2cg1GCGHURQchBpoXPrSR6ZilkMQfQtGrMPASOmIiJUpG49vlCtk8Ci0WsJBPkNgTfS0oCvlQgNcQxAj0oXLjZ25eR4tOOW/vvG8g0maqBpjX3riV9aAjG8HjF3c/TZkCi0wvH+qXWxOmmbNyRdSEw9LztT6pljFtUREFalbDvxFy1x/nvGbASEkqh6VfbtJ1TXey0/uCqv5e6RU2w2gU/JiMK6pTznjvqYd03/wlEPA2K5qgG6tdDCEPN3j/392hlardsWjCoRRNwYXS/1u9oEtdOCbvVbF+QUiyjy4GavdRv8jg9qHapT+Wej1hKh8lTWssqi3wm09eRd+RYOvxlhwJHobqmLJjg+PlkdSx3dEP3zR75AgBEvdwhUZf/wlKqr++eP3EjA3ztUim4t4qfqqDip2Qs/uKe7xQ4ZxFBooXNHfczNRVNwj0D/vJEbSb5ebHd8dGqRmmkx2sVPI86Wjo9O6bLVf3dOHUFkUIKIPeLcUR9zSdIlmOvtn5fzNhFEPPogUrl9R/0jqhDvynmaEF6+rp5IUO3YWTdBD3//3Bwe2YmM0hOUOnaeihna0w3Rd1c2P6fxR/KrBYHW2D+uV93+m3+aXWBD/EqPAX1Xh9Y4NPTs6VvJTkAqdeystwDiHA4xnGnQiyI97/jkm99rGe+bc+PnAKj1kK8lJr7fCSXGuvNcuxp0vTL6uJ2XMyp6l1LHJ1ZAvPPGDwCBZxf09sRye+Vp1enMK7fNHDEdbcA9OZ4cmvjg9bQiWufYdXqFXiG+2SMUBpxKHZWnLfDEWcP5S1nEUQURdtt3ndYVSvfPGvEUIayJaYzuhSWWBAUBBPubur6ZkeMB3VkW/jtHyDYWFgo96drd8FcDPStX9c8a9hSBEAmBqMmx+0yG7lH+yfAyoFgvbXql6KyH4MWujhl2z0VD2Q1ts4b7EDAiU5cx9pDr04ZNpiH6ioYVgYh8XYwoFArlOT3ndL+O+WZykCB/sjTtib3VIi9KnYYB+osyMsmWdD7aRiaxaS7P2ZgJV7pVbyzKsCcLic2ydY3RcofnrKG3Wt+PhpZBzLdfnZ4Wu5oXeX6NQQ/k4lqLsmYLgviPaNES86eleVpiBnl1Q+SCfUVD+aNORBSHgCqdnnNzjJruK+Ige3mkoiaG1AMA8iJ1xQWQ6+8vGvICoRCZT0lwweFpyFKzz5CWvjuyVgNGPg0QkAR+yHIeOheV0aqN1XdHVhmgECMbQbt91MLi7WjvnjHogLE1sLeMth8OkYX6AGmLw3NONb3EEMTm2zMKRDFBdnBGPqX3njc0pXuU9/0g679pHYa0iUDoDXaYA9g4NSMzKTnhTHQqMyNa4f78fMxQH9fCsNq+wswjhFH51wQHnXvPTzXqO1dBFmaVESpsNvoEeoOdkikPDE/l6ZlPM0DZ9ZRC0hjXvouqB3XjEG8fvJoA5a99kjTV/UXTQX12y2v5CgeXERic2gTeYLd5gFybttszj4DMOeig818XNJ3DMMSw29uEM7Jdmli5c3+j5u1FDbJvGgep+xzpDUoh0x4YBnjr4PkgoCzUJQCtsu/7VjMibhhieJe+ddA2Arw3AghCMBhiOWYW9suyB+uZ2t5giFkC8ArEfYCRpw4ECFJ3+3DnIZ/mhhkXxJapA2cKKP5T5lVELzoPXPxtvFP66ho5NaOMFJOl+CqO3iCzDqB/avqDDAXZbQSJ1jgOXFSNUPXoGxfEsMdMyfiKAAoi9yZqCUndOWlVsQ+megH7piiAJPIGESzzwOYCt9uWkFBDgFGfyJFEIchzfam+oZiG2Dp5YDGiEPHmEt7uiUodXzZZkpvom5zee2p7gx0dMwYdDRi6C6sNWuvk9HcRUZZNQUDrXIeadEd+4vZEArD5JqXXgCylBFpCJFnijWGPL+AgaXawM2gpQN/ktMcIRKXzX1OISWOMzKa4IYYX5AJ3CYAoe2IkoFWuqkuau5reqc2nnRGjtOS2F6QVSiB4lL4R5OmB7qpLhtIDTUEMe2P+DefDX472KghU6jh8yZIprQXE6O/+8e6JIZu4BxU/TGcVzn83q2ZzKPVnCiIX2DohjWdTRaReIH/Yqf7+QWwbn1ZIAlYqASSEetbGJqXVG98UzUMc75ZD5A871S3fK0/05bnuZ6KwQREg/yS4m81wH2uN68ZlHmKeuw5Qlu1V6jr6/YDIl5y2PPdLEOtujiARoznumtbdRpcG00ecHgGt41w89Tg6Za7U5b3+ENtyHYUMxXWIEOODdZKIwRL3sVZTHyyZ98RcpxwiUanreNt1m87B0QNGdQoDSnlKs4p3+Rmxh9KO+1RzD/V4p3mIYzjEqOmMcF0gtoxM/bEgCCtJCH/ko/Y824RS10LnqeAePZC06piHOMqhsCZSqavW3+ee2JgB9gGpqYVgw9kEcC9C+P8h1AvRbikYemTg2Q6eOGpJMQ9xpEPmiQRUITAyN03ESPsYw2F4+eMjNwD/AyIaDag//RiJggBY6jjl+zOCtX9AZB5idmodKH3aZckYWyWEKqFbetLV0KkrlcRor+Yh3sg/pFH9vwejOl2ub1ozHgwBTwhDz6XVB/kVr8+KaVVbR4S/rjL6VUCfGcSfSxBguySxN244Z83GoaWseYhDk/tmOhvSjOoR0CMR+7S1Ibg9B/Tn3mgB0vO7IVWVBLYOSeIfB2nvinq0ia7TSztC8AuX/1ANgKAWAGtDEDomAnid57p0p7HEo4ZWG9MQtTr4f/i9H6IFo9wPsR+iBQQsENHvif0QLSBggYh+T+yHaAEBC0T0e6IFEP8D5dohnWmX6X0AAAAASUVORK5CYII="},"90fb":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"93cd":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"967a":function(t,e,n){"use strict";n("9796")},9796:function(t,e,n){},9921:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"9bbf":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},"9d91":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},a14a:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},a18c:function(t,e,n){"use strict";var a,i,r=n("2b0e"),c=n("8c4f"),o=n("83d6"),s=n.n(o),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),t._v(" "),n("sidebar",{staticClass:"sidebar-container"}),t._v(" "),n("div",{staticClass:"main-container",class:{hasTagsView:t.needTagsView}},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar"),t._v(" "),t.needTagsView?n("tags-view"):t._e()],1),t._v(" "),n("app-main")],1),t._v(" "),n("copy-right")],1)},l=[],d=n("db72"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.cachedViews}},[n("router-view",{key:t.key})],1)],1)],1)},m=[],f={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},p=f,g=(n("5220"),n("b995"),n("2877")),b=Object(g["a"])(p,h,m,!1,null,"663c5681",null),v=b.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),t._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==t.device?[n("header-notice"),t._v(" "),n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),t._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:t._e(),t._v(" "),n("div",{staticClass:"platformLabel"},[t._v(t._s(t.label.mer_name))]),t._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link fontSize"},[t._v("\n "+t._s(t.adminInfo)+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){return t.goUser(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("个人中心")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.goPassword(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.logout(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("退出")])])],1)],1)],2)],1)},w=[],y=n("c80c"),k=(n("96cf"),n("3b8d")),C=n("2f62"),E=n("c24f"),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,a){return n("el-breadcrumb-item",{key:a},[n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))])])})),1)],1)},x=[],I=(n("7f7f"),n("f559"),n("bd11")),O=n.n(I),R={data:function(){return{levelList:null,roterPre:o["roterPre"]}},watch:{$route:function(t){t.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:o["roterPre"]+"/dashboard",meta:{title:"控制台"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=O.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},S=R,M=(n("d249"),Object(g["a"])(S,j,x,!1,null,"210f2cc6",null)),z=M.exports,V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},D=[],_={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},F=_,B=(n("c043"),Object(g["a"])(F,V,D,!1,null,"363956eb",null)),L=B.exports,N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg-icon",{attrs:{"icon-class":t.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:t.click}})],1)},T=[],Q=n("93bf"),H=n.n(Q),P={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!H.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;H.a.toggle()},change:function(){this.isFullscreen=H.a.isFullscreen},init:function(){H.a.enabled&&H.a.on("change",this.change)},destroy:function(){H.a.enabled&&H.a.off("change",this.change)}}},U=P,G=(n("4d7e"),Object(g["a"])(U,N,T,!1,null,"07f9857d",null)),Z=G.exports,W=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice right-menu-item"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t.count>0?n("el-badge",{staticClass:"item",attrs:{"is-dot":"",value:t.count}},[n("i",{staticClass:"el-icon-message-solid"})]):n("span",{staticClass:"item"},[n("i",{staticClass:"el-icon-message-solid"})])],1),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"top-end"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.messageList.length>0?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("消息")])]),t._v(" "),t._l(t.messageList,(function(e,a){return n("router-link",{key:a,staticClass:"text item_content",attrs:{to:{path:t.roterPre+"/station/notice/"+e.notice_log_id}},nativeOn:{click:function(e){return t.HandleDelete(a)}}},[n("el-badge",{staticClass:"item",attrs:{"is-dot":""}}),t._v(" "+t._s(e.notice_title)+"\n ")],1)}))],2):n("div",{staticClass:"ivu-notifications-container-list"},[n("div",{staticClass:"ivu-notifications-tab-empty"},[n("div",{staticClass:"ivu-notifications-tab-empty-text"},[t._v("目前没有通知")]),t._v(" "),n("img",{staticClass:"ivu-notifications-tab-empty-img",attrs:{src:"https://file.iviewui.com/iview-pro/icon-no-message.svg",alt:""}})])])],1)],1)],1)],1)],1)},Y=[],J=n("8593"),q={name:"headerNotice",data:function(){return{activeName:"second",messageList:[],needList:[],count:0,tabPosition:"right",roterPre:o["roterPre"]}},computed:{},watch:{},mounted:function(){this.getList()},methods:{handleClick:function(t,e){console.log(t,e)},goDetail:function(t){t.is_read=1,console.log(this.$router),this.$router.push({path:this.roterPre+"/station/notice",query:{id:t.notice_log_id}})},getList:function(){var t=this;Object(J["G"])({is_read:0}).then((function(e){t.messageList=e.data.list,t.count=e.data.count})).catch((function(t){}))},HandleDelete:function(t){this.messageList.splice(t,1)}}},X=q,K=(n("225f"),Object(g["a"])(X,W,Y,!1,null,"3bc87138",null)),$=K.exports,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-search",class:{show:t.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),t._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":t.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[t._l(t.options,(function(e){return[0===e.children.length?n("el-option",{key:e.route,attrs:{value:e,label:e.menu_name.join(" > ")}}):t._e()]}))],2)],1)},et=[],nt=(n("386d"),n("75fc")),at=n("2d63"),it=n("ffe7"),rt=n.n(it),ct=n("df7c"),ot=n.n(ct),st={name:"headerSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:Object(d["a"])({},Object(C["b"])(["menuList"])),watch:{routes:function(){this.searchPool=this.generateRoutes(this.menuList)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.menuList)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.$router.push(t.route),this.search="",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new rt.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"menu_name",weight:.7},{name:"route",weight:.3}]})},generateRoutes:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=[],r=Object(at["a"])(t);try{for(r.s();!(e=r.n()).done;){var c=e.value;if(!c.hidden){var o={route:ot.a.resolve(n,c.route),menu_name:Object(nt["a"])(a),children:c.children||[]};if(c.menu_name&&(o.menu_name=[].concat(Object(nt["a"])(o.menu_name),[c.menu_name]),"noRedirect"!==c.redirect&&i.push(o)),c.children){var s=this.generateRoutes(c.children,o.route,o.menu_name);s.length>=1&&(i=[].concat(Object(nt["a"])(i),Object(nt["a"])(s)))}}}}catch(u){r.e(u)}finally{r.f()}return i},querySearch:function(t){this.options=""!==t?this.fuse.search(t):[]}}},ut=st,lt=(n("8646"),Object(g["a"])(ut,tt,et,!1,null,"2301aee3",null)),dt=lt.exports,ht=n("a78e"),mt=n.n(ht),ft={components:{Breadcrumb:z,Hamburger:L,Screenfull:Z,HeaderNotice:$,Search:dt},data:function(){return{roterPre:o["roterPre"],adminInfo:mt.a.set("MerName"),label:""}},computed:Object(d["a"])({},Object(C["b"])(["sidebar","avatar","device"])),mounted:function(){var t=this;Object(E["i"])().then((function(e){t.label=e.data})).catch((function(e){var n=e.message;t.$message.error(n)}))},methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},goUser:function(){this.$modalForm(Object(E["h"])())},goPassword:function(){this.$modalForm(Object(E["v"])())},logout:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(){return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("".concat(o["roterPre"],"/login?redirect=").concat(this.$route.fullPath));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},pt=ft,gt=(n("af53"),Object(g["a"])(pt,A,w,!1,null,"6d979684",null)),bt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[t._v("Page style setting")]),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Theme Color")]),t._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:t.themeChange}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Open Tags-View")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:"tagsView"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Fixed Header")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:"fixedHeader"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Sidebar Logo")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:"sidebarLogo"}})],1)])])},At=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},yt=[],kt=(n("c5f6"),n("6b54"),n("ac6a"),n("3b2b"),n("a481"),n("f6f8").version),Ct="#409EFF",Et={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(e){var n,a,i,r,c,o,s,u,l=this;return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this.chalk?this.theme:Ct,"string"===typeof e){t.next=3;break}return t.abrupt("return");case 3:if(a=this.getThemeCluster(e.replace("#","")),i=this.getThemeCluster(n.replace("#","")),r=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),c=function(t,e){return function(){var n=l.getThemeCluster(Ct.replace("#","")),i=l.updateStyle(l[t],n,a),r=document.getElementById(e);r||(r=document.createElement("style"),r.setAttribute("id",e),document.head.appendChild(r)),r.innerText=i}},this.chalk){t.next=11;break}return o="https://unpkg.com/element-ui@".concat(kt,"/lib/theme-chalk/index.css"),t.next=11,this.getCSSString(o,"chalk");case 11:s=c("chalk","chalk-style"),s(),u=[].slice.call(document.querySelectorAll("style")).filter((function(t){var e=t.innerText;return new RegExp(n,"i").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var e=t.innerText;"string"===typeof e&&(t.innerText=l.updateStyle(e,i,a))})),this.$emit("change",e),r.close();case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},methods:{updateStyle:function(t,e,n){var a=t;return e.forEach((function(t,e){a=a.replace(new RegExp(t,"ig"),n[e])})),a},getCSSString:function(t,e){var n=this;return new Promise((function(a){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&200===i.status&&(n[e]=i.responseText.replace(/@font-face{[^}]+}/,""),a())},i.open("GET",t),i.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var n=parseInt(t.slice(0,2),16),a=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return 0===e?[n,a,i].join(","):(n+=Math.round(e*(255-n)),a+=Math.round(e*(255-a)),i+=Math.round(e*(255-i)),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i))},n=function(t,e){var n=parseInt(t.slice(0,2),16),a=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return n=Math.round((1-e)*n),a=Math.round((1-e)*a),i=Math.round((1-e)*i),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i)},a=[t],i=0;i<=9;i++)a.push(e(t,Number((i/10).toFixed(2))));return a.push(n(t,.1)),a}}},jt=Et,xt=(n("678b"),Object(g["a"])(jt,wt,yt,!1,null,null,null)),It=xt.exports,Ot={components:{ThemePicker:It},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:t})}}},methods:{themeChange:function(t){localStorage.setItem("themeColor",JSON.stringify(t)),this.$store.dispatch("settings/changeSetting",{key:"theme",value:t}),console.log(this.$store.state.settings.theme)}}},Rt=Ot,St=(n("5a2b"),Object(g["a"])(Rt,vt,At,!1,null,"73e83583",null)),Mt=St.exports,zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse}}):t._e(),t._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper myMenu"}},[n("el-menu",{attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,attrs:{item:t,"base-path":t.route}})})),1)],1)],1)},Vt=[],Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.slogo?n("img",{staticClass:"sidebar-logo-small",attrs:{src:t.slogo}}):t._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo-big",attrs:{src:t.logo}}):t._e()])],1)],1)},_t=[],Ft=s.a.title,Bt={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:Ft,logo:JSON.parse(mt.a.get("MerInfo")).menu_logo,slogo:JSON.parse(mt.a.get("MerInfo")).menu_slogo}}},Lt=Bt,Nt=(n("89e5"),Object(g["a"])(Lt,Dt,_t,!1,null,"e0209950",null)),Tt=Nt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:t.resolvePath(t.item.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item?n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.menu_name}}):t._e()],1),t._v(" "),t._l(t.item.children,(function(e){return n("sidebar-item",{key:e.route,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.route)}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[n("item",{attrs:{icon:t.onlyOneChild.icon||t.item&&t.item.icon,title:t.onlyOneChild.menu_name}})],1)],1):t._e()]],2)},Ht=[],Pt=n("61f7"),Ut={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,a=n.icon,i=n.title,r=[];if(a){var c="el-icon-"+a;r.push(t("i",{class:c}))}return i&&r.push(t("span",{slot:"title"},[i])),r}},Gt=Ut,Zt=Object(g["a"])(Gt,a,i,!1,null,null,null),Wt=Zt.exports,Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},Jt=[],qt={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(Pt["b"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},Xt=qt,Kt=Object(g["a"])(Xt,Yt,Jt,!1,null,null,null),$t=Kt.exports,te={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ee={name:"SidebarItem",components:{Item:Wt,AppLink:$t},mixins:[te],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Pt["b"])(t)?t:Object(Pt["b"])(this.basePath)?this.basePath:ot.a.resolve(this.basePath,t)}}},ne=ee,ae=Object(g["a"])(ne,Qt,Ht,!1,null,null,null),ie=ae.exports,re=n("cf1e2"),ce=n.n(re),oe={components:{SidebarItem:ie,Logo:Tt},data:function(){return{}},computed:Object(d["a"])(Object(d["a"])({},Object(C["b"])(["permission_routes","sidebar","menuList"])),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ce.a},isCollapse:function(){return!this.sidebar.opened}}),mounted:function(){this.getMenus()},methods:{getMenus:function(){this.$store.dispatch("user/getMenus")}}},se=oe,ue=(n("54d9"),Object(g["a"])(se,zt,Vt,!1,null,"27e0199e",null)),le=ue.exports,de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper"},t._l(t.visitedViews,(function(e){return n("router-link",{key:e.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:t.isActive(e)?"active":"",attrs:{to:{path:e.path,query:e.query,fullPath:e.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!t.isAffix(e)&&t.closeSelectedTag(e)},contextmenu:function(n){return n.preventDefault(),t.openMenu(e,n)}}},[t._v("\n "+t._s(e.title)+"\n "),t.isAffix(e)?t._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.closeSelectedTag(e)}}})])})),1),t._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:t.left+"px",top:t.top+"px"}},[n("li",{on:{click:function(e){return t.refreshSelectedTag(t.selectedTag)}}},[t._v("刷新")]),t._v(" "),t.isAffix(t.selectedTag)?t._e():n("li",{on:{click:function(e){return t.closeSelectedTag(t.selectedTag)}}},[t._v("关闭")]),t._v(" "),n("li",{on:{click:t.closeOthersTags}},[t._v("关闭其它")]),t._v(" "),n("li",{on:{click:function(e){return t.closeAllTags(t.selectedTag)}}},[t._v("关闭全部")])])],1)},he=[],me=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1}},[t._t("default")],2)},fe=[],pe=(n("20d6"),4),ge={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},methods:{moveToTarget:function(t){var e=this.$refs.scrollContainer.$el,n=e.offsetWidth,a=this.scrollWrapper,i=this.$parent.$refs.tag,r=null,c=null;if(i.length>0&&(r=i[0],c=i[i.length-1]),r===t)a.scrollLeft=0;else if(c===t)a.scrollLeft=a.scrollWidth-n;else{var o=i.findIndex((function(e){return e===t})),s=i[o-1],u=i[o+1],l=u.$el.offsetLeft+u.$el.offsetWidth+pe,d=s.$el.offsetLeft-pe;l>a.scrollLeft+n?a.scrollLeft=l-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var i=ot.a.resolve(n,t.path);a.push({fullPath:i,path:i,name:t.name,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(a=[].concat(Object(nt["a"])(a),Object(nt["a"])(r)))}})),a},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),n=Object(at["a"])(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;a.name&&this.$store.dispatch("tagsView/addVisitedView",a)}}catch(i){n.e(i)}finally{n.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var n,a=Object(at["a"])(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){a.e(r)}finally{a.f()}}))},refreshSelectedTag:function(t){this.reload()},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(n){var a=n.visitedViews;e.isActive(t)&&e.toLastView(a,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var a=n.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(a,t)}))},toLastView:function(t,e){var n=t.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var n=105,a=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,r=i-n,c=e.clientX-a+15;this.left=c>r?r:c,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},ye=we,ke=(n("1afe"),n("db25"),Object(g["a"])(ye,de,he,!1,null,"69049328",null)),Ce=ke.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"0"!==t.openVersion?n("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),n("a",{attrs:{href:"http://"+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},je=[],xe=n("2801"),Ie={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(xe["i"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}},Oe=Ie,Re=(n("8bcc"),Object(g["a"])(Oe,Ee,je,!1,null,"036cf7b4",null)),Se=Re.exports,Me=n("4360"),ze=document,Ve=ze.body,De=992,_e={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&Me["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(Me["a"].dispatch("app/toggleDevice","mobile"),Me["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=Ve.getBoundingClientRect();return t.width-1'});c.a.add(o);e["default"]=o},ab00:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},ad1c:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},af53:function(t,e,n){"use strict";n("4364")},af8c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2OWRlYjViMi04ZTEzLWNmNDgtODFlNi0yNzk5OTk1OWFjZjgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjlCNUJCRDY0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjlCNUJCRDU0MzlFMTFFOUJCNDM5ODBGRTdCNDNGN0EiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkQxNzQyQjZFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz52uNTZAAADk0lEQVR42uycXYhNURTH92VMKcTLNPNiFA9SJMSLSFOKUkI8KB4UeTDxoDxQXkwZHylPPCBP8tmlBoOhMUgmk4YH46NMEyWEUfNhxvVf3S3jzrn3nuOcvc/a56x//Ztm3z139vxmr73X/jg3k8vllCicxggCgSgQBaJIIApEgSgQRQLRjCr8Vvy4YEYNvizyWX0QbkoCoKr219FB1ACvBKhfC3dLOIfTChkTBSILiHVwpUws/6oT3lXi9dXw0hHfT4CXwLcF4l+9gY+VeL2nACJpZRogRhnOzfBQGsfFKCF+hx8UlM2EpwnEYLqexlk64/eMBSsWP9XmwM88Vi99jnEZgC/B9VixDEU5sfidwT/ANSPKKh1NdbbDXWUmUyPhTN36VoIidV5cyfbNBEHsigtis+6RSdC1uCB+gjsSAPCdxyRpde18IwEQs3FvQCRhXLwaN8RH8A+HAX6DW+OG+BNucRhik/4bYoXoekhng1QWiKM1FHRiNAmR9h/fOgjxnh4TWUB0tTdmg/6AQAyR2tiC2KJG73ZzFq1QurlB7NU5Y2JD2QZE10KaLURX1tF0WtnBFSI17LMjE0qOK8RfKr/HmLhZ2SZEF8bFXp1ks4bI/dyFxu0B7hDfq/xJYKJmZdsQOYf0sPK+dCAQA+g+/MUViG16AOem82HfwCbE/jBphMF/7Jmwb1JhscGz4PUe5Q3whRgA0j/1pYrgjNwWxAx8Ah5XUP4c3q8CnGdwlK1w3gIvLiijHrDNdYC2IFbBjR7lJ+GHKgGyEc5H4SkFZXRf8Rw8l1m+2MkR4ip4o0f5ePgusw5Fh1OTOYbzcZUCmYZYLRDD61QaIJoeE3fA7Sp/IZ67+rhCHE5Db5Qn7wWiQBSI/6Gx8CaV3w57Al+G1+nNCVuaBO+B78CP4dPwwrBvGvVjacVEKxR6nKHO4zWCuUGZv7MzXcOr9XhtN3zYc+Hv44M0bPXExiIASWvgvRYi7mIRgKRDJdrHAuJEeGuZOvWG061lqvxmx07OEGlHu9wDkrTLM9VgG+ZHVCc2iH43XQcNtqHf5O+3AZH26L6WqUMXK3sMtqHNR51W7j3xQJk6+wy34akqfcuBeupB7nniEZ1C5DzW1gTwrIU2bFbed4IoStbCL7jniX80W6c01Tp86eD8leUFxnKdzlDiTaeNdExR9P6knzwxI5+zLWtngSgQRQJRIApEgSgSiGb0W4ABAPZht+rjWKYmAAAAAElFTkSuQmCC"},b20f:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"210px"}},b3b5:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(o);e["default"]=o},b55e:function(t,e,n){},b5b8:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"Nav"},[n("div",{staticClass:"input"},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"选择分类","prefix-icon":"el-icon-search",clearable:""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps,"highlight-current":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.node,i=e.data;return n("div",{staticClass:"custom-tree-node",on:{click:function(e){return e.stopPropagation(),t.handleNodeClick(i)}}},[n("div",[n("span",[t._v(t._s(a.label))]),t._v(" "),i.space_property_name?n("span",{staticStyle:{"font-size":"11px",color:"#3889b1"}},[t._v("("+t._s(i.attachment_category_name)+")")]):t._e()]),t._v(" "),n("span",{staticClass:"el-ic"},[n("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){return e.stopPropagation(),t.onAdd(i.attachment_category_id)}}}),t._v(" "),"0"==i.space_id||i.children&&"undefined"!=i.children||!i.attachment_category_id?t._e():n("i",{staticClass:"el-icon-edit",attrs:{title:"修改"},on:{click:function(e){return e.stopPropagation(),t.onEdit(i.attachment_category_id)}}}),t._v(" "),"0"==i.space_id||i.children&&"undefined"!=i.children||!i.attachment_category_id?t._e():n("i",{staticClass:"el-icon-delete",attrs:{title:"删除分类"},on:{click:function(e){return e.stopPropagation(),function(){return t.handleDelete(i.attachment_category_id)}()}}})])])}}])})],1)])])])]),t._v(" "),n("el-col",t._b({staticClass:"colLeft"},"el-col",t.grid2,!1),[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"conter"},[n("div",{staticClass:"bnt"},["/merchant/config/picture"!==t.params?n("el-button",{staticClass:"mb10 mr10",attrs:{size:"small",type:"primary"},on:{click:t.checkPics}},[t._v("使用选中图片")]):t._e(),t._v(" "),n("el-upload",{staticClass:"upload-demo mr10 mb15",attrs:{action:t.fileUrl,"on-success":t.handleSuccess,headers:t.myHeaders,"show-file-list":!1,multiple:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),n("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onAdd(0)}}},[t._v("添加分类")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"error",size:"small",disabled:0===t.checkPicList.length},on:{click:function(e){return e.stopPropagation(),t.editPicList("图片")}}},[t._v("删除图片")]),t._v(" "),n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入图片名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getFileList(1)}},model:{value:t.tableData.attachment_name,callback:function(e){t.$set(t.tableData,"attachment_name",e)},expression:"tableData.attachment_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getFileList(1)}},slot:"append"})],1),t._v(" "),n("el-select",{staticClass:"mb15",attrs:{placeholder:"图片移动至",size:"small"},model:{value:t.sleOptions.attachment_category_name,callback:function(e){t.$set(t.sleOptions,"attachment_category_name",e)},expression:"sleOptions.attachment_category_name"}},[n("el-option",{staticStyle:{"max-width":"560px",height:"200px",overflow:"auto","background-color":"#fff"},attrs:{label:t.sleOptions.attachment_category_name,value:t.sleOptions.attachment_category_id}},[n("el-tree",{ref:"tree2",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps,"highlight-current":""},on:{"node-click":t.handleSelClick}})],1)],1)],1),t._v(" "),n("div",{staticClass:"pictrueList acea-row mb15"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPic,expression:"isShowPic"}],staticClass:"imagesNo"},[n("i",{staticClass:"el-icon-picture",staticStyle:{"font-size":"60px",color:"rgb(219, 219, 219)"}}),t._v(" "),n("span",{staticClass:"imagesNo_sp"},[t._v("图片库为空")])]),t._v(" "),n("div",{staticClass:"conters"},t._l(t.pictrueList.list,(function(e,a){return n("div",{key:a,staticClass:"gridPic"},[e.num>0?n("p",{staticClass:"number"},[n("el-badge",{staticClass:"item",attrs:{value:e.num}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.attachment_src,expression:"item.attachment_src"}],class:e.isSelect?"on":"",on:{click:function(n){return t.changImage(e,a,t.pictrueList.list)}}}),t._v(" "),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t.editId===e.attachment_id?n("el-input",{model:{value:e.attachment_name,callback:function(n){t.$set(e,"attachment_name",n)},expression:"item.attachment_name"}}):n("p",{staticClass:"name",staticStyle:{width:"80%"}},[t._v(t._s(e.attachment_name))]),t._v(" "),n("i",{staticClass:"el-icon-edit",on:{click:function(n){return t.handleEdit(e.attachment_id,e.attachment_name)}}})],1)])})),0)]),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[12,20,40,60],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.pictrueList.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)])])],1)],1)},i=[],r=(n("4f7f"),n("5df3"),n("1c4c"),n("ac6a"),n("c80c")),c=(n("96cf"),n("3b8d")),o=(n("c5f6"),n("75fc")),s=n("8593"),u=n("5f87"),l=n("bbcc"),d={name:"Upload",props:{isMore:{type:String,default:"1"},setModel:{type:String}},data:function(){return{loading:!1,params:"",sleOptions:{attachment_category_name:"",attachment_category_id:""},list:[],grid:{xl:8,lg:8,md:8,sm:8,xs:24},grid2:{xl:16,lg:16,md:16,sm:16,xs:24},filterText:"",treeData:[],treeData2:[],defaultProps:{children:"children",label:"attachment_category_name"},classifyId:0,myHeaders:{"X-Token":Object(u["a"])()},tableData:{page:1,limit:12,attachment_category_id:0,order:"",attachment_name:""},pictrueList:{list:[],total:0},isShowPic:!1,checkPicList:[],ids:[],checkedMore:[],checkedAll:[],selectItem:[],editId:"",editName:""}},computed:{fileUrl:function(){return l["a"].https+"/upload/image/".concat(this.tableData.attachment_category_id,"/file")}},watch:{filterText:function(t){this.$refs.tree.filter(t)}},mounted:function(){this.params=this.$route&&this.$route.path?this.$route.path:"",this.$route&&"dialog"===this.$route.query.field&&n.e("chunk-2d0da983").then(n.bind(null,"6bef")),this.getList(),this.getFileList("")},methods:{filterNode:function(t,e){return!t||-1!==e.attachment_category_name.indexOf(t)},getList:function(){var t=this,e={attachment_category_name:"全部图片",attachment_category_id:0};Object(s["q"])().then((function(n){t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(o["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},handleEdit:function(t,e){var n=this;if(t===this.editId)if(this.editName!==e){if(!e.trim())return void this.$message.warning("请先输入图片名称");Object(s["x"])(t,{attachment_name:e}).then((function(){return n.getFileList("")})),this.editId=""}else this.editId="",this.editName="";else this.editId=t,this.editName=e},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(s["g"])(),n).then((function(t){t.message;e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["j"])(t)).then((function(){return e.getList()}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["h"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleNodeClick:function(t){this.tableData.attachment_category_id=t.attachment_category_id,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSuccess:function(t){200===t.status?(this.$message.success("上传成功"),this.getFileList("")):this.$message.error(t.message)},getFileList:function(t){var e=this;this.loading=!0,this.tableData.page=t||this.tableData.page,Object(s["i"])(this.tableData).then(function(){var t=Object(c["a"])(Object(r["a"])().mark((function t(n){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.pictrueList.list=n.data.list,console.log(e.pictrueList.list),e.pictrueList.list.length?e.isShowPic=!1:e.isShowPic=!0,e.$route&&e.$route.query.field&&"dialog"!==e.$route.query.field&&(e.checkedMore=window.form_create_helper.get(e.$route.query.field)||[]),e.pictrueList.total=n.data.count,e.loading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1}))},pageChange:function(t){this.tableData.page=t,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSizeChange:function(t){this.tableData.limit=t,this.getFileList("")},changImage:function(t,e,n){var a=this;if(t.isSelect){t.isSelect=!1;e=this.ids.indexOf(t.attachment_id);e>-1&&this.ids.splice(e,1),this.selectItem.forEach((function(e,n){e.attachment_id==t.attachment_id&&a.selectItem.splice(n,1)})),this.checkPicList.map((function(e,n){e==t.attachment_src&&a.checkPicList.splice(n,1)}))}else t.isSelect=!0,this.selectItem.push(t),this.checkPicList.push(t.attachment_src),this.ids.push(t.attachment_id);this.$route&&"/merchant/config/picture"===this.$route.fullPath&&"dialog"!==this.$route.query.field||this.pictrueList.list.map((function(t,e){t.isSelect?a.selectItem.filter((function(e,n){t.attachment_id==e.attachment_id&&(t.num=n+1)})):t.num=0})),console.log(this.pictrueList.list)},checkPics:function(){if(this.checkPicList.length)if(console.log(this.$route),this.$route){if("1"===this.$route.query.type){if(this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");form_create_helper.set(this.$route.query.field,this.checkPicList[0]),form_create_helper.close(this.$route.query.field)}if("2"===this.$route.query.type&&(this.checkedAll=[].concat(Object(o["a"])(this.checkedMore),Object(o["a"])(this.checkPicList)),form_create_helper.set(this.$route.query.field,Array.from(new Set(this.checkedAll))),form_create_helper.close(this.$route.query.field)),"dialog"===this.$route.query.field){for(var t="",e=0;e';nowEditor.editor.execCommand("insertHtml",t),nowEditor.dialog.close(!0)}}else{if(console.log(this.isMore,this.checkPicList.length),"1"===this.isMore&&this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");console.log(this.checkPicList),this.$emit("getImage",this.checkPicList)}else this.$message.warning("请先选择图片")},editPicList:function(t){var e=this,n={ids:this.ids};this.$modalSure().then((function(){Object(s["w"])(n).then((function(t){t.message;e.$message.success("删除成功"),e.getFileList(""),e.checkPicList=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSelClick:function(t){this.ids.length?(this.sleOptions={attachment_category_name:t.attachment_category_name,attachment_category_id:t.attachment_category_id},this.getMove()):this.$message.warning("请先选择图片")},getMove:function(){var t=this;Object(s["k"])(this.ids,this.sleOptions.attachment_category_id).then(function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.clearBoth(),t.getFileList("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.clearBoth(),t.$message.error(e.message)}))},clearBoth:function(){this.sleOptions={attachment_category_name:"",attachment_category_id:""},this.checkPicList=[],this.ids=[]}}},h=d,m=(n("a9ec"),n("2877")),f=Object(m["a"])(h,a,i,!1,null,"f0c2c468",null);e["default"]=f.exports},b7be:function(t,e,n){"use strict";n.d(e,"I",(function(){return i})),n.d(e,"B",(function(){return r})),n.d(e,"D",(function(){return c})),n.d(e,"C",(function(){return o})),n.d(e,"y",(function(){return s})),n.d(e,"U",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"A",(function(){return d})),n.d(e,"z",(function(){return h})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return f})),n.d(e,"J",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"l",(function(){return v})),n.d(e,"K",(function(){return A})),n.d(e,"lb",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return x})),n.d(e,"ib",(function(){return I})),n.d(e,"h",(function(){return O})),n.d(e,"c",(function(){return R})),n.d(e,"b",(function(){return S})),n.d(e,"V",(function(){return M})),n.d(e,"jb",(function(){return z})),n.d(e,"W",(function(){return V})),n.d(e,"fb",(function(){return D})),n.d(e,"kb",(function(){return _})),n.d(e,"e",(function(){return F})),n.d(e,"gb",(function(){return B})),n.d(e,"cb",(function(){return L})),n.d(e,"eb",(function(){return N})),n.d(e,"db",(function(){return T})),n.d(e,"bb",(function(){return Q})),n.d(e,"hb",(function(){return H})),n.d(e,"q",(function(){return P})),n.d(e,"p",(function(){return U})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return Z})),n.d(e,"t",(function(){return W})),n.d(e,"s",(function(){return Y})),n.d(e,"x",(function(){return J})),n.d(e,"o",(function(){return q})),n.d(e,"r",(function(){return X})),n.d(e,"Z",(function(){return K})),n.d(e,"v",(function(){return $})),n.d(e,"ab",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"E",(function(){return at})),n.d(e,"R",(function(){return it})),n.d(e,"T",(function(){return rt})),n.d(e,"S",(function(){return ct})),n.d(e,"Y",(function(){return ot})),n.d(e,"P",(function(){return st})),n.d(e,"O",(function(){return ut})),n.d(e,"L",(function(){return lt})),n.d(e,"N",(function(){return dt})),n.d(e,"M",(function(){return ht})),n.d(e,"Q",(function(){return mt}));var a=n("0c6d");function i(t){return a["a"].get("store/coupon/update/".concat(t,"/form"))}function r(t){return a["a"].get("store/coupon/lst",t)}function c(t,e){return a["a"].post("store/coupon/status/".concat(t),{status:e})}function o(){return a["a"].get("store/coupon/create/form")}function s(t){return a["a"].get("store/coupon/clone/form/".concat(t))}function u(t){return a["a"].get("store/coupon/issue",t)}function l(t){return a["a"].get("store/coupon/select",t)}function d(t){return a["a"].get("store/coupon/detail/".concat(t))}function h(t){return a["a"].delete("store/coupon/delete/".concat(t))}function m(t){return a["a"].post("store/coupon/send",t)}function f(t){return a["a"].get("store/coupon_send/lst",t)}function p(){return a["a"].get("broadcast/room/create/form")}function g(t){return a["a"].get("broadcast/room/lst",t)}function b(t){return a["a"].get("broadcast/room/detail/".concat(t))}function v(t,e){return a["a"].post("broadcast/room/mark/".concat(t),{mark:e})}function A(){return a["a"].get("broadcast/goods/create/form")}function w(t){return a["a"].get("broadcast/goods/update/form/".concat(t))}function y(t){return a["a"].get("broadcast/goods/lst",t)}function k(t){return a["a"].get("broadcast/goods/detail/".concat(t))}function C(t,e){return a["a"].post("broadcast/goods/status/".concat(t),e)}function E(t){return a["a"].post("broadcast/room/export_goods",t)}function j(t,e){return a["a"].post("broadcast/goods/mark/".concat(t),{mark:e})}function x(t,e){return a["a"].post("broadcast/room/status/".concat(t),e)}function I(t,e){return a["a"].get("broadcast/room/goods/".concat(t),e)}function O(t){return a["a"].delete("broadcast/goods/delete/".concat(t))}function R(t){return a["a"].delete("broadcast/room/delete/".concat(t))}function S(t){return a["a"].post("broadcast/goods/batch_create",t)}function M(t,e){return a["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function z(t,e){return a["a"].post("broadcast/room/on_sale/".concat(t),e)}function V(t,e){return a["a"].post("broadcast/room/comment/".concat(t),{status:e})}function D(t,e){return a["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function _(t){return a["a"].get("broadcast/room/push_message/".concat(t))}function F(t){return a["a"].post("broadcast/room/rm_goods",t)}function B(t){return a["a"].get("broadcast/room/update/form/".concat(t))}function L(){return a["a"].get("broadcast/assistant/create/form")}function N(t){return a["a"].get("broadcast/assistant/update/".concat(t,"/form"))}function T(t){return a["a"].delete("broadcast/assistant/delete/".concat(t))}function Q(t){return a["a"].get("broadcast/assistant/lst",t)}function H(t){return a["a"].get("broadcast/room/addassistant/form/".concat(t))}function P(){return a["a"].get("config/others/group_buying")}function U(t){return a["a"].post("store/product/group/create",t)}function G(t,e){return a["a"].post("store/product/group/update/".concat(t),e)}function Z(t){return a["a"].get("store/product/group/lst",t)}function W(t){return a["a"].get("store/product/group/detail/".concat(t))}function Y(t){return a["a"].delete("store/product/group/delete/".concat(t))}function J(t,e){return a["a"].post("store/product/group/status/".concat(t),{status:e})}function q(t){return a["a"].get("store/product/group/buying/lst",t)}function X(t,e){return a["a"].get("store/product/group/buying/detail/".concat(t),e)}function K(t,e){return a["a"].get("store/seckill_product/detail/".concat(t),e)}function $(t,e){return a["a"].post("/store/product/group/sort/".concat(t),e)}function tt(t,e){return a["a"].post("/store/seckill_product/sort/".concat(t),e)}function et(t,e){return a["a"].post("/store/product/presell/sort/".concat(t),e)}function nt(t,e){return a["a"].post("/store/product/assist/sort/".concat(t),e)}function at(t,e){return a["a"].get("/store/coupon/product/".concat(t),e)}function it(t){return a["a"].get("config/".concat(t))}function rt(){return a["a"].get("integral/title")}function ct(t){return a["a"].get("integral/lst",t)}function ot(t){return a["a"].get("store/product/attr_value/".concat(t))}function st(t){return a["a"].post("discounts/create",t)}function ut(t){return a["a"].get("discounts/lst",t)}function lt(t,e){return a["a"].post("discounts/status/".concat(t),{status:e})}function dt(t){return a["a"].get("discounts/detail/".concat(t))}function ht(t){return a["a"].delete("discounts/delete/".concat(t))}function mt(t,e){return a["a"].post("discounts/update/".concat(t),e)}},b995:function(t,e,n){"use strict";n("c641")},bbcc:function(t,e,n){"use strict";var a=n("a78e"),i=n.n(a),r="".concat(location.origin),c=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,o=i.a.get("MerInfo")?JSON.parse(i.a.get("MerInfo")).login_title:"",s={httpUrl:r,https:r+"/mer",wsSocketUrl:c,title:o||"加载中..."};e["a"]=s},bc35:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},bd3e:function(t,e,n){},befa:function(t,e,n){},c043:function(t,e,n){"use strict";n("c068")},c068:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return c})),n.d(e,"s",(function(){return o})),n.d(e,"v",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"p",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return A})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return C})),n.d(e,"w",(function(){return E})),n.d(e,"g",(function(){return j})),n.d(e,"u",(function(){return x})),n.d(e,"z",(function(){return I})),n.d(e,"l",(function(){return O})),n.d(e,"t",(function(){return R}));var a=n("0c6d");function i(){return a["a"].get("captcha")}function r(t){return a["a"].post("login",t)}function c(){return a["a"].get("login_config")}function o(){return a["a"].get("logout")}function s(){return a["a"].get("system/admin/edit/password/form")}function u(){return a["a"].get("system/admin/edit/form")}function l(){return a["a"].get("menus")}function d(t){return Object(a["a"])({url:"/vue-element-admin/user/info",method:"get",params:{token:t}})}function h(){return a["a"].get("info")}function m(t){return a["a"].get("user/label/lst",t)}function f(){return a["a"].get("user/label/form")}function p(t){return a["a"].get("user/label/form/"+t)}function g(t){return a["a"].delete("user/label/".concat(t))}function b(t){return a["a"].post("auto_label/create",t)}function v(t){return a["a"].get("auto_label/lst",t)}function A(t,e){return a["a"].post("auto_label/update/"+t,e)}function w(t){return a["a"].delete("auto_label/delete/".concat(t))}function y(t){return a["a"].post("auto_label/sync/"+t)}function k(t){return a["a"].get("user/lst",t)}function C(t,e){return a["a"].get("user/order/".concat(t),e)}function E(t,e){return a["a"].get("user/coupon/".concat(t),e)}function j(t){return a["a"].get("user/change_label/form/"+t)}function x(t){return a["a"].post("/info/update",t)}function I(t){return a["a"].get("user/search_log",t)}function O(){return a["a"].get("../api/version")}function R(t){return a["a"].get("user/svip/order_lst",t)}},c4c8:function(t,e,n){"use strict";n.d(e,"Ib",(function(){return i})),n.d(e,"Gb",(function(){return r})),n.d(e,"Kb",(function(){return c})),n.d(e,"Hb",(function(){return o})),n.d(e,"Jb",(function(){return s})),n.d(e,"Lb",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"Mb",(function(){return m})),n.d(e,"db",(function(){return f})),n.d(e,"ab",(function(){return p})),n.d(e,"Bb",(function(){return g})),n.d(e,"Z",(function(){return b})),n.d(e,"eb",(function(){return v})),n.d(e,"W",(function(){return A})),n.d(e,"rb",(function(){return w})),n.d(e,"pb",(function(){return y})),n.d(e,"kb",(function(){return k})),n.d(e,"bb",(function(){return C})),n.d(e,"sb",(function(){return E})),n.d(e,"r",(function(){return j})),n.d(e,"q",(function(){return x})),n.d(e,"p",(function(){return I})),n.d(e,"vb",(function(){return O})),n.d(e,"M",(function(){return R})),n.d(e,"Eb",(function(){return S})),n.d(e,"Fb",(function(){return M})),n.d(e,"Db",(function(){return z})),n.d(e,"w",(function(){return V})),n.d(e,"V",(function(){return D})),n.d(e,"mb",(function(){return _})),n.d(e,"nb",(function(){return F})),n.d(e,"t",(function(){return B})),n.d(e,"Ab",(function(){return L})),n.d(e,"lb",(function(){return N})),n.d(e,"Cb",(function(){return T})),n.d(e,"s",(function(){return Q})),n.d(e,"tb",(function(){return H})),n.d(e,"qb",(function(){return P})),n.d(e,"ub",(function(){return U})),n.d(e,"X",(function(){return G})),n.d(e,"Y",(function(){return Z})),n.d(e,"N",(function(){return W})),n.d(e,"Q",(function(){return Y})),n.d(e,"P",(function(){return J})),n.d(e,"O",(function(){return q})),n.d(e,"T",(function(){return X})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return $})),n.d(e,"x",(function(){return tt})),n.d(e,"a",(function(){return et})),n.d(e,"i",(function(){return nt})),n.d(e,"g",(function(){return at})),n.d(e,"f",(function(){return it})),n.d(e,"e",(function(){return rt})),n.d(e,"b",(function(){return ct})),n.d(e,"d",(function(){return ot})),n.d(e,"h",(function(){return st})),n.d(e,"c",(function(){return ut})),n.d(e,"cb",(function(){return lt})),n.d(e,"fb",(function(){return dt})),n.d(e,"ob",(function(){return ht})),n.d(e,"y",(function(){return mt})),n.d(e,"C",(function(){return ft})),n.d(e,"E",(function(){return pt})),n.d(e,"G",(function(){return gt})),n.d(e,"A",(function(){return bt})),n.d(e,"z",(function(){return vt})),n.d(e,"D",(function(){return At})),n.d(e,"F",(function(){return wt})),n.d(e,"B",(function(){return yt})),n.d(e,"Sb",(function(){return kt})),n.d(e,"H",(function(){return Ct})),n.d(e,"L",(function(){return Et})),n.d(e,"J",(function(){return jt})),n.d(e,"I",(function(){return xt})),n.d(e,"K",(function(){return It})),n.d(e,"v",(function(){return Ot})),n.d(e,"Qb",(function(){return Rt})),n.d(e,"Rb",(function(){return St})),n.d(e,"Pb",(function(){return Mt})),n.d(e,"Nb",(function(){return zt})),n.d(e,"Ob",(function(){return Vt})),n.d(e,"u",(function(){return Dt})),n.d(e,"n",(function(){return _t})),n.d(e,"m",(function(){return Ft})),n.d(e,"o",(function(){return Bt})),n.d(e,"gb",(function(){return Lt})),n.d(e,"zb",(function(){return Nt})),n.d(e,"ib",(function(){return Tt})),n.d(e,"jb",(function(){return Qt})),n.d(e,"xb",(function(){return Ht})),n.d(e,"wb",(function(){return Pt})),n.d(e,"yb",(function(){return Ut})),n.d(e,"hb",(function(){return Gt})),n.d(e,"U",(function(){return Zt}));var a=n("0c6d");function i(){return a["a"].get("store/category/lst")}function r(){return a["a"].get("store/category/create/form")}function c(t){return a["a"].get("store/category/update/form/".concat(t))}function o(t){return a["a"].delete("store/category/delete/".concat(t))}function s(t,e){return a["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return a["a"].get("store/attr/template/lst",t)}function l(t){return a["a"].post("store/attr/template/create",t)}function d(t,e){return a["a"].post("store/attr/template/".concat(t),e)}function h(t){return a["a"].delete("store/attr/template/".concat(t))}function m(){return a["a"].get("/store/attr/template/list")}function f(t){return a["a"].get("store/product/lst",t)}function p(t){return a["a"].delete("store/product/delete/".concat(t))}function g(t){return a["a"].delete("store/seckill_product/delete/".concat(t))}function b(t){return a["a"].post("store/product/create",t)}function v(t){return a["a"].post("store/product/preview",t)}function A(t){return a["a"].post("store/productcopy/save",t)}function w(t){return a["a"].post("store/seckill_product/create",t)}function y(t){return a["a"].post("store/seckill_product/preview",t)}function k(t,e){return a["a"].post("store/product/update/".concat(t),e)}function C(t){return a["a"].get("store/product/detail/".concat(t))}function E(t){return a["a"].get("store/seckill_product/detail/".concat(t))}function j(){return a["a"].get("store/category/select")}function x(){return a["a"].get("store/category/list")}function I(){return a["a"].get("store/category/brandlist")}function O(){return a["a"].get("store/shipping/list")}function R(){return a["a"].get("store/product/lst_filter")}function S(){return a["a"].get("store/seckill_product/lst_filter")}function M(t,e){return a["a"].post("store/product/status/".concat(t),{status:e})}function z(t,e){return a["a"].post("store/seckill_product/status/".concat(t),{status:e})}function V(t){return a["a"].get("store/product/list",t)}function D(){return a["a"].get("store/product/config")}function _(t){return a["a"].get("store/reply/lst",t)}function F(t){return a["a"].get("store/reply/form/".concat(t))}function B(t){return a["a"].delete("store/product/destory/".concat(t))}function L(t){return a["a"].delete("store/seckill_product/destory/".concat(t))}function N(t){return a["a"].post("store/product/restore/".concat(t))}function T(t){return a["a"].post("store/seckill_product/restore/".concat(t))}function Q(t){return a["a"].get("store/productcopy/get",t)}function H(t){return a["a"].get("store/seckill_product/lst",t)}function P(){return a["a"].get("store/seckill_product/lst_time")}function U(t,e){return a["a"].post("store/seckill_product/update/".concat(t),e)}function G(){return a["a"].get("store/productcopy/count")}function Z(t){return a["a"].get("store/productcopy/lst",t)}function W(t){return a["a"].post("store/product/presell/create",t)}function Y(t,e){return a["a"].post("store/product/presell/update/".concat(t),e)}function J(t){return a["a"].get("store/product/presell/lst",t)}function q(t){return a["a"].get("store/product/presell/detail/".concat(t))}function X(t,e){return a["a"].post("store/product/presell/status/".concat(t),{status:e})}function K(t){return a["a"].delete("store/product/presell/delete/".concat(t))}function $(t){return a["a"].post("store/product/presell/preview",t)}function tt(t){return a["a"].post("store/product/group/preview",t)}function et(t){return a["a"].post("store/product/assist/create",t)}function nt(t,e){return a["a"].post("store/product/assist/update/".concat(t),e)}function at(t){return a["a"].get("store/product/assist/lst",t)}function it(t){return a["a"].get("store/product/assist/detail/".concat(t))}function rt(t){return a["a"].post("store/product/assist/preview",t)}function ct(t){return a["a"].delete("store/product/assist/delete/".concat(t))}function ot(t){return a["a"].get("store/product/assist_set/lst",t)}function st(t,e){return a["a"].post("store/product/assist/status/".concat(t),{status:e})}function ut(t,e){return a["a"].get("store/product/assist_set/detail/".concat(t),e)}function lt(){return a["a"].get("store/product/temp_key")}function dt(t,e){return a["a"].post("/store/product/sort/".concat(t),e)}function ht(t,e){return a["a"].post("/store/reply/sort/".concat(t),e)}function mt(t){return a["a"].post("guarantee/create",t)}function ft(t){return a["a"].get("guarantee/lst",t)}function pt(t,e){return a["a"].post("guarantee/sort/".concat(t),e)}function gt(t,e){return a["a"].post("guarantee/update/".concat(t),e)}function bt(t){return a["a"].get("guarantee/detail/".concat(t))}function vt(t){return a["a"].delete("guarantee/delete/".concat(t))}function At(t){return a["a"].get("guarantee/select",t)}function wt(t,e){return a["a"].post("guarantee/status/".concat(t),e)}function yt(){return a["a"].get("guarantee/list")}function kt(t){return a["a"].post("upload/video",t)}function Ct(){return a["a"].get("product/label/create/form")}function Et(t){return a["a"].get("product/label/update/".concat(t,"/form"))}function jt(t){return a["a"].get("product/label/lst",t)}function xt(t){return a["a"].delete("product/label/delete/".concat(t))}function It(t,e){return a["a"].post("product/label/status/".concat(t),{status:e})}function Ot(){return a["a"].get("product/label/option")}function Rt(t,e){return a["a"].post("store/product/labels/".concat(t),e)}function St(t,e){return a["a"].post("store/seckill_product/labels/".concat(t),e)}function Mt(t,e){return a["a"].post("store/product/presell/labels/".concat(t),e)}function zt(t,e){return a["a"].post("store/product/assist/labels/".concat(t),e)}function Vt(t,e){return a["a"].post("store/product/group/labels/".concat(t),e)}function Dt(t,e){return a["a"].post("store/product/free_trial/".concat(t),e)}function _t(t){return a["a"].post("store/product/batch_status",t)}function Ft(t){return a["a"].post("store/product/batch_labels",t)}function Bt(t){return a["a"].post("store/product/batch_temp",t)}function Lt(t){return a["a"].post("store/params/temp/create",t)}function Nt(t,e){return a["a"].post("store/params/temp/update/".concat(t),e)}function Tt(t){return a["a"].get("store/params/temp/detail/".concat(t))}function Qt(t){return a["a"].get("store/params/temp/lst",t)}function Ht(t){return a["a"].delete("store/params/temp/delete/".concat(t))}function Pt(t){return a["a"].get("store/params/temp/detail/".concat(t))}function Ut(t){return a["a"].get("store/params/temp/select",t)}function Gt(t){return a["a"].get("store/params/temp/show",t)}function Zt(t){return a["a"].post("store/product/batch_ext",t)}},c641:function(t,e,n){},c653:function(t,e,n){var a={"./app.js":"d9cd","./errorLog.js":"4d49","./mobildConfig.js":"3087","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(t){var e=r(t);return n(e)}function r(t){var e=a[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(a)},i.resolve=r,t.exports=i,i.id="c653"},c6b6:function(t,e,n){},c829:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},cbb7:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});c.a.add(o);e["default"]=o},cd54:function(t,e,n){},cf1c:function(t,e,n){"use strict";n("7b72")},cf1e2:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"210px"}},d056:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},d249:function(t,e,n){"use strict";n("b55e")},d2fa:function(t,e,n){"use strict";n("3e58")},d7ec:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);e["default"]=o},d9cd:function(t,e,n){"use strict";n.r(e);var a=n("a78e"),i=n.n(a),r={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:i.a.get("size")||"medium"},c={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){i.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,i.a.set("size",e)}},o={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,a=e.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)},setSize:function(t,e){var n=t.commit;n("SET_SIZE",e)}};e["default"]={namespaced:!0,state:r,mutations:c,actions:o}},db25:function(t,e,n){"use strict";n("befa")},dbc7:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},dcf8:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},de6e:function(t,e,n){},de9d:function(t,e,n){},e03b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAACjNJREFUeF7tnH9sFNcRx7/z9owP+84/iG1+p2eCa4vwwxJEgtJKRkoTKAlKIa5MC8qhFIlUoIJaqZFaya6i/oFUCVBRmwok3IYkCEODCClOS5VDSUrSpAkkDhAw+JIQfhjjM+ezsfHuTrVrDI7x3e2+3TVGvf0LyTPzZj477828t+8gZB7HBMixhYwBZCC6kAQZiBmILhBwwUQmEzMQXSDggolRk4n8q7n5NwQqdBbTFSjTjdh0IDQQowCixr81aM2C9OaxOk7T5v9ed4GBYxP3DGL3pjmT9azsR0lQFYAqGgTMalTcDzbCxBEheo/k/O7E11Z13ZQbUYgt4ZC/uKR4BQGrAHoUgM+1YAgqmI8wsPtq69X9pfXRHtdspzE0IhBjGysLxvh8PwdoIwgF3gU3EA53gHnrTVXdVrj1eId34/Vb9hSikXklDxT/GuD1IPIQXhJMbMDE1tb2ts1eZqZnEHs2zl2qCbEd4NvFweuMSG6fo4rG6/zbPnrTCx9ch9j6sxmB3DH+P4Ao7IXDjmwy13fd7NlQ8seTCUd2hii7CrF305yHVd23B8BMN5102VaTT6g12VtOfOaWXdcgdq+vXAhBjQwKuOWcZ3aYE8S8OGf78XfdGMMViN3rZ69gUvaAXWxZ3IhuwMbwUarEWk3O9k/2Ox3KMcTudbNXsCKMKexez+dt0zCYmUrkHKQjiN3rKheyQEQ6Ax2N7jR/buurpKMq50X5qS0dRu/aOQ+rCt4DMPrXwPS8Ez4N87N3yBUbKYit1TMCOeN8x2h0V+H06AZJMNDU3a4uKGmw3/5IQUysnbWLMAr7QFvY7hZmcH1gx6dr7JqxDbHr2ZlLmeiQ3YHSydt2JJ1Byb8z6YsDOz6ztbOx5bu5FxbBUzwqtnKSlIaqDSHAjOY2PTHLzl7bFsSu8IxaJqqz7r4t89bNeixJrNfl1p/8rdVhLEcZC4cKsji3BfDyKGuQ25Y9sxqqLbmOPnSVFtZHLR2jWXa1a1VFLQthIwttOT3qhAmoy/2rtWy0BLGlKuQvnjL2krcHqqOOY8fVr25MLI2kPyG3BDHx4/KfgMRuN8IkcDMT7eQ+vNF25Uaz4WRrdXHA7yusVITyOIPXAVSUYiwVwB5d1/YL9eZ7gYboZUM2VhMKKcJfJQjPAOZ3G+cP66sCr3z+cjpDFiFW/BOA8U1E/mGoJPSNOV+f+TNFYIAY9ok9FSrIGptdC6KNdxVS5ndUVV2T33CuOZUjnTUVVST4JYCmyDsMgNEYePX0knQ20kLsXj59ij5GMQqK9AEDAQlN61uS13D+nXQODfw9XlMWFhA7BsYl4p05l848l+oFDLadqA5NgG/MYTBVWh1zGDkVWu/UgWxPZictxMSPvv0MiOodOAKd+Yd5e88csGujs3r600TiVYC3B/ae3WRX/9ry6VOys5QPAEywq3tbnjkc2HvmL6n000OsLtsFJ1s81ncH9jWvlg0iUV1WGWg4e1xWP768LCx8tEtWH8z1gYazKbeC6SGuKGsB3bmJYNcZ7aZeln8w9Rpm16Zd+cTTZacAVNjVM+UJ0UDD2VLpTDQXeeGLWRp8uNfBaAr8rXmWJX0PhTqXP/QCEf2mf4i0eXOXJ31aX2HhgeSNd0qL158MzVd8vmOy8RH4xdzXzj0nq++W3vVlocWK4jssa09T1QX5r0eNs9Nhn9QQl5WuEkK8JDs4wHXBA+ct70Hlx0mt2bFs2jxFkFFgpB5d11fnH2xJ2ienhNi1bFqtDjjZ6tUFD957iMaMEiSkZxSAlHGkhNj5xLRakDxEAu8OvN4iXZml0mYYpfiToacI4jVpe+QAYmJpaBc7aG8YHM17I5qyskkHZkOx84nQnwBaZ0NlqOjO4KGWtVJrYuIHBkQ4uw7CqAoejh51EIAjVePwpCgHxo5LuuEmoD7w92jSXjH1dF784A6AfuooCiASbPxikUMb0uqJx7/1Cxb0e2kDhiLzzmDjF3KZ2PnYg8ZBgJPCYvpO4OcDb3652VEgEspdjz04VyNEyOnVFuK6YOOXSbuMlJkY//7UMJGDLdNA4MzGLdaa4JELjq9sWGUZXzSpnLJ8ESfTeNBYdcF/SELsqJo4T/H5pPurbwbMxvHXiIA0ASqKWwCNA5TV+f+6INcntlTBX6RMiQHkt5oBKeXMjERN8C3vMtIESEoEJF9IhsagaeojBZFLH0pVZ0Opc9HkYwDNdwWiacTISPIEpAkQInkG2t82mx6reqKwMNKR9KNVWrOdVZNqAefFZfBLYLBKxDXBty65tkaaABkRgKRbmeESxex1IxflT3EMox0LJ85TFPl9Z7IMZkAlo9i87RxkfOGkcvK5D/BWZ1EfOHrR2XmiYSj+vYktAHlwgZ1V0rSa4L9bpTMyvrConERWhF3OwDsvX1+T9/bllCf7aaezuS5+Z/wLLMSt8zj3Vsd+S6ySrkuBNAGSAdC9IjIkOrWnV51a8sFV84uidGExIc4bP5PH0Kdu47tjj1UC2wJpAoQvwuwZQGOX0Jj37mXnX/sGAo3PH38M5GaVHvpKjIzkmuD76ad2fF5ROXxGG+NuEbnLI+Mc8f3WtN/bLU1nc118pDgMIeQ/+FhKY2ONRE3ww+QgTYAuNtK33RpKgtFx7cqViaVRpP2NoGWILSH4HygpcXQaYomjuUbSsCBNgCJFH2htAEtSBL0u+J82S6fyliH2r41FtZy0Z7RlKk0gt6r2x+23q7YJkMj1PnBYR5g7NLWvtPB48gZ7sJ6tyONzg0WA/ysA7mwDU6K8VbU/bt8fn11UjiwDoIdFZJAvxFwX/MhaFvb3kjafzsqiLSxw1z0Zm2YsirMKjZ+HIn45UgDBaL4Wa5tlZS0cCMI2xNYZuRP82f4W8Ehko0XWLoqxzkvyP2lvtGPSNkRzbZw9bgsPc2vLzsCjU5br8060e//rASP42IyCsKJ43e6MMGbiph41tqDkJGz/jFcqE02IwoUT7xHmlGw47r/6t2DcqUSTjEtyECsKwuJeQ5TyfDhErFKftijvTKflu5NDrUi5EqsIhgUpHu9eZHLCpg5BZY1XFnx+fZ9NzW+Iy0EsC4ZFsi2glEUnIUjrqqxqKwuaE44ASvWJZmExILrxFVA6fquKSd4oIUF9vUvyzvdIT2HpHcuAYuyh3LAQ9+d0JuYmlXnluHNyRWS41yc1+UyIuP9aHIJe3xPv2lBy1X4bkyr35SCGjEy8r1qcZui8IT/aZWsn4nDRSK0eMyBiFEMcSA1GB6BvbUf3Zjt7YavwpPfOZmGZ6h/ta6L5f4Xp8e5thR0GSG8fuek82YAosSZKjWYRAJu/0jqisf7y9Qs9+0qR/kTaouW0YlJhxQyII9riJHGTOUqgiAb9qMI9h/Iuoi1txB4ISEFsn+T7rg++Zz3wJ5lJlYELxh81xjlF15r13r7TIzFVrcQoBdGK4f8nmQxEF952BmIGogsEXDCRycQMRBcIuGAik4kuQPwfBUpzf3HDNvAAAAAASUVORK5CYII="},e534:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},e7c8:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},eb1b:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);e["default"]=o},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return c}));n("4917"),n("4f7f"),n("5df3"),n("1c4c"),n("28a5"),n("ac6a"),n("456d"),n("f576"),n("6b54"),n("3b2b"),n("a481");var a=n("7618");function i(t,e){if(0===arguments.length)return null;var n,i=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var r={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{([ymdhisa])+}/g,(function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return c}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var n=new Date(t),a=Date.now(),r=(a-n)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?i(t,e):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function c(t,e,n){var a,i,r,c,o,s=function s(){var u=+new Date-c;u0?a=setTimeout(s,e-u):(a=null,n||(o=t.apply(r,i),a||(r=i=null)))};return function(){for(var i=arguments.length,u=new Array(i),l=0;l'});c.a.add(o);e["default"]=o},f7b7:function(t,e,n){"use strict";n("cd54")},f9a1:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),r=n("21a1"),c=n.n(r),o=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);e["default"]=o},fc4a:function(t,e,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/public/mer/js/chunk-09296115.2bda69c9.js b/public/mer/js/chunk-09296115.2bda69c9.js new file mode 100644 index 00000000..b7d8049c --- /dev/null +++ b/public/mer/js/chunk-09296115.2bda69c9.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09296115"],{"7f68":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.fileVisible?n("div",{attrs:{title:"导出订单列表",visible:t.fileVisible,width:"900px"},on:{"update:visible":function(e){t.fileVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"170"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"170"}}),t._v(" "),n("el-table-column",{attrs:{label:"订单类型","min-width":"170"}},[[n("span",{staticStyle:{display:"block"}},[t._v("订单")])]],2),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("exportOrderStatusFilter")(e.row.status)))])]}}],null,!1,359322133)}),t._v(" "),n("el-table-column",{key:"8",attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.downLoad(e.row.excel_id)}}},[t._v("下载")]):t._e()]}}],null,!1,2135720880)})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},o=[],i=n("f8b7"),u={name:"FileList",data:function(){return{fileVisible:!0,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},methods:{exportFileList:function(){var t=this;this.loading=!0,Object(i["k"])().then((function(e){t.fileVisible=!0,t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},downLoad:function(t){var e=this;Object(i["j"])().then((function(t){t.message})).catch((function(t){var n=t.message;e.$message.error(n)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},a=u,c=(n("add5"),n("2877")),d=Object(c["a"])(a,r,o,!1,null,"3dcc43d4",null);e["default"]=d.exports},add5:function(t,e,n){"use strict";n("bc3a8")},bc3a8:function(t,e,n){},f8b7:function(t,e,n){"use strict";n.d(e,"E",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return u})),n.d(e,"I",(function(){return a})),n.d(e,"B",(function(){return c})),n.d(e,"C",(function(){return d})),n.d(e,"F",(function(){return s})),n.d(e,"H",(function(){return f})),n.d(e,"A",(function(){return l})),n.d(e,"G",(function(){return g})),n.d(e,"P",(function(){return p})),n.d(e,"N",(function(){return m})),n.d(e,"S",(function(){return b})),n.d(e,"R",(function(){return h})),n.d(e,"Q",(function(){return v})),n.d(e,"M",(function(){return w})),n.d(e,"d",(function(){return _})),n.d(e,"r",(function(){return x})),n.d(e,"O",(function(){return y})),n.d(e,"m",(function(){return k})),n.d(e,"l",(function(){return L})),n.d(e,"k",(function(){return F})),n.d(e,"j",(function(){return z})),n.d(e,"z",(function(){return C})),n.d(e,"t",(function(){return S})),n.d(e,"D",(function(){return D})),n.d(e,"U",(function(){return j})),n.d(e,"V",(function(){return V})),n.d(e,"T",(function(){return O})),n.d(e,"x",(function(){return J})),n.d(e,"w",(function(){return N})),n.d(e,"u",(function(){return $})),n.d(e,"v",(function(){return E})),n.d(e,"y",(function(){return I})),n.d(e,"i",(function(){return q})),n.d(e,"g",(function(){return A})),n.d(e,"h",(function(){return B})),n.d(e,"L",(function(){return G})),n.d(e,"o",(function(){return H})),n.d(e,"n",(function(){return K})),n.d(e,"a",(function(){return M})),n.d(e,"q",(function(){return P})),n.d(e,"s",(function(){return Q})),n.d(e,"p",(function(){return R})),n.d(e,"f",(function(){return T})),n.d(e,"e",(function(){return U})),n.d(e,"K",(function(){return W})),n.d(e,"J",(function(){return X}));var r=n("0c6d");function o(t){return r["a"].get("store/order/lst",t)}function i(){return r["a"].get("store/order/chart")}function u(t){return r["a"].get("store/order/title",t)}function a(t,e){return r["a"].post("store/order/update/".concat(t),e)}function c(t,e){return r["a"].post("store/order/delivery/".concat(t),e)}function d(t){return r["a"].get("store/order/detail/".concat(t))}function s(t,e){return r["a"].get("store/order/log/".concat(t),e)}function f(t){return r["a"].get("store/order/remark/".concat(t,"/form"))}function l(t){return r["a"].post("store/order/delete/".concat(t))}function g(t){return r["a"].get("store/order/printer/".concat(t))}function p(t){return r["a"].get("store/refundorder/lst",t)}function m(t){return r["a"].get("store/refundorder/detail/".concat(t))}function b(t){return r["a"].get("store/refundorder/status/".concat(t,"/form"))}function h(t){return r["a"].get("store/refundorder/mark/".concat(t,"/form"))}function v(t){return r["a"].get("store/refundorder/log/".concat(t))}function w(t){return r["a"].get("store/refundorder/delete/".concat(t))}function _(t){return r["a"].post("store/refundorder/refund/".concat(t))}function x(t){return r["a"].get("store/order/express/".concat(t))}function y(t){return r["a"].get("store/refundorder/express/".concat(t))}function k(t){return r["a"].get("store/order/excel",t)}function L(t){return r["a"].get("store/order/delivery_export",t)}function F(t){return r["a"].get("excel/lst",t)}function z(t){return r["a"].get("excel/download/".concat(t))}function C(t){return r["a"].get("store/order/verify/".concat(t))}function S(t,e){return r["a"].post("store/order/verify/".concat(t),e)}function D(){return r["a"].get("store/order/filtter")}function j(){return r["a"].get("store/order/takechart")}function V(t){return r["a"].get("store/order/takelst",t)}function O(t){return r["a"].get("store/order/take_title",t)}function J(t){return r["a"].get("store/receipt/lst",t)}function N(t){return r["a"].get("store/receipt/set_recipt",t)}function $(t){return r["a"].post("store/receipt/save_recipt",t)}function E(t){return r["a"].get("store/receipt/detail/".concat(t))}function I(t,e){return r["a"].post("store/receipt/update/".concat(t),e)}function q(t){return r["a"].get("store/import/lst",t)}function A(t,e){return r["a"].get("store/import/detail/".concat(t),e)}function B(t){return r["a"].get("store/import/excel/".concat(t))}function G(t){return r["a"].get("store/refundorder/excel",t)}function H(){return r["a"].get("expr/options")}function K(t){return r["a"].get("expr/temps",t)}function M(t){return r["a"].post("store/order/delivery_batch",t)}function P(){return r["a"].get("serve/config")}function Q(){return r["a"].get("delivery/station/select")}function R(){return r["a"].get("delivery/station/options")}function T(t){return r["a"].get("delivery/order/lst",t)}function U(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function W(t){return r["a"].get("delivery/station/payLst",t)}function X(t){return r["a"].get("delivery/station/code",t)}}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-0b1f3772.e53484fb.js b/public/mer/js/chunk-0b1f3772.e53484fb.js new file mode 100644 index 00000000..3ae58526 --- /dev/null +++ b/public/mer/js/chunk-0b1f3772.e53484fb.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b1f3772"],{"504c":function(t,e,a){var l=a("9e1e"),s=a("0d58"),i=a("6821"),r=a("52a7").f;t.exports=function(t){return function(e){var a,n=i(e),o=s(n),c=o.length,d=0,u=[];while(c>d)a=o[d++],l&&!r.call(n,a)||u.push(t?[a,n[a]]:n[a]);return u}}},"6ece":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[a("el-form-item",{attrs:{label:"预售活动状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.preSaleStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"活动商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_labels,callback:function(e){t.$set(t.tableFrom,"mer_labels",e)},expression:"tableFrom.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入预售商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableFrom.presell_type,callback:function(e){t.$set(t.tableFrom,"presell_type",e)},expression:"tableFrom.presell_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.presell_type.toString(),label:t.title+"("+t.count+")"}})})),1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[a("i",{staticClass:"add"},[t._v("+")]),t._v(" 添加预售商品\n ")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_presell_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.product.image,"preview-src-list":[t.row.product.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"预售价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.presell_status?"未开始":1===e.row.presell_status?"正在进行":"已结束"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.start_time&&e.row.start_time?e.row.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.end_time&&e.row.end_time?e.row.end_time.slice(0,10):""))])]}}])}),t._v(" "),"1"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"成功/参与人次","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第一阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第二阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_two&&e.row.tattend_two.pay)+" / "+t._s(e.row.tattend_two&&e.row.tattend_two.all))])]}}],null,!1,649476621)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"seles",label:"已售商品数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock_count",label:"限量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"标签","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.mer_labels,(function(e,l){return a("div",{key:l,staticClass:"label-list"},[t._v(t._s(e.name))])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product.sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["product"]["sort"],callback:function(a){t.$set(e.row["product"],"sort",t._n(a))},expression:"scope.row['product']['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["product"]["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.product_status?"待审核":1===e.row.product_status?"审核通过":"审核失败"))]),t._v(" "),-1===e.row.product_status||-2===e.row.product_status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.presell_status?a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create/"+e.row.product_presell_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handlePreview(e.row.product_presell_id)}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditLabel(e.row)}}},[t._v("编辑标签")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_presell_id)}}},[t._v("详情")]),t._v(" "),1!==e.row.product.presell_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_presell_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"预售商品详情",center:"",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),a("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品信息")]),t._v(" "),0===t.formValidate.spec_type?a("div",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{attrs:{data:t.ManyAttrValue,height:"260","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,l){return a("el-table-column",{key:l,attrs:{align:"center",label:t.manyTabTit[l].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[l])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),a("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("预售商品活动信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售活动日期:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("尾款支付日期:")]),t._v(t._s(t.formValidate.final_start_time+"-"+t.formValidate.final_end_time))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.product_status?"审核通过":0===t.formValidate.product_status?"未审核":"审核未通过"))]),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量:")]),t._v(t._s(t.formValidate.stock_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量剩余:")]),t._v(t._s(t.formValidate.stock))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限购件数:")]),t._v(t._s(t.formValidate.pay_count)+"(0为不限制购买数量)")]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第一阶段(定金支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第二阶段(尾款支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_two&&t.formValidate.tattend_two.pay)+"/"+(t.formValidate.tattend_two&&t.formValidate.tattend_two.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s("支付尾款后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s(1===t.formValidate.delivery_type?"支付成功后"+t.formValidate.delivery_day+"天内":"预售结束后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售活动状态:")]),t._v(t._s(0===t.formValidate.presell_status?"未开始":1===t.formValidate.presell_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.is_show?"显示":"隐藏"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e(),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"goods-id":t.goodsId,"product-type":2,"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),t.dialogLabel?a("el-dialog",{attrs:{title:"选择标签",visible:t.dialogLabel,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLabel=e}}},[a("el-form",{ref:"labelForm",attrs:{model:t.labelForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",multiple:"",placeholder:"请选择"},model:{value:t.labelForm.mer_labels,callback:function(e){t.$set(t.labelForm,"mer_labels",e)},expression:"labelForm.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("labelForm")}}},[t._v("提交")])],1)],1):t._e()],1)},s=[],i=a("c80c"),r=(a("96cf"),a("3b8d")),n=(a("7f7f"),a("8615"),a("ac6a"),a("28a5"),a("55dd"),a("c4c8")),o=a("b7be"),c=a("8c98"),d=a("83d6"),u={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,create_time:"",attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0,tattend_two:{},tattend_one:{}},_={name:"ProductList",components:{previewBox:c["a"]},data:function(){return{headeNum:[{count:0,presell_type:1,title:"全款预售"},{count:0,presell_type:2,title:"定金预售"}],props:{emitPath:!1},roterPre:d["roterPre"],listLoading:!0,tableData:{data:[],total:0},preSaleStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],fromList:{custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已审核",val:"1"},{text:"审核失败",val:"-1"}]},tableFrom:{page:1,limit:20,keyword:"",mer_labels:"",product_status:this.$route.query.status?this.$route.query.status:"",type:"",presell_type:this.$route.query.type?this.$route.query.type:"1",us_status:"",product_presell_id:this.$route.query.id?this.$route.query.id:""},product_presell_id:this.$route.query.id?this.$route.query.id:"",product_id:"",modals:!1,dialogVisible:!1,loading:!0,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},u),OneattrValue:[Object.assign({},u.attrValue[0])],ManyAttrValue:[Object.assign({},u.attrValue[0])],attrInfo:{},tabClickIndex:"",previewVisible:!1,goodsId:"",previewKey:"",dialogLabel:!1,labelForm:{},labelList:[]}},watch:{product_presell_id:function(t,e){this.getList("")},$route:function(t,e){this.$route.query.product_presell_id&&this.getList("")}},mounted:function(){this.getList(""),this.getLabelLst()},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.product.sort||t.row.product.sort<0)&&(t.row.product.sort=0),Object(o["X"])(t.row.product_presell_id,{sort:t.row.product.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},renderheader:function(t,e){var a=e.column;e.$index;return t("span",{},[t("span",{},a.label.split("|")[0]),t("br"),t("span",{},a.label.split("|")[1])])},watCh:function(t){var e=this,a={},l={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},l["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var l=Object.values(t.detail).sort().join("/");e.attrInfo[l]&&(e.ManyAttrValue[a]=e.attrInfo[l])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=l},getLabelLst:function(){var t=this;Object(n["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},handleClose:function(){this.dialogLabel=!1},onEditLabel:function(t){if(this.dialogLabel=!0,this.product_id=t.product_presell_id,t.mer_labels&&t.mer_labels.length){var e=t.mer_labels.map((function(t){return t.id}));this.labelForm={mer_labels:e}}else this.labelForm={mer_labels:[]}},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){t&&Object(n["Pb"])(e.product_id,e.labelForm).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.dialogLabel=!1}))}))},goDetail:function(t){var e=this;this.dialogVisible=!0,this.loading=!0,this.formValidate={},Object(n["O"])(t).then(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,l=a.data,e.formValidate={product_id:l.product.product_id,image:l.product.image,slider_image:l.product.slider_image,store_name:l.store_name,store_info:l.store_info,presell_type:l.presell_type?l.presell_type:1,delivery_type:l.delivery_type?l.delivery_type:1,delivery_day:l.delivery_day?l.delivery_day:10,start_time:l.start_time?l.start_time:"",end_time:l.end_time?l.end_time:"",final_start_time:l.final_start_time?l.final_start_time:"",final_end_time:l.final_end_time?l.final_end_time:"",brand_id:l.product.brand_id,cate_id:l.cate_id?l.cate_id:"",mer_cate_id:l.mer_cate_id,unit_name:l.product.unit_name,sort:l.product.sort,is_good:l.product.is_good,temp_id:l.product.temp_id,is_show:l.is_show,attr:l.product.attr,extension_type:l.extension_type,content:l.content,spec_type:l.product.spec_type,is_gift_bag:l.product.is_gift_bag,tattend_two:l.tattend_two,tattend_one:l.tattend_one,create_time:l.create_time,presell_status:l.presell_status,product_status:l.product_status,pay_count:l.pay_count,stock:l.stock,stock_count:l.stock_count},0===e.formValidate.spec_type?(e.OneattrValue=l.product.attrValue,e.OneattrValue[0].down_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.down_price:0,e.OneattrValue[0].presell_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.presell_price:0,e.OneattrValue[0].sales=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.seles:0):(e.ManyAttrValue=[],l.product.attrValue.forEach((function(t,a){t.presellSku&&(e.$set(t,"down_price",t.presellSku.down_price),e.$set(t,"presell_price",t.presellSku.presell_price),e.$set(t,"sales",t.presellSku.seles),e.ManyAttrValue.push(t))})),e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.preSale_date=[l.start_time,l.end_time],e.formValidate.finalPayment_date=[l.final_start_time,l.final_end_time];case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))},handlePreview:function(t){this.previewVisible=!0,this.goodsId=t,this.previewKey=""},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["P"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.headeNum[0]["count"]=t.data.stat.all,e.headeNum[1]["count"]=t.data.stat.down,console.log(e.headeNum),e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure("删除该商品吗").then((function(){Object(n["R"])(t).then((function(t){var l=t.message;a.$message.success(l),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(n["T"])(t.product_presell_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},p=_,m=(a("7205"),a("2877")),v=Object(m["a"])(p,l,s,!1,null,"e2b0485e",null);e["default"]=v.exports},7205:function(t,e,a){"use strict";a("c5bb")},8615:function(t,e,a){var l=a("5ca1"),s=a("504c")(!1);l(l.S,"Object",{values:function(t){return s(t)}})},c5bb:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-0d2c1415.f8f005b7.js b/public/mer/js/chunk-0d2c1415.f8f005b7.js new file mode 100644 index 00000000..de2e4f6e --- /dev/null +++ b/public/mer/js/chunk-0d2c1415.f8f005b7.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d2c1415","chunk-2d0da983"],{4553:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},a=[],n=(i("7f7f"),i("c4c8")),s=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["cb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),r=s,d=(i("8307"),i("2877")),l=Object(d["a"])(r,o,a,!1,null,"732b6bbd",null);t["default"]=l.exports},"6bef":function(e,t,i){"use strict";i.r(t);i("28a5"),i("a481");(function(){if(window.frameElement&&window.frameElement.id){var e=window.parent,t=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],i=t.editor,o=e.UE,a=o.dom.domUtils,n=o.utils,s=(o.browser,o.ajax,function(e){return document.getElementById(e)});window.nowEditor={editor:i,dialog:t},n.loadFile(document,{href:i.options.themePath+i.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var r=i.getLang(t.className.split("-")[2]);r&&a.on(window,"load",(function(){var e=i.options.langPath+i.options.lang+"/images/";for(var t in r["static"]){var o=s(t);if(o){var d=o.tagName,l=r["static"][t];switch(l.src&&(l=n.extend({},l,!1),l.src=e+l.src),l.style&&(l=n.extend({},l,!1),l.style=l.style.replace(/url\s*\(/g,"url("+e)),d.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(l),o);break;case"select":for(var c,u=o.options,v=0;c=u[v];)c.innerHTML=l.options[v++];for(var p in l)"options"!=p&&o.setAttribute(p,l[p]);break;default:a.setAttributes(o,l)}}}}))}})()},8307:function(e,t,i){"use strict";i("f5ee")},f5ee:function(e,t,i){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-1306dfb6.5e214619.js b/public/mer/js/chunk-1306dfb6.5e214619.js new file mode 100644 index 00000000..ea8c283a --- /dev/null +++ b/public/mer/js/chunk-1306dfb6.5e214619.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1306dfb6"],{"2c13":function(e,t,a){"use strict";a("98c7")},"3c36":function(e,t,a){},"3e1a":function(e,t,a){},"407c":function(e,t,a){"use strict";a("3e1a")},7514:function(e,t,a){"use strict";var i=a("5ca1"),s=a("0a49")(5),l="find",n=!0;l in[]&&Array(1)[l]((function(){n=!1})),i(i.P+i.F*n,"Array",{find:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")(l)},9899:function(e,t,a){"use strict";a("3c36")},"98c7":function(e,t,a){},b9c2:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-tabs",{on:{"tab-click":function(t){return e.getList(1)}},model:{value:e.user_type,callback:function(t){e.user_type=t},expression:"user_type"}},[a("el-tab-pane",{attrs:{label:"全部用户",name:""}}),e._v(" "),a("el-tab-pane",{attrs:{label:"微信用户",name:"wechat"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"小程序用户",name:"routine"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"H5用户",name:"h5"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"APP",name:"app"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"PC",name:"pc"}})],1),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:"",size:"small","label-position":e.labelPosition,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"用户昵称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userFrom.nickname,callback:function(t){e.$set(e.userFrom,"nickname",t)},expression:"userFrom.nickname"}})],1)],1)],1),e._v(" "),e.collapse?[a("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"用户标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},model:{value:e.userFrom.label_id,callback:function(t){e.$set(e.userFrom,"label_id",t)},expression:"userFrom.label_id"}},[a("el-option",{attrs:{value:""}},[e._v("全部")]),e._v(" "),e._l(e.labelLists,(function(e,t){return a("el-option",{key:t,attrs:{value:e.label_id,label:e.label_name}})}))],2)],1)],1)],1),e._v(" "),a("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"性别:"}},[a("el-radio-group",{staticClass:"selWidth",attrs:{type:"button"},model:{value:e.userFrom.sex,callback:function(t){e.$set(e.userFrom,"sex",t)},expression:"userFrom.sex"}},[a("el-radio-button",{attrs:{label:""}},[a("span",[e._v("全部")])]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[a("span",[e._v("男")])]),e._v(" "),a("el-radio-button",{attrs:{label:"2"}},[a("span",[e._v("女")])]),e._v(" "),a("el-radio-button",{attrs:{label:"0"}},[a("span",[e._v("保密")])])],1)],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"身份:"}},[a("el-radio-group",{staticClass:"selWidth",attrs:{type:"button"},model:{value:e.userFrom.is_promoter,callback:function(t){e.$set(e.userFrom,"is_promoter",t)},expression:"userFrom.is_promoter"}},[a("el-radio-button",{attrs:{label:""}},[a("span",[e._v("全部")])]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[a("span",[e._v("推广员")])]),e._v(" "),a("el-radio-button",{attrs:{label:"0"}},[a("span",[e._v("普通用户")])])],1)],1)],1)],1),e._v(" "),a("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"访问情况:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},model:{value:e.userFrom.user_time_type,callback:function(t){e.$set(e.userFrom,"user_time_type",t)},expression:"userFrom.user_time_type"}},[a("el-option",{attrs:{value:"visit",label:"最后访问"}}),e._v(" "),a("el-option",{attrs:{value:"add_time",label:"首次访问"}})],1)],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{attrs:{label:"消费情况:"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},model:{value:e.userFrom.pay_count,callback:function(t){e.$set(e.userFrom,"pay_count",t)},expression:"userFrom.pay_count"}},[a("el-option",{attrs:{value:"-1",label:"0次"}}),e._v(" "),a("el-option",{attrs:{value:"0",label:"1次及以上"}}),e._v(" "),a("el-option",{attrs:{value:"1",label:"2次及以上"}}),e._v(" "),a("el-option",{attrs:{value:"2",label:"3次及以上"}}),e._v(" "),a("el-option",{attrs:{value:"3",label:"4次及以上"}}),e._v(" "),a("el-option",{attrs:{value:"4",label:"5次及以上"}})],1)],1)],1)],1),e._v(" "),a("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[a("el-col",e._b({},"el-col",e.grid,!1),[a("el-form-item",{staticClass:"timeBox",attrs:{label:"访问时间:"}},[a("el-date-picker",{staticClass:"selWidth",attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1)],1)]:e._e(),e._v(" "),a("el-col",{staticClass:"text-right userFrom",attrs:{xs:24,sm:24,md:24,lg:6,xl:6}},[a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"ios-search",label:"default",size:"small"},on:{click:e.userSearchs}},[e._v("搜索")]),e._v(" "),a("el-button",{staticClass:"ResetSearch mr10",attrs:{size:"small",type:"reset"},on:{click:function(t){return e.reset("userFrom")}}},[e._v("重置")]),e._v(" "),a("a",{staticClass:"ivu-ml-8",on:{click:function(t){e.collapse=!e.collapse}}},[e.collapse?[e._v("\n 收起 "),a("i",{staticClass:"el-icon-arrow-up"})]:[e._v("\n 展开 "),a("i",{staticClass:"el-icon-arrow-down"})]],2)],1)],1)],2)],1)],1)],1),e._v(" "),a("div",[a("el-button",{staticClass:"mr15",staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"ios-search",label:"default",size:"small"},on:{click:e.sendCoupon}},[e._v("发送优惠券")]),e._v(" "),e.checkedIds.length>0||e.allCheck?a("el-alert",{attrs:{title:e.allCheck?"已选择 "+e.tableData.total+" 项":"已选择 "+e.checkedIds.length+" 项",type:"info","show-icon":""}}):e._e()],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[a("div",[a("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkName},on:{click:function(a){return e.onHandle("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),a("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkName},on:{click:function(t){return e.onHandle("duo")}}},[e._v("选中全部")])]),e._v(" "),a("el-checkbox",{attrs:{slot:"reference",value:"dan"===e.chkName&&e.checkedPage.indexOf(e.userFrom.page)>-1||"duo"===e.chkName},on:{change:e.changeType},slot:"reference"})],1)]}},{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{value:e.checkedIds.indexOf(t.row.uid)>-1||"duo"===e.chkName&&-1===e.noChecked.indexOf(t.row.uid)},on:{change:function(a){return e.changeOne(a,t.row)}}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user_merchant_id",label:"ID","min-width":"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"头像","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar?t.row.avatar:e.moren,"preview-src-list":[t.row.avatar||e.moren]}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"昵称","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("div",{staticClass:"acea-row"},[a("i",{directives:[{name:"show",rawName:"v-show",value:1===i.sex,expression:"row.sex===1"}],staticClass:"el-icon-male mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#2db7f5"}}),e._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:2===i.sex,expression:"row.sex===2"}],staticClass:"el-icon-female mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#ed4014"}}),e._v(" "),a("div",{domProps:{textContent:e._s(i.nickname)}})]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:i.vip_name,expression:"row.vip_name"}],staticClass:"vipName"},[e._v(e._s(i.vip_name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"is_svip",label:"付费会员","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.is_svip>0?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"首次访问时间",prop:"create_time","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户类型","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s("routine"===i.user_type?"小程序":"wechat"===i.user_type?"公众号":"app"===i.user_type?"App":"pc"===i.user_type?"PC":"H5"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"首次消费时间",prop:"first_pay_time","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"最近消费时间",prop:"last_pay_time","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"标签","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(" "+e._s(i.label.join("、")))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"130",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.onDetails(t.row)}}},[e._v("详情")]),e._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.setLabel(t.row.user_merchant_id)}}},[e._v("设置标签")])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.userFrom.limit,"current-page":e.userFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),e.visibleDetail?a("el-dialog",{attrs:{title:"用户详情",visible:e.visibleDetail,width:"1000px","before-close":e.Close},on:{"update:visible":function(t){e.visibleDetail=t}}},[e.visibleDetail?a("user-details",{ref:"userDetails",attrs:{uid:e.uid,row:e.row}}):e._e()],1):e._e(),e._v(" "),e.visibleCoupon?a("el-dialog",{attrs:{title:"优惠券列表",visible:e.visibleCoupon,width:"1000px"},on:{"update:visible":function(t){e.visibleCoupon=t}}},[e.visibleCoupon?a("coupon-List",{ref:"couponList",attrs:{couponForm:e.couponForm,checkedIds:e.checkedIds,allCheck:e.allCheck,userFrom:e.userFrom},on:{sendSuccess:e.sendSuccess}}):e._e()],1):e._e()],1)},s=[],l=(a("456d"),a("7514"),a("ac6a"),a("c24f")),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.psInfo?a("div",{staticClass:"acea-row row-middle"},[a("div",{staticClass:"avatar mr15"},[a("div",{staticClass:"block"},[a("el-avatar",{attrs:{size:50,src:e.psInfo.avatar?e.psInfo.avatar:e.moren}})],1)]),e._v(" "),a("div",{staticClass:"dashboard-workplace-header-tip"},[a("p",{staticClass:"dashboard-workplace-header-tip-title",domProps:{textContent:e._s(e.psInfo.nickname||"-")}}),e._v(" "),a("div",{staticClass:"dashboard-workplace-header-tip-desc"},[a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[e._v("消费次数: "+e._s(e.psInfo.pay_num)+"次")]),e._v(" "),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[e._v("总消费金额: "+e._s(e.psInfo.pay_price)+"元")]),e._v(" "),e.psInfo.is_svip?a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[e._v("会员到期时间: "+e._s(e.psInfo.svip_endtime))]):e._e()])])]):e._e(),e._v(" "),a("el-row",{staticClass:"ivu-mt mt20",attrs:{align:"middle",gutter:10}},[a("el-col",{attrs:{span:4}},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"0"},on:{select:e.changeType}},e._l(e.list,(function(t,i){return a("el-menu-item",{key:i,attrs:{name:t.val,index:t.val}},[a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.label))])])})),1)],1),e._v(" "),a("el-col",{attrs:{span:20}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tabNumWidth",attrs:{data:e.tableData.data,size:"mini"}},[e._l(e.columns,(function(e,t){return a("el-table-column",{key:t,attrs:{prop:e.key,label:e.title,width:"item.minWidth"}})})),e._v(" "),"3"===e.type?a("el-table-column",{attrs:{label:"有效期","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("filterEmpty")(t.row?t.row.start_time+"-"+t.row.end_time:"")))])]}}],null,!1,3673940515)}):e._e()],2),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[6,12,18,24],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)],1)},o=[],r=(a("c5f6"),{name:"UserDetails",props:{uid:{type:Number,default:null},row:{type:Object,default:null}},data:function(){return{moren:a("cdfe"),loading:!1,columns:[],Visible:!1,list:[{val:"0",label:"消费记录"},{val:"3",label:"持有优惠券"}],tableData:{data:[],total:0},tableFrom:{page:1,limit:6},psInfo:null,type:"0"}},mounted:function(){this.uid&&(this.getHeader(),this.getInfo("0"))},methods:{changeType:function(e){this.type=e,this.tableFrom.page=1,this.getInfo(e)},getInfo:function(e){var t=this;switch(this.loading=!0,e){case"0":Object(l["y"])(this.uid,this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.columns=[{title:"订单ID",key:"order_id",minWidth:250},{title:"收货人",key:"real_name",minWidth:90},{title:"商品数量",key:"total_num",minWidth:80},{title:"商品总价",key:"total_price",minWidth:90},{title:"实付金额",key:"pay_price",minWidth:90},{title:"交易完成时间",key:"pay_time",minWidth:160}],t.loading=!1})).catch((function(){t.loading=!1}));break;case"3":Object(l["w"])(this.uid,this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.columns=[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",key:"coupon_price",minWidth:120},{title:"最低消费额",key:"use_min_price",minWidth:120},{title:"兑换时间",key:"use_time",minWidth:120}],t.loading=!1})).catch((function(){t.loading=!1}));break}},pageChange:function(e){this.tableFrom.page=e,this.getInfo(this.type)},handleSizeChange:function(e){this.tableFrom.limit=e,this.getInfo(this.type)},getHeader:function(){this.psInfo=this.row}}}),c=r,u=(a("9899"),a("2877")),d=Object(u["a"])(c,n,o,!1,null,"a6de1244",null),m=d.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:"",size:"small"}},[a("el-form-item",{attrs:{label:"优惠劵名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.coupon_name,callback:function(t){e.$set(e.tableFrom,"coupon_name",t)},expression:"tableFrom.coupon_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1)],1)],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.coupon_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(e._f("couponTypeFilter")(i.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.use_min_price?"不限制":t.row.use_min_price))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1===t.row.coupon_type?t.row.use_start_time+" 一 "+t.row.use_end_time:t.row.coupon_time))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.is_limited?"不限量":t.row.remain_count))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small",disabled:e.multipleSelection.coupon_id!=t.row.coupon_id},on:{click:function(a){return e.send(t.row.coupon_id)}}},[e._v("发送")])]}}])})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[5,10,20],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1),e._v(" "),a("div")],1)},h=[],_=a("b7be"),b=a("83d6"),v={name:"CouponList",props:{couponForm:{type:Object,required:!0},checkedIds:{type:Array,default:[]},allCheck:{type:Boolean,default:!1},userFrom:{type:Object,required:!0}},data:function(){return{roterPre:b["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,coupon_name:""},multipleSelection:{coupon_id:""},templateRadio:0}},mounted:function(){this.tableFrom.page=1,this.getList(1)},methods:{getTemplateRow:function(e){this.multipleSelection={coupon_id:e.coupon_id}},send:function(e){var t=this;delete this.userFrom["page"],delete this.userFrom["limit"];var a=this;a.$confirm("确定要发送优惠券吗?发送优惠券后将无法恢复,请谨慎操作!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var i={coupon_id:e,search:a.userFrom,mark:a.filter(t.couponForm),is_all:a.allCheck?1:0,uid:a.checkedIds};Object(_["G"])(i).then((function(e){a.$message.success(e.message),a.$emit("sendSuccess")})).catch((function(e){a.$message.error(e.message)}))})).catch((function(e){tthathis.$message({type:"info",message:"已取消"})}))},filter:function(e){for(var t in e)""===e[t]&&delete e[t];return e},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(_["B"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")}}},f=v,g=(a("2c13"),Object(u["a"])(f,p,h,!1,null,"6166f5c4",null)),k=g.exports,w={name:"UserList",components:{userDetails:m,couponList:k},data:function(){return{moren:a("cdfe"),pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){var t=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[a,t])}},{text:"昨天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()))),e.$emit("pick",[a,t])}},{text:"最近7天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近30天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"本月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[a,t])}},{text:"本年",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[a,t])}}]},timeVal:[],collapse:!1,visibleDetail:!1,visibleCoupon:!1,maxCols:3,isShowSend:!0,visible:!1,user_type:"",tableData:{data:[],total:0},listLoading:!0,wechatIds:"",row:"",labelPosition:"right",userProps:{children:"children",label:"name",value:"name"},userFrom:{label_id:"",user_type:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",province:"",city:"",page:1,limit:20,group_id:""},couponForm:{"用户标签":"","用户类型":"","性别":"","身份":"","消费情况":"","访问情况":"","访问时间":"","昵称":""},address:[],grid:{xl:8,lg:12,md:12,sm:24,xs:24},grid2:{xl:18,lg:16,md:12,sm:24,xs:24},grid3:{xl:8,lg:12,md:12,sm:24,xs:24},addresData:[],groupList:[],labelLists:[],chkName:"",checkedPage:[],checkedIds:[],noChecked:[],allCheck:!1}},mounted:function(){this.getTagList(),this.getList("")},methods:{onHandle:function(e){this.chkName=this.chkName===e?"":e,this.changeType(!(""===this.chkName))},changeType:function(e){e?this.chkName||(this.chkName="dan"):(this.chkName="",this.allCheck=!1);var t=this.checkedPage.indexOf(this.userFrom.page);"dan"===this.chkName?this.checkedPage.push(this.userFrom.page):t>-1&&this.checkedPage.splice(t,1),this.syncCheckedId()},syncCheckedId:function(){var e=this,t=this.tableData.data.map((function(e){return e.uid}));"duo"===this.chkName?(this.checkedIds=[],this.allCheck=!0):"dan"===this.chkName?(this.allCheck=!1,t.forEach((function(t){var a=e.checkedIds.indexOf(t);-1===a&&e.checkedIds.push(t)}))):t.forEach((function(t){var a=e.checkedIds.indexOf(t);a>-1&&e.checkedIds.splice(a,1)}))},sendCoupon:function(){0==this.checkedIds.length&&0==this.allCheck?this.$message.warning("请选择用户"):this.visibleCoupon=!0},changeOne:function(e,t){if(e)if("duo"===this.chkName){var a=this.noChecked.indexOf(t.uid);a>-1&&this.noChecked.splice(a,1)}else{var i=this.checkedIds.indexOf(t.uid);-1===i&&this.checkedIds.push(t.uid)}else if("duo"===this.chkName){var s=this.noChecked.indexOf(t.uid);-1===s&&this.noChecked.push(t.uid)}else{var l=this.checkedIds.indexOf(t.uid);l>-1&&this.checkedIds.splice(l,1)}},sendSuccess:function(){this.visibleCoupon=!1},getCoupounParmas:function(){var e=""==this.userFrom.label_id?"":this.getLabelValue(),t=this.findKey(this.userFrom.user_type,{"":"","微信用户":"wechat","小程序用户":"routine","H5用户":"h5"}),a=this.findKey(this.userFrom.sex,{"男":"1","女":"2","保密":"0","":""}),i=this.findKey(this.userFrom.sex,{"0次":"-1","1次及以上":"0","2次及以上":"1","3次及以上":"2","4次及以上":"3","5次及以上":"4","":""}),s=this.findKey(this.userFrom.is_promoter,{"推广员":"1","普通用户":"0","":""}),l="visit"==this.userFrom.user_time_type?"最后访问":"add_time"==this.userFrom.user_time_type?"首次访问":"";this.couponForm={"用户标签":e,"用户类型":t,"性别":a,"消费情况":i,"身份":s,"访问情况":l,"访问时间":this.userFrom.user_time,"昵称":this.userFrom.nickname}},findKey:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return Object.keys(t).find((function(i){return a(t[i],e)}))},getLabelValue:function(){for(var e="",t=0;td)a=o[d++],i&&!s.call(n,a)||m.push(e?[a,n[a]]:n[a]);return m}}},"64a3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择秒杀商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"spike_image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.spike_image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.spike_image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀商品关键字:"}},[a("el-input",{attrs:{placeholder:"请输入商品关键字"},model:{value:e.formValidate.keyword,callback:function(t){e.$set(e.formValidate,"keyword",t)},expression:"formValidate.keyword"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"秒杀活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动日期:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"请选择活动时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动日期内最多购买次数:",prop:"all_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.all_pay_count,callback:function(t){e.$set(e.formValidate,"all_pay_count",t)},expression:"formValidate.all_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀活动时间:"}},[a("i",{staticClass:"required"},[e._v("*")]),e._v(" "),a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}},e._l(e.spikeTimeList,(function(e){return a("el-option",{key:e.seckill_time_id,attrs:{label:e.name,value:e.name}})})),1)],1)])],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"秒杀时间段内最多购买次数:",prop:"once_pay_count","label-width":"210px"}},[a("el-input-number",{model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"排序:","label-width":"210px"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number",min:0},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type&&e.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),e._l(e.attrValue,(function(t,i){return a("el-table-column",{key:i,attrs:{label:e.formThead[i].title,align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return["限量"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0},on:{change:function(a){return e.judgInventory(t.row,t.$index)}},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):"秒杀价"==e.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"商品编号"===e.formThead[i].title?"text":"number"},model:{value:t.row[i],callback:function(a){e.$set(t.row,i,a)},expression:"scope.row[iii]"}}):a("span",[e._v(e._s(t.row[i]))])]}}],null,!0)})}))],2)],1):e._e()],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.merCateList,props:e.propsMer,clearable:""},model:{value:e.formValidate.mer_cate_id,callback:function(t){e.$set(e.formValidate,"mer_cate_id",t)},expression:"formValidate.mer_cate_id"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:e.categoryList,props:e.props,clearable:""},model:{value:e.formValidate.cate_id,callback:function(t){e.$set(e.formValidate,"cate_id",t)},expression:"formValidate.cate_id"}})],1)],1)],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview("formValidate")}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":1,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],l=a("75fc"),s=(a("7f7f"),a("c80c")),n=(a("c5f6"),a("96cf"),a("3b8d")),o=a("2d63"),c=(a("8615"),a("55dd"),a("ac6a"),a("28a5"),a("ef0d")),d=a("7719"),m=a("ae43"),u=a("8c98"),f=a("c4c8"),p=a("83d6"),g=a("bbcc"),_=a("5f87"),h={old_product_id:"",image:"",spike_image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",all_pay_count:1,once_pay_count:1,is_open_recommend:1,is_open_state:1,is_show:1,keyword:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},v={price:{title:"秒杀价"},cost:{title:"成本价"},ot_price:{title:"市场价"},old_stock:{title:"库存"},stock:{title:"限量"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},b=[{name:"店铺推荐",value:"is_good"}],y={name:"SeckillProductAdd",components:{ueditorFrom:c["a"],goodsList:d["a"],guaranteeService:m["a"],previewBox:u["a"]},data:function(){var e=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(_["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:p["roterPre"],selectRule:"",checkboxGroup:[],recommend:b,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],spikeTimeList:[],deliveryList:[],labelList:[],formThead:Object.assign({},v),formValidate:Object.assign({},h),timeVal:"",timeVal2:"",maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],activity_date:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],activity_time:[{required:!0,message:"请输入秒杀活动日期",trigger:"blur"}],all_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],once_pay_count:[{required:!0,message:"请输入购买次数",trigger:"blur"},{pattern:/^\+?[1-9][0-9]*$/,message:"最小为1"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],spike_image:[{required:!0,message:"请选择商品",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id&&(this.setTagsViewTitle(),this.getInfo(this.$route.params.id)),this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getShippingList(),this.getGuaranteeList(),this.getSpikeTimeList(),this.$store.dispatch("settings/setEdit",!0),this.productCon(),this.getLabelLst()},methods:{getLabelLst:function(){var e=this;Object(f["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(f["V"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.spike_image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,this.formValidate.start_day=e?e[0]:"",this.formValidate.end_day=e?e[1]:""},onchangeTime2:function(e){this.timeVal2=e,this.formValidate.start_time=e?e.split("-")[0]:"",this.formValidate.end_time=e?e.split("-")[1]:""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a),console.log(this.formThead)},judgInventory:function(e,t){var a=e.stock;"undefined"===typeof t?this.singleSpecification[0]["old_stock"]10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=l[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=l[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=l[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.spike_image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.cate_id||!t.formValidate.unit_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image||!t.formValidate.start_day||!t.formValidate.end_day||!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请填写完整商品信息!");if(t.formValidate.all_pay_count0&&(t.active_price=t.price)},changeRatePrice:function(){var t,e=Object(n["a"])(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"active_price",this.rate_price);for(var i=this.multipleSelection,s=0;s1||this.specsMainData.length>0))this.$message.warning("最多添加一个商品");else{for(var a=JSON.parse(JSON.stringify(t)),i=0;i=0&&this.$refs.table.toggleRowSelection(this.tableData.data[a],!0)}},ok:function(){if(this.images.length>0)if("image"===this.$route.query.fodder){var t=form_create_helper.get("image");form_create_helper.set("image",t.concat(this.images)),form_create_helper.close("image")}else this.isdiy?this.$emit("getProductId",this.diyVal):this.$emit("getProductId",this.images);else this.$message.warning("请先选择商品")},treeSearchs:function(t){this.cateIds=t,this.tableFrom.page=1,this.getList("")},userSearchs:function(){this.tableFrom.page=1,this.getList("")},clear:function(){this.productRow.id="",this.currentid=""}}},c=o,u=(a("aed5"),a("2877")),d=Object(u["a"])(c,i,s,!1,null,"2bc3ee76",null);e["a"]=d.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-228dd6f8.d529e991.js b/public/mer/js/chunk-228dd6f8.d529e991.js new file mode 100644 index 00000000..7e2803a0 --- /dev/null +++ b/public/mer/js/chunk-228dd6f8.d529e991.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-228dd6f8"],{"12e6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.template_name,callback:function(e){t.$set(t.tableFrom,"template_name",e)},expression:"tableFrom.template_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"平台分类:"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.cateList,props:{checkStrictly:!0},clearable:""},model:{value:t.tableFrom.cate_ids,callback:function(e){t.$set(t.tableFrom,"cate_ids",e)},expression:"tableFrom.cate_ids"}})],1)],1)],1)]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加参数模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"参数模板名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"svip_number",label:"关联分类","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cate_name.toString()))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetail(e.row.template_id)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},t._l(t.specsInfo.parameter,(function(e,i){return a("div",{key:i,staticClass:"description-term"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])])])],1)},s=[],n=(a("ac6a"),a("83d6")),l=a("c4c8"),o={name:"SpecsList",data:function(){return{listLoading:!0,cateList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},specsInfo:{},dialogVisible:!1,title:""}},mounted:function(){this.getCategorySelect(),this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["jb"])(this.tableFrom).then((function(t){t.data.list.forEach((function(t,e){t.cate_name=[],t.cateId.forEach((function(e,a){t.cate_name.push(e.category.cate_name)}))})),e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},getCategorySelect:function(){var t=this;Object(l["q"])().then((function(e){t.cateList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAdd:function(){this.$router.push("".concat(n["roterPre"],"/product/specs/create"))},onEdit:function(t){this.$router.push("".concat(n["roterPre"],"/product/specs/create/").concat(t))},onDetail:function(t){var e=this;Object(l["wb"])(t).then((function(t){e.specsInfo=t.data,e.title=t.data.template_name,e.dialogVisible=!0})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("确定删除该模板").then((function(){Object(l["xb"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},c=o,r=(a("3323"),a("2877")),d=Object(r["a"])(c,i,s,!1,null,"54762ce4",null);e["default"]=d.exports},1719:function(t,e,a){},3323:function(t,e,a){"use strict";a("1719")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0ab2c5.579e007d.js b/public/mer/js/chunk-2d0ab2c5.579e007d.js new file mode 100644 index 00000000..e78d7044 --- /dev/null +++ b/public/mer/js/chunk-2d0ab2c5.579e007d.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ab2c5"],{"13c0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{staticClass:"mr10",attrs:{label:"服务名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入服务名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加服务说明模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"guarantee_template_id",label:"ID","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"服务名称","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"guarantee_info",label:"服务条款","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(n,i){return e.row.template_value?a("div",{key:i},[n.value&&n.value.guarantee_name?a("span",[t._v(t._s(i+1)+". "+t._s(n.value.guarantee_name))]):t._e()]):t._e()}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否显示","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"不显示"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","min-width":"150",prop:"create_time"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.guarantee_template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.guarantee_template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getList}})],1)},i=[],s=(a("55dd"),a("c4c8")),l=a("ae43"),o={name:"ProductGuarantee",components:{guaranteeService:l["a"]},data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20,date:"",keyword:""},timeVal:[],props:{},tabClickIndex:""}},mounted:function(){this.getList(1)},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(s["E"])(t.row.guarantee_template_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},handleCloseItems:function(t){var e=this;this.termsService.splice(this.termsService.indexOf(t),1),this.formValidate.template_value=[],this.termsService.map((function(t){e.formValidate.template_value.push(t.guarantee_id)}))},add:function(){this.$refs.serviceGuarantee.add()},onchangeIsShow:function(t){var e=this;Object(s["F"])(t.guarantee_template_id,{status:t.status}).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleEdit:function(t){this.$refs.serviceGuarantee.handleEdit(t),this.$refs.serviceGuarantee.loading=!1},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["C"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(s["z"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},r=o,c=a("2877"),u=Object(c["a"])(r,n,i,!1,null,"74f7d69b",null);e["default"]=u.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0aba79.5dfe9f27.js b/public/mer/js/chunk-2d0aba79.5dfe9f27.js new file mode 100644 index 00000000..65fba0a5 --- /dev/null +++ b/public/mer/js/chunk-2d0aba79.5dfe9f27.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aba79"],{"15cb":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加用户标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",{domProps:{textContent:t._s(-1!==t.$route.path.indexOf("group")?n.group_id:n.label_id)}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:-1!==t.$route.path.indexOf("group")?"分组名称":"标签名称","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",{domProps:{textContent:t._s(-1!==t.$route.path.indexOf("group")?n.group_name:n.label_name)}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.onEdit(-1!==t.$route.path.indexOf("group")?e.row.group_id:e.row.label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.handleDelete(-1!==t.$route.path.indexOf("group")?e.row.group_id:e.row.label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],o=a("c24f"),l={name:"UserGroup",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(o["p"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onAdd:function(){var t=this;this.$modalForm(Object(o["o"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(o["n"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(o["m"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},s=l,r=a("2877"),c=Object(r["a"])(s,n,i,!1,null,"d05d8040",null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0c212a.2c65ebf4.js b/public/mer/js/chunk-2d0c212a.2c65ebf4.js new file mode 100644 index 00000000..c62f3644 --- /dev/null +++ b/public/mer/js/chunk-2d0c212a.2c65ebf4.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c212a"],{"496e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加商品规格")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"attr_template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"规格名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("span",{key:n,staticClass:"mr10",domProps:{textContent:t._s(e.value)}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品属性","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("div",{key:n,domProps:{textContent:t._s(e.detail.join(","))}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.attr_template_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],l=a("c4c8"),s={name:"ProductAttr",data:function(){return{formDynamic:{template_name:"",template_value:[]},tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{add:function(){var t=this;t.formDynamic={template_name:"",template_value:[]},this.$modalAttr(Object.assign({},t.formDynamic),(function(){t.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(l["Lb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(l["k"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEdit:function(t){var e=this;this.$modalAttr(JSON.parse(JSON.stringify(t)),(function(){e.getList(),this.formDynamic={template_name:"",template_value:[]}}))}}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0c8a44.9cfd37e5.js b/public/mer/js/chunk-2d0c8a44.9cfd37e5.js new file mode 100644 index 00000000..b69b153b --- /dev/null +++ b/public/mer/js/chunk-2d0c8a44.9cfd37e5.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c8a44"],{"566c":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[t.FormData?e("form-create",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:t.option,rule:t.FormData.rule,"handle-icon":"false"},on:{submit:t.onSubmit}}):t._e()],1)],1)},o=[],s=e("c80c"),r=(e("96cf"),e("3b8d")),i=e("30ba"),c=e.n(i),u=e("b7be"),d=e("0c6d"),l=e("83d6"),f={name:"CreatCoupon",data:function(){return{option:{form:{labelWidth:"150px"},submitBtn:{loading:!1},global:{upload:{props:{onSuccess:function(t,a){200===t.status&&(a.url=t.data.src)}}}}},FormData:null,loading:!1}},components:{formCreate:c.a.$form()},mounted:function(){this.getFrom()},methods:{getFrom:function(){var t=this;this.loading=!0,Object(u["J"])().then(function(){var a=Object(r["a"])(Object(s["a"])().mark((function a(e){return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.FormData=e.data,t.loading=!1,t.$store.dispatch("settings/setEdit",!0);case 3:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(a){t.$message.error(a.message),t.loading=!1}))},onSubmit:function(t){var a=this;this.$refs.fc.$f.btn.loading(!0),d["a"][this.FormData.method.toLowerCase()](this.FormData.api,t).then((function(t){a.$refs.fc.$f.btn.loading(!1),a.$message.success(t.message||"提交成功"),a.$store.dispatch("settings/setEdit",!1),a.$router.push({path:"".concat(l["roterPre"],"/marketing/studio/list")})})).catch((function(t){a.$refs.fc.$f.btn.loading(!1),a.$message.error(t.message||"提交失败")}))}}},m=f,p=e("2877"),h=Object(p["a"])(m,n,o,!1,null,"c1581826",null);a["default"]=h.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0d095b.e4dbc129.js b/public/mer/js/chunk-2d0d095b.e4dbc129.js new file mode 100644 index 00000000..3bbabf04 --- /dev/null +++ b/public/mer/js/chunk-2d0d095b.e4dbc129.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d095b"],{6935:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[t.FormData?e("form-create",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:t.option,rule:t.FormData.rule,"handle-icon":"false"},on:{submit:t.onSubmit}}):t._e()],1)],1)},o=[],r=e("c80c"),s=(e("96cf"),e("3b8d")),i=e("30ba"),c=e.n(i),u=e("b7be"),l=e("0c6d"),d={name:"IntegralConfig",data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,a){200===t.status&&(a.url=t.data.src)}}}}},FormData:null,loading:!1}},components:{formCreate:c.a.$form()},mounted:function(){this.getFrom()},methods:{getFrom:function(){var t=this;this.loading=!0,Object(u["R"])("integral").then(function(){var a=Object(s["a"])(Object(r["a"])().mark((function a(e){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.FormData=e.data,t.loading=!1;case 2:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(a){t.$message.error(a.message),t.loading=!1}))},onSubmit:function(t){var a=this;l["a"][this.FormData.method.toLowerCase()](this.FormData.api,t).then((function(t){a.$message.success(t.message||"提交成功")})).catch((function(t){a.$message.error(t.message||"提交失败")}))}}},m=d,f=e("2877"),p=Object(f["a"])(m,n,o,!1,null,"2c447d1a",null);a["default"]=p.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d0e276e.7d5279f3.js b/public/mer/js/chunk-2d0e276e.7d5279f3.js new file mode 100644 index 00000000..0aceeee4 --- /dev/null +++ b/public/mer/js/chunk-2d0e276e.7d5279f3.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e276e"],{"7f8a":function(a,t,e){"use strict";e.r(t);var n=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[a.FormData?e("form-create",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:a.option,rule:a.FormData.rule,"handle-icon":"false"},on:{submit:a.onSubmit}}):a._e()],1)],1)},o=[],s=e("c80c"),r=(e("96cf"),e("3b8d")),c=e("30ba"),i=e.n(c),u=e("2801"),l=e("0c6d"),m=(e("83d6"),{name:"payType",data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(a,t){200===a.status&&(t.url=a.data.src)}}}}},FormData:null,loading:!1}},components:{formCreate:i.a.$form()},mounted:function(){this.getFrom()},methods:{getFrom:function(){var a=this;this.loading=!0,Object(u["j"])().then(function(){var t=Object(r["a"])(Object(s["a"])().mark((function t(e){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a.FormData=e.data,a.loading=!1;case 2:case"end":return t.stop()}}),t)})));return function(a){return t.apply(this,arguments)}}()).catch((function(t){a.$message.error(t.message),a.loading=!1}))},onSubmit:function(a){var t=this;l["a"][this.FormData.method.toLowerCase()](this.FormData.api,a).then((function(a){t.$message.success(a.message||"提交成功")})).catch((function(a){t.$message.error(a.message||"提交失败")}))}}}),d=m,f=e("2877"),p=Object(f["a"])(d,n,o,!1,null,"c11bae1c",null);t["default"]=p.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d209391.ffc1072d.js b/public/mer/js/chunk-2d209391.ffc1072d.js new file mode 100644 index 00000000..9fb38a88 --- /dev/null +++ b/public/mer/js/chunk-2d209391.ffc1072d.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d209391"],{a7af:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"label_name",label:"标签名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"标签说明","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c4c8"),l={name:"LabelList",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList("")},methods:{add:function(){},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["J"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(s["H"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["L"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(s["I"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["K"])(t.product_label_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},o=l,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d229240.0d0133c8.js b/public/mer/js/chunk-2d229240.0d0133c8.js new file mode 100644 index 00000000..2581566f --- /dev/null +++ b/public/mer/js/chunk-2d229240.0d0133c8.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d229240"],{dbd0:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[t.FormData?a("form-create",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:t.option,rule:t.FormData.rule,"handle-icon":"false",cmovies:t.movies},on:{submit:t.onSubmit}}):t._e()],1)],1)},n=[],s=a("c80c"),r=(a("96cf"),a("3b8d")),i=a("30ba"),c=a.n(i),u=a("b7be"),l=a("0c6d"),m=a("83d6"),d={name:"CreatCoupon",data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}}},FormData:null,loading:!1,movies:1}},components:{formCreate:c.a.$form()},mounted:function(){this.getFrom()},methods:{getFrom:function(){var t=this;this.loading=!0,sessionStorage.setItem("singleChoice",1),Object(u["K"])().then(function(){var e=Object(r["a"])(Object(s["a"])().mark((function e(a){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FormData=a.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.loading=!1}))},onSubmit:function(t){var e=this;l["a"][this.FormData.method.toLowerCase()](this.FormData.api,t).then((function(t){e.$message.success(t.message||"提交成功"),e.$router.push({path:"".concat(m["roterPre"],"/marketing/broadcast/list")})})).catch((function(t){e.$message.error(t.message||"提交失败")}))}}},f=d,p=a("2877"),h=Object(p["a"])(f,o,n,!1,null,null,null);e["default"]=h.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-2d230c26.d907c183.js b/public/mer/js/chunk-2d230c26.d907c183.js new file mode 100644 index 00000000..315a5a50 --- /dev/null +++ b/public/mer/js/chunk-2d230c26.d907c183.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230c26"],{ee3c:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[t.FormData?a("form-create",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{option:t.option,rule:t.FormData.rule,"handle-icon":"false"},on:{submit:t.onSubmit}}):t._e()],1)],1)},o=[],r=a("c80c"),s=(a("96cf"),a("3b8d")),c=a("30ba"),i=a.n(c),u=a("b7be"),l=a("0c6d"),m=a("83d6"),d={name:"CreatCoupon",data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}}},FormData:null,loading:!1}},components:{formCreate:i.a.$form()},mounted:function(){this.getFrom(),sessionStorage.setItem("singleChoice",0)},methods:{getFrom:function(){var t=this;this.loading=!0,this.$route.params.id?Object(u["y"])(this.$route.params.id).then(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(a){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FormData=a.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.loading=!1})):Object(u["C"])().then(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(a){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FormData=a.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.loading=!1}))},onSubmit:function(t){var e=this;l["a"][this.FormData.method.toLowerCase()](this.FormData.api,t).then((function(t){e.$message.success(t.message||"提交成功"),e.$router.push({path:"".concat(m["roterPre"],"/marketing/coupon/list")})})).catch((function(t){e.$message.error(t.message||"提交失败")}))}}},p=d,f=a("2877"),h=Object(f["a"])(p,n,o,!1,null,"66ea4727",null);e["default"]=h.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-33b61c20.c114ad52.js b/public/mer/js/chunk-33b61c20.c114ad52.js new file mode 100644 index 00000000..70fb3b8c --- /dev/null +++ b/public/mer/js/chunk-33b61c20.c114ad52.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33b61c20"],{"4a6c":function(e,t,a){"use strict";a("b209")},9809:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{ref:"formValidate",attrs:{"label-width":"120px",rules:e.ruleValidate,model:e.formValidate}},[a("el-form-item",{attrs:{label:"参数模板名称:",prop:"template_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},model:{value:e.formValidate.template_name,callback:function(t){e.$set(e.formValidate,"template_name",t)},expression:"formValidate.template_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{label:"排序"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data,border:"",size:"small"}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"参数名称","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数值"},model:{value:t.row.value,callback:function(a){e.$set(t.row,"value",a)},expression:"scope.row.value"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"排序","min-width":"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.$index>0?a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return e.delSpecs(t.$index)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onAdd}},[e._v("添加参数")])],1)],1)],1)])])]),e._v(" "),a("el-card",[a("el-form",[a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("保存")])],1)],1)],1)],1)},s=[],l=(a("7f7f"),a("c4c8")),o=a("83d6"),n={name:"specsCreate",data:function(){return{listLoading:!0,ruleValidate:{template_name:[{required:!0,message:"请输入参数模板名称",trigger:"blur"}]},data:[],cateList:[],formValidate:{}}},created:function(){this.onAdd(),this.$route.params.id&&this.getInfo()},mounted:function(){},methods:{onAdd:function(){var e={name:"",value:"",sort:0,parameter_id:0};this.data.push(e)},onEdit:function(e){var t=this;this.$modalForm(levelUpdateApi(e)).then((function(){return t.getList("")}))},getInfo:function(){var e=this;Object(l["ib"])(this.$route.params.id).then((function(t){e.formValidate=t.data,e.data=t.data.parameter}))},delSpecs:function(e){this.data.splice(e,1)},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){t.formValidate.params=t.data;for(var a=0;au)a=o[u++],i&&!l.call(n,a)||d.push(e?[a,n[a]]:n[a]);return d}}},"694a":function(e,t,a){},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},s=[],r=a("c4c8"),l=a("83d6"),n={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(r["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(r["db"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=n,c=(a("e120"),a("2877")),u=Object(c["a"])(o,i,s,!1,null,"37399656",null);t["a"]=u.exports},8615:function(e,t,a){var i=a("5ca1"),s=a("504c")(!1);i(i.S,"Object",{values:function(e){return s(e)}})},9232:function(e,t,a){},e120:function(e,t,a){"use strict";a("694a")},e538:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择助力商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"助力活动简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入助力活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动时间:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.assist_date,callback:function(t){e.assist_date=t},expression:"assist_date"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"助力人数:",prop:"assist_count"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入人数"},model:{value:e.formValidate.assist_count,callback:function(t){e.$set(e.formValidate,"assist_count",e._n(t))},expression:"formValidate.assist_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"用户助力次数:",prop:"assist_user_count"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入次数"},model:{value:e.formValidate.assist_user_count,callback:function(t){e.$set(e.formValidate,"assist_user_count",e._n(t))},expression:"formValidate.assist_user_count"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入排序序号"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"限购:"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入限购数"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"活动状态:"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),e.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidthd",attrs:{multiple:"",placeholder:"请选择"},model:{value:e.formValidate.mer_labels,callback:function(t){e.$set(e.formValidate,"mer_labels",t)},expression:"formValidate.mer_labels"}},e._l(e.labelList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1):e._e()],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox"},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1903352531)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"助力价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["assist_price"],callback:function(a){e.$set(t.row,"assist_price",e._n(a))},expression:"scope.row['assist_price']"}})]}}],null,!1,889098068)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",a)},expression:"scope.row['stock']"}})]}}],null,!1,1088110974)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleTable",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","highlight-current-row":"","row-key":function(e){return e.id}}},[a("el-table-column",{attrs:{label:"选择",width:"65"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.$index},nativeOn:{change:function(a){return e.getCurrentRow(t.row)}},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}})]}}],null,!1,4056121160)}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox"},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,2631442157)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"助力价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},model:{value:t.row["assist_price"],callback:function(a){e.$set(t.row,"assist_price",e._n(a))},expression:" scope.row['assist_price']"}})]}}],null,!1,1728601574)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",a)},expression:"scope.row['stock']"}})]}}],null,!1,1335772286)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handlePreview("formValidate")}}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},s=[],r=a("75fc"),l=(a("7f7f"),a("c80c")),n=(a("c5f6"),a("96cf"),a("3b8d")),o=a("2d63"),c=(a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("ef0d")),u=a("6625"),d=a.n(u),m=a("7719"),p=a("8c98"),f=a("c4c8"),_=a("83d6"),g=a("bbcc"),h=a("5f87"),b={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,keyword:"",brand_id:"",pay_count:1,unit_name:"",assist_user_count:1,assist_count:2,integral:0,is_good:0,temp_id:"",assist_date:"",delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,assist_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},v=[{name:"店铺推荐",value:"is_good"}],y={name:"AssistProductAdd",components:{ueditorFrom:c["a"],goodsList:m["a"],previewBox:p["a"],VueUeditorWrap:d.a},data:function(){var e=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(h["a"])();return{radio:"",multipleTable:[],myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},pickerOptions:{disabledDate:function(e){}},dialogVisible:!1,product_id:"",optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:_["roterPre"],selectRule:"",checkboxGroup:[],recommend:v,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},b.attrValue[0])],ManyAttrValue:[Object.assign({},b.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],deliveryList:[],labelList:[],BrandList:[],formValidate:Object.assign({},b),timeVal:"",assist_date:"",maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],assist_date:[{required:!0,message:"请选择助力活动时间",trigger:"blur"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],assist_user_count:[{required:!0,message:"请输入助力人数",trigger:"blur",type:"number"}],assist_count:[{required:!0,message:"请输入助力次数",trigger:"blur"}],store_info:[{required:!0,message:"请输入秒杀活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},b.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},b.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getShippingList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(f["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(f["V"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},getCurrentRow:function(e){e.checked=!0,this.multipleTable=e,this.formValidate.attrValue=[e]},limitPrice:function(e){e.assist_price-e.price>0?e.assist_price=e.price:e.assist_price<0&&(e.assist_price=0)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},onchangeTime:function(e){this.assist_date=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},getCategorySelect:function(){var e=this;Object(f["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(f["q"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(f["Mb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(f["vb"])().then((function(t){e.shippingList=t.data}))},delAttrTable:function(e){this.ManyAttrValue.splice(e,1)},batchAdd:function(){var e,t=Object(o["a"])(this.ManyAttrValue);try{for(t.s();!(e=t.n()).done;){var a=e.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){t.e(i)}finally{t.f()}},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(f["f"])(e).then(function(){var e=Object(n["a"])(Object(l["a"])().mark((function e(a){var i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.store_name,store_info:i.store_info,assist_count:i.assist_count?i.assist_count:2,assist_user_count:i.assist_user_count?i.assist_user_count:1,start_time:i.start_time?i.start_time+":00":"",end_time:i.end_time?i.end_time+":00":"",brand_id:i.product.brand_id,pay_count:i.pay_count?i.pay_count:1,unit_name:i.product.unit_name,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,sort:i.product.sort,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.product.delivery_free?i.product.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.$set(t.OneattrValue[0],"assist_price",t.OneattrValue[0].assistSku&&t.OneattrValue[0].assistSku.assist_price?t.OneattrValue[0].assistSku.assist_price:0),t.$set(t.OneattrValue[0],"stock",t.OneattrValue[0].assistSku?t.OneattrValue[0].assistSku.stock:t.OneattrValue[0].old_stock)):(t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"assist_price",t.ManyAttrValue[a].assistSku&&t.ManyAttrValue[a].assistSku.assist_price?t.ManyAttrValue[a].assistSku.assist_price:0),t.$set(t.ManyAttrValue[a],"stock",t.ManyAttrValue[a].assistSku?t.ManyAttrValue[a].assistSku.stock:t.ManyAttrValue[a].old_stock),t.ManyAttrValue[a].assistSku&&t.$nextTick((function(){t.radio=a,t.$refs.multipleTable.setCurrentRow(t.ManyAttrValue[a]),t.formValidate.attrValue=[t.ManyAttrValue[a]]}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1,t.assist_date=[i.start_time,i.end_time],t.$store.dispatch("settings/setEdit",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(f["bb"])(e).then(function(){var e=Object(n["a"])(Object(l["a"])().mark((function e(a){var i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,assist_count:i.assist_count?i.assist_count:2,assist_user_count:i.assist_user_count?i.assist_user_count:1,start_time:i.start_time?i.start_time+":00":"",end_time:i.end_time?i.end_time+":00":"",brand_id:i.brand_id,pay_count:i.pay_count?i.pay_count:1,unit_name:i.unit_name,is_good:i.is_good,temp_id:i.temp_id,is_show:i.is_show,attr:i.attr,sort:i.sort?i.sort:0,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},t.assist_date="",0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.assist_price=t.OneattrValue.assist_price?t.OneattrValue.assist_price:0):(t.ManyAttrValue=i.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"assist_price",0)})),console.log(t.ManyAttrValue)),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,s=[];this.$modalUpload((function(r){"1"!==e||t||(i.formValidate.image=r[0],i.OneattrValue[0].image=r[0]),"2"!==e||t||r.map((function(e){s.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=r[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=r[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=r[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;0===this.formValidate.spec_type&&(this.formValidate.attrValue=this.OneattrValue),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整商品信息!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");t.currentTab++}}))},handlePreview:function(e){var t=this;Object(f["e"])(this.formValidate).then(function(){var e=Object(n["a"])(Object(l["a"])().mark((function e(a){return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.previewVisible=!0,t.previewKey=a.data.preview_key;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,t.$route.params.id?Object(f["i"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(n["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/assist/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)})):Object(f["a"])(t.formValidate).then(function(){var a=Object(n["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/assist/list"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(r["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),s=a.indexOf(t);a.splice.apply(a,[s,0].concat(Object(r["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},w=y,V=(a("0cf8"),a("2877")),k=Object(V["a"])(w,i,s,!1,null,"863b0610",null);t["default"]=k.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-36bcd5b8.b48b0d8a.js b/public/mer/js/chunk-36bcd5b8.b48b0d8a.js new file mode 100644 index 00000000..131f7f1f --- /dev/null +++ b/public/mer/js/chunk-36bcd5b8.b48b0d8a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36bcd5b8"],{"0046":function(t,e,i){var n=i("6d8b"),a=n.each,r=n.createHashMap,o=i("4f85"),s=i("3301"),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return u(i,this),s(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,a){t===e&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function u(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=r();a(i.dimensions,(function(t){var e=c(t);n.set(t,e)}))}}}function c(t){return+t.replace("dim","")}t.exports=l},"004f":function(t,e,i){var n=i("6d8b"),a=i("72b6"),r=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("f934"),u=i("cbb0"),c=a.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),a=e.textStyleModel,o=a.getFont(),s=a.getTextColor(),u=this._getItemAlign(),c=e.itemSize,h=this._getViewData(),d=h.endsText,f=n.retrieve(e.get("showLabel",!0),!d);function p(a){var l=a.piece,h=new r.Group;h.onclick=n.bind(this._onItemClick,this,l),this._enableHoverLink(h,a.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,c[0],c[1]]),f){var p=this.visualMapModel.getValueState(d);h.add(new r.Text({style:{x:"right"===u?-i:c[0]+i,y:c[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:u,textFont:o,textFill:s,opacity:"outOfRange"===p?.5:1}}))}t.add(h)}d&&this._renderEndsText(t,d[0],c,f,u),n.each(h.viewPieceList,p,this),d&&this._renderEndsText(t,d[1],c,f,u),l.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:u.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return u.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var o=new r.Group,s=this.visualMapModel.textStyleModel;o.add(new r.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),a=t.get("orient"),r=t.get("inverse");return("horizontal"===a?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(s(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,a=n.clone(i.selected),r=e.getSelectedMapKey(t);"single"===i.selectedMode?(a[r]=!0,n.each(a,(function(t,e){a[e]=e===r}))):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),h=c;t.exports=h},"007d":function(t,e,i){var n=i("3eba");i("cb8f"),i("a96b"),i("42f6"),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ba":function(t,e,i){var n=i("3eba"),a=i("e46b"),r=i("e0d3"),o=r.defaultEmphasis,s=n.extendSeriesModel({type:"series.funnel",init:function(t){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return a(this,["value"])},_defaultLabelLine:function(t){o(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=s.superCall(this,"getDataParams",t),n=e.mapDimension("value"),a=e.getSum(n);return i.percent=a?+(e.get(n,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),l=s;t.exports=l},"00d8":function(t,e,i){var n=i("6d8b");function a(t,e){return e=e||[0,0],n.map([0,1],(function(i){var n=e[i],a=t[i]/2,r=[],o=[];return r[i]=n-a,o[i]=n+a,r[1-i]=o[1-i]=e[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(o)[i])}),this)}function r(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(a,t)}}}t.exports=r},"0141":function(t,e,i){var n=i("6d8b"),a=i("9850"),r=i("6cc5"),o=i("5b87");function s(t,e,i,n){r.call(this,t),this.map=e;var a=o.load(e,i);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=null==n||n,this.regions=a.regions,this._rect=a.boundingRect}function l(t,e,i,n){var a=i.geoModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i=i)e|=1&t,t>>=1;return t+e}function r(t,e,i,n){var a=e+1;if(a===i)return 1;if(n(t[a++],t[e])<0){while(a=0)a++;return a-e}function o(t,e,i){i--;while(e>>1,a(o,t[r])<0?l=r:s=r+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=o}}function l(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){s=n-a;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{s=a+1;while(ls&&(l=s);var u=o;o=a-l,l=a-u}o++;while(o>>1);r(t,e[i+c])>0?o=c+1:l=c}return l}function u(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){s=a+1;while(ls&&(l=s);var u=o;o=a-l,l=a-u}else{s=n-a;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}o++;while(o>>1);r(t,e[i+c])<0?l=c:o=c+1}return l}function c(t,e){var i,a,r=n,o=0,s=0;o=t.length;var c=[];function h(t,e){i[s]=t,a[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]a[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&a[t-1]=n||m>=n);if(v)break;y<0&&(y=0),y+=2}if(r=y,r<1&&(r=1),1===a){for(h=0;h=0;h--)t[m+h]=t[g+h];if(0===a){_=!0;break}}if(t[p--]=c[f--],1===--s){_=!0;break}if(x=s-l(t[d],c,0,s,s-1,e),0!==x){for(p-=x,f-=x,s-=x,m=p+1,g=f+1,h=0;h=n||x>=n);if(_)break;v<0&&(v=0),v+=2}if(r=v,r<1&&(r=1),1===s){for(p-=a,d-=a,m=p+1,g=d+1,h=a-1;h>=0;h--)t[m+h]=t[g+h];t[p]=c[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h=0;h--)t[m+h]=t[g+h];t[p]=c[f]}else for(g=p-(s-1),h=0;hd&&(f=d),s(t,n,n+f,n+u,e),u=f}h.pushRun(n,u),h.mergeRuns(),l-=u,n+=u}while(0!==l);h.forceMergeRuns()}}t.exports=h},"0655":function(t,e,i){var n=i("8728"),a=1e-8;function r(t,e){return Math.abs(t-e).5?e:t}function d(t,e,i,n,a){var r=t.length;if(1===a)for(var o=0;oa;if(r)t.length=a;else for(var o=n;o=0;i--)if(D[i]<=e)break;i=Math.min(i,b-2)}else{for(i=H;ie)break;i=Math.min(i-1,b-2)}H=i,W=e;var n=D[i+1]-D[i];if(0!==n)if(z=(e-D[i])/n,_)if(B=C[i],V=C[0===i?i:i-1],F=C[i>b-2?b-1:i+1],G=C[i>b-3?b-1:i+2],M)g(V,B,F,G,z,z*z,z*z*z,u(t,s),T);else{if(I)a=g(V,B,F,G,z,z*z,z*z*z,Z,1),a=y(Z);else{if(A)return h(B,F,z);a=m(V,B,F,G,z,z*z,z*z*z)}v(t,s,a)}else if(M)d(C[i],C[i+1],z,u(t,s),T);else{var a;if(I)d(C[i],C[i+1],z,Z,1),a=y(Z);else{if(A)return h(C[i],C[i+1],z);a=c(C[i],C[i+1],z)}v(t,s,a)}},j=new n({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:U,ondestroy:i});return e&&"spline"!==e&&(j.easing=e),j}}}var b=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||l,this._setter=n||u,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:v(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;te&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},u.prototype={constructor:u,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=a.clone(t)},getValueState:function(t){var e=o.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){var a=o.findPieceIndex(e,this._pieceList);a===t&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],i=[],n=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return a.each(r,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(a,r){var o=n.getRepresentValue({interval:a});r||(r=n.getValueState(o));var s=t(o,r);a[0]===-1/0?i[0]=s:a[1]===1/0?i[1]=s:e.push({value:a[0],color:s},{value:a[1],color:s})}}}),h={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(n[1]-n[0])/r;while(+o.toFixed(i)!==o&&i<5)i++;t.precision=i,o=+o.toFixed(i);var s=0;t.minOpen&&e.push({index:s++,interval:[-1/0,n[0]],close:[0,0]});for(var l=n[0],c=s+r;s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function d(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var f=c;t.exports=f},"07d7":function(t,e,i){var n=i("6d8b"),a=i("41ef"),r=i("607d"),o=i("22d1"),s=i("eda2"),l=n.each,u=s.toCamelCase,c=["","-webkit-","-moz-","-o-"],h="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function d(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return n.map(c,(function(t){return t+"transition:"+i})).join(";")}function f(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),l(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function p(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),r=t.getModel("textStyle"),c=t.get("padding");return i&&e.push(d(i)),n&&(o.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+a.toHex(n)),e.push("filter:alpha(opacity=70)"))),l(["width","color","radius"],(function(i){var n="border-"+i,a=u(n),r=t.get(a);null!=r&&e.push(n+":"+r+("color"===i?"":"px"))})),e.push(f(r)),null!=c&&e.push("padding:"+s.normalizeCssArray(c).join("px ")+"px"),e.join(";")+";"}function g(t,e){if(o.wxa)return null;var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;r.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}g.prototype={constructor:g,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=h+p(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.paddingTop,10)+parseInt(i.paddingBottom,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}};var m=g;t.exports=m},"07e6":function(t,e,i){i("4d85"),i("a753")},"0817":function(t,e,i){var n=i("3eba");i("f306"),i("0046"),i("60d7");var a=i("ab71");n.registerVisual(a)},"085d":function(t,e,i){var n=i("3eba");i("bd92"),i("19e2");var a=i("eabf"),r=i("4c99"),o=i("09b1");n.registerPreprocessor(a),n.registerVisual(r),n.registerLayout(o)},"08c3":function(t,e,i){var n=i("6d8b"),a=i("84ce"),r=function(t,e,i,n){a.call(this,t,e,i),this.type=n||"value",this.model=null};r.prototype={constructor:r,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(r,a);var o=r;t.exports=o},"09b1":function(t,e,i){var n=i("2306"),a=n.subPixelOptimize,r=i("cccd"),o=i("3842"),s=o.parsePercent,l=i("6d8b"),u=l.retrieve2,c="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:r(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=f(t,i),r=0,o=1,s=["x","y"],l=i.mapDimension(s[r]),u=i.mapDimension(s[o],!0),h=u[0],p=u[1],g=u[2],m=u[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==l||u.length<4))return{progress:t.pipelineContext.large?y:v};function v(t,i){var s;while(null!=(s=t.next())){var u=i.get(l,s),c=i.get(h,s),f=i.get(p,s),v=i.get(g,s),y=i.get(m,s),x=Math.min(c,f),_=Math.max(c,f),b=A(x,u),w=A(_,u),S=A(v,u),M=A(y,u),I=[];T(I,w,0),T(I,b,1),I.push(C(M),C(w),C(S),C(b)),i.setItemLayout(s,{sign:d(i,s,c,f,p),initBaseline:c>f?w[o]:b[o],ends:I,brushRect:D(v,y,u)})}function A(t,i){var n=[];return n[r]=i,n[o]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function T(t,e,i){var o=e.slice(),s=e.slice();o[r]=a(o[r]+n/2,1,!1),s[r]=a(s[r]-n/2,1,!0),i?t.push(o,s):t.push(s,o)}function D(t,e,i){var a=A(t,i),s=A(e,i);return a[r]-=n/2,s[r]-=n/2,{x:a[0],y:a[1],width:o?n:s[0]-a[0],height:o?s[1]-a[1]:n}}function C(t){return t[r]=a(t[r],1),t}}function y(t,i){var n,a,s=new c(5*t.count),u=0,f=[],v=[];while(null!=(a=t.next())){var y=i.get(l,a),x=i.get(h,a),_=i.get(p,a),b=i.get(g,a),w=i.get(m,a);isNaN(y)||isNaN(b)||isNaN(w)?(s[u++]=NaN,u+=4):(s[u++]=d(i,a,x,_,p),f[r]=y,f[o]=b,n=e.dataToPoint(f,null,v),s[u++]=n?n[0]:NaN,s[u++]=n?n[1]:NaN,f[o]=w,n=e.dataToPoint(f,null,v),s[u++]=n?n[1]:NaN)}i.setLayout("largePoints",s)}}};function d(t,e,i,n,a){var r;return r=i>n?-1:i0?t.get(a,e-1)<=n?1:-1:1,r}function f(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=s(u(t.get("barMaxWidth"),a),a),o=s(u(t.get("barMinWidth"),1),a),l=t.get("barWidth");return null!=l?s(l,a):Math.max(Math.min(a/2,r),o)}t.exports=h},"0a6d":function(t,e,i){i("6932"),i("3a56"),i("7dcf"),i("3790"),i("2325"),i("a18f"),i("32a1"),i("2c17"),i("9e87")},"0b44":function(t,e,i){var n=i("607d"),a=function(){this._track=[]};function r(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}a.prototype={constructor:a,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var a=t.touches;if(a){for(var r={points:[],touches:[],target:e,event:t},o=0,s=a.length;o1&&n&&n.length>1){var s=r(n)/r(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=o(n);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=a;t.exports=l},"0b4b":function(t,e,i){i("d28f"),i("f14c"),i("0ee7"),i("ebf9")},"0c12":function(t,e){function i(){}function n(t,e,i,n){for(var a=0,r=e.length,o=0,s=0;a=o&&h+1>=s){for(var d=[],f=0;f=o&&f+1>=s)return n(r,u.components,e,t);c[i]=u}else c[i]=void 0}l++}while(l<=u){var g=p();if(g)return g}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){var a=e.length,r=i.length,o=t.newPos,s=o-n,l=0;while(o+1=0)&&(C=t);var P=new l.Text({position:e.center.slice(),scale:[1/g[0],1/g[1]],z2:10,silent:!0});l.setLabelStyle(P.style,P.hoverStyle={},w,S,{labelFetcher:C,labelDataIndex:L,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(P)}if(s)s.setItemGraphicEl(r,i);else{u=t.getRegionModel(e.name);a.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:u&&u.option||{}}}var k=i.__regions||(i.__regions=[]);k.push(e),l.setHoverStyle(i,m,{hoverSilentOnTouch:!!t.get("selectedMode")}),c.add(i)})),this._updateController(t,e,i),f(this,t,c,i,a),p(t,c)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&n.each(u.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,i){var a=t.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=a.getZoom(),o.enable(t.get("roam")||!1);var u=t.mainType;function c(){var e={type:"geoRoam",componentType:u};return e[u+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,r.updateViewOnPan(l,t.dx,t.dy),i.dispatchAction(n.extend(c(),{dx:t.dx,dy:t.dy}))}),this),o.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,t.scale,t.originX,t.originY),i.dispatchAction(n.extend(c(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),o.setPointerChecker((function(e,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!s(e,i,t)}))}};var m=g;t.exports=m},"0cde":function(t,e,i){var n=i("1687"),a=i("401b"),r=n.identity,o=5e-5;function s(t){return t>o||t<-o}var l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var c=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),a=this.transform;if(i||e){a=a||n.create(),i?this.getLocalTransform(a):r(a),e&&(i?n.mul(a,t.transform,a):n.copy(a,t.transform)),this.transform=a;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,u=((c[0]-s)*o+s)/c[0]||0,h=((c[1]-l)*o+l)/c[1]||0;a[0]*=u,a[1]*=u,a[2]*=h,a[3]*=h}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,a)}else a&&r(a)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],d=n.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,a=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],a[0]=e,a[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(h,t.invTransform,e),e=h);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],n.mul(h,e,d),h[4]-=i[0],h[5]-=i[1],e=h),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&a.applyTransform(i,i,n),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&a.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){e=e||[],r(e);var i=t.origin,a=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),n.scale(e,e,a),o&&n.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},"0da8":function(t,e,i){var n=i("19eb"),a=i("9850"),r=i("6d8b"),o=i("5e76");function s(t){n.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var a=this._image=o.createOrUpdateImage(n,this._image,this,this.onload);if(a&&o.isImageReady(a)){var r=i.x||0,s=i.y||0,l=i.width,u=i.height,c=a.width/a.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=a.width,u=a.height),this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(a,h,d,i.sWidth,i.sHeight,r,s,l,u)}else if(i.sx&&i.sy){h=i.sx,d=i.sy;var f=l-h,p=u-d;t.drawImage(a,h,d,f,p,r,s,l,u)}else t.drawImage(a,r,s,l,u);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new a(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},r.inherits(s,n);var l=s;t.exports=l},"0e0f":function(t,e,i){var n=i("5f14"),a=i("6d8b");function r(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),i=e.nodes;if(i.length){var r=1/0,o=-1/0;a.each(i,(function(t){var e=t.getLayout().value;eo&&(o=e)})),a.each(i,(function(e){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}),a=i.mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var s=e.getModel(),l=s.get("itemStyle.color");null!=l&&e.setVisual("color",l)}))}}))}t.exports=r},"0ee7":function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("f934"),o=i("5e97"),s=a.Group,l=["width","height"],u=["x","y"],c=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,r){var o=this;c.superCall(this,"renderInner",t,e,i,r);var s=this._controllerGroup,l=e.get("pageIconSize",!0);n.isArray(l)||(l=[l,l]),h("pagePrev",0);var u=e.getModel("pageTextStyle");function h(t,i){var u=t+"DataIndex",c=a.createIcon(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:n.bind(o._pageGo,o,u,e,r)},{x:-l[0]/2,y:-l[1]/2,width:l[0],height:l[1]});c.name=t,s.add(c)}s.add(new a.Text({name:"pageText",style:{textFill:u.getTextColor(),font:u.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),h("pageNext",1)},layoutInner:function(t,e,i,o){var s=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup,d=t.getOrient().index,f=l[d],p=l[1-d],g=u[1-d];r.box(t.get("orient"),s,t.get("itemGap"),d?i.width:null,d?null:i.height),r.box("horizontal",h,t.get("pageButtonItemGap",!0));var m=s.getBoundingRect(),v=h.getBoundingRect(),y=this._showController=m[f]>i[f],x=[-m.x,-m.y];o||(x[d]=s.position[d]);var _=[0,0],b=[-v.x,-v.y],w=n.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var S=t.get("pageButtonPosition",!0);"end"===S?b[d]+=i[f]-v[f]:_[d]+=v[f]+w}b[1-d]+=m[p]/2-v[p]/2,s.attr("position",x),c.attr("position",_),h.attr("position",b);var M=this.group.getBoundingRect();M={x:0,y:0};if(M[f]=y?i[f]:m[f],M[p]=Math.max(m[p],v[p]),M[g]=Math.min(0,v[g]+b[1-d]),c.__rectSize=i[f],y){var I={x:0,y:0};I[f]=Math.max(i[f]-v[f]-w,0),I[p]=M[p],c.setClipPath(new a.Rect({shape:I})),c.__rectSize=I[f]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var A=this._getPageInfo(t);return null!=A.pageIndex&&a.updateProps(s,{position:A.contentPosition},!!y&&t),this._updatePageInfoView(t,A),M},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var a=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,l=e.pageCount;a&&r&&a.setStyle("text",n.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,a=t.getOrient().index,r=l[a],o=u[a],s=this._findTargetItemIndex(e),c=i.children(),h=c[s],d=c.length,f=d?1:0,p={contentPosition:i.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var g=_(h);p.contentPosition[a]=-g.s;for(var m=s+1,v=g,y=g,x=null;m<=d;++m)x=_(c[m]),(!x&&y.e>v.s+n||x&&!b(x,v.s))&&(v=y.i>v.i?y:x,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=x;for(m=s-1,v=g,y=g,x=null;m>=-1;--m)x=_(c[m]),x&&b(y,x.s)||!(v.i=e&&t.s<=e+n}},_findTargetItemIndex:function(t){var e,i=this.getContentGroup();return this._showController?i.eachChild((function(i,n){i.__legendDataIndex===t&&(e=n)})):e=0,e}}),h=c;t.exports=h},"0f55":function(t,e,i){var n=i("6d8b"),a=i("84ce"),r=function(t,e,i,n,r){a.call(this,t,e,i),this.type=n||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(r,a);var o=r;t.exports=o},"0f99":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("e0d3")),r=a.makeInner,o=a.getDataItemValue,s=i("8b7f"),l=s.getCoordSysDefineBySeries,u=i("6d8b"),c=u.createHashMap,h=u.each,d=u.map,f=u.isArray,p=u.isString,g=u.isObject,m=u.isTypedArray,v=u.isArrayLike,y=u.extend,x=(u.assert,i("ec6f")),_=i("93d0"),b=_.SOURCE_FORMAT_ORIGINAL,w=_.SOURCE_FORMAT_ARRAY_ROWS,S=_.SOURCE_FORMAT_OBJECT_ROWS,M=_.SOURCE_FORMAT_KEYED_COLUMNS,I=_.SOURCE_FORMAT_UNKNOWN,A=_.SOURCE_FORMAT_TYPED_ARRAY,T=_.SERIES_LAYOUT_BY_ROW,D=r();function C(t){var e=t.option.source,i=I;if(m(e))i=A;else if(f(e)){0===e.length&&(i=w);for(var n=0,a=e.length;n0&&(s=this.getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var d=c;h&&(d=c(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var f=n.animate("",l).when(s,{__t:1}).delay(d).during((function(){a.updateSymbolPosition(n)}));l||f.done((function(){a.remove(n)})),f.start()}this._period=s,this._loop=l}},h.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},h.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},h.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},h.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=u.quadraticAt,s=u.quadraticDerivativeAt;r[0]=o(e[0],n[0],i[0],a),r[1]=o(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),c=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},h.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},r.inherits(c,n.Group);var d=c;t.exports=d},"10cc":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("9850"),o=i("2b8c"),s=i("a890"),l=i("88b3"),u=i("bd9e"),c=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",f=n.PRIORITY.VISUAL.BRUSH;function p(t,e,i,n,a){if(a){var r=t.getZr();if(!r[d]){r[h]||(r[h]=g);var o=l.createOrUpdate(r,h,i,e);o(t,n)}}}function g(t,e){if(!t.isDisposed()){var i=t.getZr();i[d]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[d]=!1}}function m(t,e,i,n){for(var a=0,r=e.length;ae[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&b(e)}};function b(t){return new r(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},1111:function(t,e,i){var n=i("3eba");i("67a8"),i("4784");var a=i("7f96"),r=i("87c3");n.registerVisual(a("effectScatter","circle")),n.registerLayout(r("effectScatter"))},"133d":function(t,e,i){var n=i("6d8b"),a=i("e0d3");function r(t,e){var i,r=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,t);if(null==l||l<0||n.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)r=c.dataToPoint(s.getValues(n.map(c.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),r=[h.x+h.width/2,h.y+h.height/2]}return{point:r,el:u}}t.exports=r},1418:function(t,e,i){var n=i("6d8b"),a=i("a15a"),r=a.createSymbol,o=i("2306"),s=i("3842"),l=s.parsePercent,u=i("c775"),c=u.getDefaultLabel;function h(t,e,i){o.Group.call(this),this.updateData(t,e,i)}var d=h.prototype,f=h.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function p(t){return[t[0]/2,t[1]/2]}function g(t,e){this.parent.drift(t,e)}d._createSymbol=function(t,e,i,n,a){this.removeAll();var o=e.getItemVisual(i,"color"),s=r(t,-1,-1,2,2,o,a);s.attr({z2:100,culling:!0,scale:p(n)}),s.drift=g,this._symbolType=t,this.add(s)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},d.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,r=f(t,e),s=n!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,r,l)}else{var u=this.childAt(0);u.silent=!1,o.updateProps(u,{scale:p(r)},a,e)}if(this._updateCommon(t,e,r,i),s){u=this.childAt(0);var c=i&&i.fadeIn,h={scale:u.scale.slice()};c&&(h.style={opacity:u.style.opacity}),u.scale=[0,0],c&&(u.style.opacity=0),o.initProps(u,h,a,e)}this._seriesModel=a};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],x=["emphasis","label"];function _(){!o.isInEmphasis(this)&&w.call(this)}function b(){!o.isInEmphasis(this)&&S.call(this)}function w(){if(!this.incremental&&!this.useHoverLayer){var t=this.__symbolOriginalScale,e=t[1]/t[0];this.animateTo({scale:[Math.max(1.1*t[0],t[0]+3),Math.max(1.1*t[1],t[1]+3*e)]},400,"elasticOut")}}function S(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(t,e,i,a){var r=this.childAt(0),s=t.hostModel,u=t.getItemVisual(e,"color");"image"!==r.type&&r.useStyle({strokeNoScale:!0});var h=a&&a.itemStyle,d=a&&a.hoverItemStyle,f=a&&a.symbolRotate,g=a&&a.symbolOffset,M=a&&a.labelModel,I=a&&a.hoverLabelModel,A=a&&a.hoverAnimation,T=a&&a.cursorStyle;if(!a||t.hasItemOption){var D=a&&a.itemModel?a.itemModel:t.getItemModel(e);h=D.getModel(m).getItemStyle(["color"]),d=D.getModel(v).getItemStyle(),f=D.getShallow("symbolRotate"),g=D.getShallow("symbolOffset"),M=D.getModel(y),I=D.getModel(x),A=D.getShallow("hoverAnimation"),T=D.getShallow("cursor")}else d=n.extend({},d);var C=r.style;r.attr("rotation",(f||0)*Math.PI/180||0),g&&r.attr("position",[l(g[0],i[0]),l(g[1],i[1])]),T&&r.attr("cursor",T),r.setColor(u,a&&a.symbolInnerColor),r.setStyle(h);var L=t.getItemVisual(e,"opacity");null!=L&&(C.opacity=L);var P=t.getItemVisual(e,"liftZ"),k=r.__z2Origin;null!=P?null==k&&(r.__z2Origin=r.z2,r.z2+=P):null!=k&&(r.z2=k,r.__z2Origin=null);var O=a&&a.useNameLabel;function R(e,i){return O?t.getName(e):c(t,e)}o.setLabelStyle(C,d,M,I,{labelFetcher:s,labelDataIndex:e,defaultText:R,isRectText:!0,autoColor:u}),r.off("mouseover").off("mouseout").off("emphasis").off("normal"),r.hoverStyle=d,o.setHoverStyle(r),r.__symbolOriginalScale=p(i),A&&s.isAnimationEnabled()&&r.on("mouseover",_).on("mouseout",b).on("emphasis",w).on("normal",S)},d.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,(!e||!e.keepLabel)&&(i.style.text=null),o.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},n.inherits(h,o.Group);var M=h;t.exports=M},1466:function(t,e,i){var n=i("3eba"),a=i("2306"),r=i("6d8b"),o=i("a15a");function s(t){return r.isArray(t)||(t=[+t,+t]),t}var l=n.extendChartView({type:"radar",render:function(t,e,i){var n=t.coordinateSystem,l=this.group,u=t.getData(),c=this._data;function h(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var a=s(t.getItemVisual(e,"symbolSize")),r=o.createSymbol(i,-1,-1,2,2,n);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),r}}function d(e,i,n,r,o,s){n.removeAll();for(var l=0;l0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var g=u;if(null!=p.color&&(g=a.defaults({color:p.color},u)),p=a.merge(a.clone(p),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:r,axisLabel:l,name:p.text,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1),c||(p.name=""),"string"===typeof h){var m=p.name;p.name=h.replace("{value}",null!=m?m:"")}else"function"===typeof h&&(p.name=h(p.name,p));var v=a.extend(new o(p,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this.getIndicatorModels=function(){return p}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}}),h=c;t.exports=h},1792:function(t,e){var i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(t,e){if("china"===t){var n=i[e.name];if(n){var a=e.center;a[0]+=n[0]/10.5,a[1]+=-n[1]/14}}}t.exports=n},"17b8":function(t,e,i){var n=i("3014"),a=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});t.exports=a},"17d6":function(t,e,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=o(),l=n.each;function u(t,e,i){if(!a.node){var n=e.getZr();s(n).records||(s(n).records={}),c(n,e);var r=s(n).records[t]||(s(n).records[t]={});r.handler=i}}function c(t,e){function i(i,n){t.on(i,(function(i){var a=p(e);l(s(t).records,(function(t){t&&n(t,i,a.dispatchAction)})),h(a.pendings,e)}))}s(t).initialized||(s(t).initialized=!0,i("click",n.curry(f,"click")),i("mousemove",n.curry(f,"mousemove")),i("globalout",d))}function h(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function d(t,e,i){t.handler("leave",null,i)}function f(t,e,i,n){e.handler(t,i,n)}function p(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function g(t,e){if(!a.node){var i=e.getZr(),n=(s(i).records||{})[t];n&&(s(i).records[t]=null)}}e.register=u,e.unregister=g},"18c0":function(t,e,i){var n=i("6d8b"),a=i("e0d8"),r=i("8e43"),o=a.prototype,s=a.extend({type:"ordinal",init:function(t,e){t&&!n.isArray(t)||(t=new r({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){var t=[],e=this._extent,i=e[0];while(i<=e[1])t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;t.exports=l},1953:function(t,e,i){var n=i("2449"),a=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=a},"19e2":function(t,e,i){var n=i("6d8b"),a=i("e887"),r=i("2306"),o=i("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],u=["color","color0","borderColor","borderColor0"],c=a.extend({type:"candlestick",render:function(t,e,i){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,n=this.group,a=e.getLayout("isSimpleBox");this._data||n.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var o,s=e.getItemLayout(i);o=d(s,i,!0),r.initProps(o,{shape:{points:s.ends}},t,i),f(o,e,i,a),n.add(o),e.setItemGraphicEl(i,o)}})).update((function(o,s){var l=i.getItemGraphicEl(s);if(e.hasValue(o)){var u=e.getItemLayout(o);l?r.updateProps(l,{shape:{points:u.ends}},t,o):l=d(u,o),f(l,e,o,a),n.add(l),e.setItemGraphicEl(o,l)}else n.remove(l)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),m(t,this.group)},_incrementalRenderNormal:function(t,e){var i,n=e.getData(),a=n.getLayout("isSimpleBox");while(null!=(i=t.next())){var r,o=n.getItemLayout(i);r=d(o,i),f(r,n,i,a),r.incremental=!0,this.group.add(r)}},_incrementalRenderLarge:function(t,e){m(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:n.noop}),h=o.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))}});function d(t,e,i){var n=t.ends;return new h({shape:{points:i?p(n,t):n},z2:100})}function f(t,e,i,n){var a=e.getItemModel(i),o=a.getModel(s),c=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"borderColor")||c,d=o.getItemStyle(u);t.useStyle(d),t.style.strokeNoScale=!0,t.style.fill=c,t.style.stroke=h,t.__simpleBox=n;var f=a.getModel(l).getItemStyle();r.setHoverStyle(t,f)}function p(t,e){return n.map(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var g=o.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var i=e.points,n=0;n0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(s).getItemStyle(u);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var y=c;t.exports=y},"19eb":function(t,e,i){var n=i("6d8b"),a=i("2b61"),r=i("d5b7"),o=i("9e2e");function s(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new a(t.style,this),this._rect=null,this.__clipPaths=[]}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new a(t,this),this.dirty(!1),this}},n.inherits(s,r),n.mixin(s,o);var l=s;t.exports=l},"1ab3":function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("e887");function o(t,e,i,n){var a=e.getData(),r=this.dataIndex,o=a.getName(r),l=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),a.each((function(t){s(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),l,i)}))}function s(t,e,i,n,a){var r=(e.startAngle+e.endAngle)/2,o=Math.cos(r),s=Math.sin(r),l=i?n:0,u=[o*l,s*l];a?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function l(t,e){a.Group.call(this);var i=new a.Sector({z2:2}),n=new a.Polyline,r=new a.Text;function o(){n.ignore=n.hoverIgnore,r.ignore=r.hoverIgnore}function s(){n.ignore=n.normalIgnore,r.ignore=r.normalIgnore}this.add(i),this.add(n),this.add(r),this.updateData(t,e,!0),this.on("emphasis",o).on("normal",s).on("mouseover",o).on("mouseout",s)}var u=l.prototype;u.updateData=function(t,e,i){var r=this.childAt(0),o=t.hostModel,l=t.getItemModel(e),u=t.getItemLayout(e),c=n.extend({},u);if(c.label=null,i){r.setShape(c);var h=o.getShallow("animationType");"scale"===h?(r.shape.r=u.r0,a.initProps(r,{shape:{r:u.r}},o,e)):(r.shape.endAngle=u.startAngle,a.updateProps(r,{shape:{endAngle:u.endAngle}},o,e))}else a.updateProps(r,{shape:c},o,e);var d=t.getItemVisual(e,"color");r.useStyle(n.defaults({lineJoin:"bevel",fill:d},l.getModel("itemStyle").getItemStyle())),r.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var f=l.getShallow("cursor");function p(){r.stopAnimation(!0),r.animateTo({shape:{r:u.r+o.get("hoverOffset")}},300,"elasticOut")}function g(){r.stopAnimation(!0),r.animateTo({shape:{r:u.r}},300,"elasticOut")}f&&r.attr("cursor",f),s(this,t.getItemLayout(e),o.isSelected(null,e),o.get("selectedOffset"),o.get("animation")),r.off("mouseover").off("mouseout").off("emphasis").off("normal"),l.get("hoverAnimation")&&o.isAnimationEnabled()&&r.on("mouseover",p).on("mouseout",g).on("emphasis",p).on("normal",g),this._updateLabel(t,e),a.setHoverStyle(this)},u._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");a.updateProps(i,{shape:{points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]}},r,e),a.updateProps(n,{style:{x:l.x,y:l.y}},r,e),n.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=o.getModel("label"),h=o.getModel("emphasis.label"),d=o.getModel("labelLine"),f=o.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");a.setLabelStyle(n.style,n.hoverStyle={},c,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!c.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!f.get("show"),i.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=f.getModel("lineStyle").getLineStyle();var p=d.get("smooth");p&&!0===p&&(p=.4),i.setShape({smooth:p})},n.inherits(l,a.Group);var c=r.extend({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,e,i,a){if(!a||a.from!==this.uid){var r=t.getData(),s=this._data,u=this.group,c=e.get("animation"),h=!s,d=t.get("animationType"),f=n.curry(o,this.uid,t,c,i),p=t.get("selectedMode");if(r.diff(s).add((function(t){var e=new l(r,t);h&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),p&&e.on("click",f),r.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var i=s.getItemGraphicEl(e);i.updateData(r,t),i.off("click"),p&&i.on("click",f),u.add(i),r.setItemGraphicEl(t,i)})).remove((function(t){var e=s.getItemGraphicEl(t);u.remove(e)})).execute(),c&&h&&r.count()>0&&"scale"!==d){var g=r.getItemLayout(0),m=Math.max(i.getWidth(),i.getHeight())/2,v=n.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}else u.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var a=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(a*a+r*r);return o<=n.r&&o>=n.r0}}}),h=c;t.exports=h},"1c5f":function(t,e,i){var n=i("401b");function a(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),r(i)}}function r(t){t.eachEdge((function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=n.clone(t.node1.getLayout()),a=n.clone(t.node2.getLayout()),r=[i,a];+e&&r.push([(i[0]+a[0])/2-(i[1]-a[1])*e,(i[1]+a[1])/2-(a[0]-i[0])*e]),t.setLayout(r)}))}e.simpleLayout=a,e.simpleLayoutEdge=r},"1ccf":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("fd27"),o=i("3842"),s=o.parsePercent,l=i("697e"),u=l.createScaleByModel,c=l.niceScaleExtent,h=i("2039"),d=i("ee1a"),f=d.getStackedDimension;function p(t,e,i){var n=e.get("center"),a=i.getWidth(),r=i.getHeight();t.cx=s(n[0],a),t.cy=s(n[1],r);var o=t.getRadiusAxis(),l=Math.min(a,r)/2,u=s(e.get("radius"),l);o.inverse?o.setExtent(u,0):o.setExtent(0,u)}function g(t,e){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();a.each(e.mapDimension("radius",!0),(function(t){r.scale.unionExtentFromData(e,f(e,t))})),a.each(e.mapDimension("angle",!0),(function(t){n.scale.unionExtentFromData(e,f(e,t))}))}})),c(n.scale,n.model),c(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),s=360/n.scale.count();n.inverse?o[1]+=s:o[1]-=s,n.setExtent(o[0],o[1])}}function m(t,e){if(t.type=e.get("type"),t.scale=u(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}i("78f0");var v={dimensions:r.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var a=new r(n);a.update=g;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");m(o,l),m(s,u),p(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};h.register("polar",v)},"1e322":function(t,e,i){var n=i("6d8b"),a=i("3842"),r=a.parsePercent,o=i("ee1a"),s=o.isDimensionStacked;function l(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function u(t){return t.dim}function c(t,e,i){i.getWidth(),i.getHeight();var a={},r=h(n.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),o=l(t),c=r[u(n)][o],h=c.offset,d=c.width,f=i.getOtherAxis(n),p=t.coordinateSystem.cx,g=t.coordinateSystem.cy,m=t.get("barMinHeight")||0,v=t.get("barMinAngle")||0;a[o]=a[o]||[];for(var y=e.mapDimension(f.dim),x=e.mapDimension(n.dim),_=s(e,y),b=f.getExtent()[0],w=0,S=e.count();w=0?"p":"n",P=b;if(_&&(a[o][I]||(a[o][I]={p:b,n:b}),P=a[o][I][L]),"radius"===f.dim){var k=f.dataToRadius(M)-b,O=n.dataToAngle(I);Math.abs(k)=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}});t.exports=a},"1f1a":function(t,e,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=i("4319"),s=i("7023"),l=i("eeea"),u=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){r.prototype.init.apply(this,arguments),a.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=n.reduce(t.regions||[],(function(t,i){return i.name&&t.set(i.name,new o(i,e)),t}),n.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new o(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t),n=i.get("label."+e+".formatter"),a={name:t};return"function"===typeof n?(a.status=e,n(a)):"string"===typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});n.mixin(u,s);var c=u;t.exports=c},"1fab":function(t,e){var i=Array.prototype.slice,n=function(t){this._$handlers={},this._$eventProcessor=t};function a(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function r(t,e,i,n,r,o){var s=t._$handlers;if("function"===typeof i&&(r=n,n=i,i=null),!n||!e)return t;i=a(t,i),s[e]||(s[e]=[]);for(var l=0;l3&&(a=i.call(a,1));for(var o=e.length,s=0;s4&&(a=i.call(a,1,a.length-1));for(var o=a[a.length-1],s=e.length,l=0;lthis._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(u.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(u.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(u.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(u.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=m(a)*i+t,this._yi=v(a)*i+e,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(u.R,t,e,i,n),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&f<=t||c<0&&f>=t||0===c&&(h>0&&m<=e||h<0&&m>=e))n=this._dashIdx,i=o[n],f+=c*i,m+=h*i,this._dashIdx=(n+1)%v,c>0&&fl||h>0&&mu||s[n%2?"moveTo":"lineTo"](c>=0?p(f,t):g(f,t),h>=0?p(m,e):g(m,e));c=f-t,h=m-e,this._dashOffset=-y(c*c+h*h)},_dashedBezierTo:function(t,e,i,a,r,o){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,x=n.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(m,t,i,r,s+.1)-x(m,t,i,r,s),u=x(v,e,a,o,s+.1)-x(v,e,a,o,s),_+=y(l*l+u*u);for(;bf)break;s=(S-f)/_;while(s<=1)c=x(m,t,i,r,s),h=x(v,e,a,o,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=p[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(r,o),l=r-c,u=o-h,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,l=0;ll||x(o-a)>c||d===h-1)&&(t.lineTo(r,o),n=r,a=o);break;case u.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case u.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case u.A:var p=s[d++],g=s[d++],y=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],I=y>_?y:_,A=y>_?1:y/_,T=y>_?_/y:1,D=Math.abs(y-_)>.001,C=b+w;D?(t.translate(p,g),t.rotate(S),t.scale(A,T),t.arc(0,0,I,b,C,1-M),t.scale(1/A,1/T),t.rotate(-S),t.translate(-p,-g)):t.arc(p,g,I,b,C,1-M),1===d&&(e=m(b)*y+p,i=v(b)*_+g),n=m(C)*y+p,a=v(C)*_+g;break;case u.R:e=n=s[d],i=a=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case u.Z:t.closePath(),n=e,a=i}}}},b.CMD=u;var w=b;t.exports=w},2145:function(t,e){var i={};function n(t,e){i[t]=e}function a(t){return i[t]}e.register=n,e.get=a},2163:function(t,e,i){var n=i("4f85"),a=i("06c7"),r=i("eda2"),o=r.encodeHTML,s=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n={};n.leaves=i;var r=a.createTree(e,this,n),o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),r=n.name;while(n&&n!==i)r=n.parentNode.name+"."+r,n=n.parentNode;return o(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=s},"216a":function(t,e,i){var n=i("6d8b"),a=i("3842"),r=i("eda2"),o=i("944e"),s=i("89e3"),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(t,e,i,n){while(i>>1;t[a][1]i&&(s=i);var l=v.length,h=g(v,s,0,l),d=v[Math.min(h,l-1)],f=d[1];if("year"===d[0]){var p=r/f,m=a.nice(p/t,!0);f*=m}var y=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,x=[Math.round(u((n[0]-y)/f)*f+y),Math.round(c((n[1]-y)/f)*f+y)];o.fixExtent(x,n),this._stepLvl=d,this._interval=f,this._niceExtent=x},parse:function(t){return+a.parseDate(t)}});n.each(["contain","normalize"],(function(t){m.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var v=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];m.create=function(t){return new m({useUTC:t.ecModel.get("useUTC")})};var y=m;t.exports=y},"217b":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("3301")),r=i("4f85"),o=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return a(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=o},"217c":function(t,e,i){var n=i("6d8b"),a=i("6cb7");i("df3a");var r=a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&n.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))}});t.exports=r},"22d1":function(t,e){var i={};i="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:a(navigator.userAgent);var n=i;function a(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),r&&(i.edge=!0,i.version=r[1]),o&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!==typeof document}}t.exports=n},"22da":function(t,e,i){var n=i("f934");function a(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var e,i,n=[t];while(e=n.pop())if(i=e.children,e.isExpand&&i.length)for(var a=i.length,r=a-1;r>=0;r--){var o=i[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(o)}}function r(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){c(t);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=h(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)}function o(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:m}function l(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function u(t,e){return n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children,i=e.length,n=0,a=0;while(--i>=0){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}function h(t,e,i,n){if(e){var a=t,r=t,o=r.parentNode.children[0],s=e,l=a.hierNode.modifier,u=r.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),r=f(r),s&&r){a=d(a),o=f(o),a.hierNode.ancestor=t;var m=s.hierNode.prelim+h-r.hierNode.prelim-u+n(s,r);m>0&&(g(p(s,t,i),t,m),u+=m,l+=m),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!d(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=h-l),r&&!f(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=u-c,i=t)}return i}function d(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function f(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function p(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function g(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function m(t,e){return t.parentNode===e.parentNode?1:2}e.init=a,e.firstWalk=r,e.secondWalk=o,e.separation=s,e.radialCoordinate=l,e.getViewRect=u},2306:function(t,e,i){var n=i("6d8b"),a=i("342d"),r=i("41ef"),o=i("1687"),s=i("401b"),l=i("cbe5"),u=i("0cde"),c=i("0da8");e.Image=c;var h=i("e1fc");e.Group=h;var d=i("76a5");e.Text=d;var f=i("d9fc");e.Circle=f;var p=i("4aa2");e.Sector=p;var g=i("4573");e.Ring=g;var m=i("87b1");e.Polygon=m;var v=i("d498");e.Polyline=v;var y=i("c7a2");e.Rect=y;var x=i("cb11");e.Line=x;var _=i("ac0f");e.BezierCurve=_;var b=i("8d32");e.Arc=b;var w=i("d4c6");e.CompoundPath=w;var S=i("48a9");e.LinearGradient=S;var M=i("dded");e.RadialGradient=M;var I=i("9850");e.BoundingRect=I;var A=i("392f");e.IncrementalDisplayable=A;var T=Math.round,D=Math.max,C=Math.min,L={},P=1;function k(t){return l.extend(t)}function O(t,e){return a.extendFromString(t,e)}function R(t,e,i,n){var r=a.createFromString(t,e);return i&&("center"===n&&(i=N(i,r.getBoundingRect())),V(r,i)),r}function E(t,e,i){var n=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(N(e,a))}}});return n}function N(t,e){var i,n=e.width/e.height,a=t.height*n;a<=t.width?i=t.height:(a=t.width,i=a/n);var r=t.x+t.width/2,o=t.y+t.height/2;return{x:r-a/2,y:o-i/2,width:a,height:i}}var z=a.mergePath;function V(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function B(t){var e=t.shape,i=t.style.lineWidth;return T(2*e.x1)===T(2*e.x2)&&(e.x1=e.x2=G(e.x1,i,!0)),T(2*e.y1)===T(2*e.y2)&&(e.y1=e.y2=G(e.y1,i,!0)),t}function F(t){var e=t.shape,i=t.style.lineWidth,n=e.x,a=e.y,r=e.width,o=e.height;return e.x=G(e.x,i,!0),e.y=G(e.y,i,!0),e.width=Math.max(G(n+r,i,!1)-e.x,0===r?0:1),e.height=Math.max(G(a+o,i,!1)-e.y,0===o?0:1),t}function G(t,e,i){var n=T(2*t);return(n+T(e))%2===0?n/2:(n+(i?1:-1))/2}function H(t){return null!=t&&"none"!==t}var W=n.createHashMap(),Z=0;function U(t){if("string"!==typeof t)return t;var e=W.get(t);return e||(e=r.lift(t,-.1),Z<1e4&&(W.set(t,e),Z++)),e}function j(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var a in e)null!=e[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function Y(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.useHoverLayer;t.__highlighted=i?"layer":"plain";var n=t.__zr;if(n||!i){var a=t,r=t.style;i&&(a=n.addHover(t),r=a.style),ft(r),i||j(a),r.extendFrom(e),X(r,e,"fill"),X(r,e,"stroke"),dt(r),i||(t.dirty(!1),t.z2+=P)}}}function X(t,e,i){!H(e[i])&&H(t[i])&&(t[i]=U(t[i]))}function q(t){var e=t.__highlighted;if(e)if(t.__highlighted=!1,"layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var i=t.style,n=t.__cachedNormalStl;n&&(ft(i),t.setStyle(n),dt(i));var a=t.__cachedNormalZ2;null!=a&&t.z2-a===P&&(t.z2=a)}}function K(t,e){t.isGroup?t.traverse((function(t){!t.isGroup&&e(t)})):e(t)}function $(t,e){e=t.__hoverStl=!1!==e&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,q(t),Y(t))}function J(t){return t&&t.__isEmphasisEntered}function Q(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&K(this,Y)}function tt(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&K(this,q)}function et(){this.__isEmphasisEntered=!0,K(this,Y)}function it(){this.__isEmphasisEntered=!1,K(this,q)}function nt(t,e,i){t.isGroup?t.traverse((function(t){!t.isGroup&&$(t,t.hoverStyle||e)})):$(t,t.hoverStyle||e),at(t,i)}function at(t,e){var i=!1===e;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!i||t.__hoverStyleTrigger){var n=i?"off":"on";t[n]("mouseover",Q)[n]("mouseout",tt),t[n]("emphasis",et)[n]("normal",it),t.__hoverStyleTrigger=!i}}function rt(t,e,i,a,r,o,s){r=r||L;var l,u=r.labelFetcher,c=r.labelDataIndex,h=r.labelDimIndex,d=i.getShallow("show"),f=a.getShallow("show");(d||f)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h)),null==l&&(l=n.isFunction(r.defaultText)?r.defaultText(c,r):r.defaultText));var p=d?l:null,g=f?n.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h):null,l):null;null==p&&null==g||(ot(t,i,o,r),ot(e,a,s,r,!0)),t.text=p,e.text=g}function ot(t,e,i,a,r){return lt(t,e,a,r),i&&n.extend(t,i),t}function st(t,e,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,lt(t,e,a,n)}function lt(t,e,i,a){if(i=i||L,i.isRectText){var r=e.getShallow("position")||(a?null:"inside");"outside"===r&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),a?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=ut(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);ct(s[h]={},d,u,i,a)}return t.rich=s,ct(t,e,u,i,a,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function ut(t){var e;while(t&&t!==t.ecModel){var i=(t.option||L).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}function ct(t,e,i,a,r,o){i=!r&&i||L,t.textFill=ht(e.getShallow("color"),a)||i.color,t.textStroke=ht(e.getShallow("textBorderColor"),a)||i.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),t.insideRawTextPosition=t.textPosition,r||(o&&(t.insideRollbackOpt=a,dt(t)),null==t.textFill&&(t.textFill=a.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&a.disableBox||(t.textBackgroundColor=ht(e.getShallow("backgroundColor"),a),t.textPadding=e.getShallow("padding"),t.textBorderColor=ht(e.getShallow("borderColor"),a),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function ht(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function dt(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var i,n=e.useInsideStyle,a=t.insideRawTextPosition,r=e.autoColor;!1!==n&&(!0===n||e.isRectText&&a&&"string"===typeof a&&a.indexOf("inside")>=0)?(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=r&&(i={textFill:null},t.textFill=r),i&&(t.insideRollback=i)}}function ft(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function pt(t,e){var i=e||e.getModel("textStyle");return n.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function gt(t,e,i,n,a,r){"function"===typeof a&&(r=a,a=null);var o=n&&n.isAnimationEnabled();if(o){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),u=n.getShallow("animationEasing"+s),c=n.getShallow("animationDelay"+s);"function"===typeof c&&(c=c(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"===typeof l&&(l=l(a)),l>0?e.animateTo(i,l,c||0,u,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function mt(t,e,i,n,a){gt(!0,t,e,i,n,a)}function vt(t,e,i,n,a){gt(!1,t,e,i,n,a)}function yt(t,e){var i=o.identity([]);while(t&&t!==e)o.mul(i,t.getLocalTransform(),i),t=t.parent;return i}function xt(t,e,i){return e&&!n.isArrayLike(e)&&(e=u.getLocalTransform(e)),i&&(e=o.invert([],e)),s.applyTransform([],t,e)}function _t(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return r=xt(r,e,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function bt(t,e,i,a){if(t&&e){var r=o(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=l(t);t.attr(l(e)),mt(t,n,i,t.dataIndex)}}}))}function o(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}}function wt(t,e){return n.map(t,(function(t){var i=t[0];i=D(i,e.x),i=C(i,e.x+e.width);var n=t[1];return n=D(n,e.y),n=C(n,e.y+e.height),[i,n]}))}function St(t,e){var i=D(t.x,e.x),n=C(t.x+t.width,e.x+e.width),a=D(t.y,e.y),r=C(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}}function Mt(t,e,i){e=n.extend({rectHover:!0},e);var a=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),n.defaults(a,i),new c(e)):R(t.replace("path://",""),e,i,"center")}e.Z2_EMPHASIS_LIFT=P,e.extendShape=k,e.extendPath=O,e.makePath=R,e.makeImage=E,e.mergePath=z,e.resizePath=V,e.subPixelOptimizeLine=B,e.subPixelOptimizeRect=F,e.subPixelOptimize=G,e.setElementHoverStyle=$,e.isInEmphasis=J,e.setHoverStyle=nt,e.setAsHoverStyleTrigger=at,e.setLabelStyle=rt,e.setTextStyle=ot,e.setText=st,e.getFont=pt,e.updateProps=mt,e.initProps=vt,e.getTransform=yt,e.applyTransform=xt,e.transformDirection=_t,e.groupTransition=bt,e.clipPointsByRect=wt,e.clipRectByRect=St,e.createIcon=Mt},2325:function(t,e,i){var n=i("6d8b"),a=i("607d"),r=i("2306"),o=i("88b3"),s=i("7dcf"),l=i("3842"),u=i("f934"),c=i("ef6a"),h=r.Rect,d=l.linearMap,f=l.asc,p=n.bind,g=n.each,m=7,v=1,y=30,x="horizontal",_="vertical",b=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){S.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},r=this._orient===x?{right:a.width-i.x-i.width,top:a.height-y-m,width:i.width,height:y}:{right:m,top:i.y,width:y,height:i.height},o=u.getLayoutParams(t.option);n.each(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=r[t])}));var s=u.getLayoutRect(o,a,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===_&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),r=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(i!==x||a?i===x&&a?{scale:o?[-1,1]:[-1,-1]}:i!==_||a?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t.getBoundingRect([r]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new h({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new h({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,a=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var s=a.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,e[1]],h=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=h[1]/(a.count()-1),m=0,v=Math.round(a.count()/e[0]);a.each([o],(function(t,e){if(v>0&&e%v)m+=g;else{var i=null==t||isNaN(t)||""===t,n=i?0:d(t,s,c,!0);i&&!u&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&u&&(f.push([m,0]),p.push([m,0])),f.push([m,n]),p.push([m,n]),m+=g,u=i}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:f},style:n.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,a=this.ecModel;return t.eachTargetAxis((function(r,o){var s=t.getAxisProxy(r.name,o).getTargetSeriesModels();n.each(s,(function(t){if(!i&&!(!0!==e&&n.indexOf(w,t.get("type"))<0)){var s,l=a.getComponent(r.axis,o).axis,u=M(r.name),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),i={thisAxis:l,series:t,thisDim:r.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,o=this._size,s=this.dataZoomModel;n.add(t.filler=new h({draggable:!0,cursor:I(this._orient),drift:p(this._onDragMove,this,"all"),onmousemove:function(t){a.stop(t.event)},ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),n.add(new h(r.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}}))),g([0,1],(function(t){var o=r.createIcon(s.get("handleIcon"),{cursor:I(this._orient),draggable:!0,drift:p(this._onDragMove,this,t),onmousemove:function(t){a.stop(t.event)},ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),u=o.getBoundingRect();this._handleHeight=l.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,o.setStyle(s.getModel("handleStyle").getItemStyle());var c=s.get("handleColor");null!=c&&(o.style.fill=c),n.add(e[t]=o);var h=s.textStyleModel;this.group.add(i[t]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:h.getTextColor(),textFont:h.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[d(t[0],[0,100],e,!0),d(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];c(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?d(r.minSpan,o,a,!0):null,null!=r.maxSpan?d(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=f([d(n[0],a,o,!0),d(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=f(i.slice()),a=this._size;g([0,1],(function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var s=e.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=f(this._handleEnds.slice());function d(t){var e=r.getTransform(i.handles[t].parent,this.group),s=r.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+b,u=r.applyTransform([h[t]+(0===t?-l:l),this._size[1]/2],e);n[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===x?"middle":s,textAlign:a===x?s:"center",text:o[t]})}d.call(this,0),d.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,a=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return n.isFunction(a)?a(t,o):n.isString(a)?a.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),a=r.applyTransform([e,i],n,!0),o=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});function M(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function I(t){return"vertical"===t?"ns-resize":"ew-resize"}var A=S;t.exports=A},"237f":function(t,e,i){var n=i("6d8b"),a=i("6179"),r=i("7368"),o=i("31d9"),s=i("b1d4"),l=i("2039"),u=i("3301");function c(t,e,i,c,h){for(var d=new r(c),f=0;f "+x)),m++)}var _,b=i.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,i);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];n.indexOf(S,"value")<0&&S.concat(["value"]);var M=s(t,{coordDimensions:S});_=new a(M,i),_.initData(t)}var I=new a(["value"],i);return I.initData(g,p),h&&h(_,I),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:I},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}t.exports=c},"23e0":function(t,e,i){var n=i("6d8b"),a=i("7887"),r=i("89e3"),o=i("3842"),s=i("697e"),l=s.getScaleExtent,u=s.niceScaleExtent,c=i("2039");function h(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=n.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new a(i,new r);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},h.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,a=this.cx+t*Math.cos(n),r=this.cy-t*Math.sin(n);return[a,r]},h.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;li[0]&&isFinite(p)&&isFinite(i[0]))}else{var g=a.getTicks().length-1;g>r&&(d=s(d));var m=Math.round((i[0]+i[1])/2/d)*d,v=Math.round(r/2);a.setExtent(o.round(m-v*d),o.round(m+(r-v)*d)),a.setInterval(d)}}))},h.dimensions=[],h.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new h(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},c.register("radar",h);var d=h;t.exports=d},"23ee":function(t,e,i){var n=i("3eba");i("879e"),i("9704"),i("d747");var a=i("675a"),r=i("7f96"),o=i("2943"),s=i("de6eb"),l=i("d357"),u=i("adda"),c=i("5866"),h=i("7b0c");n.registerProcessor(a),n.registerVisual(r("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(u),n.registerLayout(c),n.registerCoordinateSystem("graphView",{create:h})},2449:function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("eda2"),u=i("38a2"),c=l.addCommas,h=l.encodeHTML;function d(t){s.defaultEmphasis(t,"label",["show"])}var f=a.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(o.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,o=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),s=t[o];i&&i.data?(s?s.mergeOption(i,e,!0):(n&&d(i),r.each(i.data,(function(t){t instanceof Array?(d(t[0]),d(t[1])):d(t)})),s=new a(i,this,e),r.extend(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=r.isArray(i)?r.map(i,c).join(", "):c(i),a=e.getName(t),o=h(this.name);return(null!=i||a)&&(o+="
"),a&&(o+=h(a),null!=i&&(o+=" : ")),null!=i&&(o+=h(n)),o},getData:function(){return this._data},setData:function(t){this._data=t}});r.mixin(f,u);var p=f;t.exports=p},"24b9":function(t,e,i){var n=i("f934"),a=i("3842"),r=a.parsePercent,o=a.linearMap;function s(t,e){return n.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function l(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,(function(t){return t})),a=[],r="ascending"===e,o=0,s=t.count();o=0||a&&n.indexOf(a,s)<0)){var l=e.getShallow(s);null!=l&&(r[t[o][0]]=l)}}return r}}t.exports=a},"292e":function(t,e,i){var n=i("3842"),a=n.parsePercent,r=n.linearMap,o=i("bb70"),s=i("6d8b"),l=2*Math.PI,u=Math.PI/180;function c(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),c=t.get("center"),h=t.get("radius");s.isArray(h)||(h=[0,h]),s.isArray(c)||(c=[c,c]);var d=i.getWidth(),f=i.getHeight(),p=Math.min(d,f),g=a(c[0],d),m=a(c[1],f),v=a(h[0],p/2),y=a(h[1],p/2),x=-t.get("startAngle")*u,_=t.get("minAngle")*u,b=0;e.each(n,(function(t){!isNaN(t)&&b++}));var w=e.getSum(n),S=Math.PI/(w||b)*2,M=t.get("clockwise"),I=t.get("roseType"),A=t.get("stillShowZeroSum"),T=e.getDataExtent(n);T[0]=0;var D=l,C=0,L=x,P=M?1:-1;if(e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:g,cy:m,r0:v,r:I?NaN:y});else{n="area"!==I?0===w&&A?S:t*S:l/b,n<_?(n=_,D-=_):C+=t;var a=L+P*n;e.setItemLayout(i,{angle:n,startAngle:L,endAngle:a,clockwise:M,cx:g,cy:m,r0:v,r:I?r(t,T,[v,y]):y}),L=a}})),D0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n="radial"===e.type?u:l,a=n(t,e,i),r=e.colorStops,o=0;o=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=o&&null!=l&&(c=F(u,o,l),!e.ignoreViewBox)){var f=a;a=new n,a.add(f),f.scale=c.scale.slice(),f.position=c.position.slice()}return e.ignoreRootClip||null==o||null==l||a.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:a,width:o,height:l,viewBoxRect:u,viewBoxTransform:c}},A.prototype._parseNode=function(t,e){var i,n=t.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var a=D[n];if(a){var r=a.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=r)}}else{a=T[n];a&&(i=a.call(this,t,e),e.add(i))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},A.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var a=new r({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});L(e,a),O(t,a,this._defs);var o=a.style.fontSize;o&&o<9&&(a.style.fontSize=9,a.scale=a.scale||[1,1],a.scale[0]*=o/9,a.scale[1]*=o/9);var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a};var T={g:function(t,e){var i=new n;return L(e,i),O(t,i,this._defs),i},rect:function(t,e){var i=new s;return L(e,i),O(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new o;return L(e,i),O(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new u;return L(e,i),O(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new l;return L(e,i),O(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=P(i));var n=new h({shape:{points:i||[]}});return L(e,n),O(t,n,this._defs),n},polyline:function(t,e){var i=new c;L(e,i),O(t,i,this._defs);var n=t.getAttribute("points");n&&(n=P(n));var a=new d({shape:{points:n||[]}});return a},image:function(t,e){var i=new a;return L(e,i),O(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,a=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(a)+parseFloat(o);var s=new n;return L(e,s),O(t,s,this._defs),s},tspan:function(t,e){var i=t.getAttribute("x"),a=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=a&&(this._textY=parseFloat(a));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new n;return L(e,s),O(t,s,this._defs),this._textX+=r,this._textY+=o,s},path:function(t,e){var i=t.getAttribute("d")||"",n=v(i);return L(e,n),O(t,n,this._defs),n}},D={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),a=parseInt(t.getAttribute("y2")||0,10),r=new f(e,i,n,a);return C(t,r),r},radialgradient:function(t){}};function C(t,e){var i=t.firstChild;while(i){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,a)}i=i.nextSibling}}function L(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),b(e.__inheritedStyle,t.__inheritedStyle))}function P(t){for(var e=w(t).split(M),i=[],n=0;n0;r-=2){var o=a[r],s=a[r-1];switch(n=n||g.create(),s){case"translate":o=w(o).split(M),g.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=w(o).split(M),g.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=w(o).split(M),g.rotate(n,n,parseFloat(o[0]));break;case"skew":o=w(o).split(M),console.warn("Skew transform is not supported yet");break;case"matrix":o=w(o).split(M);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5]);break}}e.setLocalTransform(n)}}var V=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,a={};V.lastIndex=0;while(null!=(n=V.exec(e)))a[n[1]]=n[2];for(var r in k)k.hasOwnProperty(r)&&null!=a[r]&&(i[k[r]]=a[r]);return i}function F(t,e,i){var n=e/t.width,a=i/t.height,r=Math.min(n,a),o=[r,r],s=[-(t.x+t.width/2)*r+e/2,-(t.y+t.height/2)*r+i/2];return{scale:o,position:s}}function G(t,e){var i=new A;return i.parse(t,e)}e.parseXML=I,e.makeViewBoxTransform=F,e.parseSVG=G},"307a":function(t,e,i){var n=i("6d8b"),a=i("eaea"),r=i("3842"),o=[20,140],s=a.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=r.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function a(e,i){n.push({value:e,color:t(e,i)})}for(var r=0,o=0,s=i.length,u=e.length;o=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(g,20))),f.coord[h]=p.coord[h]=u,a=[f,p,{type:s,valueIndex:a.valueIndex,value:u}]}return a=[o.dataTransform(t,a[0]),o.dataTransform(t,a[1]),n.extend({},a[2])],a[2].type=a[2].type||"",n.merge(a[2],a[0]),n.merge(a[2],a[1]),a};function c(t){return!isNaN(t)&&!isFinite(t)}function h(t,e,i,n){var a=1-t,r=n.dimensions[t];return c(e[a])&&c(i[a])&&e[t]===i[t]&&n.getAxis(r).containData(e[t])}function d(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(h(1,i,n,t)||h(0,i,n,t)))return!0}return o.dataFilter(t,e[0])&&o.dataFilter(t,e[1])}function f(t,e,i,n,a){var o,s=n.coordinateSystem,l=t.getItemModel(e),u=r.parsePercent(l.get("x"),a.getWidth()),h=r.parsePercent(l.get("y"),a.getHeight());if(isNaN(u)||isNaN(h)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,f=t.get(d[0],e),p=t.get(d[1],e);o=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=s.dimensions;c(t.get(d[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[i?0:1]):c(t.get(d[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[i?0:1]))}isNaN(u)||(o[0]=u),isNaN(h)||(o[1]=h)}else o=[u,h];t.setItemLayout(e,o)}var p=l.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each((function(e){f(a,e,!0,t,i),f(r,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,a){var r=t.coordinateSystem,o=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(o)||u.set(o,new s);this.group.add(c.group);var h=g(r,t,e),d=h.from,p=h.to,m=h.line;e.__from=d,e.__to=p,e.setData(m);var v=e.get("symbol"),y=e.get("symbolSize");function x(e,i,n){var r=e.getItemModel(i);f(e,i,n,t,a),e.setItemVisual(i,{symbolSize:r.get("symbolSize")||y[n?0:1],symbol:r.get("symbol",!0)||v[n?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}n.isArray(v)||(v=[v,v]),"number"===typeof y&&(y=[y,y]),h.from.each((function(t){x(d,t,!0),x(p,t,!1)})),m.each((function(t){var e=m.getItemModel(t).get("lineStyle.color");m.setItemVisual(t,{color:e||d.getItemVisual(t,"color")}),m.setItemLayout(t,[d.getItemLayout(t),p.getItemLayout(t)]),m.setItemVisual(t,{fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolSize:p.getItemVisual(t,"symbolSize"),toSymbol:p.getItemVisual(t,"symbol")})})),c.updateData(m),h.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),c.__keep=!0,c.group.silent=e.get("silent")||t.get("silent")}});function g(t,e,i){var r;r=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var s=new a(r,i),l=new a(r,i),c=new a([],i),h=n.map(i.get("data"),n.curry(u,e,t,i));t&&(h=n.filter(h,n.curry(d,t)));var f=t?o.dimValueGetter:function(t){return t.value};return s.initData(n.map(h,(function(t){return t[0]})),null,f),l.initData(n.map(h,(function(t){return t[1]})),null,f),c.initData(n.map(h,(function(t){return t[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}t.exports=p},"30a3":function(t,e,i){var n=i("6d8b"),a=i("607d"),r=a.Dispatcher,o=i("98b7"),s=i("06ad"),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/n.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:c((function(t,e,i,n,a,r){var o=h[n]([r.oldX,r.oldY],[r.newX,r.newY],e,a,i);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:c((function(t,e,i,n,a,r){var o=h[n]([0,0],[r.scrollDelta,r.scrollDelta],e,a,i);return o.signal*(t[1]-t[0])*r.scrollDelta}))};function c(t){return function(e,i,n,a){var o=this._range,s=o.slice(),l=e.axisModels[0];if(l){var u=t(s,l,e,i,n,a);return r(u,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},d=l;t.exports=d},3301:function(t,e,i){var n=i("6d8b"),a=i("6179"),r=i("b1d4"),o=i("93d0"),s=o.SOURCE_FORMAT_ORIGINAL,l=i("2f45"),u=l.getDimensionTypeByAxis,c=i("e0d3"),h=c.getDataItemValue,d=i("2039"),f=i("8b7f"),p=f.getCoordSysDefineBySeries,g=i("ec6f"),m=i("ee1a"),v=m.enableDataStack;function y(t,e,i){i=i||{},g.isInstance(t)||(t=g.seriesDataToSource(t));var o,s=e.get("coordinateSystem"),l=d.get(s),c=p(e);c&&(o=n.map(c.coordSysDims,(function(t){var e={name:t},i=c.axisMap.get(t);if(i){var n=i.get("type");e.type=u(n)}return e}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,f,m=r(t,{coordDimensions:o,generateCoord:i.generateCoord});c&&n.each(m,(function(t,e){var i=t.coordDim,n=c.categoryAxisMap.get(i);n&&(null==h&&(h=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(f=!0)})),f||null==h||(m[h].otherDims.itemName=0);var y=v(e,m),_=new a(m,e);_.setCalculationInfo(y);var b=null!=h&&x(t)?function(t,e,i,n){return n===h?i:this.defaultDimValueGetter(t,e,i,n)}:null;return _.hasItemOption=!1,_.initData(t,null,b),_}function x(t){if(t.sourceFormat===s){var e=_(t.data||[]);return null!=e&&!n.isArray(h(e))}}function _(t){var e=0;while(e0?1:o<0?-1:0}function x(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function _(t,e,i,n,r,o,s,l,c,h){var d=c.valueDim,f=c.categoryDim,p=Math.abs(i[f.wh]),g=t.getItemVisual(e,"symbolSize");a.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=u(g[f.index],p),g[d.index]=u(g[d.index],n?p:Math.abs(o)),h.symbolSize=g;var m=h.symbolScale=[g[0]/l,g[1]/l];m[d.index]*=(c.isHorizontal?-1:1)*s}function b(t,e,i,n,a){var r=t.get(f)||0;r&&(g.attr({scale:e.slice(),rotation:i}),g.updateTransform(),r/=g.getLineScale(),r*=e[n.valueDim.index]),a.valueLineWidth=r}function w(t,e,i,n,r,o,s,l,h,d,f,p){var g=f.categoryDim,m=f.valueDim,v=p.pxSign,y=Math.max(e[m.index]+l,0),x=y;if(n){var _=Math.abs(h),b=a.retrieve(t.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=u(b,e[m.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,I=c(n),A=I?n:B((_+M)/S),T=_-A*y;b=T/2/(w?A:A-1),S=y+2*b,M=w?0:2*b,I||"fixed"===n||(A=d?B((Math.abs(d)+M)/S):0),x=A*S-M,p.repeatTimes=A,p.symbolMargin=b}var D=v*(x/2),C=p.pathPosition=[];C[g.index]=i[g.wh]/2,C[m.index]="start"===s?D:"end"===s?h-D:h/2,o&&(C[0]+=o[0],C[1]+=o[1]);var L=p.bundlePosition=[];L[g.index]=i[g.xy],L[m.index]=i[m.xy];var P=p.barRectShape=a.extend({},i);P[m.wh]=v*Math.max(Math.abs(i[m.wh]),Math.abs(C[m.index]+D)),P[g.wh]=i[g.wh];var k=p.clipShape={};k[g.xy]=-i[g.xy],k[g.wh]=f.ecSize[g.wh],k[m.xy]=0,k[m.wh]=i[m.wh]}function S(t){var e=t.symbolPatternSize,i=s(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function M(t,e,i,n){var a=t.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,u=i.repeatTimes||0,c=0,h=r[e.valueDim.index]+o+2*i.symbolMargin;for(N(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:n<0)&&(a=u-1-t),e[l.index]=h*(a-u/2+.5)+s[l.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){N(t,(function(t){t.trigger("emphasis")}))}function m(){N(t,(function(t){t.trigger("normal")}))}}function I(t,e,i,n){var a=t.__pictorialBundle,r=t.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}r?z(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=t.__pictorialMainPath=S(i),a.add(r),z(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",o).on("mouseout",s)),P(r,i)}function A(t,e,i){var n=a.extend({},e.barRectShape),o=t.__pictorialBarRect;o?z(o,null,{shape:n},e,i):(o=t.__pictorialBarRect=new r.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function T(t,e,i,n){if(i.symbolClip){var o=t.__pictorialClipPath,s=a.extend({},i.clipShape),l=e.valueDim,u=i.animationModel,c=i.dataIndex;if(o)r.updateProps(o,{shape:s},u,c);else{s[l.wh]=0,o=new r.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=i.clipShape[l.wh],r[n?"updateProps":"initProps"](o,{shape:h},u,c)}}}function D(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=C,i.isAnimationEnabled=L,i}function C(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function P(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function k(t,e,i,n){var a=new r.Group,o=new r.Group;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?M(a,e,i):I(a,e,i),A(a,i,n),T(a,e,i,n),a.__pictorialShapeStr=E(t,i),a.__pictorialSymbolMeta=i,a}function O(t,e,i){var n=i.animationModel,a=i.dataIndex,o=t.__pictorialBundle;r.updateProps(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?M(t,e,i,!0):I(t,e,i,!0),A(t,i,!0),T(t,e,i,!0)}function R(t,e,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var s=[];N(n,(function(t){s.push(t)})),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),a.each(s,(function(t){r.updateProps(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function E(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function N(t,e,i){a.each(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function z(t,e,i,n,a,o){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&r[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function V(t,e,i){var n=i.color,o=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),c=s.getShallow("cursor");N(t,(function(t){t.setColor(n),t.setStyle(a.defaults({fill:n,opacity:i.opacity},l)),r.setHoverStyle(t,u),c&&(t.cursor=c),t.z2=i.z2}));var h={},f=e.valueDim.posDesc[+(i.boundingLength>0)],p=t.__pictorialBarRect;d(p.style,h,s,n,e.seriesModel,o,f),r.setHoverStyle(p,h)}function B(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var F=m;t.exports=F},"340d":function(t,e,i){var n=i("6d8b"),a=i("e887"),r=i("4e47"),o=i("80f0"),s="sunburstRootToNode",l=a.extend({type:"sunburst",init:function(){},render:function(t,e,i,a){var s=this;this.seriesModel=t,this.api=i,this.ecModel=e;var l=t.getData(),u=l.tree.root,c=t.getViewRoot(),h=this.group,d=t.get("renderLabelForZeroData"),f=[];c.eachNode((function(t){f.push(t)}));var p=this._oldChildren||[];if(v(f,p),_(u,c),a&&a.highlight&&a.highlight.piece){var g=t.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(g)}else if(a&&a.unhighlight){var m=this.virtualPiece;!m&&u.children.length&&(m=u.children[0].piece),m&&m.onNormal()}function v(t,e){function i(t){return t.getId()}function a(i,n){var a=null==i?null:t[i],r=null==n?null:e[n];y(a,r)}0===t.length&&0===e.length||new o(e,t,i,i).add(a).update(a).remove(n.curry(a,null)).execute()}function y(i,n){if(d||!i||i.getValue()||(i=null),i!==u&&n!==u)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),l.setItemGraphicEl(i.dataIndex,n.piece)):x(n);else if(i){var a=new r(i,t,e);h.add(a),l.setItemGraphicEl(i.dataIndex,a)}}function x(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}function _(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",t,e):(s.virtualPiece=new r(i,t,e),h.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var a=function(t){s._rootToNode(n.parentNode)};n.piece._onclickEvent=a,s.virtualPiece.on("click",a)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)t._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";window.open(o,s)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:s,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var a=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(a*a+r*r);return o<=n.r&&o>=n.r0}}}),u=l;t.exports=u},"342d":function(t,e,i){var n=i("cbe5"),a=i("20c8"),r=i("ee84"),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},h=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(c(t)*c(e))},d=function(t,e){return(t[0]*e[1]1&&(c*=o(_),f*=o(_));var b=(a===r?-1:1)*o((c*c*(f*f)-c*c*(x*x)-f*f*(y*y))/(c*c*(x*x)+f*f*(y*y)))||0,w=b*c*x/f,S=b*-f*y/c,M=(t+i)/2+l(v)*w-s(v)*S,I=(e+n)/2+s(v)*w+l(v)*S,A=d([1,0],[(y-w)/c,(x-S)/f]),T=[(y-w)/c,(x-S)/f],D=[(-1*y-w)/c,(-1*x-S)/f],C=d(T,D);h(T,D)<=-1&&(C=u),h(T,D)>=1&&(C=0),0===r&&C>0&&(C-=2*u),1===r&&C<0&&(C+=2*u),m.addData(g,M,I,c,f,A,C,v,r)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t){if(!t)return new a;for(var e,i=0,n=0,r=i,o=n,s=new a,l=a.CMD,u=t.match(p),c=0;c=0||"+"===i?"left":"right"},c={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===n?a.height:a.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,x=t.get("label.rotate")||0;x=x*y/180;var b=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),S=p&&f.get("showPrevBtn",!0),M=p&&f.get("showNextBtn",!0),I=0,A=d;return"left"===b||"bottom"===b?(w&&(r=[0,0],I+=v),S&&(o=[I,0],I+=v),M&&(s=[A-g,0],A-=v)):(w&&(r=[A-g,0],A-=v),S&&(o=[0,0],I+=v),M&&(s=[A-g,0],A-=v)),l=[I,A],t.get("inverse")&&l.reverse(),{viewRect:a,mainLength:d,orient:n,rotation:h[n],labelRotation:x,labelPosOpt:i,labelAlign:t.get("label.align")||u[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||c[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:g,controlGap:m}},_position:function(t,e){var i=this._mainGroup,n=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var o=r.create(),s=a.x,l=a.y+a.height;r.translate(o,o,[-s,-l]),r.rotate(o,o,-y/2),r.translate(o,o,[s,l]),a=a.clone(),a.applyTransform(o)}var u=v(a),c=v(i.getBoundingRect()),h=v(n.getBoundingRect()),d=i.position,f=n.position;f[0]=d[0]=u[0][0];var p=t.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;x(d,c,u,1,g),x(f,h,u,1,1-g)}else{g=p>=0?0:1;x(d,c,u,1,g),f[1]=d[1]+p}function m(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}i.attr("position",d),n.attr("position",f),i.rotation=n.rotation=t.rotation,m(i),m(n)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=d.createScaleByModel(e,n);a.getTicks=function(){return i.mapArray(["value"],(function(t){return t}))};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new u("value",a,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new o.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,a){var r=i.getExtent();a.get("lineStyle.show")&&e.add(new o.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:n.extend({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();v(r,(function(t){var r=i.dataToCoord(t),s=a.getItemModel(t),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[r,0],onclick:m(this._changeTimeline,this,t)},h=w(s,l,e,c);o.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){var a=i.getLabelModel();if(a.get("show")){var r=n.getData(),s=i.getViewLabels();v(s,(function(n){var a=n.tickValue,s=r.getItemModel(a),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=i.dataToCoord(n.tickValue),h=new o.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:m(this._changeTimeline,this,a),silent:!1});o.setTextStyle(h.style,l,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),o.setHoverStyle(h,o.setTextStyle({},u))}),this)}},_renderControl:function(t,e,i,n){var a=t.controlSize,r=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-a/2,a,a],c=n.getPlayState(),h=n.get("inverse",!0);function d(t,i,c,h){if(t){var d={position:t,origin:[a/2,0],rotation:h?-r:0,rectHover:!0,style:s,onclick:c},f=b(n,i,u,d);e.add(f),o.setHoverStyle(f,l)}}d(t.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,"controlStyle."+(c?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!c),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=m(s._handlePointerDrag,s),t.ondragend=m(s._handlePointerDragend,s),S(t,r,i,n,!0)},onUpdate:function(t){S(t,r,i,n)}};this._currentPointer=w(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=f.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),i0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?r(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function u(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;var e=1,i=0;while(Math.round(t*e)/e!==t)e*=10,i++;return i}function h(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a}function d(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20}function f(t,e,i){if(!t[e])return 0;var a=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===a)return 0;var r=Math.pow(10,i),o=n.map(t,(function(t){return(isNaN(t)?0:t)/a*r*100})),s=100*r,l=n.map(o,(function(t){return Math.floor(t)})),u=n.reduce(l,(function(t,e){return t+e}),0),c=n.map(o,(function(t,e){return t-l[e]}));while(uh&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/r}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function m(t){return t>-a&&t=-20?+t.toFixed(n<0?-n:0):t}function w(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),a=+t[n-1],r=i-n;return r?a+r*(t[n]-a):a}function S(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n=0}e.linearMap=o,e.parsePercent=s,e.round=l,e.asc=u,e.getPrecision=c,e.getPrecisionSafe=h,e.getPixelPrecision=d,e.getPercentWithPrecision=f,e.MAX_SAFE_INTEGER=p,e.remRadian=g,e.isRadianAroundZero=m,e.parseDate=y,e.quantity=x,e.nice=b,e.quantile=w,e.reformIntervals=S,e.isNumeric=M},"38a2":function(t,e,i){var n=i("2b17"),a=n.retrieveRawValue,r=i("eda2"),o=r.getTooltipMarker,s=r.formatTpl,l=i("e0d3"),u=l.getTooltipRenderMode,c=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),r=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"color"),c=this.ecModel.getComponent("tooltip"),h=c&&c.get("renderMode"),d=u(h),f=this.mainType,p="series"===f;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:r,dataIndex:a,data:s,dataType:e,value:n,color:l,marker:o({color:l,renderMode:d}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,r){e=e||"normal";var o=this.getData(i),l=o.getItemModel(t),u=this.getDataParams(t,i);null!=n&&u.value instanceof Array&&(u.value=u.value[n]);var h=l.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);if("function"===typeof h)return u.status=e,h(u);if("string"===typeof h){var d=s(h,u);return d.replace(c,(function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),a(o,t,i)}))}},getRawValue:function(t,e){return a(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},3901:function(t,e,i){var n=i("282b"),a=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(t){var e=a(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}};t.exports=r},"392f":function(t,e,i){var n=i("6d8b"),a=n.inherits,r=i("19eb"),o=i("9850");function s(t){r.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},s.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i0?100:20}},getFirstTargetAxisModel:function(){var t;return h((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;h((function(n){c(this.get(n.axisIndex),(function(a){t.call(e,n,a,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;c([["start","startValue"],["end","endValue"]],(function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])}),this),!e&&p(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(t){var e={};return c(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function p(t,e){var i=t._rangePropMode,n=t.get("rangeMode");c([["start","startValue"],["end","endValue"]],(function(t,a){var r=null!=e[t[0]],o=null!=e[t[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var g=d;t.exports=g},"3cd6":function(t,e,i){var n=i("6d8b"),a=i("48a9"),r=i("607d"),o=i("72b6"),s=i("2306"),l=i("3842"),u=i("ef6a"),c=i("cbb0"),h=i("e0d3"),d=l.linearMap,f=n.each,p=Math.min,g=Math.max,m=12,v=6,y=o.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,r=a.get("textGap"),o=a.itemSize,l=this._shapes.barGroup,u=this._applyTransform([o[0]/2,0===i?-r:o[1]+r],l),c=this._applyTransform(0===i?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:n,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,a=e.itemSize,r=this._orient,o=this._useHandle,s=c.getItemAlign(e,this.api,a),l=i.barGroup=this._createBarGroup(s);l.add(i.outOfRange=x()),l.add(i.inRange=x(null,o?M(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var u=e.textStyleModel.getTextRect("国"),h=g(u.width,u.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,a,h,r,s),this._createHandle(l,1,a,h,r,s)),this._createIndicator(l,a,h,r),t.add(l)},_createHandle:function(t,e,i,a,o){var l=n.bind(this._dragHandle,this,e,!1),u=n.bind(this._dragHandle,this,e,!0),c=x(_(e,a),M(this._orient),l,u);c.position[0]=i[0],t.add(c);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(t){r.stop(t.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var f=["horizontal"===o?a/2:1.5*a,"horizontal"===o?0===e?-1.5*a:1.5*a:0===e?-a/2:a/2],p=this._shapes;p.handleThumbs[e]=c,p.handleLabelPoints[e]=f,p.handleLabels[e]=d},_createIndicator:function(t,e,i,n){var a=x([[0,0]],"move");a.position[0]=e[0],a.attr({invisible:!0,silent:!0}),t.add(a);var r=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:r.getFont(),textFill:r.getTextColor()}});this.group.add(o);var l=["horizontal"===n?i/2:v+3,0],u=this._shapes;u.indicator=a,u.indicatorLabel=o,u.indicatorLabelPoint=l},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var a=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(t,a[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[d(e[0],i,n,!0),d(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,a=[0,i.itemSize[1]];u(e,n,a,t,0);var r=i.getExtent();this._dataInterval=[d(n[0],a,r,!0),d(n[1],a,r,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,a=[0,e.itemSize[1]],r=t?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,r,"inRange"),s=this._createBarVisual(i,i,a,"outOfRange");n.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,o)},_createBarVisual:function(t,e,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),s=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],l=this._createBarPoints(i,s);return{barColor:new a(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var i=100,n=[],a=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;rt[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;f([0,1],(function(o){var l=a[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var u=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));r[o].setStyle({x:u[0],y:u[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,l=[0,o[1]],u=d(t,r,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",b(!!i,n,u,o[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",f);h.setStyle("fill",p);var g=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),m=c.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",c.barGroup),y=this._orient;m.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=p(g(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=p(g(a[0],t),a[1]);var o=w(i,r,a),s=[t-o,t+o],l=d(t,a,r,!0),u=[d(s[0],a,r,!0),d(s[1],a,r,!0)];s[0]a[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var f=this._hoverLinkDataIndices,m=[];(e||S(i))&&(m=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var v=h.compressBatches(f,m);this._dispatchHighDown("downplay",c.convertDataIndex(v[0])),this._dispatchHighDown("highlight",c.convertDataIndex(v[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.get(i.getDataDimension(a),e.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,a){var r=s.getTransform(e,a?null:this.group);return s[n.isArray(t)?"applyTransform":"transformDirection"](t,r,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function x(t,e,i,n){return new s.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){r.stop(t.event)},ondragend:n})}function _(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function b(t,e,i,n){return t?[[0,-p(e,g(i,0))],[v,0],[0,p(e,g(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function w(t,e,i){var n=m/2,a=t.get("hoverLinkDataSize");return a&&(n=d(a,e,i,!0)/2),n}function S(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function M(t){return"vertical"===t?"ns-resize":"ew-resize"}var I=y;t.exports=I},"3eba":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("697e7")),r=i("6d8b"),o=i("41ef"),s=i("22d1"),l=i("04f6"),u=i("1fab"),c=i("7e63"),h=i("843e"),d=i("2039"),f=i("ca98"),p=i("fb05"),g=i("d15d"),m=i("6cb7"),v=i("4f85"),y=i("b12f"),x=i("e887"),_=i("2306"),b=i("e0d3"),w=i("88b3"),S=w.throttle,M=i("fd63"),I=i("b809"),A=i("998c"),T=i("69ff"),D=i("c533"),C=i("f219");i("0352");var L=i("ec34"),P=r.assert,k=r.each,O=r.isFunction,R=r.isObject,E=m.parseClassType,N="4.2.1",z={zrender:"4.0.6"},V=1,B=1e3,F=5e3,G=1e3,H=2e3,W=3e3,Z=4e3,U=5e3,j={PROCESSOR:{FILTER:B,STATISTIC:F},VISUAL:{LAYOUT:G,GLOBAL:H,CHART:W,COMPONENT:Z,BRUSH:U}},Y="__flagInMainProcess",X="__optionUpdated",q=/^[a-zA-Z0-9_]+$/;function K(t){return function(e,i,n){e=e&&e.toLowerCase(),u.prototype[t].call(this,e,i,n)}}function $(){u.call(this)}function J(t,e,i){i=i||{},"string"===typeof e&&(e=Tt[e]),this.id,this.group,this._dom=t;var n="canvas",o=this._zr=a.init(t,{renderer:i.renderer||n,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=S(r.bind(o.flush,o),17);e=r.clone(e);e&&p(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var s=this._api=xt(this);function c(t,e){return t.__prio-e.__prio}l(At,c),l(St,c),this._scheduler=new T(this,s,St,At),u.call(this,this._ecEventProcessor=new _t),this._messageCenter=new $,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),lt(o,this),r.setAsPrimitive(this)}$.prototype.on=K("on"),$.prototype.off=K("off"),$.prototype.one=K("one"),r.mixin($,u);var Q=J.prototype;function tt(t,e,i){var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=b.parseFinder(a,e);for(var o=0;o0&&t.unfinished);t.unfinished||this._zr.flush()}}},Q.getDom=function(){return this._dom},Q.getZr=function(){return this._zr},Q.setOption=function(t,e,i){var n;if(R(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[Y]=!0,!this._model||e){var a=new f(this._api),r=this._theme,o=this._model=new c(null,null,r,a);o.scheduler=this._scheduler,o.init(null,null,r,a)}this._model.setOption(t,Mt),i?(this[X]={silent:n},this[Y]=!1):(it(this),et.update.call(this),this._zr.flush(),this[X]=!1,this[Y]=!1,ot.call(this,n),st.call(this,n))},Q.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Q.getModel=function(){return this._model},Q.getOption=function(){return this._model&&this._model.getOption()},Q.getWidth=function(){return this._zr.getWidth()},Q.getHeight=function(){return this._zr.getHeight()},Q.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Q.getRenderedCanvas=function(t){if(s.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},Q.getSvgDataUrl=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.pathToDataUrl()}},Q.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],a=this;k(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,(function(t){t.group.ignore=!1})),r},Q.getConnectedDataURL=function(t){if(s.canvasSupported){var e=this.group,i=Math.min,n=Math.max,o=1/0;if(Lt[e]){var l=o,u=o,c=-o,h=-o,d=[],f=t&&t.pixelRatio||1;r.each(Ct,(function(a,o){if(a.group===e){var s=a.getRenderedCanvas(r.clone(t)),f=a.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=n(f.right,c),h=n(f.bottom,h),d.push({dom:s,left:f.left,top:f.top})}})),l*=f,u*=f,c*=f,h*=f;var p=c-l,g=h-u,m=r.createCanvas();m.width=p,m.height=g;var v=a.init(m);return k(d,(function(t){var e=new _.Image({style:{x:t.left*f-l,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Q.convertToPixel=r.curry(tt,"convertToPixel"),Q.convertFromPixel=r.curry(tt,"convertFromPixel"),Q.containPixel=function(t,e){var i,n=this._model;return t=b.parseFinder(n,t),r.each(t,(function(t,n){n.indexOf("Models")>=0&&r.each(t,(function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(i|=r.containPoint(e,t))}}),this)}),this),!!i},Q.getVisual=function(t,e){var i=this._model;t=b.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,a=n.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?a.indexOfRawIndex(t.dataIndex):null;return null!=r?a.getItemVisual(r,e):a.getVisual(e)},Q.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Q.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var et={prepareAndUpdate:function(t){it(this),et.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,r=this._scheduler;if(e){r.restoreData(e,t),r.performSeriesTasks(e),a.create(e,i),r.performDataProcessorTasks(e,t),at(this,e),a.update(e,i),ct(e),r.performVisualTasks(e,t),ht(this,e,i,t);var l=e.get("backgroundColor")||"transparent";if(s.canvasSupported)n.setBackgroundColor(l);else{var u=o.parse(l);l=o.stringify(u,"rgb"),0===u[3]&&(l="transparent")}pt(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent((function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();e.eachSeries((function(a){var r=i._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,e,n,t);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)})),ct(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),ft(i,e,n,t,o),pt(e,this._api)}},updateView:function(t){var e=this._model;e&&(x.markUpdateMethod(t,"updateView"),ct(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ht(this,this._model,this._api,t),pt(e,this._api))},updateVisual:function(t){et.update.call(this,t)},updateLayout:function(t){et.update.call(this,t)}};function it(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),ut(t,"component",e,i),ut(t,"chart",e,i),i.plan()}function nt(t,e,i,n,a){var o=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var u=i.excludeSeriesId;null!=u&&(u=r.createHashMap(b.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||c(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else k(t._componentsViews.concat(t._chartsViews),c);function c(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}}function at(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function rt(t,e){var i=t.type,n=t.escapeConnect,a=bt[i],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&E(s[0]),this[Y]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=r.map(t.batch,(function(e){return e=r.defaults(r.extend({},e),t),e.batch=null,e})));var h,d=[],f="highlight"===i||"downplay"===i;k(u,(function(t){h=a.action(t,this._model,this._api),h=h||r.extend({},t),h.type=o.event||h.type,d.push(h),f?nt(this,l,t,"series"):s&&nt(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this[X]?(it(this),et.update.call(this,t),this[X]=!1):et[l].call(this,t)),h=c?{type:o.event||i,escapeConnect:n,batch:d}:d[0],this[Y]=!1,!e&&this._messageCenter.trigger(h.type,h)}function ot(t){var e=this._pendingActions;while(e.length){var i=e.shift();rt.call(this,i,t)}}function st(t){!t&&this.trigger("updated")}function lt(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[X]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function ut(t,e,i,n){for(var a="component"===e,r=a?t._componentsViews:t._chartsViews,o=a?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!s.node&&i.traverse((function(t){t.isGroup||(t.useHoverLayer=!0)}))}function vt(t,e){var i=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",i)}))}))}function yt(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}function xt(t){var e=t._coordSysMgr;return r.extend(new h(t),{getCoordinateSystems:r.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function _t(){this.eventInfo}Q._initEvents=function(){k(gt,(function(t){var e=function(e){var i,n=this.getModel(),a=e.target,o="globalout"===t;if(o)i={};else if(a&&null!=a.dataIndex){var s=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=s&&s.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r.extend({},a.eventData));if(i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&n.getComponent(l,u),h=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:c,view:h},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),k(wt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},Q.isDisposed=function(){return this._disposed},Q.clear=function(){this.setOption({series:[]},!0)},Q.dispose=function(){if(!this._disposed){this._disposed=!0,b.setAttribute(this.getDom(),Ot,"");var t=this._api,e=this._model;k(this._componentsViews,(function(i){i.dispose(e,t)})),k(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete Ct[this.id]}},r.mixin(J,u),_t.prototype={constructor:_t,normalizeQuery:function(t){var e={},i={},n={};if(r.isString(t)){var a=E(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,a){for(var r=!1,l=0;l0&&c===a.length-u.length){var h=a.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,r=!0)}}s.hasOwnProperty(a)&&(i[a]=t,r=!0),r||(n[a]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,r));function c(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},afterTrigger:function(){this.eventInfo=null}};var bt={},wt={},St=[],Mt=[],It=[],At=[],Tt={},Dt={},Ct={},Lt={},Pt=new Date-0,kt=new Date-0,Ot="_echarts_instance_";function Rt(t){var e=0,i=1,n=2,a="__connectUpdateStatus";function r(t,e){for(var i=0;i-_}function S(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==f}function M(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==f}function I(t,e){e&&A(t,"transform","matrix("+d.call(e,",")+")")}function A(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function T(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function D(t,e,i,n){if(S(e,i)){var a=i?e.textFill:e.fill;a="transparent"===a?f:a,"none"!==t.getAttribute("clip-path")&&a===f&&(a="rgba(0, 0, 0, 0.002)"),A(t,"fill",a),A(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else A(t,"fill",f);if(M(e,i)){var r=i?e.textStroke:e.stroke;r="transparent"===r?f:r,A(t,"stroke",r);var o=i?e.textStrokeWidth:e.lineWidth,s=!i&&e.strokeNoScale?n.getLineScale():1;A(t,"stroke-width",o/s),A(t,"paint-order",i?"stroke":"fill"),A(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(A(t,"stroke-dasharray",e.lineDash.join(",")),A(t,"stroke-dashoffset",p(e.lineDashOffset||0))):A(t,"stroke-dasharray",""),e.lineCap&&A(t,"stroke-linecap",e.lineCap),e.lineJoin&&A(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&A(t,"stroke-miterlimit",e.miterLimit)}else A(t,"stroke",f)}function C(t){for(var e=[],i=t.data,n=t.len(),a=0;a=y||!w(I)&&(_>-v&&_<0||_>v)===!!M;var D=b(l+c*m(f)),C=b(u+d*g(f));A&&(_=M?y-1e-4:1e-4-y,T=!0,9===a&&e.push("M",D,C));var L=b(l+c*m(f+_)),P=b(u+d*g(f+_));e.push("A",b(c),b(d),p(S*x),+T,+M,L,P);break;case h.Z:o="Z";break;case h.R:L=b(i[a++]),P=b(i[a++]);var k=b(i[a++]),O=b(i[a++]);e.push("M",L,P,"L",L+k,P,"L",L+k,P+O,"L",L,P+O,"L",L,P);break}o&&e.push(o);for(var R=0;R255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?r(parseFloat(t)/100*255):r(parseInt(t,10))}function u(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function h(t,e,i){return t+(e-t)*i}function d(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new n(20),g=null;function m(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var i=p.get(t);if(i)return f(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in a)return f(e,a[n]),m(t,e),e;if("#"!==n.charAt(0)){var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===n.length){var s=n.substr(0,r),c=n.substr(r+1,o-(r+1)).split(","),h=1;switch(s){case"rgba":if(4!==c.length)return void d(e,0,0,0,1);h=u(c.pop());case"rgb":return 3!==c.length?void d(e,0,0,0,1):(d(e,l(c[0]),l(c[1]),l(c[2]),h),m(t,e),e);case"hsla":return 4!==c.length?void d(e,0,0,0,1):(c[3]=u(c[3]),y(c,e),m(t,e),e);case"hsl":return 3!==c.length?void d(e,0,0,0,1):(y(c,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(d(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(t,e),e):void d(e,0,0,0,1)}if(7===n.length){g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(d(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=u(t[1]),a=u(t[2]),o=a<=.5?a*(n+1):a+n-a*n,s=2*a-o;return e=e||[],d(e,r(255*c(s,o,i+1/3)),r(255*c(s,o,i)),r(255*c(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function x(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-h:a===s?e=1/3+c-d:r===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function _(t,e){var i=v(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return D(i,4===i.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),l=e[a],u=e[o],c=n-a;return i[0]=r(h(l[0],u[0],c)),i[1]=r(h(l[1],u[1],c)),i[2]=r(h(l[2],u[2],c)),i[3]=s(h(l[3],u[3],c)),i}}var S=w;function M(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),l=v(e[a]),u=v(e[o]),c=n-a,d=D([r(h(l[0],u[0],c)),r(h(l[1],u[1],c)),r(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return i?{color:d,leftIndex:a,rightIndex:o,value:n}:d}}var I=M;function A(t,e,i,n){if(t=v(t),t)return t=x(t),null!=e&&(t[0]=o(e)),null!=i&&(t[1]=u(i)),null!=n&&(t[2]=u(n)),D(y(t),"rgba")}function T(t,e){if(t=v(t),t&&null!=e)return t[3]=s(e),D(t,"rgba")}function D(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}e.parse=v,e.lift=_,e.toHex=b,e.fastLerp=w,e.fastMapToColor=S,e.lerp=M,e.mapToColor=I,e.modifyHSL=A,e.modifyAlpha=T,e.stringify=D},"42e5":function(t,e){var i=function(t){this.colorStops=t||[]};i.prototype={constructor:i,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=i;t.exports=n},"42f6":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("22d1"),o=i("07d7"),s=i("82f9"),l=i("eda2"),u=i("3842"),c=i("2306"),h=i("133d"),d=i("f934"),f=i("4319"),p=i("17d6"),g=i("697e"),m=i("ff2e"),v=i("e0d3"),y=v.getTooltipRenderMode,x=a.bind,_=a.each,b=u.parsePercent,w=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=n.extendComponentView({type:"tooltip",init:function(t,e){if(!r.node){var i,n=t.getComponent("tooltip"),a=n.get("renderMode");this._renderMode=y(a),"html"===this._renderMode?(i=new o(e.getDom(),e),this._newLine="
"):(i=new s(e),this._newLine="\n"),this._tooltipContent=i}},render:function(t,e,i){if(!r.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");p.register("itemTooltip",this._api,x((function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!r.node){var a=I(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=w;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=h(n,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:n.position,target:l.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(I(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s){var l=s.getData();t=M([l.getItemModel(r),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;a&&a.length?this._showAxisTooltip(a,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=a.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=[],s=[],u=M([e.tooltipOption,n]),c=this._renderMode,h=this._newLine,d={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,r=[];if(e&&null!=n){var u=m.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);a.each(t.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,f=l&&l.getDataParams(h);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,n),f.axisValueLabel=u,f){s.push(f);var p,m=l.formatTooltip(h,!0,null,c);if(a.isObject(m)){p=m.html;var v=m.markers;a.merge(d,v)}else p=m;r.push(p)}}));var f=u;"html"!==c?o.push(r.join(h)):o.push((f?l.encodeHTML(f)+h:"")+r.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,f,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),r[0],r[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,r=e.seriesIndex,o=n.getSeriesByIndex(r),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,c=s.getData(),h=M([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,u),m=s.formatTooltip(l,!1,u,this._renderMode);a.isObject(m)?(f=m.html,p=m.markers):(f=m,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,f,g,v,t.offsetX,t.offsetY,t.position,t.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"===typeof n){var a=n;n={content:a,formatter:a}}var r=new f(n,this._tooltipModel,this._ecModel),o=r.get("content"),s=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var d=e;if(h&&"string"===typeof h)d=l.formatTpl(h,i,!0);else if("function"===typeof h){var f=x((function(e,n){e===this._ticket&&(c.setContent(n,u,t),this._updatePosition(t,o,a,r,c,i,s))}),this);this._ticket=n,d=h(i,n,f)}c.setContent(d,u,t),c.show(t),this._updatePosition(t,o,a,r,c,i,s)}},_updatePosition:function(t,e,i,n,r,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof e&&(e=e([i,n],o,r.el,p,{viewSize:[l,u],contentSize:c.slice()})),a.isArray(e))i=b(e[0],l),n=b(e[1],u);else if(a.isObject(e)){e.width=c[0],e.height=c[1];var g=d.getLayoutRect(e,{width:l,height:u});i=g.x,n=g.y,h=null,f=null}else if("string"===typeof e&&s){var m=D(e,p,c);i=m[0],n=m[1]}else{m=A(i,n,r,l,u,h?null:20,f?null:20);i=m[0],n=m[1]}if(h&&(i-=C(h)?c[0]/2:"right"===h?c[0]:0),f&&(n-=C(f)?c[1]/2:"bottom"===f?c[1]:0),t.get("confine")){m=T(i,n,r,l,u);i=m[0],n=m[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&_(e,(function(e,n){var a=e.dataByAxis||{},r=t[n]||{},o=r.dataByAxis||[];i&=a.length===o.length,i&&_(a,(function(t,e){var n=o[e]||{},a=t.seriesDataIndices||[],r=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===r.length,i&&_(a,(function(t,e){var n=r[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){r.node||(this._tooltipContent.hide(),p.unregister("itemTooltip",e))}});function M(t){var e=t.pop();while(t.length){var i=t.pop();i&&(f.isInstance(i)&&(i=i.get("tooltip",!0)),"string"===typeof i&&(i={formatter:i}),e=new f(i,e,e.ecModel))}return e}function I(t,e){return t.dispatchAction||a.bind(e.dispatchAction,e)}function A(t,e,i,n,a,r,o){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=r&&(t+l+r>n?t-=l+r:t+=r),null!=o&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function T(t,e,i,n,a){var r=i.getOuterSize(),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function D(t,e,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-a/2;break;case"top":o=e.x+l/2-n/2,s=e.y-a-r;break;case"bottom":o=e.x+l/2-n/2,s=e.y+u+r;break;case"left":o=e.x-n-r,s=e.y+u/2-a/2;break;case"right":o=e.x+l+r,s=e.y+u/2-a/2}return[o,s]}function C(t){return"center"===t||"middle"===t}t.exports=S},4319:function(t,e,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=i("625e"),l=s.enableClassExtend,u=s.enableClassCheck,c=i("3901"),h=i("9bdb"),d=i("fe21"),f=i("551f"),p=n.mixin,g=o();function m(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function v(t,e,i){for(var n=0;n=0;n--){o=e[n].interval;if(o[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n=e[0]&&t<=e[1]}}function c(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var h=a.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):c(a)&&this._renderOnGeo(a,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){var a=e.coordinateSystem;a&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,a){var o,l,u=t.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");o=c.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,f=t.getData(),p="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=t.getModel(p).getItemStyle(["color"]),x=t.getModel(g).getItemStyle(),_=t.getModel(m),b=t.getModel(v),w=u.type,S="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=i;M=0?n+=g:n-=g:_>=0?n-=g:n+=g}return n}function d(t,e){var i=[],r=n.quadraticSubdivide,o=[[],[],[]],s=[[],[]],l=[];function u(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge((function(t,n){var c=t.getLayout(),d=t.getVisual("fromSymbol"),f=t.getVisual("toSymbol");c.__original||(c.__original=[a.clone(c[0]),a.clone(c[1])],c[2]&&c.__original.push(a.clone(c[2])));var p=c.__original;if(null!=c[2]){if(a.copy(o[0],p[0]),a.copy(o[1],p[2]),a.copy(o[2],p[1]),d&&"none"!==d){var g=u(t.node1),m=h(o,p[0],g*e);r(o[0][0],o[1][0],o[2][0],m,i),o[0][0]=i[3],o[1][0]=i[4],r(o[0][1],o[1][1],o[2][1],m,i),o[0][1]=i[3],o[1][1]=i[4]}if(f&&"none"!==f){g=u(t.node2),m=h(o,p[1],g*e);r(o[0][0],o[1][0],o[2][0],m,i),o[1][0]=i[1],o[2][0]=i[2],r(o[0][1],o[1][1],o[2][1],m,i),o[1][1]=i[1],o[2][1]=i[2]}a.copy(c[0],o[0]),a.copy(c[1],o[2]),a.copy(c[2],o[1])}else{if(a.copy(s[0],p[0]),a.copy(s[1],p[1]),a.sub(l,s[1],s[0]),a.normalize(l,l),d&&"none"!==d){g=u(t.node1);a.scaleAndAdd(s[0],s[0],l,g*e)}if(f&&"none"!==f){g=u(t.node2);a.scaleAndAdd(s[1],s[1],l,-g*e)}a.copy(c[0],s[0]),a.copy(c[1],s[1])}}))}t.exports=d},"48a9":function(t,e,i){var n=i("6d8b"),a=i("42e5"),r=function(t,e,i,n,r,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,a.call(this,r)};r.prototype={constructor:r},n.inherits(r,a);var o=r;t.exports=o},"48ac":function(t,e,i){var n=i("3eba"),a=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),r=a;t.exports=r},"48c7":function(t,e,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o);var u={offset:0};r("x",s,l,u),r("y",s,l,u);var c=s;t.exports=c},4942:function(t,e,i){var n=i("2cf4"),a=n.debugMode,r=function(){};1===a?r=function(){for(var t in arguments)throw new Error(arguments[t])}:a>1&&(r=function(){for(var t in arguments)console.log(arguments[t])});var o=r;t.exports=o},"49e8":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("d81e"),o=r.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var r=o(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&a.each(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))},"4a01":function(t,e,i){var n=i("6d8b"),a=i("1fab"),r=i("607d"),o=i("a4fe");function s(t){this.pointerChecker,this._zr=t,this._opt={};var e=n.bind,i=e(l,this),r=e(u,this),o=e(c,this),s=e(h,this),f=e(d,this);a.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,a){this.disable(),this._opt=n.defaults(n.clone(a)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",f))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(t){if(!(r.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function u(t){if(this._dragging&&g("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,s=e-n,l=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&r.stop(t.event),p(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:a,newX:e,newY:i})}}function c(t){r.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function h(t){var e=g("zoomOnMouseWheel",t,this._opt),i=g("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),r=t.offsetX,o=t.offsetY;if(0!==n&&(e||i)){if(e){var s=a>3?1.4:a>1?1.2:1.1,l=n>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:r,originY:o})}if(i){var u=Math.abs(n),c=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:r,originY:o})}}}function d(t){if(!o.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function f(t,e,i,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(r.stop(n.event),p(t,e,i,n,a))}function p(t,e,i,a,r){r.isAvailableBehavior=n.bind(g,null,i,a),t.trigger(e,r)}function g(t,e,i){var a=i[t];return!t||a&&(!n.isString(a)||e.event[a+"Key"])}n.mixin(s,a);var m=s;t.exports=m},"4a3f":function(t,e,i){var n=i("401b"),a=n.create,r=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,c=s(3),h=1/3,d=a(),f=a(),p=a();function g(t){return t>-l&&tl||t<-l}function v(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function y(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)}function x(t,e,i,n,a,r){var l=n+3*(e-i)-t,u=3*(i-2*e+t),d=3*(e-t),f=t-a,p=u*u-3*l*d,m=u*d-9*l*f,v=d*d-3*u*f,y=0;if(g(p)&&g(m))if(g(u))r[0]=0;else{var x=-d/u;x>=0&&x<=1&&(r[y++]=x)}else{var _=m*m-4*p*v;if(g(_)){var b=m/p,w=(x=-u/l+b,-b/2);x>=0&&x<=1&&(r[y++]=x),w>=0&&w<=1&&(r[y++]=w)}else if(_>0){var S=s(_),M=p*u+1.5*l*(-m+S),I=p*u+1.5*l*(-m-S);M=M<0?-o(-M,h):o(M,h),I=I<0?-o(-I,h):o(I,h);x=(-u-(M+I))/(3*l);x>=0&&x<=1&&(r[y++]=x)}else{var A=(2*p*u-3*l*m)/(2*s(p*p*p)),T=Math.acos(A)/3,D=s(p),C=Math.cos(T),L=(x=(-u-2*D*C)/(3*l),w=(-u+D*(C+c*Math.sin(T)))/(3*l),(-u+D*(C-c*Math.sin(T)))/(3*l));x>=0&&x<=1&&(r[y++]=x),w>=0&&w<=1&&(r[y++]=w),L>=0&&L<=1&&(r[y++]=L)}}return y}function _(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,l=3*e-3*t,u=0;if(g(o)){if(m(r)){var c=-l/r;c>=0&&c<=1&&(a[u++]=c)}}else{var h=r*r-4*o*l;if(g(h))a[0]=-r/(2*o);else if(h>0){var d=s(h),f=(c=(-r+d)/(2*o),(-r-d)/(2*o));c>=0&&c<=1&&(a[u++]=c),f>=0&&f<=1&&(a[u++]=f)}}return u}function b(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-o)*a+o,c=(l-s)*a+s,h=(c-u)*a+u;r[0]=t,r[1]=o,r[2]=u,r[3]=h,r[4]=h,r[5]=c,r[6]=l,r[7]=n}function w(t,e,i,n,a,o,l,c,h,g,m){var y,x,_,b,w,S=.005,M=1/0;d[0]=h,d[1]=g;for(var I=0;I<1;I+=.05)f[0]=v(t,i,a,l,I),f[1]=v(e,n,o,c,I),b=r(d,f),b=0&&b=0&&c<=1&&(a[u++]=c)}}else{var h=o*o-4*r*l;if(g(h)){c=-o/(2*r);c>=0&&c<=1&&(a[u++]=c)}else if(h>0){var d=s(h),f=(c=(-o+d)/(2*r),(-o-d)/(2*r));c>=0&&c<=1&&(a[u++]=c),f>=0&&f<=1&&(a[u++]=f)}}return u}function A(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function T(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i}function D(t,e,i,n,a,o,l,c,h){var g,m=.005,v=1/0;d[0]=l,d[1]=c;for(var y=0;y<1;y+=.05){f[0]=S(t,i,a,y),f[1]=S(e,n,o,y);var x=r(d,f);x=0&&x=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},g.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"===typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},g.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},g.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},g.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return r.each(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},g.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;r.each(t,(function(t){t[e._markLabel]=f}))},g.prototype.markUsed=function(t){t&&(t[this._markLabel]=p)},g.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;r.each(e,(function(e){e[i._markLabel]!==p&&t.removeChild(e)}))}},g.prototype.getSvgProxy=function(t){return t instanceof o?c:t instanceof s?h:t instanceof l?d:c},g.prototype.getTextSvgElement=function(t){return t.__textSvgEl},g.prototype.getSvgElement=function(t){return t.__svgEl};var m=g;t.exports=m},"4b08":function(t,e,i){var n=i("7dcf"),a=n.extend({type:"dataZoom.select"});t.exports=a},"4bf6":function(t,e,i){var n=i("66fc"),a=i("697e"),r=i("f934"),o=r.getLayoutRect,s=i("6d8b"),l=s.each;function u(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}u.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:u,_init:function(t,e,i){var r=this.dimension,o=new n(r,a.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===o.type;o.onBand=s&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();l(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),a.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=o({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var c=u;t.exports=c},"4c86":function(t,e,i){var n=i("6d8b"),a=n.each,r=i("bda7"),o=i("e0d3"),s=o.makeInner,l=i("320a"),u=i("1792"),c=i("6bd4"),h=i("a7f2"),d=s(),f={load:function(t,e){var i=d(e).parsed;if(i)return i;var n,o=e.specialAreas||{},s=e.geoJSON;try{n=s?r(s):[]}catch(f){throw new Error("Invalid geoJson format\n"+f.message)}return a(n,(function(e){var i=e.name;u(t,e),c(t,e),h(t,e);var n=o[i];n&&e.transformTo(n.left,n.top,n.width,n.height)})),l(t,n),d(e).parsed={regions:n,boundingRect:p(n)}}};function p(t){for(var e,i=0;i0?o:s)}function c(t,e){return e.get(t>0?a:r)}}};t.exports=l},"4d62":function(t,e,i){var n=i("2306"),a=i("6d8b"),r=i("e887");function o(t,e){n.Group.call(this);var i=new n.Polygon,a=new n.Polyline,r=new n.Text;function o(){a.ignore=a.hoverIgnore,r.ignore=r.hoverIgnore}function s(){a.ignore=a.normalIgnore,r.ignore=r.normalIgnore}this.add(i),this.add(a),this.add(r),this.updateData(t,e,!0),this.on("emphasis",o).on("normal",s).on("mouseover",o).on("mouseout",s)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(t,e,i){var r=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,r.useStyle({}),i?(r.setShape({points:u.points}),r.setStyle({opacity:0}),n.initProps(r,{style:{opacity:c}},o,e)):n.updateProps(r,{style:{opacity:c},shape:{points:u.points}},o,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");r.setStyle(a.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),r.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),n.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),a=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"color");n.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},r,e),n.updateProps(a,{style:{x:l.x,y:l.y}},r,e),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var c=o.getModel("label"),h=o.getModel("emphasis.label"),d=o.getModel("labelLine"),f=o.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");n.setLabelStyle(a.style,a.hoverStyle={},c,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),a.ignore=a.normalIgnore=!c.get("show"),a.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!d.get("show"),i.hoverIgnore=!f.get("show"),i.setStyle({stroke:u}),i.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=f.getModel("lineStyle").getLineStyle()},a.inherits(o,n.Group);var u=r.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,r=this.group;n.diff(a).add((function(t){var e=new o(n,t);n.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),r.add(i),n.setItemGraphicEl(t,i)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=u;t.exports=c},"4d85":function(t,e,i){var n=i("e46b"),a=i("4f85"),r=i("6d8b"),o=a.extend({type:"series.gauge",getInitialData:function(t,e){var i=t.data||[];return r.isArray(i)||(i=[i]),t.data=i,n(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),s=o;t.exports=s},"4e08":function(t,e,i){(function(t){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof t&&(i=t.__DEV__),"undefined"===typeof i&&(i=!0);var n=i;e.__DEV__=n}).call(this,i("c8ba"))},"4e10":function(t,e,i){var n=i("6d8b"),a=i("e46b"),r=i("4f85"),o=i("eda2"),s=o.encodeHTML,l=o.addCommas,u=i("7023"),c=i("2b17"),h=c.retrieveRawAttr,d=i("5b87"),f=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var e=a(this,["value"]),i=e.mapDimension("value"),r=n.createHashMap(),o=[],s=[],l=0,u=e.count();l"+s(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});n.mixin(f,u);var p=f;t.exports=p},"4e47":function(t,e,i){var n=i("6d8b"),a=i("2306"),r={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(t,e,i){a.Group.call(this);var n=new a.Sector({z2:o});n.seriesIndex=e.seriesIndex;var r=new a.Text({z2:s,silent:t.getModel("label").get("silent")});function l(){r.ignore=r.hoverIgnore}function u(){r.ignore=r.normalIgnore}this.add(n),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var u=l.prototype;u.updateData=function(t,e,i,r,o){this.node=e,e.piece=this,r=r||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=e.dataIndex;var l=e.getModel(),u=e.getLayout(),c=n.extend({},u);c.label=null;var d=h(e,r,o);p(e,r,d);var f,g=l.getModel("itemStyle").getItemStyle();if("normal"===i)f=g;else{var m=l.getModel(i+".itemStyle").getItemStyle();f=n.merge(m,g)}f=n.defaults({lineJoin:"bevel",fill:f.fill||d},f),t?(s.setShape(c),s.shape.r=u.r0,a.updateProps(s,{shape:{r:u.r}},r,e.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(a.updateProps(s,{shape:c},r),s.useStyle(f)):a.updateProps(s,{shape:c,style:f},r),this._updateLabel(r,d,i);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),t){var y=r.getShallow("highlightPolicy");this._initEvents(s,e,r,y)}this._seriesModel=r||this._seriesModel,this._ecModel=o||this._ecModel},u.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):f(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==r.NONE&&i.piece.childAt(0).trigger("downplay"))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(t,e,i){var r=this.node.getModel(),o=r.getModel("label"),s="normal"===i||"emphasis"===i?o:r.getModel(i+".label"),l=r.getModel("emphasis.label"),u=n.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===I("show")&&(u="");var c=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var d=c.endAngle-c.startAngle;null!=h&&Math.abs(d)Math.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(p=c.r0+x,g>Math.PI/2&&(_="right")):"right"===_&&(p=c.r-x,g>Math.PI/2&&(_="left")):(p=(c.r+c.r0)/2,_="center"),f.attr("style",{text:u,textAlign:_,textVerticalAlign:I("verticalAlign")||"middle",opacity:I("opacity")});var b=p*m+c.cx,w=p*v+c.cy;f.attr("position",[b,w]);var S=I("rotate"),M=0;function I(t){var e=s.get(t);return null==e?o.get(t):e}"radial"===S?(M=-g,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===S?(M=Math.PI/2-g,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof S&&(M=S*Math.PI/180),f.attr("rotation",M)},u._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()},s=function(){a.onDownplay()},l=function(){a.onHighlight()};i.isAnimationEnabled()&&t.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",s).on("highlight",l)},n.inherits(l,a.Group);var c=l;function h(t,e,i){var n=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(n=null);var r=t.getModel("itemStyle").get("color");if(r)return r;if(n)return n;if(0===t.depth)return i.option.color[0];var o=i.option.color.length;return r=i.option.color[d(t)%o],r}function d(t){var e=t;while(e.depth>1)e=e.parentNode;var i=t.getAncestors()[0];return n.indexOf(i.children,e)}function f(t,e,i){return i!==r.NONE&&(i===r.SELF?t===e:i===r.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function p(t,e,i){var n=e.getData();n.setItemVisual(t.dataIndex,"color",i)}t.exports=c},"4e9f":function(t,e,i){var n=i("22d1"),a=i("29a8"),r=i("2145"),o=a.toolbox.saveAsImage;function s(t){this.model=t}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!n.canvasSupported;var l=s.prototype;l.onclick=function(t,e){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=i.get("type",!0)||"png";r.download=a+"."+o,r.target="_blank";var s=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=s,"function"!==typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),u=l.length,c=new Uint8Array(u);while(u--)c[u]=l.charCodeAt(u);var h=new Blob([c]);window.navigator.msSaveOrOpenBlob(h,a+"."+o)}else{var d=i.get("lang"),f='',p=window.open();p.document.write(f)}else{var g=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(g)}},r.register("saveAsImage",s);var u=s;t.exports=u},"4f85":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("22d1"),o=i("eda2"),s=o.formatTime,l=o.encodeHTML,u=o.addCommas,c=o.getTooltipMarker,h=i("e0d3"),d=i("6cb7"),f=i("e47b"),p=i("38a2"),g=i("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,y=i("f47d"),x=y.createTask,_=i("0f99"),b=_.prepareSource,w=_.getSource,S=i("2b17"),M=S.retrieveRawValue,I=h.makeInner(),A=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=x({count:C,reset:L}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),b(this);var a=this.getInitialData(t,i);k(a,this),this.dataTask.context.data=a,I(this).dataBeforeProcessed=a,T(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?m(t):{},r=this.subType;d.hasClass(r)&&(r+="Series"),a.merge(t,e.getTheme().get(this.subType)),a.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&v(t,n,i)},mergeOption:function(t,e){t=a.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&v(this.option,t,i),b(this);var n=this.getInitialData(t,e);k(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,I(this).dataBeforeProcessed=n,T(this)},fillDataTextStyle:function(t){if(t&&!a.isTypedArray(t))for(var e=["show"],i=0;i":"\n",d="richText"===n,f={},p=0;function g(i){var o=a.reduce(i,(function(t,e,i){var n=v.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),h=[];function g(t,i){var a=v.getDimensionInfo(i);if(a&&!1!==a.otherDims.tooltip){var g=a.type,m="sub"+r.seriesIndex+"at"+p,y=c({color:w,type:"subItem",renderMode:n,markerId:m}),x="string"===typeof y?y:y.content,_=(o?x+l(a.displayName||"-")+": ":"")+l("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):u(t));_&&h.push(_),d&&(f[m]=w,++p)}}y.length?a.each(y,(function(e){g(M(v,t,e),e)})):a.each(i,g);var m=o?d?"\n":"
":"",x=m+h.join(m||", ");return{renderMode:n,content:x,style:f}}function m(t){return{renderMode:n,content:l(u(t)),style:f}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),x=y.length,_=this.getRawValue(t),b=a.isArray(_),w=v.getItemVisual(t,"color");a.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=x>1||b&&!x?g(_):m(x?M(v,t,y[0]):b?_[0]:_),I=S.content,A=r.seriesIndex+"at"+p,T=c({color:w,type:"item",renderMode:n,markerId:A});f[A]=w,++p;var D=v.getName(t),C=this.name;h.isNameSpecified(this)||(C=""),C=C?l(C)+(e?": ":o):"";var L="string"===typeof T?T:T.content,P=e?L+C+I:C+L+(D?l(D)+": "+I:I);return{html:P,markers:f}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,a=f.getColorFromPalette.call(this,t,e,i);return a||(a=n.getColorFromPalette(t,e,i)),a},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function T(t){var e=t.name;h.isNameSpecified(t)||(t.name=D(t)||e)}function D(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),n=[];return a.each(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}function C(t){return t.model.getRawData().count()}function L(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),P}function P(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function k(t,e){a.each(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,a.curry(O,e))}))}function O(t){var e=R(t);e&&e.setOutputEnd(this.count())}function R(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}a.mixin(A,p),a.mixin(A,f);var E=A;t.exports=E},"4fac":function(t,e,i){var n=i("620b"),a=i("9c2c");function r(t,e,i){var r=e.points,o=e.smooth;if(r&&r.length>=2){if(o&&"spline"!==o){var s=a(r,o,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var l=r.length,u=0;u<(i?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=r[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(r=n(r,i)),t.moveTo(r[0][0],r[0][1]);u=1;for(var f=r.length;u=0}function l(t,e){t=t.slice();var i=n.map(t,a.capitalFirst);e=(e||[]).slice();var r=n.map(e,a.capitalFirst);return function(a,o){n.each(t,(function(t,n){for(var s={name:t,capital:i[n]},l=0;l=0}function r(t,a){var r=!1;return e((function(e){n.each(i(t,e)||[],(function(t){a.records[e.name][t]&&(r=!0)}))})),r}function o(t,a){a.nodes.push(t),e((function(e){n.each(i(t,e)||[],(function(t){a.records[e.name][t]=!0}))}))}}e.isCoordSupported=s,e.createNameEach=l,e.eachAxisDim=u,e.createLinkedNodesFinder=c},"527a":function(t,e,i){var n=i("6d8b"),a=i("3842");function r(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.coordinateSystem,n={},r=i.getRect();n.rect=r;var s=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,"horizontal"===l.orient){s[0]=a.parsePercent(s[0],r.height),s[1]=a.parsePercent(s[1],r.height);var u=r.height-s[0]-s[1];o(e,t,u)}else{s[0]=a.parsePercent(s[0],r.width),s[1]=a.parsePercent(s[1],r.width);var c=r.width-s[0]-s[1];o(e,t,c)}e.setLayout("layoutInfo",n)}))}function o(t,e,i){if(t.count())for(var a,r=e.coordinateSystem,o=e.getLayerSeries(),l=t.mapDimension("single"),u=t.mapDimension("value"),c=n.map(o,(function(e){return n.map(e.indices,(function(e){var i=r.dataToPoint(t.get(l,e));return i[1]=t.get(u,e),i}))})),h=s(c),d=h.y0,f=i/h.max,p=o.length,g=o[0].indices.length,m=0;mr&&(r=u),n.push(u)}for(var c=0;cr&&(r=d)}return o.y0=a,o.max=r,o}t.exports=r},5450:function(t,e,i){i("7419"),i("29a9")},"54fb":function(t,e){function i(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:a})}))}t.exports=i},"551f":function(t,e,i){var n=i("282b"),a=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(t,e){var i=a(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=r},5522:function(t,e,i){i("23e0"),i("1748"),i("6c12")},5576:function(t,e,i){var n=i("6d8b"),a=i("4a01"),r=i("88b3"),o="\0_ec_dataZoom_roams";function s(t,e){var i=c(t),a=e.dataZoomId,o=e.coordId;n.each(i,(function(t,i){var r=t.dataZoomInfos;r[a]&&n.indexOf(e.allCoordIds,o)<0&&(delete r[a],t.count--)})),d(i);var s=i[o];s||(s=i[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=h(t,s),s.dispatchAction=n.curry(f,t)),!s.dataZoomInfos[a]&&s.count++,s.dataZoomInfos[a]=e;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(e.containsPoint),r.createOrUpdate(s,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function l(t,e){var i=c(t);n.each(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),d(i)}function u(t){return t.type+"\0_"+t.id}function c(t){var e=t.getZr();return e[o]||(e[o]={})}function h(t,e){var i=new a(t.getZr());return n.each(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(i){var a=[];n.each(e.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var r=(n.getRange||{})[t],o=r&&r(e.controller,i);!n.dataZoomModel.get("disabled",!0)&&o&&a.push({dataZoomId:n.dataZoomId,start:o[0],end:o[1]})}})),a.length&&e.dispatchAction(a)}))})),i}function d(t){n.each(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function f(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function p(t){var e,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(t,(function(t){var n=t.dataZoomModel,o=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");a[i+o]>a[i+e]&&(e=o),r&=n.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}e.register=s,e.unregister=l,e.generateCoordId=u},"55ac":function(t,e,i){var n=i("6d8b");function a(t,e,i){if(t&&n.indexOf(e,t.type)>=0){var a=i.getData().tree.root,r=t.targetNode;if("string"===typeof r&&(r=a.getNodeById(r)),r&&a.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=a.getNodeById(o)))return{node:r}}}function r(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function o(t,e){var i=r(t);return n.indexOf(i,e)>=0}function s(t,e){var i=[];while(t){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}e.retrieveTargetInfo=a,e.getPathToRoot=r,e.aboveViewRoot=o,e.wrapTreePathInfo=s},5693:function(t,e){function i(t,e){var i,n,a,r,o,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?i=n=a=r=h:h instanceof Array?1===h.length?i=n=a=r=h[0]:2===h.length?(i=a=h[0],n=r=h[1]):3===h.length?(i=h[0],n=r=h[1],a=h[2]):(i=h[0],n=h[1],a=h[2],r=h[3]):i=n=a=r=0,i+n>u&&(o=i+n,i*=u/o,n*=u/o),a+r>u&&(o=a+r,a*=u/o,r*=u/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),i+r>c&&(o=i+r,i*=c/o,r*=c/o),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-a),0!==a&&t.arc(s+u-a,l+c-a,a,0,Math.PI/2),t.lineTo(s+r,l+c),0!==r&&t.arc(s+r,l+c-r,r,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}e.buildPath=i},5866:function(t,e,i){var n=i("ef2b"),a=n.forceLayout,r=i("1c5f"),o=r.simpleLayout,s=i("94e4"),l=s.circularLayout,u=i("3842"),c=u.linearMap,h=i("401b"),d=i("6d8b");function f(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),r=n.data,s=n.edgeData,u=t.getModel("force"),f=u.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,i[e]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(t):o(t);var p=r.getDataExtent("value"),g=s.getDataExtent("value"),m=u.get("repulsion"),v=u.get("edgeLength");d.isArray(m)||(m=[m,m]),d.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=r.mapArray("value",(function(t,e){var i=r.getItemLayout(e),n=c(t,p,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,fixed:r.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),x=s.mapArray("value",(function(t,e){var i=n.getEdgeByIndex(e),a=c(t,g,v);return isNaN(a)&&(a=(v[0]+v[1])/2),{n1:y[i.node1.dataIndex],n2:y[i.node2.dataIndex],d:a,curveness:i.getModel().get("lineStyle.curveness")||0}})),_=(e=t.coordinateSystem,e.getBoundingRect()),b=a(y,x,{rect:_,gravity:u.get("gravity")}),w=b.step;b.step=function(t){for(var e=0,a=y.length;e=0;o--)null==i[o]&&(delete a[e[o]],e.pop())}function p(t,e){var i=t.visual,a=[];n.isObject(i)?s(i,(function(t){a.push(t)})):null!=i&&a.push(i);var r={color:1,symbol:1};e||1!==a.length||r.hasOwnProperty(t.type)||(a[1]=a[0]),w(t,a)}function g(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:_([0,1])}}function m(t){var e=this.option.visual;return e[Math.round(o(t,[0,1],[0,e.length-1],!0))]||{}}function v(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function y(t){var e=this.option.visual;return e[this.option.loop&&t!==u?t%e.length:t]}function x(){return this.option.visual[0]}function _(t){return{linear:function(e){return o(e,t,this.option.visual,!0)},category:y,piecewise:function(e,i){var n=b.call(this,i);return null==n&&(n=o(e,t,this.option.visual,!0)),n},fixed:x}}function b(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=c.findPieceIndex(t,i),a=i[n];if(a&&a.visual)return a.visual[this.type]}}function w(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=n.map(e,(function(t){return a.parse(t)}))),e}var S={linear:function(t){return o(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=c.findPieceIndex(t,e,!0);if(null!=i)return o(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?u:e},fixed:n.noop};function M(t,e,i){return t?e<=i:e=0;if(a){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,i)}else l(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function h(t,e,i){r?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function d(t,e,i){r?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var f=r?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function p(t){return 2===t.which||3===t.which}function g(t){return t.which>1}e.clientToLocal=l,e.normalizeEvent=c,e.addEventListener=h,e.removeEventListener=d,e.stop=f,e.isMiddleOrRightButtonOnMouseUpDown=p,e.notLeftMouse=g},"60d7":function(t,e,i){var n=i("2306"),a=i("e887"),r=.3,o=a.extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,a){var r=this._dataGroup,o=t.getData(),d=this._data,f=t.coordinateSystem,p=f.dimensions,g=c(t);function m(t){var e=u(o,r,t,p,f);h(e,o,t,g)}function v(e,i){var r=d.getItemGraphicEl(i),s=l(o,e,p,f);o.setItemGraphicEl(e,r);var u=a&&!1===a.animation?null:t;n.updateProps(r,{shape:{points:s}},u,e),h(r,o,e,g)}function y(t){var e=d.getItemGraphicEl(t);r.remove(e)}if(o.diff(d).add(m).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var x=s(f,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(x)}this._data=o},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),a=e.coordinateSystem,r=a.dimensions,o=c(e),s=t.start;s65535?y:_}function w(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],M=["_extent","_approximateExtent","_rawExtent"];function I(t,e){a.each(S.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,a.each(M,(function(i){t[i]=a.clone(e[i])})),t._calculationInfo=a.extend(e._calculationInfo)}var A=function(t,e){t=t||["x","y"];for(var i={},n=[],r={},o=0;o=0?this._indices[t]:-1}function O(t,e){var i=t._idList[e];return null==i&&(i=L(t,t._idDimIdx,e)),null==i&&(i=m+e),i}function R(t){return a.isArray(t)||(t=[t]),t}function E(t,e){var i=t.dimensions,n=new A(a.map(i,t.getDimensionInfo,t),t.hostModel);I(n,t);for(var r=n._storage={},o=t._storage,s=0;s=0?(r[l]=N(o[l]),n._rawExtent[l]=z(),n._extent[l]=null):r[l]=o[l])}return n}function N(t){for(var e=new Array(t.length),i=0;ix[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},C(this)},T._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pM[1]&&(M[1]=S)}if(!a.pure){var I=u[y];if(v&&null==I)if(null!=v.name)u[y]=I=v.name;else if(null!=i){var A=o[i],T=r[A][x];if(T){I=T[_];var L=l[A].ordinalMeta;L&&L.categories.length&&(I=L.categories[I])}}var P=null==v?null:v.id;null==P&&null!=I&&(d[I]=d[I]||0,P=I,d[I]>0&&(P+="__ec__"+d[I]),d[I]++),null!=P&&(c[y]=P)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent={},C(this)}},T.count=function(){return this._count},T.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){a=new e(i);for(var n=0;n=0&&e=0&&es&&(s=u)}return n=[o,s],this._extent[t]=n,n},T.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},T.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},T.getCalculationInfo=function(t){return this._calculationInfo[t]},T.setCalculationInfo=function(t,e){f(t)?a.extend(this._calculationInfo,t):this._calculationInfo[t]=e},T.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,a=this.count();n=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&it))return r;a=r-1}}return-1},T.indicesOfNearest=function(t,e,i){var n=this._storage,a=n[t],r=[];if(!a)return r;null==i&&(i=1/0);for(var o=Number.MAX_VALUE,s=-1,l=0,u=this.count();l=0&&s<0)&&(o=h,s=c,r.length=0),r.push(l))}return r},T.getRawIndex=P,T.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=u&&y<=c||isNaN(y))&&(o[s++]=d),d++}h=!0}else if(2===n){f=this._storage[l];var x=this._storage[e[1]],_=t[e[1]][0],w=t[e[1]][1];for(p=0;p=u&&y<=c||isNaN(y))&&(M>=_&&M<=w||isNaN(M))&&(o[s++]=d),d++}}h=!0}}if(!h)if(1===n)for(v=0;v=u&&y<=c||isNaN(y))&&(o[s++]=I)}else for(v=0;vt[T][1])&&(A=!1)}A&&(o[s++]=this.getRawIndex(v))}return sw[1]&&(w[1]=b)}}}return r},T.downSample=function(t,e,i,n){for(var a=E(this,[t]),r=a._storage,o=[],s=Math.floor(1/e),l=r[t],u=this.count(),c=this._chunkSize,h=a._rawExtent[t],d=new(b(this))(u),f=0,p=0;pu-p&&(s=u-p,o.length=s);for(var g=0;gh[1]&&(h[1]=x),d[f++]=_}return a._count=f,a._indices=d,a.getRawIndex=k,a},T.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},T.diff=function(t){var e=this;return new o(t?t.getIndices():[],this.getIndices(),(function(e){return O(t,e)}),(function(t){return O(e,t)}))},T.getVisual=function(t){var e=this._visual;return e&&e[t]},T.setVisual=function(t,e){if(f(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},T.setLayout=function(t,e){if(f(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},T.getLayout=function(t){return this._layout[t]},T.getItemLayout=function(t){return this._itemLayouts[t]},T.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?a.extend(this._itemLayouts[t]||{},e):e},T.clearItemLayouts=function(){this._itemLayouts.length=0},T.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},T.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=n,f(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],a[r]=!0);else n[e]=i,a[e]=!0},T.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};T.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(V,e)),this._graphicEls[t]=e},T.getItemGraphicEl=function(t){return this._graphicEls[t]},T.eachItemGraphicEl=function(t,e){a.each(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},T.cloneShallow=function(t){if(!t){var e=a.map(this.dimensions,this.getDimensionInfo,this);t=new A(e,this.hostModel)}if(t._storage=this._storage,I(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?k:P,t},T.wrapMethod=function(t,e){var i=this[t];"function"===typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(a.slice(arguments)))})},T.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],T.CHANGABLE_METHODS=["filterSelf","selectRange"];var B=A;t.exports=B},"620b":function(t,e,i){var n=i("401b"),a=n.distance;function r(t,e,i,n,a,r,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*r+s*a+e}function o(t,e){for(var i=t.length,n=[],o=0,s=1;si-2?i-1:f+1],h=t[f>i-3?i-1:f+2]);var m=p*p,v=p*m;n.push([r(u[0],g[0],c[0],h[0],p,m,v),r(u[1],g[1],c[1],h[1],p,m,v)])}return n}t.exports=o},"625e":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=".",o="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(r),e.main=t[0]||"",e.sub=t[1]||""),e}function l(t){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function u(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return a.extend(i.prototype,t),i.extend=this.extend,i.superCall=d,i.superApply=f,a.inherits(i,this),i.superClass=e,i}}var c=0;function h(t){var e=["__\0is_clz",c++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){var i=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function f(t,e,i){return this.superClass.prototype[e].apply(t,i)}function p(t,e){e=e||{};var i={};function n(t){var e=i[t.main];return e&&e[o]||(e=i[t.main]={},e[o]=!0),e}if(t.registerClass=function(t,e){if(e)if(l(e),e=s(e),e.sub){if(e.sub!==o){var a=n(e);a[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var a=i[t];if(a&&a[o]&&(a=e?a[e]:null),n&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=s(t);var e=[],n=i[t.main];return n&&n[o]?a.each(n,(function(t,i){i!==o&&e.push(t)})):e.push(n),e},t.hasClass=function(t){return t=s(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return a.each(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=s(t);var e=i[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var i=r.call(this,e);return t.registerClass(i,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=u,e.enableClassCheck=h,e.enableClassManagement=p,e.setReadOnly=g},"627c":function(t,e,i){var n=i("3eba"),a=i("2306"),r=i("f934"),o=r.getLayoutRect;n.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),n.extendComponentView({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),c=new a.Text({style:a.setTextStyle({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),f=new a.Text({style:a.setTextStyle({},s,{text:d,textFill:s.getTextColor(),y:h.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,f.silent=!g&&!m,p&&c.on("click",(function(){window.open(p,"_"+t.get("target"))})),g&&f.on("click",(function(){window.open(g,"_"+t.get("subtarget"))})),c.eventData=f.eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(c),d&&n.add(f);var v=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=v.width,y.height=v.height;var x=o(y,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?x.x+=x.width:"center"===l&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?x.y+=x.height:"middle"===u&&(x.y+=x.height/2),u=u||"top"),n.attr("position",[x.x,x.y]);var _={textAlign:l,textVerticalAlign:u};c.setStyle(_),f.setStyle(_),v=n.getBoundingRect();var b=x.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new a.Rect({shape:{x:v.x-b[3],y:v.y-b[0],width:v.width+b[1]+b[3],height:v.height+b[0]+b[2],r:t.get("borderRadius")},style:w,silent:!0});a.subPixelOptimizeRect(S),n.add(S)}}})},6569:function(t,e,i){var n=i("6d8b"),a=i("e0d3");function r(t){o(t),s(t)}function o(t){if(!t.parallel){var e=!1;n.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function s(t){var e=a.normalizeToArray(t.parallelAxis);n.each(e,(function(e){if(n.isObject(e)){var i=e.parallelIndex||0,r=a.normalizeToArray(t.parallel)[i];r&&r.parallelAxisDefault&&n.merge(e,r.parallelAxisDefault,!1)}}))}t.exports=r},6582:function(t,e,i){var n=i("cccd"),a={seriesType:"lines",plan:n(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;function a(a,r){var o=[];if(n){var s,l=a.end-a.start;if(i){for(var u=0,c=a.start;c0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function y(t,e,i,n,a,s,u,c){var h=e.getItemVisual(i,"color"),d=e.getItemVisual(i,"opacity"),f=n.getModel("itemStyle"),p=n.getModel("emphasis.itemStyle").getBarItemStyle();c||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(r.defaults({fill:h,opacity:d},f.getBarItemStyle()));var g=n.getShallow("cursor");g&&t.attr("cursor",g);var m=u?a.height>0?"bottom":"top":a.width>0?"left":"right";c||l(t.style,p,n,h,s,i,m),o.setHoverStyle(t,p)}function x(t,e){var i=t.get(d)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}var _=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,a=this.__valueIdx,r=0;re+c&&u>n+c&&u>o+c||ut+c&&l>i+c&&l>r+c||l0&&u>0&&!d&&(s=0),s<0&&u<0&&!f&&(u=0));var m=e.ecModel;if(m&&"time"===o){var v,y=c("bar",m);if(a.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var x=h(y),_=g(s,u,e,x);s=_.min,u=_.max}}return[s,u]}function g(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],s=d(n,i.axis);if(void 0===s)return{min:t,max:e};var l=1/0;a.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;a.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,f=1-(l+u)/o,p=h/f-h;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}function m(t,e){var i=p(t,e),n=null!=e.getMin(),a=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n,fixMax:a,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function v(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(e)||o).create(t)}}function y(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function x(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e),e):"function"===typeof e?function(n,a){return null!=i&&(a=n-i),e(_(t,n),a)}:function(e){return t.scale.getLabel(e)}}function _(t,e){return"category"===t.type?t.scale.getLabel(e):e}function b(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===t.type,o=i.getExtent();r?a=i.count():(n=i.getTicks(),a=n.length);var s,l=t.getLabelModel(),u=x(t),c=1;a>40&&(c=Math.ceil(a/40));for(var h=0;hi.blockIndex,r=a?i.step:null,o=n&&n.modDataCount,s=null!=o?Math.ceil(o/r):null;return{step:r,modBy:s,modDataCount:o}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),r=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,o=t.get("large")&&a>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?a:null;t.pipelineContext=i.context={progressiveRender:r,modDataCount:s,large:o}},y.restorePipelines=function(t){var e=this,i=e._pipelineMap=s();t.eachSeries((function(t){var n=t.getProgressive(),a=t.uid;i.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),k(e,t,t.dataTask)}))},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;a(this._allHandlers,(function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&b(this,n,a,e,i),n.overallReset&&w(this,n,a,e,i)}),this)},y.prepareView=function(t,e,i,n){var a=t.renderTask,r=a.context;r.model=e,r.ecModel=i,r.api=n,a.__block=!t.incrementalPrepareRender,k(this,e,a)},y.performDataProcessorTasks=function(t,e){x(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,i){x(this,this._visualHandlers,t,e,i)},y.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},y.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var _=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function b(t,e,i,n,a){var r=i.seriesTaskMap||(i.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;function u(i){var o=i.uid,s=r.get(o)||r.set(o,c({plan:T,reset:D,count:P}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},k(t,i,s)}e.createOnAllSeries?n.eachRawSeries(u):o?n.eachRawSeriesByType(o,u):l&&l(n,a).each(u);var h=t._pipelineMap;r.each((function(t,e){h.get(e)||(t.dispose(),r.removeKey(e))}))}function w(t,e,i,n,r){var o=i.overallTask=i.overallTask||c({reset:S});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),u=e.seriesType,h=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;function p(e){var i=e.uid,n=l.get(i);n||(n=l.set(i,c({reset:M,onDirty:A})),o.dirty()),n.context={model:e,overallProgress:d,modifyOutputEnd:f},n.agent=o,n.__block=d,k(t,e,n)}u?n.eachRawSeriesByType(u,p):h?h(n,r).each(p):(d=!1,a(n.getSeries(),p));var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}function S(t){t.overallReset(t.ecModel,t.api,t.payload)}function M(t,e){return t.overallProgress&&I}function I(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function T(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function D(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=m(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?r(e,(function(t,e){return L(e)})):C}var C=L(0);function L(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var r=e.start;r=0;l--)if(n[l]<=e)break;l=Math.min(l,a-2)}else{for(var l=r;le)break;l=Math.min(l-1,a-2)}o.lerp(t.position,i[l],i[l+1],(e-n[l])/(n[l+1]-n[l]));var u=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=e,t.ignore=!1}},a.inherits(s,r);var u=s;t.exports=u},"6acf":function(t,e,i){var n=i("eda2"),a=i("dcb3"),r=i("2306"),o=i("ff2e"),s=i("1687"),l=i("fab22"),u=i("6679"),c=a.extend({makeElOption:function(t,e,i,a,r){var s=i.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,u=s.polar,c=u.getOtherAxis(s),f=c.getExtent();l=s["dataTo"+n.capitalFirst(s.dim)](e);var p=a.get("type");if(p&&"none"!==p){var g=o.buildElStyle(a),m=d[p](s,u,l,f,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=a.get("label.margin"),y=h(e,i,a,u,v);o.buildLabelElOption(t,i,a,r,y)}});function h(t,e,i,n,a){var o=e.axis,u=o.dataToCoord(t),c=n.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,p=n.getRadiusAxis().getExtent();if("radius"===o.dim){var g=s.create();s.rotate(g,g,c),s.translate(g,g,[n.cx,n.cy]),h=r.applyTransform([u,-a],g);var m=e.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,f=v.textVerticalAlign}else{var y=p[1];h=n.coordToPoint([y+a,u]);var x=n.cx,_=n.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",f=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var d={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*s,(r/2-i)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var f=c;t.exports=f},"6bd4":function(t,e){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(t,e){if("world"===t){var n=i[e.name];if(n){var a=e.center;a[0]=n[0],a[1]=n[1]}}}t.exports=n},"6c12":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("fab22"),s=i("2306"),l=["axisLine","axisTickLabel","axisName"],u=a.extendComponentView({type:"radar",render:function(t,e,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=r.map(i,(function(t){var i=new o(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));r.each(n,(function(t){r.each(l,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),a=t.getModel("splitLine"),o=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=o.getModel("areaStyle"),c=a.get("show"),h=o.get("show"),d=l.get("color"),f=u.get("color");d=r.isArray(d)?d:[d],f=r.isArray(f)?f:[f];var p=[],g=[];if("circle"===n)for(var m=i[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x=0;o--)r=n.merge(r,e[o],!0);t.defaultOption=r}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function g(t){var e=[];return n.each(p.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return l(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,g),n.mixin(p,d);var m=p;t.exports=m},"6cc5":function(t,e,i){var n=i("6d8b"),a=i("401b"),r=i("1687"),o=i("9850"),s=i("0cde"),l=a.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[t](n):null}n.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new o(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new o(t,e,i,n)},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new o(t,e,i,n)),r.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=a.applyTransform([],n,t),i=a.applyTransform([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),r.copy(this.transform||(this.transform=[]),e.transform||r.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?l(i,t,n):a.copy(i,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:n.curry(h,"dataToPoint"),convertFromPixel:n.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},n.mixin(c,s);var d=c;t.exports=d},"6cd8":function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("1418"),o=i("22da"),s=o.radialCoordinate,l=i("3eba"),u=i("e263"),c=i("6cc5"),h=i("01ef"),d=i("4a01"),f=i("c526"),p=f.onIrrelevantElement,g=l.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new a.Group,this._controller=new d(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),r=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]),this._updateViewCoordSys(t),this._updateController(t,e,i);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add((function(e){m(a,e)&&y(a,e,null,o,t,u)})).update((function(e,i){var n=l.getItemGraphicEl(i);m(a,e)?y(a,e,n,o,t,u):n&&x(l,i,n,o,t,u)})).remove((function(e){var i=l.getItemGraphicEl(e);i&&x(l,e,i,o,t,u)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&a.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=a},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each((function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])}));var n=[],a=[];u.fromPoints(i,n,a),a[0]-n[0]===0&&(a[0]+=1,n[0]-=1),a[1]-n[1]===0&&(a[1]+=1,n[1]-=1);var r=t.coordinateSystem=new c;r.zoomLimit=t.get("scaleLimit"),r.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1]),r.setCenter(t.get("center")),r.setZoom(t.get("zoom")),this.group.attr({position:r.position,scale:r.scale}),this._viewCoordSys=r},_updateController:function(t,e,i){var n=this._controller,a=this._controllerHost,r=this.group;n.setPointerChecker((function(e,n,a){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(n,a)&&!p(e,i,t)})),n.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(e){h.updateViewOnPan(a,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){h.updateViewOnZoom(a,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,a=n&&n[0]||1,r=e.getZoom(),o=(r-1)*i+1;return o/a},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function m(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function v(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function y(t,e,i,o,s,l){var u=!i,c=t.tree.getNodeByDataIndex(e),h=c.getModel(),d=(l=v(c,h,l),t.tree.root),f=c.parentNode===d?c:c.parentNode||c,p=t.getItemGraphicEl(f.dataIndex),g=f.getLayout(),m=p?{x:p.position[0],y:p.position[1],rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:g,y=c.getLayout();u?(i=new r(t,e,l),i.attr("position",[m.x,m.y])):i.updateData(t,e,l),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=y.rawX,i.__radialRawY=y.rawY,o.add(i),t.setItemGraphicEl(e,i),a.updateProps(i,{position:[y.x,y.y]},s);var x=i.getSymbolPath();if("radial"===l.layout){var b,w,S=d.children[0],M=S.getLayout(),I=S.children.length;if(y.x===M.x&&!0===c.isExpand){var A={};A.x=(S.children[0].getLayout().x+S.children[I-1].getLayout().x)/2,A.y=(S.children[0].getLayout().y+S.children[I-1].getLayout().y)/2,b=Math.atan2(A.y-M.y,A.x-M.x),b<0&&(b=2*Math.PI+b),w=A.xM.x,w||(b-=Math.PI));var T=w?"left":"right";x.setStyle({textPosition:T,textRotation:-b,textOrigin:"center",verticalAlign:"middle"})}if(c.parentNode&&c.parentNode!==d){var D=i.__edge;D||(D=i.__edge=new a.BezierCurve({shape:_(l,m,m),style:n.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),a.updateProps(D,{shape:_(l,g,y),style:{opacity:1}},s),o.add(D)}}function x(t,e,i,n,r,o){var s,l=t.tree.getNodeByDataIndex(e),u=t.tree.root,c=l.getModel(),h=(o=v(l,c,o),l.parentNode===u?l:l.parentNode||l);while(s=h.getLayout(),null==s)h=h.parentNode===u?h:h.parentNode||h;a.updateProps(i,{position:[s.x+1,s.y+1]},r,(function(){n.remove(i),t.setItemGraphicEl(e,null)})),i.fadeOut(null,{keepLabel:!0});var d=i.__edge;d&&a.updateProps(d,{shape:_(o,s,s),style:{opacity:0}},r,(function(){n.remove(d)}))}function _(t,e,i){var n,a,r,o,l,u,c,h,d=t.orient;if("radial"===t.layout){l=e.rawX,c=e.rawY,u=i.rawX,h=i.rawY;var f=s(l,c),p=s(l,c+(h-c)*t.curvature),g=s(u,h+(c-h)*t.curvature),m=s(u,h);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return l=e.x,c=e.y,u=i.x,h=i.y,"LR"!==d&&"RL"!==d||(n=l+(u-l)*t.curvature,a=c,r=u+(l-u)*t.curvature,o=h),"TB"!==d&&"BT"!==d||(n=l,a=c+(h-c)*t.curvature,r=u,o=h+(c-h)*t.curvature),{x1:l,y1:c,x2:u,y2:h,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}t.exports=g},"6d8b":function(t,e){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},a=Object.prototype.toString,r=Array.prototype,o=r.forEach,s=r.filter,l=r.slice,u=r.map,c=r.reduce,h={};function d(t,e){"createCanvas"===t&&(y=null),h[t]=e}function f(t){if(null==t||"object"!==typeof t)return t;var e=t,r=a.call(t);if("[object Array]"===r){if(!q(t)){e=[];for(var o=0,s=t.length;o=0;r--)n.push(a[r])}}e.eachAfter=i,e.eachBefore=n},"6fda":function(t,e,i){var n=i("6d8b"),a=n.each,r="\0_ec_hist_store";function o(t,e){var i=c(t);a(e,(function(e,n){for(var a=i.length-1;a>=0;a--){var r=i[a];if(r[n])break}if(a<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(e)}function s(t){var e=c(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return a(i,(function(t,i){for(var a=e.length-1;a>=0;a--){t=e[a][i];if(t){n[i]=t;break}}})),n}function l(t){t[r]=null}function u(t){return c(t).length}function c(t){var e=t[r];return e||(e=t[r]=[{}]),e}e.push=o,e.pop=s,e.clear=l,e.count=u},7023:function(t,e,i){var n=i("6d8b"),a={updateSelectedMap:function(t){this._targetList=n.isArray(t)?t.slice():[],this._selectTargetMap=n.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),n.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}};t.exports=a},"71ad":function(t,e,i){var n=i("6d8b"),a={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),r.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5},a),r.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=n.defaults({scale:!0,logBase:10},r.valueAxis);var o=r;t.exports=o},"71b2":function(t,e,i){var n=i("6d8b"),a=n.createHashMap;function r(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),r=a();e.each((function(t){r.set(e.getRawIndex(t),t)})),i.each((function(a){var o=i.getName(a),s=n[(t.nameMap.get(o)-1)%n.length];i.setItemVisual(a,"color",s);var l=r.get(a);null!=l&&e.setItemVisual(l,"color",s)}))}))}t.exports=r},7293:function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("4f85")),r=i("6179"),o=i("6d8b"),s=o.concatArray,l=o.mergeAll,u=o.map,c=i("eda2"),h=c.encodeHTML,d=(i("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=u(e,(function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),l([i,t[0],t[1]])})))}var g=a.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],p(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),g.superApply(this,"init",arguments)},mergeOption:function(t){if(t.data=t.data||[],p(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,e.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),i=e.option instanceof Array?e.option:e.getShallow("coords");return i},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;t.exports=m},"72b6":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("eda2"),s=i("f934"),l=i("5f14"),u=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){i=i||{};var n=i.forceState,r=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=r.get("itemSymbol")),"color"===e){var s=r.get("contentColor");o.color=s}function u(t){return o[t]}function c(t,e){o[t]=e}var h=r.controllerVisuals[n||r.getValueState(t)],d=l.prepareVisualTypes(h);return a.each(d,(function(n){var a=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",a=h.__alphaForOpacity),l.dependsOn(n,e)&&a&&a.applyVisual(t,u,c)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:a.noop});t.exports=u},7368:function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("625e"),o=r.enableClassCheck;function s(t){return"_EC_"+t}var l=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=l.prototype;function c(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function h(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(t,e){t=t||""+e;var i=this._nodesMap;if(!i[s(t)]){var n=new c(t,e);return n.hostGraph=this,this.nodes.push(n),i[s(t)]=n,n}},u.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},u.getNodeById=function(t){return this._nodesMap[s(t)]},u.addEdge=function(t,e,i){var n=this._nodesMap,a=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),c.isInstance(t)||(t=n[s(t)]),c.isInstance(e)||(e=n[s(e)]),t&&e){var r=t.id+"-"+e.id;if(!a[r]){var o=new h(t,e,i);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),a[r]=o,o}}},u.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},u.getEdge=function(t,e){c.isInstance(t)&&(t=t.id),c.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},u.eachNode=function(t,e){for(var i=this.nodes,n=i.length,a=0;a=0&&t.call(e,i[a],a)},u.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},u.breadthFirstTraverse=function(t,e,i,n){if(c.isInstance(e)||(e=this._nodesMap[s(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};a.mixin(c,d("hostGraph","data")),a.mixin(h,d("hostGraph","edgeData")),l.Node=c,l.Edge=h,o(c),o(h);var f=l;t.exports=f},"73ca":function(t,e,i){var n=i("2306"),a=i("7e5b");function r(t){this._ctor=t||a,this.group=new n.Group}var o=r.prototype;function s(t,e,i,n){var a=e.getItemLayout(i);if(h(a)){var r=new t._ctor(e,i,n);e.setItemGraphicEl(i,r),t.group.add(r)}}function l(t,e,i,n,a,r){var o=e.getItemGraphicEl(n);h(i.getItemLayout(a))?(o?o.updateData(i,a,r):o=new t._ctor(i,a,r),i.setItemGraphicEl(a,o),t.group.add(o)):t.group.remove(o)}function u(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function c(t){return isNaN(t[0])||isNaN(t[1])}function h(t){return!c(t[0])&&!c(t[1])}o.isPersistent=function(){return!0},o.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var a=u(t);t.diff(n).add((function(i){s(e,t,i,a)})).update((function(i,r){l(e,n,t,r,i,a)})).remove((function(t){i.remove(n.getItemGraphicEl(t))})).execute()},o.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},o.incrementalPrepareUpdate=function(t){this._seriesScope=u(t),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(t,e){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n=0)return!0}var v=new RegExp("["+c+"]+","g");function y(t){for(var e=t.split(/\n+/g),i=g(e.shift()).split(v),n=[],r=a.map(i,(function(t){return{name:t,data:[]}})),o=0;o1?"emphasis":"normal")}function x(t,e,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var s=new o(v(t.option),e,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(a,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}g._onBrush=function(t,e){if(e.isEnd&&t.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var a=new o(v(this.model.option),n,{include:["grid"]});a.matchOutputRanges(t,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(r("x",i,e[0]),r("y",i,e[1])):r({lineX:"x",lineY:"y"}[n],i,e)}})),s.push(n,i),this._dispatchZoomAction(i)}function r(t,e,a){var r=e.getAxis(t),o=r.model,s=u(t,o,n),c=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(a=l(0,a.slice(),r.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}function u(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var a=i.getAxisModel(t,e.componentIndex);a&&(n=i)})),n}},g._dispatchZoomAction=function(t){var e=[];d(t,(function(t,i){e.push(a.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},c.register("dataZoom",p),n.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);a.isArray(e)||(t.dataZoom=e=[e]);var i=t.toolbox;if(i&&(a.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(t,i){if(i){var n=t+"Index",r=i[n];null==r||"all"===r||a.isArray(r)||(r=!1===r||"none"===r?[]:[r]),o(t,(function(i,o){if(null==r||"all"===r||-1!==a.indexOf(r,o)){var s={type:"select",$fromToolbox:!0,id:f+t+o};s[n]=o,e.push(s)}}))}}function o(e,i){var n=t[e];a.isArray(n)||(n=n?[n]:[]),d(n,i)}}));var _=p;t.exports=_},"7d6d":function(t,e){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(t,e,n){return i.hasOwnProperty(e)?n*t.dpr:n}t.exports=n},"7dcf":function(t,e,i){var n=i("b12f"),a=n.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};function n(t,e,i,n){for(var a,r=0;r.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var v=l/2,y=(d=s.tangentAt(v),[d[1],-d[0]]),x=s.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),f=[x[0]+y[0]*m,x[1]+y[1]*m],p="center",g="bottom";var _=-Math.atan2(d[1],d[0]);c[0].8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||p},position:f,scale:[r,r]})}}}}function m(t,e,i){s.Group.call(this),this._createLine(t,e,i)}var v=m.prototype;v.beforeUpdate=g,v._createLine=function(t,e,i){var a=t.hostModel,r=t.getItemLayout(e),o=f(r);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},a,e),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(c,(function(i){var n=d(i,t,e);this.add(n),this[h(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},v.updateData=function(t,e,i){var a=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),l={shape:{}};p(l.shape,o),s.updateProps(r,l,a,e),n.each(c,(function(i){var n=t.getItemVisual(e,i),a=h(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=d(i,t,e);this.add(r)}this[a]=n}),this),this._updateCommonStl(t,e,i)},v._updateCommonStl=function(t,e,i){var a=t.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,l=i&&i.hoverLineStyle,h=i&&i.labelModel,d=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var f=t.getItemModel(e);o=f.getModel("lineStyle").getLineStyle(),l=f.getModel("emphasis.lineStyle").getLineStyle(),h=f.getModel("label"),d=f.getModel("emphasis.label")}var p=t.getItemVisual(e,"color"),g=n.retrieve3(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},o)),r.hoverStyle=l,n.each(c,(function(t){var e=this.childOfName(t);e&&(e.setColor(p),e.setStyle({opacity:g}))}),this);var m,v,y=h.getShallow("show"),x=d.getShallow("show"),_=this.childOfName("label");if((y||x)&&(m=p||"#000",v=a.getFormattedLabel(e,"normal",t.dataType),null==v)){var b=a.getRawValue(e);v=null==b?t.getName(e):isFinite(b)?u(b):b}var w=y?v:null,S=x?n.retrieve2(a.getFormattedLabel(e,"emphasis",t.dataType),v):null,M=_.style;null==w&&null==S||(s.setTextStyle(_.style,h,{text:w},{autoColor:m}),_.__textAlign=M.textAlign,_.__verticalAlign=M.textVerticalAlign,_.__position=h.get("position")||"middle"),_.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},_.ignore=!y&&!x,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");p(e.shape,t),e.dirty()},n.inherits(m,s.Group);var y=m;t.exports=y},"7e63":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.each,o=a.filter,s=a.map,l=a.isArray,u=a.indexOf,c=a.isObject,h=a.isString,d=a.createHashMap,f=a.assert,p=a.clone,g=a.merge,m=a.extend,v=a.mixin,y=i("e0d3"),x=i("4319"),_=i("6cb7"),b=i("8971"),w=i("e47b"),S=i("0f99"),M=S.resetSourceDefaulter,I="\0_ec_inner",A=x.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new x(i),this._optionManager=n},setOption:function(t,e){f(!(I in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):C.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&r(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];function a(n,a){var o=y.normalizeToArray(t[n]),s=y.mappingToExists(i.get(n),o);y.makeIdAndName(s),r(s,(function(t,e){var i=t.option;c(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=P(n,i,t.exist))}));var l=L(i,a);e[n]=[],i.set(n,[]),r(s,(function(t,a){var r=t.exist,o=t.option;if(f(c(o)||r,"Empty component definition"),o){var s=_.getClass(n,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var u=m({dependentModels:l,componentIndex:a},t.keyInfo);r=new s(o,this,this,u),m(r,u),r.init(o,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,e[n][a]=r.option}),this),"series"===n&&k(this,i.get("series"))}M(this),r(t,(function(t,i){null!=t&&(_.hasClass(i)?i&&n.push(i):e[i]=null==e[i]?p(t):g(e[i],t,!0))})),_.topologicalTravel(n,_.getAllClassMainTypes(),a,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return r(t,(function(e,i){if(_.hasClass(i)){e=y.normalizeToArray(e);for(var n=e.length-1;n>=0;n--)y.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t[I],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,a=t.id,r=t.name,c=this._componentsMap.get(e);if(!c||!c.length)return[];if(null!=n)l(n)||(n=[n]),i=o(s(n,(function(t){return c[t]})),(function(t){return!!t}));else if(null!=a){var h=l(a);i=o(c,(function(t){return h&&u(a,t.id)>=0||!h&&t.id===a}))}else if(null!=r){var d=l(r);i=o(c,(function(t){return d&&u(r,t.name)>=0||!d&&t.name===r}))}else i=c.slice();return O(i,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=r(e),a=n?this.queryComponents(n):this._componentsMap.get(i);return s(O(a,t));function r(t){var e=i+"Index",n=i+"Id",a=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[a]?null:{mainType:i,index:t[e],id:t[n],name:t[a]}}function s(e){return t.filter?o(e,t.filter):e}},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"===typeof t)i=e,e=t,n.each((function(t,n){r(t,(function(t,a){e.call(i,n,t,a)}))}));else if(h(t))r(n.get(t),e,i);else if(c(t)){var a=this.findComponents(t);r(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return o(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){R(this),r(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){r(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){R(this),r(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)}),this)},eachRawSeriesByType:function(t,e,i){return r(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return R(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){R(this);var i=o(this._componentsMap.get("series"),t,e);k(this,i)},restoreData:function(t){var e=this._componentsMap;k(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),_.topologicalTravel(i,_.getAllClassMainTypes(),(function(i,n){r(e.get(i),(function(e){("series"!==i||!T(e,t))&&e.restoreData()}))}))}});function T(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}function D(t,e){var i=t.color&&!t.colorLayer;r(e,(function(e,n){"colorLayer"===n&&i||_.hasClass(n)||("object"===typeof e?t[n]=t[n]?g(t[n],e,!1):p(e):null==t[n]&&(t[n]=e))}))}function C(t){t=t,this.option={},this.option[I]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,D(t,this._theme.option),g(t,b,!1),this.mergeOption(t)}function L(t,e){l(e)||(e=e?[e]:[]);var i={};return r(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}function P(t,e,i){var n=e.type?e.type:i?i.subType:_.determineSubType(t,e);return n}function k(t,e){t._seriesIndicesMap=d(t._seriesIndices=s(e,(function(t){return t.componentIndex}))||[])}function O(t,e){return e.hasOwnProperty("subType")?o(t,(function(t){return t.subType===e.subType})):t}function R(t){}v(A,w);var E=A;t.exports=E},"7f59":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("e0d3"),s=i("2306"),l=i("f934");a.registerPreprocessor((function(t){var e=t.graphic;r.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var u=a.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,u.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,a=i.elements=e?[]:i.elements,s=[];this._flatten(n,s);var l=o.mappingToExists(a,s);o.makeIdAndName(l);var u=this._elOptionsToUpdate=[];r.each(l,(function(t,e){var i=t.option;i&&(u.push(i),p(t,i),g(a,e,i),m(a[e],i))}),this);for(var c=a.length-1;c>=0;c--)null==a[c]?a.splice(c,1):delete a[c].$action},_flatten:function(t,e,i){r.each(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function c(t,e,i,n){var a=i.type,r=s[a.charAt(0).toUpperCase()+a.slice(1)],o=new r(i);e.add(o),n.set(t,o),o.__ecGraphicId=t}function h(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){h(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function d(t){return t=r.extend({},t),r.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(e){delete t[e]})),t}function f(t,e){var i;return r.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function p(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function g(t,e,i){var n=r.extend({},i),a=t[e],o=i.$action||"merge";"merge"===o?a?(r.merge(a,n,!0),l.mergeLayoutParam(a,n,{ignoreSize:!0}),l.copyLayoutParams(i,a)):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&a&&(t[e]=null)}function m(t,e){t&&(t.hv=e.hv=[f(e,["left","right"]),f(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function v(t,e,i){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=t.info)}a.extendComponentView({type:"graphic",init:function(t,e){this._elMap=r.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;r.each(e,(function(e){var a=e.$action,r=e.id,o=i.get(r),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var f=d(e);a&&"merge"!==a?"replace"===a?(h(o,i),c(r,l,f,i)):"remove"===a&&h(o,i):o?o.attr(f):c(r,l,f,i);var p=i.get(r);p&&(p.__ecGraphicWidth=e.width,p.__ecGraphicHeight=e.height,v(p,t,e))}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=i.length-1;r>=0;r--){var o=i[r],s=a.get(o.id);if(s){var u=s.parent,c=u===n?{width:e.getWidth(),height:e.getHeight()}:{width:u.__ecGraphicWidth||0,height:u.__ecGraphicHeight||0};l.positionElement(s,o,c,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){h(e,t)})),this._elMap=r.createHashMap()},dispose:function(){this._clear()}})},"7f91":function(t,e,i){var n=i("2306"),a=i("401b"),r=n.Line.prototype,o=n.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var l=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(s(e)?r:o).buildPath(t,e)},pointAt:function(t){return s(this.shape)?r.pointAt.call(this,t):o.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=s(e)?[e.x2-e.x1,e.y2-e.y1]:o.tangentAt.call(this,t);return a.normalize(i,i)}});t.exports=l},"7f96":function(t,e){function i(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n,a){var r=t.getData(),o=t.get("symbol")||e,s=t.get("symbolSize"),l=t.get("symbolKeepAspect");if(r.setVisual({legendSymbol:i||o,symbol:o,symbolSize:s,symbolKeepAspect:l}),!n.isSeriesFiltered(t)){var u="function"===typeof s;return{dataEach:r.hasItemOption||u?c:null}}function c(e,i){if("function"===typeof s){var n=t.getRawValue(i),a=t.getDataParams(i);e.setItemVisual(i,"symbolSize",s(n,a))}if(e.hasItemOption){var r=e.getItemModel(i),o=r.getShallow("symbol",!0),l=r.getShallow("symbolSize",!0),u=r.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(i,"symbol",o),null!=l&&e.setItemVisual(i,"symbolSize",l),null!=u&&e.setItemVisual(i,"symbolKeepAspect",u)}}}}}t.exports=i},"80f0":function(t,e){function i(t){return t}function n(t,e,n,a,r){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=a||i,this.context=r}function a(t,e,i,n,a){for(var r=0;r0;r--)l*=.99,x(s,l,o),y(s,a,i,n,o),I(s,l,o),y(s,a,i,n,o)}function m(t,e){var i=[],n="vertical"===e?"y":"x",r=o(t,(function(t){return t.getLayout()[n]}));return r.keys.sort((function(t,e){return t-e})),a.each(r.keys,(function(t){i.push(r.buckets.get(t))})),i}function v(t,e,i,n,r,o,s){var l=[];a.each(e,(function(t){var e=t.length,i=0,u=0;a.each(t,(function(t){i+=t.getLayout().value})),u="vertical"===s?(r-(e-1)*o)/i:(n-(e-1)*o)/i,l.push(u)})),l.sort((function(t,e){return t-e}));var u=l[0];a.each(e,(function(t){a.each(t,(function(t,e){var i=t.getLayout().value*u;"vertical"===s?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))}))})),a.each(i,(function(t){var e=+t.getValue()*u;t.setLayout({dy:e},!0)}))}function y(t,e,i,n,r){a.each(t,(function(t){var a,o,s,l=0,u=t.length;if("vertical"===r){var c;for(t.sort((function(t,e){return t.getLayout().x-e.getLayout().x})),s=0;s0&&(c=a.getLayout().x+o,a.setLayout({x:c},!0)),l=a.getLayout().x+a.getLayout().dx+e;if(o=l-e-n,o>0)for(c=a.getLayout().x-o,a.setLayout({x:c},!0),l=c,s=u-2;s>=0;--s)a=t[s],o=a.getLayout().x+a.getLayout().dx+e-l,o>0&&(c=a.getLayout().x-o,a.setLayout({x:c},!0)),l=a.getLayout().x}else{var h;for(t.sort((function(t,e){return t.getLayout().y-e.getLayout().y})),s=0;s0&&(h=a.getLayout().y+o,a.setLayout({y:h},!0)),l=a.getLayout().y+a.getLayout().dy+e;if(o=l-e-i,o>0)for(h=a.getLayout().y-o,a.setLayout({y:h},!0),l=h,s=u-2;s>=0;--s)a=t[s],o=a.getLayout().y+a.getLayout().dy+e-l,o>0&&(h=a.getLayout().y-o,a.setLayout({y:h},!0)),l=a.getLayout().y}}))}function x(t,e,i){a.each(t.slice().reverse(),(function(t){a.each(t,(function(t){if(t.outEdges.length){var n=M(t.outEdges,_,i)/M(t.outEdges,S,i);if("vertical"===i){var a=t.getLayout().x+(n-w(t,i))*e;t.setLayout({x:a},!0)}else{var r=t.getLayout().y+(n-w(t,i))*e;t.setLayout({y:r},!0)}}}))}))}function _(t,e){return w(t.node2,e)*t.getValue()}function b(t,e){return w(t.node1,e)*t.getValue()}function w(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function S(t){return t.getValue()}function M(t,e,i){var n=0,a=t.length,r=-1;while(++r=0){var u=r.indexOf(s),c=r.substr(l+o.length,u-l-o.length);c.indexOf("sub")>-1?n["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[c],textOffset:[3,0]}:n["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[c]},r=r.substr(u+1),l=r.indexOf("{marker")}this.el=new a({style:{rich:n,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",(function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0})),this.el.on("mouseout",(function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var o=r;t.exports=o},8344:function(t,e,i){var n=i("6d8b"),a=i("f706"),r=i("3842"),o=i("6179"),s=i("923d"),l=i("88f0");function u(t,e,i){var n=e.coordinateSystem;t.each((function(a){var o,s=t.getItemModel(a),l=r.parsePercent(s.get("x"),i.getWidth()),u=r.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var c=t.get(n.dimensions[0],a),h=t.get(n.dimensions[1],a);o=n.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(a,o)}))}var c=l.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(u(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,o=t.id,s=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new a),d=h(r,t,e);e.setData(d),u(e.getData(),t,n),d.each((function(t){var i=d.getItemModel(t),n=i.getShallow("symbolSize");"function"===typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),d.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||s.getVisual("color"),symbol:i.getShallow("symbol")})})),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),c.__keep=!0,c.group.silent=e.get("silent")||t.get("silent")}});function h(t,e,i){var a;a=t?n.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return n.defaults({name:t},i)})):[{name:"value",type:"float"}];var r=new o(a,i),l=n.map(i.get("data"),n.curry(s.dataTransform,e));return t&&(l=n.filter(l,n.curry(s.dataFilter,t))),r.initData(l,null,t?s.dimValueGetter:function(t){return t.value}),r}t.exports=c},"83ba":function(t,e,i){var n=i("6d8b"),a=i("6cb7"),r=i("f934"),o=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,u=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=o(t);u.superApply(this,"init",arguments),c(t,a)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var i=t.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var a=n.map([0,1],(function(t){return s(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));l(t,e,{type:"box",ignoreSize:a})}var h=u;t.exports=h},"843e":function(t,e,i){var n=i("6d8b"),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function r(t){n.each(a,(function(e){this[e]=n.bind(t[e],t)}),this)}var o=r;t.exports=o},8459:function(t,e,i){var n=i("3eba"),a={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(a,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),n.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},"849b":function(t,e,i){var n=i("d9d0"),a=i("2039");function r(t,e){var i=[];return t.eachComponent("parallel",(function(a,r){var o=new n(a,t,e);o.name="parallel_"+r,o.resize(a,e),a.coordinateSystem=o,o.model=a,i.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}a.register("parallel",{create:r})},"84ce":function(t,e,i){var n=i("6d8b"),a=n.each,r=n.map,o=i("3842"),s=o.linearMap,l=o.getPixelPrecision,u=i("e073"),c=u.createAxisTicks,h=u.createAxisLabels,d=u.calculateCategoryInterval,f=[0,1],p=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function g(t,e){var i=t[1]-t[0],n=e,a=i/n/2;t[0]+=a,t[1]-=a}function m(t,e,i,n,r){var o=e.length;if(t.onBand&&!n&&o){var s,l=t.getExtent();if(1===o)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var u=e[1].coord-e[0].coord;a(e,(function(t){t.coord-=u/2;var e=e||0;e%2>0&&(t.coord-=u/(2*(e+1)))})),s={coord:e[o-1].coord+u},e.push(s)}var c=l[0]>l[1];h(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&h(l[0],e[0].coord)&&e.unshift({coord:l[0]}),h(l[1],s.coord)&&(r?s.coord=l[1]:e.pop()),r&&h(s.coord,l[1])&&e.push({coord:l[1]})}function h(t,e){return c?t>e:t=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count())),s(t,f,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count()));var a=s(t,i,f,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=c(this,e),n=i.ticks,a=r(n,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),o=e.get("alignWithLabel");return m(this,a,i.tickCategoryInterval,o,t.clamp),a},getViewLabels:function(){return h(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return d(this)}};var v=p;t.exports=v},"84d5":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("4319"),o=i("e0d3"),s=o.isNameSpecified,l=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){l.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),u=l;t.exports=u},"857d":function(t,e){var i=2*Math.PI;function n(t){return t%=i,t<0&&(t+=i),t}e.normalizeRadian=n},"862d":function(t,e,i){var n=i("6d8b"),a=n.createHashMap,r=n.each,o=n.isString,s=n.defaults,l=n.extend,u=n.isObject,c=n.clone,h=i("e0d3"),d=h.normalizeToArray,f=i("0f99"),p=f.guessOrdinal,g=i("ec6f"),m=i("2f45"),v=m.OTHER_DIMENSIONS;function y(t,e,i){g.isInstance(e)||(e=g.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var n=(i.dimsDef||[]).slice(),h=a(i.encodeDef),f=a(),m=a(),y=[],b=x(e,t,n,i.dimCount),w=0;we&&r>n||ra?o:0}t.exports=i},"879e":function(t,e,i){var n=i("3eba"),a=i("6179"),r=i("6d8b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("4319"),u=i("eda2"),c=u.encodeHTML,h=i("237f"),d=n.extendSeriesModel({type:"series.graph",init:function(t){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){d.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){d.superApply(this,"mergeDefaultAndTheme",arguments),s(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return h(n,i,this,!0,r).data;function r(t,i){t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t}));var n=a.getModel("edgeLabel"),r=new l({label:n.option},n.parentModel,e),o=a.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,e);function u(t){return t=this.parsePath(t),t&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(u),t}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=c(l.join(" > ")),a.value&&(l+=" : "+c(a.value)),l}return d.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=r.map(this.option.categories||[],(function(t){return null!=t.value?t:r.extend({value:0},t)})),e=new a(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return d.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),f=d;t.exports=f},"87b1":function(t,e,i){var n=i("cbe5"),a=i("4fac"),r=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){a.buildPath(t,e,!0)}});t.exports=r},"87c3":function(t,e,i){var n=i("6d8b"),a=n.map,r=i("cccd"),o=i("ee1a"),s=o.isDimensionStacked;function l(t){return{seriesType:t,plan:r(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,r=n.large;if(i){var o=a(i.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),l=o.length,u=e.getCalculationInfo("stackResultDimension");return s(e,o[0])&&(o[0]=u),s(e,o[1])&&(o[1]=u),l&&{progress:c}}function c(t,e){for(var n=t.end-t.start,a=r&&new Float32Array(n*l),s=t.start,u=0,c=[],h=[];s=0?h():c=setTimeout(h,-a),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function o(t,e,o,s){var l=t[e];if(l){var u=l[i]||l,c=l[a],h=l[n];if(h!==o||c!==s){if(null==o||!s)return t[e]=u;l=t[e]=r(u,o,"debounce"===s),l[i]=u,l[a]=s,l[n]=o}return l}}function s(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])}e.throttle=r,e.createOrUpdate=o,e.clear=s},"88f0":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=a.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var a=this.type+"Model";e.eachSeries((function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=r},8918:function(t,e,i){var n=i("6d8b"),a=i("625e"),r=a.parseClassType,o=0;function s(t){return[t||"",o++,Math.random().toFixed(5)].join("_")}function l(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=r(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var o=r(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](n))}return a},t}function u(t,e){function i(t){var i={},o=[];return n.each(t,(function(s){var l=a(i,s),u=l.originalDeps=e(s),c=r(u,t);l.entryCount=c.length,0===l.entryCount&&o.push(s),n.each(c,(function(t){n.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=a(i,t);n.indexOf(e.successor,t)<0&&e.successor.push(s)}))})),{graph:i,noEntryList:o}}function a(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return n.each(t,(function(t){n.indexOf(e,t)>=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,a,r){if(t.length){var o=i(e),s=o.graph,l=o.noEntryList,u={};n.each(t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(a.call(r,c,h.originalDeps.slice()),delete u[c]),n.each(h.successor,d?p:f)}n.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){u[t]=!0,f(t)}}}e.getUID=s,e.enableSubTypeDefaulter=l,e.enableTopologicalTravel=u},8971:function(t,e){var i="";"undefined"!==typeof navigator&&(i=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=n},"897a":function(t,e,i){var n=i("22d1"),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function r(t){return n.browser.ie&&n.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;re[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(){return o.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=n.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=s(t,i,!0),a.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,a=n[1]-n[0];if(isFinite(a)){a<0&&(a=-a,n.reverse());var r=o.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=s(Math.ceil(e[1]/a)*a))}});l.create=function(){return new l};var u=l;t.exports=u},"8b7f":function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.createHashMap,o=(a.retrieve,a.each);function s(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:r(),categoryAxisMap:r()},n=l[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}var l={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],r=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),u(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),u(r)&&(n.set("y",r),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),u(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),u(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),u(o)&&(n.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,r=a.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=r.dimensions.slice();o(r.parallelAxisIndex,(function(t,r){var o=a.getComponent("parallelAxis",t),l=s[r];i.set(l,o),u(o)&&null==e.firstCategoryDimIndex&&(n.set(l,o),e.firstCategoryDimIndex=r)}))}};function u(t){return"category"===t.get("type")}e.getCoordSysDefineBySeries=s},"8c2a":function(t,e,i){var n=i("6d8b"),a=i("e0d8"),r=i("3842"),o=i("89e3"),s=a.prototype,l=o.prototype,u=r.getPrecisionSafe,c=r.round,h=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalScale=new o},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return n.map(l.getTicks.call(this),(function(n){var a=r.round(f(this.base,n));return a=n===e[0]&&t.__fixMin?m(a,i[0]):a,a=n===e[1]&&t.__fixMax?m(a,i[1]):a,a}),this)},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var i=this.base;t=p(t)/p(i),e=p(e)/p(i),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=m(e[0],n[0])),i.__fixMax&&(e[1]=m(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=r.quantity(i),a=t/i*n;a<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var o=[r.round(d(e[0]/n)*n),r.round(h(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return c(t,u(e))}n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},"8d32":function(t,e,i){var n=i("cbe5"),a=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r,0),r=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(r),u=Math.sin(r);t.moveTo(l*a+i,u*a+n),t.arc(i,n,a,r,o,!s)}});t.exports=a},"8deb":function(t,e,i){var n=i("3eba");i("5522"),i("a016"),i("1466");var a=i("98e7"),r=i("7f96"),o=i("870e"),s=i("d3f47"),l=i("7891");n.registerVisual(a("radar")),n.registerVisual(r("radar","circle")),n.registerLayout(o),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},"8e43":function(t,e,i){var n=i("6d8b"),a=n.createHashMap,r=n.isObject,o=n.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&o(i,c);return new s({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=a(t.categories))}function c(t){return r(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!==typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=u(this);return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var h=s;t.exports=h},"8e77":function(t,e,i){var n=i("6d8b"),a=i("41ef"),r=i("6179"),o=i("3842"),s=i("2306"),l=i("923d"),u=i("88f0"),c=function(t,e,i,a){var r=l.dataTransform(t,a[0]),o=l.dataTransform(t,a[1]),s=n.retrieve,u=r.coord,c=o.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),c[0]=s(c[0],1/0),c[1]=s(c[1],1/0);var h=n.mergeAll([{},r,o]);return h.coord=[r.coord,o.coord],h.x0=r.x,h.y0=r.y,h.x1=o.x,h.y1=o.y,h};function h(t){return!isNaN(t)&&!isFinite(t)}function d(t,e,i,n){var a=1-t;return h(e[a])&&h(i[a])}function f(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!d(1,i,n,t)&&!d(0,i,n,t))||(l.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||l.dataFilter(t,{coord:n,x:e.x1,y:e.y1}))}function p(t,e,i,n,a){var r,s=n.coordinateSystem,l=t.getItemModel(e),u=o.parsePercent(l.get(i[0]),a.getWidth()),c=o.parsePercent(l.get(i[1]),a.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(i,e));else{var d=t.get(i[0],e),f=t.get(i[1],e),p=[d,f];s.clampData&&s.clampData(p,p),r=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=t.get(i[0],e),f=t.get(i[1],e);h(d)?r[0]=g.toGlobalCoord(g.getExtent()["x0"===i[0]?0:1]):h(f)&&(r[1]=m.toGlobalCoord(m.getExtent()["y0"===i[1]?0:1]))}isNaN(u)||(r[0]=u),isNaN(c)||(r[1]=c)}else r=[u,c];return r}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function m(t,e,i){var a,o,s=["x0","y0","x1","y1"];t?(a=n.map(t&&t.dimensions,(function(t){var i=e.getData(),a=i.getDimensionInfo(i.mapDimension(t))||{};return n.defaults({name:t},a)})),o=new r(n.map(s,(function(t,e){return{name:t,type:a[e%2].type}})),i)):(a=[{name:"value",type:"float"}],o=new r(a,i));var l=n.map(i.get("data"),n.curry(c,e,t,i));t&&(l=n.filter(l,n.curry(f,t)));var u=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return o.initData(l,null,u),o.hasItemOption=!0,o}u.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var a=e.getData();a.each((function(e){var r=n.map(g,(function(n){return p(a,e,n,t,i)}));a.setItemLayout(e,r);var o=a.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},renderSeries:function(t,e,i,r){var o=t.coordinateSystem,l=t.id,u=t.getData(),c=this.markerGroupMap,h=c.get(l)||c.set(l,{group:new s.Group});this.group.add(h.group),h.__keep=!0;var d=m(o,t,e);e.setData(d),d.each((function(e){d.setItemLayout(e,n.map(g,(function(i){return p(d,e,i,t,r)}))),d.setItemVisual(e,{color:u.getVisual("color")})})),d.diff(h.__data).add((function(t){var e=new s.Polygon({shape:{points:d.getItemLayout(t)}});d.setItemGraphicEl(t,e),h.group.add(e)})).update((function(t,i){var n=h.__data.getItemGraphicEl(i);s.updateProps(n,{shape:{points:d.getItemLayout(t)}},e,t),h.group.add(n),d.setItemGraphicEl(t,n)})).remove((function(t){var e=h.__data.getItemGraphicEl(t);h.group.remove(e)})).execute(),d.eachItemGraphicEl((function(t,i){var r=d.getItemModel(i),o=r.getModel("label"),l=r.getModel("emphasis.label"),u=d.getItemVisual(i,"color");t.useStyle(n.defaults(r.getModel("itemStyle").getItemStyle(),{fill:a.modifyAlpha(u,.4),stroke:u})),t.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(t.style,t.hoverStyle,o,l,{labelFetcher:e,labelDataIndex:i,defaultText:d.getName(i)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(t,{}),t.dataModel=e})),h.__data=d,h.group.silent=e.get("silent")||t.get("silent")}})},"8ec5":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("2145"),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),a.each(this.option.feature,(function(t,e){var i=r.get(e);i&&a.merge(t,i.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}}),s=o;t.exports=s},"8ed2":function(t,e,i){i("48c7");var n=i("6cb7"),a=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=a},"8ee0":function(t,e,i){i("3f8e");var n=i("697e7"),a=n.registerPainter,r=i("dc20");a("svg",r)},"903c":function(t,e){function i(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i=a.length||t===a[t.depth]){var r=m(l,x,t,e,S,o);u(t,r,i,n,a,o)}}))}else g=h(x,t),t.setVisual("color",g)}}function c(t,e,i,n){var a=r.extend({},e);return r.each(["color","colorAlpha","colorSaturation"],(function(r){var o=t.get(r,!0);null==o&&i&&(o=i[r]),null==o&&(o=e[r]),null==o&&(o=n.get(r)),null!=o&&(a[r]=o)})),a}function h(t){var e=f(t,"color");if(e){var i=f(t,"colorAlpha"),n=f(t,"colorSaturation");return n&&(e=a.modifyHSL(e,null,null,n)),i&&(e=a.modifyAlpha(e,i)),e}}function d(t,e){return null!=e?a.modifyHSL(e,null,null,t):null}function f(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function p(t,e,i,a,r,o){if(o&&o.length){var s=g(e,"color")||null!=r.color&&"none"!==r.color&&(g(e,"colorAlpha")||g(e,"colorSaturation"));if(s){var l=e.get("visualMin"),u=e.get("visualMax"),c=i.dataExtent.slice();null!=l&&lc[1]&&(c[1]=u);var h=e.get("colorMappingBy"),d={type:s.name,dataExtent:c,visual:s.range};"color"!==d.type||"index"!==h&&"id"!==h?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new n(d);return f.__drColorMappingBy=h,f}}}function g(t,e){var i=t.get(e);return o(i)&&i.length?{name:e,range:i}:null}function m(t,e,i,n,a,o){var s=r.extend({},e);if(a){var l=a.type,u="color"===l&&a.__drColorMappingBy,c="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=a.mapValueToVisual(c)}return s}t.exports=l},"923d":function(t,e,i){var n=i("6d8b"),a=i("3842"),r=i("ee1a"),o=r.isDimensionStacked,s=n.indexOf;function l(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function u(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function c(t,e,i,n,r,s){var l=[],u=o(e,n),c=u?e.getCalculationInfo("stackResultDimension"):n,h=y(e,c,t),d=e.indicesOfNearest(c,h)[0];l[r]=e.get(i,d),l[s]=e.get(n,d);var f=a.getPrecision(e.get(n,d));return f=Math.min(f,20),f>=0&&(l[s]=+l[s].toFixed(f)),l}var h=n.curry,d={min:h(c,"min"),max:h(c,"max"),average:h(c,"average")};function f(t,e){var i=t.getData(),a=t.coordinateSystem;if(e&&!u(e)&&!n.isArray(e.coord)&&a){var r=a.dimensions,o=p(e,i,a,t);if(e=n.clone(e),e.type&&d[e.type]&&o.baseAxis&&o.valueAxis){var l=s(r,o.baseAxis.dim),c=s(r,o.valueAxis.dim);e.coord=d[e.type](i,o.baseDataDim,o.valueDataDim,l,c),e.value=e.coord[c]}else{for(var h=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],f=0;f<2;f++)d[h[f]]&&(h[f]=y(i,i.mapDimension(r[f]),h[f]));e.coord=h}}return e}function p(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(g(n,a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function g(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;ar&&(c=s.interval=r);var h=s.intervalPrecision=o(c),d=s.niceTickExtent=[a(Math.ceil(t[0]/c)*c,h),a(Math.floor(t[1]/c)*c,h)];return l(d,t),s}function o(t){return n.getPrecisionSafe(t)+2}function s(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),s(t,0,e),s(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function u(t,e,i,n){var r=[];if(!t)return r;var o=1e4;e[0]o)return[]}return e[1]>(r.length?r[r.length-1]:i[1])&&r.push(e[1]),r}e.intervalScaleNiceTicks=r,e.getIntervalPrecision=o,e.fixExtent=l,e.intervalScaleGetTicks=u},"94b1":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("9d57"),o=r.layout,s=r.largeLayout;i("5aa9"),i("17b8"),i("67cc"),i("01ed"),n.registerLayout(a.curry(o,"bar")),n.registerLayout(s),n.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},"94e4":function(t,e,i){var n=i("401b");function a(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),a=t.getData(),r=a.graph,o=0,s=a.getSum("value"),l=2*Math.PI/(s||a.count()),u=i.width/2+i.x,c=i.height/2+i.y,h=Math.min(i.width,i.height)/2;r.eachNode((function(t){var e=t.getValue("value");o+=l*(s?e:1)/2,t.setLayout([h*Math.cos(o)+u,h*Math.sin(o)+c]),o+=l*(s?e:1)/2})),a.setLayout({cx:u,cy:c}),r.eachEdge((function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,a=n.clone(t.node1.getLayout()),r=n.clone(t.node2.getLayout()),o=(a[0]+r[0])/2,s=(a[1]+r[1])/2;+i&&(i*=3,e=[u*i+o*(1-i),c*i+s*(1-i)]),t.setLayout([a,r,e])}))}}e.circularLayout=a},"95a8":function(t,e,i){var n=i("3eba");i("1953"),i("307d"),n.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},9680:function(t,e){function i(t,e,i,n,a,r,o){if(0===a)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&r>i+s||r=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var u=l;t.exports=u},"98b7":function(t,e){var i="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=i},"98e7":function(t,e,i){var n=i("6d8b"),a=n.createHashMap;function r(t){return{getTargetSeries:function(e){var i={},n=a();return e.eachSeriesByType(t,(function(t){t.__paletteScope=i,n.set(t.uid,t)})),n},reset:function(t,e){var i=t.getRawData(),n={},a=t.getData();a.each((function(t){var e=a.getRawIndex(t);n[e]=t})),i.each((function(e){var r=n[e],o=null!=r&&a.getItemVisual(r,"color",!0);if(o)i.setItemVisual(e,"color",o);else{var s=i.getItemModel(e),l=s.get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",l),null!=r&&a.setItemVisual(r,"color",l)}}))}}}t.exports=r},"998c":function(t,e,i){var n=i("6d8b"),a=i("2306"),r=Math.PI;function o(t,e){e=e||{},n.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new a.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=new a.Arc({shape:{startAngle:-r/2,endAngle:-r/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new a.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*r/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*r/2}).delay(300).start("circularInOut");var l=new a.Group;return l.add(o),l.add(s),l.add(i),l.resize=function(){var e=t.getWidth()/2,n=t.getHeight()/2;o.setShape({cx:e,cy:n});var a=o.shape.r;s.setShape({x:e-a,y:n-a,width:2*a,height:2*a}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}t.exports=o},"9bdb":function(t,e,i){var n=i("282b"),a=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(t,e){return a(this,t,e)}};t.exports=r},"9c2c":function(t,e,i){var n=i("401b"),a=n.min,r=n.max,o=n.scale,s=n.distance,l=n.add,u=n.clone,c=n.sub;function h(t,e,i,n){var h,d,f,p,g=[],m=[],v=[],y=[];if(n){f=[1/0,1/0],p=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)a(f,f,t[x]),r(p,p,t[x]);a(f,f,n[0]),r(p,p,n[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(i)h=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(u(t[x]));continue}h=t[x-1],d=t[x+1]}c(m,d,h),o(m,m,e);var w=s(b,h),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(v,m,-w),o(y,m,S);var I=l([],b,v),A=l([],b,y);n&&(r(I,I,f),a(I,I,p),r(A,A,f),a(A,A,p)),g.push(I),g.push(A)}return i&&g.push(g.shift()),g}t.exports=h},"9ca8":function(t,e,i){var n=i("6d8b"),a=i("9850"),r=i("3842"),o=r.parsePercent,s=r.MAX_SAFE_INTEGER,l=i("f934"),u=i("55ac"),c=Math.max,h=Math.min,d=n.retrieve,f=n.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],m=["upperLabel","show"],v=["upperLabel","height"],y={seriesType:"treemap",reset:function(t,e,i,r){var s=i.getWidth(),c=i.getHeight(),h=t.option,p=l.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),g=h.size||[],m=o(d(p.width,g[0]),s),v=o(d(p.height,g[1]),c),y=r&&r.type,_=["treemapZoomToNode","treemapRootToNode"],b=u.retrieveTargetInfo(r,_,t),w="treemapRender"===y||"treemapMove"===y?r.rootRect:null,S=t.getViewRoot(),M=u.getPathToRoot(S);if("treemapMove"!==y){var I="treemapZoomToNode"===y?A(t,b,S,m,v):w?[w.width,w.height]:[m,v],C=h.sort;C&&"asc"!==C&&"desc"!==C&&(C="desc");var L={squareRatio:h.squareRatio,sort:C,leafDepth:h.leafDepth};S.hostTree.clearLayouts();var P={x:0,y:0,width:I[0],height:I[1],area:I[0]*I[1]};S.setLayout(P),x(S,L,!1,0);P=S.getLayout();f(M,(function(t,e){var i=(M[e+1]||S).getValue();t.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},P))}))}var k=t.getData().tree.root;k.setLayout(T(p,w,b),!0),t.setLayoutInfo(p),D(k,new a(-p.x,-p.y,s,c),M,S,0)}};function x(t,e,i,n){var a,r;if(!t.isRemoved()){var o=t.getLayout();a=o.width,r=o.height;var s=t.getModel(),l=s.get(p),u=s.get(g)/2,d=C(s),f=Math.max(l,d),m=l-u,v=f-u;s=t.getModel();t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:d},!0),a=c(a-2*m,0),r=c(r-m-v,0);var y=a*r,b=_(t,s,y,e,i,n);if(b.length){var w={x:m,y:v,width:a,height:r},S=h(a,r),A=1/0,T=[];T.area=0;for(var D=0,L=b.length;D=0;l--){var u=a["asc"===n?o-l-1:l].getValue();u/i*es[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function M(t,e,i){for(var n,a=0,r=1/0,o=0,s=t.length;oa&&(a=n));var l=t.area*t.area,u=e*e*i;return l?c(u*a/l,l/(u*r)):1/0}function I(t,e,i,n,a){var r=e===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],u=i[s[r]],d=e?t.area/e:0;(a||d>i[l[o]])&&(d=i[l[o]]);for(var f=0,p=t.length;fs&&(c=s),o=r}c=0?"p":"n",P=_;if(y&&(r[l][I]||(r[l][I]={p:_,n:_}),P=r[l][I][L]),x){var k=i.dataToPoint([M,I]);A=P,T=k[1]+c,D=k[0]-_,C=h,Math.abs(D)c||(u=c),{progress:d}}function d(t,e){var c,d=new h(2*t.count),f=[],p=[],g=0;while(null!=(c=t.next()))p[l]=e.get(r,c),p[1-l]=e.get(o,c),f=i.dataToPoint(p,null,f),d[g++]=f[0],d[g++]=f[1];e.setLayout({largePoints:d,barWidth:u,valueAxisStart:S(n,a,!1),valueAxisHorizontal:s})}}};function b(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function w(t){return t.pipelineContext&&t.pipelineContext.large}function S(t,e,i){var n,a,r=e.getGlobalExtent();r[0]>r[1]?(n=r[1],a=r[0]):(n=r[0],a=r[1]);var o=e.toGlobalCoord(e.dataToCoord(0));return oa&&(o=a),o}e.getLayoutOnAxis=p,e.prepareLayoutBarSeries=g,e.makeColumnLayout=m,e.retrieveColumnLayout=y,e.layout=x,e.largeLayout=_},"9e2e":function(t,e,i){var n=i("a73c"),a=i("9850"),r=i("82eb"),o=r.WILL_BE_RESTORED,s=new a,l=function(){};l.prototype={constructor:l,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){t.save();var r=this.transform;i.transformText?this.setTransform(t):r&&(s.copy(e),s.applyTransform(r),e=s),n.renderText(this,t,a,i,e,o),t.restore()}}};var u=l;t.exports=u},"9e47":function(t,e,i){var n=i("6d8b"),a=i("71ad"),r=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,u=i("8e43"),c=["value","category","time","log"];function h(t,e,i,o){n.each(c,(function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,u=o?s(e):{},c=a.getTheme();n.merge(e,c.get(r+"Axis")),n.merge(e,this.getDefaultOption()),e.type=i(t,e),o&&l(e,u,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},a[r+"Axis"],o],!0)})})),r.registerSubTypeDefaulter(t+"Axis",n.curry(i,t))}t.exports=h},"9e87":function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("50e5");n.registerAction("dataZoom",(function(t,e){var i=r.createLinkedNodesFinder(a.bind(e.eachComponent,e,"dataZoom"),r.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),a.each(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},"9f51":function(t,e,i){var n=i("857d"),a=n.normalizeRadian,r=2*Math.PI;function o(t,e,i,n,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>i||d+ho&&(o+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=n&&p<=o||p+r>=n&&p+r<=o}e.containStroke=o},"9f82":function(t,e,i){var n=i("ee1a"),a=n.isDimensionStacked,r=i("6d8b"),o=r.map;function s(t,e,i){var n,r=t.getBaseAxis(),s=t.getOtherAxis(r),u=l(s,i),c=r.dim,h=s.dim,d=e.mapDimension(h),f=e.mapDimension(c),p="x"===h||"radius"===h?1:0,g=o(t.dimensions,(function(t){return e.mapDimension(t)})),m=e.getCalculationInfo("stackResultDimension");return(n|=a(e,g[0]))&&(g[0]=m),(n|=a(e,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!n,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function u(t,e,i,n){var a=NaN;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var r=t.baseDataOffset,o=[];return o[r]=i.get(t.baseDim,n),o[1-r]=a,e.dataToPoint(o)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=u},"9fa3":function(t,e,i){var n=i("4ab1"),a=i("6d8b"),r=i("1687");function o(t,e){n.call(this,t,e,"clipPath","__clippath_in_use__")}a.inherits(o,n),o.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},o.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,a,o=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},o.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&a.each(t.__clipPaths,(function(t){t._dom&&n.prototype.markUsed.call(e,t._dom),t._textDom&&n.prototype.markUsed.call(e,t._textDom)}))};var s=o;t.exports=s},"9fad":function(t,e,i){var n,a,r;(function(o,s){a=[e,i("313e")],n=s,r="function"===typeof n?n.apply(e,a):n,void 0===r||(t.exports=r)})(0,(function(t,e){var i=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var n=["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"],a={color:n,title:{textStyle:{fontWeight:"normal"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{iconStyle:{normal:{borderColor:"#06467c"}}},tooltip:{backgroundColor:"rgba(0,0,0,0.6)"},dataZoom:{dataBackgroundColor:"#dedede",fillerColor:"rgba(154,217,247,0.2)",handleColor:"#005eaa"},timeline:{lineStyle:{color:"#005eaa"},controlStyle:{normal:{color:"#005eaa",borderColor:"#005eaa"}}},candlestick:{itemStyle:{normal:{color:"#c12e34",color0:"#2b821d",lineStyle:{width:1,color:"#c12e34",color0:"#2b821d"}}}},graph:{color:n},map:{label:{normal:{textStyle:{color:"#c12e34"}},emphasis:{textStyle:{color:"#c12e34"}}},itemStyle:{normal:{borderColor:"#eee",areaColor:"#ddd"},emphasis:{areaColor:"#e6b600"}}},gauge:{axisLine:{show:!0,lineStyle:{color:[[.2,"#2b821d"],[.8,"#005eaa"],[1,"#c12e34"]],width:5}},axisTick:{splitNumber:10,length:8,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:12,lineStyle:{color:"auto"}},pointer:{length:"90%",width:3,color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}}};e.registerTheme("shine",a)}else i("ECharts is not Loaded")}))},a016:function(t,e,i){var n=i("4f85"),a=i("e46b"),r=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=n.extend({type:"series.radar",dependencies:["radar"],init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),a=this.getData().getName(t);return s(""===a?this.name:a)+"
"+r.map(n,(function(i,n){var a=e.get(e.mapDimension(i.dim),t);return s(i.name+" : "+a)})).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=l;t.exports=u},a04e:function(t,e,i){var n=i("6cb7");n.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a15a:function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("9850"),o=a.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n+r),t.lineTo(i-a,n+r),t.closePath()}}),s=a.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n),t.lineTo(i,n+r),t.lineTo(i-a,n),t.closePath()}}),l=a.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,r=Math.max(a,e.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(i-c,l+s),t.arc(i,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),u=a.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,r=e.y,o=n/3*2;t.moveTo(a,r),t.lineTo(a+o,r+i),t.lineTo(a,r+i/4*3),t.lineTo(a-o,r+i),t.lineTo(a,r),t.closePath()}}),c={line:a.Line,rect:a.Rect,roundRect:a.Rect,square:a.Rect,circle:a.Circle,diamond:s,pin:l,arrow:u,triangle:o},h={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var r=Math.min(i,n);a.x=t,a.y=e,a.width=r,a.height=r},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},d={};n.each(c,(function(t,e){d[e]=new t}));var f=a.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,a=d[n];"none"!==e.symbolType&&(a||(n="rect",a=d[n]),h[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i))}});function p(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function g(t,e,i,n,o,s,l){var u,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),u=0===t.indexOf("image://")?a.makeImage(t.slice(8),new r(e,i,n,o),l?"center":"cover"):0===t.indexOf("path://")?a.makePath(t.slice(7),{},new r(e,i,n,o),l?"center":"cover"):new f({shape:{symbolType:t,x:e,y:i,width:n,height:o}}),u.__isEmptyBrush=c,u.setColor=p,u.setColor(s),u}e.createSymbol=g},a18f:function(t,e,i){var n=i("3a56"),a=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=a},a38d:function(t,e,i){var n=i("2306"),a=i("392f"),r=i("9680"),o=i("68ab"),s=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var a=0;a0){t.moveTo(i[a++],i[a++]);for(var o=1;o0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l0)for(var c=n[l++],h=n[l++],d=1;d0){var g=(c+f)/2-(h-p)*a,m=(h+p)/2-(f-c)*a;if(o.containStroke(c,h,g,m,f,p))return s}else if(r.containStroke(c,h,f,p))return s;s++}return-1}});function l(){this.group=new n.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(t){this.group.removeAll();var e=new s({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},u.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(t,e){var i=new s;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("color");a&&t.setStyle("stroke",a),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)})))},u._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var c=l;t.exports=c},a4b1:function(t,e,i){var n=i("3eba");i("00ba"),i("4d62");var a=i("98e7"),r=i("24b9"),o=i("d3f47");n.registerVisual(a("funnel")),n.registerLayout(r),n.registerProcessor(o("funnel"))},a4fe:function(t,e,i){var n=i("3eba"),a="\0_ec_interaction_mutex";function r(t,e,i){var n=l(t);n[e]=i}function o(t,e,i){var n=l(t),a=n[e];a===i&&(n[e]=null)}function s(t,e){return!!l(t)[e]}function l(t){return t[a]||(t[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=r,e.release=o,e.isTaken=s},a666:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",u=n.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){r=this._mapDraw;r&&a.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),(function(e,i){if(!isNaN(e)){var u=n.getItemLayout(i);if(u&&u.point){var d=u.point,f=u.offset,p=new r.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:r.Z2_EMPHASIS_LIFT+1)});if(!f){var g=t.mainSeries.getData(),m=n.getName(i),v=g.indexOfName(m),y=n.getItemModel(i),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=a.retrieve2(t.getFormattedLabel(v,"normal"),m),S=a.retrieve2(t.getFormattedLabel(v,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var A=a.curry(c,!0),T=a.curry(c,!1);b.on("mouseover",A).on("mouseout",T).on("emphasis",A).on("normal",T)}b[l]=I,a.extend(M,{recordVersion:I,circle:p,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),h(M,!1)}o.add(p)}}}))}});function c(t){var e=this[s];e&&e.recordVersion===this[l]&&h(e,t)}function h(t,e){var i=t.circle,n=t.labelModel,a=t.hoverLabelModel,o=t.emphasisText,s=t.normalText;e?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}t.exports=u},a73c:function(t,e,i){var n=i("6d8b"),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,c=i("e86a"),h=i("5693"),d=i("5e76"),f=i("7d6d"),p=i("82eb"),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]];function b(t){return w(t),o(t.rich,w),t}function w(t){if(t){t.font=c.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||x[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=s(t.textPadding))}}function S(t,e,i,n,a,r){n.rich?I(t,e,i,n,a,r):M(t,e,i,n,a,r)}function M(t,e,i,n,a,r){"use strict";var o,s=C(n),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;r!==m?(r&&(o=r.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var h=n.font||v;l&&h===(o.font||v)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var p=n.textPadding,y=n.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=c.parsePlainText(i,d,p,y,n.truncate));var b=x.outerHeight,w=x.lines,S=x.lineHeight,M=k(b,n,a),I=M.baseX,A=M.baseY,D=M.textAlign||"left",P=M.textVerticalAlign;T(e,n,a,I,A);var O=c.adjustTextY(A,b,P),N=I,V=O;if(s||p){var B=c.getWidth(i,d),F=B;p&&(F+=p[1]+p[3]);var G=c.adjustTextX(I,F,D);s&&L(t,e,n,G,O,F,b),p&&(N=z(I,D,p),V+=p[0])}e.textAlign=D,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var H=0;H<_.length;H++){var W=_[H],Z=W[0],U=W[1],j=n[Z];l&&j===o[Z]||(e[U]=f(e,U,j||W[2]))}V+=S/2;var Y=n.textStrokeWidth,X=l?o.textStrokeWidth:null,q=!l||Y!==X,K=!l||q||n.textStroke!==o.textStroke,$=R(n.textStroke,Y),J=E(n.textFill);if($&&(q&&(e.lineWidth=Y),K&&(e.strokeStyle=$)),J&&(l&&n.textFill===o.textFill||(e.fillStyle=J)),1===w.length)$&&e.strokeText(w[0],N,V),J&&e.fillText(w[0],N,V);else for(H=0;H=0&&(b=S[E],"right"===b.textAlign))D(t,e,b,n,I,y,R,"right"),A-=b.width,R-=b.width,E--;O+=(r-(O-v)-(x-R)-A)/2;while(P<=E)b=S[P],D(t,e,b,n,I,y,O+b.width/2,"center"),O+=b.width,P++;y+=I}}function T(t,e,i,n,a){if(i&&e.textRotation){var r=e.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function D(t,e,i,n,o,s,l,u){var c=n.rich[i.styleName]||{};c.text=i.text;var h=i.textVerticalAlign,d=s+o/2;"top"===h?d=s+i.height/2:"bottom"===h&&(d=s+o-i.height/2),!i.isLineHolder&&C(c)&&L(t,e,c,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=z(l,u,f),d-=i.height/2-f[2]-i.textHeight/2),O(e,"shadowBlur",r(c.textShadowBlur,n.textShadowBlur,0)),O(e,"shadowColor",c.textShadowColor||n.textShadowColor||"transparent"),O(e,"shadowOffsetX",r(c.textShadowOffsetX,n.textShadowOffsetX,0)),O(e,"shadowOffsetY",r(c.textShadowOffsetY,n.textShadowOffsetY,0)),O(e,"textAlign",u),O(e,"textBaseline","middle"),O(e,"font",i.font||v);var p=R(c.textStroke||n.textStroke,m),g=E(c.textFill||n.textFill),m=a(c.textStrokeWidth,n.textStrokeWidth);p&&(O(e,"lineWidth",m),O(e,"strokeStyle",p),e.strokeText(i.text,l,d)),g&&(O(e,"fillStyle",g),e.fillText(i.text,l,d))}function C(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function L(t,e,i,n,a,r,o){var s=i.textBackgroundColor,c=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(O(e,"shadowBlur",i.textBoxShadowBlur||0),O(e,"shadowColor",i.textBoxShadowColor||"transparent"),O(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),O(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||c&&f){e.beginPath();var g=i.textBorderRadius;g?h.buildPath(e,{x:n,y:a,width:r,height:o,r:g}):e.rect(n,a,r,o),e.closePath()}if(p)if(O(e,"fillStyle",s),null!=i.fillOpacity){var m=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(u(s)){var v=s.image;v=d.createOrUpdateImage(v,null,t,P,s),v&&d.isImageReady(v)&&e.drawImage(v,n,a,r,o)}if(c&&f)if(O(e,"lineWidth",c),O(e,"strokeStyle",f),null!=i.strokeOpacity){m=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function P(t,e){e.image=t}function k(t,e,i){var n=e.x||0,a=e.y||0,r=e.textAlign,o=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+N(s[0],i.width),a=i.y+N(s[1],i.height);else{var l=c.adjustTextPositionOnRect(s,i,e.textDistance);n=l.x,a=l.y,r=r||l.textAlign,o=o||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],a+=u[1])}return{baseX:n,baseY:a,textAlign:r,textVerticalAlign:o}}function O(t,e,i){return t[e]=f(t,e,i),t[e]}function R(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function E(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function N(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function z(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function V(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=b,e.renderText=S,e.getStroke=R,e.getFill=E,e.needDrawText=V},a753:function(t,e,i){var n=i("1f0e"),a=i("2306"),r=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,u=o.linearMap;function c(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),r=Math.min(n,a),o=s(i[0],e.getWidth()),l=s(i[1],e.getHeight()),u=s(t.get("radius"),r/2);return{cx:o,cy:l,r:u}}function h(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var d=2*Math.PI,f=r.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=c(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,r){for(var o=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),u=t.get("clockwise"),c=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=(h-c)%d,p=c,g=l.get("width"),m=0;m=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){P=Math.cos(I),k=Math.sin(I);var V=new a.Line({shape:{x1:P*g+f,y1:k*g+p,x2:P*(g-M)+f,y2:k*(g-M)+p},silent:!0,style:C});"auto"===C.stroke&&V.setStyle({stroke:n((L+z/w)/b)}),d.add(V),I+=T}I-=T}else I+=A}},_renderPointer:function(t,e,i,r,o,l,c,h){var d=this.group,f=this._data;if(t.get("pointer.show")){var p=[+t.get("min"),+t.get("max")],g=[l,c],m=t.getData(),v=m.mapDimension("value");m.diff(f).add((function(e){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:u(m.get(v,e),p,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)})).update((function(e,i){var n=f.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:u(m.get(v,e),p,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)})).remove((function(t){var e=f.getItemGraphicEl(t);d.remove(e)})).execute(),m.eachItemGraphicEl((function(t,e){var i=m.getItemModel(e),n=i.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",r(u(m.get(v,e),p,[0,1],!0))),a.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(t){d.remove(t)}))},_renderTitle:function(t,e,i,n,r){var o=t.getData(),l=o.mapDimension("value"),c=t.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=r.cx+s(h[0],r.r),f=r.cy+s(h[1],r.r),p=+t.get("min"),g=+t.get("max"),m=t.getData().get(l,0),v=n(u(m,[p,g],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},c,{x:d,y:f,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,r){var o=t.getModel("detail"),l=+t.get("min"),c=+t.get("max");if(o.get("show")){var d=o.get("offsetCenter"),f=r.cx+s(d[0],r.r),p=r.cy+s(d[1],r.r),g=s(o.get("width"),r.r),m=s(o.get("height"),r.r),v=t.getData(),y=v.get(v.mapDimension("value"),0),x=n(u(y,[l,c],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:f,y:p,text:h(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;t.exports=p},a7e2:function(t,e,i){var n=i("3eba");i("7293"),i("ae46");var a=i("6582"),r=i("ee98");n.registerLayout(a),n.registerVisual(r)},a7f2:function(t,e){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:i[0]})}t.exports=n},a87d:function(t,e,i){var n=i("22d1"),a=i("401b"),r=a.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),u=i("a73c"),c=i("9e2e"),h=i("19eb"),d=i("0da8"),f=i("76a5"),p=i("cbe5"),g=i("20c8"),m=i("42e5"),v=i("d3a4"),y=g.CMD,x=Math.round,_=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,M=Math.max;if(!n.canvasSupported){var I=",",A="progid:DXImageTransform.Microsoft",T=21600,D=T/2,C=1e5,L=1e3,P=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},k=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},O=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},R=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},E=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},N=function(t,e,i){return(parseFloat(t)||0)*C+(parseFloat(e)||0)*L+i},z=function(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},V=function(t,e,i){var n=s.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=O(n[0],n[1],n[2]),t.opacity=i*n[3])},B=function(t){var e=s.parse(t);return[O(e[0],e[1],e[2]),e[3]]},F=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof m){var a,o=0,s=[0,0],l=0,u=1,c=i.getBoundingRect(),h=c.width,d=c.height;if("linear"===n.type){a="gradient";var f=i.transform,p=[n.x*h,n.y*d],g=[n.x2*h,n.y2*d];f&&(r(p,p,f),r(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";p=[n.x*h,n.y*d],f=i.transform;var x=i.scale,_=h,b=d;s=[(p[0]-c.x)/_,(p[1]-c.y)/b],f&&r(p,p,f),_/=x[0]*T,b/=x[1]*T;var w=M(_,b);l=0/w,u=2*n.r/w-l}var S=n.colorStops.slice();S.sort((function(t,e){return t.offset-e.offset}));for(var I=S.length,A=[],D=[],C=0;C=2){var k=A[0][0],O=A[1][0],R=A[0][1]*e.opacity,E=A[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=k,t.color2=O,t.colors=D.join(","),t.opacity=E,t.opacity2=R}"radial"===a&&(t.focusposition=s.join(","))}else V(t,n,e.opacity)},G=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||V(t,e.stroke,e.opacity)},H=function(t,e,i,n){var a="fill"===e,r=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof m&&E(t,r),r||(r=v.createNode(e)),a?F(r,i,n):G(r,i),R(t,r)):(t[a?"filled":"stroked"]="false",E(t,r))},W=[[],[],[]],Z=function(t,e){var i,n,a,o,s,l,u=y.M,c=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=t.data,m=t.len();for(o=0;o.01?H&&(Z+=270/T):Math.abs(U-z)<1e-4?H&&ZN?A-=270/T:A+=270/T:H&&Uz?M+=270/T:M-=270/T),p.push(j,x(((N-V)*O+P)*T-D),I,x(((z-B)*R+k)*T-D),I,x(((N+V)*O+P)*T-D),I,x(((z+B)*R+k)*T-D),I,x((Z*O+P)*T-D),I,x((U*R+k)*T-D),I,x((M*O+P)*T-D),I,x((A*R+k)*T-D)),s=M,l=A;break;case y.R:var Y=W[0],X=W[1];Y[0]=g[o++],Y[1]=g[o++],X[0]=Y[0]+g[o++],X[1]=Y[1]+g[o++],e&&(r(Y,Y,e),r(X,X,e)),Y[0]=x(Y[0]*T-D),X[0]=x(X[0]*T-D),Y[1]=x(Y[1]*T-D),X[1]=x(X[1]*T-D),p.push(" m ",Y[0],I,Y[1]," l ",X[0],I,Y[1]," l ",X[0],I,X[1]," l ",Y[0],I,X[1]);break;case y.Z:p.push(" x ")}if(i>0){p.push(n);for(var q=0;qK&&(q=0,X={});var i,n=$.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(a){}e={style:n.fontStyle||Y,variant:n.fontVariant||Y,weight:n.fontWeight||Y,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},X[t]=e,q++}return e};l.$override("measureText",(function(t,e){var i=v.doc;j||(j=i.createElement("div"),j.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(j));try{j.style.font=e}catch(n){}return j.innerHTML="",j.appendChild(i.createTextNode(t)),{width:j.offsetWidth}}));for(var Q=new o,tt=function(t,e,i,n){var a=this.style;this.__dirty&&u.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var s=l.parseRichText(o,a);o=[];for(var c=0;c1)return!1;var d=h(i-t,a-t,n-e,r-e)/l;return!(d<0||d>1)}function c(t){return t<=1e-6&&t>=-1e-6}function h(t,e,i,n){return t*n-e*i}var d=r;t.exports=d},a8c6:function(t,e,i){var n=i("2449"),a=n.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=a},a96b:function(t,e,i){var n=i("3eba"),a=n.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=a},a991:function(t,e,i){var n=i("6d8b"),a=i("e86a"),r=i("84ce"),o=i("e0d3"),s=o.makeInner,l=s();function u(t,e){e=e||[0,360],r.call(this,"angle",t,e),this.type="category"}u.prototype={constructor:u,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],s=t.dataToCoord(o+1)-t.dataToCoord(o),u=Math.abs(s),c=a.getBoundingRect(o,e.getFont(),"center","top"),h=Math.max(c.height,7),d=h/u;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return null!=g&&null!=m&&Math.abs(g-f)<=1&&Math.abs(m-r)<=1&&g>f?f=g:(p.lastTickCount=r,p.lastAutoInterval=f),f}},n.inherits(u,r);var c=u;t.exports=c},aa01:function(t,e,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("55ac"),s=o.wrapTreePathInfo,l=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};u(i);var n=t.levels||[],a={};return a.levels=n,r.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=s(i,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});function u(t){var e=0;n.each(t.children,(function(t){u(t);var i=t.value;n.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),n.isArray(t.value)?t.value[0]=i:t.value=i}t.exports=l},aa3e:function(t,e,i){var n=i("6d8b");function a(t,e){return e=e||[0,0],n.map(["x","y"],(function(i,n){var a=this.getAxis(i),r=e[n],o=t[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function r(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(a,t)}}}t.exports=r},aadf:function(t,e,i){var n=i("3eba"),a=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var r=i("9d57"),o=r.layout,s=i("7f96");i("01ed"),n.registerLayout(a.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},ab05:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(t,e,i,n){for(var a=e.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:t.getData().getVisual("color")},l=0,u=r.length;l1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=o().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new r:new a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(t,e,i){var n=i("cbe5"),a=i("401b"),r=i("4a3f"),o=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,u=r.cubicAt,c=r.quadraticDerivativeAt,h=r.cubicDerivativeAt,d=[];function f(t,e,i){var n=t.cpx2,a=t.cpy2;return null===n||null===a?[(i?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:l)(t.x1,t.cpx1,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.y2,e)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,a=e.x2,r=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(i,n),null==c||null==h?(f<1&&(o(i,l,a,f,d),l=d[1],a=d[2],o(n,u,r,f,d),u=d[1],r=d[2]),t.quadraticCurveTo(l,u,a,r)):(f<1&&(s(i,l,c,a,f,d),l=d[1],c=d[2],a=d[3],s(n,u,h,r,f,d),u=d[1],h=d[2],r=d[3]),t.bezierCurveTo(l,u,c,h,a,r)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return a.normalize(e,e)}});t.exports=p},adda:function(t,e,i){var n=i("94e4"),a=n.circularLayout;function r(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&a(t)}))}t.exports=r},adf4:function(t,e,i){var n=i("4f85"),a=i("b1d4"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("6179"),l=i("6d8b"),u=i("e0d3"),c=u.groupData,h=i("eda2"),d=h.encodeHTML,f=2,p=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){p.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){var e=t.length,i=c(t,(function(t){return t[2]})),n=[];i.buckets.each((function(t,e){n.push({name:e,dataList:t})}));for(var a=n.length,r=-1,o=-1,s=0;sr&&(r=l,o=s)}for(var u=0;u=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof r&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},b006:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("fab22"),o=i("fc82"),s=i("f4a2"),l=i("2306"),u=["axisLine","axisTickLabel","axisName"],c=n.extendComponentView({type:"parallelAxis",init:function(t,e){c.superApply(this,"init",arguments),(this._brushController=new o(e.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(t,e,i,n){if(!h(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),t.get("show")){var s=f(t,e),c=s.coordinateSystem,d=t.getAreaSelectStyle(),p=d.width,g=t.axis.dim,m=c.getAxisLayout(g),v=a.extend({strokeContainThreshold:p},m),y=new r(t,v);a.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,d,t,s,p,i);var x=n&&!1===n.animation?null:t;l.groupTransition(o,this._axisGroup,x)}}},_refreshBrushController:function(t,e,i,n,a,r){var o=i.axis.getExtent(),u=o[1]-o[0],c=Math.min(30,.1*Math.abs(u)),h=l.BoundingRect.create({x:o[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,r,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(d(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,r=a.map(t,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function h(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function d(t){var e=t.axis;return a.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function f(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var p=c;t.exports=p},b11c:function(t,e,i){i("8ec5"),i("db9e"),i("4e9f"),i("d3a0"),i("767c"),i("7c4d"),i("df70")},b12f:function(t,e,i){var n=i("e1fc"),a=i("8918"),r=i("625e"),o=function(){this.group=new n,this.uid=a.getUID("viewComponent")};o.prototype={constructor:o,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},r.enableClassExtend(o),r.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},b16f:function(t,e,i){var n=i("4ab1"),a=i("6d8b"),r=i("4942"),o=i("41ef");function s(t,e){n.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}a.inherits(s,n),s.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;a.each(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return r("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},s.prototype.update=function(t){var e=this;n.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},s.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void r("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;ny||Math.abs(t.dy)>y)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new c(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=h.create();h.translate(s,s,[-e,-i]),h.scale(s,s,[t.scale,t.scale]),h.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&window.open(r,o)}}}}}),this)},_renderBreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(s.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(t,e,i.node,p(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});function C(){return{nodeGroup:[],background:[],content:[]}}function L(t,e,i,n,o,s,l,u,c,h){if(l){var d=l.getLayout();if(d&&d.isInView){var f=d.width,p=d.height,v=d.borderWidth,y=d.invisible,S=l.getRawIndex(),D=u&&u.getRawIndex(),C=l.viewChildren,L=d.upperHeight,k=C&&C.length,O=l.getModel("itemStyle"),R=l.getModel("emphasis.itemStyle"),E=H("nodeGroup",g);if(E){if(c.add(E),E.attr("position",[d.x||0,d.y||0]),E.__tmNodeWidth=f,E.__tmNodeHeight=p,d.isAboveViewRoot)return E;var N=H("background",m,h,M);if(N&&V(E,N,k&&d.upperHeight),!k){var z=H("content",m,h,I);z&&B(E,z)}return E}}}function V(e,i,n){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:f,height:p});var a=l.getVisual("borderColor",!0),o=R.get("borderColor");F(i,(function(){var t=T(O);t.fill=a;var e=A(R);if(e.fill=o,n){var s=f-2*v;G(t,e,a,s,L,{x:v,y:0,width:s,height:L})}else t.text=e.text=null;i.setStyle(t),r.setHoverStyle(i,e)})),e.add(i)}function B(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(f-2*v,0),a=Math.max(p-2*v,0);i.culling=!0,i.setShape({x:v,y:v,width:n,height:a});var o=l.getVisual("color",!0);F(i,(function(){var t=T(O);t.fill=o;var e=A(R);G(t,e,o,n,a),i.setStyle(t),r.setHoverStyle(i,e)})),e.add(i)}function F(t,e){y?!t.invisible&&s.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function G(e,i,n,o,s,u){var c=l.getModel(),h=a.retrieve(t.getFormattedLabel(l.dataIndex,"normal",null,null,u?"upperLabel":"label"),c.get("name"));if(!u&&d.isLeafRoot){var f=t.get("drillDownIcon",!0);h=f?f+" "+h:h}var p=c.getModel(u?b:x),g=c.getModel(u?w:_),m=p.getShallow("show");r.setLabelStyle(e,i,p,g,{defaultText:m?h:null,autoColor:n,isRectText:!0}),u&&(e.textRect=a.clone(u)),e.truncate=m&&p.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function H(t,n,a,r){var s=null!=D&&i[t][D],l=o[t];return s?(i[t][D]=null,W(l,s,t)):y||(s=new n({z:P(a,r)}),s.__tmDepth=a,s.__tmStorageName=t,Z(l,s,t)),e[t][S]=s}function W(t,e,i){var n=t[S]={};n.old="nodeGroup"===i?e.position.slice():a.extend({},e.shape)}function Z(t,e,i){var a=t[S]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,u=0,c=o.background[r.getRawIndex()];!n&&c&&c.old&&(s=c.old.width,u=c.old.height),a.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}a.fadein="nodeGroup"!==i}}function P(t,e){var i=t*S+e;return(i-1)/i}t.exports=D},b419:function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("4319"),o=i("6679"),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function l(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function u(t){var e=t.getRadiusAxis();return e.inverse?0:1}function c(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var h=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,a=i.polar,r=a.getRadiusAxis().getExtent(),o=i.getTicksCoords(),l=n.map(i.getViewLabels(),(function(t){t=n.clone(t);return t.coord=i.dataToCoord(t.tickValue),t}));c(l),c(o),n.each(s,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,a,o,r,l)}),this)}},_axisLine:function(t,e,i,n){var r=t.getModel("axisLine.lineStyle"),o=new a.Circle({shape:{cx:e.cx,cy:e.cy,r:n[u(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,r){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),c=r[u(e)],h=n.map(i,(function(t){return new a.Line({shape:l(e,[c,c+s],t.coord)})}));this.group.add(a.mergePath(h,{style:n.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,o,s){var l=t.getCategories(!0),c=t.getModel("axisLabel"),h=c.get("margin");n.each(s,(function(i,n){var s=c,d=i.tickValue,f=o[u(e)],p=e.coordToPoint([f+h,i.coord]),g=e.cx,m=e.cy,v=Math.abs(p[0]-g)/f<.3?"center":p[0]>g?"left":"right",y=Math.abs(p[1]-m)/f<.3?"middle":p[1]>m?"top":"bottom";l&&l[d]&&l[d].textStyle&&(s=new r(l[d].textStyle,c,c.ecModel));var x=new a.Text({silent:!0});this.group.add(x),a.setTextStyle(x.style,s,{x:p[0],y:p[1],textFill:s.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:v,textVerticalAlign:y})}),this)},_splitLine:function(t,e,i,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:r}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";i=g(n?a+"withName":a+"withoutName"),i=p(i,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:v(t.subType)});var s=t.getData();window.data=s,s.count()>l?i+=p(g("data.partialData"),{displayCnt:l}):i+=g("data.allData");for(var u=[],h=0;he&&r+1t[r].y+t[r].height)return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0;n--)if(t[n].y-=i,n>0&&t[n].y>t[n-1].y+t[n-1].height)break}function u(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var c,h=0,d=t.length,f=[],p=[],g=0;g=i?p.push(t[g]):f.push(t[g]);u(f,!1,e,i,n,a),u(p,!0,e,i,n,a)}function r(t,e,i,n,r,s){for(var l=[],u=[],c=0;c0?"left":"right"}var L=g.getFont(),P=g.get("rotate")?b<0?-_+Math.PI:-_:0,k=t.getFormattedLabel(i,"normal")||l.getName(i),O=n.getBoundingRect(k,L,d,"top");c=!!P,f.label={x:a,y:r,position:m,height:O.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",rotation:P,inside:S},S||u.push(f.label)})),!c&&t.get("avoidLabelOverlap")&&r(u,o,s,e,i,a)}t.exports=s},bc5f:function(t,e,i){var n=i("6cb7");n.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},bcaa1:function(t,e,i){var n=i("4ab1"),a=i("6d8b");function r(t,e){n.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function o(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}a.inherits(r,n),r.prototype.addWithoutUpdate=function(t,e){if(e&&o(e.style)){var i,n=e.style;if(n._shadowDom){i=n._shadowDom;var a=this.getDefs(!0);a.contains(n._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var r=i.getAttribute("id");t.style.filter="url(#"+r+")"}},r.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},r.prototype.update=function(t,e){var i=e.style;if(o(i)){var a=this;n.prototype.update.call(this,e,(function(t){a.updateDom(e,t._shadowDom)}))}else this.remove(t,i)},r.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},r.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,r,o,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/u),i.setAttribute("flood-color",o);var c=r/2/l,h=r/2/u,d=c+" "+h;i.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(r/2*200)+"%"),e.setAttribute("height",Math.ceil(r/2*200)+"%"),e.appendChild(i),s._shadowDom=e},r.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&n.prototype.markUsed.call(this,e._shadowDom)};var s=r;t.exports=s},bcbe:function(t,e,i){var n=i("6d8b"),a=i("fab22"),r=i("2306"),o=i("edb9"),s=i("6679"),l=["axisLine","axisTickLabel","axisName"],u="splitLine",c=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,r){var s=this.group;s.removeAll();var h=o.layout(t),d=new a(t,h);n.each(l,d.add,d),s.add(d.getGroup()),t.get(u+".show")&&this["_"+u](t),c.superCall(this,"render",t,e,i,r)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var s=t.coordinateSystem.getRect(),l=e.isHorizontal(),u=[],c=0,h=e.getTicksCoords({tickModel:i}),d=[],f=[],p=0;p0&&t.animate(e,!1).when(null==a?500:a,s).delay(r||0)}function p(t,e,i,n){if(e){var a={};a[e]={},a[e][i]=n,t.attr(a)}else t.attr(i,n)}h.prototype={constructor:h,animate:function(t,e){var i,r=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;r="shape"===l[0];for(var h=0,d=l.length;h=0)&&t(r,n,a)}))}var p=f.prototype;function g(t){return t[0]>t[1]&&t.reverse(),t}function m(t,e){return o.parseFinder(t,e,{includeMainTypes:d})}p.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=_[t.brushType](0,i,e);t.__rangeOffset={offset:w[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(t,e,i){l(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&a.each(n.coordSyses,(function(n){var a=_[t.brushType](1,n,t.range);i(t,a.values,n,e)}))}),this)},p.setInputRanges=function(t,e){l(t,(function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelId=i.panelId;var n=_[t.brushType](0,i.coordSys,t.coordRange),a=t.__rangeOffset;t.range=a?w[t.brushType](n.values,a.offset,M(n.xyMinMax,a.xyMinMax)):n.values}}),this)},p.makePanelOpts=function(t,e){return a.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:s.makeRectPanelClipPath(n),isTargetByCursor:s.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&u(n.coordSyses,e.coordinateSystem)>=0},p.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=m(e,t),a=0;a=0||u(n,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:x.grid,xAxisDeclared:s[t.id],yAxisDeclared:c[t.id]})})))},geo:function(t,e){l(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:x.geo})}))}},y=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],x={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(r.getTransform(t)),e}},_={lineX:c(b,0),lineY:c(b,1),rect:function(t,e,i){var n=e[h[t]]([i[0][0],i[1][0]]),a=e[h[t]]([i[0][1],i[1][1]]),r=[g([n[0],a[0]]),g([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]],r=a.map(i,(function(i){var a=e[h[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a}));return{values:r,xyMinMax:n}}};function b(t,e,i,n){var r=i.getAxis(["x","y"][t]),o=g(a.map([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(n[t])):r.toGlobalCoord(r.dataToCoord(n[t]))}))),s=[];return s[t]=o,s[1-t]=[NaN,NaN],{values:o,xyMinMax:s}}var w={lineX:c(S,0),lineY:c(S,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return a.map(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function S(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function M(t,e){var i=I(t),n=I(e),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function I(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var A=f;t.exports=A},bda7:function(t,e,i){var n=i("6d8b"),a=i("f279");function r(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=r,a=s,r=l,n.push([s/i,l/i])}return n}function s(t){return r(t),n.map(n.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var e=t.properties,i=t.geometry,r=i.coordinates,o=[];"Polygon"===i.type&&o.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===i.type&&n.each(r,(function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var s=new a(e.name,o,e.cp);return s.properties=e,s}))}t.exports=s},bdc0:function(t,e,i){var n=i("3eba");i("d2a5"),n.registerAction({type:"dragNode",event:"dragNode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},bf9b:function(t,e,i){var n=i("3eba"),a=i("d81e"),r=a.updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree,a=n.getNodeByDataIndex(i);a.isExpand=!a.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,n=r(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},c037:function(t,e,i){var n=i("3eba"),a=i("6d8b");i("f7c6"),i("1ab3");var r=i("7782"),o=i("98e7"),s=i("292e"),l=i("d3f47");r("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(a.curry(s,"pie")),n.registerProcessor(l("pie"))},c2dd:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("fc82"),o=n.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new r(e.getZr())).on("brush",a.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,s.apply(this,arguments)},updateTransform:s,updateView:s,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:a.clone(t),$from:i})}});function s(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=o},c515:function(t,e,i){i("849b"),i("8459"),i("b006")},c526:function(t,e){var i={axisPointer:1,tooltip:1,brush:1};function n(t,e,n){var a=e.getComponentByElement(t.topTarget),r=a&&a.coordinateSystem;return a&&a!==n&&!i[a.mainType]&&r&&r.model!==n}e.onIrrelevantElement=n},c533:function(t,e){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};t.exports=n},c62c:function(t,e,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function u(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o),r("single",s,u,l);var c=s;t.exports=c},c775:function(t,e,i){var n=i("2b17"),a=n.retrieveRawValue;function r(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return a(t,e,i[0]);if(n){for(var r=[],o=0;o=0;s--){var l=2*s,u=n[l]-r/2,c=n[l+1]-o/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+o)return s}return-1}});function u(){this.group=new n.Group}var c=u.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(t){this.group.removeAll();var e=new l({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},c.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)}))}},c.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(t,e){var i;this._incremental?(i=new l,this._incremental.addDisplayable(i,!0)):(i=new l({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},c._setCommon=function(t,e,i){var n=e.hostModel,a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.symbolProxy=r(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]=0&&(t.dataIndex=i+(t.startIndex||0))})))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var h=u;t.exports=h},ca29:function(t,e,i){var n=i("6d9a"),a=n.eachAfter,r=n.eachBefore,o=i("22da"),s=o.init,l=o.firstWalk,u=o.secondWalk,c=o.separation,h=o.radialCoordinate,d=o.getViewRect;function f(t,e){t.eachSeriesByType("tree",(function(t){p(t,e)}))}function p(t,e){var i=d(t,e);t.layoutInfo=i;var n=t.get("layout"),o=0,f=0,p=null;"radial"===n?(o=2*Math.PI,f=Math.min(i.height,i.width)/2,p=c((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=i.width,f=i.height,p=c());var g=t.getData().tree.root,m=g.children[0];if(m){s(g),a(m,l,p),g.hierNode.modifier=-m.hierNode.prelim,r(m,u);var v=m,y=m,x=m;r(m,(function(t){var e=t.getLayout().x;ey.getLayout().x&&(y=t),t.depth>x.depth&&(x=t)}));var _=v===y?1:p(v,y)/2,b=_-v.getLayout().x,w=0,S=0,M=0,I=0;if("radial"===n)w=o/(y.getLayout().x+_+b),S=f/(x.depth-1||1),r(m,(function(t){M=(t.getLayout().x+b)*w,I=(t.depth-1)*S;var e=h(M,I);t.setLayout({x:e.x,y:e.y,rawX:M,rawY:I},!0)}));else{var A=t.getOrient();"RL"===A||"LR"===A?(S=f/(y.getLayout().x+_+b),w=o/(x.depth-1||1),r(m,(function(t){I=(t.getLayout().x+b)*S,M="LR"===A?(t.depth-1)*w:o-(t.depth-1)*w,t.setLayout({x:M,y:I},!0)}))):"TB"!==A&&"BT"!==A||(w=o/(y.getLayout().x+_+b),S=f/(x.depth-1||1),r(m,(function(t){M=(t.getLayout().x+b)*w,I="TB"===A?(t.depth-1)*S:f-(t.depth-1)*S,t.setLayout({x:M,y:I},!0)})))}}}t.exports=f},ca98:function(t,e,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=n.each,s=n.clone,l=n.map,u=n.merge,c=/^(min|max)?(.+)$/;function h(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(t,e,i){var a,r,s=[],l=[],u=t.timeline;if(t.baseOption&&(r=t.baseOption),(u||t.options)&&(r=r||{},s=(t.options||[]).slice()),t.media){r=r||{};var c=t.media;o(c,(function(t){t&&t.option&&(t.query?l.push(t):a||(a=t))}))}return r||(r=t),r.timeline||(r.timeline=u),o([r].concat(s).concat(n.map(l,(function(t){return t.option}))),(function(t){o(e,(function(e){e(t,i)}))})),{baseOption:r,timelineOptions:s,mediaDefault:a,mediaList:l}}function f(t,e,i){var a={width:e,height:i,aspectratio:e/i},r=!0;return n.each(t,(function(t,e){var i=e.match(c);if(i&&i[1]&&i[2]){var n=i[1],o=i[2].toLowerCase();p(a[o],t,n)||(r=!1)}})),r}function p(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function m(t,e){e=e||{},o(e,(function(e,i){if(null!=e){var n=t[i];if(r.hasClass(i)){e=a.normalizeToArray(e),n=a.normalizeToArray(n);var o=a.mappingToExists(n,e);t[i]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else t[i]=u(n,e,!0)}}))}h.prototype={constructor:h,setOption:function(t,e){t&&n.each(a.normalizeToArray(t.series),(function(t){t&&t.data&&n.isTypedArray(t.data)&&n.setAsPrimitive(t.data)})),t=s(t,!0);var i=this._optionBackup,r=d.call(this,t,e,!i);this._newBaseOption=r.baseOption,i?(m(i.baseOption,r.baseOption),r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=s(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],o=[];if(!n.length&&!a)return o;for(var u=0,c=n.length;u0,I=y.height-(M?-1:1),A=(p-f)/(I||1),T=t.get("clockwise"),D=t.get("stillShowZeroSum"),C=T?1:-1,L=function(t,e){if(t){var i=e;if(t!==v){var n=t.getValue(),o=0===w&&D?S:n*S;o1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var s=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(r,s/l,t,e)))return!0}if(a.hasFill())return o.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};for(var i in a.inherits(e,h),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},a.inherits(h,n);var d=h;t.exports=d},cbe9:function(t,e,i){var n=i("6d8b"),a=i("cf7e");function r(t){a.call(this,t)}r.prototype={constructor:r,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),a=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=a.toGlobalCoord(a.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,a=i.getExtent(),r=n.getExtent(),o=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(a[0],a[1]),o),Math.max(a[0],a[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},n.inherits(r,a);var o=r;t.exports=o},cc39:function(t,e,i){var n=i("6d8b"),a=i("3842"),r=i("50e5"),o=n.each,s=a.asc,l=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function u(t,e,i){var n=[1/0,-1/0];return o(i,(function(t){var i=t.getData();i&&o(i.mapDimension(e,!0),(function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])}))})),n[1]0?0:NaN);var o=i.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function h(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var o=a.getPixelPrecision(r,[0,500]);o=Math.min(o,20);var s=e||0===n[0]&&100===n[1];i.setRange(s?null:+r[0].toFixed(o),s?null:+r[1].toFixed(o))}}function d(t){var e=t._minMaxSpan={},i=t._dataZoomModel;o(["min","max"],(function(n){e[n+"Span"]=i.get(n+"Span");var r=i.get(n+"ValueSpan");if(null!=r&&(e[n+"ValueSpan"]=r,r=t.getAxisModel().axis.scale.parse(r),null!=r)){var o=t._dataExtent;e[n+"Span"]=a.linearMap(o[0]+r,o,[0,100],!0)}}))}l.prototype={constructor:l,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(r.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i,n=this._dimName,a=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;return o?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle"),a.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(r.get(e)||0)&&(i=t)})),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[t.start,t.end],c=[];return o(["startValue","endValue"],(function(e){c.push(null!=t[e]?n.parse(t[e]):null)})),o([0,1],(function(t){var i=c[t],o=u[t];"percent"===r[t]?(null==o&&(o=l[t]),i=n.parse(a.linearMap(o,l,e,!0))):o=a.linearMap(i,e,l,!0),c[t]=i,u[t]=o})),{valueWindow:s(c),percentWindow:s(u)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,d(this),h(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,h(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),r=this._valueWindow;"none"!==a&&o(n,(function(t){var e=t.getData(),n=e.mapDimension(i,!0);n.length&&("weakFilter"===a?e.filterSelf((function(t){for(var i,a,o,s=0;sr[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(i=!0),h&&(a=!0)}return o&&i&&a})):o(n,(function(i){if("empty"===a)t.setData(e.map(i,(function(t){return s(t)?t:NaN})));else{var n={};n[i]=r,e.selectRange(n)}})),o(n,(function(t){e.setApproximateExtent(r,t)})))}))}function s(t){return t>=r[0]&&t<=r[1]}}};var f=l;t.exports=f},cccd:function(t,e,i){var n=i("e0d3"),a=n.makeInner;function r(){var t=a();return function(e){var i=t(e),n=e.pipelineContext,a=i.large,r=i.progressiveRender,o=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(a^o||r^s)&&"reset"}}t.exports=r},cd12:function(t,e,i){i("01ed"),i("4a9d"),i("cb8f")},cd33:function(t,e,i){var n=i("6d8b"),a=i("4319"),r=n.each,o=n.curry;function s(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,t,e),i.seriesInvolved&&c(i,t),i}function l(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),s=a.get("link",!0)||[],l=[];r(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var c=v(i.model),d=t.coordSysAxesInfo[c]={};t.coordSysMap[c]=i;var f=i.model,p=f.getModel("tooltip",n);if(r(i.getAxes(),o(_,!1,null)),i.getTooltipAxes&&n&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),x=i.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&r(x.baseAxes,o(_,!y||"cross",g)),y&&r(x.otherAxes,o(_,"cross",!1))}}function _(n,r,o){var c=o.model.getModel("axisPointer",a),f=c.get("show");if(f&&("auto"!==f||n||m(c))){null==r&&(r=c.get("triggerTooltip")),c=n?u(o,p,a,e,n,r):c;var g=c.get("snap"),y=v(o.model),x=r||g||"category"===o.type,_=t.axesInfo[y]={key:y,axis:o,coordSys:i,axisPointerModel:c,triggerTooltip:r,involveSeries:x,snap:g,useHandle:m(c),seriesModels:[]};d[y]=_,t.seriesInvolved|=x;var b=h(s,o);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}}))}function u(t,e,i,o,s,l){var u=e.getModel("axisPointer"),c={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){c[t]=n.clone(u.get(t))})),c.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=u.get("label.show");if(h.show=null==d||d,!l){var f=c.lineStyle=u.get("crossStyle");f&&n.defaults(h,f.textStyle)}}return t.model.getModel("axisPointer",new a(c,i,o))}function c(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),a=e.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==a&&!1!==e.get("axisPointer.show",!0)&&r(t.coordSysAxesInfo[v(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function h(t,e){for(var i=e.model,n=e.dim,a=0;a=0||t===e}function f(t){var e=p(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,a=i.option,r=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=m(i);null==r&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0){var D=o(x)?l:u;x>0&&(x=x*A+M),b[w++]=D[T],b[w++]=D[T+1],b[w++]=D[T+2],b[w++]=D[T+3]*x*256}else w+=4}return d.putImageData(_,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=n.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var a=t.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var o=r;t.exports=o},cdaa:function(t,e,i){var n=i("607d"),a=n.addEventListener,r=n.removeEventListener,o=n.normalizeEvent,s=i("6d8b"),l=i("1fab"),u=i("22d1"),c=300,h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=["touchstart","touchend","touchmove"],f={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},p=s.map(h,(function(t){var e=t.replace("mouse","pointer");return f[e]?e:t}));function g(t){return"mousewheel"===t&&u.browser.firefox?"DOMMouseScroll":t}function m(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout((function(){t._touching=!1}),700)}var v={mousemove:function(t){t=o(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=o(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!==this.dom)while(e&&9!==e.nodeType){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=o(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,this.handler.processGesture(this,t,"start"),v.mousemove.call(this,t),v.mousedown.call(this,t),m(this)},touchmove:function(t){t=o(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(this,t,"change"),v.mousemove.call(this,t),m(this)},touchend:function(t){t=o(this.dom,t),t.zrByTouch=!0,this.handler.processGesture(this,t,"end"),v.mouseup.call(this,t),+new Date-this._lastTouchMoment=a.start.time&&i.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/s)-Math.floor(t[0].time/s)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r){var o=n.getTime()-t[1].time>0?1:-1;while(n.getDate()!==r&&(n.getTime()-t[1].time)*o>0)i-=o,n.setDate(a+i-1)}var l=Math.floor((i+t[0].day+6)/7),u=e?1-l:l-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(n){var a=new l(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},o.register("calendar",l);var c=l;t.exports=c},d15d:function(t,e,i){var n=i("6d8b"),a=n.createHashMap,r=n.each;function o(t){var e=a();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}})),e.each(s)}function s(t){r(t,(function(e,i){var n=[],a=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(r,(function(r,l,u){var c,h,d=o.get(e.stackedDimension,u);if(isNaN(d))return a;s?h=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var f=NaN,p=i-1;p>=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return n[0]=d,n[1]=f,n}));o.hostModel.setData(l),e.data=l}))}t.exports=o},d28f:function(t,e,i){var n=i("3eba");i("84d5"),i("4650"),i("5e97");var a=i("903c"),r=i("6cb7");n.registerProcessor(a),r.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(t,e,i){var n=i("3eba");n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(t,e,i){var n=i("6d8b"),a=i("401b"),r=i("cb6d"),o=i("1fab"),s=i("607d"),l=i("0b44"),u="silent";function c(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:h}}function h(t){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t,e,i,n){o.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(i)};function g(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var n,a=t;while(a){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||u}return!1}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(n.each(f,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,a=n.target;a&&!a.__zr&&(n=this.findHover(n.x,n.y),a=n.target);var r=this._hovered=this.findHover(e,i),o=r.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),a&&o!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(r,"mousemove",t),o&&o!==a&&this.dispatchToElement(r,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do{i=i&&i.parentNode}while(i&&9!==i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){var a="on"+e,r=c(e,t,i);while(n)if(n[a]&&(r.cancelBubble=n[a].call(n,r)),n.trigger(e,r),n=n.parent,r.cancelBubble)break;r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer((function(t){"function"===typeof t[a]&&t[a].call(t,r),t.trigger&&t.trigger(e,r)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a={x:t,y:e},r=n.length-1;r>=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=g(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),o!==u)){a.target=n[r];break}}return a},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var a=n.type;t.gestureEvent=a,this.dispatchToElement({target:n.target},a,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){p.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),n.mixin(p,o),n.mixin(p,r);var m=p;t.exports=m},d357:function(t,e,i){var n=i("6d8b"),a=n.each,r=i("1c5f"),o=r.simpleLayout,s=r.simpleLayoutEdge;function l(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),r=[];a(i.dimensions,(function(t){r=r.concat(n.mapDimension(t,!0))}));for(var l=0;l=0&&a.each(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:o})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),o.register("magicType",l);var d=l;t.exports=d},d3a4:function(t,e,i){var n,a=i("22d1"),r="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function u(t){return n(t)}if(l&&!a.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",r),n=function(t){return l.createElement("')}}catch(h){n=function(t){return l.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}function c(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}e.doc=l,e.createNode=u,e.initVML=c},d3f47:function(t,e){function i(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),a=0;a=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){a.unregister(e.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(t,e){a.unregister("axisPointer",e),r.superApply(this._model,"dispose",arguments)}}),o=r;t.exports=o},d4c6:function(t,e,i){var n=i("cbe5"),a=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i=a||m<0)break;if(f(y)){if(p){m+=r;continue}break}if(m===i)t[r>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(h,x),h[_]=x[_]+b,u(d,y),d[_]=y[_]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=r}return v}function m(t,e,i,n,r,p,g,m,v,y,x){for(var _=0,b=i,w=0;w=r||b<0)break;if(f(S)){if(x){b+=p;continue}break}if(b===i)t[p>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(v>0){var M=b+p,I=e[M];if(x)while(I&&f(e[M]))M+=p,I=e[M];var A=.5,T=e[_];I=e[M];if(!I||f(I))u(d,S);else{var D,C;if(f(I)&&!x&&(I=S),a.sub(c,I,T),"x"===y||"y"===y){var L="x"===y?0:1;D=Math.abs(S[L]-T[L]),C=Math.abs(S[L]-I[L])}else D=a.dist(S,T),C=a.dist(S,I);A=C/(C+D),l(d,S,c,-v*(1-A))}o(h,h,m),s(h,h,g),o(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,c,v*A)}else t.lineTo(S[0],S[1]);_=b,b+=p}return w}function v(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}var y=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,a=i.length,r=v(i,e.smoothConstraint);if(e.connectNulls){for(;a>0;a--)if(!f(i[a-1]))break;for(;n0;r--)if(!f(i[r-1]))break;for(;a=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new a(e),s.key=t,i.insertEntry(s),n[t]=s}return r},o.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=r;t.exports=s},d5b7:function(t,e,i){var n=i("de00"),a=i("1fab"),r=i("0cde"),o=i("bd6b"),s=i("6d8b"),l=function(t){r.call(this,t),a.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;ie&&u>n&&u>r&&u>s||u1&&y(),d=c.cubicAt(e,n,r,s,v[0]),g>1&&(f=c.cubicAt(e,n,r,s,v[1]))),2===g?_e&&s>n&&s>r||s=0&&u<=1){for(var h=0,d=c.quadraticAt(e,n,r,u),f=0;fi||s<-i)return 0;var l=Math.sqrt(i*i-s*s);m[0]=-l,m[1]=l;var c=Math.abs(n-a);if(c<1e-4)return 0;if(c%f<1e-4){n=0,a=f;var h=r?1:-1;return o>=m[0]+t&&o<=m[1]+t?h:0}if(r){l=n;n=u(a),a=u(l)}else n=u(n),a=u(a);n>a&&(a+=f);for(var d=0,p=0;p<2;p++){var g=m[p];if(g+t>o){var v=Math.atan2(s,g);h=r?1:-1;v<0&&(v=f+v),(v>=n&&v<=a||v+f>=n&&v+f<=a)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function w(t,e,i,n,l){for(var u=0,c=0,f=0,p=0,m=0,v=0;v1&&(i||(u+=h(c,f,p,m,n,l))),1===v&&(c=t[v],f=t[v+1],p=c,m=f),y){case d.M:p=t[v++],m=t[v++],c=p,f=m;break;case d.L:if(i){if(a.containStroke(c,f,t[v],t[v+1],e,n,l))return!0}else u+=h(c,f,t[v],t[v+1],n,l)||0;c=t[v++],f=t[v++];break;case d.C:if(i){if(r.containStroke(c,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],e,n,l))return!0}else u+=x(c,f,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],n,l)||0;c=t[v++],f=t[v++];break;case d.Q:if(i){if(o.containStroke(c,f,t[v++],t[v++],t[v],t[v+1],e,n,l))return!0}else u+=_(c,f,t[v++],t[v++],t[v],t[v+1],n,l)||0;c=t[v++],f=t[v++];break;case d.A:var w=t[v++],S=t[v++],M=t[v++],I=t[v++],A=t[v++],T=t[v++];v+=1;var D=1-t[v++],C=Math.cos(A)*M+w,L=Math.sin(A)*I+S;v>1?u+=h(c,f,C,L,n,l):(p=C,m=L);var P=(n-w)*I/M+w;if(i){if(s.containStroke(w,S,I,A,A+T,D,e,P,l))return!0}else u+=b(w,S,I,A,A+T,D,P,l);c=Math.cos(A+T)*M+w,f=Math.sin(A+T)*I+S;break;case d.R:p=c=t[v++],m=f=t[v++];var k=t[v++],O=t[v++];C=p+k,L=m+O;if(i){if(a.containStroke(p,m,C,m,e,n,l)||a.containStroke(C,m,C,L,e,n,l)||a.containStroke(C,L,p,L,e,n,l)||a.containStroke(p,L,p,m,e,n,l))return!0}else u+=h(C,m,C,L,n,l),u+=h(p,L,p,m,n,l);break;case d.Z:if(i){if(a.containStroke(c,f,p,m,e,n,l))return!0}else u+=h(c,f,p,m,n,l);c=p,f=m;break}}return i||g(f,m)||(u+=h(c,f,p,m,n,l)||0),0!==u}function S(t,e,i){return w(t,0,!1,e,i)}function M(t,e,i,n){return w(t,e,!0,i,n)}e.contain=S,e.containStroke=M},d9d0:function(t,e,i){var n=i("6d8b"),a=i("1687"),r=i("f934"),o=i("697e"),s=i("0f55"),l=i("2306"),u=i("3842"),c=i("ef6a"),h=n.each,d=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,m=u.round,v=Math.PI;function y(t,e,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function x(t,e){return d(f(t,e[0]),e[1])}function _(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function b(t,e){var i,n,a=e.layoutLength,r=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();h(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),o.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],u=this.dimensions.length,c=x(e.get("axisExpandWidth"),l),h=x(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");if(f)t=x(f[1]-f[0],l),f[1]=f[0]+t;else{t=x(c*(h-1),l);var v=e.get("axisExpandCenter")||p(u/2);f=[c*v-t/2],f[1]=f[0]+t}var y=(s-t)/(u-h);y<3&&(y=0);var _=[p(m(f[0]/c,1))+1,g(m(f[1]/c,1))-1],b=y/c*f[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:_,axisExpandWindow0Pos:b}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),h(i,(function(e,i){var o=(n.axisExpandable?b:_)(i,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},u=[s[r].x+t.x,s[r].y+t.y],c=l[r],h=a.create();a.rotate(h,h,c),a.translate(h,h,u),this._axesLayout[e]={position:u,rotation:c,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,a){null==i&&(i=0),null==a&&(a=t.count());var r=this._axesMap,o=this.dimensions,s=[],l=[];n.each(o,(function(e){s.push(t.mapDimension(e)),l.push(r.get(e).model)}));for(var u=this.hasAxisBrushed(),c=i;ca*(1-h[0])?(l="jump",o=s-a*(1-h[2])):(o=s-a*h[1])>=0&&(o=s-a*(1-h[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?c(o,n,r,"all"):l="none";else{a=n[1]-n[0];var g=r[1]*s/a;n=[f(0,g-a/2)],n[1]=d(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var w=y;t.exports=w},d9f1:function(t,e,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function u(t,e){return e.type||(e.data?"category":"value")}r("angle",s,u,l.angle),r("radius",s,u,l.radius)},d9fc:function(t,e,i){var n=i("cbe5"),a=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=a},dae1:function(t,e,i){var n=i("3eba");i("928d"),i("b369"),i("4411");var a=i("90c2"),r=i("9ca8");n.registerVisual(a),n.registerLayout(r)},db0e:function(t,e,i){var n=i("3eba");i("a8c6"),i("8344"),n.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},db9e:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("e86a"),o=i("2145"),s=i("2306"),l=i("4319"),u=i("80f0"),c=i("7919"),h=n.extendComponentView({type:"toolbox",render:function(t,e,i,n){var h=this.group;if(h.removeAll(),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},g=this._features||(this._features={}),m=[];a.each(p,(function(t,e){m.push(e)})),new u(this._featureNames||[],m).add(v).update(v).remove(a.curry(v,null)).execute(),this._featureNames=m,c.layout(h,t,i),h.add(c.makeBackground(h.getBoundingRect(),t)),h.eachChild((function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var a=r.getBoundingRect(e,r.makeFont(n)),o=t.position[0]+h.position[0],s=t.position[1]+h.position[1]+f,l=!1;s+a.height>i.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-a.height:f+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}}))}function v(a,r){var s,u=m[a],c=m[r],h=p[u],f=new l(h,t,t.ecModel);if(u&&!c){if(d(u))s={model:f,onclick:f.option.onclick,featureName:u};else{var v=o.get(u);if(!v)return;s=new v(f,e,i)}g[u]=s}else{if(s=g[c],!s)return;s.model=f,s.ecModel=e,s.api=i}u||!c?f.get("show")&&!s.unusable?(y(f,s,u),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},s.render&&s.render(f,e,i,n)):s.remove&&s.remove(e,i):s.dispose&&s.dispose(e,i)}function y(n,r,o){var l=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():n.get("icon"),d=n.get("title")||{};if("string"===typeof c){var p=c,g=d;c={},d={},c[o]=p,d[o]=g}var m=n.iconPaths={};a.each(c,(function(o,c){var p=s.createIcon(o,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=u.getItemStyle(),s.setHoverStyle(p),t.get("showTitle")&&(p.__title=d[c],p.on("mouseover",(function(){var t=u.getItemStyle();p.setStyle({text:d[c],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})})).on("mouseout",(function(){p.setStyle({textFill:null})}))),p.trigger(n.get("iconStatus."+c)||"normal"),h.add(p),p.on("click",a.bind(r.onclick,r,e,i,c)),m[c]=p}))}},updateView:function(t,e,i,n){a.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},remove:function(t,e){a.each(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){a.each(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});function d(t){return 0===t.indexOf("my")}t.exports=h},dc20:function(t,e,i){var n=i("8727"),a=n.createElement,r=i("6d8b"),o=i("4942"),s=i("cbe5"),l=i("0da8"),u=i("76a5"),c=i("0c12"),h=i("b16f"),d=i("9fa3"),f=i("bcaa1"),p=i("3f8e"),g=p.path,m=p.image,v=p.text;function y(t){return parseInt(t,10)}function x(t){return t instanceof s?g:t instanceof l?m:t instanceof u?v:g}function _(t,e){return e&&t&&e.parentNode!==t}function b(t,e,i){if(_(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function w(t,e){if(_(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function S(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function M(t){return t.__textSvgEl}function I(t){return t.__svgEl}var A=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=r.extend({},i||{});var o=a("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new h(n,o),this.clipPathManager=new d(n,o),this.shadowManager=new f(n,o);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};function T(t){return function(){o('In SVG mode painter not support method "'+t+'"')}}A.prototype={constructor:A,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,a=t.length,r=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgRoot;r.setAttribute("width",t),r.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||y(s[i])||y(o.style[i]))-(y(s[a])||0)-(y(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:image/svg+xml;charset=UTF-8,"+t}},r.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){A.prototype[t]=T(t)}));var D=A;t.exports=D},dc2f:function(t,e){var i=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};i.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=i;t.exports=n},dcb3:function(t,e,i){var n=i("6d8b"),a=i("625e"),r=i("2306"),o=i("cd33"),s=i("607d"),l=i("88b3"),u=i("e0d3"),c=u.makeInner,h=c(),d=n.clone,f=n.bind;function p(){}function g(t,e,i,n){m(h(i).lastProp,n)||(h(i).lastProp=n,e?r.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function m(t,e){if(n.isObject(t)&&n.isObject(e)){var i=!0;return n.each(e,(function(e,n){i=i&&m(t[n],e)})),!!i}return t===e}function v(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function x(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,a){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,a||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,t,e,i);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=n.curry(g,e,d);this.updatePointerEl(l,c,f,e),this.updateLabelEl(l,c,f,e)}else l=this._group=new r.Group,this.createPointerEl(l,c,t,e),this.createLabelEl(l,c,t,e),i.getZr().add(l);x(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(r){var l=o.getAxisInfo(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var o=h(t).pointerEl=new r[a.type](d(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var a=h(t).labelEl=new r.Rect(d(e.label));t.add(a),v(a,n)}},updatePointerEl:function(t,e,i){var n=h(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=h(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),v(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,a=this._api.getZr(),o=this._handle,u=i.getModel("handle"),c=i.get("status");if(!u.get("show")||!c||"hide"===c)return o&&a.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=r.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),a.add(o)),x(o,i,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(u.getItemStyle(null,h));var d=u.get("size");n.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(y(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(y(n)),h(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},p.prototype.constructor=p,a.enableClassExtend(p);var _=p;t.exports=_},dcea:function(t,e,i){var n=i("6d8b"),a=i("e887"),r=i("2306"),o=i("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],u=a.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===t.get("layout")?1:0;n.diff(r).add((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=h(e,n,t,o,!0);n.setItemGraphicEl(t,i),a.add(i)}})).update((function(t,e){var i=r.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?d(s,i,n,t):i=h(s,n,t,o),a.add(i),n.setItemGraphicEl(t,i)}else a.remove(i)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)})).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:n.noop}),c=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n=0;i--)s.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,a=e.length;n40&&(u=Math.max(1,Math.floor(s/40)));for(var c=o[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(d*Math.cos(n)),p=Math.abs(d*Math.sin(n)),g=0,m=0;c<=o[1];c+=u){var v=0,y=0,x=a.getBoundingRect(i(c),e.font,"center","top");v=1.3*x.width,y=1.3*x.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var _=g/f,b=m/p;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),M=h(t.model),I=M.lastAutoInterval,A=M.lastTickCount;return null!=I&&null!=A&&Math.abs(I-w)<=1&&Math.abs(A-s)<=1&&I>w?w=I:(M.lastTickCount=s,M.lastAutoInterval=w),w}function S(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function M(t,e,i){var n=l(t),a=t.scale,r=a.getExtent(),o=t.getLabelModel(),s=[],u=Math.max((e||0)+1,1),h=r[0],d=a.count();0!==h&&u>1&&d/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=c(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&h!==r[0]&&v(r[0]);for(var m=h;m<=r[1];m+=u)v(m);function v(t){s.push(i?t:{formattedLabel:n(t),rawLabel:a.getLabel(t),tickValue:t})}return g&&m!==r[1]&&v(r[1]),s}function I(t,e,i){var a=t.scale,r=l(t),o=[];return n.each(a.getTicks(),(function(t){var n=a.getLabel(t);e(t,n)&&o.push(i?t:{formattedLabel:r(t),rawLabel:n,tickValue:t})})),o}e.createAxisLabels=d,e.createAxisTicks=f,e.calculateCategoryInterval=w},e0d3:function(t,e,i){var n=i("6d8b"),a=i("22d1"),r=n.each,o=n.isObject,s=n.isArray,l="series\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=i.length;n=i.length&&i.push({option:t})}})),i}function g(t){var e=n.createHashMap();r(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),r(t,(function(t,i){var a=t.option;n.assert(!a||null==a.id||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})})),r(t,(function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(o(a)){if(r.name=null!=a.name?a.name+"":n?n.name:l+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(e.get(r.id))}e.set(r.id,t)}}))}function m(t){var e=t.name;return!(!e||!e.indexOf(l))}function v(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var i={},n={};return a(t||[],i),a(e||[],n,i),[r(i),r(n)];function a(t,e,i){for(var n=0,a=t.length;n=e[0]&&t<=e[1]},a.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},a.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},a.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},a.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a.prototype.getLabel=null,n.enableClassExtend(a),n.enableClassManagement(a,{registerWhenExtend:!0});var r=a;t.exports=r},e1fc:function(t,e,i){var n=i("6d8b"),a=i("d5b7"),r=i("9850"),o=function(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,a=this._children,r=n.indexOf(a,t);return r<0||(a.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e1e-4)return p[0]=t-i,p[1]=e-a,g[0]=t+i,void(g[1]=e+a);if(c[0]=l(r)*i+t,c[1]=s(r)*a+e,h[0]=l(o)*i+t,h[1]=s(o)*a+e,m(p,c,h),v(g,c,h),r%=u,r<0&&(r+=u),o%=u,o<0&&(o+=u),r>o&&!f?o+=u:rr&&(d[0]=l(_)*i+t,d[1]=s(_)*a+e,m(p,d,p),v(g,d,g))}e.fromPoints=f,e.fromLine=p,e.fromCubic=v,e.fromQuadratic=y,e.fromArc=x},e468:function(t,e,i){var n=i("e46b"),a=i("6d8b"),r=i("2f45"),o=r.getDimensionTypeByAxis,s={_baseAxisDim:null,getInitialData:function(t,e){var i,r,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",i=s.getOrdinalMeta(),r=!0):"category"===c?(t.layout="vertical",i=l.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var h=["x","y"],d="horizontal"===t.layout?0:1,f=this._baseAxisDim=h[d],p=h[1-d],g=[s,l],m=g[d].get("type"),v=g[1-d].get("type"),y=t.data;if(y&&r){var x=[];a.each(y,(function(t,e){var i;t.value&&a.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):a.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,x.push(i)})),t.data=x}var _=this.defaultValueDimensions;return n(this,{coordDimensions:[{name:f,type:o(m),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:o(v),dimsDef:_.slice()}],dimensionsCount:_.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=s},e46b:function(t,e,i){var n=i("b1d4"),a=i("6179"),r=i("6d8b"),o=r.extend,s=r.isArray;function l(t,e,i){e=s(e)&&{coordDimensions:e}||o({},e);var r=t.getSource(),l=n(r,e),u=new a(l,t);return u.initData(r,i),u}t.exports=l},e47b:function(t,e,i){var n=i("e0d3"),a=n.makeInner,r=n.normalizeToArray,o=a();function s(t,e){for(var i=t.length,n=0;ne)return t[n];return t[i-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var n=o(e),a=n.colorIdx||0,l=n.colorNameMap=n.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var u=r(this.get("color",!0)),c=this.get("colorLayer",!0),h=null!=i&&c?s(c,i):u;if(h=h||u,h&&h.length){var d=h[a];return t&&(l[t]=d),n.colorIdx=(a+1)%h.length,d}}};t.exports=l},e6cd:function(t,e,i){var n=i("6d8b");function a(){var t,e=[],i={};return{add:function(t,a,r,o,s){return n.isString(o)&&(s=o,o=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:a,time:r,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,r=e.length;ae+d&&h>a+d&&h>o+d&&h>l+d||ht+d&&c>i+d&&c>r+d&&c>s+d||cf&&(d=0,h={}),d++,h[i]=a,a}function x(t,e,i,n,a,r,o,s){return o?b(t,e,i,n,a,r,o,s):_(t,e,i,n,a,r,s)}function _(t,e,i,a,r,o,s){var l=P(t,e,r,o,s),u=y(t,e);r&&(u+=r[1]+r[3]);var c=l.outerHeight,h=w(0,u,i),d=S(0,c,a),f=new n(h,d,u,c);return f.lineHeight=l.lineHeight,f}function b(t,e,i,a,r,o,s,l){var u=k(t,{rich:s,truncate:l,font:e,textAlign:i,textPadding:r,textLineHeight:o}),c=u.outerWidth,h=u.outerHeight,d=w(0,c,i),f=S(0,h,a);return new n(d,f,c,h)}function w(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function S(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function M(t,e,i){var n=e.x,a=e.y,r=e.height,o=e.width,s=r/2,l="left",u="top";switch(t){case"left":n-=i,a+=s,l="right",u="middle";break;case"right":n+=i+o,a+=s,u="middle";break;case"top":n+=o/2,a-=i,l="center",u="bottom";break;case"bottom":n+=o/2,a+=r+i,l="center";break;case"inside":n+=o/2,a+=s,l="center",u="middle";break;case"insideLeft":n+=i,a+=s,u="middle";break;case"insideRight":n+=o-i,a+=s,l="right",u="middle";break;case"insideTop":n+=o/2,a+=i,l="center";break;case"insideBottom":n+=o/2,a+=r-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,a+=i;break;case"insideTopRight":n+=o-i,a+=i,l="right";break;case"insideBottomLeft":n+=i,a+=r-i,u="bottom";break;case"insideBottomRight":n+=o-i,a+=r-i,l="right",u="bottom";break}return{x:n,y:a,textAlign:l,textVerticalAlign:u}}function I(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=A(e,i,n,a);for(var o=0,s=r.length;o=r;u++)o-=r;var c=y(i,e);return c>o&&(i="",c=0),o=t-c,n.ellipsis=i,n.ellipsisWidth=c,n.contentWidth=o,n.containerWidth=t,n}function T(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=y(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?D(t,a,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*a/r):0;t=t.substr(0,s),r=y(t,n)}return""===t&&(t=e.placeholder),t}function D(t,e,i,n){for(var a=0,r=0,o=t.length;rc)t="",o=[];else if(null!=h)for(var d=A(h-(i?i[1]+i[3]:0),e,a.ellipsis,{minChar:a.minChar,placeholder:a.placeholder}),f=0,p=o.length;fr&&O(i,t.substring(r,o)),O(i,n[2],n[1]),r=p.lastIndex}rv)return{lines:[],width:0,height:0};M.textWidth=y(M.text,D);var P=A.textWidth,k=null==P||"auto"===P;if("string"===typeof P&&"%"===P.charAt(P.length-1))M.percentWidth=P,d.push(M),P=0;else{if(k){P=M.textWidth;var R=A.textBackgroundColor,E=R&&R.image;E&&(E=a.findExistImage(E),a.isImageReady(E)&&(P=Math.max(P,E.width*L/E.height)))}var N=T?T[1]+T[3]:0;P+=N;var z=null!=m?m-w:null;null!=z&&z"],a.isArray(t)&&(t=t.slice(),n=!0),r=e?t:n?[c(t[0]),c(t[1])]:c(t),a.isString(u)?u.replace("{value}",n?r[0]:r).replace("{value2}",n?r[1]:r):a.isFunction(u)?n?u(t[0],t[1]):u(t):n?t[0]===l[0]?i[0]+" "+r[1]:t[1]===l[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r;function c(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var r=n[a],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),r=e.controller||(e.controller={});a.merge(n,i),a.merge(r,i);var l=this.isCategory();function u(i){f(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},p(this.stateList,(function(t){var e=i[t];if(a.isString(e)){var n=o.get(e,"active",l);n?(i[t]={},i[t][e]=n):delete i[t]}}),this)}function c(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},p(n,(function(t,e){if(s.isValidType(e)){var i=o.get(e,"inactive",l);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");p(this.stateList,(function(r){var o=this.itemSize,s=t[r];s||(s=t[r]={color:l?n:[n]}),null==s.symbol&&(s.symbol=e&&a.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&a.clone(i)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var c=-1/0;d(u,(function(t){t>c&&(c=t)})),s.symbolSize=h(u,(function(t){return m(t,[0,c],[0,o[0]],!0)}))}}),this)}u.call(this,n),u.call(this,r),c.call(this,n,"inRange","outOfRange"),g.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),x=y;t.exports=x},eaeb:function(t,e,i){var n=i("6d8b");function a(t,e){return n.map(["Radius","Angle"],(function(i,n){var a=this["get"+i+"Axis"](),r=e[n],o=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](r-o)-a[s](r+o));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function r(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:n.bind((function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o})),size:n.bind(a,t)}}}t.exports=r},eb6b:function(t,e,i){var n=i("6d8b"),a=i("e0d3"),r=a.makeInner,o=i("cd33"),s=i("133d"),l=n.each,u=n.curry,c=r();function h(t,e,i){var a=t.currTrigger,r=[t.x,t.y],o=t,c=t.dispatchAction||n.bind(i.dispatchAction,i),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){b(r)&&(r=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var f=b(r),w=o.axesInfo,S=h.axesInfo,M="leave"===a||b(r),I={},A={},T={list:[],map:{}},D={showPointer:u(p,A),showTooltip:u(g,T)};l(h.coordSysMap,(function(t,e){var i=f||t.containPoint(r);l(h.coordSysAxesInfo[e],(function(t,e){var n=t.axis,a=x(w,t);if(!M&&i&&(!w||a)){var o=a&&a.value;null!=o||f||(o=n.pointToData(r)),null!=o&&d(t,o,D,!1,I)}}))}));var C={};return l(S,(function(t,e){var i=t.linkGroup;i&&!A[e]&&l(i.axesInfo,(function(e,n){var a=A[n];if(e!==t&&a){var r=a.value;i.mapper&&(r=t.axis.scale.parse(i.mapper(r,_(e),_(t)))),C[t.key]=r}}))})),l(C,(function(t,e){d(S[e],t,D,!0,I)})),m(A,S,I),v(T,r,t,c),y(S,c,i),I}}function d(t,e,i,a,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=f(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&n.extend(r,l[0]),!a&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,r),i.showTooltip(t,s,u)}else i.showPointer(t,e)}function f(t,e){var i=e.axis,n=i.dim,a=t,r=[],o=Number.MAX_VALUE,s=-1;return l(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,i);h=f.dataIndices,c=f.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null),!h.length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=c,r.length=0),l(h,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:a}}function p(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function g(t,e,i,n){var a=i.payloadBatch,r=e.axis,s=r.model,l=e.axisPointerModel;if(e.triggerTooltip&&a.length){var u=e.coordSys.model,c=o.makeKey(u),h=t.map[c];h||(h=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:r.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:a.slice()})}}function m(t,e,i){var n=i.axesInfo=[];l(e,(function(e,i){var a=e.axisPointerModel.option,r=t[i];r?(!e.useHandle&&(a.status="show"),a.value=r.value,a.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})}))}function v(t,e,i,n){if(!b(e)&&t.list.length){var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function y(t,e,i){var a=i.getZr(),r="axisPointerLastHighlights",o=c(a)[r]||{},s=c(a)[r]={};l(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&l(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var u=[],h=[];n.each(o,(function(t,e){!s[e]&&h.push(t)})),n.each(s,(function(t,e){!o[e]&&u.push(t)})),h.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),u.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function x(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function _(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function b(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=h},ebf9:function(t,e,i){var n=i("3eba");n.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))},ec02:function(t,e,i){var n=i("6d8b"),a=i("84ce"),r=function(t,e,i,n,r){a.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,a);var o=r;t.exports=o},ec1b:function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){return function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,i){var n=i(4)(i(1),i(5),null,null);t.exports=n.exports},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",a=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;a.test(i);)i=i.replace(a,"$1"+this.separator+"$2");return this.prefix+i+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),a=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=a.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",a.default)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0,a="webkit moz ms o".split(" "),r=void 0,o=void 0;if("undefined"==typeof window)e.requestAnimationFrame=r=function(){},e.cancelAnimationFrame=o=function(){};else{e.requestAnimationFrame=r=window.requestAnimationFrame,e.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var s=void 0,l=0;l=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}}o.__drawIndex=v,o.__drawIndex0&&t>n[0]){for(s=0;st)break;r=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(r){var u=r.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else o("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n0?g:0),this._needsManuallyCompositing),s.__builtin__||o("ZLevel "+l+" has been used by unkown layer "+s.id),s!==a&&(s.__used=!0,s.__startIndex!==i&&(s.__dirty=!0),s.__startIndex=i,s.incremental?s.__drawIndex=-1:s.__drawIndex=i,e(i),a=s),n.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r.merge(i[t],e,!0):i[t]=e;for(var n=0;n1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=n.normalizeCssArray,u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(u,(function(t,e){return c[e]}))}var d=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,i){n.isArray(e)||(e=[e]);var a=e.length;if(!a)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""}function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=r.parseDate(e),a=i?"UTC":"",o=n["get"+a+"FullYear"](),s=n["get"+a+"Month"]()+1,l=n["get"+a+"Date"](),u=n["get"+a+"Hours"](),c=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),d=n["get"+a+"Milliseconds"]();return t=t.replace("MM",v(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",v(l,2)).replace("d",l).replace("hh",v(u,2)).replace("h",u).replace("mm",v(c,2)).replace("m",c).replace("ss",v(h,2)).replace("s",h).replace("SSS",v(d,3)),t}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var _=a.truncateText;function b(t){return a.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function w(t,e,i,n,r,o,s,l){return a.getBoundingRect(t,e,i,n,r,l,o,s)}e.addCommas=o,e.toCamelCase=s,e.normalizeCssArray=l,e.encodeHTML=h,e.formatTpl=p,e.formatTplSimple=g,e.getTooltipMarker=m,e.formatTime=y,e.capitalFirst=x,e.truncateText=_,e.getTextBoundingRect=b,e.getTextRect=w},edaf:function(t,e,i){var n=i("6d8b"),a=i("6cb7"),r=i("6179"),o=i("e0d3"),s=a.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,a=this._names=[];if("category"===i){var s=[];n.each(e,(function(t,e){var i,r=o.getDataItemValue(t);n.isObject(t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n.isString(r)||null!=r&&!isNaN(r)||(r=""),a.push(r+"")})),e=s}var l={category:"ordinal",time:"time"}[i]||"number",u=this._data=new r([{name:"value",type:l}],this);u.initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;t.exports=l},edb9:function(t,e,i){var n=i("6d8b");function a(t,e){e=e||{};var i=t.coordinateSystem,a=t.axis,r={},o=a.position,s=a.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};r.position=["vertical"===s?c.vertical[o]:u[0],"horizontal"===s?c.horizontal[o]:u[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),n.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-f:f,r.z2=1,r}e.layout=a},ee1a:function(t,e,i){var n=i("6d8b"),a=n.each,r=n.isString;function o(t,e,i){i=i||{};var n,o,s,l,u=i.byIndex,c=i.stackedCoordDimension,h=!(!t||!t.get("stack"));if(a(e,(function(t,i){r(t)&&(e[i]=t={name:t}),h&&!t.isExtraCoord&&(u||n||!t.ordinalMeta||(n=t),o||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(o=t))})),!o||u||n||(u=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;a(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=o,e.isDimensionStacked=s,e.getStackedDimension=l},ee66:function(t,e,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("eda2"),s=i("3842"),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!1).tl,c=new r.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:a});i.add(c)}},_renderLines:function(t,e,i,n){var a=this,r=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,n)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,i),o,n),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new r.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"===typeof t&&t?o.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),s=a.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===i?0:1,d={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=a.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:f},m=this._formatterLabel(p,g),v=new r.Text({z2:30});r.setTextStyle(v.style,a,{text:m}),v.attr(this._yearTextPositionControl(v,d[s],i,s,o)),n.add(v)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),u=n.get("position"),c=n.get("align"),h=[this._tlpoints,this._blpoints];a.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,f="horizontal"===e?0:1;s="start"===u?-s:s;for(var p="center"===c,g=0;g1?(g.width=c,g.height=c/f):(g.height=c,g.width=c*f),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else r=t.getBoxLayoutParams(),r.aspect=f,g=s.getLayoutRect(r,{width:h,height:d});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function d(t,e){r.each(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var f={dimensions:o.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var a=t.get("map"),r=t.get("aspectScale"),s=!0,l=c.retrieveMap(a);l&&l[0]&&"svg"===l[0].type?(null==r&&(r=1),s=!1):null==r&&(r=.75);var u=new o(a+n,a,t.get("nameMap"),s);u.aspectScale=r,u.zoomLimit=t.get("scaleLimit"),i.push(u),d(u,t),t.coordinateSystem=u,u.model=t,u.resize=h,u.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),r.each(n,(function(t,n){var a=r.map(t,(function(t){return t.get("nameMap")})),s=new o(n,n,r.mergeAll(a));s.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),i.push(s),s.resize=h,s.aspectScale=t[0].get("aspectScale"),s.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=s,d(s,t)}))})),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),a=r.createHashMap(),o=0;os&&(e[1-r]=e[r]+d.sign*s),e}function n(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function a(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=i},ef97:function(t,e,i){var n=i("3eba");i("217b"),i("f17f");var a=i("7f96"),r=i("87c3"),o=i("fdde");i("01ed"),n.registerVisual(a("line","circle","line")),n.registerLayout(r("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},ef97a:function(t,e,i){var n=i("3eba");i("2163"),i("6cd8"),i("bf9b");var a=i("7f96"),r=i("ca29");n.registerVisual(a("tree","circle")),n.registerLayout(r)},f123:function(t,e,i){var n=i("9f82"),a=n.prepareDataCoordInfo,r=n.getStackedOnPoint;function o(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function s(t,e,i,n,s,l,u,c){for(var h=o(t,e),d=[],f=[],p=[],g=[],m=[],v=[],y=[],x=a(s,e,u),_=a(l,t,c),b=0;be[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function w(t,e,i){if(!i.valueDim)return[];for(var n=[],a=0,r=e.count();ao[1]&&o.reverse();var s=a.getExtent(),u=Math.PI/180;i&&(o[0]-=.5,o[1]+=.5);var c=new l.Sector({shape:{cx:g(t.cx,1),cy:g(t.cy,1),r0:g(o[0],1),r:g(o[1],1),startAngle:-s[0]*u,endAngle:-s[1]*u,clockwise:a.inverse}});return e&&(c.shape.endAngle=-s[0]*u,l.initProps(c,{shape:{endAngle:-s[1]*u}},n)),c}function I(t,e,i,n){return"polar"===t.type?M(t,e,i,n):S(t,e,i,n)}function A(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o=0;o--){var s=i[o].dimension,u=t.dimensions[s],c=t.getDimensionInfo(u);if(n=c&&c.coordDim,"x"===n||"y"===n){r=i[o];break}}if(r){var h=e.getAxis(n),d=a.map(r.stops,(function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}})),f=d.length,p=r.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=10,m=d[0].coord-g,v=d[f-1].coord+g,y=v-m;if(y<.001)return"transparent";a.each(d,(function(t){t.offset=(t.coord-m)/y})),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var x=new l.LinearGradient(0,0,0,0,d,!0);return x[n]=m,x[n+"2"]=v,x}}}function D(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!C(o,e))){var s=e.mapDimension(o.dim),l={};return a.each(o.getViewLabels(),(function(t){l[t.tickValue]=1})),function(t){return!l.hasOwnProperty(e.get(s,t))}}}}function C(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),r=Math.max(1,Math.round(a/5)),s=0;sn)return!1;return!0}var L=f.extend({type:"line",init:function(){var t=new l.Group,e=new r;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,r=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),c="polar"===n.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),y=!l.isEmpty(),b=l.get("origin"),S=v(n,o,b),M=w(n,o,S),C=t.get("showSymbol"),L=C&&!c&&D(t,o,n),P=this._data;P&&P.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),P.setItemGraphicEl(e,null))})),C||d.remove(),r.add(g);var k=!c&&t.get("step");f&&h.type===n.type&&k===this._step?(y&&!p?p=this._newPolygon(u,M,n,m):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(I(n,!1,!1,t)),C&&d.updateData(o,{isIgnore:L,clipShape:I(n,!1,!0,t)}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),x(this._stackedOnPoints,M)&&x(this._points,u)||(m?this._updateAnimation(o,M,n,i,k,b):(k&&(u=A(u,n,k),M=A(M,n,k)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:M})))):(C&&d.updateData(o,{isIgnore:L,clipShape:I(n,!1,!0,t)}),k&&(u=A(u,n,k),M=A(M,n,k)),f=this._newPolyline(u,n,m),y&&(p=this._newPolygon(u,M,n,m)),g.setClipPath(I(n,!0,!1,t)));var O=T(o,n)||o.getVisual("color");f.useStyle(a.defaults(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"}));var R=t.get("smooth");if(R=_(t.get("smooth")),f.setShape({smooth:R,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var E=o.getCalculationInfo("stackedOnSeries"),N=0;p.useStyle(a.defaults(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel"})),E&&(N=_(E.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=M,this._points=u,this._step=k,this._valueOrigin=b},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=u.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var s=a.getItemGraphicEl(r);if(!s){var l=a.getItemLayout(r);if(!l)return;s=new o(a,r),s.position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,a.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else f.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=u.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else f.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new h({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new d({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,a,r){var o=this._polyline,u=this._polygon,c=t.hostModel,h=s(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,r),d=h.current,f=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;a&&(d=A(h.current,i,a),f=A(h.stackedOnCurrent,i,a),p=A(h.next,i,a),g=A(h.stackedOnNext,i,a)),o.shape.__points=h.current,o.shape.points=d,l.updateProps(o,{shape:{points:p}},c),u&&(u.setShape({points:d,stackedOnPoints:f}),l.updateProps(u,{shape:{points:p,stackedOnPoints:g}},c));for(var m=[],v=h.status,y=0;ys)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&u(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function u(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}n.registerPreprocessor(o)},f31f:function(t,e,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("2b8c"),s=i("4319"),l=["#ddd"],u=a.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&o.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:l},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=r.map(t,(function(t){return c(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=c(this.option,t),this.brushType=this.brushOption.brushType}});function c(t,e){return r.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var h=u;t.exports=h},f47d:function(t,e,i){var n=i("6d8b"),a=(n.assert,n.isArray),r=i("4e08");r.__DEV__;function o(t){return new s(t)}function s(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,s=f(this._modBy),l=this._modDataCount||0,u=f(t&&t.modBy),d=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===u&&l===d||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=h(this,n)),this._modBy=u,this._modDataCount=d;var p=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(o||g1&&n>0?s:o}};return r;function o(){return e=t?null:r=0;v--){var y=m[v],x=y.node,_=y.width,b=y.text;g>p.width&&(g-=_-c,_=c,b=null);var w=new n.Polygon({shape:{points:d(l,0,_,h,v===m.length-1,0===v)},style:r.defaults(i.getItemStyle(),{lineJoin:"bevel",text:b,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:r.curry(s,x)});this.group.add(w),f(w,t,x),l+=_+u}},remove:function(){this.group.removeAll()}};var p=h;t.exports=p},f6ed:function(t,e,i){var n=i("6d8b");function a(t,e){var i={};return n.each(t,(function(t){t.each(t.mapDimension("value"),(function(e,n){var a="ec-"+t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(n,a){for(var r,o="ec-"+t[0].getName(a),s=0,l=1/0,u=-1/0,c=i[o].length,h=0;hn||l.newline?(r=0,c=m,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);h=o+v,h>a||l.newline?(r+=s+i,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=c+i:o=h+i)}))}var d=h,f=n.curry(h,"vertical"),p=n.curry(h,"horizontal");function g(t,e,i){var n=e.width,a=e.height,r=o(t.x,n),l=o(t.y,a),u=o(t.x2,n),c=o(t.y2,a);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=a),i=s.normalizeCssArray(i||0),{width:Math.max(u-r-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}}function m(t,e,i){i=s.normalizeCssArray(i||0);var n=e.width,r=e.height,l=o(t.left,n),u=o(t.top,r),c=o(t.right,n),h=o(t.bottom,r),d=o(t.width,n),f=o(t.height,r),p=i[2]+i[0],g=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=n-c-g-l),isNaN(f)&&(f=r-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>n/r?d=.8*n:f=.8*r),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=n-c-d-g),isNaN(u)&&(u=r-h-f-p),t.left||t.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g;break}switch(t.top||t.bottom){case"middle":case"center":u=r/2-f/2-i[0];break;case"bottom":u=r-f-p;break}l=l||0,u=u||0,isNaN(d)&&(d=n-g-l-(c||0)),isNaN(f)&&(f=r-p-u-(h||0));var v=new a(l+i[3],u+i[0],d,f);return v.margin=i,v}function v(t,e,i,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new a(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();c=c.clone(),c.applyTransform(h)}e=m(n.defaults({width:c.width,height:c.height},e),i,r);var d=t.position,f=s?e.x-c.x:0,p=l?e.y-c.y:0;t.attr("position","raw"===u?[f,p]:[d[0]+f,d[1]+p])}}function y(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function x(t,e,i){!n.isObject(i)&&(i={});var a=i.ignoreSize;!n.isArray(a)&&(a=[a,a]);var r=s(c[0],0),o=s(c[1],1);function s(i,n){var r={},o=0,s={},c=0,d=2;if(l(i,(function(e){s[e]=t[e]})),l(i,(function(t){u(e,t)&&(r[t]=s[t]=e[t]),h(r,t)&&o++,h(s,t)&&c++})),a[n])return h(e,i[1])?s[i[2]]=null:h(e,i[2])&&(s[i[1]]=null),s;if(c!==d&&o){if(o>=d)return r;for(var f=0;ff[1]?-1:1,g=["start"===s?f[0]-p*d:"end"===s?f[1]+p*d:(f[0]+f[1])/2,P(s)?t.labelOffset+c*d:0],m=e.get("nameRotate");null!=m&&(m=m*b/180),P(s)?n=I(t.rotation,null!=m?m:t.rotation,c):(n=A(t,s,m||0,f),r=t.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(n.rotation)),!isFinite(r)&&(r=null)));var v=h.getFont(),y=e.get("nameTruncate",!0)||{},x=y.ellipsis,_=a(t.nameTruncateMaxWidth,y.maxWidth,r),S=null!=x&&null!=_?l.truncateText(i,_,v,x,{minChar:2,placeholder:y.placeholder}):i,M=e.get("tooltip",!0),D=e.mainType,C={componentType:D,name:i,$vars:["name"]};C[D+"Index"]=e.componentIndex;var L=new u.Text({anid:"name",__fullText:i,__truncatedText:S,position:g,rotation:n.rotation,silent:T(e),z2:1,tooltip:M&&M.show?o({content:i,formatter:function(){return i},formatterParams:C},M):null});u.setTextStyle(L.style,h,{text:S,textFont:v,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(L.eventData=w(e),L.eventData.targetType="axisName",L.eventData.name=i),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},I=S.innerTextLayout=function(t,e,i){var n,a,r=f(e-t);return d(r)?(a=i>0?"top":"bottom",n="center"):d(r-b)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}};function A(t,e,i,n){var a,r,o=f(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return d(o-b/2)?(r=l?"bottom":"top",a="center"):d(o-1.5*b)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*b&&o>b/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:r}}function T(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function D(t,e,i){if(!_(t.axis)){var n=t.get("axisLabel.showMinLabel"),a=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var r=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(C(r),C(u)):L(r,o)&&(n?(C(o),C(c)):(C(r),C(u))),!1===a?(C(s),C(h)):L(l,s)&&(a?(C(l),C(d)):(C(s),C(h)))}}function C(t){t&&(t.ignore=!0)}function L(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var r=m.identity([]);return m.rotate(r,r,-t.rotation),n.applyTransform(m.mul([],r,t.getLocalTransform())),a.applyTransform(m.mul([],r,e.getLocalTransform())),n.intersect(a)}}function P(t){return"middle"===t||"center"===t}function k(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var a=e.getModel("axisTick"),o=a.getModel("lineStyle"),s=a.get("length"),l=n.getTicksCoords(),c=[],h=[],d=t._transform,f=[],p=0;pm}function z(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function V(t,e,i,n){var a=new o.Group;return a.add(new o.Rect({name:"main",style:H(i),silent:!0,draggable:!0,cursor:"move",drift:u(t,e,a,"nswe"),ondragend:u(E,e,{isEnd:!0})})),c(n,(function(i){a.add(new o.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(t,e,a,i),ondragend:u(E,e,{isEnd:!0})}))})),a}function B(t,e,i,n){var a=n.brushStyle.lineWidth||0,r=f(a,v),o=i[0][0],s=i[1][0],l=o-a/2,u=s-a/2,c=i[0][1],h=i[1][1],d=c-r+a/2,p=h-r+a/2,g=c-o,m=h-s,y=g+a,x=m+a;G(t,e,"main",o,s,g,m),n.transformable&&(G(t,e,"w",l,u,r,x),G(t,e,"e",d,u,r,x),G(t,e,"n",l,u,y,r),G(t,e,"s",l,p,y,r),G(t,e,"nw",l,u,r,r),G(t,e,"ne",d,u,r,r),G(t,e,"sw",l,p,r,r),G(t,e,"se",d,p,r,r))}function F(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(H(i)),a.attr({silent:!n,cursor:n?"move":"default"}),c(["w","e","n","s","se","sw","ne","nw"],(function(i){var a=e.childOfName(i),r=U(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?_[r]+"-resize":null})}))}function G(t,e,i,n,a,r,o){var s=e.childOfName(i);s&&s.setShape(K(q(t,e,[[n,a],[n+r,a+o]])))}function H(t){return a.defaults({strokeNoScale:!0},t.brushStyle)}function W(t,e,i,n){var a=[d(t,i),d(e,n)],r=[f(t,i),f(e,n)];return[[a[0],r[0]],[a[1],r[1]]]}function Z(t){return o.getTransform(t.group)}function U(t,e){if(e.length>1){e=e.split("");var i=[U(t,e[0]),U(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"};i=o.transformDirection(n[e],Z(t));return a[i]}function j(t,e,i,n,a,r,o,s){var l=n.__brushOption,u=t(l.range),h=X(i,r,o);c(a.split(""),(function(t){var e=x[t];u[e[0]][e[1]]+=h[e[0]]})),l.range=e(W(u[0][0],u[1][0],u[0][1],u[1][1])),L(i,n),E(i,{isEnd:!1})}function Y(t,e,i,n,a){var r=e.__brushOption.range,o=X(t,i,n);c(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),L(t,e),E(t,{isEnd:!1})}function X(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function q(t,e,i){var n=O(t,e);return n&&!0!==n?n.clipPath(i,t._transform):a.clone(i)}function K(t){var e=d(t[0][0],t[1][0]),i=d(t[0][1],t[1][1]),n=f(t[0][0],t[1][0]),a=f(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:a-i}}function $(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,r=k(t,e,i);if(!t._dragging)for(var o=0;oo)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,a=-Math.sin(i)*e+this.cy;return[n,a]}};var o=r;t.exports=o},fd63:function(t,e,i){var n=i("42e5"),a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),a=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(a)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",r),!e.isSeriesFiltered(t)){"function"!==typeof r||r instanceof n||i.each((function(e){i.setItemVisual(e,"color",r(t.getDataParams(e)))}));var o=function(t,e){var i=t.getItemModel(e),n=i.get(a,!0);null!=n&&t.setItemVisual(e,"color",n)};return{dataEach:i.hasItemOption?o:null}}}};t.exports=a},fdde:function(t,e){var i={average:function(t){for(var e=0,i=0,n=0;ne&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i1)"string"===typeof o?l=i[o]:"function"===typeof o&&(l=o),l&&t.setData(r.downSample(r.mapDimension(c.dim),1/f,l,n))}}}}t.exports=a},fe21:function(t,e,i){var n=i("e86a"),a=i("2306"),r=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(r):null)},getFont:function(){return a.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return n.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},febc:function(t,e,i){var n=i("6d8b"),a=i("4f85"),r=i("e468"),o=r.seriesModelMixin,s=a.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(s,o,!0);var l=s;t.exports=l},fecb:function(t,e,i){var n=i("6d8b"),a=i("2145"),r=i("29a8"),o=r.toolbox.brush;function s(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.clone(o.title)};var l=s.prototype;l.render=l.updateView=function(t,e,i){var a,r,o;e.eachComponent({mainType:"brush"},(function(t){a=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=a,this._brushMode=r,n.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===a)?"emphasis":"normal")}))},l.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return n.each(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},l.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},a.register("brush",s);var u=s;t.exports=u},ff2e:function(t,e,i){var n=i("6d8b"),a=i("2306"),r=i("e86a"),o=i("eda2"),s=i("1687"),l=i("697e"),u=i("fab22");function c(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function h(t,e,i,n,a){var s=i.get("value"),l=f(s,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),u=i.getModel("label"),c=o.normalizeCssArray(u.get("padding")||0),h=u.getFont(),p=r.getBoundingRect(l,h),g=a.position,m=p.width+c[1]+c[3],v=p.height+c[0]+c[2],y=a.align;"right"===y&&(g[0]-=m),"center"===y&&(g[0]-=m/2);var x=a.verticalAlign;"bottom"===x&&(g[1]-=v),"middle"===x&&(g[1]-=v/2),d(g,m,v,n);var _=u.get("backgroundColor");_&&"auto"!==_||(_=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:v,r:u.get("borderRadius")},position:g.slice(),style:{text:l,textFont:h,textFill:u.getTextColor(),textPosition:"inside",fill:_,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function d(t,e,i,n){var a=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function f(t,e,i,a,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),s=r.formatter;if(s){var u={value:l.getAxisRawValue(e,t),seriesData:[]};n.each(a,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&u.seriesData.push(a)})),n.isString(s)?o=s.replace("{value}",o):n.isFunction(s)&&(o=s(u))}return o}function p(t,e,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),a.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function g(t,e,i,n,a,r){var o=u.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),h(e,n,a,r,{position:p(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function m(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function v(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function y(t,e,i,n,a,r){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}}e.buildElStyle=c,e.buildLabelElOption=h,e.getValueLabel=f,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=m,e.makeRectShape=v,e.makeSectorShape=y}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-39a0bfcb.3c9c6684.js b/public/mer/js/chunk-39a0bfcb.3c9c6684.js new file mode 100644 index 00000000..b573476d --- /dev/null +++ b/public/mer/js/chunk-39a0bfcb.3c9c6684.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39a0bfcb"],{"1f87":function(t,e,a){"use strict";a("5290")},"4c4c":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px"}},[a("span",{staticClass:"seachTiele"},[t._v("时间选择:")]),t._v(" "),a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,l){return a("el-radio-button",{key:l,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),a("div",{staticClass:"mt20"},[a("span",{staticClass:"seachTiele"},[t._v("评价分类:")]),t._v(" "),a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_reply,callback:function(e){t.$set(t.tableFrom,"is_reply",e)},expression:"tableFrom.is_reply"}},t._l(t.evaluationStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("商品信息:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入商品ID或者商品信息",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),t._v(" "),a("span",{staticClass:"seachTiele"},[t._v("用户名称:")]),t._v(" "),a("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入用户名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.nickname,callback:function(e){t.$set(t.tableFrom,"nickname",e)},expression:"tableFrom.nickname"}}),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")])],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_id",label:"商品ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.row.store_name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"product_score",label:"产品评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"service_score",label:"服务评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"postage_score",label:"物流评分","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"comment",label:"评价内容","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"mb5 content_font"},[t._v(t._s(e.row.comment))]),t._v(" "),a("div",{staticClass:"demo-image__preview"},t._l(e.row.pics,(function(t,e){return a("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant_reply_content",label:"回复内容","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"评价时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["sort"],callback:function(a){t.$set(e.row,"sort",t._n(a))},expression:"scope.row['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleReply(e.row.reply_id)}}},[t._v("回复")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],n=(a("55dd"),a("c4c8")),s={data:function(){return{tableData:{data:[],total:0},listLoading:!0,tableFrom:{is_reply:"",nickname:"",keyword:"",order_sn:"",product_id:this.$route.query.product_id?this.$route.query.product_id:"",status:"",date:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],tabClickIndex:"",ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,evaluationStatusList:[{value:"",label:"全部"},{value:1,label:"已回复"},{value:0,label:"未回复"}],orderDatalist:null}},mounted:function(){this.getList(1)},methods:{handleReply:function(t){var e=this;this.$modalForm(Object(n["nb"])(t)).then((function(){return e.getList(1)}))},handleSelectionChange:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.id)})),this.ids=e.join(",")},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.sort||t.row.sort<0)&&(t.row.sort=0),Object(n["ob"])(t.row.reply_id,{sort:t.row.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["mb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},o=s,r=(a("1f87"),a("2877")),c=Object(r["a"])(o,l,i,!1,null,"95fdc4c8",null);e["default"]=c.exports},5290:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-3e2c114c.a908faff.js b/public/mer/js/chunk-3e2c114c.a908faff.js new file mode 100644 index 00000000..78428a39 --- /dev/null +++ b/public/mer/js/chunk-3e2c114c.a908faff.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e2c114c"],{"147a":function(t,e,n){"use strict";n("8b6e")},5296:function(t,e,n){"use strict";n("6620")},6620:function(t,e,n){},"8b6e":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"u",(function(){return o})),n.d(e,"x",(function(){return i})),n.d(e,"v",(function(){return s})),n.d(e,"w",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"A",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return C})),n.d(e,"n",(function(){return F})),n.d(e,"o",(function(){return k})),n.d(e,"i",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"C",(function(){return S})),n.d(e,"p",(function(){return j})),n.d(e,"r",(function(){return L})),n.d(e,"s",(function(){return z})),n.d(e,"t",(function(){return P})),n.d(e,"q",(function(){return $}));var a=n("0c6d");function r(t){return a["a"].get("system/role/lst",t)}function o(){return a["a"].get("system/role/create/form")}function i(t){return a["a"].get("system/role/update/form/".concat(t))}function s(t){return a["a"].delete("system/role/delete/".concat(t))}function c(t,e){return a["a"].post("system/role/status/".concat(t),{status:e})}function u(t){return a["a"].get("system/admin/lst",t)}function l(){return a["a"].get("/system/admin/create/form")}function d(t){return a["a"].get("system/admin/update/form/".concat(t))}function p(t){return a["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return a["a"].post("system/admin/status/".concat(t),{status:e})}function f(t){return a["a"].get("system/admin/password/form/".concat(t))}function h(t){return a["a"].get("system/admin/log",t)}function b(){return a["a"].get("take/info")}function g(t){return a["a"].post("take/update",t)}function v(){return a["a"].get("margin/code")}function _(t){return a["a"].get("margin/lst",t)}function y(){return a["a"].post("financial/refund/margin")}function w(){return a["a"].get("serve/info")}function C(t){return a["a"].get("serve/meal",t)}function F(t){return a["a"].get("serve/code",t)}function k(t){return a["a"].get("serve/paylst",t)}function x(t){return a["a"].get("expr/temps",t)}function O(){return a["a"].get("serve/config")}function S(t){return a["a"].post("serve/config",t)}function j(){return a["a"].get("store/printer/create/form")}function L(t){return a["a"].get("store/printer/lst",t)}function z(t,e){return a["a"].post("store/printer/status/".concat(t),e)}function P(t){return a["a"].get("store/printer/update/".concat(t,"/form"))}function $(t){return a["a"].delete("store/printer/delete/".concat(t))}},c7de:function(t,e,n){t.exports=n.p+"mer/img/ren.c7bc0d99.png"},f28d:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"divBox"},[t.isShowList?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t.accountInfo.info?n("div",{staticClass:"acea-row header-count row-middle"},[n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("采集次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.copy.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:2!=t.copy.open},on:{click:function(e){return t.mealPay("copy")}}},[t._v("套餐购买")])],1)]),t._v(" "),n("div",{staticClass:"header-extra"},[n("div",{staticClass:"mb-5"},[n("span",[t._v("面单打印次数")])]),t._v(" "),n("div",[n("div",[t._v(t._s(t.dump.num||0))]),t._v(" "),n("el-button",{staticClass:"mt3",attrs:{size:"small",type:"primary",disabled:1!=t.dump.open},on:{click:function(e){return t.mealPay("dump")}}},[t._v("套餐购买")])],1)])]):n("div",{staticClass:"demo-basic--circle acea-row row-middle"},[n("span",{staticStyle:{color:"red"}},[t._v("平台未登录一号通!")])])])]):t._e()],1),t._v(" "),n("el-card",{staticClass:"ivu-mt"},[t.isShowList?n("table-list",{ref:"tableLists",attrs:{copy:t.copy,dump:t.dump,"account-info":t.accountInfo}}):t._e()],1)],1)},r=[],o=n("c80c"),i=(n("96cf"),n("3b8d")),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{attrs:{bordered:!1,"dis-hover":""}},[n("el-tabs",{on:{"tab-click":t.onChangeType},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},[n("el-tab-pane",{attrs:{label:"商品采集",name:"copy"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"电子面单打印",name:"mer_dump"}})],1),t._v(" "),n("el-row",[n("el-col",{staticClass:"record_count",attrs:{span:24}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getPurchase}},[t._v("购买记录")])],1)],1),t._v(" "),n("div",[n("el-table",{staticClass:"table",attrs:{data:t.tableList,loading:t.loading,size:"mini"}},[n("el-table-column",{key:"7",attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"1",attrs:{prop:"info.order_sn",label:"订单号","min-width":"200"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"2",attrs:{prop:"info.from_name",label:"发货人","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{attrs:{label:"收货人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.info&&e.row.info.to_name?e.row.info.to_name:""))])]}}],null,!1,396801068)}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"3",attrs:{prop:"info.delivery_id",label:"快递单号","min-width":"90"}}):t._e(),t._v(" "),"mer_dump"==t.tableFrom.type?n("el-table-column",{key:"4",attrs:{prop:"info.delivery_name",label:"快递公司编码","min-width":"90"}}):t._e(),t._v(" "),"copy"==t.tableFrom.type?n("el-table-column",{key:"6",attrs:{prop:"info",label:"复制URL","min-width":"200"}}):t._e(),t._v(" "),n("el-table-column",{key:"8",attrs:{prop:"create_time",label:"copy"!=t.tableFrom.type?"打印时间":"添加时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:"copy"==t.tableFrom.type?"商品采集购买记录":"电子面单购买记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-table",{staticClass:"mt25",attrs:{data:t.tableData,loading:t.loading}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.purchaseForm.page-1)*t.purchaseForm.limit+1))])]}}],null,!1,2493257592)}),t._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"订单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买记录","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.order_info?n("span",[t._v(t._s(e.row.order_info.price)+"元 / "+t._s(e.row.order_info.num)+"次")]):t._e()]}}],null,!1,3496719446)}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"购买时间","min-width":"90"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.purchaseForm.limit,"current-page":t.purchaseForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChangeOther,"current-change":t.pageChangeOther}})],1)],1):t._e()],1)},c=[],u=n("c4c8"),l=n("90e7"),d={name:"TableList",props:{copy:{type:Object,default:null},dump:{type:Object,default:null},accountInfo:{type:Object,default:null}},data:function(){return{isChecked:"copy",tableFrom:{page:1,limit:20,type:"copy"},total:0,loading:!1,tableList:[],modals:!1,dialogVisible:!1,tableData:[],purchaseForm:{page:1,limit:10}}},watch:{},created:function(){this.getRecordList()},mounted:function(){},methods:{onChangeType:function(){this.getRecordList()},getRecordList:function(){var t=this;this.loading=!0,Object(u["Y"])(this.tableFrom).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecordList("")},handleSizeChangeOther:function(t){this.purchaseForm.limit=t,this.getPurchase()},pageChange:function(t){this.tableFrom.page=t,this.getRecordList()},pageChangeOther:function(t){this.purchaseForm.page=t,this.getPurchase()},getPurchase:function(){var t=this;this.dialogVisible=!0,this.purchaseForm.type="copy"==this.tableFrom.type?1:2,Object(l["o"])(this.purchaseForm).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.tableData=a.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)}))}}},p=d,m=(n("5296"),n("2877")),f=Object(m["a"])(p,s,c,!1,null,"220c2673",null),h=f.exports,b=n("83d6"),g={name:"SmsConfig",components:{tableList:h},data:function(){return{roterPre:b["roterPre"],imgUrl:n("c7de"),spinShow:!1,isShowList:!1,smsAccount:"",accountInfo:{},dump:{},copy:{}}},created:function(){this.getServeInfo()},methods:{onOpen:function(t){this.$refs.tableLists.onOpenIndex(t)},mealPay:function(t){this.$router.push({path:this.roterPre+"/setting/sms/sms_pay/index",query:{type:t}})},getServeInfo:function(){var t=this;this.spinShow=!0,Object(l["y"])().then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,t.isShowList=!0,t.dump={num:a.export_dump_num,open:a.crmeb_serve_dump},t.copy={num:a.copy_product_num,open:a.copy_product_status},t.spinShow=!1,t.smsAccount=a.account,t.accountInfo=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message),t.isShowLogn=!0,t.isShowList=!1,t.spinShow=!1}))}}},v=g,_=(n("147a"),Object(m["a"])(v,a,r,!1,null,"cbe0a1ca",null));e["default"]=_.exports}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-406e1b8e.032629ba.js b/public/mer/js/chunk-406e1b8e.032629ba.js new file mode 100644 index 00000000..5a7f82d6 --- /dev/null +++ b/public/mer/js/chunk-406e1b8e.032629ba.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-406e1b8e"],{"0b69":function(t,e,a){"use strict";a("26bb")},"0e41":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"发起人搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入发起人昵称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.user_name,callback:function(e){t.$set(t.tableFrom,"user_name",e)},expression:"tableFrom.user_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"product_assist_set_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"助力商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[e.row.product?a("el-image",{attrs:{src:e.row.product.image,"preview-src-list":[e.row.product.image]}}):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist.store_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"助力价格","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.assist&&e.row.assist.assistSku[0].assist_price||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"assist_count",label:"助力人数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"发起人","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.user&&e.row.user.nickname||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"发起时间","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"yet_assist_count",label:"已参与人数","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{label:"活动时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.assist&&e.row.assist.start_time?e.row.assist.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.assist.end_time&&e.row.assist.end_time?e.row.assist.end_time.slice(0,10):""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_assist_set_id)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":t.isShowDetail}})],1)},l=[],s=a("c4c8"),n=a("83d6"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.dialogVisible?a("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户头像","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar_img,"preview-src-list":[t.row.avatar_img]}})],1)]}}],null,!1,3385799628)}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"参与时间","min-width":"200"}})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1):t._e()},r=[],c={name:"Info",props:{isShow:{type:Boolean,default:!0}},data:function(){return{id:"",loading:!1,dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},computed:{},methods:{getList:function(t){var e=this;this.id=t,this.listLoading=!0,Object(s["c"])(this.id,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList(this.id)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(this.id)}}},d=c,u=(a("0b69"),a("2877")),m=Object(u["a"])(d,o,r,!1,null,"56894922",null),b=m.exports,p={name:"ProductList",components:{detailsData:b},data:function(){return{props:{emitPath:!1},roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},assistStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},tableFrom:{page:1,limit:20,keyword:"",date:"",type:"",user_name:""},modals:!1,dialogVisible:!1,loading:!1,manyTabTit:{},manyTabDate:{},attrInfo:{},timeVal:"",isShowDetail:!1}},mounted:function(){this.getList("")},methods:{watCh:function(){},goDetail:function(t){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getList(t)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["d"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},h=p,g=(a("6e9f"),Object(u["a"])(h,i,l,!1,null,"4bf39339",null));e["default"]=g.exports},"26bb":function(t,e,a){},"6e9f":function(t,e,a){"use strict";a("b8b9")},b8b9:function(t,e,a){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-4a9f6d94.f6a9fdd1.js b/public/mer/js/chunk-4a9f6d94.f6a9fdd1.js new file mode 100644 index 00000000..cb6ee712 --- /dev/null +++ b/public/mer/js/chunk-4a9f6d94.f6a9fdd1.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a9f6d94"],{3593:function(t,e,n){},"9e7d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[n("el-form-item",{attrs:{label:"订单状态:"}},[n("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.order_type,callback:function(e){t.$set(t.tableFrom,"order_type",e)},expression:"tableFrom.order_type"}},[n("el-radio-button",{attrs:{label:""}},[t._v("全部 ")]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[t._v("待付款")]),t._v(" "),n("el-radio-button",{attrs:{label:"2"}},[t._v("待发货")]),t._v(" "),n("el-radio-button",{attrs:{label:"3"}},[t._v("待收货")]),t._v(" "),n("el-radio-button",{attrs:{label:"4"}},[t._v("待评价")]),t._v(" "),n("el-radio-button",{attrs:{label:"5"}},[t._v("交易完成")]),t._v(" "),n("el-radio-button",{attrs:{label:"6"}},[t._v("已退款")]),t._v(" "),n("el-radio-button",{attrs:{label:"7"}},[t._v("已删除")])],1)],1),t._v(" "),n("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[n("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return n("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"开票状态:"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.invoiceStatusList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{staticClass:"width100",attrs:{label:"用户信息:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称/手机号",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),n("el-button",{staticStyle:{display:"block"},attrs:{size:"small",type:"primary"},on:{click:function(e){return t.getInvoiceInfo("","invoice")}}},[t._v("\n 合并开票\n ")])],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleSelection",staticClass:"table",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark","row-key":function(t){return t.order_receipt_id},data:t.tableData.data,size:"mini"},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"storeOrder.order_sn",label:"订单号","min-width":"170"}}),t._v(" "),n("el-table-column",{attrs:{prop:"user.nickname",label:"用户昵称","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"order_price",label:"订单金额","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"订单状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.storeOrder&&0===e.row.storeOrder.paid&&0===e.row.storeOrder.status?n("span",[t._v("待付款")]):n("span",[t._v(t._s(t._f("orderStatusFilter")(e.row.storeOrder&&e.row.storeOrder.status)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"receipt_price",label:"发票金额","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"receipt_sn",label:"发票单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"发票类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receipt_info?n("span",[t._v(t._s(1==e.row.receipt_info.receipt_type?"普通发票":"专用发票"))]):n("span",[t._v("--")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票抬头","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s("1"===e.row.receipt_info.receipt_title_type?"个人":"企业"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票联系人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.storeOrder&&e.row.storeOrder.real_name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票联系信息","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.delivery_info.email?e.row.delivery_info.email:e.row.delivery_info.user_address&&e.row.delivery_info.user_address+e.row.delivery_info.user_phone&&e.row.delivery_info.user_phone))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"开票状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1==e.row.status?"已开":"未开"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_mark",label:"发票备注","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status&&e.row.storeOrder&&1===e.row.storeOrder.paid?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.getInvoiceInfo(e.row.order_receipt_id,"invoice")}}},[t._v("开票")]):t._e(),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onOrderDetail(e.row.order_id)}}},[t._v("订单详情")]),t._v(" "),e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.getInvoiceInfo(e.row.order_receipt_id,"edit")}}},[t._v("编辑")]):t._e()]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:t.invoiceInfo.title,visible:t.dialogVisible,width:"900px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("div",{staticClass:"box-container"},[n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name",staticStyle:{color:"#333"}},[t._v("发票详情")])]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name",staticStyle:{color:"#333"}},[t._v("发票申请单号:")]),t._v(t._s(t.invoiceInfo.receipt_sn))])]),t._v(" "),n("div",{staticClass:"title"},[t._v("发票信息")]),t._v(" "),n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票抬头:")]),t._v(t._s(t.invoiceInfo.receipt_info.receipt_title))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票类型:")]),t._v(t._s(1==t.invoiceInfo.receipt_info.receipt_type?"普通发票":"专用发票"))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票抬头类型:")]),t._v(t._s("1"==t.invoiceInfo.receipt_info.receipt_title_type?"个人":"企业"))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票金额:")]),t._v(t._s(t.invoiceInfo.receipt_price))]),t._v(" "),"2"==t.invoiceInfo.receipt_info.receipt_title_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业税号:")]),t._v(t._s(t.invoiceInfo.receipt_info.duty_paragraph))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("开户银行:")]),t._v(t._s(t.invoiceInfo.receipt_info.bank_name))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("银行账号:")]),t._v(t._s(t.invoiceInfo.receipt_info.bank_code))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业地址:")]),t._v(t._s(t.invoiceInfo.receipt_info.address))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业电话:")]),t._v(t._s(t.invoiceInfo.receipt_info.tel))]):t._e()]),t._v(" "),n("div",{staticClass:"title"},[t._v("联系信息:")]),t._v(" "),1==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系邮箱:")]),t._v(t._s(t.invoiceInfo.delivery_info.email))])]):n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人姓名:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_name))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人电话:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_phone))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人地址:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_address))])]),t._v(" "),n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("开票状态:")]),t._v(t._s(1==t.invoiceInfo.status?"已开":"未开"))]),t._v(" "),n("div",{staticClass:"list sp100"},[n("label",{staticClass:"name"},[t._v("发票号码:")]),n("span",{staticClass:"info"},[n("el-input",{nativeOn:{keyup:function(e){t.invoiceData.number=t.invoiceData.number.replace(/[^\w]/g,"")}},model:{value:t.invoiceData.number,callback:function(e){t.$set(t.invoiceData,"number",e)},expression:"invoiceData.number"}})],1)]),t._v(" "),n("div",{staticClass:"list sp100"},[n("label",{staticClass:"name"},[t._v("发票备注:")]),n("span",{staticClass:"info"},[n("el-input",{attrs:{type:"textarea",rows:5},model:{value:t.invoiceData.mark,callback:function(e){t.$set(t.invoiceData,"mark",e)},expression:"invoiceData.mark"}})],1)])]),t._v(" "),n("el-button",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{type:"primary"},on:{click:t.handleInvoic}},[t._v("确定")])],1)])]):t._e()],1)},r=[],a=(n("ac6a"),n("6b54"),n("f8b7")),o={name:"OrderInvoice",data:function(){return{logisticsName:"refund",id:0,type:"",tableData:{data:[],total:0},invoiceStatusList:[{label:"已开票",value:1},{label:"未开票",value:0}],listLoading:!0,tableFrom:{username:"",type:"",date:"",page:1,limit:20,receipt_sn:"",order_type:"",keyword:"",status:""},orderChartType:{},timeVal:[],multipleSelection:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],tableFromLog:{page:1,limit:20},tableDataLog:{data:[],total:0},loading:!1,dialogVisible:!1,orderDatalist:null,invoiceInfo:{},invoiceData:{number:"",mark:""}}},mounted:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList(1)},methods:{onOrderDetail:function(t){this.$router.push({name:"OrderList",query:{id:t}})},handleSelectionChange:function(t){this.multipleSelection=t},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList("")},getInvoiceInfo:function(t,e){var n=this;this.id=t,this.type=e;var i=t?t.toString():this.getInvoic(),r={ids:i};"invoice"===e?Object(a["w"])(r).then((function(t){n.listLoading=!1,n.dialogVisible=!0,n.invoiceInfo=t.data,n.invoiceData={number:"",mark:""}})).catch((function(t){n.$message.error(t.message),n.listLoading=!1})):Object(a["v"])(t).then((function(t){n.listLoading=!1,n.dialogVisible=!0,n.invoiceInfo=t.data,n.invoiceData={number:t.data.receipt_no,mark:t.data.mer_mark}})).catch((function(t){n.$message.error(t.message),n.listLoading=!1}))},handleInvoic:function(){var t=this,e=this.id?this.id.toString():this.getInvoic(),n={ids:e,receipt_sn:this.invoiceInfo.receipt_sn,receipt_price:this.invoiceInfo.receipt_price,receipt_no:this.invoiceData.number,mer_mark:this.invoiceData.mark?this.invoiceData.mark:""};"invoice"===this.type?Object(a["u"])(n).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.getList(),t.id=""})).catch((function(e){t.$message.error(e.message),t.listLoading=!1})):Object(a["y"])(this.id,{receipt_no:this.invoiceData.number,mer_mark:this.invoiceData.mark?this.invoiceData.mark:""}).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.getList(),t.id=""})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},getInvoic:function(){var t=[];return this.multipleSelection.forEach((function(e,n){t.push(e.order_receipt_id)})),t.toString()},onOrderMark:function(t){},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(a["x"])(this.tableFrom).then((function(t){e.orderChartType=t.data.stat,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleClose:function(){this.dialogLogistics=!1}}},s=o,l=(n("cc4b"),n("2877")),c=Object(l["a"])(s,i,r,!1,null,"1bacd7f6",null);e["default"]=c.exports},cc4b:function(t,e,n){"use strict";n("3593")},f8b7:function(t,e,n){"use strict";n.d(e,"E",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"I",(function(){return s})),n.d(e,"B",(function(){return l})),n.d(e,"C",(function(){return c})),n.d(e,"F",(function(){return u})),n.d(e,"H",(function(){return d})),n.d(e,"A",(function(){return f})),n.d(e,"G",(function(){return v})),n.d(e,"P",(function(){return p})),n.d(e,"N",(function(){return _})),n.d(e,"S",(function(){return m})),n.d(e,"R",(function(){return b})),n.d(e,"Q",(function(){return g})),n.d(e,"M",(function(){return h})),n.d(e,"d",(function(){return y})),n.d(e,"r",(function(){return C})),n.d(e,"O",(function(){return k})),n.d(e,"m",(function(){return w})),n.d(e,"l",(function(){return x})),n.d(e,"k",(function(){return L})),n.d(e,"j",(function(){return I})),n.d(e,"z",(function(){return F})),n.d(e,"t",(function(){return S})),n.d(e,"D",(function(){return O})),n.d(e,"U",(function(){return D})),n.d(e,"V",(function(){return z})),n.d(e,"T",(function(){return $})),n.d(e,"x",(function(){return V})),n.d(e,"w",(function(){return j})),n.d(e,"u",(function(){return T})),n.d(e,"v",(function(){return M})),n.d(e,"y",(function(){return E})),n.d(e,"i",(function(){return q})),n.d(e,"g",(function(){return N})),n.d(e,"h",(function(){return J})),n.d(e,"L",(function(){return W})),n.d(e,"o",(function(){return B})),n.d(e,"n",(function(){return P})),n.d(e,"a",(function(){return A})),n.d(e,"q",(function(){return G})),n.d(e,"s",(function(){return H})),n.d(e,"p",(function(){return K})),n.d(e,"f",(function(){return Q})),n.d(e,"e",(function(){return R})),n.d(e,"K",(function(){return U})),n.d(e,"J",(function(){return X}));var i=n("0c6d");function r(t){return i["a"].get("store/order/lst",t)}function a(){return i["a"].get("store/order/chart")}function o(t){return i["a"].get("store/order/title",t)}function s(t,e){return i["a"].post("store/order/update/".concat(t),e)}function l(t,e){return i["a"].post("store/order/delivery/".concat(t),e)}function c(t){return i["a"].get("store/order/detail/".concat(t))}function u(t,e){return i["a"].get("store/order/log/".concat(t),e)}function d(t){return i["a"].get("store/order/remark/".concat(t,"/form"))}function f(t){return i["a"].post("store/order/delete/".concat(t))}function v(t){return i["a"].get("store/order/printer/".concat(t))}function p(t){return i["a"].get("store/refundorder/lst",t)}function _(t){return i["a"].get("store/refundorder/detail/".concat(t))}function m(t){return i["a"].get("store/refundorder/status/".concat(t,"/form"))}function b(t){return i["a"].get("store/refundorder/mark/".concat(t,"/form"))}function g(t){return i["a"].get("store/refundorder/log/".concat(t))}function h(t){return i["a"].get("store/refundorder/delete/".concat(t))}function y(t){return i["a"].post("store/refundorder/refund/".concat(t))}function C(t){return i["a"].get("store/order/express/".concat(t))}function k(t){return i["a"].get("store/refundorder/express/".concat(t))}function w(t){return i["a"].get("store/order/excel",t)}function x(t){return i["a"].get("store/order/delivery_export",t)}function L(t){return i["a"].get("excel/lst",t)}function I(t){return i["a"].get("excel/download/".concat(t))}function F(t){return i["a"].get("store/order/verify/".concat(t))}function S(t,e){return i["a"].post("store/order/verify/".concat(t),e)}function O(){return i["a"].get("store/order/filtter")}function D(){return i["a"].get("store/order/takechart")}function z(t){return i["a"].get("store/order/takelst",t)}function $(t){return i["a"].get("store/order/take_title",t)}function V(t){return i["a"].get("store/receipt/lst",t)}function j(t){return i["a"].get("store/receipt/set_recipt",t)}function T(t){return i["a"].post("store/receipt/save_recipt",t)}function M(t){return i["a"].get("store/receipt/detail/".concat(t))}function E(t,e){return i["a"].post("store/receipt/update/".concat(t),e)}function q(t){return i["a"].get("store/import/lst",t)}function N(t,e){return i["a"].get("store/import/detail/".concat(t),e)}function J(t){return i["a"].get("store/import/excel/".concat(t))}function W(t){return i["a"].get("store/refundorder/excel",t)}function B(){return i["a"].get("expr/options")}function P(t){return i["a"].get("expr/temps",t)}function A(t){return i["a"].post("store/order/delivery_batch",t)}function G(){return i["a"].get("serve/config")}function H(){return i["a"].get("delivery/station/select")}function K(){return i["a"].get("delivery/station/options")}function Q(t){return i["a"].get("delivery/order/lst",t)}function R(t){return i["a"].get("delivery/order/cancel/".concat(t,"/form"))}function U(t){return i["a"].get("delivery/station/payLst",t)}function X(t){return i["a"].get("delivery/station/code",t)}}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-4f7a44e8.ed04dfed.js b/public/mer/js/chunk-4f7a44e8.ed04dfed.js new file mode 100644 index 00000000..cf66d687 --- /dev/null +++ b/public/mer/js/chunk-4f7a44e8.ed04dfed.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f7a44e8"],{"146d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",staticStyle:{display:"block"},attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"审核状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部 ")]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("已审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核失败")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"到账状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){t.getList(1)}},model:{value:t.tableFrom.financial_status,callback:function(e){t.$set(t.tableFrom,"financial_status",e)},expression:"tableFrom.financial_status"}},t._l(t.arrivalStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("br"),t._v(" "),a("el-form-item",{attrs:{label:"收款方式:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.financial_type,callback:function(e){t.$set(t.tableFrom,"financial_type",e)},expression:"tableFrom.financial_type"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部 ")]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("银行卡")]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("支付宝")]),t._v(" "),a("el-radio-button",{attrs:{label:"2"}},[t._v("微信")])],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入管理员姓名",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exports}},[t._v("导出列表")])],1),t._v(" "),a("el-button",{staticStyle:{display:"block"},attrs:{size:"small",type:"primary"},on:{click:t.applyTransfer}},[t._v("\n 申请转账\n ")])],1)],1),t._v(" "),a("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{label:"序号","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"申请时间","min-width":"170"}}),t._v(" "),a("el-table-column",{attrs:{prop:"extract_money",label:"转账金额(元)","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_admin_id",label:"管理员姓名","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"收款方式","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.financial_type?a("span",[t._v(t._s(1==e.row.financial_type?"银行":2==e.row.financial_type?"微信":"支付宝"))]):a("span",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0==e.row.status?"待审核":1==e.row.status?"审核通过":"审核未通过"))]),t._v(" "),-1===e.row.status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"到账状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.financial_status?"已到账":"未到账"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_money",label:"余额(元)","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.transferDetail(e.row.financial_id)}}},[t._v("转账信息")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.transferMark(e.row.financial_id)}}},[t._v("备注")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"转账信息:",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商户余额:")]),t._v(t._s(t.transferData.mer_money))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商户收款方式:")]),t._v(t._s(1==t.transferData.financial_type?"银行卡":2==t.transferData.financial_type?"微信":"支付宝"))]),t._v(" "),1==t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("开户银行:")]),t._v(t._s(t.transferData.financial_account.bank))]):t._e(),t._v(" "),1==t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("银行账号:")]),t._v(t._s(t.transferData.financial_account.bank_code))]):t._e(),t._v(" "),1==t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("开户户名:")]),t._v(t._s(t.transferData.financial_account.name))]):t._e(),t._v(" "),1!=t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("真实姓名:")]),t._v(t._s(t.transferData.financial_account.name))]):t._e(),t._v(" "),2==t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("微信号:")]),t._v(t._s(t.transferData.financial_account.wechat))]):t._e(),t._v(" "),2==t.transferData.financial_type?a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("微信收款二维码:")]),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.transferData.financial_account.wechat_code}})]):t._e(),t._v(" "),3==t.transferData.financial_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("支付宝账号:")]),t._v(t._s(t.transferData.financial_account.alipay))]):t._e(),t._v(" "),3==t.transferData.financial_type?a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("支付宝收款二维码:")]),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.transferData.financial_account.alipay_code}})]):t._e(),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("本次申请转账金额:")]),a("span",{staticClass:"font-red"},[t._v(t._s(t.transferData.extract_money))])]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(0==t.transferData.status?"待审核":1==t.transferData.status?"已审核":"审核失败"))]),t._v(" "),1==t.transferData.status?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("审核时间:")]),t._v(t._s(t.transferData.status_time))]):t._e(),t._v(" "),1==t.transferData.status&&t.transferData.update_time?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("转账凭证:")]),t._v(" "),t.transferData.image.length>0?a("div",{staticClass:"acea-row"},t._l(t.transferData.image,(function(e,n){return a("div",{key:n,staticClass:"pictrue"},[a("img",{attrs:{src:e},on:{click:function(a){return t.getPicture(e)}}})])})),0):t._e()]):t._e(),t._v(" "),1==t.transferData.status&&t.transferData.update_time?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("转账时间:")]),t._v(t._s(t.transferData.update_time))]):t._e(),t._v(" "),-1==t.transferData.status?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("审核未通过原因:")]),t._v(t._s(t.transferData.refusal))]):t._e()])])]):t._e(),t._v(" "),t.pictureVisible?a("el-dialog",{attrs:{visible:t.pictureVisible,width:"700px"},on:{"update:visible":function(e){t.pictureVisible=e}}},[a("img",{staticClass:"pictures",attrs:{src:t.pictureUrl}})]):t._e(),t._v(" "),a("file-list",{ref:"exportList"})],1)},r=[],i=a("c80c"),s=(a("96cf"),a("3b8d")),l=a("2801"),o=a("0f56"),c=a("2e83"),u=a("30dc"),f={components:{cardsData:o["a"],fileList:u["a"]},name:"transferAccount",data:function(){return{tableData:{data:[],total:0},arrivalStatusList:[{label:"已到账",value:1},{label:"未到账",value:0}],listLoading:!0,tableFrom:{date:"",page:1,limit:20,keyword:"",financial_type:"",status:"",financial_status:""},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],loading:!1,dialogVisible:!1,pictureVisible:!1,pictureUrl:"",transferData:{},cardLists:[]}},mounted:function(){this.getList(1)},methods:{transferDetail:function(t){var e=this;Object(l["p"])(t).then((function(t){e.dialogVisible=!0,e.transferData=t.data})).catch((function(t){e.$message.error(t.message)}))},getPicture:function(t){this.pictureVisible=!0,this.pictureUrl=t},transferMark:function(t){var e=this;this.$modalForm(Object(l["r"])(t)).then((function(){return e.getList(1)}))},applyTransfer:function(){var t=this;this.$modalForm(Object(l["a"])()).then((function(){return t.getList(1)}))},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},exports:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e){var a,n,r,s,l;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=JSON.parse(JSON.stringify(this.tableFrom)),n=[],a.page=1,r=1,s={},l=0;case 5:if(!(ln)&&c.mergeCells(x(r)+t+":"+x(r)+e)}function C(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[t._v("用户已删除")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"订单类型","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(0==e.row.order_type?"普通订单":"核销订单"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"real_name",label:"收货人","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,n){return r("div",{key:n,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),r("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num))])])}))}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"pay_price",label:"实际支付","min-width":"100"}}),t._v(" "),r("el-table-column",{attrs:{prop:"pay_price",label:"核销员","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.paid?r("span",[t._v(t._s(e.row.verifyService?e.row.verifyService.nickname:"管理员核销"))]):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"serviceScore",label:"核销状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(-1==e.row.status?"已退款":"已核销"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"verify_time",label:"核销时间","min-width":"150"}})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),r("file-list",{ref:"exportList"})],1)},a=[],o=r("f8b7"),i=r("30dc"),s=r("0f56"),c={components:{cardsData:s["a"],fileList:i["a"]},data:function(){return{orderId:0,tableData:{data:[],total:0},listLoading:!0,tableFrom:{order_sn:"",status:"",date:"",page:1,limit:20,type:"4",order_type:"1",username:"",keywords:""},orderChartType:{},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,fileVisible:!1,cardLists:[],orderDatalist:null,headeNum:[{type:1,name:"全部",count:10},{type:2,name:"普通订单",count:3},{type:3,name:"直播订单",count:1},{type:4,name:"核销订单",count:2},{type:5,name:"拼团订单",count:0},{type:6,name:"秒杀订单",count:6},{type:7,name:"砍价订单",count:5}]}},mounted:function(){this.headerList(),this.getCardList(),this.getList(1)},methods:{exportOrder:function(){var t=this;Object(o["m"])({status:this.tableFrom.status,date:this.tableFrom.date,take_order:1}).then((function(e){var r=t.$createElement;t.$msgbox({title:"提示",message:r("p",null,[r("span",null,'文件正在生成中,请稍后点击"'),r("span",{style:"color: teal"},"导出记录"),r("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.fileVisible=!0,this.$refs.exportList.exportFileList("order")},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList("")},handleSelectionChange:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.id)})),this.ids=e.join(",")},selectChange:function(t){this.timeVal=[],this.tableFrom.date=t,this.getCardList(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getCardList(),this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(o["V"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},getCardList:function(){var t=this;Object(o["T"])(this.tableFrom).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},headerList:function(){var t=this;Object(o["U"])().then((function(e){t.orderChartType=e.data})).catch((function(e){t.$message.error(e.message)}))}}},l=c,u=(r("a451"),r("2877")),d=Object(u["a"])(l,n,a,!1,null,"64ca3edd",null);e["default"]=d.exports},f8b7:function(t,e,r){"use strict";r.d(e,"E",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return i})),r.d(e,"I",(function(){return s})),r.d(e,"B",(function(){return c})),r.d(e,"C",(function(){return l})),r.d(e,"F",(function(){return u})),r.d(e,"H",(function(){return d})),r.d(e,"A",(function(){return f})),r.d(e,"G",(function(){return p})),r.d(e,"P",(function(){return m})),r.d(e,"N",(function(){return g})),r.d(e,"S",(function(){return h})),r.d(e,"R",(function(){return b})),r.d(e,"Q",(function(){return v})),r.d(e,"M",(function(){return _})),r.d(e,"d",(function(){return y})),r.d(e,"r",(function(){return L})),r.d(e,"O",(function(){return x})),r.d(e,"m",(function(){return w})),r.d(e,"l",(function(){return k})),r.d(e,"k",(function(){return C})),r.d(e,"j",(function(){return F})),r.d(e,"z",(function(){return S})),r.d(e,"t",(function(){return z})),r.d(e,"D",(function(){return V})),r.d(e,"U",(function(){return E})),r.d(e,"V",(function(){return O})),r.d(e,"T",(function(){return $})),r.d(e,"x",(function(){return D})),r.d(e,"w",(function(){return j})),r.d(e,"u",(function(){return T})),r.d(e,"v",(function(){return B})),r.d(e,"y",(function(){return M})),r.d(e,"i",(function(){return N})),r.d(e,"g",(function(){return A})),r.d(e,"h",(function(){return J})),r.d(e,"L",(function(){return P})),r.d(e,"o",(function(){return I})),r.d(e,"n",(function(){return U})),r.d(e,"a",(function(){return W})),r.d(e,"q",(function(){return q})),r.d(e,"s",(function(){return G})),r.d(e,"p",(function(){return H})),r.d(e,"f",(function(){return K})),r.d(e,"e",(function(){return Q})),r.d(e,"K",(function(){return R})),r.d(e,"J",(function(){return X}));var n=r("0c6d");function a(t){return n["a"].get("store/order/lst",t)}function o(){return n["a"].get("store/order/chart")}function i(t){return n["a"].get("store/order/title",t)}function s(t,e){return n["a"].post("store/order/update/".concat(t),e)}function c(t,e){return n["a"].post("store/order/delivery/".concat(t),e)}function l(t){return n["a"].get("store/order/detail/".concat(t))}function u(t,e){return n["a"].get("store/order/log/".concat(t),e)}function d(t){return n["a"].get("store/order/remark/".concat(t,"/form"))}function f(t){return n["a"].post("store/order/delete/".concat(t))}function p(t){return n["a"].get("store/order/printer/".concat(t))}function m(t){return n["a"].get("store/refundorder/lst",t)}function g(t){return n["a"].get("store/refundorder/detail/".concat(t))}function h(t){return n["a"].get("store/refundorder/status/".concat(t,"/form"))}function b(t){return n["a"].get("store/refundorder/mark/".concat(t,"/form"))}function v(t){return n["a"].get("store/refundorder/log/".concat(t))}function _(t){return n["a"].get("store/refundorder/delete/".concat(t))}function y(t){return n["a"].post("store/refundorder/refund/".concat(t))}function L(t){return n["a"].get("store/order/express/".concat(t))}function x(t){return n["a"].get("store/refundorder/express/".concat(t))}function w(t){return n["a"].get("store/order/excel",t)}function k(t){return n["a"].get("store/order/delivery_export",t)}function C(t){return n["a"].get("excel/lst",t)}function F(t){return n["a"].get("excel/download/".concat(t))}function S(t){return n["a"].get("store/order/verify/".concat(t))}function z(t,e){return n["a"].post("store/order/verify/".concat(t),e)}function V(){return n["a"].get("store/order/filtter")}function E(){return n["a"].get("store/order/takechart")}function O(t){return n["a"].get("store/order/takelst",t)}function $(t){return n["a"].get("store/order/take_title",t)}function D(t){return n["a"].get("store/receipt/lst",t)}function j(t){return n["a"].get("store/receipt/set_recipt",t)}function T(t){return n["a"].post("store/receipt/save_recipt",t)}function B(t){return n["a"].get("store/receipt/detail/".concat(t))}function M(t,e){return n["a"].post("store/receipt/update/".concat(t),e)}function N(t){return n["a"].get("store/import/lst",t)}function A(t,e){return n["a"].get("store/import/detail/".concat(t),e)}function J(t){return n["a"].get("store/import/excel/".concat(t))}function P(t){return n["a"].get("store/refundorder/excel",t)}function I(){return n["a"].get("expr/options")}function U(t){return n["a"].get("expr/temps",t)}function W(t){return n["a"].post("store/order/delivery_batch",t)}function q(){return n["a"].get("serve/config")}function G(){return n["a"].get("delivery/station/select")}function H(){return n["a"].get("delivery/station/options")}function K(t){return n["a"].get("delivery/order/lst",t)}function Q(t){return n["a"].get("delivery/order/cancel/".concat(t,"/form"))}function R(t){return n["a"].get("delivery/station/payLst",t)}function X(t){return n["a"].get("delivery/station/code",t)}}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-546dc2ee.a1856d88.js b/public/mer/js/chunk-546dc2ee.a1856d88.js new file mode 100644 index 00000000..6e575e42 --- /dev/null +++ b/public/mer/js/chunk-546dc2ee.a1856d88.js @@ -0,0 +1,8 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-546dc2ee"],{"74bf":function(t,e,a){"use strict";a("e6e3")},"85ba":function(t,e,a){},9920:function(t,e,a){},a247:function(t,e,a){"use strict";a("9920")},b311:function(t,e,a){ +/*! + * clipboard.js v2.0.4 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT © Zeno Rocha + */ +(function(e,a){t.exports=a()})(0,(function(){return function(t){var e={};function a(s){if(e[s])return e[s].exports;var o=e[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(s,o,function(e){return t[e]}.bind(null,o));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";var s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===s(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new n.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){var e=h("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach((function(t){a=a&&!!document.queryCommandSupported(t)})),a}}]),e}(l.default);function h(t,e){var a="data-clipboard-"+t;if(e.hasAttribute(a))return e.getAttribute(a)}t.exports=v},function(t,e,a){"use strict";var s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=a+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":s(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c},function(t,e){function a(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),o=document.createRange();o.selectNodeContents(t),s.removeAllRanges(),s.addRange(o),e=s.toString()}return e}t.exports=a},function(t,e){function a(){}a.prototype={on:function(t,e,a){var s=this.e||(this.e={});return(s[t]||(s[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var s=this;function o(){s.off(t,o),e.apply(a,arguments)}return o._=e,this.on(t,o,a)},emit:function(t){var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),s=0,o=a.length;for(s;sn)&&c.mergeCells(L(a)+t+":"+L(a)+e)}function w(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;eDate.now()}},value1:"",value2:"",decline:1,mainData:{yesterday:{},today:{},lastWeekRate:{}},today:{},lastWeekRate:{},yesterday:{},roterPre:b["roterPre"]}},components:{CountTo:p.a},mounted:function(){this.getMainData()},methods:{handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)},getMainData:function(){var t=this;m().then((function(a){200===a.status&&(t.mainData=a.data)})).catch((function(a){t.$message.error(a.message)}))}}},k=x,D=(e("8b9d"),e("2877")),w=Object(D["a"])(k,c,d,!1,null,"27299f7a",null),S=w.exports,T=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},$=[],E=(e("c5f6"),e("313e")),R=e.n(E),L=e("ed08"),P={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(L["a"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}};e("817d");var z={mixins:[P],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0},date:{type:String,default:"lately7"}},data:function(){return{chart:null,horizontalAxis:[],PaymentAmount:[],orderNumber:[],user:[]}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}},date:{deep:!0,handler:function(t){this.date=t;this.date}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=R.a.init(this.$el,"macarons")},getOrderData:function(t){var a=this,e=this;h(t).then((function(t){if(200===t.status){e.horizontalAxis.splice(0,e.horizontalAxis.length),e.PaymentAmount.splice(0,e.PaymentAmount.length),e.orderNumber.splice(0,e.orderNumber.length),e.user.splice(0,e.user.length),t.data.map((function(t){e.horizontalAxis.push(t.day),e.PaymentAmount.push(t.pay_price),e.orderNumber.push(t.total),e.user.push(t.user)}));var s=e.horizontalAxis,i=e.PaymentAmount;console.log(i);var n=e.orderNumber,r=e.user;e.chart.setOption({xAxis:{data:s,axisLine:{lineStyle:{color:"#dfdfdf"}},boundaryGap:!1,axisTick:{show:!1},axisLabel:{interval:0}},grid:{left:50,right:50,bottom:20,top:70,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:[{name:"订单/支付人数",max:parseFloat(a.arrayMax(n))+5,type:"value",axisLabel:{formatter:"{value}"}},{name:"支付金额",type:"value",max:parseFloat(a.arrayMax(i))+50,min:a.arrayMin(i),splitLine:{show:!1}}],legend:{data:["订单数","支付人数","支付金额"],left:10},series:[{name:"订单数",markPoint:{data:[{type:"max",name:"峰值"}]},itemStyle:{normal:{color:"#5b8ff9",lineStyle:{color:"#5b8ff9",width:2}}},smooth:!1,type:"line",data:n,animationDuration:2800,animationEasing:"cubicInOut"},{name:"支付人数",smooth:!1,type:"line",markPoint:{data:[{type:"max",name:"峰值"}]},itemStyle:{normal:{color:"#5d7092",lineStyle:{color:"#5d7092",width:2},areaStyle:{color:"rgba(255,255,255,.4)"}}},data:r,animationDuration:2800,animationEasing:"quadraticOut"},{name:"支付金额",yAxisIndex:1,smooth:!1,type:"line",markPoint:{data:[{type:"max",name:"峰值"}]},itemStyle:{normal:{color:"#5ad8a6",lineStyle:{color:"#5ad8a6",width:2},areaStyle:{color:"rgba(255,255,255,.4)"}}},data:i,animationDuration:2800,animationEasing:"quadraticOut"}]})}})).catch((function(t){a.$message.error(t.message)}))},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.expectedData,t.actualData,t.payer},arrayMin:function(t){for(var a=t[0],e=1,s=t.length;ea&&(a=t[e]);return a}}},O=z,A=Object(D["a"])(O,T,$,!1,null,null,null),N=A.exports,W=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},j=[];e("817d");var F=3e3,B={mixins:[P],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=R.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Technology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:F}]})}}},M=B,U=Object(D["a"])(M,W,j,!1,null,null,null),H=U.exports,I=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},V=[];e("9fad");var q={mixins:[P],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"},amount:{type:Boolean,default:!0},date:{type:String,default:"lately7"}},data:function(){return{chart:null,newData:"",oldData:"",Comment:[]}},watch:{amount:{deep:!0,handler:function(t){this.amount=t,this.getTurnoverRatio()}},date:{deep:!0,handler:function(t){this.date=t}}},mounted:function(){this.$nextTick((function(){}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getTurnoverRatio:function(){var t=this;f({date:this.date}).then((function(a){200===a.status&&(t.orderCustomer=a.data,t.newData=t.amount?a.data.newTotalPrice:a.data.newUser,t.oldData=t.amount?a.data.oldTotalPrice:a.data.oldUser,t.chart=R.a.init(t.$el,"shine"),t.chart.setOption({tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",bottom:0,left:"5%",data:["新用户","老用户"]},series:[{name:t.amount?"金额":"客户数",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:t.newData,name:"新用户",itemStyle:{color:"#6394F9"}},{value:t.oldData,name:"老用户",itemStyle:{color:"#EFAE23"}}],animationEasing:"cubicInOut",animationDuration:2600}]}))})).catch((function(a){t.$message.error(a.message)}))}}},J=q,G=Object(D["a"])(J,I,V,!1,null,null,null),X=G.exports,Y=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},K=[];e("817d");var Q=6e3,Z={mixins:[P],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=R.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:[{name:"pageA",type:"bar",stack:"vistors",barWidth:"60%",data:[79,52,200,334,390,330,220],animationDuration:Q},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:Q},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:Q}]})}}},tt=Z,at=Object(D["a"])(tt,Y,K,!1,null,null,null),et=at.exports,st=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("section",{staticClass:"todoapp"},[e("header",{staticClass:"header"},[e("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.addTodo(a)}}})]),t._v(" "),e("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[e("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(a){return t.toggleAll({done:!t.allChecked})}}}),t._v(" "),e("label",{attrs:{for:"toggle-all"}}),t._v(" "),e("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(a,s){return e("todo",{key:s,attrs:{todo:a},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),t._v(" "),e("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[e("span",{staticClass:"todo-count"},[e("strong",[t._v(t._s(t.remaining))]),t._v("\n "+t._s(t._f("pluralize")(t.remaining,"item"))+" left\n ")]),t._v(" "),e("ul",{staticClass:"filters"},t._l(t.filters,(function(a,s){return e("li",{key:s},[e("a",{class:{selected:t.visibility===s},on:{click:function(a){a.preventDefault(),t.visibility=s}}},[t._v(t._s(t._f("capitalize")(s)))])])})),0)])])},it=[],nt=(e("ac6a"),function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[e("div",{staticClass:"view"},[e("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(a){return t.toggleTodo(t.todo)}}}),t._v(" "),e("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(a){t.editing=!0}}}),t._v(" "),e("button",{staticClass:"destroy",on:{click:function(a){return t.deleteTodo(t.todo)}}})]),t._v(" "),e("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.doneEdit(a)},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:t.cancelEdit(a)}],blur:t.doneEdit}})])}),rt=[],ot={name:"Todo",directives:{focus:function(t,a,e){var s=a.value,i=e.context;s&&i.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var a=t.todo,e=t.value;this.$emit("editTodo",{todo:a,value:e})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var a=t.target.value.trim(),e=this.todo;a?this.editing&&(this.editTodo({todo:e,value:a}),this.editing=!1):this.deleteTodo({todo:e})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}},lt=ot,ct=Object(D["a"])(lt,nt,rt,!1,null,null,null),dt=ct.exports,ut="todos",pt={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},vt=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],mt={components:{Todo:dt},filters:{pluralize:function(t,a){return 1===t?a:a+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:pt,todos:vt}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return pt[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(ut,JSON.stringify(this.todos))},addTodo:function(t){var a=t.target.value;a.trim()&&(this.todos.push({text:a,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var a=t.todo,e=t.value;a.text=e,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var a=this,e=t.done;this.todos.forEach((function(t){t.done=e,a.setLocalStorage()}))}}},ht=mt,gt=(e("2c59"),Object(D["a"])(ht,st,it,!1,null,null,null)),ft=gt.exports,_t=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[e("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[e("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),t._v(" "),e("div",{staticStyle:{position:"relative"}},[e("pan-thumb",{staticClass:"panThumb",attrs:{image:t.avatar}}),t._v(" "),e("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),t._v(" "),e("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[e("span",[t._v("Vue")]),t._v(" "),e("el-progress",{attrs:{percentage:70}})],1),t._v(" "),e("div",{staticClass:"progress-item"},[e("span",[t._v("JavaScript")]),t._v(" "),e("el-progress",{attrs:{percentage:18}})],1),t._v(" "),e("div",{staticClass:"progress-item"},[e("span",[t._v("Css")]),t._v(" "),e("el-progress",{attrs:{percentage:12}})],1),t._v(" "),e("div",{staticClass:"progress-item"},[e("span",[t._v("ESLint")]),t._v(" "),e("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},Ct=[],yt={filters:{statusFilter:function(t){var a={success:"success",pending:"danger"};return a[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(n["a"])({},Object(r["b"])(["name","avatar","roles"]))},bt=yt,xt=(e("5711"),e("ceee"),Object(D["a"])(bt,_t,Ct,!1,null,"5acc1735",null)),kt=xt.exports,Dt=e("c24f"),wt={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145],payer:[100,120,98,130,150,140,180]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130],payer:[150,90,98,130,150,140,180]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130],payer:[150,90,98,130,150,140,180]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130],payer:[150,90,98,130,150,140,180]},followers:{expectedData:[150,90,98,130,150,140,180],actualData:[120,82,91,154,162,140,130],payer:[130,140,141,142,145,150,160]}},St={name:"DashboardAdmin",components:{PanelGroup:S,LineChart:N,RaddarChart:H,PieChart:X,BarChart:et,TodoList:ft,BoxCard:kt},data:function(){return{value1:"",value2:"",time1:"lately30",time2:"lately30",time3:"lately30",rankingTime1:"year",rankingTime2:"year",rankingTime3:"year",lineChartData:wt.newVisitis,isAmount:!0,timeList:[{value:"lately7",label:"近7天"},{value:"lately30",label:"近30天"},{value:"month",label:"本月"},{value:"year",label:"本年"}],timeList1:[{value:"lately7",label:"近7天"},{value:"lately30",label:"近30天"},{value:"month",label:"本月"},{value:"year",label:"本年"}],commodityPaymentList:[],visitorRankingList:[],productPlusList:[],orderCustomer:{}}},activated:function(){this.getUserMessage()},mounted:function(){this.getUserMessage(),this.getCurrentData(),this.getCustomerData(this.time1),this.getCustomerRatioData(),this.getRankingData(this.rankingTime1),this.getVisitorRankingData(this.rankingTime2),this.getProductPlusData(this.rankingTime3)},methods:{chooseAmount:function(){this.isAmount||(this.isAmount=!0)},chooseCustomers:function(){this.isAmount&&(this.isAmount=!1)},handleSetLineChartData:function(t){this.lineChartData=wt[t]},getCurrentData:function(){this.$refs.lineChart.getOrderData({date:this.time3})},getCustomerData:function(t){var a=this,e={date:t};g(e).then((function(t){200===t.status&&(a.orderCustomer=t.data)})).catch((function(t){a.$message.error(t.message)}))},getCustomerRatioData:function(){this.$refs.pieChart.getTurnoverRatio()},getRankingData:function(t){var a=this,e={date:t};_(e).then((function(t){200===t.status&&(a.commodityPaymentList.length=0,t.data.map((function(t){a.commodityPaymentList.push({name:t.cart_info.product.store_name,picSrc:t.cart_info.product.image,count:t.total})})))})).catch((function(t){a.$message.error(t.message)}))},getVisitorRankingData:function(t){var a=this,e={date:t};C(e).then((function(t){200===t.status&&(a.visitorRankingList=t.data)})).catch((function(t){a.$message.error(t.message)}))},getProductPlusData:function(t){var a=this,e={date:t};y(e).then((function(t){200===t.status&&(a.productPlusList=t.data)})).catch((function(t){a.$message.error(t.message)}))},getUserMessage:function(){var t=this;Object(Dt["i"])().then((function(a){var e=a.data;console.log(e),e.mer_avatar&&e.mer_banner&&e.mer_info&&e.service_phone&&e.mer_address||t.$alert("您好,请前往左侧菜单【设置】-【商户信息】完善商户基础信息",{confirmButtonText:"确定",callback:function(a){t.$router.push({name:"ModifyStoreInfo"})}})}))}}},Tt=St,$t=(e("8eb1"),Object(D["a"])(Tt,o,l,!1,null,"5dd143d3",null)),Et=$t.exports,Rt={name:"Dashboard",components:{adminDashboard:Et},data:function(){return{currentRole:"adminDashboard"}},computed:Object(n["a"])({},Object(r["b"])(["roles"])),created:function(){}},Lt=Rt,Pt=Object(D["a"])(Lt,s,i,!1,null,null,null);a["default"]=Pt.exports},a8de:function(t,a,e){},b546:function(t,a,e){},ceee:function(t,a,e){"use strict";e("b546")},da13:function(t,a,e){}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-5ed4f497.a9cce2fe.js b/public/mer/js/chunk-5ed4f497.a9cce2fe.js new file mode 100644 index 00000000..057201c1 --- /dev/null +++ b/public/mer/js/chunk-5ed4f497.a9cce2fe.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ed4f497"],{"111b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-tabs",{on:{"tab-click":function(t){return e.getList(1)}},model:{value:e.user_type,callback:function(t){e.user_type=t},expression:"user_type"}},[a("el-tab-pane",{attrs:{label:"全部用户",name:""}}),e._v(" "),a("el-tab-pane",{attrs:{label:"微信用户",name:"wechat"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"小程序用户",name:"routine"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"H5用户",name:"h5"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"APP用户",name:"app"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"PC用户",name:"pc"}})],1),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px",inline:!0}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"搜索时间:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(t){return e.selectChange(e.userFrom.date)}},model:{value:e.userFrom.date,callback:function(t){e.$set(e.userFrom,"date",t)},expression:"userFrom.date"}},e._l(e.fromList.fromTxt,(function(t,s){return a("el-radio-button",{key:s,attrs:{label:t.val}},[e._v(e._s(t.text))])})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"搜索词:"}},[a("el-input",{attrs:{placeholder:"请输入搜索词",clearable:""},model:{value:e.userFrom.keyword,callback:function(t){e.$set(e.userFrom,"keyword",t)},expression:"userFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"用户昵称:"}},[a("el-input",{attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userFrom.nickname,callback:function(t){e.$set(e.userFrom,"nickname",t)},expression:"userFrom.nickname"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1)],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"uid",label:"用户ID","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0!=t.row.uid?t.row.uid:"未知"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"头像","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.user?t.row.user.avatar:e.moren,"preview-src-list":[t.row.user&&t.row.user.avatar||e.moren]}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"昵称","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[a("div",{staticClass:"acea-row"},[a("div",[e._v(e._s(s.user&&s.user.nickname?s.user.nickname:"未知"))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"用户类型","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[s.user?a("span",[e._v(e._s("wechat"==s.user.user_type?"公众号":"routine"==s.user.user_type?"小程序":s.user.user_type))]):a("span",[e._v("未知")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"搜索词",prop:"content","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"搜索时间",prop:"create_time","min-width":"120"}})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.userFrom.limit,"current-page":e.userFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},l=[],r=a("c24f"),i={name:"UserList",components:{},data:function(){return{moren:a("cdfe"),fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},timeVal:[],maxCols:3,isShowSend:!0,visible:!1,user_type:"",tableData:{data:[],total:0},listLoading:!0,row:"",userFrom:{date:"",nickname:"",keyword:"",page:1,limit:20},grid:{xl:8,lg:12,md:12,sm:24,xs:24},grid2:{xl:18,lg:16,md:12,sm:24,xs:24},grid3:{xl:8,lg:12,md:12,sm:24,xs:24}}},mounted:function(){this.getList("")},methods:{selectChange:function(e){this.timeVal=[],this.userFrom.page=1,this.userFrom.date=e,this.getList("")},onchangeTime:function(e){this.timeVal=e,this.userFrom.page=1,this.userFrom.date=e?this.timeVal.join("-"):"",this.getList("")},getList:function(e){var t=this;this.listLoading=!0,this.userFrom.page=e||this.userFrom.page,this.userFrom.user_type=this.user_type,"0"===this.userFrom.user_type&&(this.userFrom.user_type=""),Object(r["z"])(this.userFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.userFrom.page=e,this.getList("")},handleSizeChange:function(e){this.userFrom.limit=e,this.getList("")},handleClick:function(){this.getList("")}}},n=i,o=(a("8dd5"),a("2877")),u=Object(o["a"])(n,s,l,!1,null,"3e1954f2",null);t["default"]=u.exports},"1e32":function(e,t,a){},"8dd5":function(e,t,a){"use strict";a("1e32")},cdfe:function(e,t,a){e.exports=a.p+"mer/img/f.5aa43cd3.png"}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-6231f720.56e9d387.js b/public/mer/js/chunk-6231f720.56e9d387.js new file mode 100644 index 00000000..3ec4f2a7 --- /dev/null +++ b/public/mer/js/chunk-6231f720.56e9d387.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6231f720"],{"693d":function(t,e,n){},"6ee8":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card FromData"},[t.FromData?n("form-create",{attrs:{option:t.option,rule:t.FromData.rule},on:{submit:t.onSubmit}}):t._e()],1)],1)},i=[],a=(n("ac6a"),n("c80c")),o=(n("96cf"),n("3b8d")),c=n("db72"),u=n("2f62"),s=n("30ba"),f=n.n(s),d=n("a7a4"),l=n("0c6d"),p={name:"Basics",components:{formCreate:f.a.$form()},data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}}},FromData:null,titles:""}},mounted:function(){this.setTagsViewTitle(),this.getFrom()},created:function(){this.tempRoute=Object.assign({},this.$route)},computed:Object(c["a"])({},Object(u["b"])(["menuList"])),methods:{getFrom:function(){var t=this;console.log(this.$route.params.key),Object(d["a"])(this.$route.params.key).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FromData=n.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},onSubmit:function(t){var e=this;l["a"][this.FromData.method.toLowerCase()](this.FromData.api,t).then((function(t){e.$message.success(t.message||"提交成功")})).catch((function(t){e.$message.error(t.message||"提交失败")}))},setTagsViewTitle:function(){this.deepTraversal(this.menuList,"children");var t=Object.assign({},this.tempRoute,{title:this.titles});this.$store.dispatch("tagsView/updateVisitedView",t)},deepTraversal:function(t,e){var n=this;function r(t){t.forEach((function(t){-1===t.route.indexOf("Basics")||t.route!==n.$route.path?t[e]&&t[e].length&&r(t[e]):n.titles=t.menu_name}))}r(t)}}},m=p,h=(n("efe7"),n("2877")),g=Object(h["a"])(m,r,i,!1,null,"42170f99",null);e["default"]=g.exports},a7a4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"k",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return p})),n.d(e,"i",(function(){return m})),n.d(e,"l",(function(){return h})),n.d(e,"o",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return b})),n.d(e,"p",(function(){return y}));var r=n("0c6d");function i(t){return r["a"].get("config/".concat(t))}function a(){return r["a"].get("delivery/station/business")}function o(t){return r["a"].post("delivery/station/create",t)}function c(t){return r["a"].get("delivery/station/lst",t)}function u(t){return r["a"].get("delivery/station/detail/".concat(t))}function s(t){return r["a"].get("delivery/station/mark/".concat(t,"/form"))}function f(t,e){return r["a"].post("delivery/station/status/".concat(t),e)}function d(){return r["a"].get("config")}function l(t,e){return r["a"].post("delivery/station/update/".concat(t),e)}function p(t){return r["a"].delete("delivery/station/delete/".concat(t))}function m(){return r["a"].get("delivery/station/getCity")}function h(t){return r["a"].post("service/reply/create",t)}function g(t,e){return r["a"].get("service/reply/list",{page:t,limit:e})}function v(t){return r["a"].delete("service/reply/delete/".concat(t))}function b(t,e){return r["a"].post("service/reply/update/".concat(t),e)}function y(t,e){return r["a"].post("service/reply/status/".concat(t),{status:e})}},efe7:function(t,e,n){"use strict";n("693d")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-627b2ee4.59404080.js b/public/mer/js/chunk-627b2ee4.59404080.js new file mode 100644 index 00000000..71b16b5f --- /dev/null +++ b/public/mer/js/chunk-627b2ee4.59404080.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-627b2ee4"],{"0928":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:e.currentTab,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"选择拼团商品"}}),e._v(" "),a("el-step",{attrs:{title:"填写基础信息"}}),e._v(" "),a("el-step",{attrs:{title:"修改商品详情"}})],1)],1),e._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:e.ruleValidate,model:e.formValidate,"label-width":"160px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.currentTab,expression:"currentTab === 0"}],staticStyle:{overflow:"hidden"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"选择商品:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.add()}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1)],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.currentTab,expression:"currentTab === 1"}]},[a("el-row",{attrs:{gutter:24}},[a("el-col",e._b({},"el-col",e.grid2,!1),[a("el-form-item",{attrs:{label:"商品主图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1")}}},[e.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:e.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[e._l(e.formValidate.slider_image,(function(t,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return e.handleDragStart(a,t)},dragover:function(a){return a.preventDefault(),e.handleDragOver(a,t)},dragenter:function(a){return e.handleDragEnter(a,t)},dragend:function(a){return e.handleDragEnd(a,t)}}},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(t){return e.handleRemove(i)}}})])})),e._v(" "),e.formValidate.slider_image.length<10?a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])]):e._e()],2)])],1),e._v(" "),a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团名称:",prop:"store_name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{staticClass:"sp100"},[a("el-form-item",{attrs:{label:"拼团简介:",prop:"store_info"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入秒杀活动简介"},model:{value:e.formValidate.store_info,callback:function(t){e.$set(e.formValidate,"store_info",t)},expression:"formValidate.store_info"}})],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时间:",required:""}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("设置活动开启结束时间,用户可以在设置时间内发起参与拼团")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:e.formValidate.delivery_way,callback:function(t){e.$set(e.formValidate,"delivery_way",t)},expression:"formValidate.delivery_way"}},e._l(e.deliveryList,(function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.name)+"\n ")])})),1)],1)])],1),e._v(" "),2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0]?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:e.formValidate.delivery_free,callback:function(t){e.$set(e.formValidate,"delivery_free",t)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("是")])],1)],1)],1):e._e(),e._v(" "),0==e.formValidate.delivery_free&&(2==e.formValidate.delivery_way.length||1==e.formValidate.delivery_way.length&&2==e.formValidate.delivery_way[0])?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择"},model:{value:e.formValidate.temp_id,callback:function(t){e.$set(e.formValidate,"temp_id",t)},expression:"formValidate.temp_id"}},e._l(e.shippingList,(function(e){return a("el-option",{key:e.shipping_template_id,attrs:{label:e.name,value:e.shipping_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addTem}},[e._v("添加运费模板")])],1)])],1):e._e(),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidthd mr20",attrs:{placeholder:"请选择",clearable:""},model:{value:e.formValidate.guarantee_template_id,callback:function(t){e.$set(e.formValidate,"guarantee_template_id",t)},expression:"formValidate.guarantee_template_id"}},e._l(e.guaranteeList,(function(e){return a("el-option",{key:e.guarantee_template_id,attrs:{label:e.template_name,value:e.guarantee_template_id}})})),1),e._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"small"},on:{click:e.addServiceTem}},[e._v("添加服务说明模板")])],1)])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团时效(单位:小时):",prop:"time"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入时效"},model:{value:e.formValidate.time,callback:function(t){e.$set(e.formValidate,"time",t)},expression:"formValidate.time"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户发起拼团后开始计时,需在设置时间内邀请到规定好友人数参团,超过时效时间,则系统判定拼团失败,自动发起退款")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"拼团人数:",prop:"buying_count_num"}},[a("el-input-number",{attrs:{min:2,placeholder:"请输入人数"},on:{change:e.calFictiCount},model:{value:e.formValidate.buying_count_num,callback:function(t){e.$set(e.formValidate,"buying_count_num",t)},expression:"formValidate.buying_count_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("单次拼团需要参与的用户数")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动期间限购件数:",prop:"pay_count"}},[a("el-input-number",{attrs:{min:1,placeholder:"请输入数量"},model:{value:e.formValidate.pay_count,callback:function(t){e.$set(e.formValidate,"pay_count",t)},expression:"formValidate.pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("该商品活动期间内,用户可购买的最大数量。例如设置为4,表示本地活动有效期内,每个用户最多可购买4件")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单次限购件数:",prop:"once_pay_count"}},[a("el-input-number",{attrs:{min:1,max:e.formValidate.pay_count,placeholder:"请输入数量"},model:{value:e.formValidate.once_pay_count,callback:function(t){e.$set(e.formValidate,"once_pay_count",t)},expression:"formValidate.once_pay_count"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("用户参与拼团时,一次购买最大数量限制。例如设置为2,表示每次参与拼团时,用户一次购买数量最大可选择2个")])],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入单位"},model:{value:e.formValidate.unit_name,callback:function(t){e.$set(e.formValidate,"unit_name",t)},expression:"formValidate.unit_name"}})],1)],1)],1),e._v(" "),1==e.combinationData.ficti_status?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"虚拟成团:"}},[a("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭"},model:{value:e.formValidate.ficti_status,callback:function(t){e.$set(e.formValidate,"ficti_status",t)},expression:"formValidate.ficti_status"}})],1)],1),e._v(" "),1==e.formValidate.ficti_status?a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"虚拟成团补齐人数:",prop:"ficti_num"}},[a("el-input-number",{attrs:{min:0,max:e.max_ficti_num,placeholder:"请输入数量"},model:{value:e.formValidate.ficti_num,callback:function(t){e.$set(e.formValidate,"ficti_num",t)},expression:"formValidate.ficti_num"}}),e._v(" "),a("span",{staticClass:"item_desc"},[e._v("拼团时效到时,系统自动补齐的最大拼团人数")])],1)],1):e._e()],1):e._e(),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input-number",{attrs:{min:0,placeholder:"请输入排序数值"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"显示状态"}},[a("el-radio-group",{model:{value:e.formValidate.is_show,callback:function(t){e.$set(e.formValidate,"is_show",t)},expression:"formValidate.is_show"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[e._v("关闭")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===e.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:e.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(t){return e.modalPicTap("1","dan","pi")}}},[e.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:"scope.row['active_price']"}})]}}],null,!1,1431579223)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",max:t.row["old_stock"],min:0},on:{change:function(a){return e.limitInventory(t.row)}},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,3327557396)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],1)],1):e._e()],1)],1),e._v(" "),a("el-row",{attrs:{gutter:24}},[1===e.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.ManyAttrValue,"tooltip-effect":"dark","row-key":function(e){return e.id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),e.manyTabDate?e._l(e.manyTabDate,(function(t,i){return a("el-table-column",{key:i,attrs:{align:"center",label:e.manyTabTit[i].title,"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox",domProps:{textContent:e._s(t.row[i])}})]}}],null,!0)})})):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(a){return e.modalPicTap("1","duo",t.$index)}}},[t.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:t.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3478746955)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"市场价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["price"]))])]}}],null,!1,1703924291)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"拼团价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["price"]},on:{blur:function(a){return e.limitPrice(t.row)}},model:{value:t.row["active_price"],callback:function(a){e.$set(t.row,"active_price",e._n(a))},expression:" scope.row['active_price']"}})]}}],null,!1,3314660055)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"成本价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["cost"]))])]}}],null,!1,4236060069)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"库存","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["old_stock"]))])]}}],null,!1,1655454038)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"限量","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row["old_stock"]},model:{value:t.row["stock"],callback:function(a){e.$set(t.row,"stock",e._n(a))},expression:"scope.row['stock']"}})]}}],null,!1,4025255182)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品编号","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["bar_code"]))])]}}],null,!1,2057585133)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重量(KG)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["weight"]))])]}}],null,!1,1649766542)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"体积(m³)","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row["volume"]))])]}}],null,!1,2118841126)})],2)],1):e._e()],1)],1),e._v(" "),a("el-row",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab === 2"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("ueditorFrom",{attrs:{content:e.formValidate.content},model:{value:e.formValidate.content,callback:function(t){e.$set(e.formValidate,"content",t)},expression:"formValidate.content"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.currentTab>0,expression:"currentTab>0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.handleSubmitUp}},[e._v("上一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.currentTab,expression:"currentTab == 0"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest1("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.currentTab,expression:"currentTab == 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmitNest2("formValidate")}}},[e._v("下一步")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.currentTab,expression:"currentTab===2"}],staticClass:"submission",attrs:{loading:e.loading,type:"primary",size:"small"},on:{click:e.handlePreview}},[e._v("预览")])],1)],1)],1),e._v(" "),a("goods-list",{ref:"goodsList",on:{getProduct:e.getProduct}}),e._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":e.getGuaranteeList}}),e._v(" "),e.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(t){t.stopPropagation(),e.previewVisible=!1}}}),e._v(" "),e.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"product-type":4,"preview-key":e.previewKey}}):e._e()],1):e._e()],1)},r=[],n=a("75fc"),l=(a("7f7f"),a("c80c")),s=(a("c5f6"),a("96cf"),a("3b8d")),o=(a("8615"),a("55dd"),a("ac6a"),a("ef0d")),c=a("6625"),u=a.n(c),d=a("7719"),m=a("ae43"),f=a("8c98"),p=a("c4c8"),_=a("b7be"),g=a("83d6"),h={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_time:"",end_time:"",time:1,is_show:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],pay_count:1,unit_name:"",sort:0,is_good:0,temp_id:"",guarantee_template_id:"",buying_count_num:2,ficti_status:!0,ficti_num:1,once_pay_count:1,delivery_way:[],mer_labels:[],delivery_free:0,attrValue:[{image:"",price:null,active_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},v=[{name:"店铺推荐",value:"is_good"}],b={name:"CombinationProductAdd",components:{ueditorFrom:o["a"],goodsList:d["a"],VueUeditorWrap:u.a,guaranteeService:m["a"],previewBox:f["a"]},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},timeVal:"",max_ficti_num:0,dialogVisible:!1,product_id:"",multipleSelection:[],optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:g["roterPre"],selectRule:"",checkboxGroup:[],recommend:v,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,OneattrValue:[Object.assign({},h.attrValue[0])],ManyAttrValue:[Object.assign({},h.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],deliveryList:[],labelList:[],BrandList:[],formValidate:Object.assign({},h),maxStock:"",addNum:0,singleSpecification:{},multipleSpecifications:[],formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{lg:10,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:0,isChoice:"",combinationData:{ficti_status:0,group_buying_rate:""},grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],timeVal:[{required:!0,message:"请选择拼团活动日期",trigger:"blur"}],time:[{required:!0,message:"请输入拼团时效",trigger:"blur"}],buying_count_num:[{required:!0,message:"请输入拼团人数",trigger:"blur"}],pay_count:[{required:!0,message:"请输入限购量",trigger:"blur"}],sort:[{required:!0,message:"请输入排序数值",trigger:"blur"}],once_pay_count:[{required:!0,message:"请输入单人单次限购数量",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入拼团活动简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],ficti_num:[{required:!0,message:"请输入虚拟成团补齐人数",trigger:"blur"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,isNew:!1,previewVisible:!1,previewKey:"",deliveryType:[]}},computed:{attrValue:function(){var e=Object.assign({},h.attrValue[0]);return delete e.image,e},oneFormBatch:function(){var e=[Object.assign({},h.attrValue[0])];return delete e[0].bar_code,e}},watch:{"formValidate.attr":{handler:function(e){1===this.formValidate.spec_type&&this.watCh(e)},immediate:!1,deep:!0},"formValidate.buying_count_num":{handler:function(e,t){e&&1==this.formValidate.ficti_status&&(this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew&&this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num))},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var e=this;this.formValidate.slider_image=[],this.getCombinationData(),this.$route.params.id?(this.setTagsViewTitle(),this.getInfo(this.$route.params.id),this.currentTab=1):this.formValidate.attr.map((function(t){e.$set(t,"inputVisible",!1)})),this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},methods:{getLabelLst:function(){var e=this;Object(p["v"])().then((function(t){e.labelList=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var e=this;Object(p["V"])().then((function(t){e.deliveryType=t.data.delivery_way.map(String),2==e.deliveryType.length?e.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:"快递配送"}]:1==e.deliveryType.length&&"1"==e.deliveryType[0]?e.deliveryList=[{value:"1",name:"到店自提"}]:e.deliveryList=[{value:"2",name:"快递配送"}]})).catch((function(t){e.$message.error(t.message)}))},getCombinationData:function(){var e=this;Object(_["q"])().then((function(t){e.combinationData=t.data})).catch((function(t){e.$message.error(t.message)}))},calFictiCount:function(){this.max_ficti_num=Math.round((1-this.combinationData.group_buying_rate/100)*this.formValidate.buying_count_num),this.isNew=!0,this.formValidate.ficti_num>this.max_ficti_num&&(this.formValidate.ficti_num=this.max_ficti_num)},limitInventory:function(e){e.stock-e.old_stock>0&&(e.stock=e.old_stock)},limitPrice:function(e){e.active_price-e.price>0&&(e.active_price=e.price)},add:function(){this.$refs.goodsList.dialogVisible=!0},getProduct:function(e){this.formValidate.image=e.src,this.product_id=e.id,console.log(this.product_id)},handleSelectionChange:function(e){this.multipleSelection=e},onchangeTime:function(e){this.timeVal=e,console.log(this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss")),this.formValidate.start_time=e?this.moment(e[0]).format("YYYY-MM-DD HH:mm:ss"):"",this.formValidate.end_time=e?this.moment(e[1]).format("YYYY-MM-DD HH:mm:ss"):""},setTagsViewTitle:function(){var e="编辑商品",t=Object.assign({},this.tempRoute,{title:"".concat(e,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",t)},watCh:function(e){var t=this,a={},i={};this.formValidate.attr.forEach((function(e,t){a["value"+t]={title:e.value},i["value"+t]=""})),this.ManyAttrValue.forEach((function(e,a){var i=Object.values(e.detail).sort().join("/");t.attrInfo[i]&&(t.ManyAttrValue[a]=t.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(e){t.attrInfo[Object.values(e.detail).sort().join("/")]=e})),this.manyTabTit=a,this.manyTabDate=i,console.log(this.manyTabTit),console.log(this.manyTabDate)},addTem:function(){var e=this;this.$modalTemplates(0,(function(){e.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},getCategorySelect:function(){var e=this;Object(p["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategoryList:function(){var e=this;Object(p["q"])().then((function(t){e.categoryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getBrandListApi:function(){var e=this;Object(p["p"])().then((function(t){e.BrandList=t.data})).catch((function(t){e.$message.error(t.message)}))},productGetRule:function(){var e=this;Object(p["Mb"])().then((function(t){e.ruleList=t.data}))},getShippingList:function(){var e=this;Object(p["vb"])().then((function(t){e.shippingList=t.data}))},getGuaranteeList:function(){var e=this;Object(p["B"])().then((function(t){e.guaranteeList=t.data}))},getInfo:function(e){var t=this;this.fullscreenLoading=!0,this.$route.params.id?Object(_["t"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i,r;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_group_id,image:i.product.image,slider_image:i.product.slider_image,store_name:i.product.store_name,store_info:i.product.store_info,unit_name:i.product.unit_name,time:i.time,buying_count_num:i.buying_count_num,guarantee_template_id:i.product.guarantee_template_id,ficti_status:!!i.ficti_status,start_time:i.start_time?i.start_time:"",end_time:i.end_time?i.end_time:"",brand_id:i.product.brand_id,cate_id:i.cate_id?i.cate_id:"",mer_cate_id:i.mer_cate_id,pay_count:i.pay_count,once_pay_count:i.once_pay_count,sort:i.product.sort,is_good:i.product.is_good,temp_id:i.product.temp_id,is_show:i.is_show,attr:i.product.attr,extension_type:i.extension_type,content:i.product.content.content,spec_type:i.product.spec_type,is_gift_bag:i.product.is_gift_bag,ficti_num:i.ficti_num,delivery_way:i.product.delivery_way&&i.product.delivery_way.length?i.product.delivery_way.map(String):t.deliveryType,delivery_free:i.product.delivery_free?i.product.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round((1-t.combinationData.group_buying_rate/100)*i.buying_count_num)),0===t.formValidate.spec_type?(t.OneattrValue=i.product.attrValue,t.OneattrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.OneattrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.OneattrValue[a],"stock",e._sku?e._sku.stock:e.old_stock)})),t.singleSpecification=JSON.parse(JSON.stringify(i.product.attrValue)),t.formValidate.attrValue=t.OneattrValue):(r=[],t.ManyAttrValue=i.product.attrValue,t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",e._sku?e._sku.active_price:e.price),t.$set(t.ManyAttrValue[a],"stock",e._sku?e._sku.stock:e.old_stock),e._sku&&(t.multipleSpecifications=JSON.parse(JSON.stringify(i.product.attrValue)),r.push(e))})),t.multipleSpecifications=JSON.parse(JSON.stringify(r)),t.$nextTick((function(){r.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))})),t.formValidate.attrValue=t.multipleSelection),console.log(t.ManyAttrValue),t.fullscreenLoading=!1,t.timeVal=[new Date(t.formValidate.start_time),new Date(t.formValidate.end_time)],t.$store.dispatch("settings/setEdit",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):Object(p["bb"])(e).then(function(){var e=Object(s["a"])(Object(l["a"])().mark((function e(a){var i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.formValidate={product_id:i.product_id,image:i.image,slider_image:i.slider_image,store_name:i.store_name,store_info:i.store_info,unit_name:i.unit_name,time:1,buying_count_num:2,ficti_status:!0,start_time:"",end_time:"",brand_id:i.brand_id,cate_id:i.cate_id,mer_cate_id:i.mer_cate_id,pay_count:1,once_pay_count:1,sort:i.sort?i.sort:0,is_good:i.is_good,temp_id:i.temp_id,is_show:i.is_show,attr:i.attr,extension_type:i.extension_type,content:i.content,spec_type:i.spec_type,is_gift_bag:i.is_gift_bag,ficti_num:1===t.combinationData.ficti_status?Math.round(1-t.combinationData.group_buying_rate/100):"",delivery_way:i.delivery_way&&i.delivery_way.length?i.delivery_way.map(String):t.deliveryType,delivery_free:i.delivery_free?i.delivery_free:0,mer_labels:i.mer_labels&&i.mer_labels.length?i.mer_labels.map(Number):[]},1===t.combinationData.ficti_status&&(t.max_ficti_num=Math.round(1*(1-t.combinationData.group_buying_rate/100))),t.timeVal=[],0===t.formValidate.spec_type?(t.OneattrValue=i.attrValue,t.OneattrValue.forEach((function(e,a){t.$set(t.OneattrValue[a],"active_price",t.OneattrValue[a].price)})),t.singleSpecification=JSON.parse(JSON.stringify(i.attrValue)),t.formValidate.attrValue=t.OneattrValue):(t.ManyAttrValue=i.attrValue,t.multipleSpecifications=JSON.parse(JSON.stringify(i.attrValue)),t.ManyAttrValue.forEach((function(e,a){t.attrInfo[Object.values(e.detail).sort().join("/")]=e,t.$set(t.ManyAttrValue[a],"active_price",t.ManyAttrValue[a].price)})),t.multipleSelection=i.attrValue,t.$nextTick((function(){i.attrValue.forEach((function(e){t.$refs.multipleSelection.toggleRowSelection(e,!0)}))}))),1===t.formValidate.is_good&&t.checkboxGroup.push("is_good"),t.fullscreenLoading=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},handleRemove:function(e){this.formValidate.slider_image.splice(e,1)},modalPicTap:function(e,t,a){var i=this,r=[];this.$modalUpload((function(n){"1"!==e||t||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==e||t||n.map((function(e){r.push(e.attachment_src),i.formValidate.slider_image.push(e),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===e&&"dan"===t&&(i.OneattrValue[0].image=n[0]),"1"===e&&"duo"===t&&(i.ManyAttrValue[a].image=n[0]),"1"===e&&"pi"===t&&(i.oneFormBatch[0].image=n[0])}),e)},handleSubmitUp:function(){this.currentTab--<0&&(this.currentTab=0)},handleSubmitNest1:function(e){this.formValidate.image?(this.currentTab++,this.$route.params.id||this.getInfo(this.product_id)):this.$message.warning("请选择商品!")},handleSubmitNest2:function(e){var t=this;1===this.formValidate.spec_type?this.formValidate.attrValue=this.multipleSelection:this.formValidate.attrValue=this.OneattrValue,console.log(this.formValidate),this.$refs[e].validate((function(e){if(e){if(!t.formValidate.store_name||!t.formValidate.store_info||!t.formValidate.image||!t.formValidate.slider_image)return void t.$message.warning("请填写完整拼团商品信息!");if(!t.formValidate.start_time||!t.formValidate.end_time)return void t.$message.warning("请选择拼团时间!");if(!t.formValidate.attrValue||0===t.formValidate.attrValue.length)return void t.$message.warning("请选择商品规格!");t.currentTab++}}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(a){a?(t.$store.dispatch("settings/setEdit",!1),t.fullscreenLoading=!0,t.loading=!0,console.log(t.formValidate),t.$route.params.id?(console.log(t.ManyAttrValue),Object(_["w"])(t.$route.params.id,t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):Object(_["p"])(t.formValidate).then(function(){var a=Object(s["a"])(Object(l["a"])().mark((function a(i){return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.fullscreenLoading=!1,t.$message.success(i.message),t.$router.push({path:t.roterPre+"/marketing/combination/combination_goods"}),t.$refs[e].resetFields(),t.formValidate.slider_image=[],t.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.loading=!1,t.$message.error(e.message)}))):t.formValidate.store_name&&t.formValidate.store_info&&t.formValidate.image&&t.formValidate.slider_image||t.$message.warning("请填写完整商品信息!")}))},handlePreview:function(){var e=this;Object(p["x"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(l["a"])().mark((function t(a){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(e,t,a){!1===t&&this.$message.warning(a)},handleDragStart:function(e,t){this.dragging=t},handleDragEnd:function(e,t){this.dragging=null},handleDragOver:function(e){e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){if(e.dataTransfer.effectAllowed="move",t!==this.dragging){var a=Object(n["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(t);a.splice.apply(a,[r,0].concat(Object(n["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}}}},y=b,w=(a("d562"),a("2877")),V=Object(w["a"])(y,i,r,!1,null,"1cc142ff",null);t["default"]=V.exports},"504c":function(e,t,a){var i=a("9e1e"),r=a("0d58"),n=a("6821"),l=a("52a7").f;e.exports=function(e){return function(t){var a,s=n(t),o=r(s),c=o.length,u=0,d=[];while(c>u)a=o[u++],i&&!l.call(s,a)||d.push(e?[a,s[a]]:s[a]);return d}}},6494:function(e,t,a){},"694a":function(e,t,a){},7719:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"1200px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList()}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getList},slot:"append"})],1)],1)],1)],1)]),e._v(" "),e.resellShow?a("el-alert",{attrs:{title:"注:添加为预售商品后,原普通商品会下架;如该商品已开启其它营销活动,请勿选择!",type:"warning","show-icon":""}}):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.tableData.data,size:"mini"}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.product_id},nativeOn:{change:function(a){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}],null,!1,3465899556)}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()},r=[],n=a("c4c8"),l=a("83d6"),s={name:"GoodsList",props:{resellShow:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,templateRadio:0,merCateList:[],roterPre:l["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,cate_id:"",store_name:"",keyword:"",is_gift_bag:0,status:1},multipleSelection:{},checked:[]}},mounted:function(){var e=this;this.getList(),this.getCategorySelect(),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:{getTemplateRow:function(e){this.multipleSelection={src:e.image,id:e.product_id},this.dialogVisible=!1,this.$emit("getProduct",this.multipleSelection)},getCategorySelect:function(){var e=this;Object(n["r"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;this.listLoading=!0,Object(n["db"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList()}}},o=s,c=(a("e120"),a("2877")),u=Object(c["a"])(o,i,r,!1,null,"37399656",null);t["a"]=u.exports},8615:function(e,t,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},d562:function(e,t,a){"use strict";a("6494")},e120:function(e,t,a){"use strict";a("694a")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-648f00b5.259d6082.js b/public/mer/js/chunk-648f00b5.259d6082.js new file mode 100644 index 00000000..cbadf621 --- /dev/null +++ b/public/mer/js/chunk-648f00b5.259d6082.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-648f00b5"],{"741a":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"120px"}},[a("el-form-item",{attrs:{label:"标签名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入标签名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签类型:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.labelTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("设置自动标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"label_rule_id","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"标签名称",prop:"label.label_name","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"标签类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.type?"订单数":"订单金额"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签规则","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return["0.00"===e.row.min&&"0.00"===e.row.max?a("span",[t._v("从未支付的客户")]):a("span",[1===e.row.type?a("span",[t._v("订单金额在"+t._s(e.row.min)+" - "+t._s(e.row.max)+"的客户")]):a("span",[t._v("支付订单数在"+t._s(Math.trunc(e.row.min))+" - "+t._s(Math.trunc(e.row.max))+"的客户")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"客户数",prop:"user_num","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"更新时间","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.update_time?e.row.update_time:"未更新"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onUpdate(e.row.label_rule_id)}}},[t._v("更新")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.label_rule_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"900px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"标签类型:"}},[a("el-radio-group",{on:{change:t.initCount},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[a("el-radio",{attrs:{label:0}},[t._v("订单次数标签")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("订单金额标签")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"标签名称:"}},[a("el-input",{attrs:{placeholder:"请输入标签名称"},model:{value:t.formValidate.label_name,callback:function(e){t.$set(t.formValidate,"label_name",e)},expression:"formValidate.label_name"}})],1),t._v(" "),1===t.formValidate.type?a("el-form-item",{attrs:{label:"消费金额设置:"}},[a("el-input",{staticClass:"number_input",attrs:{type:"number",min:1},model:{value:t.formValidate.min,callback:function(e){t.$set(t.formValidate,"min",e)},expression:"formValidate.min"}}),t._v("元\n "),a("span",[t._v("-")]),t._v(" "),a("el-input",{staticClass:"number_input",staticStyle:{"margin-left":"10px"},attrs:{type:"number",min:t.formValidate.min},model:{value:t.formValidate.max,callback:function(e){t.$set(t.formValidate,"max",e)},expression:"formValidate.max"}}),t._v("元\n ")],1):a("el-form-item",{attrs:{label:"消费次数设置:"}},[a("el-input",{staticClass:"number_input",attrs:{type:"number",value:Math.trunc(t.formValidate.min),min:1},nativeOn:{keyup:function(e){return t.number(e)}},model:{value:t.formValidate.min,callback:function(e){t.$set(t.formValidate,"min",t._n(e))},expression:"formValidate.min"}}),t._v("次\n "),a("span",[t._v("-")]),t._v(" "),a("el-input",{staticClass:"number_input",staticStyle:{"margin-left":"10px"},attrs:{type:"number",min:t.formValidate.min},nativeOn:{keyup:function(e){return t.number(e)}},model:{value:t.formValidate.max,callback:function(e){t.$set(t.formValidate,"max",t._n(e))},expression:"formValidate.max"}}),t._v("次\n ")],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1)],1)},i=[],n=a("c80c"),s=(a("96cf"),a("3b8d")),r=(a("84b4"),a("6b54"),a("a481"),a("c24f")),o={name:"UserGroup",data:function(){return{tableFrom:{page:1,limit:20,type:"",keyword:""},labelTypeList:[{label:"订单次数",value:0},{label:"订单金额",value:1}],tableData:{data:[],total:0},formValidate:{type:0,label_name:"",min:"",max:""},listLoading:!0,dialogVisible:!1,fullscreenLoading:!1,title:"添加标签",label_id:""}},mounted:function(){this.getList("")},methods:{number:function(){this.formValidate.min=this.formValidate.min.toString().replace(/[^\.\d]/g,""),this.formValidate.min=this.formValidate.min.toString().replace(".",""),this.formValidate.max=this.formValidate.max.toString().replace(/[^\.\d]/g,""),this.formValidate.max=this.formValidate.max.toString().replace(".","")},initCount:function(){this.formValidate.min=this.formValidate.max=""},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["c"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,console.log(e.tableData),e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){this.dialogVisible=!0,this.title="添加标签",this.label_id="",this.formValidate={type:0,label_name:"",min:"",max:""}},onEdit:function(t){this.dialogVisible=!0,this.title="编辑标签",this.label_id=t.label_rule_id,this.formValidate={type:t.type,label_name:t.label&&t.label.label_name?t.label.label_name:"",min:1===t.type?t.min:Math.trunc(t.min),max:1===t.type?t.max:Math.trunc(t.max)}},onUpdate:function(t){var e=this;Object(r["d"])(t).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.getList("");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(r["b"])(t).then((function(t){var l=t.message;a.$message.success(l),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},handleSubmit:function(t){var e=this;this.label_id?Object(r["e"])(this.label_id,this.formValidate).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.dialogVisible=!1,e.getList("");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)})):Object(r["a"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.dialogVisible=!1,e.getList("");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))}}},c=o,m=(a("b3bc"),a("2877")),u=Object(m["a"])(c,l,i,!1,null,"66612fbc",null);e["default"]=u.exports},"84b4":function(t,e,a){var l=a("5ca1");l(l.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},a641:function(t,e,a){},b3bc:function(t,e,a){"use strict";a("a641")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-67e1db22.75dcf4ae.js b/public/mer/js/chunk-67e1db22.75dcf4ae.js new file mode 100644 index 00000000..c26cbd54 --- /dev/null +++ b/public/mer/js/chunk-67e1db22.75dcf4ae.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67e1db22"],{"017b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[r("span",{staticClass:"seachTiele"},[t._v("时间选择:")]),t._v(" "),r("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return r("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),r("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),r("div",{staticClass:"mt20"},[r("span",{staticClass:"seachTiele"},[t._v("关键字:")]),t._v(" "),r("el-input",{staticClass:"selWidth mr20",attrs:{placeholder:"请输入订单号/用户昵称"},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}}),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exports}},[t._v("列表导出")])],1)],1)],1)]),t._v(" "),r("cards-data",{attrs:{"card-lists":t.cardLists}}),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[r("el-table-column",{attrs:{label:"订单号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return["mer_accoubts"!=e.row.financial_type?r("span",[t._v(t._s(e.row.order_sn))]):r("span",[t._v(t._s(e.row.financial_record_sn))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"financial_record_sn",label:"交易流水号","min-width":"100"}}),t._v(" "),r("el-table-column",{attrs:{prop:"create_time",label:"交易时间","min-width":"100",sortable:""}}),t._v(" "),r("el-table-column",{attrs:{prop:"user_info",label:"对方信息","min-width":"80"}}),t._v(" "),r("el-table-column",{attrs:{label:"交易类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("transactionTypeFilter")(e.row.financial_type)))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"收支金额(元)","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1===e.row.financial_pm?e.row.number:-e.row.number))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["mer_accoubts"==e.row.financial_type?r("router-link",{attrs:{to:{path:t.roterPre+"/accounts/reconciliation?reconciliation_id="+e.row.order_id}}},[r("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):"order"==e.row.financial_type||"brokerage_one"==e.row.financial_type||"brokerage_two"==e.row.financial_type?r("router-link",{attrs:{to:{path:t.roterPre+"/order/list?order_sn="+e.row.order_sn}}},[r("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1):r("router-link",{attrs:{to:{path:t.roterPre+"/order/refund?refund_order_sn="+e.row.order_sn}}},[r("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("详情")])],1)]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),r("file-list",{ref:"exportList"})],1)},o=[],a=r("c80c"),i=(r("96cf"),r("3b8d")),l=r("2801"),c=r("30dc"),s=r("83d6"),u=r("0f56"),d=r("2e83"),f={components:{fileList:c["a"],cardsData:u["a"]},data:function(){return{tableData:{data:[],total:0},roterPre:s["roterPre"],listLoading:!0,tableFrom:{keyword:"",date:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,evaluationStatusList:[{value:1,label:"已回复"},{value:0,label:"未回复"}],cardLists:[],orderDatalist:null}},mounted:function(){this.getList(),this.getStatisticalData()},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(),this.getStatisticalData()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(),this.getStatisticalData()},getStatisticalData:function(){var t=this;Object(l["h"])({date:this.tableFrom.date}).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},exports:function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(e){var r,n,o,i,l;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=JSON.parse(JSON.stringify(this.tableFrom)),n=[],r.page=1,o=1,i={},l=0;case 5:if(!(ln)&&s.mergeCells(x(o)+t+":"+x(o)+e)}function w(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"==t.currentTab?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品类型:",required:""}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v(" ✓")]):t._e()])})),0)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,filterable:"",clearable:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,filterable:"",clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1)],1),t._v(" "),t.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1):t._e(),t._v(" "),a("el-col",t._b({},"el-col",t.grid2,!1),[a("el-form-item",{attrs:{label:"品牌选择:"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{attrs:{src:e}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(i)}}})])})),t._v(" "),t.formValidate.slider_image.length<10?a("div",{staticClass:"uploadCont",attrs:{title:"750*750px"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"主图视频:",prop:"video_link"}},[a("el-input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),a("el-button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("\n "+t._s(t.videoLink?"确认添加":"上传视频")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[t.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"10px"},attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":20}}):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("您的浏览器不支持 video 标签。\n ")]),t._v(" "),a("div",{staticClass:"mark"}),t._v(" "),a("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e()])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"proCoupon",attrs:{label:"优惠券:"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.couponData,(function(e,i){return a("el-tag",{key:i,staticClass:"mr10",attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleCloseCoupon(e)}}},[t._v(t._s(e.title)+"\n ")])})),t._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"mini"},on:{click:t.addCoupon}},[t._v("选择优惠券")])],2)])],1)],1):t._e(),t._v(" "),"2"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[t.extensionStatus>0?a("el-form-item",{attrs:{label:"佣金设置:",props:"extension_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangetype(t.formValidate.extension_type)}},model:{value:t.formValidate.extension_type,callback:function(e){t.$set(t.formValidate,"extension_type",e)},expression:"formValidate.extension_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("单独设置")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("默认设置")])],1)],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.open_svip?a("el-form-item",{attrs:{label:"付费会员价设置:",props:"svip_price_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpecs(t.formValidate.svip_price_type)}},model:{value:t.formValidate.svip_price_type,callback:function(e){t.$set(t.formValidate,"svip_price_type",e)},expression:"formValidate.svip_price_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不设置会员价")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("默认设置会员价")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("自定义设置会员价")])],1)],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",props:"spec_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpec(t.formValidate.spec_type)}},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"选择规格:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{model:{value:t.selectRule,callback:function(e){t.selectRule=e},expression:"selectRule"}},t._l(t.ruleList,(function(t){return a("el-option",{key:t.attr_template_id,attrs:{label:t.template_name,value:t.attr_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确认")]),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),t._v(" "),t.formValidate.attr.length>0?a("el-form-item",t._l(t.formValidate.attr,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemoveAttr(i)}}})]),t._v(" "),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("el-tag",{key:r,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(a){return t.handleClose(e.detail,r)}}},[t._v(t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:function(a){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(a){return t.showInput(e)}}},[t._v("+ 添加")])],2)])})),0):t._e(),t._v(" "),t.isBtn?a("el-col",[a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格:"}},[a("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格值:"}},[a("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:12,lg:6,md:6,sm:24,xs:24}},[a("el-form-item",{staticClass:"noLeft"},[a("el-button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),t.isBtn?t._e():a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.oneFormBatch,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1","pi")}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,308183830)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品编号"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},on:{blur:function(a){return t.memberPrice(t.formThead[i],e.row)}},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"}},[[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:t.batchAdd}},[t._v("批量添加")])]],2)],2)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品编号"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,4081354531)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品编号"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品编号"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{key:"3",attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1):t._e()],1)],1):t._e(),t._v(" "),"3"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("vue-ueditor-wrap",{attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1)],1):t._e(),t._v(" "),"4"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品推荐:"}},[a("el-checkbox-group",{attrs:{size:"small"},on:{change:t.onChangeGroup},model:{value:t.checkboxGroup,callback:function(e){t.checkboxGroup=e},expression:"checkboxGroup"}},t._l(t.recommend,(function(e,i){return a("el-checkbox",{key:i,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.deductionStatus>0?a("el-form-item",{attrs:{label:"积分抵扣比例:"}},[a("el-radio-group",{on:{change:function(e){return t.changeIntergral(t.deduction_set)}},model:{value:t.deduction_set,callback:function(e){t.deduction_set=e},expression:"deduction_set"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("单独设置")]),t._v(" "),a("el-radio",{attrs:{label:-1}},[t._v("默认设置")])],1),t._v(" "),1==t.deduction_set?a("div",[a("el-input-number",{attrs:{min:0,"controls-position":"right",placeholder:"请输入抵扣比例"},model:{value:t.formValidate.integral_rate,callback:function(e){t.$set(t.formValidate,"integral_rate",e)},expression:"formValidate.integral_rate"}}),t._v("\n %\n ")],1):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否开启礼包:"}},[a("el-radio-group",{attrs:{disabled:!!t.$route.params.id},model:{value:t.formValidate.is_gift_bag,callback:function(e){t.$set(t.formValidate,"is_gift_bag",e)},expression:"formValidate.is_gift_bag"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注:"}},[a("div",[t._v("1. 选择开启礼包后,不可修改")]),t._v(" "),a("div",[t._v("2. 用户购买该分销礼包商品后,可自动成为分销员(即已成为分销员的用户在移动端看不到该分销礼包商品)")]),t._v(" "),a("div",[t._v("3. 该商品设置为分销礼包后会展示在平台后台的【分销】-【分销礼包】(即不会展示在平台后台-【商品列表】)")])])],1)],1):t._e(),t._v(" "),"5"==t.currentTab?a("el-row",[t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e(),t._v(" "),(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addTem}},[t._v("添加运费模板")])],1)])],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"最少购买件数:"}},[a("el-input-number",{attrs:{min:0,"controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_min_count,callback:function(e){t.$set(t.formValidate,"once_min_count",e)},expression:"formValidate.once_min_count"}}),t._v("   默认为0,则不限制购买件数\n ")],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"限购类型:"}},[a("el-radio-group",{model:{value:t.formValidate.pay_limit,callback:function(e){t.$set(t.formValidate,"pay_limit",e)},expression:"formValidate.pay_limit"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不限购")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("单次限购")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("长期限购")])],1)],1)],1),t._v(" "),0!=t.formValidate.pay_limit?a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"限购数量",prop:"once_max_count"}},[a("el-input-number",{attrs:{min:t.formValidate.once_min_count,"controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_max_count,callback:function(e){t.$set(t.formValidate,"once_max_count",e)},expression:"formValidate.once_max_count"}}),t._v("   单次限购是限制每次下单最多购买的数量,长期限购是限制一个用户总共可以购买的数量\n ")],1)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{"controls-position":"right",placeholder:"请输入排序"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},model:{value:t.formValidate.guarantee_template_id,callback:function(e){t.$set(t.formValidate,"guarantee_template_id",e)},expression:"formValidate.guarantee_template_id"}},t._l(t.guaranteeList,(function(t){return a("el-option",{key:t.guarantee_template_id,attrs:{label:t.template_name,value:t.guarantee_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addServiceTem}},[t._v("添加服务说明模板")])],1)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品参数:"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.specsSelect,props:t.propsMer,filterable:"",clearable:""},on:{change:t.getSpecsList},model:{value:t.formValidate.param_temp_id,callback:function(e){t.$set(t.formValidate,"param_temp_id",e)},expression:"formValidate.param_temp_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-table",{attrs:{data:t.formValidate.params,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"参数名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数名称"},model:{value:e.row.name,callback:function(a){t.$set(e.row,"name",a)},expression:"scope.row.name"}})]}}],null,!1,3200112049)}),t._v(" "),[a("el-table-column",{attrs:{align:"center",label:"参数值","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{min:0,placeholder:"请输入参数值"},model:{value:e.row.value,callback:function(a){t.$set(e.row,"value",a)},expression:"scope.row.value"}})]}}],null,!1,3804019920)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"排序","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort",a)},expression:"scope.row.sort"}})]}}],null,!1,3525057539)})],t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.mer_id?a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delSpecs(e.$index)}}},[t._v("删除")]):t._e()]}}],null,!1,3423882861)})],2),t._v(" "),a("el-button",{staticClass:"mt20",attrs:{type:"defalut",size:"small"},on:{click:t.addSpecs}},[t._v("添加参数")])],1)],1),t._v(" "),1==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"自定义留言:"}},[a("el-radio-group",{on:{change:t.customMessBtn},model:{value:t.customBtn,callback:function(e){t.customBtn=e},expression:"customBtn"}},[a("el-radio",{attrs:{label:0}},[t._v("关闭")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("开启")])],1),t._v(" "),t.customBtn?a("div",{staticClass:"addCustom_content"},t._l(t.formValidate.extend,(function(e,i){return a("div",{key:i,staticClass:"custom_box",attrs:{type:"flex"}},[a("el-input",{staticStyle:{width:"100px","margin-right":"10px"},attrs:{placeholder:"留言标题"+(i+1)},model:{value:e.title,callback:function(a){t.$set(e,"title","string"===typeof a?a.trim():a)},expression:"item.title"}}),t._v(" "),a("el-select",{staticStyle:{width:"200px","margin-left":"6px","margin-right":"10px"},model:{value:e.key,callback:function(a){t.$set(e,"key",a)},expression:"item.key"}},t._l(t.CustomList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}},[t._v(t._s(e.label)+"\n ")])})),1),t._v(" "),a("el-checkbox",{model:{value:e.require,callback:function(a){t.$set(e,"require",a)},expression:"item.require"}},[t._v("必填")]),t._v(" "),t.formValidate.extend.length-1?a("div",{staticClass:"addfont",on:{click:function(e){return t.delcustom(i)}}},[t._v("删除")]):t._e()],1)})),0):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.customBtn,expression:"customBtn"}],staticClass:"addCustomBox"},[a("div",{staticClass:"btn",on:{click:t.addcustom}},[t._v("+ 添加表单")]),t._v(" "),a("div",{staticClass:"remark"},[a("div",[t._v("备注:")]),t._v(" "),a("div",[a("div",{staticClass:"titTip"},[t._v("1.用户下单时需填写的信息,最多可设置10条")]),t._v(" "),a("div",{staticClass:"titTip"},[t._v("2.虚拟物品不可加入购物车,用户可直接购买")])])])])],1)],1):t._e()],1):t._e(),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab>1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab<5,expression:"currentTab < 5"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"5"==t.currentTab||t.$route.params.id,expression:"currentTab=='5' || $route.params.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1)],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":t.infoData}})],1)},r=[],l=a("75fc"),o=a("c80c"),n=(a("96cf"),a("3b8d")),s=(a("a481"),a("c5f6"),a("2d63")),c=(a("7f7f"),a("bd86")),d=(a("28a5"),a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("6b54"),a("ef0d")),u=a("6625"),m=a.n(u),p=a("c4c8"),f=a("83d6"),_=a("ae43"),h=a("8c98"),g=a("bbcc"),v=a("5f87"),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},y=[],V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},w=[],x={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(p["Y"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},k=x,C=(a("f099"),a("2877")),$=Object(C["a"])(k,V,w,!1,null,"6d70337e",null),O=$.exports,B={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},L={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},T={name:"CopyTaoBao",components:{ueditorFrom:d["a"],copyRecord:O},data:function(){var t=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{roterPre:f["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:g["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},B.attrValue[0])],ManyAttrValue:[Object.assign({},B.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},L),formValidate:Object.assign({},B),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},B.attrValue[0]);return delete t.image,t}},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(p["X"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(p["vb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(p["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var l=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(l.push(o),r===t.length-2){var n={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");n["detail"]||(n["detail"]={}),n["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(n.detail).forEach((function(t,e){n["value"+e]=t})),a.push(n)}}))})),e=l.length?l:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(c["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(p["s"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1==e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(p["W"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(l["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(e);a.splice.apply(a,[r,0].concat(Object(l["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},j=T,S=(a("c722"),Object(C["a"])(j,b,y,!1,null,"5245ffd2",null)),D=S.exports,F={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:[],unit_name:"",sort:0,once_max_count:0,is_good:0,temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,params:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,integral_rate:-1,content:"",spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0},A={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},E=[{name:"店铺推荐",value:"is_good"}],P={name:"ProductProductAdd",components:{ueditorFrom:d["a"],VueUeditorWrap:m.a,guaranteeService:_["a"],previewBox:h["a"],taoBao:D,copyRecord:O},data:function(){var t=g["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:f["roterPre"],selectRule:"",checkboxGroup:[],recommend:E,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!1,multiple:!0},active:0,deduction_set:-1,OneattrValue:[Object.assign({},F.attrValue[0])],ManyAttrValue:[Object.assign({},F.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formThead:Object.assign({},A),formValidate:Object.assign({},F),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{xl:10,lg:12,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"},{title:"营销设置",name:"4"},{title:"其他设置",name:"5"}],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null},open_svip:!1,svip_rate:0,specsSelect:[]}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},oneFormBatch:function(){var t=[Object.assign({},F.attrValue[0])];return this.OneattrValue[0]&&this.OneattrValue[0]["image"]&&(t[0]["image"]=this.OneattrValue[0]["image"]),delete t[0].bar_code,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0}},created:function(){console.log(this.$route),this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var t=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo()):(this.getSpecsLst(this.formValidate.cate_id),-1==this.deduction_set&&(this.formValidate.integral_rate=-1)),this.formValidate.attr.map((function(e){t.$set(e,"inputVisible",!1)})),1==this.$route.query.type?(this.type=this.$route.query.type,this.$refs.taoBao.modals=!0):this.type=0,this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.productGetRule(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{goBack:function(){sessionStorage.clear(),window.history.back()},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)}))},getSpecsLst:function(t){var e=this;Object(p["yb"])({cate_id:t}).then((function(t){e.specsSelect=t.data})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var t=this;Object(p["V"])().then((function(e){t.extensionStatus=e.data.extension_status,t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=e.data.svip_store_rate;var a=0==t.formValidate.type?"快递配送":"虚拟发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:a}]})).catch((function(e){t.$message.error(e.message)}))},getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},addCoupon:function(){var t=this;this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.formValidate.give_coupon_ids=[],t.formValidate.couponData=e,e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)}))}))},delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){var t={name:"",value:"",sort:0};this.formValidate.params.push(t)},getSpecsList:function(){var t=this;this.formValidate.param_temp_id.length<=0?this.formValidate.params=[]:Object(p["hb"])({template_ids:this.formValidate.param_temp_id.toString()}).then((function(e){t.formValidate.params=e.data})).catch((function(e){t.$message.error(e.message)}))},setTagsViewTitle:function(){var t="编辑商品",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),console.log(this.ManyAttrValue),this.ManyAttrValue=this.attrFormat(t),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a),console.log(this.ManyAttrValue)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var l=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(l.push(o),r===t.length-2){var n={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");n["detail"]||(n["detail"]={}),n["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(n.detail).forEach((function(t,e){n["value"+e]=t})),a.push(n)}}))})),e=l.length?l:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(c["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},addTem:function(){var t=this;this.$modalTemplates(0,(function(){t.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;e.progress=10;var a=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==a)return e.$message.error("只能上传MP4文件");Object(p["cb"])().then((function(a){e.$videoCloud.videoUpload({type:a.data.type,evfile:t,res:a,uploading:function(t,a){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100})).catch((function(t){e.upload.videoIng=!1,e.$message.error(t.message)}))}))},addRule:function(){var t=this;this.$modalAttr(this.formDynamics,(function(){t.productGetRule()}))},onChangeSpec:function(t){1===t&&this.productGetRule()},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate},confirm:function(){var t=this;if(!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(e){e.attr_template_id===t.selectRule&&(t.formValidate.attr=e.template_value)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(p["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},productGetRule:function(){var t=this;Object(p["Mb"])().then((function(e){t.ruleList=e.data}))},getShippingList:function(){var t=this;Object(p["vb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},showInput:function(t){this.$set(t,"inputVisible",!0)},virtualbtn:function(t,e){if(this.$route.params.id)return this.$message.warning("商品类型不能切换!");this.formValidate.type=t,this.productCon()},customMessBtn:function(t){t||(this.formValidate.extend=[])},addcustom:function(){this.formValidate.extend.length>9?this.$message.warning("最多添加10条"):this.formValidate.extend.push({title:"",key:"text",value:"",require:!1})},delcustom:function(t){this.formValidate.extend.splice(t,1)},onChangetype:function(t){var e=this;1===t?(this.OneattrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)}))):(this.OneattrValue.map((function(t){delete t.extension_one,delete t.extension_two,e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){delete t.extension_one,delete t.extension_two})))},onChangeSpecs:function(t){if(1==t||2==t){this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null},this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(s["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var r=e.value;a=r.price?this.accMul(r.price,this.svip_rate):0,this.$set(r,"svip_price",a)}}catch(l){i.e(l)}finally{i.f()}}else this.attrVal={price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}},memberPrice:function(t,e){"售价"==t.title&&(e.svip_price=this.accMul(e.price,this.svip_rate))},accMul:function(t,e){var a=0,i=t.toString(),r=e.toString();try{a+=i.split(".")[1].length}catch(l){}try{a+=r.split(".")[1].length}catch(l){}return Number(i.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"svip_price",this.oneFormBatch[0].svip_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(t){this.formValidate.attr.splice(t,1),this.manyFormValidate.splice(t,1)},handleClose:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.formValidate.attr.push(t);var e={};this.formValidate.attr=this.formValidate.attr.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.isBtn=!1}else this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.formValidate.attr[e].detail.push(t);var a={};this.formValidate.attr[e].detail=this.formValidate.attr[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[]),this.formValidate.attr[e].inputVisible=!1}else this.$message.warning("请添加属性")},getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(p["bb"])(this.$route.params.id).then(function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(a){var i;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data,t.infoData(i),t.getSpecsLst(i.cate_id);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t){var e=this;this.deduction_set=-1==t.integral_rate?-1:1,this.formValidate={image:t.image,attrValue:t.attrValue,slider_image:t.slider_image,store_name:t.store_name,store_info:t.store_info,keyword:t.keyword,params:t.params,param_temp_id:t.param_temp_id,brand_id:t.brand_id,cate_id:t.cate_id,mer_cate_id:t.mer_cate_id,unit_name:t.unit_name,sort:t.sort,once_max_count:t.once_max_count||1,once_min_count:t.once_min_count||0,is_good:t.is_good,temp_id:t.temp_id,guarantee_template_id:t.guarantee_template_id?t.guarantee_template_id:"",attr:t.attr,pay_limit:t.pay_limit||0,extension_type:t.extension_type,content:t.content,spec_type:Number(t.spec_type),give_coupon_ids:t.give_coupon_ids,is_gift_bag:t.is_gift_bag,couponData:t.coupon,video_link:t.video_link?t.video_link:"",integral_rate:t.integral_rate,delivery_way:t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType,delivery_free:t.delivery_free?t.delivery_free:0,mer_labels:t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],type:t.type||0,extend:t.extend||[],svip_price_type:t.svip_price_type||0},0!=t.svip_price_type&&(this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}),0!=this.formValidate.extend.length&&(this.customBtn=1),0===this.formValidate.spec_type?this.OneattrValue=t.attrValue:(this.ManyAttrValue=t.attrValue,this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)}))),1===this.formValidate.is_good&&this.checkboxGroup.push("is_good"),this.fullscreenLoading=!1},onClose:function(t){this.modals=!1,this.infoData(t)},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},modalPicTap:function(t,e,a){var i=this,r=[];this.$modalUpload((function(l){"1"!==t||e||(i.formValidate.image=l[0],i.OneattrValue[0].image=l[0]),"2"!==t||e||l.map((function(t){r.push(t.attachment_src),i.formValidate.slider_image.push(t),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=l[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=l[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=l[0])}),t)},handleSubmitUp:function(){this.currentTab=(Number(this.currentTab)-1).toString()},handleSubmitNest:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.currentTab=(Number(e.currentTab)+1).toString())}))},handleSubmit:function(t){var e=this;this.$store.dispatch("settings/setEdit",!1),this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[t].validate((function(a){if(a){e.fullscreenLoading=!0,e.loading=!0;var i=e.$route.params.id&&!e.$route.query.type;i?Object(p["kb"])(e.$route.params.id,e.formValidate).then(function(){var a=Object(n["a"])(Object(o["a"])().mark((function a(i){return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.fullscreenLoading=!1,e.$message.success(i.message),e.$router.push({path:e.roterPre+"/product/list"}),e.$refs[t].resetFields(),e.formValidate.slider_image=[],e.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})):Object(p["Z"])(e.formValidate).then(function(){var t=Object(n["a"])(Object(o["a"])().mark((function t(a){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.$router.push({path:e.roterPre+"/product/list"}),e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)}))}else{if(!e.formValidate.store_name.trim())return e.$message.warning("基本信息-商品名称不能为空");if(!e.formValidate.unit_name)return e.$message.warning("基本信息-单位不能为空");if(!e.formValidate.cate_id)return e.$message.warning("基本信息-平台商品分类不能为空");if(!e.formValidate.mer_cate_id)return e.$message.warning("基本信息-商户商品分类不能为空");if(!e.formValidate.image)return e.$message.warning("基本信息-商品封面图不能为空");if(e.formValidate.slider_image.length<0)return e.$message.warning("基本信息-商品轮播图不能为空")}}))},handlePreview:function(t){var e=this;this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),Object(p["eb"])(this.formValidate).then(function(){var t=Object(n["a"])(Object(o["a"])().mark((function t(a){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(t,e,a){!1===e&&this.$message.warning(a)},specPicValidate:function(t){for(var e=0;ed)a=s[d++],i&&!o.call(n,a)||u.push(t?[a,n[a]]:n[a]);return u}}},8615:function(t,e,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},b78c:function(t,e,a){},c33c:function(t,e,a){},c722:function(t,e,a){"use strict";a("b78c")},f099:function(t,e,a){"use strict";a("c33c")}}]); \ No newline at end of file diff --git a/public/mer/js/chunk-6a35f407.5a1e9a0a.js b/public/mer/js/chunk-6a35f407.5a1e9a0a.js new file mode 100644 index 00000000..f062bec0 --- /dev/null +++ b/public/mer/js/chunk-6a35f407.5a1e9a0a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a35f407","chunk-0d2c1415","chunk-2d0da983"],{"00da":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config pro"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=(e("2f62"),e("befa7")),l={name:"c_home_topic",cname:"专场",componentsName:"home_topic",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}],space:[{components:s["a"].c_menu_list,configNme:"menuConfig"}],space2:[],oneStyle:[{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_is_show,configNme:"colorShow"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],twoStyle:[{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_is_show,configNme:"colorShow"},{components:s["a"].c_txt_tab,configNme:"pointerStyle"},{components:s["a"].c_txt_tab,configNme:"txtStyle"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"pointerColor"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],type:0,setUp:0,count:1}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.menuConfig.list":{handler:function(t,i){this.count=t.length},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){this.setUp=t;var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_menu_list,configNme:"menuConfig"}];this.rCom=e.concat(n)}else this.count>1?this.rCom=e.concat(this.twoStyle):this.rCom=e.concat(this.oneStyle)},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,d=e("2877"),f=Object(d["a"])(r,n,a,!1,null,"1984c226",null);i["default"]=f.exports},"033f":function(t,i,e){},"04bc":function(t,i,e){"use strict";e("0eb7")},"051f":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"box"},[2!==this.$route.query.type?e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 模板名称\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过15个字",maxlength:"15"},on:{change:t.changName},model:{value:t.name,callback:function(i){t.name=i},expression:"name"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 页面标题\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过30个字",maxlength:"30"},on:{change:t.changVal},model:{value:t.value,callback:function(i){t.value=i},expression:"value"}})],1)],1),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传背景图"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)])},a=[],o=(e("2f62"),e("b5b8")),s={name:"pageTitle",components:{uploadPictures:o["default"]},data:function(){return{value:"",name:"",isShow:!0,picList:["icondantu","iconpingpu","iconlashen"],bgColor:!1,bgPic:!1,tabVal:"0",colorPicker:"#f5f5f5",modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},bgPicUrl:""}},created:function(){var t=this.$store.state.mobildConfig;this.value=t.pageTitle,this.name=t.pageName,this.isShow=!!t.pageShow,this.bgColor=!!t.pageColor,this.bgPic=!!t.pagePic,this.colorPicker=t.pageColorPicker,this.tabVal=t.pageTabVal,this.bgPicUrl=t.pagePicUrl},methods:{modalPicTap:function(){var t=this;this.$modalUpload((function(i){t.bgPicUrl=i[0],t.$store.commit("mobildConfig/UPPICURL",t.bgPicUrl)}))},bindDelete:function(){this.bgPicUrl=""},getPic:function(t){var i=this;this.$nextTick((function(){i.bgPicUrl=t.att_dir,i.modalPic=!1,i.$store.commit("mobildConfig/UPPICURL",t.att_dir)}))},colorPickerTap:function(t){this.$store.commit("mobildConfig/UPPICKER",t)},radioTap:function(t){this.$store.commit("mobildConfig/UPRADIO",t)},changVal:function(t){this.$store.commit("mobildConfig/UPTITLE",t)},changName:function(t){this.$store.commit("mobildConfig/UPNAME",t)},changeState:function(t){this.$store.commit("mobildConfig/UPSHOW",t)},bgColorTap:function(t){this.$store.commit("mobildConfig/UPCOLOR",t)},bgPicTap:function(t){this.$store.commit("mobildConfig/UPPIC",t)}}},c=s,l=(e("5025"),e("2877")),r=Object(l["a"])(c,n,a,!1,null,"6a6281b6",null);i["default"]=r.exports},"0a0b":function(t,i,e){},"0a90":function(t,i,e){"use strict";e("2c2b")},"0d02":function(t,i,e){},"0d27":function(t,i,e){},"0eb7":function(t,i,e){},1224:function(t,i,e){"use strict";e("df2b")},"144d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"hot_imgs"},[t.configData.title?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.configData.list,group:"peoples",handle:".move-icon"}},t._l(t.configData.list,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"info"},t._l(i.info,(function(a,o){return e("div",{key:o,staticClass:"info-item"},[e("span",[t._v(t._s(a.title))]),t._v(" "),e("div",{staticClass:"input-box",on:{click:function(e){return t.getLink(n,o,i.info)}}},[t.configData.isCube?e("el-input",{attrs:{readonly:o==i.info.length-1,placeholder:a.tips,maxlength:a.max},on:{blur:t.onBlur},model:{value:a.value,callback:function(i){t.$set(a,"value",i)},expression:"infos.value"}},[o==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1):e("el-input",{attrs:{readonly:o==i.info.length-1,placeholder:a.tips,maxlength:a.max},model:{value:a.value,callback:function(i){t.$set(a,"value",i)},expression:"infos.value"}},[o==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1)],1)])})),0)])})),0),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),t._v(" "),t.configData.list?[t.configData.list.length0?e("div",{staticClass:"list-wrapper itemA"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),i.couponId&&i.couponId.length&&t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper itemA"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(0),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("199")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥399")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(1),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e(),t._v(" "),e("div",{staticClass:"ship"},[t._v("包邮")])]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("199")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥399")]):t._e()])])])])]:t._e(),t._v(" "),1==t.itemStyle?[t.list.length>0?e("div",{staticClass:"list-wrapper itemC"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==n?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),i.couponId&&i.couponId.length&&t.couponShow?e("div",{staticClass:"coupon",class:t.priceShow?"":"on",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(2),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==t.index?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(3),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e()]),t._v(" "),e("div",{staticClass:"text"},[0==t.index?e("div",{staticClass:"label",style:{background:t.labelColor}},[t._v("官方旗舰店")]):t._e(),t._v(" "),t.couponShow?e("div",{staticClass:"coupon",style:"border:1px solid "+t.labelColor+";color:"+t.labelColor},[t._v("领券")]):t._e()])])])])]:t._e(),t._v(" "),2==t.itemStyle?[t.list.length>0?e("div",{staticClass:"list-wrapper itemB"},t._l(t.list,(function(i,n){return e("div",{staticClass:"item",class:t.conStyle?"":"itemOn",attrs:{index:n}},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v(t._s(i.price))])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])])})),0):e("div",{staticClass:"list-wrapper itemB"},[e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(4),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])]),t._v(" "),e("div",{staticClass:"item",class:t.conStyle?"":"itemOn"},[t._m(5),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"hd"},[t.titleShow?e("div",{staticClass:"title line2"},[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("div",{staticClass:"num"},[t._v("\n ¥"),e("span",[t._v("66.66")])]):t._e(),t._v(" "),t.opriceShow?e("div",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])])])]:t._e(),t._v(" "),3==t.itemStyle?[t.list.length>0?e("div",{staticClass:"listBig"},t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[e("div",{staticClass:"img-box"},[i.image?e("img",{attrs:{src:i.image,alt:""}}):e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v(t._s(i.store_name))]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v(t._s(i.price))])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥"+t._s(i.ot_price))]):t._e()])])})),0):e("div",{staticClass:"listBig"},[e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(6),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])]),t._v(" "),e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(7),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])]),t._v(" "),e("div",{staticClass:"itemBig",class:t.conStyle?"":"itemOn"},[t._m(8),t._v(" "),e("div",{staticClass:"name line2"},[t.titleShow?e("span",[t._v("商品名称")]):t._e()]),t._v(" "),e("div",{staticClass:"price",style:{color:t.fontColor}},[t.priceShow?e("span",[t._v("¥"),e("span",{staticClass:"num"},[t._v("66.66")])]):t._e(),t.opriceShow?e("span",{staticClass:"old-price"},[t._v("¥99.99")]):t._e()])])])]:t._e()],2)])])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"img-box"},[e("div",{staticClass:"empty-box"},[e("span",{staticClass:"iconfont-diy icontupian"})])])}],o=e("db72"),s=e("2f62"),c={name:"home_goods_list",cname:"商品列表",configName:"c_home_goods_list",icon:"iconshangpinliebiao2",type:0,defaultName:"goodList",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"goodList",timestamp:this.num,setUp:{tabVal:"0"},tabConfig:{title:"选择模板",tabVal:0,type:1,tabList:[{name:"自动选择",icon:"iconzidongxuanze"},{name:"手动选择",icon:"iconshoudongxuanze"}]},titleShow:{title:"是否显示名称",val:!0},opriceShow:{title:"是否显示原价",val:!0},priceShow:{title:"是否显示价格",val:!0},couponShow:{title:"是否显示优惠券",val:!0},selectConfig:{title:"商品分类",activeValue:[],list:[{value:"",label:""},{value:"",label:""}]},goodsSort:{title:"商品排序",name:"goodsSort",type:0,list:[{val:"综合",icon:"iconComm_whole"},{val:"销量",icon:"iconComm_number"},{val:"价格",icon:"iconComm_Price"}]},numConfig:{val:6},themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},fontColor:{title:"价格颜色",name:"fontColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},labelColor:{title:"活动标签",name:"labelColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},itemStyle:{title:"显示类型",name:"itemSstyle",type:0,list:[{val:"单列",icon:"iconzuoyoutuwen"},{val:"两列",icon:"iconlianglie"},{val:"三列",icon:"iconsanlie"},{val:"大图",icon:"icondanlie"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbConfig:{title:"页面间距",val:0,min:0},productList:{title:"商品列表",list:[]},goodsList:{max:20,list:[]}},navlist:[],imgStyle:"",txtColor:"",slider:"",tabCur:0,list:[],activeColor:"",fontColor:"",labelColor:"",pageData:{},itemStyle:0,titleShow:!0,opriceShow:!0,priceShow:!0,couponShow:!0,bgStyle:0,conStyle:1}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.itemStyle=t.itemStyle.type||0,this.activeColor=t.themeColor.color[0].item,this.fontColor=t.fontColor.color[0].item,this.labelColor=t.labelColor.color[0].item,this.slider=t.mbConfig.val,this.titleShow=t.titleShow.val,this.opriceShow=t.opriceShow.val,this.priceShow=t.priceShow.val,this.couponShow=t.couponShow.val,this.bgStyle=t.bgStyle.type,this.conStyle=t.conStyle.type,t.tabConfig.tabVal?this.list=t.goodsList.list||[]:this.list=t.productList.list||[])}}},l=c,r=(e("8faf"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"63b8dd7b",null);i["default"]=d.exports},"1c62":function(t,i,e){"use strict";e("0d27")},"1c84":function(t,i,e){},"1c8d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page",style:{marginTop:t.mTOP+"px"}},[t.bgColor.length>0&&t.isShow?e("div",{staticClass:"bg",style:{background:"linear-gradient(180deg,"+t.bgColor[0].item+" 0%,"+t.bgColor[1].item+" 100%)"}}):t._e(),t._v(" "),e("div",{staticClass:"banner",class:t.bgColor.length>0&&t.isShow?"on":"",style:{paddingLeft:t.edge+"px",paddingRight:t.edge+"px"}},[t.imgSrc?e("img",{class:{doc:t.imgStyle},attrs:{src:t.imgSrc,alt:""}}):e("div",{staticClass:"empty-box",class:{on:t.imgStyle}},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("div",[0==t.docStyle?e("div",{staticClass:"dot",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[e("div",{staticClass:"dot-item",staticStyle:{background:"#fff"}}),t._v(" "),e("div",{staticClass:"dot-item"}),t._v(" "),e("div",{staticClass:"dot-item"})]):t._e(),t._v(" "),1==t.docStyle?e("div",{staticClass:"dot line-dot",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[e("div",{staticClass:"line_dot-item",staticStyle:{background:"#fff"}}),t._v(" "),e("div",{staticClass:"line_dot-item"}),t._v(" "),e("div",{staticClass:"line_dot-item"})]):t._e(),t._v(" "),2==t.docStyle?e("div",{staticClass:"dot number",style:{paddingLeft:t.edge+10+"px",paddingRight:t.edge+10+"px",justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}}):t._e()])])},a=[],o=e("db72"),s=e("2f62"),c={name:"banner",cname:"轮播图",icon:"iconlunbotu",defaultName:"swiperBg",configName:"c_banner",type:0,props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"swiperBg",timestamp:this.num,setUp:{tabVal:"0"},swiperConfig:{title:"最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片 顺序",maxList:10,list:[{img:"",info:[{title:"标题",value:"今日推荐",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},isShow:{title:"是否显示背景色",val:!0},bgColor:{title:"背景颜色(渐变)",default:[{item:"#FFFFFF"},{item:"#FFFFFF"}],color:[{item:"#FFFFFF"},{item:"#FFFFFF"}]},lrConfig:{title:"左右边距",val:10,min:0},mbConfig:{title:"页面间距",val:0,min:0},docConfig:{cname:"swiper",title:"指示器样式",type:0,list:[{val:"圆形",icon:"iconDot"},{val:"直线",icon:"iconSquarepoint"},{val:"无指示器",icon:"iconjinyong"}]},txtStyle:{title:"指示器位置",type:0,list:[{val:"居左",icon:"icondoc_left"},{val:"居中",icon:"icondoc_center"},{val:"居右",icon:"icondoc_right"}]},imgConfig:{cname:"docStyle",title:"轮播图样式",type:0,list:[{val:"圆角",icon:"iconPic_fillet"},{val:"直角",icon:"iconPic_square"}]}},pageData:{},bgColor:[],mTOP:0,edge:0,imgStyle:0,imgSrc:"",docStyle:0,dotPosition:0,isShow:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.isShow=t.isShow.val,this.bgColor=t.bgColor.color,this.mTOP=t.mbConfig.val,this.edge=t.lrConfig.val,this.imgStyle=t.imgConfig.type,this.imgSrc=t.swiperConfig.list.length?t.swiperConfig.list[0].img:"",this.docStyle=t.docConfig.type,this.dotPosition=t.txtStyle.type)}}},l=c,r=(e("26e2"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"651c0c53",null);i["default"]=d.exports},2174:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"home_bargain",class:0===t.bgStyle?"bargainOn":"",style:{marginTop:t.mTop+"px"}},[e("div",{staticClass:"bargin_count",class:0===t.bgStyle?"bargainOn":"",style:{background:""+t.themeColor}},[e("div",{staticClass:"title-bar",class:0===t.bgStyle?"bargainOn":""},[t._m(0),t._v(" "),t._m(1)]),t._v(" "),2!=t.isOne?e("div",{staticClass:"list-wrapper",class:"colum"+t.isOne},t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"item",class:t.conStyle?"":"bargainOn"},[e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box",class:t.conStyle?"":"bargainOn"},[e("span",{staticClass:"iconfont-diy icontupian"})]),t._v(" "),t.joinShow?e("div",{staticClass:"box-num"},[t._v(t._s(i.num)+"人参与")]):t._e()]),t._v(" "),t.titleShow||t.priceShow||t.bntShow||t.barginShow?e("div",{staticClass:"con-box",class:t.conStyle?"":"bargainOn"},[e("div",{staticClass:"con-desc"},[t.titleShow?e("div",{staticClass:"title line1"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),e("div",{staticClass:"price"},[t.barginShow?e("span",{staticClass:"price-name",style:"color:"+t.priceColor},[t._v("助力价")]):t._e(),t._v(" "),t.priceShow?e("p",{style:"color:"+t.priceColor},[t._v("¥"),e("span",{staticClass:"price-label"},[t._v(t._s(i.price))])]):t._e()])]),t._v(" "),t.bntShow&&t.bgColor.length>0?e("div",{staticClass:"btn",class:t.conStyle?"":"bargainOn",style:{background:"linear-gradient(180deg,"+t.bgColor[0].item+" 0%,"+t.bgColor[1].item+" 100%)"}},[t._v("发起助力")]):t._e()]):t._e()])})),0):e("div",{staticClass:"list-wrapper colum2",class:0===t.bgStyle?"bargainOn":""},t._l(t.list,(function(i,n){return n<3?e("div",{staticClass:"item",class:t.conStyle?"":"bargainOn",attrs:{index:n}},[t.titleShow||t.priceShow||t.bntShow?e("div",{staticClass:"info"},[t.titleShow?e("div",{staticClass:"title line1"},[t._v(t._s(i.store_name))]):t._e(),t._v(" "),t.priceShow?e("div",{staticClass:"price line1",style:"color:"+t.priceColor},[t._v("¥"+t._s(i.price))]):t._e(),t._v(" "),t.bntShow?e("span",{staticClass:"box-btn"},[t._v("去助力"),e("span",{staticClass:"iconfont-diy iconjinru"})]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):t._e(),t._v(" "),e("div",{staticClass:"empty-box",class:t.conStyle?"":"bargainOn"},[e("span",{staticClass:"iconfont-diy icontupian"})])])]):t._e()})),0)])])])},a=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"title-left"},[n("img",{attrs:{src:e("5b5b"),alt:""}}),t._v(" "),n("div",{staticClass:"avatar-wrapper"},[n("img",{attrs:{src:e("4843"),alt:""}}),t._v(" "),n("img",{attrs:{src:e("9456"),alt:""}})]),t._v(" "),n("p",{staticClass:"num"},[t._v("1234人助力成功")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("更多 "),e("span",{staticClass:"iconfont-diy iconjinru"})])}],o=e("db72"),s=e("2f62"),c={name:"home_bargain",cname:"助力",icon:"iconzhuli",configName:"c_home_bargain",type:1,defaultName:"bargain",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"bargain",timestamp:this.num,setUp:{tabVal:"0"},priceShow:{title:"是否显示价格",val:!0},bntShow:{title:"是否显示按钮",val:!0},titleShow:{title:"是否显示名称",val:!0},barginShow:{title:"是否显示助力标签",val:!0},joinShow:{title:"是否显示参与标签",val:!0},tabConfig:{title:"展示样式",tabVal:0,type:1,tabList:[{name:"单行展示",icon:"icondanhang"},{name:"多行展示",icon:"iconduohang"},{name:"板块模式",icon:"iconyangshi9"}]},bgColor:{title:"按钮背景色",name:"bgColor",default:[{item:"#FF0000"},{item:"#FF5400"}],color:[{item:"#FF0000"},{item:"#FF5400"}]},themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},priceColor:{title:"主题颜色",name:"themeColor",default:[{item:"#E93323"}],color:[{item:"#E93323"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbCongfig:{title:"页面间距",val:0,min:0}},bgColor:[],themeColor:"",priceColor:"",mTop:"",list:[{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245},{img:"",store_name:"双耳戴头式无线...",price:"234",num:1245}],priceShow:!0,bntShow:!0,titleShow:!0,barginShow:!0,joinShow:!0,pageData:{},bgStyle:1,isOne:0,conStyle:1}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbCongfig&&(this.isOne=t.tabConfig.tabVal,this.bgColor=t.bgColor.color,this.themeColor=t.themeColor&&t.themeColor.color[0].item,this.priceColor=t.priceColor&&t.priceColor.color[0].item,this.mTop=t.mbCongfig.val,this.priceShow=t.priceShow.val,this.titleShow=t.titleShow.val,this.barginShow=t.barginShow.val,this.joinShow=t.joinShow.val,this.conStyle=t.conStyle.type,this.bgStyle=t.bgStyle.type,this.bntShow=t.bntShow.val)}}},l=c,r=(e("3b8d2"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"97b6085c",null);i["default"]=d.exports},"244d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{padding:"0 10px 10px"}},[e("div",{staticClass:"mobile-page",class:0===t.bgStyle?"":"pageOn",style:[{background:t.bg},{marginTop:t.cSlider+"px"}]},[t._m(0),t._v(" "),0==t.listStyle?e("div",{staticClass:"live-wrapper-a live-wrapper-c"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-a"},[e("div",{staticClass:"img-box"},[t._m(1,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(2,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()])])})),0):t._e(),t._v(" "),1==t.listStyle?e("div",{staticClass:"live-wrapper-a"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-a"},[e("div",{staticClass:"img-box"},[t._m(3,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(4,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"info"},[e("div",{staticClass:"title"},[t._v("直播标题直播标题直播标 题直播标题")]),t._v(" "),t._m(5,!0),t._v(" "),e("div",{staticClass:"goods-wrapper"},[i.goods.length>0?t._l(i.goods,(function(i,n){return e("div",{key:n,staticClass:"goods-item"},[e("img",{attrs:{src:i.img,alt:""}}),t._v(" "),e("span",[t._v("¥"+t._s(i.price))])])})):[e("div",{staticClass:"empty-goods"},[t._v("\n 暂无商品\n ")])]],2)])])})),0):t._e(),t._v(" "),2==t.listStyle?e("div",{staticClass:"live-wrapper-b"},t._l(t.live,(function(i,n){return e("div",{key:n,staticClass:"live-item-b"},[e("div",{staticClass:"img-box"},[t._m(6,!0),t._v(" "),1==i.type?e("div",{staticClass:"label bgblue"},[t._m(7,!0),t._v(" "),e("span",{staticClass:"msg"},[t._v("7/29 10:00")])]):t._e(),t._v(" "),0==i.type?e("div",{staticClass:"label bggary"},[e("span",{staticClass:"iconfont-diy iconyijieshu",staticStyle:{"margin-right":"5px"}}),t._v("回放\n ")]):t._e(),t._v(" "),2==i.type?e("div",{staticClass:"label bgred"},[e("span",{staticClass:"iconfont-diy iconzhibozhong",staticStyle:{"margin-right":"5px"}}),t._v("直播中\n ")]):t._e()]),t._v(" "),t._m(8,!0)])})),0):t._e()])])},a=[function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"title-box"},[n("span",[n("img",{staticClass:"icon",attrs:{src:e("c845"),alt:""}})]),t._v(" "),n("span",[t._v("进入频道"),n("span",{staticClass:"iconfont-diy iconjinru"})])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"people"},[e("span",[t._v("樱桃小丸子")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("span",{staticClass:"txt"},[e("span",{staticClass:"iconfont-diy iconweikaishi",staticStyle:{"margin-right":"5px"}}),t._v("预告")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"info"},[e("div",{staticClass:"title"},[t._v("直播标题直播标题直播标 题直播标题")]),t._v(" "),e("div",{staticClass:"people"},[e("span",[t._v("樱桃小丸子")])])])}],o=e("db72"),s=e("2f62"),c={name:"wechat_live",cname:"小程序直播",configName:"c_wechat_live",type:1,defaultName:"liveBroadcast",icon:"iconxiaochengxuzhibo3",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"liveBroadcast",timestamp:this.num,bg:{title:"背景色",name:"bg",default:[{item:"#fff"}],color:[{item:"#fff"}]},listStyle:{title:"列表样式",name:"listStyle",type:0,list:[{val:"单行",icon:"icondanhang"},{val:"多行",icon:"iconduohang"},{val:"双排",icon:"iconlianglie"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},mbConfig:{title:"页面间距",val:0,min:0}},live:[{title:"直播中",name:"playBg",type:2,color:"",icon:"iconzhibozhong",goods:[]},{title:"回放",name:"endBg",type:0,color:"",icon:"iconyijieshu",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]},{title:"预告",name:"notBg",type:1,color:"",icon:"iconweikaishi",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]},{title:"直播中",name:"playBg",type:2,color:"",icon:"iconzhibozhong",goods:[{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"},{img:"http://admin.crmeb.net/uploads/attach/2020/05/20200515/4f17d0727e277eb86ecc6296e96c2c09.png",price:"199"}]}],cSlider:"",confObj:{},pageData:{},listStyle:0,bgStyle:0,bg:""}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.cSlider=t.mbConfig.val,this.listStyle=t.listStyle.type,this.bgStyle=t.bgStyle.type,this.bg=t.bg.color[0].item)}}},l=c,r=(e("e70e"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"7a95016c",null);i["default"]=d.exports},"26e2":function(t,i,e){"use strict";e("992d")},2756:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{"margin-bottom":"20px"}},[t.configData.tabList?e("div",{staticClass:"title-tips"},[e("span",[t._v(t._s(t.configData.title))]),t._v(t._s(t.configData.tabList[t.configData.tabVal].name)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"radio-box",class:{on:1==t.configData.type}},[e("el-radio-group",{attrs:{type:"button",size:"large"},on:{change:function(i){return t.radioChange(i)}},model:{value:t.configData.tabVal,callback:function(i){t.$set(t.configData,"tabVal",i)},expression:"configData.tabVal"}},t._l(t.configData.tabList,(function(i,n){return e("el-radio",{key:n,attrs:{label:n}},[i.icon?e("span",{staticClass:"iconfont-diy",class:i.icon}):e("span",[t._v(t._s(i.name))])])})),1)],1)])},a=[],o={name:"c_tab",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{formData:{type:0},defaults:{},configData:{}}},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},methods:{radioChange:function(t){this.defaults.picStyle&&(this.defaults.picStyle.tabVal="0"),this.$emit("getConfig",t)}}},s=o,c=(e("1224"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"4e7cb8ae",null);i["default"]=l.exports},"27c5":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config pro"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=(e("2f62"),e("befa7")),l={name:"c_home_menu",cname:"导航组",componentsName:"home_menu",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}],space:[{components:s["a"].c_menu_list,configNme:"menuConfig"}],space2:[],oneStyle:[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_txt_tab,configNme:"menuStyle"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"titleColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],twoStyle:[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_txt_tab,configNme:"menuStyle"},{components:s["a"].c_txt_tab,configNme:"rowsNum"},{components:s["a"].c_txt_tab,configNme:"number"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_bg_color,configNme:"titleColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}],type:0,setUp:0}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){this.setUp=t;var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_menu_list,configNme:"menuConfig"}];this.rCom=e.concat(n)}else this.type?this.rCom=e.concat(this.twoStyle):this.rCom=e.concat(this.oneStyle)},deep:!0},"configObj.tabConfig.tabVal":{handler:function(t,i){this.type=t;var e=[this.rCom[0]];0!=this.setUp&&(this.rCom=0==t?e.concat(this.oneStyle):e.concat(this.twoStyle))},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,d=e("2877"),f=Object(d["a"])(r,n,a,!1,null,"a1cd64de",null);i["default"]=f.exports},"27ef":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"hot_imgs"},[e("div",{staticClass:"title"},[t._v("\n 最多可添加4个板块片建议尺寸140 * 140px;鼠标拖拽左侧圆点可\n 调整板块顺序\n ")]),t._v(" "),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.defaults.menu,group:"people",handle:".move-icon"}},t._l(t.defaults.menu,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("Icon",{attrs:{type:"ios-keypad-outline",size:"22"}})],1),t._v(" "),e("div",{staticClass:"img-box",on:{click:function(i){return t.modalPicTap("单选",n)}}},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)]),t._v(" "),e("div",{staticClass:"info"},t._l(i.info,(function(i,n){return e("div",{key:n,staticClass:"info-item"},[e("span",[t._v(t._s(i.title))]),t._v(" "),e("div",{staticClass:"input-box"},[e("el-input",{attrs:{placeholder:i.tips,maxlength:i.max},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"infos.value"}})],1)])})),0)])})),0)],1),t._v(" "),t.defaults.menu.length<4?e("div",{staticClass:"add-btn"},[e("Button",{staticStyle:{width:"100%",height:"40px"},on:{click:t.addBox}},[t._v("添加板块")])],1):t._e()])},a=[],o=e("1980"),s=e.n(o),c=(e("2f62"),e("6625")),l=e.n(c),r=e("b5b8"),d=(e("0c6d"),{name:"c_hot_imgs",props:{configObj:{type:Object}},components:{draggable:s.a,UeditorWrap:l.a,uploadPictures:r["default"]},data:function(){return{defaults:{},menus:[],list:[{title:"aa",val:""}],modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0}},created:function(){this.defaults=this.configObj},watch:{configObj:{handler:function(t,i){this.defaults=t},immediate:!0,deep:!0}},methods:{addBox:function(){var t={img:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1594458238721&di=d9978a807dcbf5d8a01400875bc51162&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2F201604%2F23%2F002205xqdkj84gnw4oi85v.jpg",info:[{title:"标题",value:"",tips:"选填,不超过4个字",max:4},{title:"简介",value:"",tips:"选填,不超过20个字",max:20}],link:{title:"链接",optiops:[{type:0,value:"",label:"一级>二级分类"},{type:1,value:"",label:"自定义链接"}]}};this.defaults.menu.push(t)},modalPicTap:function(t,i){this.activeIndex=i,this.modalPic=!0},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,i){var e=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:i,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var n=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});return n}),37)},getPic:function(t){this.defaults.menu[this.activeIndex].img=t.att_dir,this.modalPic=!1}}}),f=d,u=(e("ff94"),e("2877")),m=Object(u["a"])(f,n,a,!1,null,"67b32add",null);i["default"]=m.exports},2947:function(t,i,e){},"2c2b":function(t,i,e){},"2c34":function(t,i,e){var n={"./c_bg_color.vue":"95a6","./c_cascader.vue":"b500","./c_custom_menu_list.vue":"144d","./c_foot.vue":"312f","./c_goods.vue":"a497","./c_hot_box.vue":"6b1a","./c_hot_imgs.vue":"27ef","./c_hot_word.vue":"f3ffe","./c_input_item.vue":"c31e","./c_input_number.vue":"8055","./c_is_show.vue":"3d85","./c_menu_list.vue":"c774","./c_page_ueditor.vue":"bd5a","./c_pictrue.vue":"60e2","./c_product.vue":"fe40","./c_select.vue":"5413","./c_set_up.vue":"fed0","./c_slider.vue":"80c19","./c_status.vue":"e291","./c_tab.vue":"2756","./c_txt_tab.vue":"58f1","./c_upload_img.vue":"500d"};function a(t){var i=o(t);return e(i)}function o(t){var i=n[t];if(!(i+1)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i}a.keys=function(){return Object.keys(n)},a.resolve=o,t.exports=a,a.id="2c34"},"2cb9":function(t,i,e){},"2d44":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAUCAYAAAB2132+AAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAABd6ADAAQAAAABAAAAFAAAAABeOGisAAAGY0lEQVR4Ae2ZCWwVVRSGX6VaRItogShW8xCsilZwQ8QqQRQjilaLEhG1uEWIS9QgrmlFUYILwaIxRuKCCrhgVcANbIjGqMiSWGrSsFTEJSgYLUtww+9v58ab6fS9tjxbXt75k6/33jMz9837e++ZM20sZjIHzAFzwBwwB8wBc8AcMAfMAXPAHDAHzAFzwBwwB8wBc8AcMAfMgVQ4kJWKSWwOc8AcMAfMgUgHehItiDzS9mAtl25KdvleyU5o5fFizt8VoH5z6sWB+2Ax/A7rgnYJbRkcCiZzIAcLepgN5sBuODCBa68OXa9kOwMWwUTw8+DZjGfD63AxOB1C5yYY5AJBeyttbijmhoV0Stwgha3m1NwJ5X+phCe28OAA7zy/74VjMxlUw4MwDPQw6Az/wFlQDt/A02DKTAey+dpPwTZQhbIGToJE0lvoAqj3TtL6vgF2wGgvHtWdS1Br8cLQQRePWs9jgmtUkJj2LAdO5HbK4VGIg9P+dN6BTnAvnAFTQeoPr8AyeBymwQXQBRaC1uLtMAokFaH54K85xZ2U314FrWf1U0H3YM4i2v9Vq5hdG2Jl8CnlwVgx9X3dxWAzaMP+DFUgcy+D00Gb735QXCbKsC2gX4IpsxyYxNfdCefBwfAwbARV8s1pIgf0Fug2mtbNBlgNWo+JkntXjm+HtaCKzZdL7s/6waD/Ca3mLos4ZqGOdUB5ZTrUgP/7KWH8OTgNoaO8pEKgAlyip9twXSWtis4nFUADYVZDLxZ7glbrszkp50laI6ni14YZYzE3dzBs2ugL7Y70pJOiqprGI//93EpX1ZUqdG20obACjoQR0AdkuuKXg879O4DGlEEOnMl3rYL34CfQJlWVNBwOhCWgdeI0mM7N8JALBO0dtC2pcFSJ7QBVZSOhG/jShlKVfoAXLKSvjb7di1l3z3HgNW7lNvgydEt9GasoddID/SBQRRx1rID4pzAMxsMj8BYoXymnaX22p8JrUw+rSLUmuRczg3v6qN9azeQCGZUL6+FreAm0Ie+BKTAHlPD1Gq7Xp6PAlHkO6LW4H+gBL53a2MQOp9XfPlVJnRLE8mi1bq4DvRE6qTBQFa41m0xXcsJ8WARK1peCLyUDrdmrvKA2eiXUezHr7vkOxLlFveE5fU9Ha2Q/iMNv4PQdHcX/gHOhB0yGBaAHh4oO5SkVp/tAR0hFzqCoD06U3JXAy8Al8gHeBH7fCyft/hKc8QHtcSBT9eRUZaRWVf0J8CFIWxob+5lhDrzJ9z0MPgJtJhUG2mDZUANxeAyU/F8EJWa3Zui2SnpgDIF58CdUgpJ9WLMIKKFLKlDGgmKm9HJAD28VBE770tHvXYlcx7qDkxK7Ck1pI2gtLgXlLj0UtA6+glGwHDpDR0hvHk2UKLnr1aMc1KZaquC1KdX2hf5BewztC2AVOyZksPRWVwpd4RyYBFqrP4D0LagQuBZUDLwM2nD5oPPU16Ztia7gpCy4CKaD5iiCOPiazaAPDAVdo8JjMZjSywGtnbh3y+rXwl8QdUzFRFi3EKgAFQEPwDXwBoyE9pb+nPhF1IcmSu5R56cyVspk2jDayKrkq0GvPePAlNkOHM3X10YbCKeB/q6ZDSvAV28GvUDVk9bRZOgS9FUwtETaoGtABcWxwQWq4MYGfddspqOqfgKMh+dBDxhTejnwLrc7GFRYaq3oH5OfgfQ26MGdA/lwPbhjdBukNbkatkIdHA97Qz+og/bWVD5Qa7OJOjK562ZcxaWKXfyooCnjHcjDgY9hBOg1+W6ogrXQE5TIVSVNAR13qKLaFoyV8JPpZE7QursRhnvMo6+kH9ZzBEpAbwZK7qb0c2A9t3wnLAetp8JgTNNQbK6k3QA1sArmgC+tlWeCwHxaFaTVsA6WQZSWRgXbGAvPFZnYk82tL7YL1ErFoLFQX2rJOY1nNv9TDxgZbTIHfAcqGGjhar0pUatCl+KwCUohrHEE6kPBbow1x+hQXMMZoLeCThp4UqLXNfpH7lzQg0bSWq2D98FJ15e5gbVp40Aud3pEM3ertaYiIiytk97hYILxGI4VJTje1kOa85JkF2clO8GOmwMd6IA2Ux4omZvMgXRzIIcbPh8KUnzjtcy3EHameF6bzhwwB8wBc8AcMAfMAXPAHDAHzAFzwBwwB8wBc8AcMAfMAXPAHDAHIhz4FwO/QgbhZ4FRAAAAAElFTkSuQmCC"},"2d75":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=(e("2f62"),e("befa7")),l={name:"c_home_seckill",componentsName:"home_seckill",cname:"秒杀",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_is_show,configNme:"priceShow"},{components:s["a"].c_is_show,configNme:"progressShow"},{components:s["a"].c_is_show,configNme:"titleShow"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_tab,configNme:"tabConfig"},{components:s["a"].c_bg_color,configNme:"countDownColor"},{components:s["a"].c_bg_color,configNme:"themeColor"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_txt_tab,configNme:"bgStyle"},{components:s["a"].c_txt_tab,configNme:"conStyle"},{components:s["a"].c_slider,configNme:"prConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}},r=l,d=e("2877"),f=Object(d["a"])(r,n,a,!1,null,"552ffd73",null);i["default"]=f.exports},"2f64":function(t,i,e){},"312f":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.footConfig?e("div",[e("p",{staticClass:"tips"},[t._v("图片建议宽度81*81px;鼠标拖拽左侧圆点可调整导航顺序")]),t._v(" "),e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.footConfig,group:"peoples",handle:".iconfont"}},t._l(t.footConfig,(function(i,n){return e("div",{key:n,staticClass:"box-item"},[e("div",{staticClass:"left-tool"},[e("span",{staticClass:"iconfont icondrag2"})]),t._v(" "),e("div",{staticClass:"right-wrapper"},[e("div",{staticClass:"img-wrapper"},t._l(i.imgList,(function(i,a){return e("div",{staticClass:"img-item",on:{click:function(i){return t.modalPicTap(n,a)}}},[i?e("img",{attrs:{src:i,alt:""}}):t._e(),t._v(" "),i?e("p",{staticClass:"txt"},[t._v(t._s(0==a?"选中":"未选中"))]):e("div",{staticClass:"empty-img"},[e("span",{staticClass:"iconfont iconjiahao"}),t._v(" "),e("p",[t._v(t._s(0==a?"选中":"未选中"))])])])})),0),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 名称\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-input",{attrs:{placeholder:"选填不超过10个字"},model:{value:i.name,callback:function(e){t.$set(i,"name",e)},expression:"item.name"}})],1)],1),t._v(" "),e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 链接\n ")]),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("div",{on:{click:function(i){return t.getLink(n)}}},[e("el-input",{attrs:{icon:"ios-arrow-forward",readonly:"",placeholder:"选填不超过10个字"},model:{value:i.link,callback:function(e){t.$set(i,"link",e)},expression:"item.link"}})],1)])],1)]),t._v(" "),e("div",{staticClass:"del-box",on:{click:function(i){return t.deleteMenu(n)}}},[e("span",{staticClass:"iconfont iconcha"})])])})),0),t._v(" "),t.footConfig.length<5?e("el-button",{staticClass:"add-btn",attrs:{type:"info",ghost:""},on:{click:t.addMenu}},[t._v("添加图文导航")]):t._e(),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传底部菜单"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1),t._v(" "),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1):t._e()},a=[],o=e("1980"),s=e.n(o),c=e("b5b8"),l=e("7af3"),r={name:"c_foot",props:{configObj:{type:Object,default:function(){return{}}},configNme:{type:String,default:""}},components:{uploadPictures:c["default"],linkaddress:l["a"],draggable:s.a},data:function(){return{val1:"",val2:"",footConfig:[],modalPic:!1,isChoice:"单选",itemIndex:0,itemChildIndex:0,gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12}}},watch:{configObj:{handler:function(t,i){this.footConfig=t[this.configNme]},deep:!0}},created:function(){this.footConfig=this.configObj[this.configNme]},methods:{linkUrl:function(t){this.footConfig[this.itemIndex].link=t},getLink:function(t){this.itemIndex=t,this.$refs.linkaddres.init()},modalPicTap:function(t,i){var e=this;e.itemIndex=t,e.itemChildIndex=i,e.$modalUpload((function(n){e.footConfig[t].imgList[i]=n[0],e.$forceUpdate(),e.getPic(n[0])}))},getPic:function(t){var i=this;this.$nextTick((function(){i.footConfig[i.itemIndex].imgList[i.itemChildIndex]=t,i.$store.commit("mobildConfig/footUpdata",i.footConfig)}))},addMenu:function(){var t={imgList:["",""],name:"自定义",link:""};this.footConfig.push(t)},deleteMenu:function(t){var i=this;this.$confirm("是否确定删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.footConfig.splice(t,1)})).catch((function(){i.$message({type:"info",message:"已取消"})}))}}},d=r,f=(e("d0c9"),e("2877")),u=Object(f["a"])(d,n,a,!1,null,"340eff88",null);i["default"]=u.exports},3298:function(t,i,e){},"344a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"box",style:{borderBottomWidth:t.cSlider+"px",borderBottomColor:t.bgColor,borderBottomStyle:t.style,marginLeft:t.edge+"px",marginRight:t.edge+"px",marginTop:t.udEdge+"px"}})])},a=[],o=e("db72"),s=e("2f62"),c={name:"z_auxiliary_line",cname:"辅助线",configName:"c_auxiliary_line",icon:"iconfuzhuxian2",type:2,defaultName:"guide",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"guide",timestamp:this.num,lineColor:{title:"线条颜色",default:[{item:"#f5f5f5"}],color:[{item:"#f5f5f5"}]},lineStyle:{title:"线条样式",type:0,list:[{val:"虚线",style:"dashed",icon:""},{val:"实线",style:"solid"},{val:"点状线",style:"dotted"}]},heightConfig:{title:"组件高度",val:1,min:1},lrEdge:{title:"左右边距",val:0,min:0},mbConfig:{title:"页面间距",val:0,min:0}},cSlider:"",bgColor:"",confObj:{},pageData:{},edge:"",udEdge:"",styleType:"",style:""}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){if(t&&t.mbConfig){var i=t.lineStyle.type;this.cSlider=t.heightConfig.val,this.bgColor=t.lineColor.color[0].item,this.edge=t.lrEdge.val,this.udEdge=t.mbConfig.val,this.style=t.lineStyle.list[i].style}}}},l=c,r=(e("b46e"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"55f42962",null);i["default"]=d.exports},3651:function(t,i,e){},3725:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[e("Form",{ref:"formInline"},t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme}})],1)})),0)],1)},a=[],o=e("db72"),s=e("fd0b"),c=e("befa7"),l=(e("2f62"),{name:"pageFoot",cname:"底部菜单",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),data:function(){return{hotIndex:1,configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_status,configNme:"status"},{components:s["a"].c_foot,configNme:"menuList"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_bg_color,configNme:"txtColor"},{components:s["a"].c_bg_color,configNme:"activeTxtColor"},{components:s["a"].c_bg_color,configNme:"bgColor"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){this.configObj=this.$store.state.mobildConfig.pageFooter,console.log("2222",this.configObj)},methods:{}}),r=l,d=(e("b90c"),e("2877")),f=Object(d["a"])(r,n,a,!1,null,"8741f466",null);i["default"]=f.exports},3781:function(t,i,e){},"385a":function(t,i,e){"use strict";e("1a61")},"3b8d2":function(t,i,e){"use strict";e("9fbb")},"3d85":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"c_row-item"},[e("el-col",{staticClass:"c_label"},[t._v(t._s(t.configData.title))]),t._v(" "),e("el-col",[e("el-switch",{model:{value:t.configData.val,callback:function(i){t.$set(t.configData,"val",i)},expression:"configData.val"}})],1)],1):t._e()},a=[],o={name:"c_is_show",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{}}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},methods:{}},s=o,c=(e("9295"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"e03dde4a",null);i["default"]=l.exports},"3f2d":function(t,i,e){"use strict";e("cc53")},"3fb2":function(t,i,e){"use strict";e("c6b1")},4553:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",{staticClass:"mt20 ml20"},[e("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(i){t.videoLink=i},expression:"videoLink"}}),t._v(" "),e("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),e("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v(t._s(t.videoLink?"确认添加":"上传视频"))]),t._v(" "),t.upload.videoIng?e("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:t.progress,"text-inside":!0}}):t._e(),t._v(" "),t.formValidate.video_link?e("div",{staticClass:"iview-video-style"},[e("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),e("div",{staticClass:"mark"}),t._v(" "),e("i",{staticClass:"iconv el-icon-delete",on:{click:t.delVideo}})]):t._e()],1),t._v(" "),e("div",{staticClass:"mt50 ml20"},[e("el-button",{attrs:{type:"primary"},on:{click:t.uploads}},[t._v("确认")])],1)])},a=[],o=(e("7f7f"),e("c4c8")),s=(e("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var i=this,e=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==e)return i.$message.error("只能上传MP4文件");Object(o["cb"])().then((function(e){i.$videoCloud.videoUpload({type:e.data.type,evfile:t,res:e,uploading:function(t,e){i.upload.videoIng=t,console.log(t,e)}}).then((function(t){i.formValidate.video_link=t.url||t.data.src,i.$message.success("视频上传成功"),i.progress=100,i.upload.videoIng=!1})).catch((function(t){i.$message.error(t)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),c=s,l=(e("8307"),e("2877")),r=Object(l["a"])(c,n,a,!1,null,"732b6bbd",null);i["default"]=r.exports},4777:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=e("befa7"),l=(e("2f62"),{name:"c_ueditor_box",componentsName:"z_ueditor",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_page_ueditor,configNme:"richText"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"lrConfig"},{components:s["a"].c_slider,configNme:"udConfig"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}}),r=l,d=e("2877"),f=Object(d["a"])(r,n,a,!1,null,"706289e1",null);i["default"]=f.exports},"47b0":function(t,i,e){},4843:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAA0NJREFUOE9lk1lMXFUYx3/n3tmYGRkGhlTiQkuNZtToxBpDsNpWH9QmCkTTWC3WNnQJTzM+1IfGCipNbJqCGH0wtZtQsEUzbYxBY3SoGhujFmwpraGxEdMCs9zZ1zv3mgsBiZ7kPJwv+f++5fw/wX/O3Jzik4XWLGR5vSQJnxCCUqk4ZjZbQ7IszjidzrHlErH8EQ5H/ZIQPZIsIUkS6XSanoMHmJq6xtq1j9H6/Avx6pqaTrfb9d6ibgkQDkeCAtEsyTKyLJFKJuna9wbnQiFkWUbVdR5tauJgbx+6rgc9nupWAzIPMDIDPZIQGNkNwamTJ+k/cQzvikpSmRw/Tv6Jw+Hg6PETrGxYbcgCtbU1vcLoWQjtgkES0oJYK6vseS1Aau4GW1ue4tLkVT76fAQhm2hv38Gr7TsMQFwI0wYRDkc7gTeXA1LJOLu2bmFPxzYq7RVcu3qFQ0eGUPIqa9Y8xKG+DxZH0CXC4UgIxDqjfKMCY3g///QDXwWH6djeRvzmNMVclonLVzgwcJaV9fUc/aQfs8WKpumjIhKOxoUkuYzvWrgQPP0ppwcH6PbvQvl7mngmxXe/XOSbC5NUuVz0Dw7irKxaaCMajcWF+Beg6zqfDQ3w9jvdvN7+Mg1uB19+f56RXy9jslihrBLYvpmNbTsx2xwJEYspISGkdUZ2Q1zI5wgOn6J7/362PfM4d9fX8dbhYUpImEwyVqGz6YlGnny2hTvve3hUKEpifojoGoV8gsH+IQ5/fISqqmr2drxCITzNu8eDpAoq2UyW3bt3UldpwyHD/Q8+0CUUJe1DV0P5fNYVi8exyhq/j48jm+3cu3oVJoeTr0e+4P2+D4nGFLa8uImX2jYjaeWEpsR880ZSFMUvCXquT12k9g4vFHOUMaFrZSxWK5fGf8PvDzAzM8Ntt66ga99eXO6awIanN/YuWfmvG7NBVVWb7WYdrawjJEGpkCdbLOCsuIXR0W/J5/J477mLSCxz5rnW5pYlKy+64vy5s/66hkc6XQ6b62Ykgt1qplQsYLbasZktpJORxGws2dnU2Nj7v2VaDPwxMeFzezwtmWxqfUKZ9VV7bkctl8dslopQPhk/tsrrvb58g/8BcT9SrA/+Gd4AAAAASUVORK5CYII="},"4c7b":function(t,i,e){},"4cee":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{class:t.bgStyle?"pageOn":"",style:{marginLeft:t.prConfig+"px",marginRight:t.prConfig+"px",marginTop:t.slider+"px",background:t.bgColor}},[t.isOne?e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"list_menu"},t._l(t.vuexMenu,(function(i,n){return e("div",{key:n,staticClass:"item",class:1===t.number?"four":2===t.number?"five":""},[e("div",{staticClass:"img-box",class:t.menuStyle?"on":""},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("p",{style:{color:t.txtColor}},[t._v(t._s(i.info[0].value))])])})),0)]):e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"home_menu"},t._l(t.vuexMenu,(function(i,n){return e("div",{key:n,staticClass:"menu-item"},[e("div",{staticClass:"img-box",class:t.menuStyle?"on":""},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])]),t._v(" "),e("p",{style:{color:t.txtColor}},[t._v(t._s(i.info[0].value))])])})),0)])])},a=[],o=(e("ac6a"),e("456d"),e("db72")),s=e("2f62"),c={name:"home_menu",cname:"导航组",icon:"icondaohangzu2",configName:"c_home_menu",type:0,defaultName:"menus",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"menus",timestamp:this.num,setUp:{tabVal:"0"},tabConfig:{title:"展示样式",tabVal:0,type:1,tabList:[{name:"单行展示",icon:"icondanhang"},{name:"多行展示",icon:"iconduohang"}]},rowsNum:{title:"显示行数",name:"rowsNum",type:0,list:[{val:"2行",icon:"icon2hang"},{val:"3行",icon:"icon3hang"},{val:"4行",icon:"icon4hang"}]},menuStyle:{title:"图标样式",name:"menuStyle",type:0,list:[{val:"方形",icon:"iconPic_square"},{val:"圆形",icon:"icondayuanjiao"}]},number:{title:"显示个数",name:"number",type:0,list:[{val:"3个",icon:"icon3ge"},{val:"4个",icon:"icon4ge1"},{val:"5个",icon:"icon5ge1"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},prConfig:{title:"背景边距",val:0,min:0},menuConfig:{title:"最多可添加1张图片,建议宽度90 * 90px",maxList:100,list:[{img:"",info:[{title:"标题",value:"今日推荐",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"热门榜单",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"首发新品",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"促销单品",tips:"选填,不超过4个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},titleColor:{title:"文字颜色",name:"themeColor",default:[{item:"#333333"}],color:[{item:"#333333"}]},mbConfig:{title:"页面间距",val:0,min:0}},vuexMenu:"",txtColor:"",boxStyle:"",slider:"",bgColor:"",menuStyle:0,isOne:0,number:0,rowsNum:0,pageData:{},bgStyle:0,prConfig:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{objToArr:function(t){var i=Object.keys(t),e=i.map((function(i){return t[i]}));return e},setConfig:function(t){if(t&&t.mbConfig){this.txtColor=t.titleColor.color[0].item,this.menuStyle=t.menuStyle.type,this.slider=t.mbConfig.val,this.bgStyle=t.bgStyle.type,this.prConfig=t.prConfig.val,this.bgColor=t.bgColor.color[0].item,this.isOne=t.tabConfig.tabVal;var i=t.rowsNum.type,e=t.number.type,n=this.objToArr(t.menuConfig.list);this.number=e,this.rowsNum=i;var a=[];a=0===i?0===e?n.splice(0,6):1===e?n.splice(0,8):n.splice(0,10):1===i?0===e?n.splice(0,9):1===e?n.splice(0,12):n.splice(0,15):0===e?n.splice(0,12):1===e?n.splice(0,16):n.splice(0,20),this.vuexMenu=a}}}},l=c,r=(e("1aff"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"ab92431c",null);i["default"]=d.exports},"4d0a":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"page-count",class:t.bgStyle?"":"pageOn",style:{marginLeft:t.prConfig+"px",marginRight:t.prConfig+"px",marginTop:t.slider+"px",background:t.colorShow?t.bgColor:"transparent"}},[n("div",{staticClass:"home_topic"},[n("div",{staticClass:"title-wrapper",class:t.bgStyle?"":"presellOn"},[n("img",{attrs:{src:e("6472"),alt:""}}),t._v(" "),t._m(0)]),t._v(" "),1==t.isOne?n("div",{staticClass:"mobile-page"},[n("div",{staticClass:"home_menu"},t._l(t.vuexMenu,(function(i,e){return n("div",{key:e,staticClass:"menu-item"},[n("div",{staticClass:"img-box"},[i.img?n("img",{attrs:{src:i.img,alt:""}}):n("div",{staticClass:"empty-box",class:t.conStyle?"":"pageOn"},[n("span",{staticClass:"iconfont-diy icontupian"})])])])})),0)]):n("div",{staticClass:"mobile-page"},[n("div",{staticClass:"list_menu"},t._l(t.vuexMenu,(function(i,e){return e<1?n("div",{key:e,staticClass:"item"},[n("div",{staticClass:"img-box"},[i.img?n("img",{attrs:{src:i.img,alt:""}}):n("div",{staticClass:"empty-box",class:t.conStyle?"":"pageOn"},[n("span",{staticClass:"iconfont-diy icontupian"})])])]):t._e()})),0)]),t._v(" "),t.isOne>1&&t.pointerStyle<2?n("div",{staticClass:"dot",class:{"line-dot":0===t.pointerStyle,"":1===t.pointerStyle},style:{justifyContent:1===t.dotPosition?"center":2===t.dotPosition?"flex-end":"flex-start"}},[n("div",{staticClass:"dot-item",style:{background:""+t.pointerColor}}),t._v(" "),n("div",{staticClass:"dot-item"}),t._v(" "),n("div",{staticClass:"dot-item"})]):t._e()])])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("进入专场 "),e("span",{staticClass:"iconfont-diy iconjinru"})])}],o=(e("ac6a"),e("456d"),e("db72")),s=e("2f62"),c={name:"home_topic",cname:"专场",icon:"iconzhuanti",configName:"c_home_topic",type:1,defaultName:"topic",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"topic",timestamp:this.num,setUp:{tabVal:"0"},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},colorShow:{title:"是否显示背景色",val:!0},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},pointerStyle:{title:"指示器样式",name:"pointerStyle",type:0,list:[{val:"长条",icon:"iconSquarepoint"},{val:"圆形",icon:"iconDot"},{val:"无指示器",icon:"iconjinyong"}]},txtStyle:{title:"指示器位置",type:0,list:[{val:"居左",icon:"icondoc_left"},{val:"居中",icon:"icondoc_center"},{val:"居右",icon:"icondoc_right"}]},prConfig:{title:"背景边距",val:0,min:0},menuConfig:{title:"最多可添加10张照片,建议宽度750px;鼠标拖拽左侧圆点可调整图片顺序",maxList:10,list:[{img:"",info:[{title:"标题",value:"",tips:"选填,不超过6个字",max:4},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},pointerColor:{title:"指示器颜色",name:"pointerColor",default:[{item:"#f44"}],color:[{item:"#f44"}]},mbConfig:{title:"页面间距",val:0,min:0}},vuexMenu:"",txtColor:"",boxStyle:"",slider:"",bgColor:"",isOne:0,pointerStyle:0,pointerColor:"",pageData:{},bgStyle:1,conStyle:1,colorShow:1,prConfig:0,dotPosition:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{objToArr:function(t){var i=Object.keys(t),e=i.map((function(i){return t[i]}));return e},setConfig:function(t){if(t&&t.mbConfig){this.pointerStyle=t.pointerStyle.type,this.pointerColor=t.pointerColor.color[0].item,this.dotPosition=t.txtStyle.type,this.colorShow=t.colorShow.val,this.slider=t.mbConfig.val,this.bgStyle=t.bgStyle.type,this.conStyle=t.conStyle.type,this.prConfig=t.prConfig.val,this.bgColor=t.bgColor.color[0].item;var i=this.objToArr(t.menuConfig.list);this.isOne=i.length,this.vuexMenu=i.splice(0,6)}}}},l=c,r=(e("a2ba"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"558bc715",null);i["default"]=d.exports},"4d57":function(t,i,e){"use strict";e("5656")},"4e36":function(t,i,e){"use strict";e("9d88")},"500d":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"upload_img"},[e("div",{staticClass:"header"},[t._v(t._s(t.configData.header))]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.configData.title))]),t._v(" "),e("div",{staticClass:"box",on:{click:t.modalPicTap}},[t.configData.url?e("img",{attrs:{src:t.configData.url,alt:""}}):e("div",{staticClass:"upload-box"},[e("i",{staticClass:"iconfont iconjiahao",staticStyle:{"font-size":"30px"}}),t._v("添加图片")]),t._v(" "),t.configData.url&&t.configData.type?e("span",{staticClass:"iconfont-diy icondel_1",on:{click:function(i){return i.stopPropagation(),t.bindDelete(i)}}}):t._e()]),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:t.configData.header?t.configData.header:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)]):t._e()},a=[],o=e("db72"),s=e("2f62"),c=e("b5b8"),l={name:"c_upload_img",components:{uploadPictures:c["default"]},computed:Object(o["a"])({},Object(s["d"])({tabVal:function(t){return t.admin.mobildConfig.searchConfig.data.tabVal}})),props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaultList:[{name:"a42bdcc1178e62b4694c830f028db5c0",url:"https://o5wwk8baw.qnssl.com/a42bdcc1178e62b4694c830f028db5c0/avatar"},{name:"bc7521e033abdd1e92222d733590f104",url:"https://o5wwk8baw.qnssl.com/bc7521e033abdd1e92222d733590f104/avatar"}],defaults:{},configData:{},modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0}},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},methods:{bindDelete:function(){this.configData.url=""},modalPicTap:function(){var t=this;this.$modalUpload((function(i){t.configData.url=i[0]}))},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,i){var e=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:i,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var n=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});return n}),37)},getPic:function(t){var i=this;this.$nextTick((function(){i.configData.url=t.att_dir,i.modalPic=!1}))}}},r=l,d=(e("c5f3"),e("2877")),f=Object(d["a"])(r,n,a,!1,null,"279b1e0a",null);i["default"]=f.exports},5025:function(t,i,e){"use strict";e("d19c")},5037:function(t,i,e){"use strict";e("6bbf")},"504e":function(t,i,e){},5212:function(t,i,e){"use strict";e("033f")},5413:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"slider-box"},[e("div",{staticClass:"c_row-item"},[t.configData.title?e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("Select",{on:{change:t.sliderChange},model:{value:t.configData.activeValue,callback:function(i){t.$set(t.configData,"activeValue",i)},expression:"configData.activeValue"}},t._l(t.configData.list,(function(i,n){return e("Option",{key:n,attrs:{value:i.activeValue}},[t._v(t._s(i.title))])})),1)],1)],1)])},a=[],o={name:"c_select",props:{configObj:{type:Object},configNme:{type:String},number:{type:null}},data:function(){return{defaults:{},configData:{},timeStamp:""}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0},number:function(t){this.timeStamp=t}},methods:{sliderChange:function(t){var i=window.localStorage;this.configData.activeValue=t||i.getItem(this.timeStamp),this.$emit("getConfig",{name:"select",values:t})}}},s=o,c=(e("957c3"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"a9cfff72",null);i["default"]=l.exports},5564:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num},on:{getConfig:t.getConfig}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=e("befa7"),l=(e("2f62"),{name:"c_auxiliary_box",componentsName:"auxiliary_box",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"heightConfig"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:{getConfig:function(t){}}}),r=l,d=e("2877"),f=Object(d["a"])(r,n,a,!1,null,"d0bf3db4",null);i["default"]=f.exports},"556c":function(t,i,e){"use strict";e("0a0b")},"563a":function(t,i,e){"use strict";e("d806")},5656:function(t,i,e){},"58f1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"txt_tab"},[e("div",{staticClass:"c_row-item"},[e("el-row",{staticClass:"c_label"},[t._v("\n "+t._s(t.configData.title)+"\n "),e("span",[t._v(t._s(t.configData.list[t.configData.type].val))])]),t._v(" "),e("el-row",{staticClass:"color-box"},[e("el-radio-group",{attrs:{type:"button"},on:{change:function(i){return t.radioChange(i)}},model:{value:t.configData.type,callback:function(i){t.$set(t.configData,"type",i)},expression:"configData.type"}},t._l(t.configData.list,(function(i,n){return e("el-radio",{key:n,attrs:{label:n}},[i.icon?e("span",{staticClass:"iconfont-diy",class:i.icon}):e("span",[t._v(t._s(i.val))])])})),1)],1)],1)]):t._e()},a=[],o=(e("7f7f"),{name:"c_txt_tab",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{}}},created:function(){this.defaults=this.configObj,this.configData=this.configObj[this.configNme]},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},immediate:!0,deep:!0}},methods:{radioChange:function(t){"itemSstyle"!==this.configData.name&&"bgStyle"!==this.configData.name&&"conStyle"!==this.configData.name&&this.$emit("getConfig",{name:"radio",values:t})}}}),s=o,c=(e("a938"),e("2877")),l=Object(c["a"])(s,n,a,!1,null,"42995300",null);i["default"]=l.exports},"5b5b":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAABICAMAAAAJfloJAAAAxlBMVEUAAAAoKCgoKCgoKCgoKCgoKCggICAnJycnJycnJycoKCglJSUoKCgoKCgnJycnJycnJycnJycoKCgmJiYoKCgnJycnJycoKCgnJyd8AP8nJyd7AP8hISEAAAB8AP8nJycnJycnJycmJiZ7AP8jIyN7AP8mJiYhISF7AP98AP98AP97AP96AP98AP97AP8oKCgnJyd8AP97AP97AP98AP8kJCR8AP90AP8nJyd7AP97AP8mJiZ7AP97AP+AAP97AP8oKCh8AP8612LVAAAAQHRSTlMAwIBAfz8QqPGQoDAgYI/vcNDNUOCXkd+wwM+KBwHl6aN0a2kcfEgX7aRXTCLbyMavll9ENSUaC9e8rVorKBKqeaPYbgAABepJREFUeNrtm31f0zAQgC8Ji311nUU3QEVRwTcERfFds+//pfwxtrs2aeklHTj49fnLdrRJnuYul27CwMDAwMCNc3/FAbA5vF+5aqM46N8vs0IAG2l8r0pHS1Lw5fER8BHYrw0XgleMtY+L9Kc8Mc/XKsS0IW9UiI7MkgQuORIdnEyX1xR3UUjlkgwWvDRcaIZkW21kt05Ihlck4UKUaUPdOiGQUBYZhFyQUsuDkAUTs2TqJ2T/57UI2ZZLUMgyRRnsZ0ueglzYTA0yFlcQQ4Wces8Tsv9NPDxQGoAlRJkruWcLEfYJ2XULRfMhAPcxaSutWjzAjx9CjTsrBGY4q9hC+NxGIZWYGYTUYyYehNSXgN1ByIJMrbgGIam4IMJVVeAxW4hWF1DuXxwWrpBcENgMNWyz7V2k9BfiTkKJx3whl1gCFB0zmqXbEPJ2CMEC6j8J+bizZG/5Vzb7eNUDaVOuXwixDiFTgxRMIS/mKz4tXv0YH575CylvVIghFDdknq6EHAcK0aMryeoC1MYLeTVf8d5fCPWsYzzmvwtJuULeo5AXd05IZgj+u4EPKyE7GyGEtv/9haggIRQzfzZBSHgd0jFk9qcUM5+8l11/Ibq/EGALiQ2S8IXQOvPXuzDzFwI3JMSty/hC3qyEvA4SklHQUxog1JqEZAFCxgZRHkKoNvvVp3RP26cn9T4KFkK3YAvRhvDJML9o4e0jhLafZbsQ0V+IYAvJDSK8Ui4K2esjZEaJ8zqElP5CEoNIHyGUVb/3EEIBO7niWcXBQiTegi1kbJDURwiVZk97CMlYCV12CtkdLWkTIrlCUoNs+1UpbzBmeggp6Glc0XYOgaU7RWTJFVIYJPYTsodCzgHgkFmYWalzl55GunVJQ35RwUJov8wVsmsQFSrkMwA8MjySlogp8N+lWyHpUCGUEIApJDXIxLOwp93MWbCQorrGbONfOFVmsBAsQ7hCEoPkwULehQqh+TmjPcTYqZBEsBBauJlCtEEiHSzkbagQipiy0llldz4OFlLgIVNIYd0hKIeEC0nqC1xUH3+O+aVbyEQtqQ8nQeE8IXrqTBC+kI+9Q0aPMVyrq8rU3oanEFiYUUhqnhBpTZDAOuSs2nujmoiahBRWBVTUBQhMiKFCNC0YLCHZmIoy7S3kQ8uy+wQaaBQytfK5qucMTLjBQkrMQjwhiV2DhO1l5udhQnLn+ZlqzKSoK1gIBR1LiDLIDPyFzBEIEzJtzRFZLaCyYCFTCklXCC+j8oX8Rh9Pw4TkbvqKq2uCwGZDhaR4wBJyagWMp5C3KOR7kBA9ddNXSSFPCTEPEpKMSvQbaY4Qae3qfIVQGbIXJETWe6ZHo3zrtPITnBynu6cQOjXFNjuEOAkkRMgOfQ8RIIQGNzYNaPpcsoVko2JLGERgTGYMISn1Y6JDhHydI79DhbRTUlWfsYSMhSNWTPGBdwhxfIQIeYc+Xlvf7sAahMTYroR2IUK034SmXpR1CKn7iFIIEkKF+xuOEOMnROgxZtx2IYZFAR1CmD7cF0iz5rLsLUPIkWncubZDC3BfIcLezbpCcm68YK53Z+/nOfKHIUS6NxG80QQKmSTN72pPXSE6MWwfestUUI2L7g/oFJI9MkhpDY5+/RhLqdTEIBj+iB6zhAipaCrkbePBcNl1tuIuufXfJNxy9pj2/rYQYfPNVMiwI2pB2jiV7NGMLiip61vNQiIhc0U3cnd1xHZD+sg5mbS5fDuz1hj2+5ATuBolF9gtGotD62wkZrJQ2hlCAm1CYuf8JAWuEHf6/nC+x4wNi0NgYScQuy+wYBFmBc6yGtJKCaplNNYrNg8hJRDnc+S9l5DnwMMOUeeFaScSfTQKyfE8Tg8/IZFq3sfsgE/IHAATuyAwNWbQjSQfrpAor5+PCobeKlGc1cr219ZPIVgzZD/5AlzsAskKfwYSfThCRGHNnFhDB7moIpWGlt/KHH+FJV9UByl4gD4cIZM4Aw5ypoGDMkkGmw/6CIY7G4+O4DZwCAMDA+vlH3+tPTTLcnruAAAAAElFTkSuQmCC"},6001:function(t,i,e){"use strict";e("7d82")},"608a":function(t,i,e){},"60e2":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[t.isUpdate?e("div",[e("el-divider"),t._v(" "),e("div",{staticClass:"title"},[t._v("布局")]),t._v(" "),e("div",{staticClass:"tip"},[t._v("选定布局区域,在下方添加图片,建议添加比例一致的图片")]),t._v(" "),e("div",{staticClass:"advert"},[t._l(t.configData.picList,(function(i,n){return 0===t.style?e("div",{key:n,staticClass:"advertItem01 acea-row"},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("尺寸不限")])]):t._e()})),t._v(" "),1===t.style?e("div",{staticClass:"advertItem02 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._m(0,!0)])])})),0):t._e(),t._v(" "),2===t.style?e("div",{staticClass:"advertItem02 advertItem03 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._m(1,!0)])])})),0):t._e(),t._v(" "),3===t.style?e("div",{staticClass:"advertItem04 acea-row"},[e("div",{staticClass:"item",class:0===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(0,t.configData)}}},[t.configData.picList[0].image?e("img",{attrs:{src:t.configData.picList[0].image}}):e("div",{staticClass:"empty-box"},[t._v("375*375像素或同比例")])]),t._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"pic",class:1===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(1,t.configData)}}},[t.configData.picList[1].image?e("img",{attrs:{src:t.configData.picList[1].image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])]),t._v(" "),e("div",{staticClass:"pic",class:2===t.currentIndex?"on":"",on:{click:function(i){return t.currentTab(2,t.configData)}}},[t.configData.picList[2].image?e("img",{attrs:{src:t.configData.picList[2].image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])])])]):t._e(),t._v(" "),4===t.style?e("div",{staticClass:"advertItem02 advertItem05 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("宽188像素高度不限")])])})),0):t._e(),t._v(" "),5===t.style?e("div",{staticClass:"advertItem06 acea-row"},t._l(t.configData.picList,(function(i,n){return e("div",{staticClass:"item",class:t.currentIndex===n?"on":"",on:{click:function(i){return t.currentTab(n,t.configData)}}},[i.image?e("img",{attrs:{src:i.image}}):e("div",{staticClass:"empty-box"},[t._v("375*188像素或同比例")])])})),0):t._e()],2)],1):t._e()])},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",[t._v("宽375像素")]),t._v(" "),e("div",[t._v("高度不限")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",[t._v("宽250像素")]),t._v(" "),e("div",[t._v("高度不限")])])}],o=(e("b54a"),{name:"c_pictrue",props:{configObj:{type:Object},configNme:{type:String}},data:function(){return{defaults:{},configData:{},style:0,isUpdate:!1,currentIndex:0,arrayObj:{image:"",link:""}}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configObj.hasOwnProperty("timestamp")?t.isUpdate=!0:t.isUpdate=!1,t.$set(t,"configData",t.configObj[t.configNme])}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.$set(this,"configData",t[this.configNme]),this.style=t.tabConfig.tabVal,this.isUpdate=!0,this.$set(this,"isUpdate",!0)},deep:!0},"configObj.tabConfig.tabVal":{handler:function(t,i){this.count=this.defaults.tabConfig.tabList[t].count,this.picArrayConcat(this.count),this.configData.picList.splice(t+1),this.currentIndex=0;var e=this.defaults.menuConfig.list[0];this.configData.picList[0]&&(e.img=this.configData.picList[0].image,e.info[0].value=this.configData.picList[0].link)},deep:!0}},methods:{currentTab:function(t,i){if(this.currentIndex=t,this.configData.tabVal=t,this.defaults.menuConfig.isCube){var e=this.defaults.menuConfig.list[0];i.picList[t]&&i.picList[t].image?(e.img=i.picList[t].image,e.info[0].value=i.picList[t].link):(e.img="",e.info[0].value="")}},picArrayConcat:function(t){for(var i=this.configData.picList.length;i0?e("div",{staticClass:"home_coupon",class:0===t.bgStyle?"":"couponOn",style:{background:t.bgColor[0].item}},[e("div",{staticClass:"title-wrapper",style:{color:t.titleColor}},[e("span",[t._v("领优惠券")]),t._v(" "),t._m(0)]),t._v(" "),t.couponBg.length>0?e("div",{staticClass:"coupon"},[e("div",{staticClass:"item",style:{background:"linear-gradient(90deg,"+t.couponBg[0].item+" 0%,"+t.couponBg[1].item+" 100%)"}},[t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"roll up-roll",style:{background:t.bgColor[0].item}}),t._v(" "),e("div",{staticClass:"roll down-roll",style:{background:t.bgColor[0].item}})]),t._v(" "),e("div",{staticClass:"item gary"},[t._m(3),t._v(" "),t._m(4),t._v(" "),e("div",{staticClass:"roll up-roll",style:{background:t.bgColor[0].item}}),t._v(" "),e("div",{staticClass:"roll down-roll",style:{background:t.bgColor[0].item}})]),t._v(" "),e("div",{staticClass:"item",style:{background:"linear-gradient(180deg,"+t.couponBg[0].item+" 0%,"+t.couponBg[1].item+" 100%)"}},[t._m(5),t._v(" "),t._m(6),t._v(" "),e("div",{staticClass:"roll up-roll",style:{background:t.bgColor[0].item}}),t._v(" "),e("div",{staticClass:"roll down-roll",style:{background:t.bgColor[0].item}})])]):t._e()]):t._e()]):t._e()},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("查看更多 "),e("span",{staticClass:"iconfont-diy iconjinru"})])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"left"},[e("div",{staticClass:"num"},[e("span",[t._v("¥")]),t._v("50")]),t._v(" "),e("div",{staticClass:"txt"},[t._v("满100元可用")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("立"),e("br"),t._v("即"),e("br"),t._v("领"),e("br"),t._v("取")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"left"},[e("div",{staticClass:"num"},[e("span",[t._v("¥")]),t._v("50")]),t._v(" "),e("div",{staticClass:"txt"},[t._v("满100元可用")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("立"),e("br"),t._v("即"),e("br"),t._v("领"),e("br"),t._v("取")])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"left"},[e("div",{staticClass:"num"},[e("span",[t._v("¥")]),t._v("50")]),t._v(" "),e("div",{staticClass:"txt"},[t._v("满100元可用")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"right"},[t._v("立"),e("br"),t._v("即"),e("br"),t._v("领"),e("br"),t._v("取")])}],o=e("db72"),s=e("2f62"),c={name:"home_coupon",cname:"优惠券",configName:"c_home_coupon",icon:"iconyouhuiquan2",type:1,defaultName:"coupon",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"coupon",timestamp:this.num,themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#FFFFFF"}],color:[{item:"#FFFFFF"}]},titleColor:{title:"标题颜色",name:"titleColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},bgColor:{title:"优惠券背景色",name:"bgColor",default:[{item:"#FF7059"},{item:"#F11B09"}],color:[{item:"#FF7059"},{item:"#F11B09"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},prConfig:{title:"背景边距",val:0,min:0},mbConfig:{title:"页面间距",val:0,min:0}},pageData:{},bgColor:[],titleColor:[],couponBg:[],mTOP:0,bgStyle:0,prConfig:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.couponBg=t.bgColor.color,this.mTOP=t.mbConfig.val,this.bgColor=t.themeColor.color,this.titleColor=t.titleColor&&t.titleColor.color[0].item,this.bgStyle=t.bgStyle.type,this.prConfig=t.prConfig.val)}}},l=c,r=(e("6001"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"30364a2e",null);i["default"]=d.exports},"9fbb":function(t,i,e){},a2ba:function(t,i,e){"use strict";e("d756")},a497:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.defaults.goodsList?e("div",{staticClass:"goods-box"},[e("div",{staticClass:"wrapper"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.defaults.goodsList.list,group:"peoples"}},[t._l(t.defaults.goodsList.list,(function(i,n){return t.defaults.goodsList.list.length?e("div",{key:n,staticClass:"item"},[e("img",{attrs:{src:i.image,alt:""}}),t._v(" "),e("span",{staticClass:"iconfont-diy icondel_1",on:{click:function(i){return i.stopPropagation(),t.bindDelete(n)}}})]):t._e()})),t._v(" "),e("div",{staticClass:"add-item item",on:{click:function(i){t.modals=!0}}},[e("span",{staticClass:"iconfont-diy iconaddto"})])],2)],1),t._v(" "),e("el-dialog",{staticClass:"paymentFooter",attrs:{visible:t.modals,title:"商品列表",scrollable:"",width:"900px","before-close":t.cancel},on:{"update:visible":function(i){t.modals=i}}},[t.modals?e("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0,isdiy:!0},on:{getProductId:t.getProductId}}):t._e()],1)],1):t._e()},a=[],o=(e("ac6a"),e("5df3"),e("f400"),e("1980")),s=e.n(o),c=e("c4ad"),l={name:"c_goods",props:{configObj:{type:Object}},components:{goodsList:c["a"],draggable:s.a},watch:{configObj:{handler:function(t,i){this.defaults=t},immediate:!0,deep:!0}},data:function(){return{modals:!1,goodsList:[],tempGoods:{},defaults:{}}},created:function(){this.defaults=this.configObj},methods:{unique:function(t){var i=new Map;return t.filter((function(t){return!i.has(t.product_id)&&i.set(t.product_id,1)}))},getProductId:function(t){this.modals=!1;var i=this.defaults.goodsList.list.concat(t);this.defaults.goodsList.list=this.unique(i),this.defaults.goodsList.ids=this.defaults.goodsList.list.map((function(t){return t.product_id}))},cancel:function(){this.modals=!1},ok:function(){this.defaults.goodsList.list.push(this.tempGoods)},bindDelete:function(t){this.defaults.goodsList.list.splice(t,1)}}},r=l,d=(e("ed7e"),e("2877")),f=Object(d["a"])(r,n,a,!1,null,"2ed05ad9",null);i["default"]=f.exports},a4ff:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-config"},[t._l(t.rCom,(function(i,n){return e("div",{key:n},[e(i.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:t.configObj,configNme:i.configNme,index:t.activeIndex,num:i.num}})],1)})),t._v(" "),e("rightBtn",{attrs:{activeIndex:t.activeIndex,configObj:t.configObj}})],2)},a=[],o=e("db72"),s=e("fd0b"),c=e("befa7"),l=e("2f62"),r={name:"c_banner",componentsName:"home_banner",components:Object(o["a"])(Object(o["a"])({},s["a"]),{},{rightBtn:c["a"]}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:s["a"].c_set_up,configNme:"setUp"}]}},watch:{num:function(t){var i=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[t]));this.configObj=i},configObj:{handler:function(t,i){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:t})},deep:!0},"configObj.setUp.tabVal":{handler:function(t,i){var e=[this.rCom[0]];if(0==t){var n=[{components:s["a"].c_menu_list,configNme:"swiperConfig"}];this.rCom=e.concat(n)}else{var a=[{components:s["a"].c_txt_tab,configNme:"imgConfig"},{components:s["a"].c_txt_tab,configNme:"docConfig"},{components:s["a"].c_txt_tab,configNme:"txtStyle"},{components:s["a"].c_is_show,configNme:"isShow"},{components:s["a"].c_bg_color,configNme:"bgColor"},{components:s["a"].c_slider,configNme:"lrConfig"},{components:s["a"].c_slider,configNme:"mbConfig"}];this.rCom=e.concat(a)}},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){var i=JSON.parse(JSON.stringify(t.$store.state.mobildConfig.defaultArray[t.num]));t.configObj=i}))},methods:Object(o["a"])({handleSubmit:function(t){var i={};i.activeIndex=this.activeIndex,i.data=this.configObj,this.add(i)}},Object(l["c"])({add:"mobildConfig/UPDATEARR"}))},d=r,f=(e("563a"),e("2877")),u=Object(f["a"])(d,n,a,!1,null,"b21cd35c",null);i["default"]=u.exports},a522:function(t,i,e){},a938:function(t,i,e){"use strict";e("608a")},ac63:function(t,i,e){"use strict";e("9783")},aed5:function(t,i,e){"use strict";e("8f88")},b22c:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAABICAMAAAAJfloJAAAAZlBMVEUAAAAoKCgoKCgoKCggICAnJycoKCgnJycoKCgoKCglJSUoKCgnJycoKCgnJycnJycnJycnJycmJib/UAD/VAD/VQD/VQD/VQD/VAD/VQD/VAAoKCj/VAD/UwD/VQD/UAAoKCj/VQA2qWcvAAAAIHRSTlMAP4DAD6gg8KBgMOBwHrCQ0M9QEJ3PP9BAtXVf8FAwIMESzpgAAAVLSURBVHja7dvpmpsgFAbgw1IEtMbYfc/c/022k0Y/9RAHcGmmj9+/nFii7yCCWjpy5MiRVfK2CyEaxdCWml5nvLjF00wutyhCRKjoL11eK4jCYSWC6EsXQqqu1tAgTuZHTHe0pKSIb7aUu4BQ2VUFararWfYjmZHokLdUdMuLmEqVaGN7EIt97nPuam5tEKq7SqFvlfQ2SIt70ctBXFetA6eRWR3Eo5QPIu5uI5aDGD6AtjjRVwRho8iDglDDzo9TVzltAOL6mntQkH4PLRtC/AYgGMXP/w7Eq2v68ez6Ce2+kACIiEoVBDlhhIoGKZStBMWA3I61wL8cR95vYAkIRUUEQcykKMcp+6/V80eH2WYUyEsH9WZPECO6GA6CNLOTM8X+DRJx2X0oEIljmQPBmeQjQBLzGkEMZqsHyPg6ox4MxMjn9AUrr2GV1UFa2eUfgczPQ9g1nFXWBkFWBsGA2w/cVuDzliBGBqJGV0y3NwhvBY2ojUFihh8VAvG9njlAnqOLyULhkhKVDuIeHGQwzphdQMSjgwy6SCaIiFkCFq8GZNhFNgS57A3iVSBYl5V/Pp3CIJinnv4nkAXzEIu7qgfIuOqeG52mQDdj353SQcw/APl4TQQIW8okz0PSQSgWpLV+HZB3H56u+RIBwm6ZPQjIuaoLHG0+CDy+f3l6+hUL4tdZ/mN0rtl3Ph4EWQ6C/vGVvjx9jgXBJOG8AITfvg8+sd4VBOfL9/dPCSB1X9YLQCzOvHQQL76d/tYQ4cU16MBChCuagcADiQep8LddAHKeuTXbYjocBLmEItQlMoKBwCMHRIsuJh9EY4I3MwGQ8SDKLACBB/Ju3xtEGELaGZAqEqSwnmgJCPd4T5kgRoxyxg1MgeDpDH+NoG8hML6IKJDSYaNcEO6RAGKG79HIvLU/zpj+Iut5NzNRIIpWAPnKPOJBBMrJIBg2wVB0NGwyTDuDwCMFBBu6XBCcFA0+YFqDL++DFHU1aXrhZffT0CMNxII6E0QXGDYxwJrpRNXeAWms86sv7t59gkcaCFryuSDV6B6CBg7OJ/zsHqtdiMAjHqRAO5kg5bjhBufMqEmxGwhE4BENoi9hEBlKEKSdvLon79z9oN1AIAKPKBC+0pBoNRQGwh+7oMVq3APVfiBdfvwkJHktU2eCCHQQ9DmcM2b4q49/C5GoRjULBHtSTV/CGc/q/TIQvxQEG7Rxr0OIPBDBSxYtArykHBCD/ckCwfrV4nsR98KMzgHBjhSGLfXkcAipUkA4d5kJgkYQmgNx+MUskJadMFpIbITvdQ4IRji7Hkg9C2KxHzkg6CBS1nhwgTYsDigHpIb3aiBiFqREMRNkJgKzHJ8H0vua1UBOke+pig1AJDlsnwPi0M3XApE0C4JlCCWB2CiQuu+AJgsEt2rbdUCUNCGmKvCLdRqIjAIpcL3JAnGoZYPwoHG0xM8YFwPSRoJA5HYF01kgpsAItD6ICoFUfc1EgJgSfndBCqVOEhuG7jyXAJnrDfoM/iQQEZFv5wti+BnT8Ak/S12gCT/9z5BudGfZ8nEdsYEvhCwAMvWoKQokO2XofRmAJDXBw5tR7Fj4S3icD92x0RuDyNADyDQQR1HBIjgM8hbHEpg3wWNbEIxwmv0RI0FqSgDx/Fj4o03e+QQ22hak8IGO7ZJArE4AcYTwvww/Fj8CKSraGKT0gZvlhU4AUS3FBh4BkMYEjqUQNASpDW0KUloRnJnYwWj/QlpN8YEHA2lc4FgaqWkAogTRLMjK8ey5/9qZPkUWfUasHjVEWE/BqC6eXl0sHTly5Mim+Q1ctf4XgVTfGAAAAABJRU5ErkJggg=="},b278:function(t,i,e){"use strict";e("3651")},b46e:function(t,i,e){"use strict";e("0d02")},b500:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"slider-box"},[e("div",{staticClass:"c_row-item"},[t.configData.title?e("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("el-col",{staticClass:"slider-box",attrs:{span:19}},[e("el-cascader",{attrs:{options:t.configData.list,placeholder:"请选择商品分类",props:{checkStrictly:!0,emitPath:!1},filterable:"",clearable:""},on:{change:t.sliderChange},model:{value:t.configData.activeValue,callback:function(i){t.$set(t.configData,"activeValue",i)},expression:"configData.activeValue"}})],1)],1)])},a=[],o={name:"c_cascader",props:{configObj:{type:Object},configNme:{type:String},number:{type:null}},data:function(){return{defaults:{},configData:{},timeStamp:""}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0},number:function(t){this.timeStamp=t}},methods:{sliderChange:function(t){var i=window.localStorage;this.configData.activeValue=t||i.getItem(this.timeStamp),this.$emit("getConfig",{name:"cascader",values:t})}}},s=o,c=e("2877"),l=Object(c["a"])(s,n,a,!1,null,"77efd930",null);i["default"]=l.exports},b604:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-page"},[e("div",{staticClass:"home-hot",style:{marginTop:t.slider+"px",background:t.boxColor}},[t.isOne?e("div",{staticClass:"bd"},t._l(t.hotList,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"left"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(i.info[0].value))]),t._v(" "),e("div",{staticClass:"des"},[t._v(t._s(i.info[1].value))])])]),t._v(" "),e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])])])})),0):e("div",{staticClass:"bd"},t._l(t.hotList,(function(i,n){return e("div",{key:n,staticClass:"item one_item"},[e("div",{staticClass:"left"},[e("div",[e("div",{staticClass:"title"},[t._v(t._s(i.info[0].value))]),t._v(" "),e("div",{staticClass:"des"},[t._v(t._s(i.info[1].value))])])]),t._v(" "),e("div",{staticClass:"img-box"},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})])])])})),0)])])},a=[],o=e("db72"),s=e("2f62"),c={name:"home_hot",cname:"推荐组",icon:"icontuijianzu",configName:"c_home_hot",type:0,defaultName:"activeParty",props:{index:{type:null},num:{type:null}},computed:Object(o["a"])({},Object(s["d"])("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(t,i){this.setConfig(t)},deep:!0},num:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[t];this.setConfig(e)},deep:!0},defaultArray:{handler:function(t,i){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"activeParty",timestamp:this.num,setUp:{tabVal:"0"},tabConfig:{title:"展示样式",tabVal:0,type:1,tabList:[{name:"单行展示",icon:"icondanhang"},{name:"多行展示",icon:"iconduohang"}]},menuConfig:{title:"最多可添加4个板块,图片建议尺寸140 * 140px;鼠标拖拽左侧圆点可调整板块顺序",maxList:4,list:[{img:"",info:[{title:"标题",value:"首发新品",tips:"选填,不超过4个字",max:4},{title:"简介",value:"新品抢先购",tips:"选填,不超过6个字",max:6},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"热门榜单",tips:"选填,不超过4个字",max:4},{title:"简介",value:"剁手必备指南",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"精品推荐",tips:"选填,不超过4个字",max:4},{title:"简介",value:"发现品质好物",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"促销单品",tips:"选填,不超过4个字",max:4},{title:"简介",value:"惊喜折扣价",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},themeColor:{title:"主题颜色",name:"themeColor",default:[{item:"#fc3c3e"}],color:[{item:"#fc3c3e"}]},bgColor:{title:"标签背景颜色",name:"bgColor",default:[{item:"#F62C2C"},{item:"#F96E29"}],color:[{item:"#F62C2C"},{item:"#F96E29"}]},boxColor:{title:"背景颜色",name:"boxColor",default:[{item:"#ffe5e3"}],color:[{item:"#f5f5f5"}]},mbConfig:{title:"页面间距",val:0,min:0}},slider:"",hotList:[],txtColor:"",bgColor:[],pageData:{},boxColor:"",isOne:0}},mounted:function(){var t=this;this.$nextTick((function(){t.pageData=t.$store.state.mobildConfig.defaultArray[t.num],t.setConfig(t.pageData)}))},methods:{setConfig:function(t){t&&t.mbConfig&&(this.slider=t.mbConfig.val,this.hotList=t.menuConfig.list,this.txtColor=t.themeColor.color[0].item,this.bgColor=t.bgColor.color,this.boxColor=t.boxColor.color[0].item,this.isOne=t.tabConfig.tabVal)}}},l=c,r=(e("c42f"),e("2877")),d=Object(r["a"])(l,n,a,!1,null,"91fd3b52",null);i["default"]=d.exports},b90c:function(t,i,e){"use strict";e("47b0")},bb6a:function(t,i,e){"use strict";e("a522")},bc48:function(t,i,e){},bd5a:function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.configData?e("div",{staticClass:"box"},[e("WangEditor",{staticStyle:{width:"100%",height:"60%"},attrs:{content:t.configData.val},on:{editorContent:t.getEditorContent}})],1):t._e()},a=[],o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.monacoBox,expression:"!monacoBox"}]},[e("div",{ref:"wang-editor",staticClass:"wang-editor"})]),t._v(" "),t.monacoBox?e("div",[e("el-button",{staticClass:"bottom",attrs:{type:"primary"},on:{click:t.getHtmlint}},[t._v("可视化界面")]),t._v(" "),e("monaco",{attrs:{value:t.newHtml},on:{change:t.changeValue}})],1):t._e(),t._v(" "),e("el-dialog",{attrs:{visible:t.modalVideo,width:"1024px",title:"上传视频"},on:{"update:visible":function(i){t.modalVideo=i}}},[e("uploadVideo",{attrs:{isDiy:!0},on:{getVideo:t.getvideo}})],1)],1)},s=[],c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"code_box",staticClass:"text"})},l=[],r=e("8ea9"),d={data:function(){return{monacoInstance:null}},props:{value:{type:String,default:""}},mounted:function(){this.seteditor()},methods:{setValue:function(t){},seteditor:function(){var t=this;this.monacoInstance=r["a"].create(this.$refs.code_box,{value:this.value,theme:"vs",language:"html",readOnly:!1}),this.monacoInstance.onDidChangeModelContent((function(){t.$emit("change",t.monacoInstance.getValue())}))}},beforeDestroy:function(){this.monacoInstance.dispose(),this.monacoInstance=null}},f=d,u=(e("f1fd"),e("2877")),m=Object(u["a"])(f,c,l,!1,null,"f155c83a",null),g=m.exports,p=e("6fad"),h=e.n(p),v=e("d225"),b=e("b0b4"),C=e("4e2b"),_=e("c603"),y=e("2b0e"),x=new y["default"],w=(h.a.$,h.a.BtnMenu),S=(h.a.DropListMenu,h.a.PanelMenu,h.a.DropList,h.a.Panel,h.a.Tooltip,function(t){Object(C["a"])(e,t);var i=Object(_["a"])(e);function e(t){Object(v["a"])(this,e),t;var n=h.a.$('
\n
\n
');return i.call(this,n,t)}return Object(b["a"])(e,[{key:"clickHandler",value:function(){x.$emit("Video")}},{key:"tryChangeActive",value:function(){this.active()}}]),e}(w)),A=(h.a.$,h.a.BtnMenu),O=(h.a.DropListMenu,h.a.PanelMenu,h.a.DropList,h.a.Panel,h.a.Tooltip,function(t){Object(C["a"])(e,t);var i=Object(_["a"])(e);function e(t){Object(v["a"])(this,e),t;var n=h.a.$('
\n
HTML
\n
');return i.call(this,n,t)}return Object(b["a"])(e,[{key:"clickHandler",value:function(){x.$emit("Html")}},{key:"tryChangeActive",value:function(){this.active()}}]),e}(A)),k=e("b5b8"),j=e("4553"),D={name:"Index",components:{uploadPictures:k["default"],uploadVideo:j["default"],monaco:g},props:{content:{type:String,default:""}},data:function(){return{monacoBox:!1,value:"",modalPic:!1,isChoice:"多选",picTit:"danFrom",img:"",modalVideo:!1,editor:null,uploadSize:2,video:"",newHtml:""}},computed:{initEditor:function(){return this.content&&this.editor}},watch:{initEditor:function(t){t&&this.editor.txt.html(this.content)}},created:function(){},mounted:function(){var t=this;this.createEditor(),x.$on("Video",(function(i){t.getvideoint()})),x.$on("Html",(function(i){t.getHtmlint()}))},methods:{changeValue:function(t){this.newHtml=t,this.$emit("editorContent",t),this.$emit("input",t)},getPic:function(t){var i=this;i.img=t.att_dir,i.modalPic=!1,this.editor.cmd.do("insertHTML",''))},getimg:function(){var t=this;t.isChoice="多选",t.$modalUpload((function(i){i.map((function(i){t.editor.cmd.do("insertHTML",''))}))}))},getvideoint:function(){this.modalVideo=!0},getHtmlint:function(){this.monacoBox=!this.monacoBox,this.value=this.newHtml,this.monacoBox||this.editor.txt.html(this.newHtml)},getPicD:function(t){var i=this,e=this;e.modalPic=!1,t.map((function(t){i.editor.cmd.do("insertHTML",''))}))},getvideo:function(t){var i=this;i.modalVideo=!1,this.video=t,this.editor.cmd.do("insertHTML",'