diff --git a/admin-vue/src/views/order/Index.vue b/admin-vue/src/views/order/Index.vue index a47bd75..4102851 100644 --- a/admin-vue/src/views/order/Index.vue +++ b/admin-vue/src/views/order/Index.vue @@ -81,6 +81,25 @@ >{{ item.name }} + + + 全部 + 未提交 + 发放中 + 发放成功 + 发放失败 + + + + + 全部 + 未退款 + 退款中 + 已退款 + 退款失败 + 待人工确认 + + @@ -133,10 +152,10 @@ + + diff --git a/mobile-uniapp/utils/request/core/request.js b/mobile-uniapp/utils/request/core/request.js index 2c0fdd6..bfeddd1 100644 --- a/mobile-uniapp/utils/request/core/request.js +++ b/mobile-uniapp/utils/request/core/request.js @@ -81,9 +81,7 @@ export default class request { data.data.referrer_id = uni.getStorageSync('uid'); data.data.latitude = uni.getStorageSync('latitude'); data.data.longitude = uni.getStorageSync('longitude'); - data.data.province = uni.getStorageSync('province'); - data.data.city = uni.getStorageSync('city'); - data.data.district = uni.getStorageSync('district'); + // 商品/分类不再按省份过滤,省市区不再随请求下发(原先后端会据此过滤油券) // 请求数据 let requestInfo, // 是否运行过请求开始钩子 diff --git a/server-tp6/app/api/controller/Order.php b/server-tp6/app/api/controller/Order.php index 4bfbc6e..9935e55 100644 --- a/server-tp6/app/api/controller/Order.php +++ b/server-tp6/app/api/controller/Order.php @@ -24,6 +24,10 @@ use app\store\model\Company as CompanyModel; use app\store\model\Express as ExpressModel; use app\common\enum\order\PayType as OrderPayTypeEnum; use app\store\model\order\QrCode as QrCodeModel; +use app\common\model\qyt\Enterprise as EnterpriseModel; +use app\common\service\QytOil; +use app\api\service\User as UserService; +use think\facade\Db; use cores\exception\BaseException; use think\facade\Request; use think\response\Json; @@ -309,9 +313,77 @@ class Order extends Controller */ public function qrCode(): Json { - // 企油通改造:小程序油品发放/核销链路已停用(上游定聚已下线)。 - // 保留接口避免小程序端报错,统一返回提示;如需恢复请改走 QytOil。 - return $this->renderError('该功能已停用'); + $orderGoodsId = (int)$this->request->param('orderGoodsId'); + [$order, $error] = $this->findOilOrder($orderGoodsId); + if ($error !== '') { + return $this->renderError($error); + } + // 免登链接要带本单企业的 creditcode(营业执照号),把登录固定到该企业 + $enterprise = EnterpriseModel::detail((int)$order['qyt_enterprise_id']); + if (!$enterprise) { + return $this->renderError('本单绑定的企油通企业不存在,无法获取加油地址'); + } + if ($enterprise['status'] !== 'approved') { + return $this->renderError('企业尚未通过企油通审核,暂时无法加油'); + } + $h5Url = QytOil::forEnterprise($enterprise)->h5Url((string)$order['mobile']); + if (!$h5Url) { + return $this->renderError('获取加油地址失败,请稍后重试'); + } + // 留痕 + (new QrCodeModel())->add([ + 'oilCardNo' => $order['oilCardNo'], + 'qrCode' => $h5Url, + 'amount' => $order['goods_price'], + 'order_id' => (int)$order['mall_order_id'], + 'user_id' => (int)$order['user_id'], + 'store_id' => (int)$order['store_id'], + ]); + return $this->renderSuccess(['qrCode' => $h5Url], '提交成功'); + } + + /** + * 按订单商品行找到对应的企油通发放单,并校验是否还能加油 + * + * 小程序单在支付成功后由 MallOil::create 建了一条 yoshop_partners_order + * (source='mall',mall_order_goods_id 指回这里的订单商品行)。 + * + * @param int $orderGoodsId + * @return array [发放单, 错误信息] + * @throws BaseException + */ + private function findOilOrder(int $orderGoodsId): array + { + if ($orderGoodsId <= 0) { + return [null, '缺少参数 orderGoodsId']; + } + $userId = (int)UserService::getCurrentLoginUserId(); + $orderGoods = Db::name('order_goods')->where('order_goods_id', '=', $orderGoodsId)->find(); + if (!$orderGoods) { + return [null, '未找到订单商品']; + } + // 越权校验:只能取自己订单的加油地址 + if ((int)$orderGoods['user_id'] !== $userId) { + return [null, '未找到订单商品']; + } + $order = Db::name('partners_order') + ->where('source', '=', 'mall') + ->where('mall_order_goods_id', '=', $orderGoodsId) + ->find(); + if (!$order) { + return [null, '该订单还没有发放记录']; + } + if ((int)$order['oil_status'] !== 1) { + return [null, '油费还在发放中,请稍后再试']; + } + if ((int)$order['refund_status'] === 2) { + return [null, '该订单已退款,不能再加油']; + } + // 一单可以分多次加油:没加完的单继续给加油地址 + if ((float)$order['used_amount'] + 0.005 >= (float)$order['total_price']) { + return [null, '该订单金额已全部加油']; + } + return [$order, '']; } /** @@ -321,9 +393,10 @@ class Order extends Controller */ public function qrCodeImg(): Json { - // 企油通改造:小程序油品发放/核销链路已停用(上游定聚已下线)。 - // 保留接口避免小程序端报错,统一返回提示;如需恢复请改走 QytOil。 - return $this->renderError('该功能已停用'); + // 企油通给的是 H5 免登链接,没有二维码图片接口。 + // 本商城跑在 H5(微信内置浏览器)下,走的是 qrCode + webview; + // 本方法只在微信小程序环境下被调用,暂不支持。 + return $this->renderError('请在微信或浏览器中打开加油链接'); } public function getBase64($url){ diff --git a/server-tp6/app/api/controller/QytNotify.php b/server-tp6/app/api/controller/QytNotify.php index caf0887..1f70e1b 100644 --- a/server-tp6/app/api/controller/QytNotify.php +++ b/server-tp6/app/api/controller/QytNotify.php @@ -2,8 +2,13 @@ // +---------------------------------------------------------------------- // | 企油通 · 回调接收 // +---------------------------------------------------------------------- -// | 入口:public/qytconsume.php -> /qytNotify/consume -// | 对应企油通 7.10「运单加油明细推送(异步)」,我方须返回 {"code":"100","msg":"Success"} +// | 入口: +// | public/qytconsume.php -> /qytNotify/consume 企油通 7.10「运单加油明细推送」 +// | public/qytwaybill.php -> /qytNotify/waybill 企油通 3.10「发放结果通知」 +// | +// | 两个回调都是 multipart/form-data,业务参数在表单字段里(JSON 字符串): +// | 7.10 -> params 我方须返回 {"code":"100","msg":"Success"} +// | 3.10 -> data + sign 我方只要返回 HTTP 2xx 即算成功,响应体不做要求 // +---------------------------------------------------------------------- declare (strict_types=1); @@ -70,4 +75,78 @@ class QytNotify extends Controller return json(['code' => '100', 'msg' => 'Success']); } + + /** + * 3.10 发放结果通知(运单油费 / 企业福利) + * + * 企油通把 7.7 提交的批次处理完后(全部成功 / 部分成功 / 处理失败)主动推过来, + * 一个批次一条,内容与 7.8 查询结果一致。接上之后就不必再靠轮询等结果。 + * + * 约定(见文档 3.10): + * · form-data,字段 data(JSON 字符串)+ sign + * · scene 区分场景:oil=运单油费下发(7.7),welfare=员工福利下发(9.3) + * · 接收端返回 HTTP 2xx 即视为成功;非 2xx 或 5 秒内无响应会重试,最多 5 次 + * · 同一批次可能收到多次(重试 / 批次重新提交),必须幂等 + * · 明细最多约 1 万条,报文可能很大 + * + * 所以这里只做「尽快收下、丢进队列、立刻回 200」,真正的状态跃迁交给 + * callback:queue 异步做,避免大报文处理超过上游 5 秒超时导致无谓重试。 + * + * @return \think\response\Json + */ + public function waybill() + { + $request = Request::instance(); + // ⚠️ 必须直接读 $_POST:cores\Request 给所有入参挂了全局过滤器 + // ['my_trim','my_htmlspecialchars','filter_emoji'],走 $request->post() 取到的 + // JSON 引号会被转义成 ",json_decode 必然失败(通知会被静默丢掉) + $formData = isset($_POST['data']) ? trim((string) $_POST['data']) : ''; + $sign = isset($_POST['sign']) ? trim((string) $_POST['sign']) : ''; + $raw = $request->getContent(); + + $payload = $formData !== '' ? $formData : $raw; + $qyt = new QytOil(); + // 明细可能上万条,日志只留头部,完整报文靠 batch_no 去企油通后台对 + $qyt->saveLog('3.10 发放结果通知原文[' . $request->contentType() . '](截断):' + . mb_substr($payload, 0, 4000) . (mb_strlen($payload) > 4000 ? ' …(已截断)' : '')); + + $data = json_decode($payload, true); + // 兜底:若上游或中间层做过 HTML 转义,反转义后再解析一次 + if (!is_array($data) && strpos($payload, '"') !== false) { + $data = json_decode(htmlspecialchars_decode($payload, ENT_QUOTES), true); + } + // 兼容:直接推 JSON body 且外层包了一层 {data: ..., sign: ...} + if (is_array($data) && isset($data['data'])) { + $sign === '' && $sign = (string) ($data['sign'] ?? ''); + $data = is_string($data['data']) ? json_decode($data['data'], true) : $data['data']; + } + + if (!is_array($data) || empty($data['batch_no'])) { + $qyt->saveLog('3.10 发放结果通知解析失败或缺少 batch_no,已忽略'); + // 仍然回 2xx:报文我方解析不了,让上游重试 5 次也没有意义, + // 这类单由 7.8 轮询兜底(轮询并没有下线) + return json(['code' => '100', 'msg' => 'Success']); + } + + // TODO 验签(对 data 原串签名,规则见开发指南 2.5,待对接人给到平台公钥与算法确认) + // if ($sign !== '' && !(new QytCrypto())->verifyNotify($payload, $sign)) { + // $qyt->saveLog('3.10 发放结果通知验签失败 batch_no=' . $data['batch_no']); + // return json(['code' => '99', 'msg' => 'sign error']); + // } + + // 只处理运单油费(7.7)。员工福利(9.3)我方没有对接,收下回 2xx 即可, + // 否则上游会按失败重试 5 次。 + $scene = (string) ($data['scene'] ?? 'oil'); + if ($scene !== 'oil') { + $qyt->saveLog('3.10 发放结果通知 scene=' . $scene . '(非运单油费),已忽略 batch_no=' . $data['batch_no']); + return json(['code' => '100', 'msg' => 'Success']); + } + + (new QueueService())->push('callback_queue', json_encode([ + 'header' => ['method' => 'qyt_waybill_result'], + 'res' => $data, + ], 320)); + + return json(['code' => '100', 'msg' => 'Success']); + } } diff --git a/server-tp6/app/api/controller/User.php b/server-tp6/app/api/controller/User.php index be398f5..9f8c691 100644 --- a/server-tp6/app/api/controller/User.php +++ b/server-tp6/app/api/controller/User.php @@ -17,6 +17,7 @@ use app\api\model\User as UserModel; use app\api\model\UserCoupon as UserCouponModel; use app\api\service\User as UserService; use cores\exception\BaseException; +use think\facade\Db; /** * 用户管理 @@ -76,6 +77,46 @@ class User extends Controller return $this->renderSuccess('恭喜您,手机号绑定成功'); } + /** + * 实名信息(姓名 / 身份证号 / 车牌号) + * + * 分油实名制:上游分油前做「姓名 + 身份证号」二要素认证,所以下单前必须补全。 + * 车牌号只在本地留存与后台展示,不上送上游。 + * @return Json + * @throws BaseException + */ + public function realname(): Json + { + $userInfo = UserService::getCurrentLoginUser(true); + return $this->renderSuccess([ + 'realname' => [ + 'realName' => (string)$userInfo['real_name'], + 'idCard' => (string)$userInfo['id_card'], + 'plateNo' => (string)$userInfo['plate_no'], + // 身份证号已用于分油后不允许再改(上游按身份证号累计司机额度) + 'idCardLocked' => (string)$userInfo['id_card'] !== '' && Db::name('partners_order') + ->where('user_id', '=', (int)$userInfo['user_id']) + ->where('source', '=', 'mall') + ->count() > 0, + 'isReady' => UserModel::isRealnameReady($userInfo), + ] + ]); + } + + /** + * 保存实名信息 + * @return Json + * @throws BaseException + */ + public function saveRealname(): Json + { + $model = new UserModel; + if (!$model->realname($this->postForm())) { + return $this->renderError($model->getError() ?: '保存失败'); + } + return $this->renderSuccess('保存成功'); + } + /** * 修改个人信息(头像昵称) * @return Json diff --git a/server-tp6/app/api/model/User.php b/server-tp6/app/api/model/User.php index ebbd0ce..6d62fe9 100644 --- a/server-tp6/app/api/model/User.php +++ b/server-tp6/app/api/model/User.php @@ -16,6 +16,7 @@ use app\common\enum\user\balanceLog\Scene as SceneEnum; use app\common\library\helper; use app\store\model\user\BalanceLog as BalanceLogModel; use think\facade\Cache; +use think\facade\Db; use app\api\service\User as UserService; use app\api\model\UserOauth as UserOauthModel; use app\common\model\User as UserModel; @@ -112,6 +113,75 @@ class User extends UserModel return $userInfo->save($data); } + /** + * 保存实名信息(姓名 / 身份证号 / 车牌号) + * + * 分油是实名制的:上游在分油前会做「姓名 + 身份证号」二要素认证, + * 所以这三项必须在下单前补全。车牌号只在本地留存与后台展示,不上送上游。 + * + * @param array $form + * @return bool + * @throws BaseException + */ + public function realname(array $form): bool + { + $realName = trim((string)($form['realName'] ?? '')); + $idCard = strtoupper(trim((string)($form['idCard'] ?? ''))); + $plateNo = strtoupper(trim((string)($form['plateNo'] ?? ''))); + + if ($realName === '') { + $this->error = '请填写真实姓名'; + return false; + } + // 中文姓名 2~20 字,允许少数民族姓名里的间隔号 + if (!preg_match('/^[\x{4e00}-\x{9fa5}][\x{4e00}-\x{9fa5}·]{1,19}$/u', $realName)) { + $this->error = '姓名格式不正确,请填写身份证上的中文姓名'; + return false; + } + if (!preg_match('/^\d{17}[\dX]$/', $idCard)) { + $this->error = '身份证号格式不正确(18位)'; + return false; + } + // 省份简称 + 城市字母(不含 I/O,避免与 1/0 混淆) + 5~7 位序号(含新能源 8 位车牌) + if (!preg_match('/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,6}$/u', $plateNo)) { + $this->error = '车牌号格式不正确'; + return false; + } + + // 当前登录的用户信息 + $userInfo = UserService::getCurrentLoginUser(true); + // 身份证号一旦用于分油就不允许再改:上游按身份证号累计司机额度, + // 改了会导致历史订单的额度与司机对不上。姓名/车牌可以改。 + if ((string)$userInfo['id_card'] !== '' && (string)$userInfo['id_card'] !== $idCard) { + $used = Db::name('partners_order') + ->where('user_id', '=', (int)$userInfo['user_id']) + ->where('source', '=', 'mall') + ->count(); + if ($used > 0) { + $this->error = '身份证号已用于分油,不能修改,请联系客服'; + return false; + } + } + + return $userInfo->save([ + 'real_name' => $realName, + 'id_card' => $idCard, + 'plate_no' => $plateNo, + ]) !== false; + } + + /** + * 实名信息是否已补全(下单前的必要条件) + * @param array|static $user + * @return bool + */ + public static function isRealnameReady($user): bool + { + return trim((string)($user['real_name'] ?? '')) !== '' + && trim((string)($user['id_card'] ?? '')) !== '' + && trim((string)($user['plate_no'] ?? '')) !== ''; + } + /** * 验证绑定的手机号 * @param array $data diff --git a/server-tp6/app/api/service/order/Checkout.php b/server-tp6/app/api/service/order/Checkout.php index 9f1f440..afc9754 100644 --- a/server-tp6/app/api/service/order/Checkout.php +++ b/server-tp6/app/api/service/order/Checkout.php @@ -370,9 +370,30 @@ class Checkout extends BaseService 'balance' => $this->user['balance'], 'points' => $this->user['points'], 'address_id' => $this->user['address_id'], + // 实名信息(分油实名制,下单前必须补全):结算页据此拦截并跳去补全 + 'real_name' => (string)$this->user['real_name'], + 'id_card' => (string)$this->user['id_card'], + 'plate_no' => (string)$this->user['plate_no'], + 'isRealnameReady' => UserModel::isRealnameReady($this->user), + 'hasOilGoods' => $this->hasOilGoods(), + 'needRealname' => $this->hasOilGoods() && !UserModel::isRealnameReady($this->user), ]; } + /** + * 本次结算是否包含油券商品(oilCardType = zsy_ticket) + * 油券要走企油通分油,必须有姓名/身份证号/车牌号 + */ + private function hasOilGoods(): bool + { + foreach ($this->goodsList as $goods) { + if (($goods['oilCardType'] ?? '') === 'zsy_ticket') { + return true; + } + } + return false; + } + /** * 当前用户可用的优惠券列表 * @param float $orderTotalPrice 总金额 @@ -757,6 +778,12 @@ class Checkout extends BaseService return false; } } + // 油券商品要走企油通分油(实名制:上游做姓名+身份证号二要素认证), + // 下单前必须补全实名信息。结算页已拦截,这里是服务端兜底。 + if ($this->hasOilGoods() && !UserModel::isRealnameReady($this->user)) { + $this->error = '请先完善姓名、身份证号和车牌号后再下单'; + return false; + } return true; } diff --git a/server-tp6/app/api/service/order/PaySuccess.php b/server-tp6/app/api/service/order/PaySuccess.php index 07ca7d7..c8e8f16 100644 --- a/server-tp6/app/api/service/order/PaySuccess.php +++ b/server-tp6/app/api/service/order/PaySuccess.php @@ -18,6 +18,7 @@ use app\common\lock\RedisLock; use app\common\model\Coupon; use app\common\service\SybOil; use app\common\service\IdingjuOil; +use app\common\service\MallOil; use app\store\model\Company as CompanyModel; use app\store\model\Coupon as CouponModel; use app\store\model\GoodsCoupon as GoodsCouponModel; @@ -108,15 +109,6 @@ class PaySuccess extends BaseService } // 获取订单详情 $detail = OrderModel::getUserOrderDetail((int)$this->model['order_id']); - // 触发分油接口 - $shareStatus = $this->shareOil($detail); - if (!$shareStatus) { - // 记录日志 - log_record(['name' => '分油失败', [ - 'order_id' => $this->model['order_id'], - ]]); - // return false; - } // 事务处理 $this->model->transaction(function () use ($payType, $payData, $detail) { // 更新订单状态 @@ -126,6 +118,16 @@ class PaySuccess extends BaseService // 记录订单支付信息 $this->updatePayInfo($payType); }); + // 触发分油/发券(放在事务之后:企油通发放是真金白银,必须等订单确实置为已支付再发, + // 否则事务回滚会出现「订单未支付但油费已下发」) + $shareStatus = $this->shareOil($detail); + if (!$shareStatus) { + // 记录日志;不影响支付成功的结果,发放失败由 7.8 判定后自动退回用户余额 + log_record(['name' => '分油失败', [ + 'order_id' => $this->model['order_id'], + 'error' => $this->error, + ]]); + } return true; } @@ -250,62 +252,30 @@ class PaySuccess extends BaseService } } + /** + * 支付成功后的商品发放 + * · 油券(zsy_ticket) -> 建企油通发放单,由 partners:queue 调 7.7 下发 + * · 优惠券(coupon) -> 直接发券(原逻辑不变) + * + * 返回 false 只用于写一条「分油失败」日志,不阻断支付成功:用户已经付过款, + * 订单必须正常置为已支付。发放失败由 7.8 判定后自动退回用户余额,或后台「重新发放」。 + */ private function shareOil($order): bool { - $IdingjuOil = new IdingjuOil(); + $ok = true; + // 下单用户(含实名信息:姓名/身份证号/车牌号,结算时已校验必填) + $user = Db::name('user')->where('user_id', (int)$order['user_id'])->find() ?: []; foreach ($order->goods as $goods) { /* @var GoodsModel $goods */ - // 企油通改造:小程序油品发放链路已停用,支付成功后不再触发上游分油(保留优惠券发放)。 - // 如需恢复小程序侧发放,改走 QytOil 并补齐司机三要素来源。 if ($goods['oilCardType'] == 'zsy_ticket') { - continue; - } - if($goods['oilCardType'] == 'zsy_ticket') { - $data['amount'] = $goods['total_price']; // 金额 - $company = CompanyModel::detail(['orgNo' => $this->getCompany($goods['goods_no'])]); - if (!$company) { - $this->error = '没有可用参数'; - return false; + // 企油通:一个油券商品行建一条发放单,金额取该行实付金额 + $res = MallOil::create($order->toArray(), $goods->toArray(), $user); + if (!$res['ok']) { + $this->error = $res['message']; + $goods->save(['oil_text' => mb_substr($res['message'], 0, 190)]); + $ok = false; } - try { - // 查找一个未被调用的用户 - $account = $this->processUserOrders($company['company_id']); - } catch (\Throwable $e) { - $this->error = $e->getMessage(); - return false; - } - - // 查询公司余额 - /*if ($data['amount'] > $company['balance']) { - $this->error = '公司余额不足'; - return false; - }*/ - // 对接平台接口 - $res = $IdingjuOil->oilOilCardShare([ - 'goodsNo'=>$goods['goods_no'], - 'amount'=>$data['amount'], - 'userNo'=>$account['userNo'], - 'mobile'=>$account['mobile'], - 'saleOrderNo'=>$goods['oilCardNo'], - 'oilCardType'=>$goods['oilCardType'] - ], $company); - //$res = json_decode('{"code":"00","message":"请求成功","errCode":null,"errMessage":null,"data":{"oilCardNo":null,"amount":100,"balance":null,"shareNo":"CDV2408021928160001"}}', true); - if ($res['code'] != 1) { - $this->error = ($res['errMessage'] ?? $res['message']); - return false; - } - - $item['account_id'] = $account['account_id']; - $item['userNo'] = $account['userNo']; - $item['mobile'] = $account['mobile']; - $item['company_id'] = $company['company_id']; - $item['shareNo'] = $res['data']['trade_no'] ?? ''; - $item['qrCode'] = $res['data']['useUrl'] ?? ''; - $item['oil_status_zsy'] = $res['data']['state'] ?? 0; - $item['oil_time'] = time(); - $item['oil_status'] = $item['oil_status_zsy'] == 2 ? 1 : 0; // 已发券 为1 - $goods->save($item); - } elseif($goods['oilCardType'] == 'coupon'){ + } elseif ($goods['oilCardType'] == 'coupon') { // 发放优惠券 $coupons = GoodsCouponModel::getCouponList($goods['goods_id'])->toArray(); if($coupons && is_array($coupons)) { @@ -319,7 +289,7 @@ class PaySuccess extends BaseService } } } - return true; + return $ok; } /** diff --git a/server-tp6/app/common.php b/server-tp6/app/common.php index 102c9d4..f955f9f 100644 --- a/server-tp6/app/common.php +++ b/server-tp6/app/common.php @@ -200,6 +200,26 @@ function runtime_root_path(): string return dirname(runtime_path()) . DIRECTORY_SEPARATOR; } +/** + * 上游对接日志(storelog)的统一目录 + * + * ⚠️ 不能用 runtime_path():多应用模式下 think-multi-app 会把运行时目录改写成 + * runtime/{应用名}/(vendor/topthink/think-multi-app/src/MultiApp.php::setApp 里的 + * setRuntimePath),于是同一条业务链路的日志会散到三个地方: + * CLI 常驻队列进程 runtime/storelog/ + * api 入口(回调接收) runtime/api/storelog/ + * store 后台操作 runtime/store/storelog/ + * 排查时极易找错目录(比如回调明明收到了,却在 CLI 那个目录里怎么都 grep 不到)。 + * 这里按项目根目录固定,所有进程写同一处。 + * + * 注:改动只影响新日志,历史日志仍留在原来的三个目录里。 + * @return string 带结尾分隔符的绝对路径 + */ +function store_log_path(): string +{ + return app()->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'storelog' . DIRECTORY_SEPARATOR; +} + /** * 写入日志 (使用tp自带驱动记录到runtime目录中) * @param mixed $value diff --git a/server-tp6/app/common/model/Goods.php b/server-tp6/app/common/model/Goods.php index d6d9dbb..985936e 100644 --- a/server-tp6/app/common/model/Goods.php +++ b/server-tp6/app/common/model/Goods.php @@ -237,15 +237,10 @@ class Goods extends BaseModel $query->join($GoodsCategoryRelName, "{$GoodsCategoryRelName}.goods_id = {$this->name}.goods_id"); // 设置分类ID条件 $query->where('goods_category_rel.category_id', '=', (int)$params['categoryId']); - }elseif(!empty($params['province']) && $params['location'] != 1){ - // 前端请求,没有分类则不展示商品 - - // 关联商品与分类关系记录表 - $GoodsCategoryRelName = (new GoodsCategoryRelModel)->getName(); - $query->join($GoodsCategoryRelName, "{$GoodsCategoryRelName}.goods_id = {$this->name}.goods_id"); - // 设置分类ID条件 - $query->where('goods_category_rel.category_id', '=', -1); } + // 原先这里有一条「带了 province 又没带分类 -> 强制返回空列表」的分支, + // 配合首页地图选城市使用。商品不再按省份强制过滤,该分支已移除: + // 没传 categoryId 就是查全部商品。 // 商品名称 !empty($params['goodsName']) && $filter[] = ['goods_name', 'like', "%{$params['goodsName']}%"]; // 商品编码 diff --git a/server-tp6/app/common/model/store/Setting.php b/server-tp6/app/common/model/store/Setting.php index c4f8745..b40dd6f 100644 --- a/server-tp6/app/common/model/store/Setting.php +++ b/server-tp6/app/common/model/store/Setting.php @@ -328,6 +328,8 @@ class Setting extends BaseModel 'h5_base_url' => '', // 7.15 落地页 'h5_app_id' => '', // 7.15 免登 appId 'consume_notify_url' => '', // 7.10 回调地址(仅记录,实际在企油通后台配) + 'waybill_notify_url' => '', // 3.10 发放结果通知地址(同上) + 'waybill_notify' => 0, // 3.10 发放结果通知是否已生效(开 -> 7.8 轮询退为安全网) 'log' => 1, // 是否记录详细请求/响应日志 ], ], diff --git a/server-tp6/app/common/service/IdingjuOil.php b/server-tp6/app/common/service/IdingjuOil.php index e975080..40c72d2 100644 --- a/server-tp6/app/common/service/IdingjuOil.php +++ b/server-tp6/app/common/service/IdingjuOil.php @@ -35,8 +35,8 @@ class IdingjuOil extends BaseService public function saveLogStore($data){ $years = date('Ym'); $day = date('Ymd'); - //设置路径目录信息 - $dir = runtime_path('storelog/').$years.'/'.$day; + //设置路径目录信息(store_log_path 保证 CLI / api / store 各进程写同一处,见 app/common.php) + $dir = store_log_path().$years.'/'.$day; //目录不存在就创建 $this->mk_dir_store($dir); $url = $dir.'/'.date('YmdH').'.txt'; diff --git a/server-tp6/app/common/service/MallOil.php b/server-tp6/app/common/service/MallOil.php new file mode 100644 index 0000000..a5fd2eb --- /dev/null +++ b/server-tp6/app/common/service/MallOil.php @@ -0,0 +1,390 @@ + 企油通发放 +// +---------------------------------------------------------------------- +// | 设计:小程序订单不另起一套企油通链路,而是在支付成功后为每个油券商品行 +// | 建一条 yoshop_partners_order(source='mall'),复用现有机器: +// | · partners:queue 7.7 运单油费下发 +// | · qyt:status 7.8 轮询发放结果 +// | · 7.10 消费回调 按 waybill_no_code 匹配,无需改动 +// | · QytRefund 7.17 查凭证 + 7.16 调低额度 +// | · QytInvoice 7.14 企业发票 +// | · QytDriver 司机档案 +// | +// | 两种来源的差异只有三处,全部收敛在本类: +// | 1. 额度:合作商单扣/补 partners.balance;商城单用户已付款,改退用户余额 +// | 2. 通知:合作商单 HTTP 回调下单平台;商城单没有下游,改回写 order_goods +// | 3. 建单:合作商单由开放接口 OilCard::share 建;商城单由 PaySuccess 建 +// +---------------------------------------------------------------------- +declare (strict_types=1); + +namespace app\common\service; + +use app\common\enum\user\balanceLog\Scene as SceneEnum; +use app\common\model\qyt\Enterprise as EnterpriseModel; +use think\facade\Db; + +class MallOil +{ + /** partners_order.source 取值 */ + const SOURCE_MALL = 'mall'; + const SOURCE_PARTNER = 'partner'; + + /** + * 是否小程序(商城)单 + * @param array|\think\Model $order partners_order 记录 + * @return bool + */ + public static function isMall($order): bool + { + return (string) ($order['source'] ?? self::SOURCE_PARTNER) === self::SOURCE_MALL; + } + + // ================================================================ + // 建单(支付成功后调用) + // ================================================================ + + /** + * 为一个油券商品行创建企油通发放单并投递 partners_queue + * + * 幂等:复用已有唯一键 uk_partner_saleorder(partners_id, partners_order_no), + * mall 行 partners_id=0、partners_order_no='M{订单号}-{order_goods_id}'。 + * 支付回调重入时唯一键冲突 -> 当作「已建过」返回原单,绝不重复发放。 + * + * @param array $order 商城订单(yoshop_order) + * @param array $goods 订单商品行(yoshop_order_goods) + * @param array $user 下单用户(含 real_name / id_card / plate_no) + * @return array ['ok' => bool, 'message' => string, 'order_id' => int] + */ + public static function create(array $order, array $goods, array $user): array + { + // 发放金额按油券面值(数量 x 单价),与改造前的口径一致; + // 用户实付(优惠券/积分抵扣后)另存 total_pay_price,退款回补余额时按它折算。 + $amount = round((float) $goods['total_price'], 2); + $paid = round((float) $goods['total_pay_price'], 2); + $paid > $amount && $paid = $amount; + if ($amount <= 0) { + return self::fail('商品金额为 0,不发放'); + } + + $mobile = trim((string) ($user['mobile'] ?? '')); + $name = trim((string) ($user['real_name'] ?? '')); + $idCard = strtoupper(trim((string) ($user['id_card'] ?? ''))); + $plateNo = strtoupper(trim((string) ($user['plate_no'] ?? ''))); + + // 两个支付通道都要求实名,缺一不可。结算时已拦截,这里是第二道闸。 + $missing = []; + $mobile === '' && $missing[] = '手机号'; + $name === '' && $missing[] = '姓名'; + $idCard === '' && $missing[] = '身份证号'; + if ($missing) { + return self::fail('缺' . implode('/', $missing) . ',无法发放'); + } + + // 本单使用的企油通企业:小程序没有合作商绑定关系,直接取默认企业 + $enterprise = EnterpriseModel::resolve(0); + if (!$enterprise) { + return self::fail('系统未配置可用的企油通企业,无法发放'); + } + + $saleOrderNo = 'M' . $order['order_no'] . '-' . $goods['order_goods_id']; + $exist = Db::name('partners_order') + ->where('partners_id', 0) + ->where('partners_order_no', $saleOrderNo) + ->find(); + if ($exist) { + // 已建过(支付回调重入):直接复用,并补投一次队列(下发是条件跃迁,重复投递安全) + self::push((int) $exist['order_id']); + return ['ok' => true, 'message' => '已存在发放单', 'order_id' => (int) $exist['order_id']]; + } + + $now = time(); + // 带上 order_goods_id(全局唯一)保证油卡编号不会撞号 + $oilCardNo = 'OIL' . $now . 'G' . (int) $goods['order_goods_id']; + $row = [ + 'province' => (string) ($goods['province'] ?? ''), + 'mobile' => $mobile, + 'driver_name' => $name, + 'id_card' => $idCard, + 'plate_no' => $plateNo, + // 企业与通道随单固化:之后切默认企业,在途单仍按下单时的企业发放 + 'qyt_enterprise_id' => (int) $enterprise['enterprise_id'], + 'passageway' => (string) $enterprise['passageway'], + 'oilCardType' => 'zsy_ticket', + 'oilCardNo' => $oilCardNo, + 'partners_order_no' => $saleOrderNo, + 'partners_id' => 0, + 'source' => self::SOURCE_MALL, + 'mall_order_id' => (int) $order['order_id'], + 'mall_order_goods_id' => (int) $goods['order_goods_id'], + 'user_id' => (int) $order['user_id'], + 'goods_id' => (int) $goods['goods_id'], + 'goods_name' => (string) $goods['goods_name'], + 'goods_no' => (string) $goods['goods_no'], + 'goods_price' => $amount, + 'total_num' => 1, + 'total_price' => $amount, + 'total_pay_price' => $paid, + 'order_status' => 10, + 'store_id' => (int) $order['store_id'], + 'create_time' => $now, + 'update_time' => $now, + ]; + + try { + $orderId = (int) Db::name('partners_order')->insertGetId($row); + } catch (\Throwable $e) { + if (strpos($e->getMessage(), 'Duplicate') !== false) { + $again = Db::name('partners_order')->where('partners_id', 0) + ->where('partners_order_no', $saleOrderNo)->find(); + if ($again) { + self::push((int) $again['order_id']); + return ['ok' => true, 'message' => '已存在发放单', 'order_id' => (int) $again['order_id']]; + } + } + self::log('商城单建发放单失败 order_goods=' . $goods['order_goods_id'] . ':' . $e->getMessage()); + return self::fail('建发放单失败:' . $e->getMessage()); + } + + // 把油卡编号写回订单商品行,小程序端与后台基础列继续按原字段展示 + Db::name('order_goods')->where('order_goods_id', (int) $goods['order_goods_id'])->update([ + 'oilCardNo' => $oilCardNo, + 'mobile' => $mobile, + 'oil_text' => '已提交发放', + ]); + + // 司机档案(按身份证号归档并标记信息冲突;内部吞异常,不影响主流程) + QytDriver::touch([ + 'order_id' => $orderId, + 'id_card' => $idCard, + 'driver_name' => $name, + 'mobile' => $mobile, + 'store_id' => (int) $order['store_id'], + ]); + + self::push($orderId); + return ['ok' => true, 'message' => '已提交发放', 'order_id' => $orderId]; + } + + // ================================================================ + // 额度回补(发放失败 / 退款成功) + // ================================================================ + + /** + * 按订单来源把钱退回原处: + * · 合作商单 -> 回补 partners.balance + * · 商城单 -> 回补下单用户余额并记一条余额流水 + * 只在状态跃迁胜出后调用,天然只执行一次。 + * + * @param array|\think\Model $order partners_order 记录 + * @param float $amount 金额(元) + * @param string $scene 场景描述,写进流水 + */ + public static function giveBack($order, float $amount, string $scene = '发放失败'): void + { + if ($amount <= 0) { + return; + } + if (!self::isMall($order)) { + PartnersBalance::refund( + (int) $order['partners_id'], + $amount, + (string) $order['partners_order_no'], + (int) $order['order_id'], + (int) $order['store_id'] + ); + self::log("{$scene}已回补合作商余额 order={$order['order_id']} amount={$amount}"); + return; + } + + $userId = (int) ($order['user_id'] ?? 0); + if ($userId <= 0) { + self::log("【告警】商城单缺少 user_id,无法退款 order={$order['order_id']} amount={$amount}"); + return; + } + // 退回余额按「用户实付 / 油券面值」折算:用过优惠券或积分抵扣时, + // 面值大于实付,按面值原额退会白送钱。全额发放失败时折算结果正好等于实付。 + $amount = self::toPaid($order, $amount); + if ($amount <= 0) { + return; + } + $money = self::money($amount); + try { + Db::transaction(function () use ($userId, $money, $amount, $order, $scene) { + Db::name('user')->where('user_id', $userId) + ->update(['balance' => Db::raw('`balance` + ' . $money)]); + Db::name('user_balance_log')->insert([ + 'user_id' => $userId, + 'scene' => SceneEnum::REFUND, + 'money' => round($amount, 2), + 'describe' => $scene . ':' . ($order['oilCardNo'] ?: $order['order_id']), + 'remark' => '', + 'store_id' => (int) $order['store_id'], + 'create_time' => time(), + ]); + }); + self::log("{$scene}已退回用户余额 order={$order['order_id']} user={$userId} amount={$amount}"); + } catch (\Throwable $e) { + // 退款失败必须人工介入:额度那边可能已经收回了 + self::log("【告警】商城单退回用户余额失败 order={$order['order_id']} user={$userId}" + . " amount={$amount}:" . $e->getMessage()); + } + } + + /** + * 扣减额度(后台「重新发放」用) + * 发放失败时额度已原路退回,重发必须重新扣一次: + * · 合作商单 -> 扣 partners.balance + * · 商城单 -> 扣下单用户余额(按实付折算) + * 两者都是 UPDATE ... WHERE balance >= amount,天然防并发超扣。 + * + * @return bool false=余额不足,未做任何变更 + */ + public static function take($order, float $amount, string $scene = '重新发放'): bool + { + if ($amount <= 0) { + return true; + } + if (!self::isMall($order)) { + $logId = PartnersBalance::deduct( + (int) $order['partners_id'], + $amount, + (string) $order['partners_order_no'], + (int) $order['order_id'], + (int) $order['store_id'] + ); + return $logId !== false; + } + + $userId = (int) ($order['user_id'] ?? 0); + if ($userId <= 0) { + return false; + } + $amount = self::toPaid($order, $amount); + if ($amount <= 0) { + return true; + } + $money = self::money($amount); + $affected = Db::name('user')->where('user_id', $userId) + ->where('balance', '>=', $amount) + ->update(['balance' => Db::raw('`balance` - ' . $money)]); + if (!$affected) { + return false; + } + try { + Db::name('user_balance_log')->insert([ + 'user_id' => $userId, + 'scene' => SceneEnum::CONSUME, + 'money' => -$amount, + 'describe' => $scene . ':' . ($order['oilCardNo'] ?: $order['order_id']), + 'remark' => '', + 'store_id' => (int) $order['store_id'], + 'create_time' => time(), + ]); + } catch (\Throwable $e) { + self::log('商城单扣款流水写入失败 order=' . $order['order_id'] . ':' . $e->getMessage()); + } + return true; + } + + /** 额度不足时的提示文案 */ + public static function notEnoughText($order): string + { + return self::isMall($order) + ? '下单用户余额不足(发放失败时已退回其余额),无法重新发放' + : '合作商余额不足,请先充值后再重发'; + } + + // ================================================================ + // 状态回写(代替合作商单的 HTTP 回调) + // ================================================================ + + /** + * 把发放单的状态同步回 yoshop_order_goods。 + * 小程序端的订单列表/详情、后台订单页的基础列都读 order_goods, + * 所以商城单不走 HTTP 通知,改为在同样的时机回写这张表。 + * + * @param array|\think\Model $order partners_order 记录 + * @param string $optType share_oil / add_oil / refund + */ + public static function syncGoods($order, string $optType = ''): void + { + $goodsId = (int) ($order['mall_order_goods_id'] ?? 0); + if (!self::isMall($order) || $goodsId <= 0) { + return; + } + try { + // 锁内重读发放单:调用方可能持有的是跃迁前的旧快照 + $fresh = Db::name('partners_order')->where('order_id', (int) $order['order_id'])->find(); + if (!$fresh) { + return; + } + $data = [ + 'oil_status' => (int) $fresh['oil_status'], + 'oil_status_zsy' => (int) $fresh['oil_status_zsy'], + 'oil_time' => (int) $fresh['oil_time'], + 'oil_text' => mb_substr((string) $fresh['oil_text'], 0, 190), + 'shareNo' => (string) $fresh['shareNo'], + 'use_status' => (int) $fresh['use_status'], + 'use_time' => (int) $fresh['use_time'], + 'use_text' => mb_substr((string) $fresh['use_text'], 0, 190), + // 一单可分多次加油:把累计值带到订单商品行,小程序端据此算剩余可加油金额 + 'used_amount' => (float) $fresh['used_amount'], + 'used_num' => (int) $fresh['used_num'], + 'refund_status' => (int) $fresh['refund_status'], + 'refund_amount' => (float) $fresh['refund_amount'], + ]; + // 发放失败时额度已原路退回用户余额,把这句一起告诉用户,省掉一轮客服询问 + if ((int) $fresh['oil_status_zsy'] === 3) { + $data['oil_text'] = mb_substr($fresh['oil_text'] . ',款项已退回账户余额', 0, 190); + } + // 已退款的单在小程序端不应再显示「可核销」 + if ((int) $fresh['refund_status'] === 2) { + $data['oil_text'] = mb_substr('已退款:' . $fresh['refund_text'], 0, 190); + } + Db::name('order_goods')->where('order_goods_id', $goodsId)->update($data); + } catch (\Throwable $e) { + self::log('商城单回写 order_goods 失败 order=' . $order['order_id'] . ':' . $e->getMessage()); + } + } + + // ================================================================ + // 内部 + // ================================================================ + + /** + * 把「油券面值金额」折算成「用户实付金额」 + * 面值 total_price 与实付 total_pay_price 在用过优惠券/积分时不相等。 + */ + protected static function toPaid($order, float $amount): float + { + $face = (float) ($order['total_price'] ?? 0); + $paid = (float) ($order['total_pay_price'] ?? 0); + if ($face <= 0 || $paid >= $face) { + return round($amount, 2); + } + return round(min($amount * $paid / $face, $paid), 2); + } + + /** 投递下发队列 */ + protected static function push(int $orderId): void + { + (new QueueService())->push('partners_queue', json_encode(['order_id' => $orderId], 320)); + } + + protected static function fail(string $message): array + { + return ['ok' => false, 'message' => $message, 'order_id' => 0]; + } + + /** 金额安全格式化(仅数字与小数点,防拼接注入) */ + protected static function money(float $amount): string + { + return number_format(round($amount, 2), 2, '.', ''); + } + + protected static function log(string $text): void + { + (new QytOil())->saveLog('[商城单] ' . $text); + } +} diff --git a/server-tp6/app/common/service/PartnersOil.php b/server-tp6/app/common/service/PartnersOil.php index e4ba290..2df2bd9 100644 --- a/server-tp6/app/common/service/PartnersOil.php +++ b/server-tp6/app/common/service/PartnersOil.php @@ -35,8 +35,8 @@ class PartnersOil extends BaseService public function saveLogStore($data){ $years = date('Ym'); $day = date('Ymd'); - //设置路径目录信息 - $dir = runtime_path('storelog/').$years.'/'.$day; + //设置路径目录信息(store_log_path 保证 CLI / api / store 各进程写同一处,见 app/common.php) + $dir = store_log_path().$years.'/'.$day; //目录不存在就创建 $this->mk_dir_store($dir); $url = $dir.'/'.date('YmdH').'.txt'; diff --git a/server-tp6/app/common/service/QueueService.php b/server-tp6/app/common/service/QueueService.php index 60f122a..3c2307f 100644 --- a/server-tp6/app/common/service/QueueService.php +++ b/server-tp6/app/common/service/QueueService.php @@ -29,6 +29,31 @@ class QueueService return $message ? json_decode($message, true) : null; } + /** + * 阻塞式取出消息:队列空时挂在 Redis 上等,有消息立刻返回。 + * + * 相比 pop() + sleep(1) 的轮询,取到消息的延迟从「最多 1 秒」降到接近 0, + * 对「下单 -> 调上游发放」这种链路首段能实打实省掉一截等待。 + * + * @param string $queueName + * @param int $timeout 最长阻塞秒数(到点返回 null,便于外层做兜底巡检) + * @return array|string|null + */ + public function bpop($queueName, $timeout = 5) + { + // BLPOP 会把连接挂住 $timeout 秒,必须短于 Redis 连接的读超时 + // (未显式配置时取 PHP default_socket_timeout,通常 60 秒), + // 否则会抛读超时异常而不是正常返回 null。这里夹到 30 秒以内。 + $timeout = max(1, min(30, (int) $timeout)); + // Predis 的 blpop 返回 [队列名, 消息],超时返回 null + $res = $this->redis->blpop([$queueName], $timeout); + if (empty($res[1])) { + return null; + } + $decoded = json_decode($res[1], true); + return $decoded === null ? $res[1] : $decoded; + } + /** * 延迟推送(ZSET) * @param string $queueName diff --git a/server-tp6/app/common/service/QytConfig.php b/server-tp6/app/common/service/QytConfig.php index a277dc3..2a052a6 100644 --- a/server-tp6/app/common/service/QytConfig.php +++ b/server-tp6/app/common/service/QytConfig.php @@ -29,7 +29,7 @@ class QytConfig /** 后台设置可覆盖的接入方级标量项 */ const OVERRIDABLE = [ 'base_url', 'app_id', 'no_prefix', 'voucher_name', - 'h5_base_url', 'h5_app_id', 'consume_notify_url', + 'h5_base_url', 'h5_app_id', 'consume_notify_url', 'waybill_notify_url', ]; /** @var array|null */ @@ -55,10 +55,13 @@ class QytConfig $conf[$k] = trim((string) $db[$k]); } } - // 日志开关是布尔,0 是合法值,不能用非空判断 + // 布尔项 0 是合法值,不能用非空判断 if (isset($db['log'])) { $conf['log'] = (bool) $db['log']; } + if (isset($db['waybill_notify'])) { + $conf['waybill_notify'] = (bool) $db['waybill_notify']; + } self::$cache = $conf; self::$cacheAt = time(); diff --git a/server-tp6/app/common/service/QytOil.php b/server-tp6/app/common/service/QytOil.php index 486d26a..f09a037 100644 --- a/server-tp6/app/common/service/QytOil.php +++ b/server-tp6/app/common/service/QytOil.php @@ -550,13 +550,13 @@ class QytOil extends BaseService return bcdiv((string) (int) $fen, '100', 2); } - /** 记录日志到 runtime/storelog */ + /** 记录日志到 runtime/storelog(store_log_path 保证各进程写同一处,见 app/common.php) */ public function saveLog($data): void { if (empty($this->conf['log'])) { return; } - $dir = runtime_path('storelog/') . date('Ym') . '/' . date('Ymd'); + $dir = store_log_path() . date('Ym') . '/' . date('Ymd'); is_dir($dir) || @mkdir($dir, 0777, true); @file_put_contents( $dir . '/qyt_' . date('YmdH') . '.txt', diff --git a/server-tp6/app/common/service/QytRefund.php b/server-tp6/app/common/service/QytRefund.php index b2e114f..6f0ba69 100644 --- a/server-tp6/app/common/service/QytRefund.php +++ b/server-tp6/app/common/service/QytRefund.php @@ -403,10 +403,11 @@ class QytRefund 'response' => self::dumpRes($res), 'update_time' => time(), ]); - // 只有状态跃迁胜出者才回补合作商余额,保证只退一次 + // 只有状态跃迁胜出者才原路退款,保证只退一次 + // · 合作商单 -> 回补 partners.balance + // · 商城单 -> 退回下单用户余额(按实付折算) if ($won) { - PartnersBalance::refund((int) $order['partners_id'], $amount, (string) $order['partners_order_no'], - (int) $order['order_id'], (int) $order['store_id']); + MallOil::giveBack($order, $amount, '订单退款'); } }); @@ -422,7 +423,8 @@ class QytRefund 'optType' => 'refund', 'retry_count' => 0, ], 320)); - (new QytOil())->saveLog("退款成功 order={$order['order_id']} refund_no={$refundNo} amount={$amount},已回补合作商余额"); + MallOil::syncGoods($order, 'refund'); + (new QytOil())->saveLog("退款成功 order={$order['order_id']} refund_no={$refundNo} amount={$amount},已原路退款"); } $order['refund_status'] = self::SUCCESS; $order['refund_amount'] = $amount; diff --git a/server-tp6/app/common/service/QytWaybill.php b/server-tp6/app/common/service/QytWaybill.php new file mode 100644 index 0000000..11ebd78 --- /dev/null +++ b/server-tp6/app/common/service/QytWaybill.php @@ -0,0 +1,207 @@ + 根本不推(且不视为失败、不补推) +// | 2. 推送失败重试 5 次后放弃(文档建议此时用 7.8 查) +// | 3. 我们自己的接收端宕机 / 发版重启窗口期 +// | 所以轮询保留为安全网,只是间隔放长(见 QytStatusQueue::intervalSql) +// | +// | 并发/幂等: +// | 状态跃迁是条件 UPDATE(... WHERE oil_status_zsy=1),affected=1 才退款/回调, +// | 因此「同一批次重复推送」「推送与轮询同时到达」都只会生效一次。 +// +---------------------------------------------------------------------- +declare (strict_types=1); + +namespace app\common\service; + +use think\facade\Db; + +class QytWaybill +{ + // 明细级 handle_status(7.8 出参 / 3.10 通知 data.list[].handle_status) + const HANDLE_PENDING = 1; + const HANDLE_SUCCESS = 2; + const HANDLE_FAILED = 3; + + // 批次级 status(7.8 出参 data.status / 3.10 通知 data.status) + const BATCH_PENDING = 1; // 待处理 + const BATCH_RUNNING = 2; // 处理中 + const BATCH_ALL_OK = 3; // 全部成功 + const BATCH_PART_OK = 4; // 部分成功 + const BATCH_FAILED = 5; // 处理失败 + + // judge() 的结论 + const R_SUCCESS = 'success'; + const R_FAILED = 'failed'; + const R_PENDING = 'pending'; + + /** + * 纯函数:根据批次级 status 与本条明细,判定这一单的最终发放结果。 + * + * 文档 3.10 明确:**以批次级 status 为准**——批次因「企业信息不存在」之类 + * 整体失败时,明细里可能仍然写着「待处理」。只看 handle_status 会让这种单 + * 永远停在发放中,钱也永远不退。 + * + * @param int $batchStatus 批次级 status + * @param array|null $row 本条明细 ['handle_status','error_msg','remark'],不存在传 null + * @return array ['result' => success|failed|pending, 'text' => string] + */ + public static function judge(int $batchStatus, ?array $row): array + { + $handle = $row ? (int) ($row['handle_status'] ?? 0) : 0; + + // 1) 整批处理失败:不管明细写的是什么,这一单都拿不到钱 + if ($batchStatus === self::BATCH_FAILED && $handle !== self::HANDLE_SUCCESS) { + $msg = $row ? trim((string) ($row['error_msg'] ?? '')) : ''; + return ['result' => self::R_FAILED, 'text' => $msg !== '' ? $msg : '企油通返回整批处理失败']; + } + // 2) 明细里没有这一条:批次还在排队,继续等 + if (!$row) { + return ['result' => self::R_PENDING, 'text' => '']; + } + if ($handle === self::HANDLE_SUCCESS) { + return ['result' => self::R_SUCCESS, 'text' => trim((string) ($row['remark'] ?? '')) ?: '发放成功']; + } + if ($handle === self::HANDLE_FAILED) { + return ['result' => self::R_FAILED, 'text' => trim((string) ($row['error_msg'] ?? '')) ?: '企油通发放失败']; + } + // 1 待处理,或未知值 -> 继续等 + return ['result' => self::R_PENDING, 'text' => '']; + } + + /** + * 从 3.10 通知或 7.8 响应的 data.list 里挑出某条运单流水 + * @return array|null ['handle_status','error_msg','remark'] + */ + public static function pick(array $data, string $waybillNoCode): ?array + { + return QytOil::pickWaybill($data, $waybillNoCode); + } + + /** + * 发放成功:条件跃迁 1 -> 2,胜出者才回调下游 / 同步小程序端 + * + * @param array $order partners_order 记录 + * @param string $text 备注(上游 remark) + * @param string $from 结果来源,只用于日志:'3.10 通知' / '7.8 轮询' + * @return bool 是否由本次调用完成跃迁 + */ + public static function markSuccess(array $order, string $text, string $from = ''): bool + { + $affected = Db::name('partners_order') + ->where('order_id', $order['order_id']) + ->where('oil_status_zsy', 1) + ->update([ + 'oil_status' => 1, + 'oil_status_zsy' => 2, + 'oil_time' => time(), + 'oil_text' => mb_substr($text, 0, 190), + 'update_time' => time(), + ]); + if (!$affected) { + return false; + } + MallOil::syncGoods($order, 'share_oil'); + (new QueueService())->push('notify_queue', json_encode([ + 'order_id' => $order['order_id'], + 'type' => 'add', + 'optType' => 'share_oil', + 'retry_count' => 0, + ], 320)); + self::log("{$from} 确认发放成功 order={$order['order_id']} batch_no={$order['batch_no']}"); + return true; + } + + /** + * 发放失败:条件跃迁 1 -> 3,胜出者才退款(保证只退一次) + * + * @return bool 是否由本次调用完成跃迁 + */ + public static function markFailed(array $order, string $reason, string $from = ''): bool + { + $affected = Db::name('partners_order') + ->where('order_id', $order['order_id']) + ->where('oil_status_zsy', 1) + ->update([ + 'oil_status_zsy' => 3, + 'oil_text' => mb_substr('发放失败:' . $reason, 0, 190), + 'update_time' => time(), + ]); + if (!$affected) { + return false; + } + // 原路退款:合作商单回补合作商余额,商城单退回下单用户余额 + MallOil::giveBack($order, (float) $order['total_price'], '发放失败'); + MallOil::syncGoods($order, 'share_oil'); + self::log("{$from} 确认发放失败 order={$order['order_id']} 原因={$reason},已原路退款 {$order['total_price']}"); + return true; + } + + /** + * 按判定结果落状态。已经不在「发放中」的单会被安全忽略, + * 但「已判失败又被告知成功」属于资损风险,必须告警而不是静默翻转。 + * + * @return string 实际发生的动作:success / failed / pending / skipped / conflict + */ + public static function apply(array $order, array $judged, string $from = ''): string + { + $current = (int) $order['oil_status_zsy']; + + if ($judged['result'] === self::R_PENDING) { + return self::R_PENDING; + } + + if ($current !== 1) { + // 终态与上游结论不一致 -> 一律只告警、不自动翻转: + // 3 -> 成功:我们已经退过款,钱却可能真发出去了(资损) + // 2 -> 失败:我们已经通知下游发放成功、小程序端也显示可加油了 + // 两种都要人工到企油通后台核对,自动改状态只会把问题放大。 + $conflict = ($current === 3 && $judged['result'] === self::R_SUCCESS) + || ($current === 2 && $judged['result'] === self::R_FAILED); + if ($conflict) { + self::log("【告警】order={$order['order_id']} batch_no={$order['batch_no']} 本地发放态为「" + . ($current === 3 ? '发放失败(已退款)' : '发放成功(已通知下游)') + . "」,但{$from}返回「" . ($judged['result'] === self::R_SUCCESS ? '发放成功' : '发放失败') + . "」:{$judged['text']}。请人工到企油通后台核对,系统不会自动翻转状态。"); + return 'conflict'; + } + return 'skipped'; + } + + if ($judged['result'] === self::R_SUCCESS) { + return self::markSuccess($order, $judged['text'], $from) ? self::R_SUCCESS : 'skipped'; + } + return self::markFailed($order, $judged['text'], $from) ? self::R_FAILED : 'skipped'; + } + + /** + * 记录本次通知时间与次数,便于排查「这单到底推没推过、推了几次」。 + * 纯留痕,失败不能影响发放态跃迁(比如迁移脚本还没跑、少了这两列)。 + */ + public static function touchNotify(int $orderId, int $notifyTime): void + { + try { + Db::name('partners_order')->where('order_id', $orderId)->update([ + 'qyt_notify_time' => $notifyTime ?: time(), + 'qyt_notify_num' => Db::raw('qyt_notify_num + 1'), + ]); + } catch (\Throwable $e) { + self::log('3.10 通知留痕失败 order=' . $orderId . ':' . $e->getMessage() + . '(不影响发放态,确认 qyt_migration_waybill_notify.sql 是否已执行)'); + } + } + + protected static function log(string $text): void + { + (new QytOil())->saveLog($text); + } +} diff --git a/server-tp6/app/common/service/SybOil.php b/server-tp6/app/common/service/SybOil.php index 30d7dbc..a2e64f4 100644 --- a/server-tp6/app/common/service/SybOil.php +++ b/server-tp6/app/common/service/SybOil.php @@ -35,8 +35,8 @@ class SybOil extends BaseService public function saveLogStore($data){ $years = date('Ym'); $day = date('Ymd'); - //设置路径目录信息 - $dir = runtime_path('storelog/').$years.'/'.$day; + //设置路径目录信息(store_log_path 保证 CLI / api / store 各进程写同一处,见 app/common.php) + $dir = store_log_path().$years.'/'.$day; //目录不存在就创建 $this->mk_dir_store($dir); $url = $dir.'/'.date('YmdH').'.txt'; diff --git a/server-tp6/app/console/command/CallbackQueue.php b/server-tp6/app/console/command/CallbackQueue.php index feea7f7..165e1a1 100644 --- a/server-tp6/app/console/command/CallbackQueue.php +++ b/server-tp6/app/console/command/CallbackQueue.php @@ -8,6 +8,8 @@ use think\console\Input; use think\console\Output; use app\store\model\order\Record as RecordModel; use app\common\service\SybOil; +use app\common\service\QytWaybill; +use app\common\lock\RedisLock; use think\facade\Db; class CallbackQueue extends Command @@ -427,6 +429,58 @@ class CallbackQueue extends Command $SybOil->saveLogStore('企油通消费回调处理成功:' . json_encode($c, 320)); } break; + case "qyt_waybill_result": + // 企油通 3.10「发放结果通知」:一个批次一条,整批明细都在 res.list 里。 + // 判定与状态跃迁跟 7.8 轮询共用 QytWaybill,保证两条路结论一致、互相幂等。 + $batchNo = (string)($res['batch_no'] ?? ''); + $batchStatus = (int)($res['status'] ?? 0); + $notifyTime = !empty($res['notify_time']) ? (strtotime((string)$res['notify_time']) ?: time()) : time(); + $list = (array)($res['list'] ?? []); + $stat = ['success' => 0, 'failed' => 0, 'pending' => 0, 'skipped' => 0, 'conflict' => 0, 'miss' => 0]; + + foreach ($list as $row) { + $code = trim((string)($row['waybill_no_code'] ?? '')); + if ($code === '') { + $stat['miss']++; + continue; + } + $order = Db::name('partners_order')->where('waybill_no_code', $code)->find(); + if (!$order) { + // 同一个 appId 下可能还挂着别的接入系统提交的批次,匹配不到不算异常 + $stat['miss']++; + continue; + } + // 留痕:这一单到底收没收到过推送、收了几次 + QytWaybill::touchNotify((int)$order['order_id'], $notifyTime); + + // 每单串行,避免与 qyt:status 轮询同时跃迁 + $lock = new RedisLock('qyt:status:' . $order['order_id'], 60); + if (!$lock->acquireLock()) { + // 轮询正在处理这一单,跳过即可:两条路的结论一样 + $stat['skipped']++; + continue; + } + try { + // 锁内重读,拿到最新状态 + $fresh = Db::name('partners_order')->where('order_id', $order['order_id'])->find(); + $judged = QytWaybill::judge($batchStatus, [ + 'handle_status' => (int)($row['handle_status'] ?? 0), + 'error_msg' => (string)($row['error_msg'] ?? ''), + 'remark' => (string)($row['remark'] ?? ''), + ]); + $stat[QytWaybill::apply($fresh ?: $order, $judged, '3.10 通知')]++; + } finally { + $lock->releaseLock(); + } + } + + $SybOil->saveLogStore('3.10 发放结果通知处理完成 batch_no=' . $batchNo + . ' 批次状态=' . $batchStatus . ' 明细=' . count($list) + . ' 成功=' . $stat['success'] . ' 失败=' . $stat['failed'] + . ' 待处理=' . $stat['pending'] . ' 已是终态=' . $stat['skipped'] + . ' 未匹配=' . $stat['miss'] + . ($stat['conflict'] ? ' 【冲突=' . $stat['conflict'] . ',需人工核对】' : '')); + break; default: $SybOil->saveLogStore('队列数据处理异常,未知:【'.$message.'】'); } diff --git a/server-tp6/app/console/command/NotifyQueue.php b/server-tp6/app/console/command/NotifyQueue.php index 86dc1cc..f4fc7ad 100644 --- a/server-tp6/app/console/command/NotifyQueue.php +++ b/server-tp6/app/console/command/NotifyQueue.php @@ -1,6 +1,7 @@ where('id', (int)$data['consume_id']) + ->update(['notify_status' => 1, 'notify_time' => time()]); + } + return true; + } $partners = partnersModel::detail($order['partners_id']); if(!$partners){ return false; diff --git a/server-tp6/app/console/command/PartnersQueue.php b/server-tp6/app/console/command/PartnersQueue.php index 7322fa5..21f22b5 100644 --- a/server-tp6/app/console/command/PartnersQueue.php +++ b/server-tp6/app/console/command/PartnersQueue.php @@ -22,7 +22,7 @@ namespace app\console\command; use app\common\lock\RedisLock; use app\common\model\partners\Order as OrderModel; use app\common\model\qyt\Enterprise as EnterpriseModel; -use app\common\service\PartnersBalance; +use app\common\service\MallOil; use app\common\service\QueueService; use app\common\service\QytOil; use think\console\Command; @@ -48,12 +48,13 @@ class PartnersQueue extends Command { $this->queueService = new QueueService(); while (true) { - $message = $this->queueService->pop('partners_queue'); + // 阻塞式取队列:有单立刻开始下发,不用等轮询间隔。 + // 5 秒超时只是为了让空闲时也能跑到下面的兜底巡检(内部已限频 60s)。 + $message = $this->queueService->bpop('partners_queue', 5); if ($message) { $this->processMessage($message); } else { $this->reconcile(); - sleep(1); } } } @@ -198,18 +199,14 @@ class PartnersQueue extends Command } /** - * 发放失败 -> 回补合作商余额(仅在状态跃迁胜出时调用,天然幂等) + * 发放失败 -> 原路退款(仅在状态跃迁胜出时调用,天然幂等) + * · 合作商单 -> 回补 partners.balance + * · 商城单 -> 退回下单用户余额(按实付折算),并把失败状态回写 order_goods */ protected function refundBalance($order) { - PartnersBalance::refund( - (int) $order['partners_id'], - (float) $order['total_price'], - (string) $order['partners_order_no'], - (int) $order['order_id'], - (int) $order['store_id'] - ); - (new QytOil())->saveLog("发放失败已回补合作商余额 order={$order['order_id']} amount={$order['total_price']}"); + MallOil::giveBack($order, (float) $order['total_price'], '发放失败'); + MallOil::syncGoods($order); } /** diff --git a/server-tp6/app/console/command/QytStatusQueue.php b/server-tp6/app/console/command/QytStatusQueue.php index da37853..c900f62 100644 --- a/server-tp6/app/console/command/QytStatusQueue.php +++ b/server-tp6/app/console/command/QytStatusQueue.php @@ -2,8 +2,15 @@ // +---------------------------------------------------------------------- // | 企油通「运单发放结果」轮询 (7.8 waybillBatch) // +---------------------------------------------------------------------- -// | 为什么需要它:7.7 运单油费下发是【异步】接口,返回成功只代表受理, -// | 真实发放结果必须按 batch_no 调 7.8 查(《企油通接口对接文档.md》§5 第 7 条)。 +// | 为什么需要它:7.7 运单油费下发是【异步】接口,返回成功只代表受理。 +// | +// | 拿最终结果有两条路,判定逻辑共用 app\common\service\QytWaybill: +// | · 推:3.10 发放结果通知 -> public/qytwaybill.php -> callback:queue(主路径) +// | · 拉:本命令按 batch_no 调 7.8 查询(安全网) +// | +// | 接上推送后本命令不会下线:上游未配置接收地址不推送、推送重试 5 次后放弃、 +// | 我方接收端宕机或发版重启,这三种情况都只能靠轮询兜底。此时退避间隔会自动放长, +// | 见 intervalSql()。 // | // | 状态流转(oil_status_zsy): // | 0 未提交 --PartnersQueue 调7.7受理--> 1 发放中 --本命令查7.8--> 2 成功 / 3 失败 @@ -27,9 +34,9 @@ namespace app\console\command; use app\common\lock\RedisLock; use app\common\model\qyt\Enterprise as EnterpriseModel; -use app\common\service\PartnersBalance; -use app\common\service\QueueService; +use app\common\service\QytConfig; use app\common\service\QytOil; +use app\common\service\QytWaybill; use think\console\Command; use think\console\Input; use think\console\Output; @@ -40,15 +47,12 @@ class QytStatusQueue extends Command /** 每轮扫描的最大订单数 */ const BATCH_LIMIT = 100; - /** 空转时的休眠秒数 */ - const IDLE_SLEEP = 5; + /** 空转时的休眠秒数(只是一条轻量 SQL,不打上游,可以压到 1 秒) */ + const IDLE_SLEEP = 1; /** 查询次数达到该值后仍未定论,视为异常滞留,写告警日志 */ const STUCK_NUM = 100; - /** @var QueueService */ - protected $queueService; - protected function configure() { $this->setName('qyt:status') @@ -57,7 +61,7 @@ class QytStatusQueue extends Command protected function execute(Input $input, Output $output) { - $this->queueService = new QueueService(); + // 通知下游 / 同步小程序端都在 QytWaybill 里做,这里只负责查结果 while (true) { $handled = 0; try { @@ -94,11 +98,38 @@ class QytStatusQueue extends Command /** * 退避间隔(秒)的 SQL 表达式:查得越久间隔越长,避免高频打上游 - * 前 10 次 30s,10~30 次 120s,之后 600s + * + * 为什么前几次要这么密:7.7 受理后第一次 7.8 几乎必然返回「待处理」, + * 如果第二次要等 30 秒,哪怕企油通第 8 秒就发完了,用户也得等到第 35 秒。 + * 绝大多数单在前 20 秒内就有结果,所以把这一段压到 3 秒一次, + * 代价是每单多打上游几次;拖久的单自动退到长间隔,总 QPS 不会失控。 + * + * 注意:若已接入 3.10 发放结果通知(后台「企油通对接设置」里打开开关), + * 走的是上面那条「安全网」曲线,不是下面这条抢时间的曲线。 + * + * 次数 <6 -> 3s (覆盖 0~18s,正常单在这里出结果) + * 次数 <16 -> 10s (覆盖至约 2 分钟) + * 次数 <26 -> 30s (覆盖至约 7 分钟) + * 次数 <46 -> 120s (覆盖至约 47 分钟) + * 之后 -> 600s */ protected function intervalSql(): string { - return 'CASE WHEN qyt_query_num < 10 THEN 30 WHEN qyt_query_num < 30 THEN 120 ELSE 600 END'; + // 接上 3.10 发放结果通知后,结果以推送为主,轮询退为安全网: + // 只覆盖「上游没配接收地址 / 推送重试 5 次仍失败 / 我方接收端当时不可用」 + // 这三种情况,没必要再抢在推送前面把上游打一遍。 + if (!empty(QytConfig::get()['waybill_notify'])) { + return 'CASE' + . ' WHEN qyt_query_num < 3 THEN 60' + . ' WHEN qyt_query_num < 8 THEN 300' + . ' ELSE 900 END'; + } + return 'CASE' + . ' WHEN qyt_query_num < 6 THEN 3' + . ' WHEN qyt_query_num < 16 THEN 10' + . ' WHEN qyt_query_num < 26 THEN 30' + . ' WHEN qyt_query_num < 46 THEN 120' + . ' ELSE 600 END'; } /** @@ -143,31 +174,16 @@ class QytStatusQueue extends Command return; } + // 判定与状态跃迁跟 3.10 推送共用 QytWaybill,两条路结论必须一致 $batchStatus = (int) ($res['data']['status'] ?? 0); - $row = QytOil::pickWaybill($res['data'], (string) $order['waybill_no_code']); + $row = QytWaybill::pick($res['data'], (string) $order['waybill_no_code']); + $judged = QytWaybill::judge($batchStatus, $row); - // 整批处理失败,且明细里没有本条 -> 判失败 - if (!$row && $batchStatus === 5) { - $this->markFailed($order, '企油通返回整批处理失败', $qyt); - return; - } - // 明细里还没有本条:批次还在排队,继续等 - if (!$row) { + if ($judged['result'] === QytWaybill::R_PENDING) { $this->alertIfStuck($order, $qyt); return; } - - switch ($row['handle_status']) { - case 2: // 成功 - $this->markSuccess($order, $row['remark'] ?: '发放成功', $qyt); - break; - case 3: // 失败 - $this->markFailed($order, $row['error_msg'] ?: '企油通发放失败', $qyt); - break; - default: // 1 待处理,或未知值 -> 继续等 - $this->alertIfStuck($order, $qyt); - break; - } + QytWaybill::apply($order, $judged, '7.8 轮询'); } catch (\Throwable $e) { $this->log("order={$orderId} 轮询异常:" . $e->getMessage() . ' @ ' . $e->getFile() . ':' . $e->getLine()); } finally { @@ -175,60 +191,6 @@ class QytStatusQueue extends Command } } - /** - * 发放成功:条件跃迁 1 -> 2,胜出者才回调下单平台 - */ - protected function markSuccess(array $order, string $text, QytOil $qyt): void - { - $affected = Db::name('partners_order') - ->where('order_id', $order['order_id']) - ->where('oil_status_zsy', 1) - ->update([ - 'oil_status' => 1, - 'oil_status_zsy' => 2, - 'oil_time' => time(), - 'oil_text' => $text, - 'update_time' => time(), - ]); - if (!$affected) { - return; - } - $this->queueService->push('notify_queue', json_encode([ - 'order_id' => $order['order_id'], - 'type' => 'add', - 'optType' => 'share_oil', - 'retry_count' => 0, - ], 320)); - $qyt->saveLog("7.8 确认发放成功 order={$order['order_id']} batch_no={$order['batch_no']}" - . " 查询次数={$order['qyt_query_num']}"); - } - - /** - * 发放失败:条件跃迁 1 -> 3,胜出者才退款(保证只退一次) - */ - protected function markFailed(array $order, string $reason, QytOil $qyt): void - { - $affected = Db::name('partners_order') - ->where('order_id', $order['order_id']) - ->where('oil_status_zsy', 1) - ->update([ - 'oil_status_zsy' => 3, - 'oil_text' => '发放失败:' . $reason, - 'update_time' => time(), - ]); - if (!$affected) { - return; - } - PartnersBalance::refund( - (int) $order['partners_id'], - (float) $order['total_price'], - (string) $order['partners_order_no'], - (int) $order['order_id'], - (int) $order['store_id'] - ); - $qyt->saveLog("7.8 确认发放失败 order={$order['order_id']} 原因={$reason},已回补合作商余额 {$order['total_price']}"); - } - /** * 长期拿不到结果时告警。只写日志,不改状态、不退款 */ diff --git a/server-tp6/app/store/controller/Order.php b/server-tp6/app/store/controller/Order.php index 019cbea..086b2c5 100644 --- a/server-tp6/app/store/controller/Order.php +++ b/server-tp6/app/store/controller/Order.php @@ -153,8 +153,10 @@ class Order extends Controller */ public function cancelShare(): Json { - // 企油通改造:本功能依赖已下线的上游(智慧油客/定聚),现已停用。 - return $this->renderError('小程序油品链路已停用'); + // 企油通改造:小程序订单的发放/加油/退款统一走 yoshop_partners_order, + // 后台操作接口复用 app/store/controller/partners/Order.php(/partners.order/*), + // 前端订单页传的是商品行上挂的 qyt.order_id。本接口保留仅为兼容老前端。 + return $this->renderError('该入口已迁移,请使用 /partners.order/ 下的同名接口'); } /** @@ -164,8 +166,10 @@ class Order extends Controller */ public function qrCode(): Json { - // 企油通改造:本功能依赖已下线的上游(智慧油客/定聚),现已停用。 - return $this->renderError('小程序油品链路已停用'); + // 企油通改造:小程序订单的发放/加油/退款统一走 yoshop_partners_order, + // 后台操作接口复用 app/store/controller/partners/Order.php(/partners.order/*), + // 前端订单页传的是商品行上挂的 qyt.order_id。本接口保留仅为兼容老前端。 + return $this->renderError('该入口已迁移,请使用 /partners.order/ 下的同名接口'); } /** @@ -250,7 +254,9 @@ class Order extends Controller */ public function share(): Json { - // 企油通改造:本功能依赖已下线的上游(智慧油客/定聚),现已停用。 - return $this->renderError('小程序油品链路已停用'); + // 企油通改造:小程序订单的发放/加油/退款统一走 yoshop_partners_order, + // 后台操作接口复用 app/store/controller/partners/Order.php(/partners.order/*), + // 前端订单页传的是商品行上挂的 qyt.order_id。本接口保留仅为兼容老前端。 + return $this->renderError('该入口已迁移,请使用 /partners.order/ 下的同名接口'); } } diff --git a/server-tp6/app/store/controller/partners/Order.php b/server-tp6/app/store/controller/partners/Order.php index 61bd192..d6eff46 100644 --- a/server-tp6/app/store/controller/partners/Order.php +++ b/server-tp6/app/store/controller/partners/Order.php @@ -13,7 +13,7 @@ declare (strict_types=1); namespace app\store\controller\partners; -use app\common\service\PartnersBalance; +use app\common\service\MallOil; use app\common\service\QueueService; use app\common\model\qyt\Enterprise as EnterpriseModel; use app\common\service\QytInvoice; @@ -119,16 +119,10 @@ class Order extends Controller if ($order['use_status'] != 0) { return $this->renderError('该单已加油核销,不可重发'); } - // 发放失败时余额已回补,重发需重新扣减合作商余额 - $logId = PartnersBalance::deduct( - (int) $order['partners_id'], - (float) $order['total_price'], - (string) $order['partners_order_no'], - $orderId, - (int) $order['store_id'] - ); - if ($logId === false) { - return $this->renderError('合作商余额不足,请先充值后再重发'); + // 发放失败时额度已原路退回,重发需重新扣减: + // 合作商单扣合作商余额,小程序单扣下单用户余额 + if (!MallOil::take($order, (float) $order['total_price'])) { + return $this->renderError(MallOil::notEnoughText($order)); } // 仅允许从「发放失败(3)」重置为「未提交(0)」,避免与「发放中(1)」的单冲突。 // 同时清空编号并把重发次数 +1:企油通按 batch_no 幂等,沿用老批次的话 @@ -148,17 +142,13 @@ class Order extends Controller 'update_time' => time(), ]); if (!$reset) { - // 状态已被其它进程改变 -> 回补刚扣的余额 - PartnersBalance::refund( - (int) $order['partners_id'], - (float) $order['total_price'], - (string) $order['partners_order_no'], - $orderId, - (int) $order['store_id'] - ); + // 状态已被其它进程改变 -> 回补刚扣的额度 + MallOil::giveBack($order, (float) $order['total_price'], '重发撤销'); return $this->renderError('当前状态不允许重发(仅「发放失败」的订单可重发)'); } (new QueueService())->push('partners_queue', json_encode(['order_id' => $orderId], 320)); + // 小程序单把「重新发放」状态同步回订单商品行,用户端立刻能看到 + MallOil::syncGoods($order); return $this->renderSuccess('已提交重新发放,请稍后刷新查看结果'); } diff --git a/server-tp6/app/store/model/Order.php b/server-tp6/app/store/model/Order.php index 82c1e48..bc4214a 100644 --- a/server-tp6/app/store/model/Order.php +++ b/server-tp6/app/store/model/Order.php @@ -21,6 +21,7 @@ use think\facade\Request; use app\common\model\Goods as GoodsModel; use app\common\model\Order as OrderModel; use app\common\service\Order as OrderService; +use app\common\service\QytOil; use app\common\service\Message as MessageService; use app\common\service\order\Refund as RefundService; use app\common\enum\order\OrderStatus as OrderStatusEnum; @@ -121,6 +122,8 @@ class Order extends OrderModel }) ->order(['order.create_time' => 'desc']) ->paginate(10); + // 给每个油券商品行挂上对应的企油通发放单(后台订单页的企油通列与操作按钮用) + $this->setQytData($list); // 获取数据列表 return [ 'list' => $list, @@ -128,6 +131,55 @@ class Order extends OrderModel ]; } + /** + * 给订单商品行挂上企油通发放单数据(字段名 qyt) + * + * 小程序订单在支付成功后由 MallOil::create 为每个油券商品行建了一条 + * yoshop_partners_order(source='mall',mall_order_goods_id 指回商品行), + * 企油通的发放/加油/退款/发票全挂在那张表上。后台订单页要展示这些信息、 + * 并复用 /partners.order/* 的操作接口,所以这里按商品行把发放单带出来。 + * + * @param \think\Paginator|\think\Collection $list + */ + public function setQytData($list): void + { + $goodsIds = []; + foreach ($list as $order) { + foreach ($order['goods'] as $goods) { + $goodsIds[] = (int)$goods['order_goods_id']; + } + } + if (!$goodsIds) { + return; + } + $rows = Db::name('partners_order') + ->where('source', '=', 'mall') + ->whereIn('mall_order_goods_id', $goodsIds) + ->select()->toArray(); + $map = []; + foreach ($rows as $row) { + // 身份证号脱敏(后台展示层) + $row['id_card_mask'] = QytOil::maskIdCard((string)$row['id_card']); + unset($row['id_card']); + // 前端用的是严格相等(item.oil_status_zsy !== 2),这里显式转型, + // 不依赖 PDO 是否把 int 列取成字符串 + foreach (['order_id', 'oil_status', 'oil_status_zsy', 'use_status', 'refund_status', + 'used_num', 'oil_callback', 'use_callback', 'qyt_enterprise_id', + 'mall_order_id', 'mall_order_goods_id', 'user_id'] as $k) { + $row[$k] = (int)$row[$k]; + } + // 剩余可退金额 = 发放金额 - 已加油 - 已退款 + $row['remain_amount'] = number_format(max(0, (float)$row['total_price'] + - (float)$row['used_amount'] - (float)$row['refund_amount']), 2, '.', ''); + $map[(int)$row['mall_order_goods_id']] = $row; + } + foreach ($list as $order) { + foreach ($order['goods'] as $goods) { + $goods['qyt'] = $map[(int)$goods['order_goods_id']] ?? null; + } + } + } + /** * 订单列表(全部) @@ -173,6 +225,8 @@ class Order extends OrderModel 'pay_status' => -1, // 支付状态 'oil_status' => -1, // 分油状态 'use_status' => -1, // 使用状态 + 'oil_status_zsy' => -1, // 企油通发放态 0未提交 1发放中 2成功 3失败 + 'refund_status' => -1, // 退款状态 0未退款 1退款中 2已退款 3退款失败 4待人工确认 'deliveryType' => -1, // 配送方式 'betweenTime' => [], // 起止时间 'userId' => 0, // 会员ID @@ -233,6 +287,22 @@ class Order extends OrderModel ->column('order_id'); // 获取所有符合条件的 order_id 数组 $filter[] = ['order.order_id', 'in', $subQuery]; } + // 企油通发放态(挂在 partners_order 上,按 mall_order_id 反查) + if($params['oil_status_zsy'] > -1){ + $subQuery = Db::name('partners_order') + ->where('source', '=', 'mall') + ->where('oil_status_zsy', '=', (int)$params['oil_status_zsy']) + ->column('mall_order_id'); + $filter[] = ['order.order_id', 'in', $subQuery]; + } + // 退款状态(同上) + if($params['refund_status'] > -1){ + $subQuery = Db::name('partners_order') + ->where('source', '=', 'mall') + ->where('refund_status', '=', (int)$params['refund_status']) + ->column('mall_order_id'); + $filter[] = ['order.order_id', 'in', $subQuery]; + } // 配送方式 $params['deliveryType'] > -1 && $filter[] = ['delivery_type', '=', (int)$params['deliveryType']]; // 用户id diff --git a/server-tp6/app/store/model/partners/Order.php b/server-tp6/app/store/model/partners/Order.php index c9faa84..2c07113 100644 --- a/server-tp6/app/store/model/partners/Order.php +++ b/server-tp6/app/store/model/partners/Order.php @@ -81,10 +81,13 @@ class Order extends OrderModel 'use_status' => -1, // 加油核销状态 'refund_status' => -1, // 退款状态 0未退款 1退款中 2已退款 3退款失败 4待人工确认 'id_card' => '', // 司机身份证号(从司机管理跳转过来时使用) + 'source' => 'partner', // 订单来源 partner=下单平台 mall=小程序商城 all=全部 'betweenTime' => [] // 起止时间 ]); // 检索查询条件 $filter = []; + // 来源:本页只管下单平台的单,小程序单在「订单管理」里看,默认过滤掉 + $params['source'] !== 'all' && $filter[] = ['order.source', '=', (string)$params['source']]; // 合作商ID $params['partners_id'] > 0 && $filter[] = ['order.partners_id', '=', $params['partners_id']]; // 司机手机号 @@ -150,8 +153,9 @@ class Order extends OrderModel if(!empty($partners)) { $filter[] = ['partners_id', '=', $partners['partners_id']]; } - // 总销售额 + // 总销售额(只统计下单平台的单,小程序单不计入合作商口径) return $query->where('oil_status_zsy', '=', 2) + ->where('source', '=', 'partner') ->where($filter) ->sum('total_price'); } diff --git a/server-tp6/config/qyt.php b/server-tp6/config/qyt.php index 2b4cb95..b6d8387 100644 --- a/server-tp6/config/qyt.php +++ b/server-tp6/config/qyt.php @@ -56,6 +56,15 @@ return [ // 形如 https://你的域名/qytconsume.php 'consume_notify_url' => env('qyt.consume_notify_url', ''), + // ★ 我方对外回调地址(配置到企油通后台,用于 3.10 发放结果通知,scene=oil) + // 形如 https://你的域名/qytwaybill.php + 'waybill_notify_url' => env('qyt.waybill_notify_url', ''), + + // 3.10 发放结果通知是否已在企油通后台配好并生效。 + // 打开后 7.8 轮询自动退为「安全网」,间隔放长(见 QytStatusQueue::intervalSql); + // 关闭时按抢时间的密集曲线轮询。⚠️ 对方还没配地址就打开,会让分油变慢。 + 'waybill_notify' => (bool) env('qyt.waybill_notify', false), + // 7.15 H5 免登落地页地址(测试 / 正式不同) // 测试:http://dev.paytaskpage.worknoya.vip/#/ 正式:https://paytaskpage.worknoya.vip/#/ 'h5_base_url' => env('qyt.h5_base_url', 'https://paytaskpage.worknoya.vip/#/'), diff --git a/server-tp6/deploy/env-qyt.example b/server-tp6/deploy/env-qyt.example index 4c34dc9..3ebd8bd 100644 --- a/server-tp6/deploy/env-qyt.example +++ b/server-tp6/deploy/env-qyt.example @@ -29,5 +29,10 @@ H5_BASE_URL = https://paytaskpage.worknoya.vip/#/ H5_APP_ID = ; 我方 7.10 回调地址(此项仅作记录,实际需在企油通后台配置) CONSUME_NOTIFY_URL = https://www.hmzkw.com/qytconsume.php +; 我方 3.10 发放结果通知地址(同上,需在企油通后台按 scene=oil 配置) +WAYBILL_NOTIFY_URL = https://www.hmzkw.com/qytwaybill.php +; 3.10 发放结果通知是否已生效:true -> 7.8 轮询退为安全网,间隔放长 +; ⚠️ 对方还没配好接收地址就设 true,分油结果要等轮询才拿得到,反而变慢 +WAYBILL_NOTIFY = false ; 是否记录详细请求/响应日志到 runtime/storelog LOG = true diff --git a/server-tp6/deploy/qyt_waybill_push.php b/server-tp6/deploy/qyt_waybill_push.php new file mode 100644 index 0000000..e05b2ff --- /dev/null +++ b/server-tp6/deploy/qyt_waybill_push.php @@ -0,0 +1,333 @@ + 解析 -> +// | 队列 -> 消费者」这条链路通不通,不碰数据库、不改任何订单。 +// | 预期结果是「未匹配=1」—— 那正是自检通过的标志。 +// | --order=订单ID 单推一条(推荐) +// | --batch=批次号 按 batch_no 把该批次的单全推一遍 +// | --result=success|failed|pending 明细级 handle_status,默认 success +// | --batch-status=3|4|5 批次级 status,默认按 result 推导(成功=3 失败=5) +// | --msg=文案 成功时写 remark,失败时写 error_msg +// | --url=通知地址 默认取 .env 的 QYT.WAYBILL_NOTIFY_URL +// | --dry-run 只打印,不实际发送 +// | +// | ⚠️ 这会真实推进订单发放态:判成功会通知下游 / 同步小程序端,判失败会原路退款。 +// | 只用于联调环境。联调结束请删除本文件。 +// +---------------------------------------------------------------------- +declare (strict_types=1); + +if (PHP_SAPI !== 'cli') { + http_response_code(403); + exit('仅限命令行执行'); +} + +$root = dirname(__DIR__); + +// ---------------- 参数解析 ---------------- +$opt = []; +foreach (array_slice($argv, 1) as $arg) { + if (preg_match('/^--([a-zA-Z0-9\-_]+)(?:=(.*))?$/', $arg, $m)) { + $opt[str_replace('-', '_', $m[1])] = $m[2] ?? '1'; + } +} +$fake = !empty($opt['fake']); +$orderId = isset($opt['order']) ? (int) $opt['order'] : 0; +$batchNo = isset($opt['batch']) ? trim((string) $opt['batch']) : ''; +$dryRun = !empty($opt['dry_run']); +$result = isset($opt['result']) ? strtolower(trim((string) $opt['result'])) : 'success'; +$msg = isset($opt['msg']) ? (string) $opt['msg'] : ''; + +if (!$fake && $orderId <= 0 && $batchNo === '') { + exit("用法:php deploy/qyt_waybill_push.php --fake # 不需要订单,自检链路\n" + . " php deploy/qyt_waybill_push.php --order=<订单ID> [--result=success|failed]\n" + . " php deploy/qyt_waybill_push.php --batch=<批次号>\n" + . "详细参数见本文件头部注释。\n"); +} +if (!in_array($result, ['success', 'failed', 'pending'], true)) { + exit("--result 只能是 success / failed / pending\n"); +} + +// 明细级 handle_status:1 待处理 / 2 成功 / 3 失败 +$handleStatus = ['success' => 2, 'failed' => 3, 'pending' => 1][$result]; +// 批次级 status:3 全部成功 / 4 部分成功 / 5 处理失败 +$batchStatus = isset($opt['batch_status']) + ? (int) $opt['batch_status'] + : ($result === 'success' ? 3 : ($result === 'failed' ? 5 : 2)); + +// ---------------- 读取 .env ---------------- +$ini = @parse_ini_file($root . '/.env', true, INI_SCANNER_RAW) ?: []; +$db = $ini['DATABASE'] ?? []; +$qyt = $ini['QYT'] ?? []; +$url = isset($opt['url']) ? (string) $opt['url'] : trim((string) ($qyt['WAYBILL_NOTIFY_URL'] ?? '')); +if ($url === '') { + $url = 'http://127.0.0.1/qytwaybill.php'; +} + +// ---------------- 取订单(自检模式跳过) ---------------- +$pdo = null; +$orders = []; +if ($fake) { + // 造一条绝不会命中任何订单的运单流水号: + // 服务端应当「收下 -> 入队 -> 消费者判为未匹配」,整条链路都走到,但不动任何数据 + $batchNo === '' && $batchNo = 'SELFCHECK' . date('YmdHis'); + $fakeCode = 'SELFCHECKCODE' . date('YmdHis') . mt_rand(100, 999); +} else { +try { + $pdo = new PDO( + 'mysql:host=' . ($db['HOSTNAME'] ?? '127.0.0.1') . ';port=' . ($db['HOSTPORT'] ?? '3306') + . ';dbname=' . ($db['DATABASE'] ?? 'oil') . ';charset=' . ($db['CHARSET'] ?? 'utf8'), + $db['USERNAME'] ?? 'root', $db['PASSWORD'] ?? '', + [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC] + ); +} catch (Throwable $e) { + exit("连不上数据库:{$e->getMessage()}\n(本脚本需要读订单的 batch_no / waybill_no_code)\n"); +} + +if ($orderId > 0) { + $st = $pdo->prepare('SELECT * FROM yoshop_partners_order WHERE order_id = ? LIMIT 1'); + $st->execute([$orderId]); + $orders = array_filter([$st->fetch() ?: null]); + if (!$orders) { + exit("未找到订单 order_id={$orderId}\n"); + } +} else { + $st = $pdo->prepare('SELECT * FROM yoshop_partners_order WHERE batch_no = ? ORDER BY order_id'); + $st->execute([$batchNo]); + $orders = $st->fetchAll(); + if (!$orders) { + exit("未找到批次 batch_no={$batchNo} 下的订单\n"); + } +} +} + +// ---------------- 组装报文(字段与 3.10 文档一致) ---------------- +$list = []; +$now = date('Y-m-d H:i:s'); +$i = 0; +if ($fake) { + $list[] = [ + 'id' => 1, + 'batch_no' => $batchNo, + 'waybill_no' => 'SELFCHECKWB' . date('YmdHis'), + 'waybill_no_code' => $fakeCode, + 'mobile' => '13800000000', + 'id_card' => '110101199001011234', + 'name' => '自检', + 'quota_amount' => 1, + 'voucher_name' => '运单卡', + 'effective_start' => '', + 'effective_end' => '', + 'handle_status' => $handleStatus, + 'remark' => '链路自检,不对应任何真实订单', + 'error_msg' => '', + 'create_time' => $now, + 'update_time' => $now, + ]; +} +foreach ($orders as $o) { + if ((string) $o['waybill_no_code'] === '') { + echo "⚠️ 跳过 order_id={$o['order_id']}:还没有运单流水号,说明 7.7 还没成功受理\n"; + continue; + } + $batchNo === '' && $batchNo = (string) $o['batch_no']; + $list[] = [ + 'id' => ++$i, + 'batch_no' => (string) $o['batch_no'], + 'waybill_no' => (string) $o['waybill_no'], + 'waybill_no_code' => (string) $o['waybill_no_code'], + 'mobile' => (string) $o['mobile'], + 'id_card' => (string) $o['id_card'], + 'name' => (string) $o['driver_name'], + 'quota_amount' => (int) round((float) $o['total_price'] * 100), + 'voucher_name' => '运单卡', + 'effective_start' => '', + 'effective_end' => '', + 'handle_status' => $handleStatus, + 'remark' => $result === 'success' ? ($msg !== '' ? $msg : '发放成功') : '', + 'error_msg' => $result === 'failed' ? ($msg !== '' ? $msg : '模拟发放失败') : '', + 'create_time' => $now, + 'update_time' => $now, + ]; +} +if (!$list) { + exit("没有可推送的明细\n"); +} + +$statusText = [3 => '全部成功', 4 => '部分成功', 5 => '处理失败'][$batchStatus] ?? '处理中'; +$data = [ + 'appId' => (string) ($qyt['APP_ID'] ?? 'SIMAPPID'), + 'scene' => 'oil', + 'business_license' => '', + 'batch_no' => $batchNo, + 'passageway' => ((string) ($orders[0]['passageway'] ?? 'alipay')) === 'pingan' ? 2 : 1, // 自检模式下固定 1 + 'status' => $batchStatus, + 'status_text' => $statusText, + 'remark' => '模拟推送', + 'notify_time' => $now, + 'list' => $list, +]; +$json = json_encode($data, JSON_UNESCAPED_UNICODE); + +echo "通知地址:{$url}\n"; +echo "批次:{$batchNo} 批次状态:{$batchStatus}({$statusText}) 明细:" . count($list) . " 条\n"; +if ($fake) { + echo "自检模式:运单流水号 {$fakeCode}(刻意不对应任何订单,不会改动任何数据)\n"; +} +foreach ($orders as $o) { + printf(" order_id=%s 油卡号=%s 金额=%s 当前发放态=%s\n", + $o['order_id'], $o['oilCardNo'], $o['total_price'], $o['oil_status_zsy']); +} +echo "data:" . mb_substr($json, 0, 1500) . (mb_strlen($json) > 1500 ? ' …(截断)' : '') . "\n\n"; + +if ($dryRun) { + echo "--dry-run:未发送\n"; + exit; +} + +// ---------------- 发送:multipart/form-data,data + sign ---------------- +$ch = curl_init(); +curl_setopt_array($ch, [ + CURLOPT_URL => $url, + CURLOPT_POST => true, + // 传数组 => cURL 自动用 multipart/form-data 编码,与企油通口径一致 + CURLOPT_POSTFIELDS => ['data' => $json, 'sign' => 'SIMULATED'], + CURLOPT_RETURNTRANSFER => true, + CURLOPT_TIMEOUT => 30, + CURLOPT_SSL_VERIFYPEER => false, + CURLOPT_SSL_VERIFYHOST => false, +]); +$resp = curl_exec($ch); +$http = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE); +$err = curl_error($ch); +curl_close($ch); + +echo "HTTP {$http}\n响应:" . ($resp === false ? "cURL 失败:{$err}" : $resp) . "\n"; +// 3.10 的成功判据就是 HTTP 2xx,响应体不做要求 +$ok = $http >= 200 && $http < 300; +echo $ok ? "接收端已受理(HTTP 2xx)\n" : "⚠️ 接收端未返回 2xx,企油通会重试最多 5 次;请查 runtime/storelog 下当天的 qyt_*.txt\n"; + +if (!$ok) { + exit; +} + +// ---------------- 自检模式:靠日志验证整条链路 ---------------- +if ($fake) { + // 日志目录:接收端与队列进程现在统一写 runtime/storelog(见 app/common.php 的 + // store_log_path)。为了兼容「代码还没全量更新」和历史日志,这里把多应用模式下的 + // 旧目录 runtime/{api,store}/storelog 也一并扫上。 + $sub = date('Ym') . '/' . date('Ymd'); + $dirs = [ + $root . '/runtime/storelog/' . $sub, + $root . '/runtime/api/storelog/' . $sub, + $root . '/runtime/store/storelog/' . $sub, + ]; + $grep = static function (array $dirs, string $pattern, string $needle): bool { + foreach ($dirs as $dir) { + foreach ((array) glob($dir . '/' . $pattern) as $f) { + if (strpos((string) @file_get_contents($f), $needle) !== false) { + return true; + } + } + } + return false; + }; + + echo "\n等待 callback:queue 处理"; + $received = false; + $consumed = false; + for ($n = 0; $n < 10; $n++) { + sleep(1); + echo '.'; + $received = $received || $grep($dirs, 'qyt_*.txt', $batchNo); + $consumed = $grep($dirs, '[0-9]*.txt', '3.10 发放结果通知处理完成 batch_no=' . $batchNo); + if ($consumed) { + break; + } + } + echo "\n\n自检结果:\n"; + printf(" %s 1/3 入口可达,返回 HTTP %d\n", '✅', $http); + printf(" %s 2/3 接收端解析到报文(%s 里出现了 batch_no)\n", + $received ? '✅' : '❌', $dirs[0] . '/qyt_*.txt'); + printf(" %s 3/3 callback:queue 消费并完成判定\n", $consumed ? '✅' : '❌'); + + // 3/3 过了就说明整条链路都走到了(接收端日志受「详细日志」开关控制,没有不代表没收到) + if ($consumed) { + echo "\n链路通了。日志里那条「未匹配=1」是预期结果——自检用的运单号本来就不对应任何订单,\n" + . "说明「入口 -> 表单解析 -> 入队 -> 消费者取出 -> 逐条判定」每一步都走到了。\n" + . "真实通知到达时,这一条会变成「成功=1」或「失败=1」。\n"; + if (!$received) { + echo "\n注:2/3 没打钩不影响功能,常见原因是「详细日志」开关关着\n" + . " (后台 ->「企油通对接设置」->「详细日志」)。联调期建议打开,\n" + . " 出问题时能看到上游推过来的原文:\n" + . " tail -n 50 {$dirs[0]}/qyt_*.txt\n"; + } + exit; + } + echo "\n排查方向(按顺序排查):\n"; + if (!$received) { + echo " 1) 请求可能根本没打到本站点:确认 --url 指向的就是这台机器,\n" + . " 且 nginx 能访问到 public/qytwaybill.php(伪静态别把它拦掉)。\n" + . " 先把「详细日志」打开再跑一次,能看到原文就说明收到了。\n"; + } + echo " 2) callback:queue 进程多半没在跑,确认一下:\n" + . " /www/server/panel/pyenv/bin/supervisorctl status | grep callback\n" + . " 也可以先前台手动跑一个看报错:php think callback:queue\n"; + echo " 3) Redis 不通的话入队就失败了,接收端日志里会有异常:redis-cli ping\n"; + exit; +} + +// ---------------- 等队列处理并对比结果 ---------------- +echo "\n等待 callback:queue 处理"; +$ids = array_column($orders, 'order_id'); +$in = implode(',', array_map('intval', $ids)); +$before = []; +foreach ($orders as $o) { + $before[$o['order_id']] = (int) $o['oil_status_zsy']; +} +$changed = false; +for ($n = 0; $n < 10; $n++) { + sleep(1); + echo '.'; + $rows = $pdo->query("SELECT order_id, oil_status, oil_status_zsy, oil_text FROM yoshop_partners_order WHERE order_id IN ({$in})")->fetchAll(); + $changed = true; + foreach ($rows as $r) { + if ((int) $r['oil_status_zsy'] === $before[$r['order_id']]) { + $changed = false; + } + } + if ($changed) { + break; + } +} +echo "\n"; + +$textOf = [0 => '未提交', 1 => '发放中', 2 => '发放成功', 3 => '发放失败']; +$rows = $pdo->query("SELECT order_id, oil_status, oil_status_zsy, oil_text FROM yoshop_partners_order WHERE order_id IN ({$in})")->fetchAll(); +foreach ($rows as $r) { + printf("%s order_id=%s 发放态 %s -> %s %s\n", + (int) $r['oil_status_zsy'] === $before[$r['order_id']] ? '⚠️' : '✅', + $r['order_id'], + $textOf[$before[$r['order_id']]] ?? $before[$r['order_id']], + $textOf[(int) $r['oil_status_zsy']] ?? $r['oil_status_zsy'], + $r['oil_text']); +} +if (!$changed) { + echo "\n可能原因:\n" + . " 1) callback:queue 进程没在跑(supervisorctl status 看一下)\n" + . " 2) 订单当前不是「发放中」,已经是终态了(状态跃迁只从 1 出发,这是幂等设计)\n" + . " 3) 处理异常,查 runtime/storelog 下当天的 qyt_" . date('YmdH') . ".txt\n"; +} diff --git a/server-tp6/deploy/supervisor-qyt.conf b/server-tp6/deploy/supervisor-qyt.conf index b0b4149..1be1ea9 100644 --- a/server-tp6/deploy/supervisor-qyt.conf +++ b/server-tp6/deploy/supervisor-qyt.conf @@ -18,14 +18,21 @@ ; ; 【进程数说明】 ; partners:queue 可多进程(同一订单由 RedisLock 串行,安全) +; qyt:status 可多进程(同上)。7.8 是「一单一次 HTTP 调用」,单进程串行时 +; 在途单一多,一轮扫描就要几十秒,退避间隔会被拖长、分油变慢, +; 所以默认给 3 个进程。在途量更大时继续加。 ; callback:queue / notify:queue 建议保持单进程 +; +; 【改完必须重启】 +; /www/server/panel/pyenv/bin/supervisorctl update +; /www/server/panel/pyenv/bin/supervisorctl restart all ; ============================================================ [program:qyt-partners-queue] command=/www/server/php/74/bin/php think partners:queue directory=/www/wwwroot/oil user=www -numprocs=1 +numprocs=2 process_name=%(program_name)s_%(process_num)02d autostart=true autorestart=true @@ -33,7 +40,7 @@ startsecs=3 startretries=99 stopwaitsecs=10 redirect_stderr=true -stdout_logfile=/www/wwwlogs/supervisor/qyt-partners-queue.log +stdout_logfile=/www/wwwlogs/supervisor/qyt-partners-queue-%(process_num)02d.log stdout_logfile_maxbytes=50MB stdout_logfile_backups=5 @@ -41,7 +48,7 @@ stdout_logfile_backups=5 command=/www/server/php/74/bin/php think qyt:status directory=/www/wwwroot/oil user=www -numprocs=1 +numprocs=3 process_name=%(program_name)s_%(process_num)02d autostart=true autorestart=true @@ -49,7 +56,7 @@ startsecs=3 startretries=99 stopwaitsecs=10 redirect_stderr=true -stdout_logfile=/www/wwwlogs/supervisor/qyt-status-queue.log +stdout_logfile=/www/wwwlogs/supervisor/qyt-status-queue-%(process_num)02d.log stdout_logfile_maxbytes=50MB stdout_logfile_backups=5 diff --git a/server-tp6/public/index.html b/server-tp6/public/index.html index 9e2cd24..6a84d57 100644 --- a/server-tp6/public/index.html +++ b/server-tp6/public/index.html @@ -1,2 +1,2 @@ 加油
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/server-tp6/public/qytwaybill.php b/server-tp6/public/qytwaybill.php new file mode 100644 index 0000000..927375c --- /dev/null +++ b/server-tp6/public/qytwaybill.php @@ -0,0 +1,27 @@ += 20M;nginx: client_max_body_size 20m; +namespace think; + +// 检测PHP环境 +if (version_compare(PHP_VERSION, '7.1.0', '<')) die('require PHP > 7.1.0 !'); + +// 加载核心文件 +require __DIR__ . '/../vendor/autoload.php'; + +// 执行HTTP应用并响应 +$http = (new App())->http; + +// 手动指定路由 +$_SERVER['PATH_INFO'] = '/qytNotify/waybill'; + +// 绑定 api 应用 +$response = $http->name('api')->run(); + +$response->send(); + +$http->end($response); diff --git a/server-tp6/public/static/center.png b/server-tp6/public/static/center.png new file mode 100644 index 0000000..20f8e47 Binary files /dev/null and b/server-tp6/public/static/center.png differ diff --git a/server-tp6/public/static/js/chunk-vendors.47dac25a.js b/server-tp6/public/static/js/chunk-vendors.47dac25a.js new file mode 100644 index 0000000..41c8edd --- /dev/null +++ b/server-tp6/public/static/js/chunk-vendors.47dac25a.js @@ -0,0 +1,15 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00c2":function(t,e,n){"use strict";var r=n("bb80"),i=n("338c"),o=n("f660"),a=n("036b").indexOf,s=n("11bf"),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},"00ca":function(t,e,n){var r=n("56c8"),i=n("da1d"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"0173":function(t,e,n){"use strict";var r,i,o=n("85c1"),a=n("29d8"),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"01a2":function(t,e,n){"use strict";n("223c"),n("e5d4"),n("0768"),n("d4b5"),n("6994")},"036b":function(t,e,n){"use strict";var r=n("f660"),i=n("e34c"),o=n("1fc1"),a=function(t){return function(e,n,a){var s=r(e),c=o(s);if(0===c)return!t&&-1;var u,l=i(a,c);if(t&&n!==n){while(c>l)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"03a0":function(t,e,n){"use strict";var r=n("bb80"),i=n("497b"),o=n("9e70"),a=n("862c"),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),d=i(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=c(f,d),r<55296||r>56319||d+1===h||(l=c(f,d+1))<56320||l>57343?t?s(f,d):r:t?u(f,d,d+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},"03dc":function(t,e,n){"use strict";var r=n("03a0").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0506":function(t,e,n){"use strict";n("5c47");var r=n("8bdb"),i=n("71e9"),o=n("474f"),a=n("e7e3"),s=n("9e70"),c=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=/./.test;r({target:"RegExp",proto:!0,forced:!c},{test:function(t){var e=a(this),n=s(t),r=e.exec;if(!o(r))return i(u,e,n);var c=i(r,e,n);return null!==c&&(a(c),!0)}})},"0699":function(t,e,n){var r=n("d191"),i=n("d5ca"),o=n("c646"),a=n("29d5"),s=a("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||o(n=r(a)[s])?e:i(n)}},"0768":function(t,e,n){"use strict";var r=n("8bdb"),i=n("338c"),o=n("ddd3"),a=n("52df"),s=n("8b3b"),c=n("5b2c"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(u,t))return u[t]}})},"07da":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("474f"),a=n("ada5"),s=n("9ad8"),c=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return r(s,t,e);throw new c("RegExp#exec called on incompatible receiver")}},"08eb":function(t,e,n){"use strict";var r=n("8bdb"),i=n("3d77"),o=n("29ba"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},"0931":function(t,e,n){"use strict";var r=n("8c08"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"0b5a":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"0c26":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ee98").trim,o=n("8b27");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"0cc2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("a734"),a=n("8945"),s=n("474f"),c=n("4afb"),u=n("c337"),l=n("8c4f"),f=n("181d"),d=n("6aca"),h=n("81a9"),p=n("8c08"),v=n("799d"),g=n("5057"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,S){c(n,e,a);var k,C,O,T=function(t){if(t===p&&I)return I;if(!_&&t&&t in j)return j[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,j=t.prototype,M=j[w]||j["@@iterator"]||p&&j[p],I=!_&&M||T(p),P="Array"===e&&j.entries||M;if(P&&(k=u(P.call(new t)),k!==Object.prototype&&k.next&&(o||u(k)===y||(l?l(k,y):s(k[w])||h(k,w,x)),f(k,E,!0,!0),o&&(v[E]=x))),m&&"values"===p&&M&&"values"!==M.name&&(!o&&b?d(j,"name","values"):(A=!0,I=function(){return i(M,this)})),p)if(C={values:T("values"),keys:g?I:T("keys"),entries:T("entries")},S)for(O in C)(_||A||!(O in j))&&h(j,O,C[O]);else r({target:e,proto:!0,forced:_||A},C);return o&&!S||j[w]===I||h(j,w,I,{name:p}),v[e]=I,C}},"0e36":function(t,e,n){var r=n("d95b"),i=n("d970"),o=n("1e5d"),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c),l=i(a,u);if(t&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"0e40":function(t,e,n){"use strict";var r=n("86ca");t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},"0ee4":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},1001:function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=u),s(d,v,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,h);case"<":u=f[c(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}u=r[l-1]}return void 0===u?"":u}))}},1099:function(t,e,n){"use strict";var r=n("862c"),i=Object;t.exports=function(t){return i(r(t))}},"114e":function(t,e,n){"use strict";var r=n("85c1"),i=n("181d");i(r.JSON,"JSON",!0)},"11bf":function(t,e,n){"use strict";t.exports={}},1297:function(t,e,n){"use strict";var r=n("bb80");t.exports=r({}.isPrototypeOf)},12973:function(t,e,n){"use strict";var r=n("7ddb"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=i(this).length,n=a(e/2),r=0;while(r0?i(r(t),9007199254740991):0}},1535:function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"15d1":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("bb80"),s=n("71e9"),c=n("af9e"),u=n("9e70"),l=n("7f28"),f=n("3b19").c2i,d=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,m=a("".charAt),b=a("".replace),y=a(d.exec),_=!!v&&!c((function(){return"hi"!==v("aGk=")})),w=_&&c((function(){return""!==v(" ")})),x=_&&!c((function(){v("a")})),S=_&&!c((function(){v()})),k=_&&1!==v.length,C=!_||w||x||S||k;r({global:!0,bind:!0,enumerable:!0,forced:C},{atob:function(t){if(l(arguments.length,1),_&&!w&&!x)return s(v,i,t);var e,n,r,a=b(u(t),h,""),c="",S=0,k=0;if(a.length%4===0&&(a=b(a,p,"")),e=a.length,e%4===1||y(d,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(S>(-2*k&6)));return c}})},"175f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("338c"),o=n("6aca"),a=n("1297"),s=n("8c4f"),c=n("3d8a"),u=n("e157"),l=n("dcda"),f=n("e7da"),d=n("5330"),h=n("8cb1"),p=n("ab4a"),v=n("a734");t.exports=function(t,e,n,g){var m=g?2:1,b=t.split("."),y=b[b.length-1],_=r.apply(null,b);if(_){var w=_.prototype;if(!v&&i(w,"cause")&&delete w.cause,!n)return _;var x=r("Error"),S=e((function(t,e){var n=f(g?e:t,void 0),r=g?new _(t):new _;return void 0!==n&&o(r,"message",n),h(r,S,r.stack,2),this&&a(w,this)&&l(r,this,S),arguments.length>m&&d(r,arguments[m]),r}));if(S.prototype=w,"Error"!==y?s?s(S,x):c(S,x,{name:!0}):p&&"stackTraceLimit"in _&&(u(S,_,"stackTraceLimit"),u(S,_,"prepareStackTrace")),c(S,_),!v)try{w.name!==y&&o(w,"name",y),w.constructor=S}catch(k){}return S}}},"177f":function(t,e,n){var r=n("85e5"),i=n("d10a");t.exports=function(t){if("Function"===r(t))return i(t)}},"17fc":function(t,e,n){"use strict";var r=n("ac5f"),i=n("8ae2"),o=n("1c06"),a=n("8c08"),s=a("species"),c=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===c||r(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?c:e}},"181d":function(t,e,n){"use strict";var r=n("d6b1").f,i=n("338c"),o=n("8c08"),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},"18e4":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t,"string");return"symbol"===(0,r.default)(e)?e:String(e)};var r=o(n("fcf3")),i=o(n("fab0"));function o(t){return t&&t.__esModule?t:{default:t}}},"18f7":function(t,e,n){"use strict";var r=n("03a0").charAt,i=n("9e70"),o=n("235c"),a=n("0cc2"),s=n("97ed"),c=o.set,u=o.getterFor("String Iterator");a(String,"String",(function(t){c(this,{type:"String Iterator",string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},1954:function(t,e,n){"use strict";var r=n("85c1"),i=n("9f9e"),o=n("7ddb"),a=n("af9e"),s=n("37ad"),c=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!c&&a((function(){f.call(new c(1))})),h=a((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(f,d?s(u(this)):u(this),s(arguments))}),h)},1959:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f0b5"),a=n("f439"),s=n("a5c6"),c=n("7c26"),u=n("59f8");r({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1;c(t,(function(t){var o=s++,c=!1;l++,i(n,e,t).then((function(t){c||(c=!0,a[o]=t,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},"198e":function(t,e,n){"use strict";var r=n("7ddb"),i=n("323c"),o=n("af9e"),a=n("37ad"),s=r.aTypedArray,c=r.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));c("slice",(function(t,e){var n=a(s(this),t,e),r=i(this),o=0,c=n.length,u=new r(c);while(c>o)u[o]=n[o++];return u}),u)},"1aad":function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},"1ad7":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"1ae3":function(t,e,n){var r=n("fdca"),i=n("c2d7"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},"1b8e":function(t,e,n){var r=n("720d"),i=n("218d"),o=n("c646"),a=n("d459"),s=n("29d5"),c=s("iterator");t.exports=function(t){if(!o(t))return i(t,c)||i(t,"@@iterator")||a[r(t)]}},"1c06":function(t,e,n){"use strict";var r=n("474f");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},"1c16":function(t,e,n){"use strict";var r=n("3c7a"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},"1cb5":function(t,e,n){"use strict";var r=n("8c08"),i=n("e37c"),o=n("d6b1").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"1cf1":function(t,e,n){"use strict";var r=n("7ddb").exportTypedArrayMethod,i=n("af9e"),o=n("85c1"),a=n("bb80"),s=o.Uint8Array,c=s&&s.prototype||{},u=[].toString,l=a([].join);i((function(){u.call({})}))&&(u=function(){return l(this)});var f=c.toString!==u;r("toString",u,f)},"1d18":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(l){u=!0,i=l}finally{try{if(!c&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("aa9c")},"1d57":function(t,e,n){"use strict";var r=n("af9e");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"1ded":function(t,e,n){"use strict";var r=n("ab4a"),i=n("71e9"),o=n("346b"),a=n("0b5a"),s=n("f660"),c=n("f9ed"),u=n("338c"),l=n("2ba7"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"1e4f":function(t,e,n){var r=n("29d5"),i=n("d459"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},"1e5d":function(t,e,n){var r=n("1501");t.exports=function(t){return r(t.length)}},"1ea2":function(t,e,n){"use strict";var r=n("af9e"),i=n("1c06"),o=n("ada5"),a=n("5d6e"),s=Object.isExtensible,c=r((function(){s(1)}));t.exports=c||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!s||s(t)))}:s},"1eb8":function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},"1faa":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1fc1":function(t,e,n){"use strict";var r=n("c435");t.exports=function(t){return r(t.length)}},"20f3":function(t,e,n){"use strict";var r=n("8bdb"),i=n("5145");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},"218d":function(t,e,n){var r=n("f0b5"),i=n("c646");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"223c":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("bb80"),s=n("a734"),c=n("ab4a"),u=n("af71"),l=n("af9e"),f=n("338c"),d=n("1297"),h=n("e7e3"),p=n("f660"),v=n("f9ed"),g=n("9e70"),m=n("0b5a"),b=n("e37c"),y=n("ff4f"),_=n("80bb"),w=n("8449"),x=n("7d3c"),S=n("1ded"),k=n("d6b1"),C=n("a3fb"),O=n("346b"),T=n("81a9"),E=n("e4ca"),A=n("8b3b"),j=n("b223"),M=n("11bf"),I=n("d7b4"),P=n("8c08"),$=n("9917"),L=n("f259"),R=n("effb"),N=n("181d"),D=n("235c"),B=n("4d16").forEach,F=j("hidden"),z=D.set,W=D.getterFor("Symbol"),H=Object["prototype"],q=i.Symbol,U=q&&q["prototype"],V=i.RangeError,Y=i.TypeError,X=i.QObject,G=S.f,Q=k.f,K=w.f,J=O.f,Z=a([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!X||!X["prototype"]||!X["prototype"].findChild,it=function(t,e,n){var r=G(H,e);r&&delete H[e],Q(t,e,n),r&&t!==H&&Q(H,e,r)},ot=c&&l((function(){return 7!==b(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?it:Q,at=function(t,e){var n=tt[t]=b(U);return z(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},st=function(t,e,n){t===H&&st(et,e,n),h(t);var r=v(e);return h(n),f(tt,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=b(n,{enumerable:m(0,!1)})):(f(t,F)||Q(t,F,m(1,b(null))),t[F][r]=!0),ot(t,r,n)):Q(t,r,n)},ct=function(t,e){h(t);var n=p(e),r=y(n).concat(dt(n));return B(r,(function(e){c&&!o(ut,n,e)||st(t,e,n[e])})),t},ut=function(t){var e=v(t),n=o(J,this,e);return!(this===H&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,F)&&this[F][e])||n)},lt=function(t,e){var n=p(t),r=v(e);if(n!==H||!f(tt,r)||f(et,r)){var i=G(n,r);return!i||!f(tt,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},ft=function(t){var e=K(p(t)),n=[];return B(e,(function(t){f(tt,t)||f(M,t)||Z(n,t)})),n},dt=function(t){var e=t===H,n=K(e?et:p(t)),r=[];return B(n,(function(t){!f(tt,t)||e&&!f(H,t)||Z(r,tt[t])})),r};u||(q=function(){if(d(U,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=I(t),n=function(t){var r=void 0===this?i:this;r===H&&o(n,et,t),f(r,F)&&f(r[F],e)&&(r[F][e]=!1);var a=m(1,t);try{ot(r,e,a)}catch(s){if(!(s instanceof V))throw s;it(r,e,a)}};return c&&rt&&ot(H,e,{configurable:!0,set:n}),at(e,t)},U=q["prototype"],T(U,"toString",(function(){return W(this).tag})),T(q,"withoutSetter",(function(t){return at(I(t),t)})),O.f=ut,k.f=st,C.f=ct,S.f=lt,_.f=w.f=ft,x.f=dt,$.f=function(t){return at(P(t),t)},c&&(E(U,"description",{configurable:!0,get:function(){return W(this).description}}),s||T(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(y(nt),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:st,defineProperties:ct,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft}),R(),N(q,"Symbol"),M[F]=!0},"22b6":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ea07").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"235c":function(t,e,n){"use strict";var r,i,o,a=n("a20b"),s=n("85c1"),c=n("1c06"),u=n("6aca"),l=n("338c"),f=n("9b55"),d=n("b223"),h=n("11bf"),p=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw new p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},2378:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"23f4":function(t,e,n){"use strict";var r=n("ab4a"),i=n("85c1"),o=n("bb80"),a=n("8466"),s=n("dcda"),c=n("6aca"),u=n("e37c"),l=n("80bb").f,f=n("1297"),d=n("e629"),h=n("9e70"),p=n("52ac"),v=n("edb7"),g=n("e157"),m=n("81a9"),b=n("af9e"),y=n("338c"),_=n("235c").enforce,w=n("437f"),x=n("8c08"),S=n("b0a8"),k=n("cca9"),C=x("match"),O=i.RegExp,T=O.prototype,E=i.SyntaxError,A=o(T.exec),j=o("".charAt),M=o("".replace),I=o("".indexOf),P=o("".slice),$=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,R=/a/g,N=new O(L)!==L,D=v.MISSED_STICKY,B=v.UNSUPPORTED_Y,F=r&&(!N||D||S||k||b((function(){return R[C]=!1,O(L)!==L||O(R)===R||"/a/i"!==String(O(L,"i"))})));if(a("RegExp",F)){for(var z=function(t,e){var n,r,i,o,a,l,v=f(T,this),g=d(t),m=void 0===e,b=[],w=t;if(!v&&g&&m&&t.constructor===z)return t;if((g||f(T,t))&&(t=t.source,m&&(e=p(w))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),w=t,S&&"dotAll"in L&&(r=!!e&&I(e,"s")>-1,r&&(e=M(e,/s/g,""))),n=e,D&&"sticky"in L&&(i=!!e&&I(e,"y")>-1,i&&B&&(e=M(e,/y/g,""))),k&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=u(null),s=!1,c=!1,l=0,f="";r<=n;r++){if(e=j(t,r),"\\"===e)e+=j(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:A($,P(t,r+1))&&(r+=2,c=!0),i+=e,l++;continue;case">"===e&&c:if(""===f||y(a,f))throw new E("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],c=!1,f="";continue}c?f+=e:i+=e}return[i,o]}(t),t=o[0],b=o[1]),a=s(O(t,e),v?this:T,z),(r||i||b.length)&&(l=_(a),r&&(l.dotAll=!0,l.raw=z(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=j(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+j(t,++r);return i}(t),n)),i&&(l.sticky=!0),b.length&&(l.groups=b)),t!==w)try{c(a,"source",""===w?"(?:)":w)}catch(x){}return a},W=l(O),H=0;W.length>H;)g(z,O,W[H++]);T.constructor=z,z.prototype=T,m(i,"RegExp",z,{constructor:!0})}w("RegExp")},2425:function(t,e,n){"use strict";n("e7d8")},2634:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ +e.default=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(j){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new T(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(j){return{type:"throw",arg:j}}}t.wrap=f;var h={};function p(){}function v(){}function g(){}var m={};l(m,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(E([])));y&&y!==n&&i.call(y,s)&&(m=y);var _=g.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var n;o(this,"_invoke",{value:function(o,a){function s(){return new e((function(n,s){(function n(o,a,s,c){var u=d(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==(0,r.default)(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)})(o,a,n,s)}))}return n=n?n.then(s,s):s()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t},n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("3872e"),n("4e9b"),n("114e"),n("c240"),n("926e"),n("7a76"),n("c9b5"),n("aa9c"),n("2797"),n("8a8d"),n("dc69"),n("f7a5");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("fcf3"))},"266a":function(t,e,n){"use strict";var r=n("af9e"),i=n("8c08"),o=n("ab4a"),a=n("a734"),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),r+=n+t})),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2779:function(t,e,n){"use strict";var r=n("508d"),i=n("c86b"),o=n("3a4b"),a=n("3c5d"),s=n("83b3").CONSTRUCTOR,c=n("7478"),u=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return c(l&&this===u?a:this,t)}})},2797:function(t,e,n){"use strict";var r=n("85c1"),i=n("3de7"),o=n("fb6b"),a=n("f3f2"),s=n("6aca"),c=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},"27cc":function(t,e,n){var r=n("fdca"),i=n("415b"),o=n("472b"),a=n("a030");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},"29ba":function(t,e,n){"use strict";var r=n("8c08"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(c){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},"29d5":function(t,e,n){var r=n("8394"),i=n("c62a"),o=n("77cd"),a=n("8fa1"),s=n("d9a7"),c=n("344f"),u=i("wks"),l=r.Symbol,f=l&&l["for"],d=c?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(l,t)?u[t]=l[t]:u[t]=c&&f?f(e):d(e)}return u[t]}},"29d8":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"2b04":function(t,e,n){"use strict";var r=n("af9e");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"2ba7":function(t,e,n){"use strict";var r=n("ab4a"),i=n("af9e"),o=n("3f57");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"2c10":function(t,e,n){"use strict";var r=n("71e9"),i=n("7edc"),o=n("e7e3"),a=n("1eb8"),s=n("c435"),c=n("9e70"),u=n("862c"),l=n("60bc"),f=n("03dc"),d=n("07da");i("match",(function(t,e,n){return[function(e){var n=u(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var u=r.unicode;r.lastIndex=0;var l,h=[],p=0;while(null!==(l=d(r,i))){var v=c(l[0]);h[p]=v,""===v&&(r.lastIndex=f(i,s(r.lastIndex),u)),p++}return 0===p?null:h}]}))},"2c57":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("9e70"),s=n("ee98").trim,c=n("f072"),u=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=o(d.exec),p=8!==u(c+"08")||22!==u(c+"0x16")||f&&!i((function(){u(Object(f))}));t.exports=p?function(t,e){var n=s(a(t));return u(n,e>>>0||(h(d,n)?16:10))}:u},"2c6b":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"2e66":function(t,e,n){var r=n("fdca"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"2fdc":function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,c,"next",t)}function c(t){r(a,i,o,s,c,"throw",t)}s(void 0)}))}},n("bf0f")},"323c":function(t,e,n){"use strict";var r=n("7ddb"),i=n("5dfa"),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;t.exports=function(t){return o(i(t,a(t)))}},3242:function(t,e,n){"use strict";var r=n("17fc");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"330d":function(t,e,n){var r=n("1ad7"),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"335a":function(t,e,n){var r=n("d10a"),i=n("d191"),o=n("2e66");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"338c":function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"344f":function(t,e,n){var r=n("d9a7");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3462:function(t,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=n},"346b":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},3471:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,r.default)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw a}}}},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("7a76"),n("c9b5");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("5d6b"))},3487:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("3a4b"),a=n("9360"),s=n("fdca"),c=n("9320"),u=n("8a29"),l=n("335a"),f=n("ebe8"),d=n("d1a8"),h=n("27cc"),p=n("29d5"),v=n("d459"),g=n("4c77"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,S){c(n,e,a);var k,C,O,T=function(t){if(t===p&&I)return I;if(!_&&t in j)return j[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,j=t.prototype,M=j[w]||j["@@iterator"]||p&&j[p],I=!_&&M||T(p),P="Array"==e&&j.entries||M;if(P&&(k=u(P.call(new t)),k!==Object.prototype&&k.next&&(o||u(k)===y||(l?l(k,y):s(k[w])||h(k,w,x)),f(k,E,!0,!0),o&&(v[E]=x))),m&&"values"==p&&M&&"values"!==M.name&&(!o&&b?d(j,"name","values"):(A=!0,I=function(){return i(M,this)})),p)if(C={values:T("values"),keys:g?I:T("keys"),entries:T("entries")},S)for(O in C)(_||A||!(O in j))&&h(j,O,C[O]);else r({target:e,proto:!0,forced:_||A},C);return o&&!S||j[w]===I||h(j,w,I,{name:p}),v[e]=I,C}},3639:function(t,e,n){n("bf0f"),n("18f7"),n("d0af"),n("de6c"),n("6a54"),n("9a2c");var r=n("bdbb")["default"];function i(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=a?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=t[s]}return o["default"]=t,n&&n.set(t,o),o},t.exports.__esModule=!0,t.exports["default"]=t.exports},3671:function(t,e,n){var r=n("c86b");t.exports=r("document","documentElement")},3794:function(t,e,n){"use strict";var r=n("6aa6");t.exports=r("document","documentElement")},"37ad":function(t,e,n){"use strict";var r=n("bb80");t.exports=r([].slice)},3840:function(t,e,n){"use strict";var r,i,o,a=n("508d"),s=n("3a4b"),c=n("e8b8"),u=n("8394"),l=n("d7b8"),f=n("27cc"),d=n("335a"),h=n("ebe8"),p=n("f82c"),v=n("f0b5"),g=n("fdca"),m=n("1ae3"),b=n("9b8f"),y=n("0699"),_=n("fd1d").set,w=n("fac1"),x=n("4743"),S=n("a5c6"),k=n("3462"),C=n("7b05"),O=n("3c5d"),T=n("83b3"),E=n("f439"),A=T.CONSTRUCTOR,j=T.REJECTION_EVENT,M=T.SUBCLASSING,I=C.getterFor("Promise"),P=C.set,$=O&&O.prototype,L=O,R=$,N=u.TypeError,D=u.document,B=u.process,F=E.f,z=F,W=!!(D&&D.createEvent&&u.dispatchEvent),H=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},q=function(t,e){var n,r,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,c=t.resolve,u=t.reject,f=t.domain;try{s?(a||(2===e.rejection&&G(e),e.rejection=1),!0===s?n=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===t.promise?u(N("Promise-chain cycle")):(r=H(n))?l(r,n,c,u):c(n)):u(o)}catch(d){f&&!i&&f.exit(),u(d)}},U=function(t,e){t.notified||(t.notified=!0,w((function(){var n,r=t.reactions;while(n=r.get())q(n,t);t.notified=!1,e&&!t.rejection&&Y(t)})))},V=function(t,e,n){var r,i;W?(r=D.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!j&&(i=u["on"+t])?i(r):"unhandledrejection"===t&&x("Unhandled promise rejection",n)},Y=function(t){l(_,u,(function(){var e,n=t.facade,r=t.value,i=X(t);if(i&&(e=S((function(){c?B.emit("unhandledRejection",r,n):V("unhandledrejection",n,r)})),t.rejection=c||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},G=function(t){l(_,u,(function(){var e=t.facade;c?B.emit("rejectionHandled",e):V("rejectionhandled",e,t.value)}))},Q=function(t,e,n){return function(r){t(e,r,n)}},K=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,U(t,!0))},J=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw N("Promise can't be resolved itself");var r=H(e);r?w((function(){var n={done:!1};try{l(r,e,Q(J,n,t),Q(K,n,t))}catch(i){K(n,i,t)}})):(t.value=e,t.state=1,U(t,!1))}catch(i){K({done:!1},i,t)}}};if(A&&(L=function(t){b(this,R),v(t),l(r,this);var e=I(this);try{t(Q(J,e),Q(K,e))}catch(n){K(e,n)}},R=L.prototype,r=function(t){P(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})},r.prototype=f(R,"then",(function(t,e){var n=I(this),r=F(y(this,L));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=c?B.domain:void 0,0==n.state?n.reactions.add(r):w((function(){q(r,n)})),r.promise})),i=function(){var t=new r,e=I(t);this.promise=t,this.resolve=Q(J,e),this.reject=Q(K,e)},E.f=F=function(t){return t===L||void 0===t?new i(t):z(t)},!s&&g(O)&&$!==Object.prototype)){o=$.then,M||f($,"then",(function(t,e){var n=this;return new L((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete $.constructor}catch(Z){}d&&d($,R)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),h(L,"Promise",!1,!0),p("Promise")},3872:function(t,e,n){var r=n("c62a"),i=n("8fa1"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"3872e":function(t,e,n){"use strict";var r=n("f259");r("asyncIterator")},"39d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){e=(0,r.default)(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;return t},n("6a54");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("18e4"))},"3a4b":function(t,e){t.exports=!1},"3b19":function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(t){for(var e={},n=0;n<64;n++)e[t.charAt(n)]=n;return e};t.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},"3b78":function(t,e,n){var r=n("8394"),i=n("1ae3"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},"3c5d":function(t,e,n){var r=n("8394");t.exports=r.Promise},"3c7a":function(t,e,n){"use strict";var r=n("497b"),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}},"3d77":function(t,e,n){"use strict";var r=n("ae5c"),i=n("71e9"),o=n("1099"),a=n("7f5f"),s=n("81a7"),c=n("8ae2"),u=n("1fc1"),l=n("85f7"),f=n("d67c"),d=n("5112"),h=Array;t.exports=function(t){var e=o(t),n=c(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var m,b,y,_,w,x,S=d(e),k=0;if(!S||this===h&&s(S))for(m=u(e),b=n?new this(m):h(m);m>k;k++)x=g?v(e[k],k):e[k],l(b,k,x);else for(b=n?new this:[],_=f(e,S),w=_.next;!(y=i(w,_)).done;k++)x=g?a(_,v,[y.value,k],!0):y.value,l(b,k,x);return b.length=k,b}},"3d8a":function(t,e,n){"use strict";var r=n("338c"),i=n("6ac9"),o=n("1ded"),a=n("d6b1");t.exports=function(t,e,n){for(var s=i(e),c=a.f,u=o.f,l=0;l=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(v){}},"3de7":function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"3efd":function(t,e,n){"use strict";var r=n("8bdb"),i=n("1099"),o=n("1fc1"),a=n("b2b1"),s=n("a830"),c=n("41c7"),u=1!==[].unshift(0),l=u||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){c(n+r);var u=n;while(u--){var l=u+r;u in e?e[l]=e[u]:s(e,l)}for(var f=0;f3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}}(t)),n=s(i),r=0;while(r9007199254740991)throw r("Maximum allowed index exceeded");return t}},4379:function(t,e,n){"use strict";var r=n("ac38"),i=n("323c");t.exports=function(t,e){return r(i(t),e)}},"437f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("e4ca"),o=n("8c08"),a=n("ab4a"),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},"45da":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("bb80"),a=n("862c"),s=n("474f"),c=n("1eb8"),u=n("e629"),l=n("9e70"),f=n("60bc"),d=n("52ac"),h=n("1001"),p=n("8c08"),v=n("a734"),g=p("replace"),m=TypeError,b=o("".indexOf),y=o("".replace),_=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,x,S,k,C,O,T=a(this),E=0,A=0,j="";if(!c(t)){if(n=u(t),n&&(r=l(a(d(t))),!~b(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(o=f(t,g),o)return i(o,t,T,e);if(v&&n)return y(l(T),t,e)}p=l(T),x=l(t),S=s(e),S||(e=l(e)),k=x.length,C=w(1,k),E=b(p,x);while(-1!==E)O=S?l(e(x,E,p)):h(x,p,E,[],void 0,e),j+=_(p,A,E)+O,A=E+k,E=E+C>p.length?-1:b(p,x,E+C);return A1?arguments[1]:void 0)}}),a("includes")},"471d":function(t,e,n){"use strict";var r=n("e7e3");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"472b":function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=n("77cd"),a=n("1faa"),s=n("9360").CONFIGURABLE,c=n("97cf"),u=n("7b05"),l=u.enforce,f=u.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&f(this).source||c(this)}),"toString")},"473f":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9a51").left,o=n("2b04"),a=n("0173"),s=n("db06"),c=!s&&a>79&&a<83,u=c||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4743:function(t,e,n){var r=n("8394");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"474f":function(t,e,n){"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4825:function(t,e,n){var r=n("d10a"),i=n("7aa6"),o=n("fdca"),a=n("720d"),s=n("c86b"),c=n("97cf"),u=function(){},l=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(u),v=function(t){if(!o(t))return!1;try{return f(u,l,t),!0}catch(e){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,c(t))}catch(e){return!0}};g.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},"497b":function(t,e,n){"use strict";var r=n("1aad");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"49a5":function(t,e,n){var r=n("8394"),i=n("a030"),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},"49fc":function(t,e,n){"use strict";var r=n("bb80"),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",s=RangeError,c=r(o.exec),u=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),h=r([].push),p=r("".replace),v=r("".split),g=r("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;t=n?u(t/700):t>>1,t+=u(t/e);while(t>455)t=u(t/35),r+=36;return u(r+36*t/(t+38))},y=function(t){var e=[];t=function(t){var e=[],n=0,r=t.length;while(n=55296&&i<=56319&&n=o&&ru((2147483647-c)/_))throw new s(a);for(c+=(y-o)*_,o=y,n=0;n2147483647)throw new s(a);if(r===o){var w=c,x=36;while(1){var S=x<=p?1:x>=p+26?26:x-p;if(wk;k++)if((h||k in w)&&(b=w[k],y=S(b,k,_),t))if(e)O[k]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return k;case 2:u(O,b)}else switch(t){case 4:return!1;case 7:u(O,b)}return f?-1:i||l?l:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},"4d8f":function(t,e,n){"use strict";var r=n("7ddb"),i=n("1fc1"),o=n("497b"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(t){var e=a(this),n=i(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},"4db2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("af9e"),a=n("efa5"),s=n("e7e3"),c=n("e34c"),u=n("c435"),l=n("5dfa"),f=a.ArrayBuffer,d=a.DataView,h=d.prototype,p=i(f.prototype.slice),v=i(h.getUint8),g=i(h.setUint8),m=o((function(){return!new f(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(t,e){if(p&&void 0===e)return p(s(this),t);var n=s(this).byteLength,r=c(t,n),i=c(void 0===e?n:e,n),o=new(l(this,f))(u(i-r)),a=new d(this),h=new d(o),m=0;while(rb;b++)if(_=j(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=j(x.value)}catch(M){d(g,"throw",M)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"508d":function(t,e,n){var r=n("8394"),i=n("d953").f,o=n("d1a8"),a=n("27cc"),s=n("a030"),c=n("c199"),u=n("1535");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"50d5":function(t,e,n){"use strict";var r=n("c215"),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},5112:function(t,e,n){"use strict";var r=n("8e02"),i=n("60bc"),o=n("1eb8"),a=n("799d"),s=n("8c08"),c=s("iterator");t.exports=function(t){if(!o(t))return i(t,c)||i(t,"@@iterator")||a[r(t)]}},5145:function(t,e,n){"use strict";var r=n("9f9e"),i=n("f660"),o=n("497b"),a=n("1fc1"),s=n("2b04"),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=l||!f;t.exports=d?function(t){if(l)return r(u,this,arguments)||0;var e=i(this),n=a(e);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=c(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:u},"52ac":function(t,e,n){"use strict";var r=n("71e9"),i=n("338c"),o=n("1297"),a=n("471d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},"52df":function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},5330:function(t,e,n){"use strict";var r=n("1c06"),i=n("6aca");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},5628:function(t,e,n){var r=n("1faa"),i=n("632d"),o=n("415b"),a=n("d191"),s=n("d95b"),c=n("9105");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=s(e),i=c(e),u=i.length,l=0;while(u>l)o.f(t,n=i[l++],r[n]);return t}},"569b":function(t,e,n){"use strict";var r=n("8c08"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"56c8":function(t,e,n){var r=n("d10a"),i=n("77cd"),o=n("d95b"),a=n("0e36").indexOf,s=n("bd8a"),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},"57e2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},"59f8":function(t,e,n){var r=n("3c5d"),i=n("d47e"),o=n("83b3").CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},"5a56":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("0b5a"),s=n("d6b1").f,c=n("338c"),u=n("b720"),l=n("dcda"),f=n("e7da"),d=n("e6a2"),h=n("7e87"),p=n("ab4a"),v=n("a734"),g=o("Error"),m=o("DOMException"),b=function(){u(this,y);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new m(e,n),i=new g(e);return i.name="DOMException",s(r,"stack",a(1,h(i.stack,1))),l(r,this,b),r},y=b.prototype=m.prototype,_="stack"in new g("DOMException"),w="stack"in new m(1,2),x=m&&p&&Object.getOwnPropertyDescriptor(i,"DOMException"),S=!!x&&!(x.writable&&x.configurable),k=_&&!S&&!w;r({global:!0,constructor:!0,forced:v||k},{DOMException:k?b:m});var C=o("DOMException"),O=C.prototype;if(O.constructor!==C)for(var T in v||s(O,"constructor",a(1,C)),d)if(c(d,T)){var E=d[T],A=E.s;c(C,A)||s(C,A,a(6,E.c))}},"5ac7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("bb80"),o=n("b6a1"),a=n("862c"),s=n("9e70"),c=n("0931"),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~u(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},"5b2c":function(t,e,n){"use strict";var r=n("af71");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"5c47":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9ad8");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},"5d56":function(t,e,n){"use strict";var r=n("bb80"),i=n("ac5f"),o=n("474f"),a=n("ada5"),s=n("9e70"),c=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},"5ee2":function(t,e,n){"use strict";var r=n("8ae2"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},"5ef2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("036b").indexOf,a=n("2b04"),s=i([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=c||!a("indexOf");r({target:"Array",proto:!0,forced:u},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?s(this,t,e)||0:o(this,t,e)}})},"5fd9":function(t,e,n){"use strict";var r=n("29d8"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"60bc":function(t,e,n){"use strict";var r=n("7992"),i=n("1eb8");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},6158:function(t,e,n){"use strict";var r=n("ae5c"),i=n("7e41"),o=n("1099"),a=n("1fc1"),s=function(t){var e=1===t;return function(n,s,c){var u,l,f=o(n),d=i(f),h=a(d),p=r(s,c);while(h-- >0)if(u=d[h],l=p(u,h,f),l)switch(t){case 0:return u;case 1:return h}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},"61a3":function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f439"),a=n("83b3").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6242:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return t}},"62b0":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e&&("object"===(0,r.default)(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.default)(t)},n("7a76"),n("c9b5");var r=o(n("fcf3")),i=o(n("f478"));function o(t){return t&&t.__esModule?t:{default:t}}},"62f7":function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6314:function(t,e,n){var r=n("c86b"),i=n("d10a"),o=n("00ca"),a=n("ed01"),s=n("d191"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},"632d":function(t,e,n){var r=n("1faa"),i=n("7aa6");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"63b1":function(t,e,n){"use strict";var r=n("85c1"),i=n("9f69"),o=n("af9e"),a=n("7992"),s=n("b643"),c=n("7ddb"),u=n("5fd9"),l=n("8d24"),f=n("0173"),d=n("a700"),h=c.aTypedArray,p=c.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),m=!!g&&!(o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),b=!!g&&!o((function(){if(f)return f<74;if(u)return u<67;if(l)return!0;if(d)return d<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),b?g(this,t):s(h(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!b||m)},"641a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"64aa":function(t,e,n){"use strict";var r=n("8bdb"),i=n("a734"),o=n("ab4a"),a=n("85c1"),s=n("a1d4"),c=n("bb80"),u=n("8466"),l=n("338c"),f=n("dcda"),d=n("1297"),h=n("ddd3"),p=n("c215"),v=n("af9e"),g=n("80bb").f,m=n("1ded").f,b=n("d6b1").f,y=n("83fa"),_=n("ee98").trim,w=a["Number"],x=s["Number"],S=w.prototype,k=a.TypeError,C=c("".slice),O=c("".charCodeAt),T=function(t){var e=p(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,r,i,o,a,s,c,u=p(t,"number");if(h(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=_(u),e=O(u,0),43===e||45===e){if(n=O(u,2),88===n||120===n)return NaN}else if(48===e){switch(O(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=C(u,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+u},A=u("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),j=function(t){return d(S,t)&&v((function(){y(t)}))},M=function(t){var e=arguments.length<1?0:w(T(t));return j(this)?f(Object(e),this,M):e};M.prototype=S,A&&!i&&(S.constructor=M),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:M});var I=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&b(t,n,m(e,n))};i&&x&&I(s["Number"],x),(A||i)&&I(s["Number"],w)},"64e0":function(t,e,n){"use strict";var r=n("7ddb"),i=n("6158").findLast,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"668a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"66b1":function(t,e,n){var r=n("57e2");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"66ee":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"68fd":function(t,e,n){"use strict";var r=n("8e02");t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},6994:function(t,e,n){"use strict";var r=n("8bdb"),i=n("af71"),o=n("af9e"),a=n("7d3c"),s=n("1099"),c=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},"6a2b":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1"),a=n("a830"),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=o(n),u=i(t,c),l=i(e,c),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?c:i(f,c))-l,c-u),h=1;l0)l in n?n[u]=n[l]:a(n,u),u+=h,l+=h;return n}},"6a50":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("ab4a"),s=n("9839"),c=n("7ddb"),u=n("efa5"),l=n("b720"),f=n("0b5a"),d=n("6aca"),h=n("f221"),p=n("c435"),v=n("cc36"),g=n("1c16"),m=n("7df8"),b=n("f9ed"),y=n("338c"),_=n("8e02"),w=n("1c06"),x=n("ddd3"),S=n("e37c"),k=n("1297"),C=n("8c4f"),O=n("80bb").f,T=n("b32e"),E=n("4d16").forEach,A=n("437f"),j=n("e4ca"),M=n("d6b1"),I=n("1ded"),P=n("ac38"),$=n("235c"),L=n("dcda"),R=$.get,N=$.set,D=$.enforce,B=M.f,F=I.f,z=i.RangeError,W=u.ArrayBuffer,H=W.prototype,q=u.DataView,U=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,Y=c.TypedArray,X=c.TypedArrayPrototype,G=c.isTypedArray,Q=function(t,e){j(t,e,{configurable:!0,get:function(){return R(this)[e]}})},K=function(t){var e;return k(H,t)||"ArrayBuffer"===(e=_(t))||"SharedArrayBuffer"===e},J=function(t,e){return G(t)&&!x(e)&&e in t&&h(+e)&&e>=0},Z=function(t,e){return e=b(e),J(t,e)?f(2,t[e]):F(t,e)},tt=function(t,e,n){return e=b(e),!(J(t,e)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};a?(U||(I.f=Z,M.f=tt,Q(X,"buffer"),Q(X,"byteOffset"),Q(X,"byteLength"),Q(X,"length")),r({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:Z,defineProperty:tt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,c=t+(n?"Clamped":"")+"Array",u="get"+t,f="set"+t,h=i[c],b=h,y=b&&b.prototype,_={},x=function(t,e){B(t,e,{get:function(){return function(t,e){var n=R(t);return n.view[u](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=R(t);i.view[f](e*a+i.byteOffset,n?m(r):r,!0)}(this,e,t)},enumerable:!0})};U?s&&(b=e((function(t,e,n,r){return l(t,y),L(function(){return w(e)?K(e)?void 0!==r?new h(e,g(n,a),r):void 0!==n?new h(e,g(n,a)):new h(e):G(e)?P(b,e):o(T,b,e):new h(v(e))}(),t,b)})),C&&C(b,Y),E(O(h),(function(t){t in b||d(b,t,h[t])})),b.prototype=y):(b=e((function(t,e,n,r){l(t,y);var i,s,c,u=0,f=0;if(w(e)){if(!K(e))return G(e)?P(b,e):o(T,b,e);i=e,f=g(n,a);var d=e.byteLength;if(void 0===r){if(d%a)throw new z("Wrong length");if(s=d-f,s<0)throw new z("Wrong length")}else if(s=p(r)*a,s+f>d)throw new z("Wrong length");c=s/a}else c=v(e),s=c*a,i=new W(s);N(t,{buffer:i,byteOffset:f,byteLength:s,length:c,view:new q(i)});while(u?@[\\\]^|]/,Z=/[\0\t\n\r #/:<>?@[\\\]^|]/,tt=/^[\u0000-\u0020]+/,et=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nt=/[\t\n\r]/g,rt=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)q(e,t%256),t=M(t/256);return L(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=R(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},it={},ot=p({},it,{" ":1,'"':1,"<":1,">":1,"`":1}),at=p({},ot,{"#":1,"?":1,"{":1,"}":1}),st=p({},at,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(t,e){var n=m(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},ut={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lt=function(t,e){var n;return 2===t.length&&$(U,P(t,0))&&(":"===(n=P(t,1))||!e&&"|"===n)},ft=function(t){var e;return t.length>1&<(W(t,0,2))&&(2===t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===H(t)},ht=function(t){return t=H(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},pt={},vt={},gt={},mt={},bt={},yt={},_t={},wt={},xt={},St={},kt={},Ct={},Ot={},Tt={},Et={},At={},jt={},Mt={},It={},Pt={},$t={},Lt=function(t,e,n){var r,i,o,a=y(t);if(e){if(i=this.parse(a),i)throw new A(i);this.searchParams=null}else{if(void 0!==n&&(r=new Lt(n,!0)),i=this.parse(a,null,r),i)throw new A(i);o=T(new O),o.bindURL(this),this.searchParams=o}};Lt.prototype={type:"URL",parse:function(t,e,n){var i,o,a,s,c=this,u=e||pt,l=0,f="",d=!1,p=!1,m=!1;t=y(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=B(t,tt,""),t=B(t,et,"$1")),t=B(t,nt,""),i=v(t);while(l<=i.length){switch(o=i[l],u){case pt:if(!o||!$(U,o)){if(e)return"Invalid scheme";u=gt;continue}f+=H(o),u=vt;break;case vt:if(o&&($(V,o)||"+"===o||"-"===o||"."===o))f+=H(o);else{if(":"!==o){if(e)return"Invalid scheme";f="",u=gt,l=0;continue}if(e&&(c.isSpecial()!==h(ut,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ut[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=Tt:c.isSpecial()&&n&&n.scheme===c.scheme?u=mt:c.isSpecial()?u=wt:"/"===i[l+1]?(u=bt,l++):(c.cannotBeABaseURL=!0,D(c.path,""),u=It)}break;case gt:if(!n||n.cannotBeABaseURL&&"#"!==o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=$t;break}u="file"===n.scheme?Tt:yt;continue;case mt:if("/"!==o||"/"!==i[l+1]){u=yt;continue}u=xt,l++;break;case bt:if("/"===o){u=St;break}u=Mt;continue;case yt:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())u=_t;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",u=Pt;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,u=Mt;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",u=$t}break;case _t:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Mt;continue}u=St}else u=xt;break;case wt:if(u=xt,"/"!==o||"/"!==P(f,l+1))continue;l++;break;case xt:if("/"!==o&&"\\"!==o){u=St;continue}break;case St:if("@"===o){d&&(f="%40"+f),d=!0,a=v(f);for(var b=0;b65535)return"Invalid port";c.port=c.isSpecial()&&x===ut[c.scheme]?null:x,f=""}if(e)return;u=jt;continue}return"Invalid port"}f+=o;break;case Tt:if(c.scheme="file","/"===o||"\\"===o)u=Et;else{if(!n||"file"!==n.scheme){u=Mt;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",u=Pt;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",u=$t;break;default:ft(L(g(i,l),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),u=Mt;continue}}break;case Et:if("/"===o||"\\"===o){u=At;break}n&&"file"===n.scheme&&!ft(L(g(i,l),""))&&(lt(n.path[0],!0)?D(c.path,n.path[0]):c.host=n.host),u=Mt;continue;case At:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&<(f))u=Mt;else if(""===f){if(c.host="",e)return;u=jt}else{if(s=c.parseHost(f),s)return s;if("localhost"===c.host&&(c.host=""),e)return;f="",u=jt}continue}f+=o;break;case jt:if(c.isSpecial()){if(u=Mt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(u=Mt,"/"!==o))continue}else c.fragment="",u=$t;else c.query="",u=Pt;break;case Mt:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(ht(f)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||D(c.path,"")):dt(f)?"/"===o||"\\"===o&&c.isSpecial()||D(c.path,""):("file"===c.scheme&&!c.path.length&<(f)&&(c.host&&(c.host=""),f=P(f,0)+":"),D(c.path,f)),f="","file"===c.scheme&&(o===r||"?"===o||"#"===o))while(c.path.length>1&&""===c.path[0])F(c.path);"?"===o?(c.query="",u=Pt):"#"===o&&(c.fragment="",u=$t)}else f+=ct(o,at);break;case It:"?"===o?(c.query="",u=Pt):"#"===o?(c.fragment="",u=$t):o!==r&&(c.path[0]+=ct(o,it));break;case Pt:e||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ct(o,it)):(c.fragment="",u=$t);break;case $t:o!==r&&(c.fragment+=ct(o,ot));break}l++}},parseHost:function(t){var e,n,r;if("["===P(t,0)){if("]"!==P(t,t.length-1))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,d=function(){return P(t,f)};if(":"===d()){if(":"!==P(t,1))return;f+=2,u++,l=u}while(d()){if(8===u)return;if(":"!==d()){e=n=0;while(n<4&&$(K,d()))e=16*e+j(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!$(Y,d()))return;while($(Y,d())){if(o=j(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,r++,2!==r&&4!==r||u++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;c[u++]=e}else{if(null!==l)return;f++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!==u&&a>0)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s}else if(8!==u)return;return c}(W(t,1,-1)),!e)return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=b(t),$(J,t))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,s,c=z(t,".");if(c.length&&""===c[c.length-1]&&c.length--,e=c.length,e>4)return t;for(n=[],r=0;r1&&"0"===P(i,0)&&(o=$(X,i)?16:8,i=W(i,8===o?1:2)),""===i)a=0;else{if(!$(10===o?Q:8===o?G:K,i))return t;a=j(i,o)}D(n,a)}for(r=0;r=I(256,5-e))return null}else if(a>255)return null;for(s=N(n),r=0;r1?arguments[1]:void 0,r=k(e,new Lt(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Nt=Rt.prototype,Dt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Nt,"href",Dt("serialize","setHref")),f(Nt,"origin",Dt("getOrigin")),f(Nt,"protocol",Dt("getProtocol","setProtocol")),f(Nt,"username",Dt("getUsername","setUsername")),f(Nt,"password",Dt("getPassword","setPassword")),f(Nt,"host",Dt("getHost","setHost")),f(Nt,"hostname",Dt("getHostname","setHostname")),f(Nt,"port",Dt("getPort","setPort")),f(Nt,"pathname",Dt("getPathname","setPathname")),f(Nt,"search",Dt("getSearch","setSearch")),f(Nt,"searchParams",Dt("getSearchParams")),f(Nt,"hash",Dt("getHash","setHash"))),l(Nt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(Nt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),E){var Bt=E.createObjectURL,Ft=E.revokeObjectURL;Bt&&l(Rt,"createObjectURL",c(Bt,E)),Ft&&l(Rt,"revokeObjectURL",c(Ft,E))}_(Rt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Rt})},"6be7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("1c06"),a=n("e7e3"),s=n("cfaf"),c=n("1ded"),u=n("c337");r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return a(e)===f?e[n]:(r=c.f(e,n),r?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=u(e))?t(l,n,f):void 0)}})},"6bfa":function(t,e,n){"use strict";var r=n("f660"),i=n("1cb5"),o=n("799d"),a=n("235c"),s=n("d6b1").f,c=n("0cc2"),u=n("97ed"),l=n("a734"),f=n("ab4a"),d=a.set,h=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){d(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(v){}},"6c13":function(t,e,n){var r=n("c86b");t.exports=r("navigator","userAgent")||""},"6c31":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},n("bf0f"),n("7996"),n("6a88")},"6e4a":function(t,e,n){"use strict";var r=n("508d"),i=n("3a4b"),o=n("3c5d"),a=n("7aa6"),s=n("c86b"),c=n("fdca"),u=n("0699"),l=n("7478"),f=n("27cc"),d=o&&o.prototype,h=!!o&&a((function(){d["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=u(this,s("Promise")),n=c(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&c(o)){var p=s("Promise").prototype["finally"];d["finally"]!==p&&f(d,"finally",p,{unsafe:!0})}},"6f19":function(t,e,n){var r=n("6c13");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},7054:function(t,e,n){"use strict";var r=n("e7e3"),i=n("df92"),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},"70a5":function(t,e,n){var r=n("6c13"),i=n("8394");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},"71e9":function(t,e,n){"use strict";var r=n("8f26"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},"720d":function(t,e,n){var r=n("d456"),i=n("fdca"),o=n("85e5"),a=n("29d5"),s=a("toStringTag"),c=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=c(t),s))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},7257:function(t,e,n){"use strict";var r=n("db06");t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},"73e1":function(t,e,n){"use strict";var r=n("29d8");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},7478:function(t,e,n){var r=n("d191"),i=n("1ae3"),o=n("f439");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},7658:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("bb80"),a=n("8466"),s=n("81a9"),c=n("d0b1"),u=n("5075"),l=n("b720"),f=n("474f"),d=n("1eb8"),h=n("1c06"),p=n("af9e"),v=n("29ba"),g=n("181d"),m=n("dcda");t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),_=b?"set":"add",w=i[t],x=w&&w.prototype,S=w,k={},C=function(t){var e=o(x[t]);s(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return y&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},O=a(t,!f(w)||!(y||x.forEach&&!p((function(){(new w).entries().next()}))));if(O)S=n.getConstructor(e,t,b,_),c.enable();else if(a(t,!0)){var T=new S,E=T[_](y?{}:-0,1)!==T,A=p((function(){T.has(1)})),j=v((function(t){new w(t)})),M=!y&&p((function(){var t=new w,e=5;while(e--)t[_](e,e);return!t.has(-0)}));j||(S=e((function(t,e){l(t,x);var n=m(new w,t,S);return d(e)||u(e,n[_],{that:n,AS_ENTRIES:b}),n})),S.prototype=x,x.constructor=S),(A||M)&&(C("delete"),C("has"),b&&C("get")),(M||E)&&C(_),y&&x.clear&&delete x.clear}return k[t]=S,r({global:!0,constructor:!0,forced:S!==w},k),g(S,t),y||n.setStrong(S,t,b),S}},"77b2":function(t,e,n){var r=n("d10a");t.exports=r({}.isPrototypeOf)},"77cd":function(t,e,n){var r=n("d10a"),i=n("b510"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7934:function(t,e,n){"use strict";var r=n("569b"),i=n("8e02");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},"795c":function(t,e,n){"use strict";var r=n("8bdb"),i=n("db04").start,o=n("73e1");r({target:"String",proto:!0,forced:o},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7992:function(t,e,n){"use strict";var r=n("474f"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},7996:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("181d");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},"799d":function(t,e,n){"use strict";t.exports={}},"7a76":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("9f9e"),a=n("175f"),s=i["WebAssembly"],c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},l=function(t,e){if(s&&s[t]){var n={};n[t]=a("WebAssembly."+t,e,c),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},"7aa6":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7b05":function(t,e,n){var r,i,o,a=n("c7dd"),s=n("8394"),c=n("1ae3"),u=n("d1a8"),l=n("77cd"),f=n("49a5"),d=n("3872"),h=n("bd8a"),p=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},"7b97":function(t,e,n){"use strict";var r=n("bb80"),i=n("7ddb"),o=n("6a2b"),a=r(o),s=i.aTypedArray,c=i.exportTypedArrayMethod;c("copyWithin",(function(t,e){return a(s(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"7c26":function(t,e,n){var r=n("dbc3"),i=n("d7b8"),o=n("d191"),a=n("e158"),s=n("1e4f"),c=n("1e5d"),u=n("77b2"),l=n("bef2"),f=n("1b8e"),d=n("e39d"),h=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,b,y,_,w,x,S=n&&n.that,k=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),E=r(e,S),A=function(t){return g&&d(g,"normal",t),new p(!0,t)},j=function(t){return k?(o(t),T?E(t[0],t[1],A):E(t[0],t[1])):T?E(t,A):E(t)};if(C)g=t.iterator;else if(O)g=t;else{if(m=f(t),!m)throw h(a(t)+" is not iterable");if(s(m)){for(b=0,y=c(t);y>b;b++)if(_=j(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=j(x.value)}catch(M){d(g,"throw",M)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"7d2f":function(t,e,n){"use strict";var r=n("ab4a"),i=n("b0a8"),o=n("ada5"),a=n("e4ca"),s=n("235c").get,c=RegExp.prototype,u=TypeError;r&&i&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===o(this))return!!s(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})},"7d3c":function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"7ddb":function(t,e,n){"use strict";var r,i,o,a=n("c89b"),s=n("ab4a"),c=n("85c1"),u=n("474f"),l=n("1c06"),f=n("338c"),d=n("8e02"),h=n("52df"),p=n("6aca"),v=n("81a9"),g=n("e4ca"),m=n("1297"),b=n("c337"),y=n("8c4f"),_=n("8c08"),w=n("d7b4"),x=n("235c"),S=x.enforce,k=x.get,C=c.Int8Array,O=C&&C.prototype,T=c.Uint8ClampedArray,E=T&&T.prototype,A=C&&b(C),j=O&&b(O),M=Object.prototype,I=c.TypeError,P=_("toStringTag"),$=w("TYPED_ARRAY_TAG"),L=a&&!!y&&"Opera"!==d(c.opera),R=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=b(t);if(l(e)){var n=k(e);return n&&f(n,"TypedArrayConstructor")?n["TypedArrayConstructor"]:B(e)}},F=function(t){if(!l(t))return!1;var e=d(t);return f(N,e)||f(D,e)};for(r in N)i=c[r],o=i&&i.prototype,o?S(o)["TypedArrayConstructor"]=i:L=!1;for(r in D)i=c[r],o=i&&i.prototype,o&&(S(o)["TypedArrayConstructor"]=i);if((!L||!u(A)||A===Function.prototype)&&(A=function(){throw new I("Incorrect invocation")},L))for(r in N)c[r]&&y(c[r],A);if((!L||!j||j===M)&&(j=A.prototype,L))for(r in N)c[r]&&y(c[r].prototype,j);if(L&&b(E)!==j&&y(E,j),s&&!f(j,P))for(r in R=!0,g(j,P,{configurable:!0,get:function(){return l(this)?this[$]:void 0}}),N)c[r]&&p(c[r],$,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:R&&$,aTypedArray:function(t){if(F(t))return t;throw new I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(u(t)&&(!y||m(A,t)))return t;throw new I(h(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in N){var o=c[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(u){}}}j[t]&&!n||v(j,t,n?e:L&&O[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(y){if(n)for(r in N)if(i=c[r],i&&f(i,t))try{delete i[t]}catch(o){}if(A[t]&&!n)return;try{return v(A,t,n?e:L&&A[t]||e)}catch(o){}}for(r in N)i=c[r],!i||i[t]&&!n||v(i,t,e)}},getTypedArrayConstructor:B,isView:function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||f(N,e)||f(D,e)},isTypedArray:F,TypedArray:A,TypedArrayPrototype:j}},"7df8":function(t,e,n){"use strict";var r=Math.round;t.exports=function(t){var e=r(t);return e<0?0:e>255?255:255&e}},"7e41":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("ada5"),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"7e87":function(t,e,n){"use strict";var r=n("bb80"),i=Error,o=r("".replace),a=function(t){return String(new i("zxcasd").stack)}(),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"7e91":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("60bc");t.exports=function(t,e,n){var a,s;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(c){s=!0,a=c}if("throw"===e)throw n;if(s)throw a;return i(a),n}},"7edc":function(t,e,n){"use strict";n("5c47");var r=n("71e9"),i=n("81a9"),o=n("9ad8"),a=n("af9e"),s=n("8c08"),c=n("6aca"),u=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=s(t),h=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),p=h&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!h||!p||n){var v=/./[d],g=e(d,""[t],(function(t,e,n,i,a){var s=e.exec;return s===o||s===l.exec?h&&!a?{done:!0,value:r(v,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,d,g[1])}f&&c(l[d],"sham",!0)}},"7edd":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("7ddb"),s=n("6bfa"),c=n("8c08"),u=c("iterator"),l=r.Uint8Array,f=o(s.values),d=o(s.keys),h=o(s.entries),p=a.aTypedArray,v=a.exportTypedArrayMethod,g=l&&l.prototype,m=!i((function(){g[u].call([1])})),b=!!g&&g.values&&g[u]===g.values&&"values"===g.values.name,y=function(){return f(p(this))};v("entries",(function(){return h(p(this))}),m),v("keys",(function(){return d(p(this))}),m),v("values",y,m||!b,{name:"values"}),v(u,y,m||!b,{name:"values"})},"7f28":function(t,e,n){"use strict";var r=TypeError;t.exports=function(t,e){if(t"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&r?p(r):function(){var t,e=u("iframe");return e.style.display="none",c.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F}():p(r);var t=a.length;while(t--)delete v["prototype"][a[t]];return v()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d["prototype"]=i(t),n=new d,d["prototype"]=null,n[f]=t):n=v(),void 0===e?n:o.f(n,e)}},"84d6":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1");t.exports=function(t){var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>s)e[s++]=t;return e}},8557:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},8598:function(t,e,n){"use strict";var r=n("bb80"),i=n("7992"),o=n("1c06"),a=n("338c"),s=n("37ad"),c=n("8f26"),u=Function,l=r([].concat),f=r([].join),d={},h=function(t,e,n){if(!a(d,e)){for(var r=[],i=0;in||l!==l?c*(1/0):c*l}},"884b":function(t,e,n){"use strict";var r=n("338c"),i=n("81a9"),o=n("7054"),a=n("8c08"),s=a("toPrimitive"),c=Date.prototype;r(c,s)||i(c,s,o)},8945:function(t,e,n){"use strict";var r=n("ab4a"),i=n("338c"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"8a29":function(t,e,n){var r=n("77cd"),i=n("fdca"),o=n("b510"),a=n("3872"),s=n("66ee"),c=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},"8a8d":function(t,e,n){"use strict";var r=n("8bdb"),i=n("8c4f");r({target:"Object",stat:!0},{setPrototypeOf:i})},"8ae2":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("474f"),a=n("8e02"),s=n("6aa6"),c=n("ca99"),u=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(u),p=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,c(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},"8b27":function(t,e,n){"use strict";var r=n("8945").PROPER,i=n("af9e"),o=n("f072");t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},"8b3b":function(t,e,n){"use strict";var r=n("9b55");t.exports=function(t,e){return r[t]||(r[t]=e||{})}},"8bdb":function(t,e,n){"use strict";var r=n("85c1"),i=n("1ded").f,o=n("6aca"),a=n("81a9"),s=n("c9b7"),c=n("3d8a"),u=n("8466");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):r[v]&&r[v].prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"8c08":function(t,e,n){"use strict";var r=n("85c1"),i=n("8b3b"),o=n("338c"),a=n("d7b4"),s=n("af71"),c=n("4f04"),u=r.Symbol,l=i("wks"),f=c?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},"8c18":function(t,e,n){"use strict";var r=n("7ddb"),i=n("9a51").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},"8c4f":function(t,e,n){"use strict";var r=n("960c"),i=n("1c06"),o=n("862c"),a=n("a048");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},"8cb1":function(t,e,n){"use strict";var r=n("6aca"),i=n("7e87"),o=n("417a"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):r(t,"stack",i(n,s)))}},"8d0b":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=m(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=b(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=b(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){var r=a+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,u)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function m(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||(l=t, +/*! + * vuex v3.6.2 + * (c) 2021 Evan You + * @license MIT + */ +function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,i=b(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=b(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return h(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),p(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),p(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=O(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),w=C((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),x=C((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),S=C((function(t,e){var n={};return k(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function k(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function O(t,e,n){var r=t._modulesNamespaceMap[n];return r}function T(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function E(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function A(){var t=new Date;return" @ "+j(t.getHours(),2)+":"+j(t.getMinutes(),2)+":"+j(t.getSeconds(),2)+"."+j(t.getMilliseconds(),3)}function j(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var M={Store:f,install:y,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:S,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=i(t.state);"undefined"!==typeof l&&(c&&t.subscribe((function(t,a){var s=i(a);if(n(t,f,s)){var c=A(),u=o(t),d="mutation "+t.type+c;T(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),E(l)}f=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=A(),i=s(t),o="action "+t.type+r;T(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),E(l)}})))}}};t.exports=M}).call(this,n("0ee4"))},"8f71":function(t,e,n){"use strict";var r=n("8bdb"),i=n("4d16").filter,o=n("a554"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"8fa1":function(t,e,n){var r=n("d10a"),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},"8ff5":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").filter,o=n("4379"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},9105:function(t,e,n){var r=n("56c8"),i=n("da1d");t.exports=Object.keys||function(t){return r(t,i)}},"911a":function(t,e,n){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}},"926e":function(t,e,n){"use strict";var r=n("8bdb"),i=n("af9e"),o=n("1099"),a=n("c337"),s=n("1d57"),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"92b3":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9320:function(t,e,n){"use strict";var r=n("4c77").IteratorPrototype,i=n("849d"),o=n("92b3"),a=n("ebe8"),s=n("d459"),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,l,!1,!0),s[l]=c,t}},9337:function(t,e,n){(function(t){var r=n("bdbb").default;n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("4e9b"),n("114e"),n("c240"),n("5ef2"),n("23f4"),n("7d2f"),n("5c47"),n("9c4e"),n("ab80"),n("0506"),n("e838"),n("2c10"),n("a1c1"),n("0c26"),n("c223"),n("dc8a"),n("2797"),n("aa9c"),n("8f71"),n("fd3c"),n("dd2b"),n("64aa"),n("de6c"),n("7a76"),n("c9b5"),n("e966"),n("4626"),n("22b6"),n("80e3"),n("4db2"),n("f7a5"),n("18f7"),n("9db6"),n("aa77"),n("d4b5"),n("473f"),n("15d1"),n("d5c6"),n("5a56"),n("f074"),n("4100"),n("08eb"),n("844d"),n("9a2c"),n("a644"),n("a03a"),n("3efd"),n("3872e"),n("926e"),n("8a8d"),n("dc69"),n("9480"),n("4d8f"),n("7b97"),n("668a"),n("c5b7"),n("8ff5"),n("2378"),n("641a"),n("64e0"),n("cce3"),n("efba"),n("d009"),n("bd7d"),n("7edd"),n("d798"),n("f547"),n("5e54"),n("b60a"),n("8c18"),n("12973"),n("f991"),n("198e"),n("8557"),n("63b1"),n("1954"),n("1cf1"),n("5ac7"),n("af8f"),n("c976"),n("dfcf"),n("bd06"),n("dc89"),n("2425"),n("6a88"),n("7996"),n("6be7"),n("45da"),function(i,o){"object"===r(e)&&"object"===r(t)?t.exports=o(n("d3b4"),n("9b8e"),n("bcdb")):n("2c6b")([,,],o)}("undefined"!==typeof self&&self,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="393d")}({"0071":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("340d"),i=n("71a4");function o(t){var e={};for(var n in t){var o=t[n];Object(r["k"])(o)&&(e[n]=Object(i["a"])(o),delete t[n])}return e}},"0126":function(t,e,n){"use strict";n.r(e),n.d(e,"getLaunchOptionsSync",(function(){return i})),n.d(e,"getEnterOptionsSync",(function(){return o}));var r=n("3d1e");function i(){return Object(r["e"])()}function o(){return Object(r["d"])()}},"01aa":function(t,e,n){"use strict";var r=n("e32e"),i=n.n(r);i.a},"01fd":function(t,e,n){"use strict";n.r(e),n.d(e,"getTheme",(function(){return i})),n.d(e,"getBrowserInfo",(function(){return d}));var r=n("340d");function i(){if(!0!==__uniConfig.darkmode)return Object(r["m"])(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(t){return"light"}}var o=navigator.userAgent,a=/android/i.test(o),s=/iphone|ipad|ipod/i.test(o),c=o.match(/Windows NT ([\d|\d.\d]*)/i),u=/Macintosh|Mac/i.test(o),l=/Linux|X11/i.test(o),f=u&&navigator.maxTouchPoints>0;function d(){var t,e,n,r=navigator.language,d="phone";if(s){t="iOS";var h=o.match(/OS\s([\w_]+)\slike/);h&&(e=h[1].replace(/_/g,"."));var p=o.match(/\(([a-zA-Z]+);/);p&&(n=p[1])}else if(a){t="Android";var v=o.match(/Android[\s/]([\w\.]+)[;\s]/);v&&(e=v[1]);for(var g=o.match(/\((.+?)\)/),m=g?g[1].split(";"):o.split(" "),b=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],y=0;y0){n=_.split("Build")[0].trim();break}for(var w=void 0,x=0;x-1&&t.indexOf("MSIE")>-1,n=t.indexOf("Edge")>-1&&!e,r=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){var i=new RegExp("MSIE (\\d+\\.\\d+);");i.test(t);var o=parseFloat(RegExp.$1);return o>6?o:6}return n?-1:r?11:-1}());if("-1"!==E)T="IE";else for(var A=["Version","Firefox","Chrome","Edge{0,1}"],j=["Safari","Firefox","Chrome","Edge"],M=0;M=0&&a.splice(e,1)}}function l(e){s.push(e),t.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(i["d"])(o["b"],(function(t){a.forEach((function(e){Object(r["a"])(e,t)}))})),Object(i["d"])("onUIStyleChange",(function(t){s.forEach((function(e){Object(r["a"])(e,t)}))}))}.call(this,n("418b")["default"])},"04d4":function(t,e,n){"use strict";var r=n("340d"),i=n("b435");e["a"]={props:{dashArray:{type:Array,default:function(){return[0,0]}},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},mounted:function(){var t=this,e=this.$parent;e.mapReady((function(){t.drawPolygon(),Object.keys(t.$props).forEach((function(e){t.$watch(e,(function(){t.drawPolygon()}),{deep:!0})}))}))},methods:{drawPolygon:function(){var t=this.points,e=this.strokeWidth,n=this.strokeColor,o=this.dashArray,a=this.fillColor,s=this.zIndex,c=this.$parent,u=c._maps,l=c._map,f=t.map((function(t){var e=t.latitude,n=t.longitude;return i["c"]?[n,e]:new u.LatLng(e,n)})),d=Object(r["j"])(a),h=d.r,p=d.g,v=d.b,g=d.a,m=Object(r["j"])(n),b=m.r,y=m.g,_=m.b,w=m.a,x={clickable:!0,cursor:"crosshair",editable:!1,map:l,fillColor:"",path:f,strokeColor:"",strokeDashStyle:o.some((function(t){return t>0}))?"dash":"solid",strokeWeight:e,visible:!0,zIndex:s};u.Color?(x.fillColor=new u.Color(h,p,v,g),x.strokeColor=new u.Color(b,y,_,w)):(x.fillColor="rgb(".concat(h,", ").concat(p,", ").concat(v,")"),x.fillOpacity=g,x.strokeColor="rgb(".concat(b,", ").concat(y,", ").concat(_,")"),x.strokeOpacity=w),this.polygonIns?this.polygonIns.setOptions(x):this.polygonIns=new u.Polygon(x)}},beforeDestroy:function(){this.polygonIns.setMap(null),this.polygonIns=null},render:function(){return null}}},"04ed":function(t,e,n){},"050f":function(t,e,n){"use strict";var r=Object.create(null),i=n("1fe9");i.keys().forEach((function(t){Object.assign(r,i(t))}));var o=r,a=n("b15e");e["a"]=Object.assign(Object.create(null),o,a["a"])},"0671":function(t,e,n){"use strict";var r=n("24f2"),i=n.n(r);i.a},"0680":function(t,e,n){"use strict";(function(t,e,r){var i=n("951c"),o=n.n(i),a=n("eeff");function s(t,e){for(var n=0;n.5&&e._A<=.5?o.forEach((function(t){t.color=a})):s<=.5&&e._A>.5&&o.forEach((function(t){t.color="#fff"})),e._A=s,r&&(r.style.opacity=s),n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(s,")"),l.forEach((function(t,e){var n=u[e],r=n.match(/[\d+\.]+/g);r[3]=(1-s)*(4===r.length?r[3]:1),t.backgroundColor="rgba(".concat(r,")")})))}))}else if("float"===this.type){for(var h=this.$el.querySelectorAll(".uni-btn-icon"),p=[],v=0;v-1&&this.selectionEndNumber>-1&&"number"!==t.type&&(t.selectionStart=this.selectionStartNumber,t.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var t=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==t.type&&(t.selectionEnd=t.selectionStart=this.cursorNumber)}}}}).call(this,n("31d2"))},"0c61":function(t,e,n){},"0cac":function(t,e,n){},"0db3":function(t,e,n){"use strict";(function(t){function r(e,n){return n?e?e.$el:n.$el:t.error("page is not ready")}function i(t){return t.matches||(t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;while(--n>=0&&e.item(n)!==this);return n>-1}),t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"0db8":function(t,e,n){"use strict";function r(t,e){for(var n=this.$children,i=n.length,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s2?i-2:0),a=2;a2?n-2:0),o=2;o0&&(n.currentTime=t)}));var i=["canplay","pause","seeking","seeked","timeUpdate"];["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"].forEach((function(t){n.addEventListener(t.toLowerCase(),(function(){e._stoping&&i.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach((function(t){t()}))}),!1)}))}return function(t,e,n){e&&i(t.prototype,e),n&&i(t,n)}(t,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(t){t()}))}},{key:"seek",value:function(t){this._stoping=!1,t=Number(t),"number"!==typeof t||isNaN(t)||(this._audio.currentTime=t)}},{key:"destroy",value:function(){this.stop()}}]),t}();function c(){return new s}a.forEach((function(t){s.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}})),["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"].forEach((function(t){s.prototype[t]=function(e){var n=this._events[t.replace("off","on")],r=n.indexOf(e);r>=0&&n.splice(r,1)}}))},1332:function(t,e,n){},1720:function(t,e,n){"use strict";var r=n("a187"),i=n.n(r);i.a},1867:function(t,e,n){"use strict";var r=n("9a78"),i=n.n(r);i.a},"1c3e":function(t,e,n){"use strict";n.r(e),n.d(e,"onNetworkStatusChange",(function(){return a})),n.d(e,"offNetworkStatusChange",(function(){return s}));var r=n("9131"),i=n("745a"),o=[];function a(t){o.push(t)}function s(t){if(t){var e=o.indexOf(t);e>=0&&o.splice(e,1)}}Object(i["d"])("onNetworkStatusChange",(function(t){o.forEach((function(e){Object(r["a"])(e,t)}))}))},"1d2e":function(t,e,n){"use strict";n.r(e),function(t,r){var i=n("0372");e["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var e=this,n="",o=function(t){return function(r){n=t,setTimeout((function(){e.showToast=r}),10)}};t.on("onShowToast",o("onShowToast")),t.on("onShowLoading",o("onShowLoading"));var a=function(t){return function(){if(n){var o="";if("onHideToast"===t&&"onShowToast"!==n?o=Object(i["g"])("uni.showToast.unpaired"):"onHideLoading"===t&&"onShowLoading"!==n&&(o=Object(i["g"])("uni.showLoading.unpaired")),o)return r.warn(o);n="",setTimeout((function(){e.showToast.visible=!1}),10)}}};t.on("onHidePopup",a("onHidePopup")),t.on("onHideToast",a("onHideToast")),t.on("onHideLoading",a("onHideLoading"))}}}.call(this,n("2c9f"),n("418b")["default"])},"1da9":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.startSoterAuthentication.waitingContent":"无法识别","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},"1daa":function(t,e,n){"use strict";function r(t,e,n,r){var i,o=document.createElement("script"),a=e.callback||"callback",s="__callback"+Date.now()+Math.random().toString().slice(2),c=e.timeout||3e4;function u(){clearTimeout(i),delete window[s],o.remove()}window[s]=function(t){"function"===typeof n&&n(t),u()},o.onerror=function(){"function"===typeof r&&r(),u()},i=setTimeout((function(){"function"===typeof r&&r(),u()}),c),o.src=t+(t.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(o)}n.d(e,"a",(function(){return r}))},"1efd":function(t,e,n){"use strict";n.r(e),n.d(e,"getWindowInfo",(function(){return a}));var r=n("8d7d"),i=n("f621"),o=n.n(i);function a(){var t=window.screen,e=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,i=n&&90===Math.abs(window.orientation),a=n?Math[i?"max":"min"](t.width,t.height):t.width,s=n?Math[i?"min":"max"](t.height,t.width):t.height,c=Math.min(window.innerWidth,document.documentElement.clientWidth,a)||a,u=window.innerHeight,l=o.a.top,f={left:o.a.left,right:c-o.a.right,top:o.a.top,bottom:u-o.a.bottom,width:c-o.a.left-o.a.right,height:u-o.a.top-o.a.bottom},d=Object(r["a"])(),h=d.top,p=d.bottom;return u-=h,u-=p,{windowTop:h,windowBottom:p,windowWidth:c,windowHeight:u,pixelRatio:e,screenWidth:a,screenHeight:s,statusBarHeight:l,safeArea:f,safeAreaInsets:{top:o.a.top,right:o.a.right,bottom:o.a.bottom,left:o.a.left},screenTop:s-u}}},"1f8a":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"Radio",mixins:[r["a"],r["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007AFF"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{radioStyle:function(){if(this.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};var t={};return this.radioChecked?(t.color=this.iconColor,t.backgroundColor=this.activeBackgroundColor||this.color,t.borderColor=this.activeBorderColor||t.backgroundColor):(this.borderColor&&(t.borderColor=this.borderColor),this.backgroundColor&&(t.backgroundColor=this.backgroundColor)),t}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},o=i,a=(n("9854"),n("8844")),s=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":t.radioChecked?t.radioStyle.borderColor:t.activeBorderColor}},[n("div",{staticClass:"uni-radio-input",class:{"uni-radio-input-checked":t.radioChecked,"uni-radio-input-disabled":t.disabled},style:t.radioStyle}),t._t("default")],2)])}),[],!1,null,null,null);e["default"]=s.exports},"1fdf":function(t,e,n){},"1fe9":function(t,e,n){var r={"./base/base64.js":"78b7","./base/can-i-use.js":"9bd9","./base/interceptor.js":"c9da","./base/upx2px.js":"c165","./context/audio.js":"e748","./context/background-audio.js":"86d3","./context/canvas.js":"6352","./context/create-map-context.js":"ed2c","./context/create-video-context.js":"e68a","./context/editor.js":"5883","./context/inner-audio.js":"beab","./device/network.js":"1c3e","./device/theme.js":"0426","./keyboard/get-selected-text-range.js":"7958","./keyboard/keyboard.js":"7068","./media/preview-image.js":"7317","./media/recorder.js":"d91a","./network/download-file.js":"cf97","./network/request.js":"dc02","./network/socket.js":"32a0","./network/update.js":"c4cd","./network/upload-file.js":"bceb","./plugin/push.js":"9f56","./ui/create-animation.js":"a2f6","./ui/create-intersection-observer.js":"a6f2","./ui/create-media-query-observer.js":"a874","./ui/create-selector-query.js":"8379","./ui/load-font-face.js":"fdcd","./ui/locale.js":"ebda","./ui/page-scroll-to.js":"3313","./ui/set-page-meta.js":"be92","./ui/tab-bar.js":"e87f","./ui/window.js":"ccdf"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="1fe9"},2066:function(t,e,n){"use strict";n.r(e);var r={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach((function(t){t()}))}},i=r,o=(n("95bd"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"211f":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"uploadFile",(function(){return s}));var r=n("bdee");function i(t,e){for(var n=0;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function s(e,n){var i=e.url,o=e.file,s=e.filePath,c=e.name,u=e.files,l=e.header,f=e.formData,d=e.timeout,h=void 0===d?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:d,p=t,v=p.invokeCallbackHandler,g=new a(null,n);return Array.isArray(u)&&u.length||(u=[{name:c,file:o,uri:s}]),Promise.all(u.map((function(t){var e=t.file,n=t.uri;return e instanceof Blob?Promise.resolve(Object(r["a"])(e)):Object(r["f"])(n)}))).then((function(t){var e,r=new XMLHttpRequest,o=new FormData;Object.keys(f).forEach((function(t){o.append(t,f[t])})),Object.values(u).forEach((function(e,n){var r=e.name,i=t[n];o.append(r||"file",i,i.name||"file-".concat(Date.now()))})),r.open("POST",i),Object.keys(l).forEach((function(t){r.setRequestHeader(t,l[t])})),r.upload.onprogress=function(t){g._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesSent:n,totalBytesExpectedToSend:r})}))},r.onerror=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail"})},r.onabort=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail abort"})},r.onload=function(){clearTimeout(e);var t=r.status;v(n,{errMsg:"uploadFile:ok",statusCode:t,data:r.responseText||r.response})},g._isAbort?v(n,{errMsg:"uploadFile:fail abort"}):(e=setTimeout((function(){r.upload.onprogress=r.onload=r.onabort=r.onerror=null,g.abort(),v(n,{errMsg:"uploadFile:fail timeout"})}),h),r.send(o),g._xhr=r)})).catch((function(){setTimeout((function(){v(n,{errMsg:"uploadFile:fail file error"})}),0)})),g}}.call(this,n("2c9f"))},"21f5":function(t,e,n){},2214:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return k}));var r=n("340d"),i=n("71a4"),o=n("d334"),a=n("0071"),s=n("8b82"),c=n("41cb");function u(t,e,n){var r="".concat(e,":fail ").concat(t);if(-1===n)throw new Error(r);return"number"===typeof n&&y(n,{errMsg:r}),!1}var l=[{name:"callback",type:Function,required:!0}],f=["beforeValidate","beforeAll","beforeSuccess"];function d(t,e,n){var i=s["a"][t];if(!i&&Object(o["a"])(t)&&(i=l),i){if(Array.isArray(i)&&Array.isArray(e)){var a=Object.create(null),d=Object.create(null),h=e.length;i.forEach((function(t,n){a[t.name]=t,h>n&&(d[t.name]=e[n])})),i=a,e=d}if(Object(r["k"])(i.beforeValidate)){var p=i.beforeValidate(e);if(p)return u(p,t,n)}for(var v=Object.keys(i),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(r["l"])(e))return{params:e};e=Object.assign({},e);var o=Object(a["a"])(e),s=o.success,c=o.fail,u=o.cancel,l=o.complete,f=Object(r["k"])(s),d=Object(r["k"])(c),v=Object(r["k"])(u),g=Object(r["k"])(l);if(!f&&!d&&!v&&!g)return{params:e};var m={};for(var b in n){var y=n[b];Object(r["k"])(y)&&(m[b]=Object(i["b"])(y))}var _=m.beforeSuccess,w=m.afterSuccess,x=m.beforeFail,S=m.afterFail,k=m.beforeCancel,C=m.afterCancel,O=m.beforeAll,T=m.afterAll,E=h++,A="api."+t+"."+E,j=function(n){if(n.errMsg=n.errMsg||t+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=t+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=t+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var i="",o=n.errMsg.indexOf(" ");o>-1&&(i=n.errMsg.substr(o)),n.errMsg=t+":fail"+i}Object(r["k"])(O)&&O(n);var a=n.errMsg;0===a.indexOf(t+":ok")?(Object(r["k"])(_)&&_(n,e),f&&s(n),Object(r["k"])(w)&&w(n)):0===a.indexOf(t+":cancel")?(n.errMsg=n.errMsg.replace(t+":cancel",t+":fail cancel"),d&&c(n),Object(r["k"])(k)&&k(n),v&&u(n),Object(r["k"])(C)&&C(n)):0===a.indexOf(t+":fail")&&(Object(r["k"])(x)&&x(n),d&&c(n),Object(r["k"])(S)&&S(n)),g&&l(n),Object(r["k"])(T)&&T(n)};return p[E]={name:A,callback:j},{params:e,callbackId:E}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=m(t,e,n),o=i.params,a=i.callbackId;return Object(r["l"])(o)&&!d(t,o,a)?{params:o,callbackId:!1}:{params:o,callbackId:a}}function y(t,e,n){if("number"===typeof t){var r=p[t];if(r)return r.keepAlive||delete p[t],r.callback(e,n)}return e}function _(t){delete p[t]}function w(e){return function(n){t.error("API `"+e+"` is not yet implemented")}}function x(t,e){var n=s["a"][t];n&&(Object(r["k"])(n.beforeAll)&&(e.beforeAll=n.beforeAll),Object(r["k"])(n.beforeSuccess)&&(e.beforeSuccess=n.beforeSuccess))}var S=["getPushClientId","onPushMessage","offPushMessage"];function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return S.indexOf(t)>-1||!Object(r["k"])(e)?e:(x(t,n),function(){for(var i=arguments.length,a=new Array(i),s=0;s0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=a();if(!i)return n&&t.error("app is not ready"),[];var o=i.$children[0];if(o&&o.$children.length){var s=o.$children.find((function(t){return"TabBar"===t.$options.name})),c=o.$children.find((function(t){return"Layout"===t.$options.name}));c&&(o=c),o.$children.forEach((function(t){if(s!==t&&t.$children.length&&"Page"===t.$children[0].$options.name&&t.$children[0].$slots.page){var n=t.$children[0].$children.find((function(t){return"PageBody"===t.$options.name})),o=n&&n.$children.find((function(t){return!!t.$page}));if(o){var a=!0;!e&&s&&o.$page&&o.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==o.$page.path&&(a=!1):s.__path__!==o.$page.path&&(a=!1)),a&&r.push(o)}}}))}var u=r.length;if(u>1){var l=r[u-1];l.$page.path!==i.$route.path&&r.splice(u-1,1)}return r}function c(t,e,n){o=e,o.$vm=e,o.globalData=o.$options.globalData||{},Object(r["d"])(t,o),Object(i["a"])(o,n)}}).call(this,n("418b")["default"])},"27d2":function(t,e,n){},"283d":function(t,e,n){"use strict";var r=n("b62a"),i=n.n(r);i.a},"286e":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getFileInfo",(function(){return a}));var r=n("bdee"),i=t,o=i.invokeCallbackHandler;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.filePath,n=arguments.length>1?arguments[1]:void 0;Object(r["f"])(e).then((function(t){o(n,{errMsg:"getFileInfo:ok",size:t.size})})).catch((function(t){o(n,{errMsg:"getFileInfo:fail "+t.message})}))}}.call(this,n("2c9f"))},"2a78":function(t,e,n){"use strict";n.r(e);var r=n("9f62"),i=r["a"],o=(n("d638"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({class:{"uni-label-pointer":t.pointer},on:{click:t._onClick}},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"2ace":function(t,e,n){"use strict";(function(t){var r=n("340d");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",(function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$on("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.on(r,i[o[r]]):e&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}},_removeListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$off("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.off(r,i[o[r]]):e&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}}}}}).call(this,n("31d2"))},"2be0":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("340d"),i=n("909e");function o(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(r["i"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(r["i"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,s),Object.assign(t.methods,s),Object.assign(e.constructor.options.methods,i["a"].methods),Object.assign(t.methods,i["a"].methods);var c=t.created;e.constructor.options.created=t.created=c?[].concat(o,c):[o];var u=t.beforeDestroy;e.constructor.options.beforeDestroy=t.beforeDestroy=u?[].concat(a,u):[a]}}};var c=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},s.name,s);function u(t,e){t.behaviors.forEach((function(n){var r=c[n];r&&r.init(t,e)}))}},"2c9f":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return c})),n.d(e,"off",(function(){return u})),n.d(e,"once",(function(){return l})),n.d(e,"emit",(function(){return f})),n.d(e,"subscribe",(function(){return d})),n.d(e,"unsubscribe",(function(){return h})),n.d(e,"subscribeHandler",(function(){return p}));var r=n("951c"),i=n.n(r),o=n("2214");n.d(e,"invokeCallbackHandler",(function(){return o["a"]})),n.d(e,"removeCallbackHandler",(function(){return o["b"]}));var a=n("89ec");n.d(e,"publishHandler",(function(){return a["b"]}));var s=new i.a,c=s.$on.bind(s),u=s.$off.bind(s),l=s.$once.bind(s),f=s.$emit.bind(s);function d(t,e){return c("view."+t,e)}function h(t,e){return u("view."+t,e)}function p(t,e,n){return f("view."+t,e,n)}},"2d10":function(t,e,n){},"2daf":function(t,e,n){"use strict";n.r(e),function(t){function r(){return window.location.protocol+"//"+window.location.host}function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler,s=new Image,c=i;s.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:s.naturalWidth,height:s.naturalHeight,path:0===c.indexOf("/")?r()+c:c})},s.onerror=function(t){a(n,{errMsg:"getImageInfo:fail"})},s.src=i}n.d(e,"getImageInfo",(function(){return i}))}.call(this,n("2c9f"))},"2eb1":function(t,e,n){"use strict";var r=n("0c61"),i=n.n(r);i.a},"2f5c":function(t,e,n){"use strict";n.r(e),n.d(e,"TEMP_PATH",(function(){return r}));var r=""},"31d2":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return p})),n.d(e,"off",(function(){return v})),n.d(e,"once",(function(){return g})),n.d(e,"emit",(function(){return m})),n.d(e,"subscribe",(function(){return b})),n.d(e,"unsubscribe",(function(){return y})),n.d(e,"subscribeHandler",(function(){return _})),n.d(e,"publishHandler",(function(){return d["a"]}));var r=n("951c"),i=n.n(r);var o=n("49c2"),a=n("d661"),s=n("c08f"),c={setPageMeta:function(t){var e=t.pageStyle,n=t.rootFontSize,r=document.querySelector("uni-page-body")||document.body;r.setAttribute("style",e),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)},requestComponentInfo:o["a"],requestComponentObserver:a["b"],destroyComponentObserver:a["a"],requestMediaQueryObserver:s["b"],destroyMediaQueryObserver:s["a"]},u=n("493f"),l=n("fa95"),f=n("83ee");var d=n("a805"),h=new i.a,p=h.$on.bind(h),v=h.$off.bind(h),g=h.$once.bind(h),m=h.$emit.bind(h);function b(t,e){return p("service."+t,e)}function y(t,e){return v("service."+t,e)}function _(t,e,n){m("service."+t,e,n)}(function(t){Object.keys(c).forEach((function(e){t(e,c[e])})),t("pageScrollTo",u["c"]),t("loadFontFace",l["a"]),Object(f["a"])(t)})(b)},"32a0":function(t,e,n){"use strict";n.r(e),n.d(e,"connectSocket",(function(){return l})),n.d(e,"sendSocketMessage",(function(){return f})),n.d(e,"closeSocket",(function(){return d})),n.d(e,"onSocketOpen",(function(){return h})),n.d(e,"onSocketError",(function(){return p})),n.d(e,"onSocketMessage",(function(){return v})),n.d(e,"onSocketClose",(function(){return g}));var r=n("9131"),i=n("745a");function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.success,n=t.fail,r=t.complete,i=arguments.length>1?arguments[1]:void 0,o={errMsg:i};/:ok$/.test(i)?"function"===typeof e&&e(o):"function"===typeof n&&n(o),"function"===typeof r&&r(o)}}]),t}(),s=Object.create(null),c=[],u=Object.create(null);function l(t,e){var n=Object(i["c"])("createSocketTask",t),o=n.socketTaskId,u=new a(o);return s[o]=u,c.push(u),setTimeout((function(){Object(r["a"])(e,{errMsg:"connectSocket:ok"})}),0),u}function f(t,e){var n=c[0];if(n&&n.readyState===n.OPEN)return Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"send",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function d(t,e){var n=c[0];if(n)return n.readyState=n.CLOSING,Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"close",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"closeSocket:fail WebSocket is not connected"})}function h(t){u.open=t}function p(t){u.error=t}function v(t){u.message=t}function g(t){u.close=t}Object(i["d"])("onSocketTaskStateChange",(function(t){var e=t.socketTaskId,n=t.state,i=t.data,o=t.code,a=t.reason,l=(t.errMsg,s[e]);if(l){var f="message"===n?{data:i}:"close"===n?{code:o,reason:a}:{};if("open"===n&&(l.readyState=l.OPEN),l===c[0]&&u[n]&&Object(r["a"])(u[n],f),"error"===n||"close"===n){l.readyState=l.CLOSED,delete s[e];var d=c.indexOf(l);d>=0&&c.splice(d,1)}l._callbacks[n].forEach((function(t){"function"===typeof t&&t(f)}))}}))},3313:function(t,e,n){"use strict";n.r(e),function(t){function r(e){var n=getCurrentPages();return n.length&&t.publishHandler("pageScrollTo",e,n[n.length-1].$page.id),{}}n.d(e,"pageScrollTo",(function(){return r}))}.call(this,n("2c9f"))},"33b2":function(t,e,n){"use strict";function r(t){var e=t.service;return{service:e,provider:[]}}n.r(e),n.d(e,"getProvider",(function(){return r}))},"33e2":function(t,e,n){"use strict";n.r(e);var r=n("44f1"),i=n.n(r),o=n("909e");function a(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;nthis.CACHE_TIME}}]),t}();l(f,"IC",0),l(f,"IS",0),Object.assign(f.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var d=function(){function t(){s(this,t),this._instance=null,this._adConfig=null,this._guid=null}return u(t,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new t,this._instance._init()),this._instance}}]),u(t,[{key:"_init",value:function(){var t=this._getConfig();null!==t&&t.guid?this._guid=t.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(t){this._process(Object.assign(t,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(t){uni.request({url:this.URL,method:"GET",data:t,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var t="",e="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;nparseInt(this.widescreenWidth),this._loadData(),d.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:f.IC,is:f.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(t){this._report(41)},_reset:function(){this._pd={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(t){var e=this;this._reset();var n=t||this.adpid,r=this._isWidescreen&&this.adpidWidescreen||n;f.instance.get(r,(function(t,n){e._ab=t,e._pl=n,e._renderAd()}),(function(t){e.$trigger("error",{},t)}))},_renderAd:function(){var t=this;if(!(this._pi>this._pl.length-1)){var e=this._pl[this._pi],n=this._ab[e.a1][e.t],r=n.script;this._currentChannel=e.a1;var i=this._randomId(),o=this._createView(i);"10023"===e.a1?h.instance.load(e.t,r,(function(){t._renderShanhu(i,e)}),(function(e){t.$trigger("error",{},e)})):"10010"===e.a1?h.instance.load(e.t,r,(function(){t._renderBaidu(i,e.a2)}),(function(e){t.$trigger("error",{},e)})):"10012"===e.a1?this._renderScript(o,r):h.instance.load(e.t,r,(function(){t._renderAdView(i,r.s,e)}),(function(e){t.$trigger("error",{},e)}))}},_createView:function(t){var e=document.createElement("div");return e.setAttribute("id",t),e.setAttribute("class",t),this.$refs.container.innerHTML="",this.$refs.container.append(e),e},_renderScript:function(t,e){var n=document.createElement("script");for(var r in e)n.setAttribute(r,e[r]);t.appendChild(n),this._startCheckTimer()},_renderBaidu:function(t,e){(window.slotbydup=window.slotbydup||[]).push({id:e,container:t,async:!0}),this._startCheckTimer()},_renderAdView:function(t,e,n){var r=window;e.split(".").reduce((function(t,e){return r=t,t[e]}),window).bind(r)(n.a2,t,2),this._startCheckTimer()},_renderShanhu:function(t,e){var n=this,r=new window.CoralAdv({app_id:e.a2,placement_id:e.a3,type:e.a4,display_type:e.a5,container_id:t,count:e.a6||1});r.ready().then(function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,c,"next",t)}function c(t){a(o,r,i,s,c,"throw",t)}s(void 0)}))}}(i.a.mark((function t(e){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:0===e.ret?n.$trigger("load",{},{}):n.$trigger("error",{},e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.$trigger("error",{},t)})),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var t=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return t&&this._report(40,this._currentChannel),t},_startCheckTimer:function(){var t=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(t._checkTimerCount++,t._checkTimerCount>=5)return t._clearCheckTimer(),void t._renderNext();t._checkRender()&&t._clearCheckTimer()}),1e3)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(t,e){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:t};e&&(n.t=e),d.instance.get(n)},_randomId:function(){for(var t="",e=0;e<4;e++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+t}}},v=p,g=(n("c885"),n("8844")),m=Object(g["a"])(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-ad",t._g(t._b({},"uni-ad",t.attrs,!1),t.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:t._onhandle}})])}),[],!1,null,null,null);e["default"]=m.exports},"340d":function(t,e,n){"use strict";n.d(e,"s",(function(){return o})),n.d(e,"k",(function(){return p})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"i",(function(){return b})),n.d(e,"u",(function(){return y})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return S})),n.d(e,"q",(function(){return k})),n.d(e,"h",(function(){return C})),n.d(e,"g",(function(){return O})),n.d(e,"w",(function(){return T})),n.d(e,"d",(function(){return E})),n.d(e,"t",(function(){return A})),n.d(e,"n",(function(){return j})),n.d(e,"f",(function(){return M})),n.d(e,"v",(function(){return l})),n.d(e,"r",(function(){return I})),n.d(e,"j",(function(){return L})),n.d(e,"e",(function(){return N})),n.d(e,"p",(function(){return D})),n.d(e,"a",(function(){return W})),n.d(e,"o",(function(){return V}));var i,o=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,a)}catch(Y){}var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function u(){var t,e=uni.getStorageSync("uni_id_token")||"",n=e.split(".");if(!e||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(t){return decodeURIComponent(i(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function l(t){t.prototype.uniIDHasRole=function(t){var e=u(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=u(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=u(),e=t.tokenExpired;return e>Date.now()}}i="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!c.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var f=Object.prototype.toString,d=Object.prototype.hasOwnProperty,h=function(t){return t>9?t:"0"+t};function p(t){return"function"===typeof t}function v(t){return"string"===typeof t}Object.assign;var g=v;function m(t){return"[object Object]"===f.call(t)}function b(t,e){return d.call(t,e)}function y(t){return f.call(t).slice(8,-1)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,x=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)}));function k(t,e,n){e.forEach((function(e){b(n,e)&&(t[e]=n[e])}))}function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function O(t){var e=t.date,n=void 0===e?new Date:e,r=t.mode,i=void 0===r?"date":r;return"time"===i?h(n.getHours())+":"+h(n.getMinutes()):n.getFullYear()+"-"+h(n.getMonth()+1)+"-"+h(n.getDate())}function T(t,e){for(var n in e)t.style[n]=e[n]}function E(t,e){var n,r=function(){var r=arguments,i=this;clearTimeout(n);var o=function(){return t.apply(i,r)};n=setTimeout(o,e)};return r.cancel=function(){clearTimeout(n)},r}function A(t,e){var n,r,i=0,o=function(){for(var o=this,a=arguments.length,s=new Array(a),c=0;ct.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach((function(n){try{e[n]=R(t[n])}catch(Y){e[n]=t[n]}})),e}function D(t){if("function"===typeof t)return window.plus?t():void document.addEventListener("plusready",t)}var B=0,F={};function z(t,e){var n=F[t]||{};delete F[t];var r=e.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(e):n.success&&n.success(e),n.complete&&n.complete(e)}var W={warp:function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(B++);F[n]={success:e.success,fail:e.fail,complete:e.complete};var r=Object.assign({},e),i=t.bind(this)(r,n);i&&z(n,i)}},invoke:z};function H(t){return H="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},H(t)}var q={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function U(t,e,n){if(g(e)&&e.startsWith("@")){var r=e.replace("@",""),i=t[r]||e;switch(n){case"titleColor":i=function(t){return"black"===t?"#000000":"#ffffff"}(i);break;case"borderStyle":i=function(t){return t&&t in q?q[t]:t}(i);break;default:break}return i}return e}function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"light",r=e[n],i={};return"undefined"===typeof r?t:(Object.keys(t).forEach((function(o){var a=t[o];i[o]=function(){return m(a)?V(a,e,n):Array.isArray(a)?a.map((function(t){return"object"===H(t)?V(t,e,n):U(r,t)})):U(r,a,o)}()})),i)}},3596:function(t,e,n){},"36a6":function(t,e,n){},"383e":function(t,e,n){"use strict";n.r(e);var r=n("39bd"),i=n("340d");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;ethis.displayMultipleItemsNumber},circularEnabled:function(){return this.circular&&this.swiperEnabled}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t,e){this._currentChanged(t,e),this.$emit("update:current",t),this._setNavigationState()},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()},navigation:{immediate:!0,handler:function(t){this.isNavigationAuto="auto"===t,this.hideNavigation=!0!==t||this.isNavigationAuto,this._navigationSwiperAddMouseEvent()}},items:function(){this._setNavigationState()},swiperEnabled:function(t){t||(this.prevDisabled=!0,this.nextDisabled=!0,this.isNavigationAuto&&(this.hideNavigation=!0))}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return t.autoplay&&!t.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout),this._navigationSwiperAddMouseEvent()},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;ei/2?1:0)}var o=this.items[t];o&&this._itemReady(o,(function(){var t=n.currentItemIdSync=o.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:t,source:r})}))},_scheduleAutoplay:function(){var t=this;this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout((function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumbere-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")})),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var i=this._viewportPosition;this._viewportPosition=-2;var o=this.currentSync;o>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(i+o-this._contentTrackViewport),this._contentTrackViewport=o):(this._updateViewport(o),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,r=t+this.displayMultipleItemsNumber,i=0;i=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*i.offsetWidth,dy:this.vertical?t*i.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,r=e.acc,i=e.endTime,o=e.source,a=i-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,(function(){var e=s.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:o})}))}else{var c=r*a*a/2,u=n+c;this._updateViewport(u),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var r=this.durationNumber,i=this.items.length,o=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;ot;)o-=i}else if(n>0){for(;o>t;)o-=i;for(;o+it;)o-=i;o+i-ti)&&(r<0?r=-o(-r):r>i&&(r=i+o(r-i)),e._contentTrackSpeed=0),e._updateViewport(r)}var s=this._contentTrackT-n||1;this.vertical?a(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/s):a(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/s)},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var r=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=r,this._animateViewport(r,"touch",0!==n?n:0===r&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if((e>=n&&this.vertical||e<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}},_onSwiperDotClick:function(t){this._animateViewport(this.currentSync=t,this.currentChangeSource="click",this.circularEnabled?1:0)},_navigationClick:function(t,e,n){if(t.stopPropagation(),!n){var r=this.items.length,i=this.currentSync;switch(e){case"prev":i--,i<0&&this.circularEnabled&&(i=r-1);break;case"next":i++,i>=r&&this.circularEnabled&&(i=0);break}this._onSwiperDotClick(i)}},_navigationMouseMove:function(t){var e=this;clearTimeout(this.hideNavigationTimer);var n,r=t.clientX,i=t.clientY,o=this.$refs.slidesWrapper.getBoundingClientRect(),a=o.left,s=o.right,c=o.top,u=o.bottom,l=o.width,f=o.height;n=this.vertical?!(i-c=t}},render:function(t){var e=this,n=[],r=[];this.$slots.default&&Object(i["f"])(this.$slots.default,t).forEach((function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&r.push(t)}));for(var o=function(r,i){var o=e.currentSync;n.push(t("div",{on:{click:function(){return e._onSwiperDotClick(r)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":r=o||r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function s(t){var e={},n=t.__vue__;function i(t,n){var i=t.$attrs;for(var o in i)if(o.startsWith("data-")){var a=Object(r["b"])(o.substr(5).toLowerCase()),s=i[o];e[a]=n?s:e[a]||s}}if(n){var o=n;while(o&&o.$el===t)i(o),o=o.$children[0];var a=n.$parent;while(a&&a.$el===t)i(a,!0),a=a.$parent}else e=Object.assign({},t.dataset,t.__uniDataset);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t)),n=Object.keys(e),r=n.length;if(r)for(var i=0;i=0&&i.splice(e,1)}i.length||a()}}.call(this,n("2c9f"))},"39bd":function(t,e,n){"use strict";var r=function(t,e,n,r){t.addEventListener(e,(function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())}),{capture:r,passive:!1})};e["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(t,e,n){var i,o,a,s=this,c=this,u=0,l=0,f=0,d=0,h=function(t,n,r,i){if(!1===c[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x:r,y:i,dx:r-u,dy:i-l,ddx:r-f,ddy:i-d,timeStamp:t.timeStamp}}))return!1},p=null;r(t,"touchstart",(function(t){if(o=!0,1===t.touches.length&&!p)return p=t,u=f=t.touches[0].pageX,l=d=t.touches[0].pageY,h(t,"start",u,l)})),r(t,"mousedown",(function(t){if(a=!0,!o&&!p)return p=t,u=f=t.pageX,l=d=t.pageY,h(t,"start",u,l)})),r(t,"touchmove",(function(t){if(1===t.touches.length&&p){var e=h(t,"move",t.touches[0].pageX,t.touches[0].pageY);return f=t.touches[0].pageX,d=t.touches[0].pageY,e}}));var v=this.__clickEventListener=function(t){t.preventDefault(),t.stopPropagation()},g=this.__mouseMoveEventListener=function(t){if(!o&&a&&p){!i&&(Math.abs(f-u)>2||Math.abs(d-l)>2)&&(document.addEventListener("click",v,!0),i=!0);var e=h(t,"move",t.pageX,t.pageY);return f=t.pageX,d=t.pageY,e}};document.addEventListener("mousemove",g),r(t,"touchend",(function(t){if(0===t.touches.length&&p)return o=!1,p=null,h(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}));var m=this.__mouseUpEventListener=function(t){if(a=!1,!o&&p)return i&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),i=!1}),0),p=null,h(t,"end",t.pageX,t.pageY)};document.addEventListener("mouseup",m),r(t,"touchcancel",(function(t){if(p){o=!1;var e=p;return p=null,h(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}}},"3a3e":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"RadioGroup",mixins:[r["a"],r["f"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t,e){var n=this.radioList.indexOf(e);this._resetRadioGroupValue(n,!0),this.$trigger("change",t,{value:e.radioValue})},_radioGroupUpdateHandler:function(t){if("add"===t.type)this.radioList.push(t.vm);else{var e=this.radioList.indexOf(t.vm);this.radioList.splice(e,1)}},_resetRadioGroupValue:function(t,e){var n=this;this.radioList.forEach((function(r,i){i!==t&&(e?n.radioList[i].radioChecked=!1:n.radioList.forEach((function(t,e){i>=e||n.radioList[e].radioChecked&&(n.radioList[i].radioChecked=!1)})))}))},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach((function(t){t.radioChecked&&(e=t.value)})),t.value=e,t.key=this.name}return t}}},o=i,a=(n("01aa"),n("8844")),s=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio-group",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=s.exports},"3acf":function(t,e,n){"use strict";n.r(e),n.d(e,"pageScrollTo",(function(){return r}));var r={scrollTop:{type:Number},duration:{type:Number,default:300,validator:function(t,e){e.duration=Math.max(0,t)}}}},"3b2d":function(t,e,n){"use strict";n.r(e),n.d(e,"$on",(function(){return s})),n.d(e,"$off",(function(){return c})),n.d(e,"$once",(function(){return u})),n.d(e,"$emit",(function(){return l}));var r=n("951c"),i=n.n(r),o=new i.a;function a(t,e,n){return t[e].apply(t,n)}function s(){return a(o,"$on",Array.prototype.slice.call(arguments))}function c(){return a(o,"$off",Array.prototype.slice.call(arguments))}function u(){return a(o,"$once",Array.prototype.slice.call(arguments))}function l(){return a(o,"$emit",Array.prototype.slice.call(arguments))}},"3b8d":function(t,e,n){"use strict";n.r(e),n.d(e,"scanCode",(function(){return r}));var r={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean},sound:{type:String,default:"none"},autoZoom:{type:Boolean,default:!0}}},"3bbb":function(t,e,n){"use strict";n.r(e),n.d(e,"compressVideo",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},"3bd6":function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",(function(){return a})),n.d(e,"setTabBarStyle",(function(){return s})),n.d(e,"hideTabBar",(function(){return c})),n.d(e,"showTabBar",(function(){return u})),n.d(e,"hideTabBarRedDot",(function(){return l})),n.d(e,"showTabBarRedDot",(function(){return f})),n.d(e,"removeTabBarBadge",(function(){return d})),n.d(e,"setTabBarBadge",(function(){return h}));var r=n("340d"),i=n("4738"),o={type:Number,required:!0},a={index:o,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},s={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(t,e){t&&!/^(linear|radial)-gradient\(.+?\);?$/.test(t)&&(e.backgroundImage=Object(i["a"])(t))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(t,e){t&&(e.borderStyle="black"===t?"black":"white")}}},c={animation:{type:Boolean,default:!1}},u={animation:{type:Boolean,default:!1}},l={index:o},f={index:o},d={index:o},h={index:o,text:{type:String,required:!0,validator:function(t,e){Object(r["h"])(t)>=4&&(e.text="...")}}}},"3c5f":function(t,e,n){"use strict";var r=n("df50"),i=n.n(r);i.a},"3d1e":function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return d}));var r=n("cff9"),i=n("2626");n.d(e,"b",(function(){return i["b"]})),n.d(e,"c",(function(){return i["c"]}));var o=Object.assign;function a(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}var s=a(),c=a();function u(){return c}function l(){return s}function f(t){var e=t.path,n=t.query,r=t.referrerInfo;return o(c,{path:e,query:n||{},referrerInfo:r||{}}),o(s,c),c}function d(e,n,o){return{created:function(){Object(i["a"])(e,this,n),o.meta.name||t.emit("onPageNotFound",{path:o.path,query:o.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){f({path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query}),Object(r["a"])(this,"onLaunch",c),Object(r["a"])(this,"onShow",s)}}}}).call(this,n("2c9f"))},"3d8f":function(t,e,n){"use strict";var r=n("f5e7"),i=n.n(r);i.a},"3e92":function(t,e,n){"use strict";var r=n("d0aa"),i=n.n(r);i.a},"3fc5":function(t,e,n){"use strict";n.r(e),n.d(e,"downloadFile",(function(){return r}));var r={url:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}}}},"418b":function(t,e,n){"use strict";n.r(e),function(t){var n=Array.prototype.unshift;function r(t){return n.call(t,"[system]"),t}function i(e){return function(){var n=!0;"debug"!==e||__uniConfig.debug||(n=!1),n&&t.console[e].apply(t.console,r(arguments))}}e["default"]={log:i("log"),info:i("info"),warn:i("warn"),debug:i("debug"),error:i("error")}}.call(this,n("0ee4"))},"418c":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"setNavigationBarColor",(function(){return o})),n.d(e,"showNavigationBarLoading",(function(){return a})),n.d(e,"hideNavigationBarLoading",(function(){return s})),n.d(e,"setNavigationBarTitle",(function(){return c}));var r=n("d4ee");function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object(r["getPageHolder"])(n.__page__);if(i)switch(e){case"setNavigationBarColor":var o=n.frontColor,a=n.backgroundColor,s=n.animation,c=s.duration,u=s.timingFunc;o&&(i.navigationBar.textColor="#000000"===o?"black":"white"),a&&(i.navigationBar.backgroundColor=a),t.emit("onNavigationBarChange",{textColor:"#000000"===o?"#000":"#fff",backgroundColor:i.navigationBar.backgroundColor}),i.navigationBar.duration=c+"ms",i.navigationBar.timingFunc=u;break;case"showNavigationBarLoading":i.navigationBar.loading=!0;break;case"hideNavigationBarLoading":i.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;i.navigationBar.titleText=l,Object(r["isCurrentPage"])(i)&&(document.title=l),t.emit("onNavigationBarChange",{titleText:l});break}return{}}function o(t){return i("setNavigationBarColor",t)}function a(t){return i("showNavigationBarLoading",t)}function s(t){return i("hideNavigationBarLoading",t)}function c(t){return i("setNavigationBarTitle",t)}}.call(this,n("2c9f"))},"41cb":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("340d");function o(t){return o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},o(t)}function a(t,e,n){var r=e[t],o=!Object(i["i"])(n,t),a=n[t],c=function(t,e){if(!Array.isArray(e))return f(e,t)?0:-1;for(var n=0,r=e.length;n-1&&o&&!Object(i["i"])(r,"default")&&(a=!1),void 0===a&&Object(i["i"])(r,"default")){var u=r.default;a=Object(i["k"])(u)?u():u,n[t]=a}return s(r,t,a,o,n)}function s(t,e,n,r,i){if(t.required&&r)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var o=t.validator;return o?o(n,i):void 0}var a=t.type,s=!a||!0===a,c=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l=0||("Object"===r?Object(i["l"])(t):"Array"===r?Array.isArray(t):t instanceof e||Object(i["u"])(t)===l(e));return{valid:n,expectedType:r}}function l(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function f(t,e){return l(t)===l(e)}function d(t,e,n){var r="parameter `".concat(t,"`.")+" Expected ".concat(n.join(", ")),o=n[0],a=Object(i["u"])(e),s=h(e,o),c=h(e,a);return 1===n.length&&v(o)&&!function(){for(var t=arguments.length,e=new Array(t),n=0;n1||this._handleHoverStart(t)},_hoverMousedown:function(t){this._hoverTouch||(this._handleHoverStart(t),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){e.hovering=!0,e._hoverTouch||e._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame((function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout((function(){t.hovering=!1}),t.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"43df":function(t,e,n){"use strict";n.r(e),n.d(e,"saveFile",(function(){return i})),n.d(e,"getFileInfo",(function(){return a})),n.d(e,"getSavedFileInfo",(function(){return s})),n.d(e,"removeSavedFile",(function(){return c}));var r=n("4738"),i={tempFilePath:{type:String,required:!0,validator:function(t,e){e.tempFilePath=Object(r["a"])(t)}}},o=["md5","sha1"],a={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}},digestAlgorithm:{type:String,validator:function(t,e){e.digestAlgorithm=o.includes(t)?t:o[0]},default:o[0]}},s={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}},c={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}}},4442:function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?h:"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=u;var f="suspendedStart",d="executing",h="completed",p={};function v(){}function g(){}function m(){}var b={};b[a]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(E([])));_&&_!==n&&i.call(_,a)&&(b=_);var w=m.prototype=v.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t,e){function n(o,a,s,c){var u=l(t[o],t,a);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"===r(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(d).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function k(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var n=t[a];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){while(++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=i}catch(o){Function("r","regeneratorRuntime = r")(i)}},4498:function(t,e,n){"use strict";function r(){var t=document.getElementById("#clipboard"),e=t?t.value:void 0;return e?{data:e,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function i(t){var e=t.data,n=document.getElementById("#clipboard");n&&n.remove();var r=document.createElement("textarea");r.setAttribute("inputmode","none"),r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);var i=document.execCommand("Copy",!1,null);return r.blur(),i?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(e),n.d(e,"getClipboardData",(function(){return r})),n.d(e,"setClipboardData",(function(){return i}))},"44b9":function(t,e,n){"use strict";n.r(e),n.d(e,"compressImage",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}}}},"44f1":function(t,e,n){t.exports=n("4442")},"45a2":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("7d96"),a=o["a"],s=(n("8a24"),n("8844")),c=Object(s["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-app",{class:{"uni-app--showtabbar":t.showTabBar,"uni-app--maxwidth":t.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":t.key,"keep-alive-include":t.keepAliveInclude},on:{maxWidth:t.onMaxWidth,layout:t.onLayout}}),t.hasTabBar?n("tab-bar",t._b({directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",t.tabBarOptions,!1)):t._e(),t.$options.components.Toast?n("toast",t._b({},"toast",t.showToast,!1)):t._e(),t.$options.components.ActionSheet?n("action-sheet",t._b({on:{close:t._onActionSheetClose}},"action-sheet",t.showActionSheet,!1)):t._e(),t.$options.components.Modal?n("modal",t._b({on:{close:t._onModalClose}},"modal",t.showModal,!1)):t._e(),t.$options.components.PreviewImage?n("preview-image",t._b({on:{close:t._onPreviewClose}},"preview-image",t.previewImage,!1)):t._e(),t.sysComponents&&t.sysComponents.length?t._l(t.sysComponents,(function(t,e){return n(t,{key:e,tag:"component"})})):t._e()],2)}),[],!1,null,null,null),u=c.exports,l=n("e5b3"),f=l["a"],d=(n("fc7c"),Object(s["a"])(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page",{attrs:{"data-page":t.$route.meta.pagePath}},["none"!==t.navigationBar.type?n("page-head",t._b({},"page-head",t.navigationBar,!1)):t._e(),t.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:t.refreshOptions.color,offset:t.refreshOptions.offset}}):t._e(),t.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(e){return t._touchstart(e)},touchmove:function(e){return t._touchmove(e)},touchend:function(e){return t._touchend(e)},touchcancel:function(e){return t._touchend(e)}}},[t._t("page")],2):n("page-body",[t._t("page")],2)],1)}),[],!1,null,null,null)),h=d.exports,p=n("0372"),v={name:"AsyncError",mixins:[p["c"]],methods:{_onClick:function(){window.location.reload()}}},g=v,m=(n("5505"),Object(s["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-error",on:{click:t._onClick}},[t._v(" "+t._s(t.$$t("uni.async.error"))+" ")])}),[],!1,null,null,null)),b=m.exports,y={name:"AsyncLoading"},_=(n("d937"),Object(s["a"])(y,(function(){var t=this;t.$createElement;return t._self._c,t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"uni-async-loading"},[e("i",{staticClass:"uni-loading"})])}],!1,null,null,null)),w=_.exports,x=n("8b77"),S=x["a"],k=Object(s["a"])(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===t.direction?"column":"row",backgroundColor:t.tabBarOptions.backgroundColor}},[t._l(t.tabBarOptions.list,(function(e,r){return[!1!==e.visible?n("div",{key:e.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return t._switchTab(e,r)}}},[n("div",{staticClass:"uni-tabbar__bd"},[t.showIcon&&e.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text}},[n("img",{attrs:{src:t._getRealPath(t.selectedIndex===r?e.selectedIconPath:e.iconPath)}}),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.tabBarOptions.selectedColor:t.tabBarOptions.color,fontSize:t.showIcon&&e.iconPath?"10px":"14px"}},[t._v(" "+t._s(e.text)+" "),!e.redDot||t.showIcon&&e.iconPath?t._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")])]):t._e()])]):t._e()]}))],2)]):t._e()}),[],!1,null,null,null),C=k.exports,O=n("4ed4"),T=O["a"],E=(n("b16b"),Object(s["a"])(T,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.latitude,longitude:t.longitude,"show-location":"",libraries:["places"]},on:{updated:t.getList,regionchange:t.onRegionChange}},[n("div",{staticClass:"map-location",style:t.locationStyle}),n("div",{staticClass:"map-move",on:{click:t.moveToLocation}},[n("i",[t._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!t.selected},on:{click:t.choose}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:t.$$t("uni.chooseLocation.search")},on:{focus:function(e){t.searching=!0},input:t.input},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t.searching?n("div",{staticClass:"search-btn",on:{click:function(e){t.searching=!1,t.keyword=""}}},[t._v(" "+t._s(t.$$t("uni.chooseLocation.cancel"))+" ")]):t._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:t.loadMore}},[t.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):t._e(),t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"list-item",class:{selected:t.selectedIndex===r},on:{click:function(n){t.selectedIndex=r,t.latitude=e.latitude,t.longitude=e.longitude}}},[n("div",{staticClass:"list-item-title"},[t._v(" "+t._s(e.name)+" ")]),n("div",{staticClass:"list-item-detail"},[t._v(" "+t._s(t._f("distance")(e.distance))+t._s(e.address)+" ")])])}))],2)],1)],1)}),[],!1,null,null,null)),A=E.exports,j=n("b435"),M={name:"SystemOpenLocation",data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude,r=t.scale,i=void 0===r?18:r,o=t.name,a=void 0===o?"":o,s=t.address,c=void 0===s?"":s;return{latitude:e,longitude:n,scale:i,name:a,address:c,center:{latitude:e,longitude:n},marker:{id:1,latitude:e,longitude:n,iconPath:j["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:j["a"],width:44,height:44}}},mounted:function(){var t=this;uni.getLocation({type:"gcj02",success:function(e){var n=e.latitude,r=e.longitude;t.location.latitude=n,t.location.longitude=r}})},methods:{onRegionChange:function(t){var e=t.detail.centerLocation;e&&(this.center.latitude=e.latitude,this.center.longitude=e.longitude)},setCenter:function(t){var e=t.latitude,n=t.longitude;this.center.latitude=e,this.center.longitude=n},back:function(){getApp().$router.back()},nav:function(){var t=Object(j["e"])(),e="";if(t.type===j["d"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";e="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(t.type===j["d"].QQ){var r=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude,"&from=").concat(encodeURIComponent("我的位置")):"";e="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(r,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(t.key)}else if(t.type===j["d"].AMAP){var i=this.location.latitude?"from=".concat(this.location.longitude,",").concat(this.location.latitude,",").concat(encodeURIComponent("我的位置"),"&"):"";e="https://uri.amap.com/navigation?".concat(i,"to=").concat(this.longitude,",").concat(this.latitude,",").concat(encodeURIComponent(this.name||"目的地"))}window.open(e)}}},I=M,P=(n("724c"),Object(s["a"])(I,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.center.latitude,longitude:t.center.longitude,markers:[t.marker,t.location]},on:{regionchange:t.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:function(e){return t.setCenter(t.location)}}},[n("i",[t._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"address",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.address)+" ")]),n("div",{staticClass:"nav",on:{click:t.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])],1)}),[],!1,null,null,null)),$=P.exports,L={ChooseLocation:A,OpenLocation:$};i.a.component(u.name,u),i.a.component(h.name,h),i.a.component(b.name,b),i.a.component(w.name,w),i.a.component(C.name,C),Object.keys(L).forEach((function(t){var e=L[t];i.a.component(e.name,e)}))},"466b":function(t,e,n){},4705:function(t,e,n){"use strict";(function(t){var r,i=n("909e"),o=n("7cce"),a=n("dfa7"),s=n("bdee");function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r||(r=document.createElement("canvas")),r.width=t,r.height=e,r}e["a"]={name:"Canvas",mixins:[i["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var t=this,e=Object.assign({},this.$listeners);return["touchstart","touchmove","touchend"].forEach((function(n){var r=e[n],i=[];r&&i.push((function(e){t.$trigger(n,Object.assign({},e,{touches:f(e.currentTarget,e.touches),changedTouches:f(e.currentTarget,e.changedTouches)}))})),t.disableScroll&&"touchmove"===n&&i.push(t._touchmove),e[n]=i})),e},pixelRatio:function(){return this.hidpi?o["a"]:1}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var t=this.$refs.canvas;t.height=t.width=0},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,r=void 0===n?{}:n,i=this[e];0!==e.indexOf("_")&&"function"===typeof i&&i(r)},_resize:function(t){var e=this.$refs.canvas,n=!t||e.width!==Math.floor(t.width*this.pixelRatio)||e.height!==Math.floor(t.height*this.pixelRatio);if(n)if(e.width>0&&e.height>0){var r=e.getContext("2d"),i=r.getImageData(0,0,e.width,e.height);Object(o["b"])(e,this.hidpi),r.putImageData(i,0,0)}else Object(o["b"])(e,this.hidpi)},_touchmove:function(t){t.preventDefault()},actionsChanged:function(e){var n=this,r=e.actions,i=e.reserve,o=e.callbackId,a=this;if(r)if(this.actionsWaiting)this._actionsDefer.push([r,i,o]);else{var s=this.$refs.canvas,u=s.getContext("2d");i||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,s.width,s.height)),this.preloadImage(r);var f=function(t){var e=r[t],i=e.method,s=e.data;if(/^set/.test(i)&&"setTransform"!==i){var f,d=i[3].toLowerCase()+i.slice(4);if("fillStyle"===d||"strokeStyle"===d){if("normal"===s[0])f=l(s[1]);else if("linear"===s[0]){var v=u.createLinearGradient.apply(u,c(s[1]));s[2].forEach((function(t){var e=t[0],n=l(t[1]);v.addColorStop(e,n)})),f=v}else if("radial"===s[0]){var g=s[1][0],m=s[1][1],b=s[1][2],y=u.createRadialGradient(g,m,0,g,m,b);s[2].forEach((function(t){var e=t[0],n=l(t[1]);y.addColorStop(e,n)})),f=y}else if("pattern"===s[0]){var _=n.checkImageLoaded(s[1],r.slice(t+1),o,(function(t){t&&(u[d]=u.createPattern(t,s[2]))}));return _?"continue":"break"}u[d]=f}else if("globalAlpha"===d)u[d]=s[0]/255;else if("shadow"===d)h=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],s.forEach((function(t,e){u[h[e]]="shadowColor"===h[e]?l(t):t}));else if("fontSize"===d){var w=u.__font__||u.font;u.__font__=u.font=w.replace(/\d+\.?\d*px/,s[0]+"px")}else"lineDash"===d?(u.setLineDash(s[0]),u.lineDashOffset=s[1]||0):"textBaseline"===d?("normal"===s[0]&&(s[0]="alphabetic"),u[d]=s[0]):"font"===d?u.__font__=u.font=s[0]:u[d]=s[0]}else if("fillPath"===i||"strokePath"===i)i=i.replace(/Path/,""),u.beginPath(),s.forEach((function(t){u[t.method].apply(u,t.data)})),u[i]();else if("fillText"===i)u.fillText.apply(u,s);else if("drawImage"===i){if(p=function(){var e=c(s),n=e[0],i=e.slice(1);if(a._images=a._images||{},!a.checkImageLoaded(n,r.slice(t+1),o,(function(t){t&&u.drawImage.apply(u,[t].concat(c(i.slice(4,8)),c(i.slice(0,4))))})))return"break"}(),"break"===p)return"break"}else"clip"===i?(s.forEach((function(t){u[t.method].apply(u,t.data)})),u.clip()):u[i].apply(u,s)};t:for(var d=0;d1&&(s.multiple="multiple"),1===n.length&&"camera"===n[0]&&(s.capture="camera"),s}},"493f":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var r,i=n("a805");function o(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.selector,r=t.duration;if("undefined"===typeof e){var i=document.querySelector(n);if(i){var o=i.getBoundingClientRect(),a=o.top,s=o.height;e=a+window.pageYOffset,e-=s}}var c=document.documentElement,u=c.clientHeight,l=c.scrollHeight;e=Math.min(e,l-u),0!==r?window.scrollY!==e&&function t(n){if(n<=0)window.scrollTo(0,e);else{var r=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+r/n*10),t(n-10)}))}}(r):c.scrollTop=document.body.scrollTop=e}var s=0;function c(e,n){var o=n.enablePageScroll,a=n.enablePageReachBottom,c=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,f=!1,d=!0;function h(){var t=document.documentElement.scrollHeight,e=window.innerHeight,n=window.scrollY,r=n>0&&t>e&&n+e+c>=t,i=Math.abs(t-s)>c;return!r||f&&!i?(!r&&f&&(f=!1),!1):(s=t,f=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var s=window.pageYOffset;o&&Object(i["a"])("onPageScroll",{scrollTop:s},e),u&&t.emit("onPageScroll",{scrollTop:s}),a&&d&&(c()||(r=setTimeout(c,300))),l=!1}function c(){if(h())return Object(i["a"])("onReachBottom",{},e),d=!1,setTimeout((function(){d=!0}),350),!0}}return function(){clearTimeout(r),l||requestAnimationFrame(p),l=!0}}}).call(this,n("31d2"))},"49c2":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n("38ce"),i=n("340d"),o=n("8d7d"),a=n("0db3");function s(t,e){var n={},a=Object(o["a"])(),s=a.top;if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(r["b"])(t)),e.rect||e.size){var c=t.getBoundingClientRect();e.rect&&(n.left=c.left,n.right=c.right,n.top=c.top-s,n.bottom=c.bottom-s),e.size&&(n.width=c.width,n.height=c.height)}if(Array.isArray(e.properties)){var u=t.__vue__&&t.__vue__.$props;u&&e.properties.forEach((function(t){"string"===typeof t&&(t=Object(i["b"])(t),null!=u[t]&&(n[t]=u[t]))}))}if(e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(e.computedStyle)){var l=getComputedStyle(t);e.computedStyle.forEach((function(t){n[t]=l[t]}))}return e.context&&t.__vue__&&t.__vue__._getContextInfo&&(n.context=t.__vue__._getContextInfo()),n}function c(t,e,n,r,i){var o=Object(a["a"])(Object(a["b"])(e,t));if(!o||o&&8===o.nodeType)return r?null:[];if(r){var c=o.matches(n)?o:o.querySelector(n);return c?s(c,i):null}var u=[],l=o.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(t){return s(t,i)}))),o.matches(n)&&u.unshift(s(o,i)),u}function u(e,n){var r,i=e.reqId,o=e.reqs;if(n._isVue)r=n;else{var a=getCurrentPages(),s=a.find((function(t){return t.$page.id===n}));if(!s)throw new Error("Not Found:Page[".concat(n,"]"));r=s.$vm}var u=[];o.forEach((function(t){var e=t.component,n=t.selector,i=t.single,o=t.fields;0===e?u.push(function(t){var e={};if(t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset){var n=document.documentElement,r=document.body;e.scrollLeft=n.scrollLeft||r.scrollLeft||0,e.scrollTop=n.scrollTop||r.scrollTop||0,e.scrollHeight=n.scrollHeight||r.scrollHeight||0,e.scrollWidth=n.scrollWidth||r.scrollWidth||0}return e}(o)):u.push(c(r,e,n,i,o))})),t.publishHandler("onRequestComponentInfo",{reqId:i,res:u})}}).call(this,n("31d2"))},"49df":function(t,e,n){"use strict";n.r(e);var r=[],i=n("2432");i.keys().forEach((function(t){"./index.js"!==t&&r.push(i(t).default)})),e["default"]=r},"4a3f":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=e.filePath,i=t,o=i.invokeCallbackHandler;window.open(r),o(n,{errMsg:"openDocument:ok"})}n.d(e,"openDocument",(function(){return r}))}.call(this,n("2c9f"))},"4b21":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n("d97d");function i(e){e=function(t){return t.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);var n=[],i={node:"root",children:[]};return Object(r["a"])(e,{start:function(t,e,r){var o={name:t};if(0!==e.length&&(o.attrs=function(t){return t.reduce((function(t,e){var n=e.value,r=e.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),t[r]?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n,t}),{})}(e)),r){var a=n[0]||i;a.children||(a.children=[]),a.children.push(o)}else n.unshift(o)},end:function(e){var r=n.shift();if(r.name!==e&&t.error("invalid state: mismatch end tag"),0===n.length)i.children.push(r);else{var o=n[0];o.children||(o.children=[]),o.children.push(r)}},chars:function(t){var e={type:"text",text:t};if(0===n.length)i.children.push(e);else{var r=n[0];r.children||(r.children=[]),r.children.push(e)}},comment:function(t){var e={node:"comment",text:t},r=n[0];r&&(r.children||(r.children=[]),r.children.push(e))}}),i.children}}).call(this,n("418b")["default"])},"4b7e":function(t,e,n){var r={"./base/base64.js":"53f9","./base/can-i-use.js":"5bcf","./base/event-bus.js":"fd5d","./base/interceptor.js":"9879","./base/upx2px.js":"6856","./context/canvas.js":"e0ec","./context/context.js":"6625","./device/add-phone-contact.js":"cedc","./device/make-phone-call.js":"6f73","./device/scan-code.js":"3b8d","./device/set-clipboard-data.js":"51e5","./file/file.js":"43df","./file/open-document.js":"09f0","./location/choose-location.js":"ec60","./location/get-location.js":"e0f9","./location/open-location.js":"d280","./media/choose-file.js":"925f","./media/choose-image.js":"dac9","./media/choose-video.js":"a111","./media/compress-image.js":"44b9","./media/compress-video.js":"3bbb","./media/get-image-info.js":"61d8","./media/get-video-info.js":"9bfe","./media/preview-image.js":"4ca1","./media/save-image-to-photos-album.js":"03d0","./network/download-file.js":"3fc5","./network/request.js":"b32f","./network/socket.js":"123c","./network/upload-file.js":"b75a","./plugin/get-provider.js":"90f0","./plugin/load-sub-package.js":"a8a7","./plugin/pre-login.js":"5f30","./route/route.js":"6bd7","./storage/storage.js":"67c3","./ui/load-font-face.js":"c6eb","./ui/navigation-bar.js":"796c","./ui/page-scroll-to.js":"3acf","./ui/popup.js":"f60b","./ui/tab-bar.js":"3bd6"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="4b7e"},"4ba6":function(t,e,n){"use strict";function r(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!i(e,.4)){e=e||0;var r=this._endPosition;this._solution&&(i(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),i(e,.4)&&(e=0),i(r,.4)&&(r=0),r+=this._endPosition),this._solution&&i(r-t,.4)&&i(e,.4)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&i(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]}},"4c68":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("340d"),o=n("0372"),a=!!i["s"]&&{passive:!1},s={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},c={name:"Video",filters:{time:function(t){t=t>0&&t<1/0?t:0;var e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,r=(r<10?"0":"")+r;var i=n+":"+r;return"00"!==e&&(i=e+":"+i),i}},mixins:[o["c"],r["g"],r["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:s.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(t){this.$emit("update:enableDanmu",t)},autoHideContorls:function(t){t?this.autoHideStart():this.autoHideEnd()},srcSync:function(t){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(t){0!==t&&this.$trigger("progress",{},{buffered:t})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var t=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));t.sort((function(t,e){return(t.time||0)-(e.time||0)}))},mounted:function(){var t,e,n,r=this,i=this,o=!0,s=this.$refs.ball;function c(r){var a=r.targetTouches[0],s=a.pageX,c=a.pageY;if(o&&Math.abs(s-t)100&&(f=100),i.progress=f,r.preventDefault(),r.stopPropagation()}}function u(t){i.controlsTouching=!1,i.touching&&(s.removeEventListener("touchmove",c,a),o||(t.preventDefault(),t.stopPropagation(),i.seek(i.$refs.video.duration*i.progress/100)),i.touching=!1)}s.addEventListener("touchstart",(function(i){r.controlsTouching=!0;var u=i.targetTouches[0];t=u.pageX,e=u.pageY,n=r.progress,o=!0,r.touching=!0,s.addEventListener("touchmove",c,a)})),s.addEventListener("touchend",u),s.addEventListener("touchcancel",u)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(t){var e,n=t.type,r=t.data,i=void 0===r?{}:r;switch(n){case"seek":e=i.position;break;case"sendDanmu":e=i;break;case"playbackRate":e=i.rate;break}["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"].indexOf(n)>=0&&this[n](e)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(t){t=Number(t),"number"!==typeof t||isNaN(t)||(this.$refs.video.currentTime=t)},clickProgress:function(t){var e=this.$refs.progress,n=t.target,r=t.offsetX;while(n!==e)r+=n.offsetLeft,n=n.parentNode;var i=e.offsetWidth,o=0;r>=0&&r<=i&&(o=r/i,this.seek(this.$refs.video.duration*o))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(t){var e=document.createElement("p");e.className="uni-video-danmu-item",e.innerText=t.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(t.color,";");e.setAttribute("style",n),this.$refs.danmu.appendChild(e),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",e.setAttribute("style",n),setTimeout((function(){e.remove()}),4e3)}),17)},sendDanmu:function(t){var e=this.otherData;e.danmuList.splice(e.danmuIndex.index+1,0,{text:String(t.text),color:t.color,time:this.$refs.video.currentTime||0})},playbackRate:function(t){this.$refs.video.playbackRate=t},triggerFullscreen:function(t){var e,n=this.$refs.container,r=this.$refs.video;t?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?r.webkitEnterFullScreen?r.webkitEnterFullScreen():(e=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():r.webkitExitFullScreen?r.webkitExitFullScreen():(e=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),e&&this.emitFullscreenChange(t)},onFullscreenChange:function(t,e){e&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(t){this.fullscreen=t,this.$trigger("fullscreenchange",{},{fullScreen:t,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(t){var e=t.target;this.durationTime=e.duration},onLoadedMetadata:function(t){var e=Number(this.initialTime)||0,n=t.target;e>0&&(n.currentTime=e),this.$trigger("loadedmetadata",t,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(t)},onProgress:function(t){var e=t.target,n=e.buffered;n.length&&(this.buffered=n.end(n.length-1)/e.duration*100)},onWaiting:function(t){this.$trigger("waiting",t,{})},onVideoError:function(t){this.playing=!1,this.$trigger("error",t,{})},onPlay:function(t){this.start=!0,this.playing=!0,this.$trigger("play",t,{})},onPause:function(t){this.playing=!1,this.$trigger("pause",t,{})},onEnded:function(t){this.playing=!1,this.$trigger("ended",t,{})},onTimeUpdate:function(t){var e=t.target,n=this.otherData,r=this.currentTime=e.currentTime,i=n.danmuIndex,o={time:r,index:i.index},a=n.danmuList;if(r>i.time)for(var s=i.index+1;s=(c.time||0)))break;o.index=s,this.playing&&this.enableDanmuSync&&this.playDanmu(c)}else if(r-1;u--){var l=a[u];if(!(r<=(l.time||0)))break;o.index=u-1}n.danmuIndex=o,this.$trigger("timeupdate",t,{currentTime:r,duration:e.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(t){var e=t.targetTouches[0];this.touchStartOrigin={x:e.pageX,y:e.pageY},this.gestureType=s.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(t){function e(){t.stopPropagation(),t.preventDefault()}this.fullscreen&&e();var n=this.gestureType;if(n!==s.STOP){var r=t.targetTouches[0],i=r.pageX,o=r.pageY,a=this.touchStartOrigin;if(n===s.PROGRESS?this.changeProgress(i-a.x):n===s.VOLUME&&this.changeVolume(o-a.y),n===s.NONE)if(Math.abs(i-a.x)>Math.abs(o-a.y)){if(!this.enableProgressGesture)return void(this.gestureType=s.STOP);this.gestureType=s.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||e()}else{if(!this.pageGesture)return void(this.gestureType=s.STOP);this.gestureType=s.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||e()}}},touchend:function(t){this.gestureType!==s.NONE&&this.gestureType!==s.STOP&&(t.stopPropagation(),t.preventDefault()),this.gestureType===s.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=s.NONE},changeProgress:function(t){var e=this.$refs.video.duration,n=t/600*e+this.currentTimeOld;n<0?n=0:n>e&&(n=e),this.currentTimeNew=n},changeVolume:function(t){var e,n=this.volumeOld;"number"===typeof n&&(e=n-t/200,e<0?e=0:e>1&&(e=1),this.$refs.video.volume=e,this.volumeNew=e)},autoHideStart:function(){var t=this;this.otherData.hideTiming=setTimeout((function(){t.controlsVisible=!1}),3e3)},autoHideEnd:function(){var t=this.otherData;t.hideTiming&&(clearTimeout(t.hideTiming),t.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},u=c,l=(n("a61d"),n("8844")),f=Object(l["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-video",t._g({attrs:{id:t.id}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:t.touchstart,touchend:t.touchend,touchmove:t.touchmove,fullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e)},webkitfullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e,!0)}}},[n("video",t._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:t.objectFit},attrs:{loop:t.loop,src:t.srcSync,poster:t.poster,autoplay:t.autoplay,"webkit-playsinline":"",playsinline:""},domProps:{muted:t.muted},on:{click:t.triggerControls,durationchange:t.onDurationChange,loadedmetadata:t.onLoadedMetadata,progress:t.onProgress,waiting:t.onWaiting,error:t.onVideoError,play:t.onPlay,pause:t.onPause,ended:t.onEnded,timeupdate:t.onTimeUpdate,webkitbeginfullscreen:function(e){return t.emitFullscreenChange(!0)},x5videoenterfullscreen:function(e){return t.emitFullscreenChange(!0)},webkitendfullscreen:function(e){return t.emitFullscreenChange(!1)},x5videoexitfullscreen:function(e){return t.emitFullscreenChange(!1)}}},"video",t.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!t.playing,"uni-video-control-button-pause":t.playing},on:{click:function(e){return e.stopPropagation(),t.trigger(e)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-current-time"},[t._v(" "+t._s(t._f("time")(t.currentTime))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(e){return e.stopPropagation(),t.clickProgress(e)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:t.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:t.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]),t.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":t.enableDanmuSync},on:{click:function(e){return e.stopPropagation(),t.triggerDanmu(e)}}},[t._v(" "+t._s(t.$$t("uni.video.danmu"))+" ")]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":t.fullscreen},on:{click:function(e){return e.stopPropagation(),t.triggerFullscreen(!t.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.start&&t.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),t.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(e){return e.stopPropagation(),t.play(e)}}}),n("p",{staticClass:"uni-video-cover-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]):t._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t.$$t("uni.video.volume"))+" ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*t.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},t._l(10,(function(t,e){return n("div",{key:e,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t._f("time")(t.currentTimeNew))+" / "+t._s(t._f("time")(t.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[t._t("default")],2)])])}),[],!1,null,null,null);e["default"]=f.exports},"4ca1":function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return i}));var r=n("4738"),i={urls:{type:Array,required:!0,validator:function(t,e){var n;if(e.urls=t.map((function(t){if("string"===typeof t)return Object(r["a"])(t);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(t,e){"number"===typeof t?e.current=t>0&&t=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function s(e,n){var i,o=e.url,s=e.header,c=e.timeout,u=void 0===c?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:c,l=t,f=l.invokeCallbackHandler,d=new XMLHttpRequest,h=new a(d);return d.open("GET",o,!0),Object.keys(s).forEach((function(t){d.setRequestHeader(t,s[t])})),d.responseType="blob",d.onload=function(){clearTimeout(i);var t,e=d.status,a=this.response,s=d.getResponseHeader("content-disposition");if(s){var c=s.match(/filename="?(\S+)"?\b/);c&&(t=c[1])}a.name=t||Object(r["c"])(o),f(n,{errMsg:"downloadFile:ok",statusCode:e,tempFilePath:Object(r["b"])(a)})},d.onabort=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail abort"})},d.onerror=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail"})},d.onprogress=function(t){h._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesWritten:n,totalBytesExpectedToWrite:r})}))},d.send(),i=setTimeout((function(){d.onprogress=d.onload=d.onabort=d.onerror=null,h.abort(),f(n,{errMsg:"downloadFile:fail timeout"})}),u),h}}.call(this,n("2c9f"))},"4d5a":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"redirectTo",(function(){return c})),n.d(e,"navigateTo",(function(){return u})),n.d(e,"navigateBack",(function(){return l})),n.d(e,"reLaunch",(function(){return f})),n.d(e,"switchTab",(function(){return d})),n.d(e,"preloadPage",(function(){return h}));var r=n("38ce"),i=n("c879"),o=t,a=o.invokeCallbackHandler;function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,o=e.delta,a=e.events,c=e.exists,u=e.animationType,l=e.animationDuration,f=e.from,d=void 0===f?"navigateBack":f,h=e.detail,p=getApp().$router;switch(delete p.$eventChannel,t){case"redirectTo":if("back"===c){var v=Object(r["a"])(n);if(-1!==v){var g=getCurrentPages().length-1-v;if(g>0)return s("navigateBack",{delta:g})}}p.replace({type:t,path:n});break;case"navigateTo":return p.$eventChannel=Object(i["a"])(a),p.push({type:t,path:n,animationType:u,animationDuration:l}),{errMsg:t+":ok",eventChannel:p.$eventChannel};case"navigateBack":var m=!0,b=getCurrentPages();if(b.length){var y=b[b.length-1];Object(r["c"])(y.$options,"onBackPress")&&!0===y.__call_hook("onBackPress",{from:d})&&(m=!1)}m&&(o>1&&(p._$delta=o),p.go(-o,{animationType:u,animationDuration:l}));break;case"reLaunch":p.replace({type:t,path:n});break;case"switchTab":p.replace({type:t,path:n,params:{detail:h}});break}return{errMsg:t+":ok"}}function c(t){return s("redirectTo",t)}function u(t){return s("navigateTo",t)}function l(t){return s("navigateBack",t)}function f(t){return s("reLaunch",t)}function d(t){return s("switchTab",t)}function h(t,e){var n=t.url,r=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(r.substr(1)).then((function(){a(e,{url:n,errMsg:"preloadPage:ok"})})).catch((function(t){a(e,{url:n,errMsg:"preloadPage:fail "+t})}))}}.call(this,n("2c9f"))},"4dc6":function(t,e,n){"use strict";var r=n("655d"),i=n.n(r);i.a},"4e46":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("951c"),i=n.n(r),o=n("0372"),a=n("b405"),s=__uniConfig.tabBar||{};__uniConfig.tabBar=i.a.observable(Object(a["d"])(Object(o["f"])(s))),Object(a["c"])((function(){var t=Object(a["d"])(Object(o["f"])(s));__uniConfig.tabBar.backgroundColor=t.backgroundColor,__uniConfig.tabBar.borderStyle=t.borderStyle,__uniConfig.tabBar.color=t.color,__uniConfig.tabBar.selectedColor=t.selectedColor,__uniConfig.tabBar.blurEffect=t.blurEffect,__uniConfig.tabBar.midButton=t.midButton,t.list&&t.list.length&&__uniConfig.tabBar.list.length&&t.list.forEach((function(t,e){__uniConfig.tabBar.list[e].iconPath=t.iconPath,__uniConfig.tabBar.list[e].selectedIconPath=t.selectedIconPath}))}));var c=__uniConfig.tabBar},"4ed4":function(t,e,n){"use strict";(function(t,r){var i=n("340d"),o=n("1daa"),a=n("0372"),s=n("b435");e["a"]={name:"SystemChooseLocation",filters:{distance:function(t){return t>100?"".concat(t>1e3?(t/1e3).toFixed(1)+"k":t.toFixed(0),"m | "):t>0?"<100m | ":""}},mixins:[a["c"]],data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude;return{latitude:e,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(s["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var t=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(i["d"])((function(){t.reset(),t.keyword&&t.getList()}),1e3),this.$watch("searching",(function(e){t.reset(),e||t.getList()}))},methods:{choose:function(){this.selected&&(t.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){t.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(t){var e=t.detail.centerLocation;e&&this.move(e)},pushData:function(t){var e=this;t.forEach((function(t){e.list.push({name:t.title||t.name,address:t.address,distance:t._distance||t.distance,latitude:t.location.lat,longitude:t.location.lng})}))},getList:function(){var t=this;this.loading=!0;var e=Object(s["e"])();if(e.type===s["d"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(e,n,r){t.loading=!1,e&&e.length&&e.forEach((function(e){t.list.push({name:e.name||"",address:e.vicinity||e.formatted_address||"",distance:0,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})})),r&&(r.hasNextPage?t.nextPage=function(){r.nextPage()}:t.hasNextPage=!1)}))}else if(e.type===s["d"].QQ){var i=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(e.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(e.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(o["a"])(i,{callback:"callback"},(function(e){if(t.loading=!1,t.searching&&"data"in e&&e.data.length)t.pushData(e.data);else if("result"in e){var n=e.result;t.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&t.pushData(n.pois),t.list.length===t.pageSize*t.pageIndex&&(t.hasNextPage=!1)}}),(function(){t.loading=!1}))}else if(e.type===s["d"].AMAP){var a=this;window.AMap.plugin("AMap.PlaceSearch",(function(){if(a.longitude&&a.latitude){var t=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:a.pageIndex}),e=a.searching?a.keyword:"",n=a.searching?5e4:5e3;t.searchNearBy(e,[a.longitude,a.latitude],n,(function(t,e){"error"===t?r.error(e):"no_data"===t?a.hasNextPage=!1:a.pushData(e.poiList.pois)}))}a.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(t){var e=t.latitude,n=t.longitude;this.latitude=e,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("31d2"),n("418b")["default"])},"4ef5":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.startSoterAuthentication.waitingContent":"無法識別","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},"4f2e":function(t,e,n){"use strict";n.r(e);var r={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(t){this.setScrollTop(t)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(t){var e=this.$refs.content;"scroll"===getComputedStyle(e).overflowY&&(e.scrollTop=this._upx2pxNum(t))},_upx2pxNum:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return uni.upx2px(parseFloat(t))})),parseFloat(t)||0}}},i=r,o=(n("ca54"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-view",t._g({attrs:{"scroll-top":t.scrollTop}},t.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[t._t("default")],2)])}),[],!1,null,null,null);e["default"]=a.exports},"4fcb":function(t,e,n){"use strict";n.r(e),function(t){var r=n("340d");e["default"]={data:function(){return{showModal:{visible:!1}}},created:function(){var e=this;t.on("onShowModal",(function(t,n){e.showModal=t,e.onModalCloseCallback=n})),t.on("onHidePopup",(function(t){e.showModal.visible=!1}))},methods:{_onModalClose:function(t){this.showModal.visible=!1,Object(r["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(t)}}}}.call(this,n("2c9f"))},"508e":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("cff9"),i=n("6564");function o(t,e){var n=t.name,r=t.arg;"postMessage"===n||uni[n](r)}function a(t,e){var n=e.getApp,a=e.getCurrentPages;function s(t,e){var n=a();n.length&&Object(r["b"])(n[n.length-1],t,e)}function c(t){return function(e){s(t,e)}}t("onError",(function(t){Object(r["a"])(n(),"onError",t)})),t("onPageNotFound",(function(t){Object(r["a"])(n(),"onPageNotFound",t)})),t("onAppEnterBackground",(function(){Object(r["a"])(n(),"onHide"),s("onHide")})),t("onAppEnterForeground",(function(t){Object(r["a"])(n(),"onShow",t);var e=a();0!==e.length&&s("onShow")})),t("onResize",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&Object(r["b"])(n,"onResize",t)})),t("onPullDownRefresh",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&(Object(i["setPullDownRefreshPageId"])(e),Object(r["b"])(n,"onPullDownRefresh"))})),t("onTabItemTap",c("onTabItemTap")),t("onNavigationBarButtonTap",c("onNavigationBarButtonTap")),t("onNavigationBarSearchInputChanged",c("onNavigationBarSearchInputChanged")),t("onNavigationBarSearchInputConfirmed",c("onNavigationBarSearchInputConfirmed")),t("onNavigationBarSearchInputClicked",c("onNavigationBarSearchInputClicked")),t("onNavigationBarSearchInputFocusChanged",c("onNavigationBarSearchInputFocusChanged")),t("onWebInvokeAppService",o)}},"50d3":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("4738"),a=n("cce2"),s={methods:{$getRealPath:function(t){return t?Object(o["a"])(t):t},$trigger:function(t,e,n){this.$emit(t,a["b"].call(this,t,e,n,this.$el,this.$el))}}};function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&(a.length=1),f.push("".concat(o,"(").concat(a.join(","),")"));else if(r.concat(i).includes(a[0])){o=a[0];var s=a[1];u[o]=i.includes(o)?l(s):s}})),u.transform=u.webkitTransform=f.join(" "),u.transition=u.webkitTransition=Object.keys(u).map((function(t){return"".concat(function(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})).replace("webkit","-webkit")}(t)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")})).join(","),u.transformOrigin=u.webkitTransformOrigin=a.transformOrigin,u}(e);Object.keys(s).forEach((function(e){t.$el.style[e]=s[e]})),n+=1,n0&&void 0!==arguments[0]?arguments[0]:"/",e=decodeURI(window.location.pathname),n=window.location.search,r=window.location.hash;return"/"===t[t.length-1]&&e===t.substring(0,t.length-1)&&(e=t,window.history.replaceState({},"",t+n+r)),t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+n+r}e["default"]={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.routes;e.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(e.config.devtools=!1),Object(u["a"])(e),Object(c["a"])(e),Object(f["v"])(e),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var v=d(r),g=new i.a({id:v,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:r,scrollBehavior:function(t,e,n){if(n)return n;if(t&&e&&t.meta.isTabBar&&e.meta.isTabBar){var r=Object(l["b"])(t.params.__id__);if(r)return r}return{x:0,y:0}}}),m=[],b=g.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):h());if(b.meta.name&&(b.meta.id?m.push(b.meta.name+"-"+b.meta.id):m.push(b.meta.name+"-"+(v+1))),b.meta&&b.meta.name&&(document.body.className="uni-body "+b.meta.name,b.meta.isNVue)){var y="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(y,"")}e.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:m}};var i=Object(a["a"])(e,r,b);Object.keys(i).forEach((function(t){n[t]=n[t]?[].concat(i[t],n[t]):[i[t]]})),n.router=g,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(e){t.error(e)}])}else if(Object(o["d"])(this)){var c=Object(s["a"])();Object.keys(c).forEach((function(t){n.mpOptions?n[t]=n[t]?[].concat(n[t],c[t]):[c[t]]:n[t]=n[t]?[].concat(c[t],n[t]):[c[t]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(e.prototype,"$page",{get:function(){return this.__page__}}),e.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},e.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},e.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},e.use(i.a)}}}.call(this,n("418b")["default"])},"51e5":function(t,e,n){"use strict";n.r(e),n.d(e,"setClipboardData",(function(){return i}));var r=n("0372"),i={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(t,e){if(e.showToast){var n=Object(r["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},"526c":function(t,e,n){"use strict";var r=n("b91d"),i=n.n(r);i.a},"53f9":function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",(function(){return r})),n.d(e,"arrayBufferToBase64",(function(){return i}));var r=[{name:"base64",type:String,required:!0}],i=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},"541c":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n,r,i){var o=n.$page.id;t.publishHandler(o+"-map-"+e,{mapId:e,type:r,data:i},o)}n.d(e,"operateMapPlayer",(function(){return r}))}.call(this,n("2c9f"))},5505:function(t,e,n){"use strict";var r=n("c93f"),i=n.n(r);i.a},5556:function(t,e,n){"use strict";var r=n("68d2"),i=n.n(r);i.a},"56ae":function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},i(t)}n.r(e),n.d(e,"setStorage",(function(){return a})),n.d(e,"setStorageSync",(function(){return s})),n.d(e,"getStorage",(function(){return c})),n.d(e,"getStorageSync",(function(){return u})),n.d(e,"removeStorage",(function(){return l})),n.d(e,"removeStorageSync",(function(){return f})),n.d(e,"clearStorage",(function(){return d})),n.d(e,"clearStorageSync",(function(){return h})),n.d(e,"getStorageInfo",(function(){return p})),n.d(e,"getStorageInfoSync",(function(){return v}));function o(t){try{var e="string"===typeof t?JSON.parse(t):t,n=e.type;if(["object","string","number","boolean","undefined"].indexOf(n)>=0){var r=Object.keys(e);if(2===r.length&&"data"in e){if(i(e.data)===n)return e.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(e.data))return new Date(e.data)}else if(1===r.length)return""}}catch(a){}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=t.data,r=i(n),o="string"===r?n:JSON.stringify({type:r,data:n});try{localStorage.setItem(e,o)}catch(a){return{errMsg:"setStorage:fail ".concat(a)}}return{errMsg:"setStorage:ok"}}function s(t,e){a({key:t,data:e})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage&&localStorage.getItem(e);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var r=n;try{var i=JSON.parse(n),a=o(i);void 0!==a&&(r=a)}catch(s){}return{data:r,errMsg:"getStorage:ok"}}function u(t){var e=c({key:t});return e.data}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key;return localStorage&&localStorage.removeItem(e),{errMsg:"removeStorage:ok"}}function f(t){l({key:t})}function d(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){d()}function p(){for(var t=localStorage&&localStorage.length||0,e=[],n=0,r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("418b")["default"])},"5db9":function(t,e,n){"use strict";var r=n("ea72"),i=r["a"],o=(n("5f77"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-tabbar",{class:["uni-tabbar-"+t.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:t.tabbarBackgroundColor,"backdrop-filter":"none"!==t.blurEffect?"blur(10px)":t.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:t.borderColor}}),t._l(t.visibleList,(function(e,r){return n("div",{key:e.isMidButton?r:e.pagePath,staticClass:"uni-tabbar__item",style:e.isMidButton?{flex:"0 0 "+e.width,position:"relative"}:{},on:{click:function(n){return t._switchTab(e,r)}}},[e.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:t._uniTabbarBdStyle(e)},[e.iconPath?n("img",{style:{width:e.iconWidth,height:e.iconWidth},attrs:{src:t._getRealPath(e.iconPath)}}):t._e()]):t._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:t.height}},[t.getIconPath(e,r)||e.iconfont||e.iconPath||e.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text},style:{width:t.iconWidth,height:t.iconWidth}},[e.iconfont?n("div",{staticClass:"uni-tabbar__iconfont",style:{color:t.selectedIndex===r?e.iconfont.selectedColor:e.iconfont.color,fontSize:e.iconfont.fontSize||t.iconWidth}},[t._v(" "+t._s(t.selectedIndex===r?e.iconfont.selectedText:e.iconfont.text)+" ")]):e.isMidButton?t._e():n("img",{attrs:{src:t._getRealPath(t.getIconPath(e,r))}})]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.selectedColor:t.color,fontSize:t.fontSize,lineHeight:e.iconPath?"normal":1.8,marginTop:e.iconPath?t.spacing:"inherit"}},[t._v(" "+t._s(e.text)+" ")]):t._e(),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:t.height}})])}),[],!1,null,null,null),s=a.exports,c=n("e16e"),u=c["a"],l=(n("5556"),Object(o["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.responsive?n("uni-layout",{class:{"uni-app--showlayout":t.showLayout,"uni-app--showtopwindow":t.showTopWindow,"uni-app--showleftwindow":t.showLeftWindow,"uni-app--showrightwindow":t.showRightWindow}},[t.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:t.showTopWindow||t.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:t.topWindowStyle},[n("v-uni-top-window",t._b({ref:"top",attrs:{"navigation-bar-title-text":t.navigationBarTitleText},on:{"hook:mounted":t.onTopWindowInit}},"v-uni-top-window",t.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:t.topWindowHeight}})]):t._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)],1),t.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:t.showLeftWindow||t.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:t.leftWindowStyle,attrs:{"data-show":t.apiShowLeftWindow}},[t.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowLeftWindow=!1}}}):t._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",t._b({ref:"left",on:{"hook:mounted":t.onLeftWindowInit}},"v-uni-left-window",t.bindWindow,!1))],1)]):t._e(),t.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:t.showRightWindow||t.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:t.rightWindowStyle,attrs:{"data-show":t.apiShowRightWindow}},[t.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowRightWindow=!1}}}):t._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",t._b({ref:"right",on:{"hook:mounted":t.onRightWindowInit}},"v-uni-right-window",t.bindWindow,!1))],1)]):t._e()],1)],1):n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)}),[],!1,null,null,null)),f=l.exports,d=n("dad6"),h=d["a"],p=(n("cbd0"),Object(o["a"])(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[t.visible?n("uni-toast",{attrs:{"data-duration":t.duration}},[t.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(t){t.preventDefault()}}}):t._e(),t.image||t.iconClass?n("div",{staticClass:"uni-toast"},[t.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:t.image}}):n("i",{staticClass:"uni-icon_toast",class:t.iconClass}),n("p",{staticClass:"uni-toast__content"},[t._v(" "+t._s(t.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(" "+t._s(t.title)+" ")])])]):t._e()],1)}),[],!1,null,null,null)),v=p.exports,g=n("a409"),m=n("7687"),b=n("b405");var y={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}};function _(t){this.cancelColor_=y[t].cancelColor}var w={name:"Modal",components:{keypress:m["a"]},mixins:[g["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},data:function(){return{cancelColor_:"#000"}},watch:{visible:function(t){t?(this.cancelColor_=this.$parent.showModal.cancelColor,"#000"===this.$parent.showModal.cancelColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},methods:{_onThemeChange:function(t){var e=t.theme;_.call(this,e)},_close:function(t){var e=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,!0);this.editable&&"confirm"===t&&(e.content=this.$refs.editContent.value),this.$emit("close",e)}}},x=w,S=(n("96b9"),Object(o["a"])(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[t.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:t._s(t.title)}})]):t._e(),t.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:t.placeholderText},domProps:{value:t.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:t._s(t.content)},on:{touchmove:function(t){t.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[t.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:t.cancelColor_},on:{click:function(e){return t._close("cancel")}}},[t._v(" "+t._s(t.cancelText)+" ")]):t._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:t.confirmColor},on:{click:function(e){return t._close("confirm")}}},[t._v(" "+t._s(t.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close("cancel")},enter:function(e){!t.editable&&t._close("confirm")}}})],1)],1)}),[],!1,null,null,null)),k=S.exports,C=n("a202"),O=n("0372"),T=n("39bd"),E=n("c700"),A=n("d4c9"),j=n("4ba6"),M=n("6f75");var I={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function P(t){var e=this;["listItemColor","cancelItemColor"].forEach((function(n){e[n]=I[t][n]}))}var $={name:"ActionSheet",components:{keypress:m["a"]},mixins:[O["c"],C["default"],T["a"],E["a"]],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0,listItemColor:"#000000",cancelItemColor:"#000000"}},watch:{visible:function(t){var e=this;t?(this.$nextTick((function(){e.title&&(e.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),e._scroller.update(),e.contentHeight=e.$refs.content.clientHeight-e.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(t){(function(t){var e=0,n=0;t.addEventListener("touchstart",(function(t){var r=t.changedTouches[0];e=r.clientX,n=r.clientY})),t.addEventListener("touchend",(function(t){var r=t.changedTouches[0];if(Math.abs(r.clientX-e)<20&&Math.abs(r.clientY-n)<20){var i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(t){i[t]=r[t]})),t.target.dispatchEvent(i)}}))})(t)}))})),this.listItemColor=this.cancelItemColor=this.itemColor,"#000"===this.$parent.showActionSheet.itemColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},mounted:function(){var t=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){t.initScroller(t.$refs.content,{enableY:!0,friction:new A["a"](1e-4),spring:new j["a"](2,90,20),onScroll:function(e){t.scrollTop=e.target.scrollTop}})})),Object(M["b"])()},methods:{_onThemeChange:function(t){var e=t.theme;P.call(this,e)},_close:function(t){this.$emit("close",t)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t),Object(M["a"])({disable:!0});break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t),Object(M["a"])({disable:!1})}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;Math.abs(e)>10?(this.scrollTop+=e/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=e,t.preventDefault()}}},L=$,R=(n("5fe8"),Object(o["a"])(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-actionsheet",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(e){return t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible},style:t.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:t._handleWheel}},[t.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:t.titleHeight+"px"}}):t._e(),t.title?n("div",{staticClass:"uni-actionsheet__title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),n("div",{style:{maxHeight:t.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},t._l(t.itemList,(function(e,r){return n("div",{key:r,staticClass:"uni-actionsheet__cell",style:{color:t.listItemColor},on:{click:function(e){return t._close(r)}}},[t._v(" "+t._s(e)+" ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.cancelItemColor},on:{click:function(e){return t._close(-1)}}},[t._v(" "+t._s(t.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:t.popupStyle.triangle})]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close(-1)}}})],1)}),[],!1,null,null,null)),N=R.exports,D={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(t){var e=t.detail.scale;this.scale=e},onImgLoad:function(t){var e=t.target,n=e.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(t){var e=this.$el,n=e.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(t)},onTouchEnd:function(t){var e=this.scale,n=e*this.imgWidth>this.width,r=e*this.imgHeight>this.height;this.direction=n&&r?"all":n?"horizontal":r?"vertical":"none",this.checkDirection(t)},checkDirection:function(t){var e=this.direction;"all"!==e&&"horizontal"!==e||t.stopPropagation()}}},B=D,F=(n("1867"),Object(o["a"])(B,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(e){return t.onTouchStart(e)},touchmove:function(e){return t.checkDirection(e)},touchend:function(e){return t.onTouchEnd(e)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:t.direction,inertia:"",scale:"","scale-min":"1","scale-max":"4"},on:{scale:t.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:t.src},on:{load:t.onImgLoad}})])],1)}),[],!1,null,null,null)),z=F.exports,W={name:"PreviewImage",components:{imageView:z},props:{visible:{type:Boolean,default:!1},urls:{type:Array,default:function(){return[]}},current:{type:[String,Number],default:0}},data:function(){return{index:0}},watch:{visible:function(t){if(t){var e="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=e<0?0:e}}},mounted:function(){var t=this,e=0,n=0;this.$el.addEventListener("mousedown",(function(r){t.preventDefault=!1,e=r.clientX,n=r.clientY})),this.$el.addEventListener("mouseup",(function(r){(Math.abs(r.clientX-e)>20||Math.abs(r.clientY-n)>20)&&(t.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||this.$emit("close")}}},H=W,q=(n("4213"),Object(o["a"])(H,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"uni-system-preview-image",on:{click:t._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{navigation:"auto",current:t.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(e){t.index=e}}},t._l(t.urls,(function(t,e){return n("v-uni-swiper-item",{key:e},[n("image-view",{attrs:{src:t}})],1)})),1),t._m(0)],1):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-btn-back"},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])}],!1,null,null,null)),U=q.exports,V={Toast:v,Modal:k,ActionSheet:N,PreviewImage:U};function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e["a"]=function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?p:255,[f,d,h,p]}return i.error("unsupported color:"+t),[0,0,0,255]}function _(t,e){this.type="pattern",this.data=t,this.colorStop=e}var w=function(){function t(e,n){h(this,t),this.type=e,this.data=n,this.colorStop=[]}return v(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,y(e)])}}]),t}();function x(t){this.width=t}var S=function(){function t(e,n){h(this,t),this.id=e,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return v(t,[{key:"draw",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=f(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=g.push(n)),m(this.id,this.pageId,"actionsChanged",{actions:r,reserve:e,callbackId:t})}},{key:"createLinearGradient",value:function(t,e,n,r){return new w("linear",[t,e,n,r])}},{key:"createCircularGradient",value:function(t,e,n){return new w("radial",[t,e,n])}},{key:"createPattern",value:function(t,e){if(void 0===e)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(e)<0))return new _(t,e);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+e+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(t){var e,n=this.state.font;return e=function(t,e){var n=document.createElement("canvas"),r=n.getContext("2d");return r.font=e,r.measureText(t).width||0}(t,n),new x(e)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}},{key:"moveTo",value:function(t,e){this.path.push({method:"moveTo",data:[t,e]}),this.subpath=[[t,e]]}},{key:"lineTo",value:function(t,e){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[t,e]}):this.path.push({method:"lineTo",data:[t,e]}),this.subpath.push([t,e])}},{key:"quadraticCurveTo",value:function(t,e,n,r){this.path.push({method:"quadraticCurveTo",data:[t,e,n,r]}),this.subpath.push([n,r])}},{key:"bezierCurveTo",value:function(t,e,n,r,i,o){this.path.push({method:"bezierCurveTo",data:[t,e,n,r,i,o]}),this.subpath.push([i,o])}},{key:"arc",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,r,i,o]}),this.subpath.push([t,e])}},{key:"rect",value:function(t,e,n,r){this.path.push({method:"rect",data:[t,e,n,r]}),this.subpath=[[t,e]]}},{key:"arcTo",value:function(t,e,n,r,i){this.path.push({method:"arcTo",data:[t,e,n,r,i]}),this.subpath.push([n,r])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:f(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var t=f(this.actions);return this.clearActions(),t}},{key:"lineDashOffset",set:function(t){this.actions.push({method:"setLineDashOffset",data:[t]})}},{key:"globalCompositeOperation",set:function(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}},{key:"shadowBlur",set:function(t){this.actions.push({method:"setShadowBlur",data:[t]})}},{key:"shadowColor",set:function(t){this.actions.push({method:"setShadowColor",data:[t]})}},{key:"shadowOffsetX",set:function(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}},{key:"shadowOffsetY",set:function(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}},{key:"font",set:function(t){var e=this;this.state.font=t;var n=t.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),o=parseFloat(n[3]),a=n[7],s=[];r.forEach((function(t,n){["italic","oblique","normal"].indexOf(t)>-1?(s.push({method:"setFontStyle",data:[t]}),e.state.fontStyle=t):["bold","normal"].indexOf(t)>-1?(s.push({method:"setFontWeight",data:[t]}),e.state.fontWeight=t):0===n?(s.push({method:"setFontStyle",data:["normal"]}),e.state.fontStyle="normal"):1===n&&c()})),1===r.length&&c(),r=s.map((function(t){return t.data[0]})).join(" "),this.state.fontSize=o,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(r," ").concat(o,"px ").concat(a)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function c(){s.push({method:"setFontWeight",data:["normal"]}),e.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(t){this.setFillStyle(t)}},{key:"strokeStyle",set:function(t){this.setStrokeStyle(t)}},{key:"globalAlpha",set:function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}},{key:"textAlign",set:function(t){this.actions.push({method:"setTextAlign",data:[t]})}},{key:"lineCap",set:function(t){this.actions.push({method:"setLineCap",data:[t]})}},{key:"lineJoin",set:function(t){this.actions.push({method:"setLineJoin",data:[t]})}},{key:"lineWidth",set:function(t){this.actions.push({method:"setLineWidth",data:[t]})}},{key:"miterLimit",set:function(t){this.actions.push({method:"setMiterLimit",data:[t]})}},{key:"textBaseline",set:function(t){this.actions.push({method:"setTextBaseline",data:[t]})}}]),t}();function k(e,n){if(n)return new S(e,n.$page.id);var r=Object(s["a"])();if(r)return new S(e,r);t.emit("onError","createCanvasContext:fail")}function C(t,e){var n=t.canvasId,r=t.x,i=t.y,o=t.width,a=t.height,u=Object(s["a"])();if(u){var l=g.push((function(t){var n=t.data;n&&n.length&&(t.data=new Uint8ClampedArray(n)),Object(c["a"])(e,t)}));m(n,u,"getImageData",{x:r,y:i,width:o,height:a,callbackId:l})}else Object(c["a"])(e,{errMsg:"canvasGetImageData:fail"})}function O(t,e){var n=t.canvasId,r=t.data,i=t.x,o=t.y,a=t.width,u=t.height,l=Object(s["a"])();if(l){var f=g.push((function(t){Object(c["a"])(e,t)}));r=Array.prototype.slice.call(r),m(n,l,"putImageData",{data:r,x:i,y:o,width:a,height:u,compressed:void 0,callbackId:f})}else Object(c["a"])(e,{errMsg:"canvasPutImageData:fail"})}function T(t,e){var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.width,l=t.height,f=t.destWidth,d=t.destHeight,h=t.canvasId,p=t.fileType,v=t.quality,b=Object(s["a"])();if(b){var y=g.push((function(t){Object(c["a"])(e,t)})),_="".concat(u["TEMP_PATH"],"/canvas");m(h,b,"toTempFilePath",{x:r,y:o,width:a,height:l,destWidth:f,destHeight:d,fileType:p,quality:v,dirname:_,callbackId:y})}else Object(c["a"])(e,{errMsg:"canvasToTempFilePath:fail"})}[].concat(["scale","rotate","translate","setTransform","transform"],["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach((function(t){S.prototype[t]=function(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:f(this.path)})};case"fillRect":return function(t,e,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[t,e,n,r]}]})};case"strokeRect":return function(t,e,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[t,e,n,r]}]})};case"fillText":case"strokeText":return function(e,n,r,i){var o=[e.toString(),n,r];"number"===typeof i&&o.push(i),this.actions.push({method:t,data:o})};case"drawImage":return function(e,n,r,i,o,a,s,c,u){var l;function f(t){return"number"===typeof t}void 0===u&&(a=n,s=r,c=i,u=o,n=void 0,r=void 0,i=void 0,o=void 0),l=f(n)&&f(r)&&f(i)&&f(o)?[e,a,s,c,u,n,r,i,o]:f(c)&&f(u)?[e,a,s,c,u]:[e,a,s],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),r=0;re-n&&tthis._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&ethis._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},s.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},s.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},s.prototype.dt=function(){return-this._x_v/this._x_a},s.prototype.done=function(){var t=i(this.s().x,this._endPositionX)||i(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},s.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},s.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},c.prototype._solve=function(t,e){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0===o){var a=-n/(2*r),s=t,c=e/(a*t);return{x:function(t){return(s+c*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(s+c*t)*e+c*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},c.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},c.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},c.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!o(e,.1)){e=e||0;var r=this._endPosition;this._solution&&(o(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),o(e,.1)&&(e=0),o(r,.1)&&(r=0),r+=this._endPosition),this._solution&&o(r-t,.1)&&o(e,.1)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},c.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},c.prototype.done=function(t){return t||(t=(new Date).getTime()),i(this.x(),this._endPosition,.1)&&o(this.dx(),.1)},c.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},c.prototype.springConstant=function(){return this._k},c.prototype.damping=function(){return this._c},c.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]},u.prototype.setEnd=function(t,e,n,r){var i=(new Date).getTime();this._springX.setEnd(t,r,i),this._springY.setEnd(e,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},u.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},u.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},u.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var l=n("6f75"),f=!1;function d(t){f||(f=!0,requestAnimationFrame((function(){t(),f=!1})))}function h(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function p(t,e,n){var r={id:0,cancelled:!1};return function e(n,r,i,o){if(!n||!n.cancelled){i(r);var a=t.done();a||n.cancelled||(n.id=requestAnimationFrame(e.bind(null,n,r,i,o))),a&&o&&o(r)}}(r,t,e,n),{cancel:function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}.bind(null,r),model:t}}var v={name:"MovableView",mixins:[r["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.5:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},disabled:function(){this.__handleTouchStart()},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new u(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new s(1,this.frictionNumber),this._declineX=new a,this._declineY=new a,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(l["b"])()},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(l["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,r=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dx/t.detail.dy)<1)),this.yMove&&(r=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dy/t.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var i="touch";nthis.maxX&&(this.outOfBounds?(i="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),rthis.maxY&&(this.outOfBounds?(i="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),d((function(){e._setTransform(n,r,e._scale,i)}))}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(l["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var r=this._friction.delta().x,i=this._friction.delta().y,o=r+this._translateX,a=i+this._translateY;othis.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*i/r),athis.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*r/i),this._friction.setEnd(o,a),this._FA=p(this._friction,(function(){var e=t._friction.s(),n=e.x,r=e.y;t._setTransform(n,r,t._scale,"friction")}),(function(){t._FA.cancel()}))}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):tthis.maxY?(e=this.maxY,n=!0):e3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||i||this.$trigger("change",{},{x:h(t,this._scaleOffset.x),y:h(e,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{},{x:t,y:e,scale:n});var a="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=t,this._translateY=e,this._scale=n}}},g=v,m=(n("5e27"),n("8844")),b=Object(m["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-movable-view",t._g({},t.$listeners),[n("v-uni-resize-sensor",{on:{resize:t.setParent}}),t._t("default")],2)}),[],!1,null,null,null);e["default"]=b.exports},"65db":function(t,e,n){},6625:function(t,e,n){"use strict";n.r(e),n.d(e,"createAudioContext",(function(){return i})),n.d(e,"createVideoContext",(function(){return o})),n.d(e,"createMapContext",(function(){return a})),n.d(e,"createCanvasContext",(function(){return s}));var r=[{name:"id",type:String,required:!0}],i=r,o=r,a=r,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},6729:function(t,e,n){},6773:function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseImage",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),s=n("909e"),c=t,u=c.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,c=t.sourceType,f=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:c,extension:f,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:o(t)},beforeAll:function(){r=""}},e)}function s(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var c=a("redirectTo"),u=a("reLaunch"),l=a("navigateTo",s(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),f=a("switchTab"),d=Object.assign({delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}},s(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),h={url:{type:String,required:!0,validator:o("preloadPage")}},p={url:{type:String,required:!0,validator:o("unPreloadPage")}}},"6c36":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=t,i=r.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location",query:e},(function(){t.subscribe("onChooseLocation",(function e(r){t.unsubscribe("onChooseLocation",e),i(n,r?Object.assign(r,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})}))}),(function(){i(n,{errMsg:"chooseLocation:fail"})}))}n.d(e,"chooseLocation",(function(){return r}))}.call(this,n("2c9f"))},"6d4b":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return s}));var r,i=n("b435"),o=n("d359"),a={};function s(e,n){var s=Object(i["e"])();if(s.key){var c=a[s.type]=a[s.type]||[];if(r)n(r);else if(window[s.type]&&window[s.type].maps)r=i["c"]?window[s.type]:window[s.type].maps,r.Callout=r.Callout||Object(o["a"])(r),n(r);else if(c.length)c.push(n);else{c.push(n);var u=window,l="__map_callback__"+s.type;u[l]=function(){delete u[l],r=i["c"]?window[s.type]:window[s.type].maps,r.Callout=Object(o["a"])(r),c.forEach((function(t){return t(r)})),c.length=0};var f=document.createElement("script"),d=function(t){return{qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&"}[t]}(s.type);s.type===i["d"].QQ&&e.push("geometry"),e.length&&(d+="libraries=".concat(e.join("%2C"),"&")),i["c"]&&function(t){window._AMapSecurityConfig={securityJsCode:t.securityJsCode||"",serviceHost:t.serviceHost||""}}(s),f.src="".concat(d,"key=").concat(s.key,"&callback=").concat(l),f.onerror=function(){t.error("Map load failed.")},document.body.appendChild(f)}}else t.error("Map key not configured.")}}).call(this,n("418b")["default"])},"6ddd":function(t,e,n){},"6f73":function(t,e,n){"use strict";n.r(e),n.d(e,"makePhoneCall",(function(){return r}));var r={phoneNumber:{type:String,required:!0,validator:function(t){if(!t)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},"6f75":function(t,e,n){"use strict";function r(){}function i(t){t.disable}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},7068:function(t,e,n){"use strict";n.r(e),n.d(e,"onKeyboardHeightChange",(function(){return a})),n.d(e,"offKeyboardHeightChange",(function(){return s}));var r,i=n("9131"),o=n("745a");function a(t){Object(i["b"])(r),r=t}function s(){r=null}Object(o["d"])("onKeyboardHeightChange",(function(t){r&&Object(i["a"])(r,t)}))},"70bc":function(t,e,n){},"71a4":function(t,e,n){"use strict";(function(t){function r(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}function i(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"71be":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("340d"),i=n("cff9"),o=n("9798");function a(){return{created:function(){var t=Object(r["e"])(this.$route.query);(function(t,e){var n=t.$route;t.route=n.meta.pagePath,t.options||(t.options=e);var i=Object(r["i"])(n.params,"__id__")?n.params.__id__:n.meta.id,a=n.fullPath;n.meta.isEntry&&-1===a.indexOf(n.meta.pagePath)&&(a="/"+n.meta.pagePath+a.replace("/","")),t.__page__={id:i,path:n.path,route:n.meta.pagePath,fullPath:a,options:e,meta:Object.assign({},n.meta)};var s=t.$router.$eventChannel||new o["a"];t.getOpenerEventChannel=function(){return s},t.$vm=t,t.$root=t,t.$holder=t.$parent.$parent,t.$mp={mpType:"page",page:t,query:{},status:""}})(this,t),Object(i["b"])(this,"onLoad",t),Object(i["b"])(this,"onShow")}}}},"724c":function(t,e,n){"use strict";var r=n("5a2d"),i=n.n(r);i.a},7317:function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return s}));var r=n("745a"),i="longPressActionsCallback",o={};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o=t.longPressActions||{},(o.success||o.fail||o.complete)&&(o.callbackId=i),Object(r["c"])("previewImagePlus",t)}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("closePreviewImagePlus",t)}Object(r["d"])(i,(function(t){var e=t.errMsg||"";new RegExp("\\:\\s*fail").test(e)?o.fail&&o.fail(t):o.success&&o.success(t),o.complete&&o.complete(t)}))},"745a":function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("b15e");function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?v.PICKER:v.SELECT},system:function(){if(this.mode===h.DATE&&!Object.values(p).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(t){var e=this;t?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=t,this._select()):this.__contentVisibleDelay=setTimeout((function(){e.contentVisible=t}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(t){var e=this;if(this.mode===h.TIME||this.mode===h.DATE){var n=this.mode===h.TIME?this._getTimeValue:this._getDateValue,r=this.valueArray,i=this.startArray,o=this.endArray;if(this.mode===h.DATE){var a=this.dateArray,s=a[2].length,c=Number(a[2][r[2]])||1,u=new Date("".concat(a[0][r[0]],"/").concat(a[1][r[1]],"/").concat(c)).getDate();un(o)&&this._cloneArray(r,o)}t.forEach((function(t,n){t!==e.oldValueArray[n]&&(e.oldValueArray[n]=t,e.mode===h.MULTISELECTOR&&e.$trigger("columnchange",{},{column:n,value:t}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(t){var e=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var r=t.currentTarget.getBoundingClientRect();this.popover={top:r.top,left:r.left,width:r.width,height:r.height},setTimeout((function(){e.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case h.SELECTOR:this.valueSync=0;break;case h.MULTISELECTOR:this.valueSync=this.value.map((function(t){return 0}));break;case h.DATE:case h.TIME:this.valueSync="";break;default:break}},_createTime:function(){var t=[],e=[];t.splice(0,t.length);for(var n=0;n<24;n++)t.push((n<10?"0":"")+n);e.splice(0,e.length);for(var r=0;r<60;r++)e.push((r<10?"0":"")+r);this.timeArray.push(t,e)},_createDate:function(){for(var t=[],e=function(t){var e=(new Date).getFullYear(),n=e-150,r=e+150;if(t.start){var i=new Date(t.start).getFullYear();!isNaN(i)&&ir&&(r=o)}return{start:n,end:r}}(this),n=e.start,r=e.end;n<=r;n++)t.push(String(n));for(var i=[],o=1;o<=12;o++)i.push((o<10?"0":"")+o);for(var a=[],s=1;s<=31;s++)a.push((s<10?"0":"")+s);this.dateArray.push(t,i,a)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 31*t[0]*12+31*(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;na?0:o)}break;case h.TIME:case h.DATE:this.valueSync=String(t);break;default:var s=Number(t);this.valueSync=s<0?0:s;break}},_setValueArray:function(){var t,e=this.valueSync;switch(this.mode){case h.MULTISELECTOR:t=u(e);break;case h.TIME:t=this._getDateValueArray(e,Object(o["g"])({mode:h.TIME}));break;case h.DATE:t=this._getDateValueArray(e,Object(o["g"])({mode:h.DATE}));break;default:t=[e];break}this.oldValueArray=u(t),this.valueArray=u(t)},_getValue:function(){var t=this,e=this.valueArray;switch(this.mode){case h.SELECTOR:return e[0];case h.MULTISELECTOR:return e.map((function(t){return t}));case h.TIME:return this.valueArray.map((function(e,n){return t.timeArray[n][e]})).join(":");case h.DATE:return this.valueArray.map((function(e,n){return t.dateArray[n][e]})).join("-")}},_getDateValueArray:function(t,e){var n,r=this.mode===h.DATE?"-":":",i=this.mode===h.DATE?this.dateArray:this.timeArray;if(this.mode===h.TIME)n=2;else switch(this.fields){case p.YEAR:n=1;break;case p.MONTH:n=2;break;default:n=3;break}for(var o=String(t).split(r),a=[],s=0;s=0&&(a=e?this._getDateValueArray(e):a.map((function(){return 0}))),a},_change:function(){this._close(),this.valueChangeSource="click";var t=this._getValue();this.valueSync=Array.isArray(t)?t.map((function(t){return t})):t,this.$trigger("change",{},{value:t})},_cancel:function(t){if("firefox"===this.system){var e=this.popover,n=e.top,r=e.left,i=e.width,o=e.height,a=t.pageX,s=t.pageY;if(a>r&&an&&s0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},o={title:{type:String,required:!0}}},"7aa4":function(t,e,n){},"7aa9":function(t,e,n){"use strict";n.r(e);var r=n("4b21"),i=n("340d"),o=n("4738"),a={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},s={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function c(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(t,e){if(Object(i["i"])(s,e)&&s[e])return s[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n.innerHTML=t,n.innerText||n.textContent}))}function u(t,e,n){return"img"===t&&"src"===e?Object(o["a"])(n):n}function l(t,e,n,r){return t.forEach((function(t){if(Object(i["l"])(t))if(Object(i["i"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(c(t.text)));else{if("string"!==typeof t.name||!t.name)return;var o=t.name.toLowerCase();if(!Object(i["i"])(a,o))return;var s=document.createElement(o);if(!s)return;var f=t.attrs;if(n&&s.setAttribute(n,""),Object(i["l"])(f)){var d=a[o]||[];Object.keys(f).forEach((function(t){var e=f[t];switch(t){case"class":Array.isArray(e)&&(e=e.join(" "));case"style":s.setAttribute(t,e);break;default:-1!==d.indexOf(t)&&s.setAttribute(t,u(o,t,e))}}))}(function(t,e,n){["a","img"].includes(t.name)&&n&&(e.setAttribute("onClick","return false;"),e.addEventListener("click",(function(e){n(e,{node:t}),e.stopPropagation()}),!0))})(t,s,r);var h=t.children;Array.isArray(h)&&h.length&&l(t.children,s,n,r),e.appendChild(s)}})),e}var f={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){var e="",n=this;while(n)!e&&(e=n.$options._scopeId),n=n.$parent;var i=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof t&&(t=Object(r["a"])(t));var o=l(t,document.createDocumentFragment(),e,i&&this.triggerItemClick);o.appendChild(this.$refs.sensor.$el);var a=this.$refs.content;a.innerHTML="",a.appendChild(o)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",t,e)}}},d=f,h=n("8844"),p=Object(h["a"])(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._updateView()}}})],1)])}),[],!1,null,null,null);e["default"]=p.exports},"7cce":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("340d"),i=function(){var t=document.createElement("canvas");t.height=t.width=0;var e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),o=CanvasRenderingContext2D.prototype;function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.width=t.offsetWidth*(e?i:1),t.height=t.offsetHeight*(e?i:1),t.__hidpi__=e,t.__context2d__=t.getContext("2d"),t.__context2d__.__hidpi__=e}o.drawImageByCanvas=function(t){return function(e,n,r,o,a,s,c,u,l,f){if(!this.__hidpi__)return t.apply(this,arguments);n*=i,r*=i,o*=i,a*=i,s*=i,c*=i,u=f?u*i:u,l=f?l*i:l,t.call(this,e,n,r,o,a,s,c,u,l)}}(o.drawImage),1!==i&&(function(t,e){for(var n in t)Object(r["i"])(t,n)&&e(t[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(t,e){o[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map((function(t){return t*i}));else if(Array.isArray(t))for(var r=0;r10&&(t=2*Math.round(t/2)),t}var a={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var t="auto",e="";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":case"heightFix":t="100% 100%";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":e,"background-size":t,"background-repeat":"no-repeat"}}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"!==e&&"heightFix"!==e||this._resetSize(),"widthFix"!==t&&"heightFix"!==t||this._fixSize()},contentPath:function(t){!t&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var t=this.$el;if("widthFix"===this.mode){var e=t.offsetWidth;e&&(t.style.height=o(e/this.ratio)+"px")}else if("heightFix"===this.mode){var n=t.offsetHeight;n&&(t.style.width=o(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var t=this,e=this.$getRealPath(this.src);if(e){var n=this._img=this._img||new Image;n.onload=function(r){t._img=null;var i=t.originalWidth=n.width,o=t.originalHeight=n.height;t._fixSize(),t.contentPath=e,n.draggable=t.draggable,t.__img&&t.__img.remove(),t.__img=n,t.$el.appendChild(n),t.$trigger("load",r,{width:i,height:o})},n.onerror=function(e){t._img=null,t._resetData(),t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},n.src=e}else this._clearImage(),this._resetData()},_clearImage:function(){var t=this._img;t&&(t.onload=null,t.onerror=null,this._img=null)}}},s=a,c=(n("4dc6"),n("8844")),u=Object(c["a"])(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{ref:"content",style:t.style}),"widthFix"===t.mode||"heightFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._fixSize()}}}):t._e()],1)}),[],!1,null,null,null);e["default"]=u.exports},"7fd2":function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseFile",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),s=n("909e"),c=t,u=c.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,c=t.sourceType,f=t.type,d=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:c,type:f,extension:d}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===r.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},o=i,a=(n("a18d"),n("8844")),s=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(" "+t._s(t.currentPercent)+"% ")])]:t._e()],2)}),[],!1,null,null,null);e["default"]=s.exports},8076:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return s}));var r=t,i=r.emit,o=r.invokeCallbackHandler;function a(t,e){i("onShowPreviewImage",t,(function(t){o(e,{errMsg:"previewImage:ok"})}))}function s(t,e){i("onClosePreviewImage",(function(){o(e,{errMsg:"closePreviewImage:ok"})}))}}.call(this,n("2c9f"))},"81ff":function(t,e,n){"use strict";n.r(e),n.d(e,"vibrateLong",(function(){return i})),n.d(e,"vibrateShort",(function(){return o}));var r=!!window.navigator.vibrate;function i(){return r&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function o(){return r&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"82f1":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getVideoInfo",(function(){return i}));var r=n("bdee");function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler;Object(r["f"])(i,!0).then((function(t){return t})).catch((function(){return{}})).then((function(t){var e=t.size?{size:t.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},r=document.createElement("video");if(void 0!==r.onloadedmetadata){var o=setTimeout((function(){r.onloadedmetadata=null,r.onerror=null,a(n,e)}),i.startsWith("data:")||i.startsWith("blob:")?300:3e3);r.onloadedmetadata=function(){clearTimeout(o),r.onerror=null,a(n,Object.assign(e,{size:Math.ceil((t?t.size:0)/1024),duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0,errMsg:"getVideoInfo:ok"}))},r.onerror=function(){clearTimeout(o),r.onloadedmetadata=null,a(n,e)},r.src=i}else a(n,e)}))}}.call(this,n("2c9f"))},8379:function(t,e,n){"use strict";n.r(e),n.d(e,"createSelectorQuery",(function(){return g}));var r=n("340d"),i=n("745a"),o=n("6352"),a=n("ed2c"),s=n("e68a"),c=n("5883");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=document.getElementById(e);r&&n&&(r.parentNode.removeChild(r),r=null),r||(r=document.createElement("style"),r.type="text/css",e&&(r.id=e),document.getElementsByTagName("head")[0].appendChild(r)),r.appendChild(document.createTextNode(t))}n.d(e,"a",(function(){return r}))},"86d3":function(t,e,n){"use strict";n.r(e),n.d(e,"getBackgroundAudioManager",(function(){return f}));var r=n("745a");function i(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(!r){var e=["touchstart","touchmove","touchend","mousedown","mouseup"];e.forEach((function(t){document.addEventListener(t,(function(){!s&&c(!0),s++,setTimeout((function(){!--s&&c(!1)}),0)}),o)})),r=!0}a.push(t)}e["a"]={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){(function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)})(this)},addInteractListener:u,getStatus:function(){return!!s}}},"89ce":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"request",(function(){return s}));var r=n("340d");function i(t,e){for(var n=0;n-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(t){return/^([a-z-]+:)?\/\//i.test(t)||/^data:.*,.*/.test(t)||0===t.indexOf("/")||(t="/"+t),Object(r["a"])(t)},_switchTab:function(e,n){var r=e.text,i=e.pagePath;this.selectedIndex=n;var o="/"+i;o===__uniRoutes[0].alias&&(o="/");var a={index:n,text:r,pagePath:i};this.$emit("onTabItemTap",a),this.$route.path===o&&t.emit("onTabItemTap",a)}}}}).call(this,n("2c9f"))},"8b82":function(t,e,n){"use strict";var r=Object.create(null),i=n("4b7e");i.keys().forEach((function(t){Object.assign(r,i(t))})),e["a"]=r},"8c7c":function(e,n){e.exports=t},"8cbb":function(t,e,n){"use strict";var r=n("27d2"),i=n.n(r);i.a},"8d7d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("c80c"),i=n("f621"),o=n.n(i);function a(){if(uni.canIUse("css.var")){var t=document.documentElement.style,e=parseInt((t.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((t.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),i=parseInt((t.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),a=parseInt((t.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),s=parseInt((t.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(e?e+o.a.top:0)+(s||0),bottom:n?n+o.a.bottom:0,left:i?i+o.a.left:0,right:a?a+o.a.right:0}}var c=0,u=0,l=getCurrentPages();if(l.length){var f=l[l.length-1].$parent.$parent,d=f.navigationBar.type;c="default"===d||"float"===d?r["a"]:0}var h=getApp();return h&&(u=h.$children[0]&&h.$children[0].showTabBar?r["d"]:0),{top:c,bottom:u,left:0,right:0}}},"8def":function(t,e,n){"use strict";var r=n("70bc"),i=n.n(r);i.a},"8f2f":function(t,e,n){"use strict";function r(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return r(t,e.substr(2));for(var i=e.split("/"),o=i.length,a=0;a0?t.split("/"):[];return s.splice(s.length-a-1,a+1),"/"+s.concat(i).join("/")}n.d(e,"a",(function(){return r}))},"8f80":function(t,e,n){"use strict";n.r(e);var r=n("fa54"),i=r["a"],o=(n("f08e"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-scroll-view",t._g({},t.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":t.scrollX?"auto":"hidden","overflow-y":t.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[t.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":t.refresherBackground,height:t.refresherHeight+"px"}},["none"!==t.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==t.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+t.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):t._e(),"refreshing"==t.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):t._e()])]):t._e(),"none"==t.refresherDefaultStyle?t._t("refresher"):t._e()],2):t._e(),t._t("default")],2)])])])}),[],!1,null,null,null);e["default"]=a.exports},"8fc6":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7553"),i=n("cff9");function o(t,e){e.getApp;var n=e.getCurrentPages;function o(t){return function(e,r){r=parseInt(r);var o=n(),a=o.find((function(t){return t.$page.id===r}));a&&Object(i["b"])(a,t,e)}}var a=Object(r["a"])("requestComponentInfo");var s=Object(r["a"])("requestComponentObserver");var c=Object(r["a"])("requestMediaQueryObserver");t("onPageReady",o("onReady")),t("onPageScroll",o("onPageScroll")),t("onReachBottom",o("onReachBottom")),t("onRequestComponentInfo",(function(t){var e=t.reqId,n=t.res,r=a.pop(e);r&&r(n)})),t("onRequestComponentObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=s.get(e);if(i){if(n)return void s.pop(e);i(r)}})),t("onRequestMediaQueryObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=c.get(e);if(i){if(n)return void c.pop(e);i(r)}}))}},"909e":function(t,e,n){"use strict";var r=n("0db8");n.d(e,"a",(function(){return r["a"]}));var i=n("2ace");n.d(e,"f",(function(){return i["a"]}));var o=n("4335");n.d(e,"c",(function(){return o["a"]}));var a=n("23a1");n.d(e,"g",(function(){return a["a"]}));var s=n("0e4a");n.d(e,"e",(function(){return s["a"]}));var c=n("0c40");n.d(e,"b",(function(){return c["a"]}));var u=n("88a8");n.d(e,"d",(function(){return u["a"]}))},"90f0":function(t,e,n){"use strict";n.r(e),n.d(e,"getProvider",(function(){return i}));var r={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},i={service:{type:String,required:!0,validator:function(t,e){if(t=(t||"").toUpperCase(),t&&Object.values(r).indexOf(t)<0)return"service error"}}}},9131:function(t,e,n){"use strict";(function(t){function r(){var e;return(e=t).invokeCallbackHandler.apply(e,arguments)}function i(e){return t.removeCallbackHandler(e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))}).call(this,n("2c9f"))},9151:function(t,e){(function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,a,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),f=new Uint8Array(l);for(e=0;e>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&a;return l}})()},"923d":function(t,e,n){"use strict";(function(t){var r=n("84ed"),i=n("4738"),o=n("0854"),a={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[o["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(t){return-1!==["default","transparent","float"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var t=this,e=[],n={};return this.buttons.length&&this.buttons.forEach((function(o){var a=Object.assign({},o);if(a.fontSrc&&!a.fontFamily){var s,c=a.fontSrc=Object(i["a"])(a.fontSrc);if(c in n)s=n[c];else{s="font".concat(Date.now()),n[c]=s;var u='@font-face{font-family: "'.concat(s,'";src: url("').concat(c,'") format("truetype")}');Object(r["a"])(u,"uni-btn-font-"+s)}a.fontFamily=s}a.color="transparent"===t.type?"#fff":a.color||t.textColor;var l=a.fontSize||("transparent"===t.type||/\\u/.test(a.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),a.fontSize=l,a.fontWeight=a.fontWeight||"normal",e.push(a)})),e},headClass:function(){var t=this.shadow.colorType,e={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":t};return t&&(e["uni-page-head-shadow-".concat(t)]=t),e}},mounted:function(){var e=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(t){e.composing=t})),n.$watch("valueSync",(function(t){e.showPlaceholder=!!t})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){t.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&t.emit("onNavigationBarSearchInputConfirmed",{text:e.text})})),n.$refs.input.addEventListener("focus",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(e){t.emit("onNavigationBarButtonTap",Object.assign({},this.btns[e],{index:e}))},_formatBtnFontText:function(t){return t.fontSrc&&t.fontFamily?t.text.replace("\\u","&#x"):a[t.type]?a[t.type]:t.text||""},_formatBtnStyle:function(t){var e={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight};return t.fontFamily&&(e.fontFamily=t.fontFamily),e},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(e){t.emit("onNavigationBarSearchInputChanged",{text:e})},_clearInput:function(){this.text="",this._input(this.text)}}}}).call(this,n("2c9f"))},"925f":function(t,e,n){"use strict";n.r(e),n.d(e,"chooseFile",(function(){return o}));var r=["all","image","video"],i=["album","camera"],o={count:{type:Number,required:!1,default:100,validator:function(t,e){t<=0&&(e.count=100)}},sourceType:{type:Array,required:!1,default:i,validator:function(t,e){t=t.filter((function(t){return i.includes(t)})),e.sourceType=t.length?t:i}},type:{type:String,required:!1,default:"all",validator:function(t,e){r.includes(t)||(e.type=r[0]),e.type="all"===e.type?e.type="*":e.type}},extension:{type:Array,default:[""],validator:function(t,e){if(0===t.length)return"param extension should not be empty."}}}},"951c":function(t,n){t.exports=e},9593:function(t,e,n){"use strict";var r=n("83c2"),i=n.n(r);i.a},"95bd":function(t,e,n){"use strict";var r=n("1fdf"),i=n.n(r);i.a},9602:function(t,e,n){"use strict";n.r(e),function(t){var r=n("38ce"),i=n("cce2"),o=n("2be0"),a=n("f98c");function s(){t.publishHandler("onPageReady",{},this.$page.id)}e["default"]={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.routes,Object(i["a"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=i["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t,e){return Object(a["a"])(t||this,e)},Object.defineProperty(t.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,r=e&&(e.__vue__||e),o=e&&r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1),a=t;t=i["b"].call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),t.instance=o,t.preventDefault=function(){return a.preventDefault()},t.stopPropagation=function(){return a.stopPropagation()}}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach((function(e){t[e]=n[e]})),e.behaviors&&e.behaviors.length&&Object(o["a"])(e,this),Object(r["d"])(this)&&(e.mounted=e.mounted?[].concat(s,e.mounted):[s])}})}}}.call(this,n("31d2"))},"96b9":function(t,e,n){"use strict";var r=n("c194"),i=n.n(r);i.a},9798:function(t,e,n){"use strict";function r(t,e){for(var n=0;n1?e-1:0),r=1;r0;)this.emit.apply(this,[t].concat(e.shift()))}},{key:"_addListener",value:function(t,e,n){(this.listener[t]||(this.listener[t]=[])).push({fn:n,type:e})}}]),t}()},"97af":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return v}));var r=n("cff9");function i(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}var o=[];function a(t){if("number"===typeof t)o=this.keepAliveInclude.splice(-(t-1)).map((function(t){return parseInt(t.split("-").pop())}));else{var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}}var s=Object.create(null);function c(t){return s[t]}function u(t){s[t]={x:window.pageXOffset,y:window.pageYOffset}}function l(t,e,n){e&&n&&e.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var i=getCurrentPages(),o=i.length-1;o>=0;o--){var s=i[o],c=s.$page.meta;c.isTabBar||(a.call(this,c.name+"-"+s.$page.id),Object(r["b"])(s,"onUnload"))}}function f(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(!0),n=e.length-1;n>=0;n--)Object(r["b"])(e[n],"onUnload"),e[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var d=[];function h(t,e,n,r){d=getCurrentPages(!0);var o=e.params.__id__,s=t.params.__id__,c=t.meta.name+"-"+s;if(s===o&&"reLaunch"!==t.type)t.fullPath!==e.fullPath?(i.call(this,c),n()):n(!1);else if(t.meta.id&&t.meta.id!==s)n({path:t.path,replace:!0});else{var u=e.meta.name+"-"+o;switch(t.type){case"navigateTo":break;case"redirectTo":a.call(this,u),e.meta&&e.meta.isQuit&&(t.meta.isQuit=!0,t.meta.isEntry=!!e.meta.isEntry);break;case"switchTab":l.call(this,r,t,e);break;case"reLaunch":f.call(this,c),t.meta.isQuit=!0;break;default:o&&o>s&&(a.call(this,u),this.$router._$delta>1&&a.call(this,this.$router._$delta));break}if("reLaunch"!==t.type&&"redirectTo"!==t.type&&e.meta.id&&i.call(this,u),i.call(this,c),t.meta&&t.meta.name){document.body.className="uni-body "+t.meta.name;var h="nvue-dir-"+__uniConfig.nvue["flex-direction"];t.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(h,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(h))}n()}}function p(e,n){var i,a=n.params.__id__,s=e.params.__id__;function c(t){if(t){Object(r["b"])(t,"onUnload");var e=d.indexOf(t);e>=0&&d.splice(e,1)}}switch(i=n.meta.isSet?d.find((function(t){return t.$page.meta.pagePath===n.meta.pagePath})):d.find((function(t){return t.$page.id===a})),e.type){case"navigateTo":i&&Object(r["b"])(i,"onHide");break;case"redirectTo":c(i);break;case"switchTab":n.meta.isTabBar&&i&&Object(r["b"])(i,"onHide");break;case"reLaunch":break;default:a&&a>s&&(c(i),this.$router._$delta>1&&o.reverse().forEach((function(t){var e=d.find((function(e){return e.$page.id===t}));c(e)})));break}if(delete this.$router._$delta,o.length=0,"reLaunch"!==e.type){var u,l=getCurrentPages(!0);u=e.meta.isSet?l.find((function(t){return t.$page.meta.pagePath===e.meta.pagePath})):l.find((function(t){return t.$page.id===s})),u&&(setTimeout((function(){t.emit("onNavigationBarChange",u.$parent.$parent.navigationBar),Object(r["b"])(u,"onShow")}),0),document.title=u.$parent.$parent.navigationBar.titleText)}}function v(t,e){t.$router.beforeEach((function(n,r,i){h.call(t,n,r,i,e)})),t.$router.afterEach((function(e,n){p.call(t,e,n)}))}}).call(this,n("2c9f"))},"97c3":function(t,e,n){"use strict";function r(t){if(0===t.indexOf("#")){var e=t.substr(1);return function(t){return!(!t.componentInstance||t.componentInstance.id!==e)||!(!t.data||!t.data.attrs||t.data.attrs.id!==e)}}if(0===t.indexOf(".")){var n=t.substr(1);return function(t){return t.data&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?-1!==e.split(i).indexOf(t):n&&"string"===typeof n?-1!==n.split(i).indexOf(t):void 0}(n,t.data.staticClass,t.data.class)}}}n.d(e,"a",(function(){return o}));var i=/\s+/;function o(t){t.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},t.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},t.prototype.selectComponent=function(t){return function t(e,n){if(n(e.$vnode||e._vnode))return e;for(var r=e.$children,i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&h.splice(e,1)}else h.length=0}},"9f62":function(t,e,n){"use strict";(function(t){var r=n("909e");e["a"]={name:"Label",mixins:[r["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("31d2"))},"9f69":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"startLocationUpdate",(function(){return l})),n.d(e,"stopLocationUpdate",(function(){return f})),n.d(e,"onLocationChange",(function(){return d})),n.d(e,"offLocationChange",(function(){return h})),n.d(e,"onLocationChangeError",(function(){return p})),n.d(e,"offLocationChangeError",(function(){return v}));var r=n("b435"),i=t,o=i.invokeCallbackHandler,a=[],s=[],c=!1,u=0;function l(t,e){var n=t.type,i=void 0===n?"gcj02":n;if(!navigator.geolocation)return{errMsg:"startLocationUpdate:fail"};u=u||navigator.geolocation.watchPosition((function(t){c=!0,Object(r["f"])(i,t.coords).then((function(t){a.forEach((function(e){o(e,t)}))})).catch((function(t){s.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))}))}),(function(t){c||(o(e,{errMsg:"startLocationUpdate:fail ".concat(t.message)}),c=!0),s.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))})),setTimeout((function(){o(e,{errMsg:"startLocationUpdate:ok"})}),100)}function f(){return 0!==u&&(navigator.geolocation.clearWatch(u),c=!1,u=0),{}}function d(t){a.push(t)}function h(t){if(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)}else a=[]}function p(t){s.push(t)}function v(t){if(t){var e=s.indexOf(t);e>=0&&s.splice(e,1)}else s=[]}}.call(this,n("2c9f"))},a004:function(t,e){t.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},a050:function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("39bd"),o={add:function(t){var e,n,r;try{e=this.toString().split(".")[1].length}catch(i){e=0}try{n=t.toString().split(".")[1].length}catch(i){n=0}return r=Math.pow(10,Math.max(e,n)),(this*r+t*r)/r},sub:function(t){return this.add(-t)},mul:function(t){var e=0,n=this.toString(),r=t.toString();try{e+=n.split(".")[1].length}catch(i){}try{e+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,e)},div:function(t){var e,n,i=0,o=0;try{i=this.toString().split(".")[1].length}catch(r){}try{o=t.toString().split(".")[1].length}catch(r){}return e=Number(this.toString().replace(".","")),n=Number(t.toString().replace(".","")),e/n*Math.pow(10,o-i)},mod:function(t){var e,n,r=0,i=0;try{r=this.toString().split(".")[1].length}catch(o){}try{i=t.toString().split(".")[1].length}catch(o){}var a=Math.pow(10,Math.abs(r-i));1==a&&(a=Math.pow(10,r)),e=(this*a).toString().split(".")[0],n=t*a;var s=(this*a).toString().split(".")[1]?(this*a).toString().split(".")[1]:"";return(e%n+s)/a}},a={name:"Slider",mixins:[r["a"],r["f"],i["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider-value"],n=getComputedStyle(e,null).marginLeft,r=e.offsetWidth;r+=parseInt(n);var i=this.$refs["uni-slider"],o=i.offsetWidth-(this.showValue?r:0),a=i.getBoundingClientRect().left,s=(t.x-a)*(this.max-this.min)/o+Number(this.min);this.sliderValue=this._filterValue(s)},_filterValue:function(t){var e=Number(this.max),n=Number(this.min);return te?e:o.mul.call(Math.round((t-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x}),this.$trigger("changing",t,{value:this.sliderValue}),!1):"end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue})},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t.value=this.sliderValue,t.key=this.name),t}}},s=a,c=(n("f2a9"),n("8844")),u=Object(c["a"])(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)}),[],!1,null,null,null);e["default"]=u.exports},a111:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseVideo",(function(){return i}));var r=["album","camera"],i={sourceType:{type:Array,required:!1,default:r,validator:function(t,e){t=t.filter((function(t){return r.includes(t)})),e.sourceType=t.length?t:r}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(t,e){if(0===t.length)return"param extension should not be empty."}}}},a187:function(t,e,n){},a18d:function(t,e,n){"use strict";var r=n("07b5"),i=n.n(r);i.a},a1d7:function(t,e,n){var r={"./audio/index.vue":"d55f","./button/index.vue":"d6fb","./canvas/index.vue":"63b1","./checkbox-group/index.vue":"d514","./checkbox/index.vue":"ca37","./editor/index.vue":"b1d2","./form/index.vue":"baa1","./icon/index.vue":"0abb","./image/index.vue":"7efa","./input/index.vue":"e0e1","./label/index.vue":"2a78","./movable-area/index.vue":"dbe8","./movable-view/index.vue":"65ce","./navigator/index.vue":"5c1f","./picker-view-column/index.vue":"e510","./picker-view/index.vue":"9eba","./progress/index.vue":"801b","./radio-group/index.vue":"3a3e","./radio/index.vue":"1f8a","./resize-sensor/index.vue":"120f","./rich-text/index.vue":"7aa9","./scroll-view/index.vue":"8f80","./slider/index.vue":"a050","./swiper-item/index.vue":"2066","./swiper/index.vue":"383e","./switch/index.vue":"c1f1","./text/index.vue":"e9d1","./textarea/index.vue":"da9d"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="a1d7"},a202:function(t,e,n){"use strict";n.r(e),e["default"]={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var t={},e=t.content={},n=t.triangle={},r=this.popover;function i(t){return Number(t)||0}if(this.isDesktop&&r){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var o=i(r.left),a=i(r.width),s=i(r.top),c=i(r.height),u=o+a/2;e.transform="none !important";var l=Math.max(0,u-150);e.left="".concat(l,"px");var f=Math.max(12,u-l);f=Math.min(288,f),n.left="".concat(f,"px");var d=this.popupHeight/2;s+c-d>d-s?(e.top="auto",e.bottom="".concat(this.popupHeight-s+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(e.top="".concat(s+c+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return t}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),n=e.windowWidth,r=e.windowHeight,i=e.windowTop;t.popupWidth=n,t.popupHeight=r+i};window.addEventListener("resize",e),e(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",e)}))}}},a22f:function(t,e,n){"use strict";var r=n("21f5"),i=n.n(r);i.a},a2f6:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(e){return"".concat(Number(t[e])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(t,e){return this.options.relativeToSelector=t,this._makeRootMargin(e),this}},{key:"relativeToViewport",value:function(t){return this.options.relativeToSelector=null,this._makeRootMargin(t),this}},{key:"observe",value:function(e,n){"function"===typeof n&&(this.options.selector=e,this.reqId=s.push(n),t.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(i["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){t.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(i["a"])(this.component)?this.component:this.pageId)}}]),e}();function l(t,e){return t._isVue||(e=t,t=null),new u(t||Object(o["b"])("createIntersectionObserver"),e)}}.call(this,n("2c9f"))},a770:function(t,e){(function(){"use strict";if("object"===("undefined"===typeof window?"undefined":r(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach((function(r){var i=r.element,a=u(i),s=this._rootContainsTarget(i),c=r.entry,l=t&&s&&this._computeTargetAndRootIntersection(i,e),f=r.entry=new n({time:o(),target:i,boundingClientRect:a,rootBounds:e,intersectionRect:l});c?t&&s?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var r=u(e),i=r,o=d(e),a=!1;while(!a){var s=null,l=1==o.nodeType?window.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==t?(a=!0,s=n):o!=t.body&&o!=t.documentElement&&"visible"!=l.overflow&&(s=u(o)),s&&(i=c(s,i),!i))break;o=d(o)}return i}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i=0&&s>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:s}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t,e){var n=e;while(n){if(n==t)return!0;n=d(n)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},a7fb:function(t,e,n){"use strict";var r=n("84ed"),i=n("4e46"),o={name:"PageBody",mounted:function(){var t=i["a"].height||"50px",e=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(t,");\n height: calc(100% - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(t," - env(safe-area-inset-bottom));\n }");e+="\n",e+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(t,";\n height: calc(").concat(t," + constant(safe-area-inset-bottom));\n height: calc(").concat(t," + env(safe-area-inset-bottom));\n }"),e+="\n",e+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(t,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(t," - env(safe-area-inset-bottom));\n }"),Object(r["a"])(e)}},a=o,s=(n("8cbb"),n("8844")),c=Object(s["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-wrapper",[n("uni-page-body",[t._t("default")],2)],1)}),[],!1,null,null,null);e["a"]=c.exports},a805:function(t,e,n){"use strict";(function(t){function r(e,n,r){t.UniServiceJSBridge.subscribeHandler(e,n,r)}n.d(e,"a",(function(){return r}))}).call(this,n("0ee4"))},a874:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createMediaQueryObserver",(function(){return u}));var r=n("7553"),i=n("745a"),o=n("0795");function a(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var c=!1,u=getCurrentPages();if(u.length?u[u.length-1].$page.meta.isTabBar&&(c=!0):n.$children[0].hasTabBar&&(c=!0),!c)return{errMsg:"".concat(t,":fail not TabBar page")};var l=e.index,f=__uniConfig.tabBar;if(l>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(t,":fail tabbar item not found")};switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":e.iconfont&&(Object(r["q"])(f.list[l].iconfont,s,e.iconfont),e.iconfont=f.list[l].iconfont),Object(r["q"])(f.list[l],i,e);var d=e.pagePath,h=d&&__uniRoutes.find((function(t){var e=t.path;return e===d}));if(h){var p=h.meta;p.isTabBar=!0,p.tabBarIndex=l,p.isQuit=!0,p.isSet=!0,p.id=l+1;var v=__uniConfig.tabBar;v&&v.list&&v.list[l]&&(v.list[l].pagePath=d.startsWith("/")?d.substring(1):d)}break;case"setTabBarStyle":Object(r["q"])(f,o,e);break;case"showTabBarRedDot":Object(r["q"])(f.list[l],a,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(r["q"])(f.list[l],a,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(r["q"])(f.list[l],a,{badge:"",redDot:!1});break}}return{}}function u(t){return c("setTabBarItem",t)}function l(t){return c("setTabBarStyle",t)}function f(t){return c("hideTabBar",t)}function d(t){return c("showTabBar",t)}function h(t){return c("hideTabBarRedDot",t)}function p(t){return c("showTabBarRedDot",t)}function v(t){return c("removeTabBarBadge",t)}function g(t){return c("setTabBarBadge",t)}},a944:function(t,e,n){var r,i,o;(function(n,a){i=[],r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(u.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(u.stack),i=r&&r[1]||!1,o=r&&r[2]||!1,a=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");i===a&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]* \ No newline at end of file +商家管理中心
\ No newline at end of file diff --git a/server-tp6/public/store/js/app.5559e87a.js b/server-tp6/public/store/js/app.5559e87a.js new file mode 100644 index 0000000..ddb2401 --- /dev/null +++ b/server-tp6/public/store/js/app.5559e87a.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var a,r,s=t[0],c=t[1],d=t[2],l=0,u=[];l0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){t[e]=function(){this.needSyncKeys[e]=!0}})),t}var b={name:"Tree",mixins:[h["a"]],props:Object(u["t"])({prefixCls:i["a"].string,tabIndex:i["a"].oneOfType([i["a"].string,i["a"].number]),children:i["a"].any,treeData:i["a"].array,showLine:i["a"].bool,showIcon:i["a"].bool,icon:i["a"].oneOfType([i["a"].object,i["a"].func]),focusable:i["a"].bool,selectable:i["a"].bool,disabled:i["a"].bool,multiple:i["a"].bool,checkable:i["a"].oneOfType([i["a"].object,i["a"].bool]),checkStrictly:i["a"].bool,draggable:i["a"].bool,defaultExpandParent:i["a"].bool,autoExpandParent:i["a"].bool,defaultExpandAll:i["a"].bool,defaultExpandedKeys:i["a"].array,expandedKeys:i["a"].array,defaultCheckedKeys:i["a"].array,checkedKeys:i["a"].oneOfType([i["a"].array,i["a"].object]),defaultSelectedKeys:i["a"].array,selectedKeys:i["a"].array,loadData:i["a"].func,loadedKeys:i["a"].array,filterTreeNode:i["a"].func,openTransitionName:i["a"].string,openAnimation:i["a"].oneOfType([i["a"].string,i["a"].object]),switcherIcon:i["a"].any,_propsSymbol:i["a"].any},{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]}),data:function(){l()(this.$props.__propsSymbol__,"must pass __propsSymbol__"),l()(this.$props.children,"please use children prop replace slots.default"),this.needSyncKeys={},this.domTreeNodes={};var e={_posEntities:new Map,_keyEntities:new Map,_expandedKeys:[],_selectedKeys:[],_checkedKeys:[],_halfCheckedKeys:[],_loadedKeys:[],_loadingKeys:[],_treeNode:[],_prevProps:null,_dragOverNodeKey:"",_dropPosition:null,_dragNodesKeys:[]};return Object(o["a"])(Object(o["a"])({},e),this.getDerivedState(Object(u["l"])(this),e))},provide:function(){return{vcTree:this}},watch:Object(o["a"])(Object(o["a"])({},g(["treeData","children","expandedKeys","autoExpandParent","selectedKeys","checkedKeys","loadedKeys"])),{},{__propsSymbol__:function(){this.setState(this.getDerivedState(Object(u["l"])(this),this.$data)),this.needSyncKeys={}}}),methods:{getDerivedState:function(e,t){var n=t._prevProps,a={_prevProps:Object(o["a"])({},e)},i=this;function s(t){return!n&&t in e||n&&i.needSyncKeys[t]}var c=null;if(s("treeData")?c=Object(f["g"])(this.$createElement,e.treeData):s("children")&&(c=e.children),c){a._treeNode=c;var d=Object(f["h"])(c);a._keyEntities=d.keyEntities}var l,u=a._keyEntities||t._keyEntities;if((s("expandedKeys")||n&&s("autoExpandParent")?a._expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?Object(f["f"])(e.expandedKeys,u):e.expandedKeys:!n&&e.defaultExpandAll?a._expandedKeys=Object(r["a"])(u.keys()):!n&&e.defaultExpandedKeys&&(a._expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(f["f"])(e.defaultExpandedKeys,u):e.defaultExpandedKeys),e.selectable&&(s("selectedKeys")?a._selectedKeys=Object(f["d"])(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(a._selectedKeys=Object(f["d"])(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?l=Object(f["m"])(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?l=Object(f["m"])(e.defaultCheckedKeys)||{}:c&&(l=Object(f["m"])(e.checkedKeys)||{checkedKeys:t._checkedKeys,halfCheckedKeys:t._halfCheckedKeys}),l)){var p=l,h=p.checkedKeys,m=void 0===h?[]:h,g=p.halfCheckedKeys,b=void 0===g?[]:g;if(!e.checkStrictly){var v=Object(f["e"])(m,!0,u);m=v.checkedKeys,b=v.halfCheckedKeys}a._checkedKeys=m,a._halfCheckedKeys=b}return s("loadedKeys")&&(a._loadedKeys=e.loadedKeys),a},onNodeDragStart:function(e,t){var n=this.$data._expandedKeys,a=t.eventKey,r=Object(u["p"])(t).default;this.dragNode=t,this.setState({_dragNodesKeys:Object(f["i"])("function"===typeof r?r():r,t),_expandedKeys:Object(f["b"])(n,a)}),this.__emit("dragstart",{event:e,node:t})},onNodeDragEnter:function(e,t){var n=this,a=this.$data._expandedKeys,r=t.pos,o=t.eventKey;if(this.dragNode&&t.$refs.selectHandle){var i=Object(f["c"])(e,t);this.dragNode.eventKey!==o||0!==i?setTimeout((function(){n.setState({_dragOverNodeKey:o,_dropPosition:i}),n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach((function(e){clearTimeout(n.delayedDragEnterLogic[e])})),n.delayedDragEnterLogic[r]=setTimeout((function(){var r=Object(f["a"])(a,o);Object(u["s"])(n,"expandedKeys")||n.setState({_expandedKeys:r}),n.__emit("dragenter",{event:e,node:t,expandedKeys:r})}),400)}),0):this.setState({_dragOverNodeKey:"",_dropPosition:null})}},onNodeDragOver:function(e,t){var n=t.eventKey,a=this.$data,r=a._dragOverNodeKey,o=a._dropPosition;if(this.dragNode&&n===r&&t.$refs.selectHandle){var i=Object(f["c"])(e,t);if(i===o)return;this.setState({_dropPosition:i})}this.__emit("dragover",{event:e,node:t})},onNodeDragLeave:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragleave",{event:e,node:t})},onNodeDragEnd:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragend",{event:e,node:t}),this.dragNode=null},onNodeDrop:function(e,t){var n=this.$data,a=n._dragNodesKeys,r=void 0===a?[]:a,o=n._dropPosition,i=t.eventKey,s=t.pos;if(this.setState({_dragOverNodeKey:""}),-1===r.indexOf(i)){var c=Object(f["n"])(s),d={event:e,node:t,dragNode:this.dragNode,dragNodesKeys:r.slice(),dropPosition:o+Number(c[c.length-1]),dropToGap:!1};0!==o&&(d.dropToGap=!0),this.__emit("drop",d),this.dragNode=null}else l()(!1,"Can not drop to dragNode(include it's children node)")},onNodeClick:function(e,t){this.__emit("click",e,t)},onNodeDoubleClick:function(e,t){this.__emit("dblclick",e,t)},onNodeSelect:function(e,t){var n=this.$data._selectedKeys,a=this.$data._keyEntities,r=this.$props.multiple,o=Object(u["l"])(t),i=o.selected,s=o.eventKey,c=!i;n=c?r?Object(f["a"])(n,s):[s]:Object(f["b"])(n,s);var d=n.map((function(e){var t=a.get(e);return t?t.node:null})).filter((function(e){return e}));this.setUncontrolledState({_selectedKeys:n});var l={event:"select",selected:c,node:t,selectedNodes:d,nativeEvent:e};this.__emit("update:selectedKeys",n),this.__emit("select",n,l)},getCheckedKeys:function(){return this.$data._checkedKeys},clearExpandedKeys:function(){this.$data._expandedKeys=[]},getHalfCheckedKeys:function(){return this.$data._halfCheckedKeys},onNodeCheck:function(e,t,n){var a,r=this.$data,o=r._keyEntities,i=r._checkedKeys,s=r._halfCheckedKeys,c=this.$props.checkStrictly,d=Object(u["l"])(t),l=d.eventKey,p={event:"check",node:t,checked:n,nativeEvent:e};if(c){var h=n?Object(f["a"])(i,l):Object(f["b"])(i,l),m=Object(f["b"])(s,l);a={checked:h,halfChecked:m},p.checkedNodes=h.map((function(e){return o.get(e)})).filter((function(e){return e})).map((function(e){return e.node})),this.setUncontrolledState({_checkedKeys:h})}else{var g=Object(f["e"])([l],n,o,{checkedKeys:i,halfCheckedKeys:s}),b=g.checkedKeys,v=g.halfCheckedKeys;a=b,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,b.forEach((function(e){var t=o.get(e);if(t){var n=t.node,a=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:a})}})),this.setUncontrolledState({_checkedKeys:b,_halfCheckedKeys:v})}this.__emit("check",a,p)},onNodeLoad:function(e){var t=this;return new Promise((function(n){t.setState((function(a){var r=a._loadedKeys,o=void 0===r?[]:r,i=a._loadingKeys,s=void 0===i?[]:i,c=t.$props.loadData,d=Object(u["l"])(e),l=d.eventKey;if(!c||-1!==o.indexOf(l)||-1!==s.indexOf(l))return{};var p=c(e);return p.then((function(){var a=t.$data,r=a._loadedKeys,o=a._loadingKeys,i=Object(f["a"])(r,l),s=Object(f["b"])(o,l);t.__emit("load",i,{event:"load",node:e}),t.setUncontrolledState({_loadedKeys:i}),t.setState({_loadingKeys:s}),n()})),{_loadingKeys:Object(f["a"])(s,l)}}))}))},onNodeExpand:function(e,t){var n=this,a=this.$data._expandedKeys,r=this.$props.loadData,o=Object(u["l"])(t),i=o.eventKey,s=o.expanded,c=a.indexOf(i),d=!s;if(l()(s&&-1!==c||!s&&-1===c,"Expand state not sync with index check"),a=d?Object(f["a"])(a,i):Object(f["b"])(a,i),this.setUncontrolledState({_expandedKeys:a}),this.__emit("expand",a,{node:t,expanded:d,nativeEvent:e}),this.__emit("update:expandedKeys",a),d&&r){var p=this.onNodeLoad(t);return p?p.then((function(){n.setUncontrolledState({_expandedKeys:a})})):null}return null},onNodeMouseEnter:function(e,t){this.__emit("mouseenter",{event:e,node:t})},onNodeMouseLeave:function(e,t){this.__emit("mouseleave",{event:e,node:t})},onNodeContextMenu:function(e,t){e.preventDefault(),this.__emit("rightClick",{event:e,node:t})},setUncontrolledState:function(e){var t=!1,n={},a=Object(u["l"])(this);Object.keys(e).forEach((function(r){r.replace("_","")in a||(t=!0,n[r]=e[r])})),t&&this.setState(n)},registerTreeNode:function(e,t){t?this.domTreeNodes[e]=t:delete this.domTreeNodes[e]},isKeyChecked:function(e){var t=this.$data._checkedKeys,n=void 0===t?[]:t;return-1!==n.indexOf(e)},renderTreeNode:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=this.$data,r=a._keyEntities,o=a._expandedKeys,i=void 0===o?[]:o,s=a._selectedKeys,c=void 0===s?[]:s,d=a._halfCheckedKeys,l=void 0===d?[]:d,u=a._loadedKeys,h=void 0===u?[]:u,m=a._loadingKeys,g=void 0===m?[]:m,b=a._dragOverNodeKey,v=a._dropPosition,y=Object(f["k"])(n,t),k=e.key;return k||void 0!==k&&null!==k||(k=y),r.get(k)?Object(p["a"])(e,{props:{eventKey:k,expanded:-1!==i.indexOf(k),selected:-1!==c.indexOf(k),loaded:-1!==h.indexOf(k),loading:-1!==g.indexOf(k),checked:this.isKeyChecked(k),halfChecked:-1!==l.indexOf(k),pos:y,dragOver:b===k&&0===v,dragOverGapTop:b===k&&-1===v,dragOverGapBottom:b===k&&1===v},key:k}):(Object(f["o"])(),null)}},render:function(){var e=this,t=arguments[0],n=this.$data._treeNode,r=this.$props,o=r.prefixCls,i=r.focusable,s=r.showLine,d=r.tabIndex,l=void 0===d?0:d;return t("ul",{class:c()(o,Object(a["a"])({},"".concat(o,"-show-line"),s)),attrs:{role:"tree",unselectable:"on",tabIndex:i?l:null}},[Object(f["l"])(n,(function(t,n){return e.renderTreeNode(t,n)}))])}},v=Object(m["a"])(b),y=n("2b5d");b.TreeNode=y["a"],v.TreeNode=y["a"];t["default"]=v},"04b3":function(e,t,n){"use strict";var a=n("a1d4"),r=n.n(a);n.d(t,"f",(function(){return r.a}));var o=n("5b96"),i=n.n(o);n.d(t,"g",(function(){return i.a}));var s=n("eb1e"),c=n.n(s);n.d(t,"c",(function(){return c.a}));var d=n("559f"),l=n.n(d);n.d(t,"j",(function(){return l.a}));var u=n("3a93"),p=n.n(u);n.d(t,"b",(function(){return p.a}));var h=n("38d8"),m=n.n(h);n.d(t,"k",(function(){return m.a}));var f=n("1a79"),g=n.n(f);n.d(t,"l",(function(){return g.a}));var b=n("401b"),v=n.n(b);n.d(t,"m",(function(){return v.a}));var y=n("524c"),k=n.n(y);n.d(t,"h",(function(){return k.a}));n("60fa"),n("8484"),n("6fb3");var x=n("7e43"),O=n.n(x);n.d(t,"i",(function(){return O.a}));var w=n("0787"),j=n.n(w);n.d(t,"e",(function(){return j.a}));var C=n("ba93"),_=n.n(C);n.d(t,"d",(function(){return _.a}));var M=n("6052"),S=n.n(M);n.d(t,"a",(function(){return S.a}));n("e9ba"),n("7d57"),n("36fa")},"0787":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1653368449777",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"17693",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M794.112 0H231.936C104.96 0 0 104.96 0 231.424v558.08C0 919.04 104.96 1024 231.936 1024h559.616c129.536 0 231.936-104.96 231.936-231.424V231.424c3.072-126.464-102.4-231.424-229.376-231.424z m-378.88 675.328c-34.304 0-60.928-7.168-92.672-12.288l-95.232 44.032 27.136-80.384c-68.608-46.08-107.52-107.52-107.52-180.224 0-126.976 119.808-226.816 268.8-226.816 132.096 0 246.784 80.384 271.36 187.904-7.168 0-16.896-2.56-27.136-2.56-126.976 0-227.328 95.232-227.328 211.968 0 19.456 2.56 38.912 7.168 56.32-7.168-0.512-16.896 2.048-24.576 2.048zM808.96 768l19.456 66.048-73.216-38.912c-27.136 7.168-53.76 12.288-80.896 12.288-126.976 0-227.328-87.552-227.328-195.072s100.352-195.072 227.328-195.072c119.808 0 227.328 87.552 227.328 195.072 2.56 62.976-38.912 114.176-92.672 155.648zM361.472 365.568c0 19.456-16.896 36.352-36.864 36.352s-36.864-16.896-36.864-36.352 16.896-36.352 36.864-36.352 36.864 16.896 36.864 36.352z m115.2 0c0-19.456 16.896-36.352 36.864-36.352 19.456 0 36.864 16.896 36.864 36.352s-16.896 36.352-36.864 36.352c-22.528 0.512-36.864-14.336-36.864-36.352z m307.712 187.904c0 16.896-14.848 29.184-29.184 29.184-16.896 0-29.184-14.848-29.184-29.184 0-16.896 14.848-29.184 29.184-29.184 14.848 0 29.184 12.288 29.184 29.184z m-148.992 0c0 16.896-14.848 29.184-29.184 29.184-14.848 0-29.184-14.848-29.184-29.184 0-14.848 14.848-29.184 29.184-29.184 14.336 0 29.184 12.288 29.184 29.184z","p-id":"17694"}}]})}},"1a79":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599016452086",class:"icon",viewBox:"0 0 1147 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9426","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"560.05859375",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1038.020219 178.928351 106.89802 178.928351 10.24 431.8492C10.24 507.56499 73.069837 570.38696 150.394994 570.38696 227.71386 570.38696 292.153063 509.174358 292.153063 431.8492 292.153063 507.56499 354.9829 570.38696 432.308058 570.38696 509.633217 570.38696 574.066127 509.174358 574.066127 431.8492 574.066127 507.56499 636.895965 570.38696 714.221122 570.38696 791.547853 570.38696 854.369823 509.174358 854.369823 431.8492 854.369823 507.56499 917.199661 570.38696 996.135758 570.38696 1073.460916 570.38696 1137.90012 509.174358 1137.90012 431.8492L1038.020219 178.928351 1038.020219 178.928351ZM960.69506 613.883935 960.69506 936.073665 187.445059 936.073665 187.445059 613.883935 106.89802 613.883935 106.89802 952.186218C106.89802 981.180006 139.118409 1016.619131 168.112197 1016.619131L978.418557 1016.619131C1007.410772 1016.619131 1039.631159 981.180006 1039.631159 952.186218L1039.631159 613.883935 960.69506 613.883935 960.69506 613.883935ZM1038.020219 177.318984 1038.020219 177.318984 1041.240527 180.134984 1038.020219 177.318984 1038.020219 177.318984ZM171.330932 114.495439 976.801323 114.495439C1004.192035 114.495439 1025.134266 93.553209 1025.134266 66.16407 1025.134266 38.779649 1004.192035 17.837419 976.801323 17.837419L171.330932 17.837419C143.948085 17.837419 123.005855 38.779649 123.005855 66.16407 123.005855 93.553209 143.948085 114.495439 171.330932 114.495439L171.330932 114.495439Z","p-id":"9427"}}]})}},"1d4b":function(e,t,n){"use strict";var a=n("5530"),r=(n("d3b7"),n("ed3b"));t["a"]=function(e){function t(t,n,o){var i=this;if(o=o||{},i&&i._isVue){var s=document.querySelector("body>div[type=dialog]");s||(s=document.createElement("div"),s.setAttribute("type","dialog"),document.body.appendChild(s));var c=function(e,t){if(e instanceof Function){var n=e();n instanceof Promise?n.then((function(e){e&&t()})):n&&t()}else e||t()},d=new e({data:function(){return{visible:!0}},router:i.$router,store:i.$store,mounted:function(){var e=this;this.$on("close",(function(t){e.handleClose()}))},methods:{handleClose:function(){var e=this;c(this.$refs._component.onCancel,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("cancel"),d.$destroy()}))},handleOk:function(){var e=this;c(this.$refs._component.onOK||this.$refs._component.onOk,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("ok"),d.$destroy()}))}},render:function(e){var i=this,s=o&&o.model;s&&delete o.model;var c=Object.assign({},s&&{model:s}||{},{attrs:Object.assign({},Object(a["a"])({},o.attrs||o),{visible:this.visible}),on:Object.assign({},Object(a["a"])({},o.on||o),{ok:function(){i.handleOk()},cancel:function(){i.handleClose()}})}),d=n&&n.model;d&&delete n.model;var l=Object.assign({},d&&{model:d}||{},{ref:"_component",attrs:Object.assign({},Object(a["a"])({},n&&n.attrs||n)),on:Object.assign({},Object(a["a"])({},n&&n.on||n))});return e(r["a"],c,[e(t,l)])}}).$mount(s)}}Object.defineProperty(e.prototype,"$dialog",{get:function(){return function(){t.apply(this,arguments)}}})}},"24e1":function(e,t,n){"use strict";n("7257")},"2b5d":function(e,t,n){"use strict";var a=n("ade3"),r=n("2638"),o=n.n(r),i=n("53ca"),s=n("5530"),c=(n("99af"),n("4d91")),d=n("4d26"),l=n.n(d),u=n("d22e"),p=n("daa3"),h=n("b488"),m=n("94eb");function f(){}var g="open",b="close",v="---",y={name:"TreeNode",mixins:[h["a"]],__ANT_TREE_NODE:!0,props:Object(p["t"])({eventKey:c["a"].oneOfType([c["a"].string,c["a"].number]),prefixCls:c["a"].string,root:c["a"].object,expanded:c["a"].bool,selected:c["a"].bool,checked:c["a"].bool,loaded:c["a"].bool,loading:c["a"].bool,halfChecked:c["a"].bool,title:c["a"].any,pos:c["a"].string,dragOver:c["a"].bool,dragOverGapTop:c["a"].bool,dragOverGapBottom:c["a"].bool,isLeaf:c["a"].bool,checkable:c["a"].bool,selectable:c["a"].bool,disabled:c["a"].bool,disableCheckbox:c["a"].bool,icon:c["a"].any,dataRef:c["a"].object,switcherIcon:c["a"].any,label:c["a"].any,value:c["a"].any},{}),data:function(){return{dragNodeHighlight:!1}},inject:{vcTree:{default:function(){return{}}},vcTreeNode:{default:function(){return{}}}},provide:function(){return{vcTreeNode:this}},mounted:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;this.syncLoadData(this.$props),t&&t(e,this)},updated:function(){this.syncLoadData(this.$props)},beforeDestroy:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;t&&t(e,null)},methods:{onSelectorClick:function(e){var t=this.vcTree.onNodeClick;t(e,this),this.isSelectable()?this.onSelect(e):this.onCheck(e)},onSelectorDoubleClick:function(e){var t=this.vcTree.onNodeDoubleClick;t(e,this)},onSelect:function(e){if(!this.isDisabled()){var t=this.vcTree.onNodeSelect;e.preventDefault(),t(e,this)}},onCheck:function(e){if(!this.isDisabled()){var t=this.disableCheckbox,n=this.checked,a=this.vcTree.onNodeCheck;if(this.isCheckable()&&!t){e.preventDefault();var r=!n;a(e,this,r)}}},onMouseEnter:function(e){var t=this.vcTree.onNodeMouseEnter;t(e,this)},onMouseLeave:function(e){var t=this.vcTree.onNodeMouseLeave;t(e,this)},onContextMenu:function(e){var t=this.vcTree.onNodeContextMenu;t(e,this)},onDragStart:function(e){var t=this.vcTree.onNodeDragStart;e.stopPropagation(),this.setState({dragNodeHighlight:!0}),t(e,this);try{e.dataTransfer.setData("text/plain","")}catch(n){}},onDragEnter:function(e){var t=this.vcTree.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragOver:function(e){var t=this.vcTree.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragLeave:function(e){var t=this.vcTree.onNodeDragLeave;e.stopPropagation(),t(e,this)},onDragEnd:function(e){var t=this.vcTree.onNodeDragEnd;e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},onDrop:function(e){var t=this.vcTree.onNodeDrop;e.preventDefault(),e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},onExpand:function(e){var t=this.vcTree.onNodeExpand;t(e,this)},getNodeChildren:function(){var e=this.$slots.default,t=Object(p["c"])(e),n=Object(u["j"])(t);return t.length!==n.length&&Object(u["o"])(),n},getNodeState:function(){var e=this.expanded;return this.isLeaf2()?null:e?g:b},isLeaf2:function(){var e=this.isLeaf,t=this.loaded,n=this.vcTree.loadData,a=0!==this.getNodeChildren().length;return!1!==e&&(e||!n&&!a||n&&t&&!a)},isDisabled:function(){var e=this.disabled,t=this.vcTree.disabled;return!1!==e&&!(!t&&!e)},isCheckable:function(){var e=this.$props.checkable,t=this.vcTree.checkable;return!(!t||!1===e)&&t},syncLoadData:function(e){var t=e.expanded,n=e.loading,a=e.loaded,r=this.vcTree,o=r.loadData,i=r.onNodeLoad;if(!n&&o&&t&&!this.isLeaf2()){var s=0!==this.getNodeChildren().length;s||a||i(this)}},isSelectable:function(){var e=this.selectable,t=this.vcTree.selectable;return"boolean"===typeof e?e:t},renderSwitcher:function(){var e=this.$createElement,t=this.expanded,n=this.vcTree.prefixCls,a=Object(p["g"])(this,"switcherIcon",{},!1)||Object(p["g"])(this.vcTree,"switcherIcon",{},!1);if(this.isLeaf2())return e("span",{key:"switcher",class:l()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},["function"===typeof a?a(Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),{},{isLeaf:!0})):a]);var r=l()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?g:b));return e("span",{key:"switcher",on:{click:this.onExpand},class:r},["function"===typeof a?a(Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),{},{isLeaf:!1})):a])},renderCheckbox:function(){var e=this.$createElement,t=this.checked,n=this.halfChecked,a=this.disableCheckbox,r=this.vcTree.prefixCls,o=this.isDisabled(),i=this.isCheckable();if(!i)return null;var s="boolean"!==typeof i?i:null;return e("span",{key:"checkbox",class:l()("".concat(r,"-checkbox"),t&&"".concat(r,"-checkbox-checked"),!t&&n&&"".concat(r,"-checkbox-indeterminate"),(o||a)&&"".concat(r,"-checkbox-disabled")),on:{click:this.onCheck}},[s])},renderIcon:function(){var e=this.$createElement,t=this.loading,n=this.vcTree.prefixCls;return e("span",{key:"icon",class:l()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(this.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},renderSelector:function(e){var t,n=this.selected,a=this.loading,r=this.dragNodeHighlight,o=Object(p["g"])(this,"icon",{},!1),i=this.vcTree,c=i.prefixCls,d=i.showIcon,u=i.icon,h=i.draggable,m=i.loadData,g=this.isDisabled(),b=Object(p["g"])(this,"title",{},!1),y="".concat(c,"-node-content-wrapper");if(d){var k=o||u;t=k?e("span",{class:l()("".concat(c,"-iconEle"),"".concat(c,"-icon__customize"))},["function"===typeof k?k(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),e):k]):this.renderIcon()}else m&&a&&(t=this.renderIcon());var x=b,O=e("span",{class:"".concat(c,"-title")},x?["function"===typeof x?x(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),e):x]:[v]);return e("span",{key:"selector",ref:"selectHandle",attrs:{title:"string"===typeof b?b:"",draggable:!g&&h||void 0,"aria-grabbed":!g&&h||void 0},class:l()("".concat(y),"".concat(y,"-").concat(this.getNodeState()||"normal"),!g&&(n||r)&&"".concat(c,"-node-selected"),!g&&h&&"draggable"),on:{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave,contextmenu:this.onContextMenu,click:this.onSelectorClick,dblclick:this.onSelectorDoubleClick,dragstart:h?this.onDragStart:f}},[t,O])},renderChildren:function(){var e=this.$createElement,t=this.expanded,n=this.pos,a=this.vcTree,r=a.prefixCls,c=a.openTransitionName,d=a.openAnimation,p=a.renderTreeNode,h={};c?h=Object(m["a"])(c):"object"===Object(i["a"])(d)&&(h=Object(s["a"])({},d),h.props=Object(s["a"])({css:!1},h.props));var f,g=this.getNodeChildren();return 0===g.length?null:(t&&(f=e("ul",{class:l()("".concat(r,"-child-tree"),t&&"".concat(r,"-child-tree-open")),attrs:{"data-expanded":t,role:"group"}},[Object(u["l"])(g,(function(e,t){return p(e,t,n)}))])),e("transition",o()([{},h]),[f]))}},render:function(e){var t,n=this.$props,r=n.dragOver,o=n.dragOverGapTop,i=n.dragOverGapBottom,s=n.isLeaf,c=n.expanded,d=n.selected,l=n.checked,u=n.halfChecked,p=n.loading,h=this.vcTree,m=h.prefixCls,g=h.filterTreeNode,b=h.draggable,v=this.isDisabled();return e("li",{class:(t={},Object(a["a"])(t,"".concat(m,"-treenode-disabled"),v),Object(a["a"])(t,"".concat(m,"-treenode-switcher-").concat(c?"open":"close"),!s),Object(a["a"])(t,"".concat(m,"-treenode-checkbox-checked"),l),Object(a["a"])(t,"".concat(m,"-treenode-checkbox-indeterminate"),u),Object(a["a"])(t,"".concat(m,"-treenode-selected"),d),Object(a["a"])(t,"".concat(m,"-treenode-loading"),p),Object(a["a"])(t,"drag-over",!v&&r),Object(a["a"])(t,"drag-over-gap-top",!v&&o),Object(a["a"])(t,"drag-over-gap-bottom",!v&&i),Object(a["a"])(t,"filter-node",g&&g(this)),t),attrs:{role:"treeitem"},on:{dragenter:b?this.onDragEnter:f,dragover:b?this.onDragOver:f,dragleave:b?this.onDragLeave:f,drop:b?this.onDrop:f,dragend:b?this.onDragEnd:f}},[this.renderSwitcher(),this.renderCheckbox(),this.renderSelector(e),this.renderChildren()])},isTreeNode:1};t["a"]=y},"2cb7":function(e,t,n){},"33ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n("b775"),r={info:"/store/info",update:"/store/update"};function o(e){return Object(a["b"])({url:r.info,method:"get",params:e})}function i(e){return Object(a["b"])({url:r.update,method:"post",data:e})}},"36fa":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M783 0h-542q-66 0-121 32.5t-87.5 87.5-32.5 121v542q0 66 32.5 121t87.5 87.5 121 32.5h542q66 0 121-32.5t87.5-87.5 32.5-121v-542q0-66-32.5-121t-87.5-87.5-121-32.5M512 785q-56 0-109-15-16 3-30 9l-67 42q-30 20-19-15l14-53q2-15-2-31-62-41-97-101-36-61-36-131 0-79 47-148 46-67 124-106 81-40 175-40 86 0 161 34 73 33 121 90l-322 154q-18 10-34.5 10t-32.5-15l-52-46q-35-10-25 23l56 136q10 16 25 18t38-14l374-228q37 62 37 132 0 80-47 149-46 67-124 106-81 40-175 40z"}}]})}},"38d8":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1598326995472",class:"icon",viewBox:"0 0 1152 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9426","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"562.5",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1146.496 435.392c-4.512-23.808-28.64-48-53.696-53.376l-18.72-4.064c-44-12.64-83.008-40.288-107.808-80.992a169.184 169.184 0 0 1-19.84-130.08l5.856-16.704c7.456-23.136-2.24-55.072-21.888-70.944 0 0-17.6-14.144-67.232-41.376-49.632-27.008-71.04-34.496-71.04-34.496-24.128-8.352-57.984-0.416-75.552 17.376l-13.088 13.28c-33.376 30.016-78.272 48.224-127.872 48.224s-94.976-18.432-128.352-48.64l-12.64-12.864c-17.376-17.792-51.424-25.728-75.552-17.344 0 0-21.664 7.52-71.264 34.496-49.632 27.424-66.976 41.568-66.976 41.568-19.616 15.648-29.312 47.36-21.888 70.72l5.408 16.928c10.592 42.656 4.96 88.928-19.84 129.888s-64.288 68.8-108.48 81.216l-18.048 3.84c-24.8 5.376-49.184 29.376-53.696 53.376 0 0-4.064 21.44-4.064 75.872s4.064 75.872 4.064 75.872c4.512 24 28.64 48 53.696 53.376l17.6 3.872c44.192 12.416 83.904 40.288 108.704 81.44a169.056 169.056 0 0 1 19.84 130.08l-5.184 16.512c-7.456 23.136 2.24 55.072 21.888 70.944 0 0 17.6 14.144 67.232 41.376s71.04 34.496 71.04 34.496c24.128 8.352 57.984 0.416 75.584-17.376l12.416-12.64c33.6-30.208 78.72-48.64 128.576-48.64s95.168 18.656 128.576 48.864l12.416 12.64c17.376 17.792 51.424 25.728 75.552 17.344 0 0 21.664-7.488 71.264-34.496 49.632-27.232 66.976-41.376 66.976-41.376 19.616-15.648 29.312-47.584 21.888-70.944l-5.408-17.152a168.736 168.736 0 0 1 19.84-129.44c24.8-40.928 64.512-69.024 108.704-81.44l17.6-3.872c24.8-5.344 49.184-29.344 53.696-53.376 0 0 4.064-21.44 4.064-75.872-0.224-54.656-4.288-76.064-4.288-76.064z m-570.88 293.824c-126.528 0-229.408-97.504-229.408-217.952 0-120.224 102.624-217.76 229.408-217.76 126.528 0 229.376 97.504 229.376 217.952-0.224 120.224-102.848 217.76-229.376 217.76z","p-id":"9427"}}]})}},"3a93":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595829608228",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4042",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M202.24 61.44h619.52c48.64 0 88.746667 40.106667 88.746667 88.746667v707.413333c0 48.64-40.106667 88.746667-88.746667 88.746667H202.24c-48.64 0-88.746667-40.106667-88.746667-88.746667v-708.266667c0.853333-48.64 40.106667-87.893333 88.746667-87.893333z m88.746667 198.826667v88.746666h447.146666V260.266667H290.986667z m0 175.786666v88.746667h447.146666V436.053333H290.986667z m0 178.346667v88.746667h334.506666V614.4H290.986667z","p-id":"4043"}}]})}},"401b":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599184757190",class:"icon",viewBox:"0 0 1027 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1064",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M790.62826087 316.98369565a274.54891304 274.54891304 0 1 1-549.09782609 0 274.54891304 274.54891304 0 0 1 549.09782609 0z m-47.95434783 287.4326087a364.79347826 364.79347826 0 0 1-226.59456521 78.56413043c-84.28695652 0-164.34782609-28.70217391-228.61956522-80.17826087C118.06413043 664.99021739 42.40543478 882.31086957 42.40543478 981.56521739h942.53478261c0-98.37391304-76.24565217-314.16847826-242.29565217-377.11956522z","p-id":"1065"}}]})}},4077:function(e,t,n){},4360:function(e,t,n){"use strict";var a,r=n("2b0e"),o=n("2f62"),i=n("ade3"),s=(n("d3b7"),n("8ded")),c=n.n(s),d=n("9fb0"),l=n("bf0f"),u={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(a={},Object(i["a"])(a,d["c"],(function(e,t){e.sideCollapsed=t,c.a.set(d["c"],t)})),Object(i["a"])(a,d["j"],(function(e,t){e.isMobile=t})),Object(i["a"])(a,d["l"],(function(e,t){e.theme=t,c.a.set(d["l"],t)})),Object(i["a"])(a,d["i"],(function(e,t){e.layout=t,c.a.set(d["i"],t)})),Object(i["a"])(a,d["f"],(function(e,t){e.fixedHeader=t,c.a.set(d["f"],t)})),Object(i["a"])(a,d["g"],(function(e,t){e.fixedSidebar=t,c.a.set(d["g"],t)})),Object(i["a"])(a,d["e"],(function(e,t){e.contentWidth=t,c.a.set(d["e"],t)})),Object(i["a"])(a,d["h"],(function(e,t){e.autoHideHeader=t,c.a.set(d["h"],t)})),Object(i["a"])(a,d["d"],(function(e,t){e.color=t,c.a.set(d["d"],t)})),Object(i["a"])(a,d["m"],(function(e,t){e.weak=t,c.a.set(d["m"],t)})),Object(i["a"])(a,d["b"],(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=n,c.a.set(d["b"],t)})),Object(i["a"])(a,d["k"],(function(e,t){c.a.set(d["k"],t),e.multiTab=t})),a),actions:{setLang:function(e,t){var n=e.commit;return new Promise((function(e,a){n(d["b"],t),Object(l["c"])(t).then((function(){e()})).catch((function(e){a(e)}))}))}}},p=u,h=(n("b0c0"),n("d81d"),n("b775")),m={login:"/passport/login",logout:"/passport/logout"};function f(e){return Object(h["b"])({url:m.login,method:"post",data:e})}function g(){return Object(h["b"])({url:m.logout,method:"post"})}var b=n("f544"),v=n("ca00"),y={state:{token:"",name:"",welcome:"",roles:{},info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var n=t.name,a=t.welcome;e.name=n,e.welcome=a},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var n=e.commit;return new Promise((function(e,a){f(t).then((function(t){var a=t.data;c.a.set(d["a"],a.token,6048e5),n("SET_TOKEN",a.token),e(t)})).catch((function(e){a(e)}))}))},GetInfo:function(e){var t=e.commit,n=window.localStorage.getItem("client_id");return new Promise((function(e,a){Object(b["d"])({client_id:n}).then((function(n){var a=n.data,r=a.roles;r.permissions.map((function(e){e.actionList=[],e.actionEntitySet&&e.actionEntitySet.length>0&&(e.actionList=e.actionEntitySet.map((function(e){return e.action})))})),r.permissionList=r.permissions.map((function(e){return e.permissionId})),t("SET_ROLES",r),t("SET_INFO",a.userInfo),t("SET_NAME",{name:a.userInfo.real_name,welcome:Object(v["i"])()}),e(a)})).catch((function(e){a(e)}))}))},Logout:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){g(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),c.a.remove(d["a"]),e()}))}))},SuperLogin:function(e,t){var n=e.commit;c.a.set(d["a"],t["token"],6048e5),n("SET_TOKEN",t["token"])}}},k=y,x=(n("caad"),n("2532"),n("4de4"),n("159b"),n("99af"),n("d73b"));function O(e,t){if(t.meta&&t.meta.permission){for(var n=!1,a=0,r=e.length;a0&&(e.redirect&&-1!==n.indexOf(e.redirect)||(e.redirect=n[0]))}));var n=null!=e.children?e.children.map((function(e){return e.path})):[];n.length>0&&(e.redirect&&-1!==n.indexOf(e.redirect)||(e.redirect=n[0]))})),_(e)}function _(e){var t=e[0];if(t.children&&t.children.length){var n=t.children[0];t.redirect=null!=n.redirect?n.redirect:n.path}else t.redirect="/404";return e}var M={state:{routers:x["b"],addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=x["b"].concat(t)}},actions:{GenerateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var a=t.roles,r=j(x["a"],a);n("SET_ROUTERS",r),e(r)}))}}},S=M,K={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab},publicConfig:function(){return window.publicConfig}},E=K;r["a"].use(o["a"]);t["a"]=new o["a"].Store({modules:{app:p,user:k,permission:S},state:{},mutations:{},actions:{},getters:E})},"4aa4":function(e,t,n){var a={"./en-US":["743d"],"./en-US.js":["743d"],"./zh-CN":["2807","lang-zh-CN"],"./zh-CN.js":["2807","lang-zh-CN"]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id="4aa4",e.exports=r},"4ceb":function(e,t,n){"use strict";n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return te})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return Ct})),n.d(t,"f",(function(){return ut}));n("1a62");var a=n("98c5"),r=n("5530"),o=(n("2cb7"),n("4d91")),i=n("d525"),s=n("2638"),c=n.n(s),d=(n("8fb1"),n("0c63")),l=n("53ca"),u=(n("fbd8"),n("55f1")),p=(n("d81d"),n("d3b7"),n("159b"),n("7db0"),n("caad"),n("2532"),n("99af"),n("c428"),u["a"].Item),h=u["a"].SubMenu,m={menus:o["a"].array,collapsed:o["a"].bool.def(!1),theme:o["a"].string.def("dark"),mode:o["a"].string.def("inline"),i18nRender:o["a"].oneOfType([o["a"].func,o["a"].bool]).def(!1)},f=function(e,t,n){if(t&&!t.hidden){t.hideChildrenInMenu=!0;var a=t.children&&!t.hideChildrenInMenu;return a?g(e,t,n):b(e,t,n)}return null},g=function(e,t,n){return e(h,{key:t.path,attrs:{title:e("span",[v(e,t.meta.icon),e("span",[y(e,t.meta.title,n)])])}},[!t.hideChildrenInMenu&&t.children.map((function(t){return f(e,t,n)}))])},b=function(e,t,n){var a=Object.assign({},t.meta),o=a.target||null,i="router-link",s={to:{path:t.path}},c={target:o};return t.hideChildrenInMenu=!0,t.children&&t.hideChildrenInMenu&&t.children.forEach((function(e){e.meta=Object.assign(e.meta,{hidden:!0})})),e(p,{key:t.path},[e(i,{props:Object(r["a"])({},s),attrs:Object(r["a"])({},c)},[v(e,a.icon,a.iconStyle),y(e,a.title,n)])])},v=function(e,t,n){if(void 0===t||"none"===t||null===t)return null;var a={};return"object"===Object(l["a"])(t)?a.component=t:a.type=t,e(d["a"],{style:n,props:Object(r["a"])({},a)})},y=function(e,t,n){return e("span",[n&&n(t)||t])},k={name:"RouteMenu",props:m,data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},render:function(e){var t=this,n=this.mode,a=this.theme,r=this.menus,o=this.i18nRender,i=function(e){if("horizontal"!==n){var a=e.find((function(e){return!t.openKeys.includes(e)}));t.rootSubmenuKeys.includes(a)?t.openKeys=a?[a]:[]:t.openKeys=e}else t.openKeys=e},s={props:{mode:n,theme:a,openKeys:this.openKeys,selectedKeys:this.selectedKeys},on:{select:function(e){t.selectedKeys=e.selectedKeys,t.$emit("select",e)},openChange:i}},d=r.map((function(t){return t.hidden?null:f(e,t,o)}));return e(u["a"],c()([{class:"sub-menu"},s]),[d])},methods:{updateMenu:function(){var e=this.$route.matched.concat();this.selectedKeys=[this.$route.matched[1].path];var t=[];"inline"===this.mode&&e.forEach((function(e){e.path&&t.push(e.path)})),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menus.forEach((function(e){return t.push(e.path)})),t}},created:function(){var e=this;this.$watch("$route",(function(){e.updateMenu()})),this.$watch("collapsed",(function(t){t?(e.cachedOpenKeys=e.openKeys.concat(),e.openKeys=[]):e.openKeys=e.cachedOpenKeys}))},mounted:function(){this.updateMenu()}},x=k,O=x,w=(n("6d2a"),n("9571")),j=(n("b0c0"),n("cd83"),n("4de4"),n("ca00")),C=(n("5805"),{name:"SecondMenu",props:{subMenuTitle:o["a"].string.def(""),subMenus:o["a"].array.def(),collapsed:o["a"].bool.def(!1)},data:function(){return{menuList:[]}},created:function(){this.updateMenu(this.subMenus)},watch:{subMenus:function(e){this.updateMenu(e)}},render:function(e){var t=this;return e("div",{class:"menu-second"},[e("div",{class:"menu-title"},[e("span",[this.subMenuTitle])]),e("ul",{class:"menu-list"},[this.menuList.map((function(e){return t.renderMenuItem(e)}))])])},methods:{updateMenu:function(e){var t=this,n=[];e.forEach((function(e){var a=t.isHasChildren(e),r=[];a&&e.children.forEach((function(e){r.push({title:e.meta.title,path:e.path,hidden:e.hidden,activePath:e.activePath})})),n.push({title:e.meta.title,path:e.path,activePath:e.activePath,hidden:e.hidden,isHasChildren:a,isHideChildren:e.isHideChildren||!1,children:r})})),this.menuList=n},isHasChildren:function(e){var t=void 0!==e.children,n=t?e.children.filter((function(e){return e.hidden})):[];return t&&n.length0&&e(D["a"],c()([{class:"".concat(B,"-tabs"),attrs:{activeKey:r,tabBarExtraContent:i},on:{change:function(e){o&&o(e)}}},s]),[a.map((function(t){return e(D["a"].TabPane,c()([{},t,{attrs:{tab:n(t.tab)},key:t.key}]))}))])},J=function(e,t,n){return t||n?e("div",{class:"".concat(B,"-detail")},[e("div",{class:"".concat(B,"-main")},[e("div",{class:"".concat(B,"-row")},[t&&e("div",{class:"".concat(B,"-content")},[t]),n&&e("div",{class:"".concat(B,"-extraContent")},[n])])])]):null},X=function(e,t,n,a){var o=t.title,i=t.content,s=t.pageHeaderRender,c=t.extra,d=t.extraContent,l=t.breadcrumb,u=t.back,p=Object(T["a"])(t,I);if(s)return s(Object(r["a"])({},t));var h=o;o||!1===o||(h=n.title);var m={breadcrumb:l,extra:c,title:a(h),footer:Z(e,p,a)};return u||(m.backIcon=!1),e(L["a"],{props:Object(r["a"])({},m),on:{back:u||Q}},[J(e,i,d)])},ee={name:"PageHeaderWrapper",props:U,inject:["locale","contentWidth","breadcrumbRender"],render:function(e){var t=this,n=this.$route,a=this.$listeners,o=this.$slots.default,i=Object(q["getComponentFromProp"])(this,"content"),s=Object(q["getComponentFromProp"])(this,"extra"),c=Object(q["getComponentFromProp"])(this,"extraContent"),d=Y(this.$props.route||n),l=this.$props.i18nRender||this.locale||G,u=this.$props.contentWidth||this.contentWidth||!1,p=this.$props.back||a.back,h=p&&function(){p&&p()}||void 0,m=this.$props.tabChange,f=function(e){t.$emit("tabChange",e),m&&m(e)},g={},b=this.$props.breadcrumb;if(!0===b){var v=n.matched.concat().map((function(e){return{path:e.path,breadcrumbName:l(e.meta.title)}})),y=function(e){var t=e.route,n=e.params,a=e.routes,r=(e.paths,e.h);return a.indexOf(t)===a.length-1&&r("span",[t.breadcrumbName])||r("router-link",{attrs:{to:{path:t.path||"/",params:n}}},[t.breadcrumbName])},k=this.breadcrumbRender||y;g={props:{routes:v,itemRender:k}}}else g=b||null;var x=Object(r["a"])(Object(r["a"])({},this.$props),{},{content:i,extra:s,extraContent:c,breadcrumb:g,tabChange:f,back:h});return e("div",{class:"ant-pro-page-header-wrap"},[e("div",{class:"".concat(B,"-page-header-warp")},[e(F,[X(e,x,d,l)])]),o?e(F,{attrs:{contentWidth:u}},[e("div",{class:"".concat(B,"-children-content")},[o])]):null])}},te=ee,ne=(n("9a93"),{links:o["a"].array,copyright:o["a"].any}),ae={name:"GlobalFooter",props:ne,render:function(){var e=arguments[0],t=Object(q["getComponentFromProp"])(this,"copyright"),n=Object(q["getComponentFromProp"])(this,"links"),a=Object(q["hasProp"])(n);return e("footer",{class:"ant-pro-global-footer"},[e("div",{class:"ant-pro-global-footer-links"},[a&&n.map((function(t){return e("a",{key:t.key,attrs:{title:t.key,target:t.blankTarget?"_blank":"_self",href:t.href}},[t.title])}))||n]),t&&e("div",{class:"ant-pro-global-footer-copyright"},[t])])}},re=ae,oe={name:"VueFragment",functional:!0,render:function(e,t){return t.children.length>1?e("div",{},t.children):t.children}},ie=(n("b64b"),n("c68f")),se=n("81a7"),ce=function(e,t){var n=e.slots&&e.slots();return n[t]||e.props[t]},de=function(e){return"function"===typeof e},le={daybreak:"daybreak","#1890ff":"daybreak","#F5222D":"dust","#FA541C":"volcano","#FAAD14":"sunset","#13C2C2":"cyan","#52C41A":"green","#2F54EB":"geekblue","#722ED1":"purple"},ue=function(e){return Object.keys(e).reduce((function(t,n){return t[e[n]]=n,t}),{})};function pe(e){return e&&le[e]?le[e]:e}function he(e){var t=ue(le);return e&&t[e]?t[e]:e}n("90f3"),n("a044");var me=n("b047"),fe=n.n(me),ge={collapsed:o["a"].bool,handleCollapse:o["a"].func,isMobile:o["a"].bool.def(!1),fixedHeader:o["a"].bool.def(!1),logo:o["a"].any,menuRender:o["a"].any,collapsedButtonRender:o["a"].any,rightContentRender:o["a"].any},be="ant-pro-global-header",ve={name:"GlobalHeader",props:ge,inject:["locale"],render:function(e){var t=this.$props,n=t.isMobile,a=t.logo,r=t.rightContentRender;return e("div",{class:be},[n&&e("a",{class:"".concat(be,"-logo"),key:"logo",attrs:{href:"/"}},[K(e,a)]),e("div",{class:be+"-tools"},[this.renderCollapsedButton(),this.renderRefreshButton(),this.renderBreadcrumb(),de(r)&&r(e,this.$props)||r])])},methods:{triggerResizeEvent:fe()((function(){se["a"]&&Object(ie["a"])(window,"resize")})),renderCollapsedButton:function(){var e=this.$createElement,t=this.$props,n=t.collapsed,a=t.collapsedButtonRender,r=void 0===a?function(t){return e(d["a"],{attrs:{type:t?"menu-unfold":"menu-fold"}})}:a,o=t.menuRender;return!1!==r&&!1!==o?e("div",{class:"".concat(be,"-trigger"),on:{click:this.onCollapsed}},[de(r)&&r(n)||r]):null},renderRefreshButton:function(){var e=this.$createElement;return e("span",{class:"ant-pro-global-header-trigger",on:{click:this.onRefresh}},[e(d["a"],{attrs:{type:"reload"}})])},renderBreadcrumb:function(){var e=this.$createElement,t=this.locale,n=this.$route,a=[];if(n.matched.concat().forEach((function(e){e.meta&&e.meta.title&&a.push({path:e.path,breadcrumbName:t(e.meta.title)})})),a.length<=1)return null;var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=["ant-breadcrumb-link"];return n&&a.push("active"),e("span",{class:a},[t.breadcrumbName])},o=[],i=e("span",{class:"ant-breadcrumb-separator"},["/"]);return a.forEach((function(e){var t=a.indexOf(e)===a.length-1;o.push(r(e,t)),!t&&o.push(i)})),e("div",{class:"".concat(be,"-breadcrumb")},[o])},onCollapsed:function(){var e=this.$props,t=e.collapsed,n=e.handleCollapse;n&&n(!t),this.triggerResizeEvent()},onRefresh:function(){window.location.reload()}},beforeDestroy:function(){this.triggerResizeEvent.cancel&&this.triggerResizeEvent.cancel()}},ye=ve,ke=a["a"].Header,xe=Object(r["a"])(Object(r["a"])(Object(r["a"])({},ge),S),{},{isMobile:o["a"].bool.def(!1),collapsed:o["a"].bool,logo:o["a"].any,hasSiderMenu:o["a"].bool,autoHideHeader:o["a"].bool,menuRender:o["a"].any,headerRender:o["a"].any,rightContentRender:o["a"].any,visible:o["a"].bool.def(!0)}),Oe=function(e,t){var n="topmenu"===t.layout,a=800,o=t.contentWidth,i="ant-pro-top-nav-header",s=t.logo,c=t.title,d=t.theme,l=t.isMobile,u=t.headerRender,p=t.rightContentRender,h={theme:d,isTop:n,isMobile:l},m=e(ye,{props:Object(r["a"])({},t)});return n&&!l&&(m=e("div",{class:[i,d]},[e("div",{class:["".concat(i,"-main"),o?"wide":""]},[e("div",{class:"".concat(i,"-left")},[e("div",{class:"".concat(i,"-logo"),key:"logo",attrs:{id:"logo"}},[E(e,{logo:s,title:c,menuHeaderRender:null})])]),e("div",{class:"".concat(i,"-menu"),style:{maxWidth:"".concat(a,"px"),flex:1}},[e(x,{props:Object(r["a"])({},t)})]),de(p)&&p(e,h)||p])])),u?u(e,t):m},we={name:"HeaderView",props:xe,render:function(e){var t=this.$props,n=t.visible,a=t.isMobile,r=t.layout,o=t.collapsed,i=t.fixedHeader,s=t.hasSiderMenu,c=this.$props,d="topmenu"===r,l=i&&s&&!d&&!a,u={"ant-pro-fixed-header":i,"ant-pro-top-menu":d};return n?e(oe,[e(ke,{style:{padding:0,width:l?"calc(100% - ".concat(o?80:160,"px)"):"100%",zIndex:9,right:i?0:void 0},class:u},[Oe(e,c)])]):null}},je=we,Ce=(n("d2a3"),n("4df5")),_e=a["a"].Content,Me={isChildrenLayout:o["a"].bool,location:o["a"].any,contentHeight:o["a"].number,contentWidth:o["a"].bool},Se={name:"WrapContent",props:Me,render:function(e){var t=this.$props,n=t.isChildrenLayout,a=t.contentWidth;return e(_e,[e(Ce["a"],{attrs:{getPopupContainer:function(e,t){return n?e.parentNode():document.body}}},[e("div",{class:"ant-pro-basicLayout-children-content-wrap"},[e(F,{attrs:{contentWidth:a}},[this.$slots.default])])])])}},Ke=Se,Ee={name:"ProConfigProvider",props:{i18nRender:o["a"].any,contentWidth:o["a"].bool,breadcrumbRender:o["a"].func},provide:function(){var e=this;return{locale:e.$props.i18nRender,contentWidth:e.$props.contentWidth,breadcrumbRender:e.$props.breadcrumbRender}},render:function(){var e=this.$scopedSlots,t=this.children||e["default"];return t()}},Ne=Ee,Ae=Object(r["a"])(Object(r["a"])(Object(r["a"])({},S),xe),{},{locale:o["a"].oneOfType([o["a"].string,o["a"].bool]).def("en-US"),breadcrumbRender:o["a"].func,disableMobile:o["a"].bool.def(!1),mediaQuery:o["a"].object.def({}),handleMediaQuery:o["a"].func,footerRender:o["a"].func}),$e={"screen-xs":{maxWidth:575},"screen-sm":{minWidth:576,maxWidth:767},"screen-md":{minWidth:768,maxWidth:991},"screen-lg":{minWidth:992,maxWidth:1199},"screen-xl":{minWidth:1200,maxWidth:1599},"screen-xxl":{minWidth:1600}},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e?t?80:n:0},Te=function(e,t){return!1===t.headerRender?null:e(je,{props:Object(r["a"])({},t)})},De=function(e){return e},Le={name:"BasicLayout",functional:!0,props:Ae,render:function(e,t){var n=t.props,o=t.children,s=n.layout,c=n.isMobile,d=n.collapsed,l=n.siderWidth,u=n.mediaQuery,p=n.handleMediaQuery,h=n.handleCollapse,m=n.contentWidth,f=n.fixSiderbar,g=n.i18nRender,b=void 0===g?De:g,v=ce(t,"footerRender"),y=ce(t,"rightContentRender"),k=ce(t,"collapsedButtonRender"),x=ce(t,"menuHeaderRender"),O=ce(t,"breadcrumbRender"),w="topmenu"===s,j=!w,C=f&&!w&&!c,_=Object(r["a"])(Object(r["a"])({},n),{},{siderWidth:l,hasSiderMenu:j,footerRender:v,menuHeaderRender:x,rightContentRender:y,collapsedButtonRender:k,breadcrumbRender:O});return e(Ne,{attrs:{i18nRender:b,contentWidth:m,breadcrumbRender:O}},[e(i["ContainerQuery"],{attrs:{query:$e},on:{change:p}},[e(a["a"],{class:Object(r["a"])({"ant-pro-basicLayout":!0,"ant-pro-topmenu":w},u)},[Te(e,Object(r["a"])(Object(r["a"])({},_),{},{mode:"horizontal"})),e(P,{props:Object(r["a"])({},_),attrs:{collapsed:d},on:{collapse:h}}),e(a["a"],{class:[s],style:{paddingLeft:j?"".concat(Pe(!!C,d,l),"px"):void 0,minHeight:"100vh"}},[e(Ke,{class:"ant-pro-basicLayout-content",attrs:{contentWidth:m}},[o]),e(a["a"].Footer,[v&&(de(v)&&v(e)||v)])])])])])}},Re=Le,He=(n("6ba6"),n("5efb")),ze=(n("3b18"),n("f64c")),Fe=(n("ab9e"),n("2c92")),qe=(n("fbd6"),n("160c")),Ie=(n("d88f"),n("fe2b")),We=(n("55ec"),n("a79d")),Be=n("41b2"),Ve=n.n(Be),Ue=(n("a7c9"),n("0464")),Ge=(n("9a33"),n("f933")),Ye={value:{type:String,default:null},list:{type:Array,default:null}},Qe="ant-pro-setting-drawer-block-checbox",Ze={props:Ye,inject:["locale"],render:function(e){var t=this,n=this.value,a=this.list,r=this.$props.i18nRender||this.locale||vt,o=a||[{key:"sidemenu",url:"https://gw.alipayobjects.com/zos/antfincdn/XwFOFbLkSM/LCkqqYNmvBEbokSDscrm.svg",title:r("app.setting.sidemenu")},{key:"topmenu",url:"https://gw.alipayobjects.com/zos/antfincdn/URETY8%24STp/KDNDBbriJhLwuqMoxcAr.svg",title:r("app.setting.topmenu")}],i=function(e){t.$emit("change",e)},s={cursor:"not-allowed"};return e("div",{class:Qe,key:n},[o.map((function(t){return e(Ge["a"],{attrs:{title:t.title},key:t.key},[e("div",{class:Qe+"-item",style:t.disable&&s,on:{click:function(){return!t.disable&&i(t.key)}}},[e("img",{attrs:{src:t.url,alt:t.key}}),e("div",{class:Qe+"-selectIcon",style:{display:n===t.key?"block":"none"}},[e(d["a"],{attrs:{type:"check"}})])])])}))])}},Je=Ze,Xe=n("92fa"),et=n.n(Xe),tt=(n("b0cc"),"theme-color"),nt={color:o["a"].string,check:o["a"].bool},at={props:nt,functional:!0,render:function(e,t){var n=t.props,a=n.color,r=n.check,o=t.data;return e("div",et()([o,{style:{backgroundColor:a}}]),[r?e(d["a"],{attrs:{type:"check"}}):null])}},rt={colors:o["a"].array,title:o["a"].string,value:o["a"].string,i18nRender:o["a"].func},ot={props:rt,inject:["locale"],render:function(e){var t=this,n=this.title,a=this.value,r=this.colors,o=void 0===r?[]:r,i=this.$props.i18nRender||this.locale||vt,s=function(e){t.$emit("change",e)};return e("div",{class:tt,ref:"ref"},[e("h3",{class:tt+"-title"},[n]),e("div",{class:tt+"-content"},[o.map((function(t){var n=pe(t.key),r=a===t.key||pe(a)===t.key;return e(Ge["a"],{key:t.color,attrs:{title:n?i("app.setting.themecolor."+n):t.key}},[e(at,{class:tt+"-block",attrs:{color:t.color,check:r},on:{click:function(){return s(t.key)}}})])}))])])}},it=ot,st=(n("2ef0f"),n("9839")),ct=function(e,t){var n=Ve()({},t.action);return e(Ge["a"],{attrs:{title:t.disabled?t.disabledReason:"",placement:"left"}},[e(Ie["b"].Item,{attrs:{actions:[n]}},[e("span",{style:{opacity:t.disabled?.5:1}},[t.title])])])},dt={contentWidth:o["a"].bool,fixedHeader:o["a"].bool,fixSiderbar:o["a"].bool,layout:o["a"].oneOf(["sidemenu","topmenu"])},lt={props:dt,inject:["locale"],render:function(e){var t=this,n=this.$props.i18nRender||this.locale||vt,a=this.contentWidth,r=this.fixedHeader,o=this.layout,i=this.fixSiderbar,s=function(e,n){t.$emit("change",{type:e,value:n})};return e(Ie["b"],{attrs:{split:!1,dataSource:[{title:n("app.setting.content-width"),action:e(st["c"],{attrs:{value:a?"Fixed":"Fluid",size:"small"},on:{select:function(e){return s("contentWidth",e)}},style:{width:"80px"}},["sidemenu"===o?null:e(st["c"].Option,{attrs:{value:"Fixed"}},[n("app.setting.content-width.fixed")]),e(st["c"].Option,{attrs:{value:"Fluid"}},[n("app.setting.content-width.fluid")])])},{title:n("app.setting.fixedheader"),action:e(qe["a"],{attrs:{size:"small",checked:!!r},on:{change:function(e){return s("fixedHeader",e)}}})},{title:n("app.setting.fixedsidebar"),disabled:"topmenu"===o,disabledReason:n("app.setting.fixedsidebar.hint"),action:e(qe["a"],{attrs:{size:"small",disabled:"topmenu"===o,checked:!!i},on:{change:function(e){return s("fixSiderbar",e)}}})}],renderItem:function(t,n){return ct(e,t)}}})}},ut=(n("cb29"),n("a15b"),n("ac1f"),n("5319"),n("6a71"),n("7746"),function(e){}),pt=function(e){var t=document.body.querySelector("#app");e?t.classList.add("colorWeak"):t.classList.remove("colorWeak")},ht=n("b384"),mt=n.n(ht),ft="ant-pro-setting-drawer",gt={title:{type:String,default:""}},bt={props:gt,render:function(e){var t=this.title;return e("div",{style:{marginBottom:24}},[e("h3",{class:ft+"-title"},[t]),this.$slots["default"]])}},vt=function(e){return e},yt=function(e){var t=window.umi_plugin_ant_themeVar||[],n=[{key:"light",url:"https://gw.alipayobjects.com/zos/antfincdn/NQ%24zoisaD2/jpRkZQMyYRryryPNtyIC.svg",title:e("app.setting.pagestyle.light")},{key:"dark",url:"https://gw.alipayobjects.com/zos/antfincdn/XwFOFbLkSM/LCkqqYNmvBEbokSDscrm.svg",title:e("app.setting.pagestyle.dark")}],a=[{key:"#1890ff",color:"#1890ff",theme:"dark"}],r=[{key:"#1890ff",color:"#1890ff",theme:"dark"}];return t.find((function(e){return"dark"===e.theme}))&&n.push({disable:!0,key:"realDark",url:"https://gw.alipayobjects.com/zos/antfincdn/hmKaLQvmY2/LCkqqYNmvBEbokSDscrm.svg",title:e("app.setting.pagestyle.realdark")}),t.forEach((function(e){var t=(e.modifyVars||{})["@primary-color"];"dark"===e.theme&&t&&a.push(Ve()({color:t},e)),e.theme&&"light"!==e.theme||r.push(Ve()({color:t},e))})),{colorList:{dark:a,light:r},themeList:n}},kt=function(e,t,n){"primaryColor"===e&&ut(t),"colorWeak"===e&&pt(t)},xt=function(e){return JSON.stringify(Object(Ue["a"])(Ve()({},e,{primaryColor:he(e.primaryColor)}),["colorWeak"]),null,2)},Ot={theme:o["a"].oneOf(["dark","light","realDark"]),primaryColor:o["a"].string,layout:o["a"].oneOf(["sidemenu","topmenu"]),colorWeak:o["a"].bool,contentWidth:o["a"].bool,fixedHeader:o["a"].bool,fixSiderbar:o["a"].bool,hideHintAlert:o["a"].bool.def(!1),hideCopyButton:o["a"].bool.def(!1)},wt={getContainer:o["a"].func,settings:o["a"].objectOf(Ot)},jt={name:"SettingDrawer",props:wt,inject:["locale"],data:function(){return{show:!1}},render:function(e){var t=this,n=this.setShow,a=this.getContainer,r=this.settings,o=r.theme,i=void 0===o?"dark":o,s=r.primaryColor,c=void 0===s?"daybreak":s,l=r.layout,u=void 0===l?"sidemenu":l,p=r.fixedHeader,h=void 0!==p&&p,m=r.fixSiderbar,f=void 0!==m&&m,g=r.contentWidth,b=void 0!==g&&g,v=r.hideHintAlert,y=r.hideCopyButton,k=r.colorWeak,x=this.$props.i18nRender||this.locale,O=yt(x),j="topmenu"===u,C={color:"#fff",fontSize:20},_=function(e,n){t.$emit("change",{type:e,value:n}),kt(e,n,!1)};return e(w["a"],{attrs:{visible:this.show,width:300,placement:"right",getContainer:a},on:{close:function(){return n(!1)}},style:{zIndex:999}},[e("template",{slot:"handle"},[e("div",{class:ft+"-handle",on:{click:function(){return n(!t.show)}}},[this.show?e(d["a"],{attrs:{type:"close"},style:C}):e(d["a"],{attrs:{type:"setting"},style:C})])]),e("div",{class:ft+"-content"},[e(bt,{attrs:{title:x("app.setting.pagestyle")}},[e(Je,{attrs:{list:O.themeList,value:i},on:{change:function(e){_("theme",e)}}})]),e(it,{attrs:{title:x("app.setting.themecolor"),value:c,colors:O.colorList["realDark"===i?"dark":"light"]},on:{change:function(e){_("primaryColor",e,null)}}}),e(We["a"]),e(bt,{attrs:{title:x("app.setting.navigationmode")}},[e(Je,{attrs:{value:u},on:{change:function(e){_("layout",e,null)}}})]),e(lt,{attrs:{contentWidth:b,fixedHeader:h,fixSiderbar:!j&&f,layout:u},on:{change:function(e){var t=e.type,n=e.value;_(t,n)}}}),e(We["a"]),e(bt,{attrs:{title:x("app.setting.othersettings")}},[e(Ie["b"],{attrs:{split:!1,renderItem:function(t){return ct(e,t)},dataSource:[{title:x("app.setting.weakmode"),action:e(qe["a"],{attrs:{size:"small",checked:!!k},on:{change:function(e){return _("colorWeak",e)}}})}]}})]),v&&y?null:e(We["a"]),v?null:e(Fe["a"],{attrs:{type:"warning",message:x("app.setting.production.hint"),icon:e(d["a"],{attrs:{type:"notification"}}),showIcon:!0},style:{marginBottom:"16px"}}),y?null:e(mt.a,{attrs:{text:xt(r)},on:{copy:function(){return ze["a"].success(x("app.setting.copyinfo"))}}},[e(He["a"],{attrs:{block:!0}},[e(d["a"],{attrs:{type:"copy"}}),x("app.setting.copy")])])])])},methods:{setShow:function(e){this.show=e}}},Ct=jt;t["e"]=Re},"524c":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599549785172",class:"icon",viewBox:"0 0 1102 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3880",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M601.245538 272.147692l154.624 448.984616 55.217231 28.041846c36.312615 17.959385 76.878769 3.938462 87.827693-30.168616l33.083076-57.028923 163.209847-314.840615c17.486769-36.548923 3.465846-77.193846-30.404923-88.379077L544.768 19.298462C510.739692 8.270769 460.8-5.12 420.548923 8.979692l-119.729231 47.261539 192.827077 77.981538c36.076308 18.038154 79.399385 56.32 107.598769 137.924923z m122.249847 519.483077L538.702769 254.424615c-11.657846-33.949538-41.590154-76.957538-75.618461-88.142769L234.023385 70.183385a84.913231 84.913231 0 0 0-94.28677 32.610461L11.500308 321.851077c-19.928615 29.696-10.24 79.714462 1.496615 113.664l184.871385 537.284923c5.041231 36.312615 32.295385 49.782154 72.62523 35.84h-0.157538l418.028308-143.911385c33.634462-11.657846 46.946462-39.148308 35.131077-73.097846z m-448.196923-453.868307a50.648615 50.648615 0 0 1-64.196924-31.507693c-9.846154-28.829538 2.599385-54.508308 31.192616-64.275692 28.514462-9.846154 54.193231 2.756923 64.039384 31.507692a50.412308 50.412308 0 0 1-31.035076 64.275693z","p-id":"3881"}}]})}},"559f":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595300943273",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"997",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M618.2 62c25.52958985 0 45.95976563 23.93964844 45.92988281 53.52011719 0 29.64023438-20.39941406 53.60976563-44.66953125 53.60976562H410.06005859c-25.47070313 0-45.9-24.00029297-45.9-53.60976562C364.15917969 85.93964844 384.55859375 62 410.06005859 62h208.1100586zM316.99970703 361.99970703h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297z m0 180h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297z m0 180h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297zM739.82128906 122.00029297c0 65.99970703-12.06035156 101.81953125-75.96035156 101.81953125H360.13994141c-63.60029297 0-75.96035156-47.15947266-75.96035156-101.81953125h-101.25c-42.62958985 0-75.92958985 31.37958985-75.92958985 76.34970703v687.30029297c0 50.42988281 27.29970703 76.34970703 75.92958985 76.34970703h658.17070312c40.5 0 75.89970703-24.87041015 75.89970703-76.35058594V198.35087891c0-49.64941406-28.29023438-76.35058594-75.92958983-76.35058594h-101.25z","p-id":"998"}}]})}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("4de4"),n("d3b7"),n("4d90"),n("99af"),n("a4d3"),n("e01a"),n("b636"),n("dc8d"),n("efe9"),n("d28b"),n("2a1b"),n("80e0"),n("6b9e"),n("197b"),n("2351"),n("8172"),n("944a"),n("81b8"),n("a874"),n("cb29"),n("7db0"),n("c740"),n("0481"),n("5db7"),n("a630"),n("caad"),n("a15b"),n("d81d"),n("5ded"),n("fb6a"),n("4e82"),n("f785"),n("a434"),n("4069"),n("73d9"),n("c19f"),n("82da"),n("ace4"),n("efec"),n("b56e"),n("b0c0"),n("0c47"),n("4ec9"),n("5327"),n("79a8"),n("9ff9"),n("3ea3"),n("40d9"),n("ff9c"),n("0ac8"),n("f664"),n("4057"),n("bc01"),n("6b93"),n("ca21"),n("90d7"),n("2af1"),n("0261"),n("7898"),n("23dc"),n("b65f"),n("a9e3"),n("35b3"),n("f00c"),n("8ba4"),n("9129"),n("583b"),n("aff5"),n("e6e1"),n("c35a"),n("25eb"),n("b680"),n("12a8"),n("e71b"),n("4fadc"),n("dca8"),n("c1f9"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("2b19"),n("c906"),n("e21d"),n("e43e"),n("b64b"),n("bf96"),n("5bf7"),n("cee8"),n("af93"),n("131a"),n("07ac"),n("a6fd"),n("4ae1"),n("3f3a"),n("ac16"),n("5d41"),n("9e4a"),n("7f78"),n("c760"),n("db96"),n("1bf2"),n("d6dd"),n("7ed3"),n("8b9a"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("6062"),n("f5b2"),n("8a79"),n("f6d6"),n("2532"),n("3ca3"),n("466d"),n("843c"),n("d80f"),n("38cf"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("1e25"),n("eee7"),n("18a5"),n("1393"),n("04d3"),n("cc71"),n("c7cd"),n("9767"),n("1913"),n("c5d0"),n("9911"),n("c96a"),n("2315"),n("4c53"),n("664f"),n("cfc3"),n("4a9b"),n("fd87"),n("8b09"),n("143c"),n("5cc6"),n("8a59"),n("84c3"),n("fb2c"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("20bf"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ec97"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("10d1"),n("1fe2"),n("159b"),n("ddb0"),n("130f"),n("9f96"),n("2b3d"),n("bf19"),n("9861"),n("96cf");var a=n("2b0e"),r=function(){var e=this,t=e._self._c;return t("a-config-provider",{attrs:{locale:e.locale}},[t("div",{attrs:{id:"app"}},[t("router-view")],1)])},o=[],i=n("e819"),s=function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var a=document.createElement("iframe");a.src="/favicon.ico",a.style.display="none",a.onload=function(){setTimeout((function(){a.remove()}),9)},document.body.appendChild(a)}},c=(i["a"].title,n("bf0f")),d=n("b775");var l={data:function(){return{}},computed:{locale:function(){}}},u=l,p=n("2877"),h=Object(p["a"])(u,r,o,!1,null,null,null),m=h.exports,f=n("8c4f"),g=n("d73b"),b=f["a"].prototype.push;f["a"].prototype.push=function(e,t,n){return t||n?b.call(this,e,t,n):b.call(this,e).catch((function(e){return e}))},a["a"].use(f["a"]);var v=new f["a"]({mode:"hash",routes:g["b"]}),y=n("4360"),k=n("4ceb"),x={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},O=n("8ded"),w=n.n(O),j=n("9fb0");function C(){y["a"].commit(j["i"],w.a.get(j["i"],i["a"].layout)),y["a"].commit(j["f"],w.a.get(j["f"],i["a"].fixedHeader)),y["a"].commit(j["g"],w.a.get(j["g"],i["a"].fixSiderbar)),y["a"].commit(j["e"],w.a.get(j["e"],i["a"].contentWidth)),y["a"].commit(j["h"],w.a.get(j["h"],i["a"].autoHideHeader)),y["a"].commit(j["l"],w.a.get(j["l"],i["a"].navTheme)),y["a"].commit(j["m"],w.a.get(j["m"],i["a"].colorWeak)),y["a"].commit(j["d"],w.a.get(j["d"],i["a"].primaryColor)),y["a"].commit(j["k"],w.a.get(j["k"],i["a"].multiTab)),y["a"].commit("SET_TOKEN",w.a.get(j["a"])),y["a"].dispatch("setLang",w.a.get(j["b"],"zh-CN"))}n("3c1f");var _=n("2f50"),M=(n("06f4"),n("fc25")),S=(n("68c7"),n("de1b")),K=(n("dc5a"),n("56cd")),E=(n("3b18"),n("f64c")),N=(n("17ac"),n("ff57")),A=(n("438c"),n("fbdf")),$=(n("7d24"),n("dfae")),P=(n("98a7"),n("7bec")),T=(n("bffa"),n("6634")),D=(n("e7c6"),n("a8ba")),L=(n("dd98"),n("3779")),R=(n("34c0"),n("9fd0")),H=(n("2a26"),n("768f")),z=(n("cc70"),n("1fd5")),F=(n("1273"),n("f2ca")),q=(n("eb14"),n("39ab")),I=(n("0025"),n("27ab")),W=(n("9980"),n("0bb7")),B=(n("55ec"),n("a79d")),V=(n("b97c"),n("7571")),U=(n("ab9e"),n("2c92")),G=(n("9a33"),n("f933")),Y=(n("6d2a"),n("9571")),Q=(n("fbd8"),n("55f1")),Z=(n("7f6b"),n("8592")),J=(n("b380"),n("bf7b")),X=(n("dd48"),n("2fc4")),ee=(n("af3d"),n("27fd")),te=(n("d88f"),n("fe2b")),ne=(n("9d5c"),n("a600")),ae=(n("5136"),n("681b")),re=(n("4a96"),n("a071")),oe=(n("8fb1"),n("0c63")),ie=(n("d13f"),n("ccb9")),se=(n("c68a"),n("0020")),ce=(n("cd17"),n("ed3b")),de=(n("0032"),n("e32c")),le=(n("de6a"),n("9a63")),ue=(n("f2ef"),n("3af3")),pe=(n("288f"),n("cdeb")),he=(n("2ef0f"),n("9839")),me=(n("ee00"),n("bb76")),fe=(n("5783"),n("59a5")),ge=(n("fbd6"),n("160c")),be=(n("6ba6"),n("5efb")),ve=(n("922d"),n("09d9")),ye=(n("5704"),n("b558")),ke=(n("1a62"),n("98c5")),xe=(n("d2a3"),n("4df5")),Oe=n("3654"),we=n("2638"),je=n.n(we),Ce=n("15fd"),_e=n("5530"),Me=n("ade3"),Se=n("d96e"),Ke=n.n(Se),Ee=n("bdf5"),Ne=n("3593"),Ae=n("4d91"),$e=n("daa3"),Pe=n("7b05"),Te=n("9cba"),De=(n("b2a3"),n("d6e0"),["on","slots","scopedSlots","class","style"]);function Le(){return{showLine:Ae["a"].bool,multiple:Ae["a"].bool,autoExpandParent:Ae["a"].bool,checkStrictly:Ae["a"].bool,checkable:Ae["a"].bool,disabled:Ae["a"].bool,defaultExpandAll:Ae["a"].bool,defaultExpandParent:Ae["a"].bool,defaultExpandedKeys:Ae["a"].array,expandedKeys:Ae["a"].array,checkedKeys:Ae["a"].oneOfType([Ae["a"].array,Ae["a"].shape({checked:Ae["a"].array,halfChecked:Ae["a"].array}).loose]),defaultCheckedKeys:Ae["a"].array,selectedKeys:Ae["a"].array,defaultSelectedKeys:Ae["a"].array,selectable:Ae["a"].bool,filterAntTreeNode:Ae["a"].func,loadData:Ae["a"].func,loadedKeys:Ae["a"].array,draggable:Ae["a"].bool,showIcon:Ae["a"].bool,icon:Ae["a"].func,switcherIcon:Ae["a"].any,prefixCls:Ae["a"].string,filterTreeNode:Ae["a"].func,openAnimation:Ae["a"].any,treeNodes:Ae["a"].array,treeData:Ae["a"].array,replaceFields:Ae["a"].object,blockNode:Ae["a"].bool}}var Re={name:"ATree",model:{prop:"checkedKeys",event:"check"},props:Object($e["t"])(Le(),{checkable:!1,showIcon:!1,openAnimation:{on:Ne["a"],props:{appear:null}},blockNode:!1}),inject:{configProvider:{default:function(){return Te["a"]}}},created:function(){Ke()(!("treeNodes"in Object($e["l"])(this)),"`treeNodes` is deprecated. please use treeData instead.")},TreeNode:Ee["TreeNode"],methods:{renderSwitcherIcon:function(e,t,n){var a=n.isLeaf,r=n.expanded,o=n.loading,i=this.$createElement,s=this.$props.showLine;if(o)return i(oe["a"],{attrs:{type:"loading"},class:"".concat(e,"-switcher-loading-icon")});if(a)return s?i(oe["a"],{attrs:{type:"file"},class:"".concat(e,"-switcher-line-icon")}):null;var c="".concat(e,"-switcher-icon");return t?Object(Pe["a"])(t,{class:Object(Me["a"])({},c,!0)}):i(oe["a"],s?{attrs:{type:r?"minus-square":"plus-square",theme:"outlined"},class:"".concat(e,"-switcher-line-icon")}:{attrs:{type:"caret-down",theme:"filled"},class:c})},updateTreeData:function(e){var t=this,n=this.$slots,a=this.$scopedSlots,r={children:"children",title:"title",key:"key"},o=Object(_e["a"])(Object(_e["a"])({},r),this.$props.replaceFields);return e.map((function(e){var r=e[o.key],i=e[o.children],s=e.on,c=void 0===s?{}:s,d=e.slots,l=void 0===d?{}:d,u=e.scopedSlots,p=void 0===u?{}:u,h=e.class,m=e.style,f=Object(Ce["a"])(e,De),g=Object(_e["a"])(Object(_e["a"])({},f),{},{icon:a[p.icon]||n[l.icon]||f.icon,switcherIcon:a[p.switcherIcon]||n[l.switcherIcon]||f.switcherIcon,title:a[p.title]||n[l.title]||f[o.title],dataRef:e,on:c,key:r,class:h,style:m});return i?Object(_e["a"])(Object(_e["a"])({},g),{},{children:t.updateTreeData(i)}):g}))},getCheckedKeys:function(){return this.$refs.tree.getCheckedKeys()},clearExpandedKeys:function(){return this.$refs.tree.clearExpandedKeys()},getHalfCheckedKeys:function(){return this.$refs.tree.getHalfCheckedKeys()}},render:function(){var e,t=this,n=arguments[0],a=Object($e["l"])(this),r=this.$slots,o=this.$scopedSlots,i=a.prefixCls,s=a.showIcon,c=a.treeNodes,d=a.blockNode,l=this.configProvider.getPrefixCls,u=l("tree",i),p=Object($e["g"])(this,"switcherIcon"),h=a.checkable,m=a.treeData||c;m&&(m=this.updateTreeData(m));var f={props:Object(_e["a"])(Object(_e["a"])({},a),{},{prefixCls:u,checkable:h?n("span",{class:"".concat(u,"-checkbox-inner")}):h,children:Object($e["c"])(o.default?o.default():r.default),__propsSymbol__:Symbol(),switcherIcon:function(e){return t.renderSwitcherIcon(u,p,e)}}),on:Object($e["k"])(this),ref:"tree",class:(e={},Object(Me["a"])(e,"".concat(u,"-icon-hide"),!s),Object(Me["a"])(e,"".concat(u,"-block-node"),d),e)};return m&&(f.props.treeData=m),n(Ee["Tree"],je()([{},f]))}},He=n("2909"),ze=n("0464"),Fe=n("b047"),qe=n.n(Fe),Ie=n("6a21"),We=n("d22e"),Be={None:"node",Start:"start",End:"end"};function Ve(e,t){var n=Object(We["j"])(e)||[];function a(e){var n=e.key,a=Object($e["p"])(e).default;!1!==t(n,e)&&Ve("function"===typeof a?a():a,t)}n.forEach(a)}function Ue(e){var t=Object(We["h"])(e),n=t.keyEntities;return Object(He["a"])(n.keys())}function Ge(e,t,n,a){var r=[],o=Be.None;if(n&&n===a)return[n];if(!n||!a)return[];function i(e){return e===n||e===a}return Ve(e,(function(e){if(o===Be.End)return!1;if(i(e)){if(r.push(e),o===Be.None)o=Be.Start;else if(o===Be.Start)return o=Be.End,!1}else o===Be.Start&&r.push(e);return-1!==t.indexOf(e)})),r}function Ye(e,t){var n=Object(He["a"])(t),a=[];return Ve(e,(function(e,t){var r=n.indexOf(e);return-1!==r&&(a.push(t),n.splice(r,1)),!!n.length})),a}function Qe(e){var t=[];return(e||[]).forEach((function(e){t.push(e.key),e.children&&(t=[].concat(Object(He["a"])(t),Object(He["a"])(Qe(e.children))))})),t}var Ze=n("b488"),Je=["prefixCls"];function Xe(e,t){var n=e.isLeaf,a=e.expanded;return t(oe["a"],n?{attrs:{type:"file"}}:{attrs:{type:a?"folder-open":"folder"}})}var et={name:"ADirectoryTree",mixins:[Ze["a"]],model:{prop:"checkedKeys",event:"check"},props:Object($e["t"])(Object(_e["a"])(Object(_e["a"])({},Le()),{},{expandAction:Ae["a"].oneOf([!1,"click","doubleclick","dblclick"])}),{showIcon:!0,expandAction:"click"}),inject:{configProvider:{default:function(){return Te["a"]}}},data:function(){var e=Object($e["l"])(this),t=e.defaultExpandAll,n=e.defaultExpandParent,a=e.expandedKeys,r=e.defaultExpandedKeys,o=Object(We["h"])(this.$slots.default),i=o.keyEntities,s={};return s._selectedKeys=e.selectedKeys||e.defaultSelectedKeys||[],t?e.treeData?s._expandedKeys=Qe(e.treeData):s._expandedKeys=Ue(this.$slots.default):s._expandedKeys=n?Object(We["f"])(a||r,i):a||r,this.onDebounceExpand=qe()(this.expandFolderNode,200,{leading:!0}),Object(_e["a"])({_selectedKeys:[],_expandedKeys:[]},s)},watch:{expandedKeys:function(e){this.setState({_expandedKeys:e})},selectedKeys:function(e){this.setState({_selectedKeys:e})}},methods:{onExpand:function(e,t){this.setUncontrolledState({_expandedKeys:e}),this.$emit("expand",e,t)},onClick:function(e,t){var n=this.$props.expandAction;"click"===n&&this.onDebounceExpand(e,t),this.$emit("click",e,t)},onDoubleClick:function(e,t){var n=this.$props.expandAction;"dblclick"!==n&&"doubleclick"!==n||this.onDebounceExpand(e,t),this.$emit("doubleclick",e,t),this.$emit("dblclick",e,t)},onSelect:function(e,t){var n,a=this.$props.multiple,r=this.$slots.default||[],o=this.$data._expandedKeys,i=void 0===o?[]:o,s=t.node,c=t.nativeEvent,d=s.eventKey,l=void 0===d?"":d,u={},p=Object(_e["a"])(Object(_e["a"])({},t),{},{selected:!0}),h=c.ctrlKey||c.metaKey,m=c.shiftKey;a&&h?(n=e,this.lastSelectedKey=l,this.cachedSelectedKeys=n,p.selectedNodes=Ye(r,n)):a&&m?(n=Array.from(new Set([].concat(Object(He["a"])(this.cachedSelectedKeys||[]),Object(He["a"])(Ge(r,i,l,this.lastSelectedKey))))),p.selectedNodes=Ye(r,n)):(n=[l],this.lastSelectedKey=l,this.cachedSelectedKeys=n,p.selectedNodes=[t.node]),u._selectedKeys=n,this.$emit("update:selectedKeys",n),this.$emit("select",n,p),this.setUncontrolledState(u)},expandFolderNode:function(e,t){var n=t.isLeaf;if(!(n||e.shiftKey||e.metaKey||e.ctrlKey)&&this.$refs.tree.$refs.tree){var a=this.$refs.tree.$refs.tree;a.onNodeExpand(e,t)}},setUncontrolledState:function(e){var t=Object(ze["a"])(e,Object.keys(Object($e["l"])(this)).map((function(e){return"_".concat(e)})));Object.keys(t).length&&this.setState(t)}},render:function(){var e=arguments[0],t=Object($e["l"])(this),n=t.prefixCls,a=Object(Ce["a"])(t,Je),r=this.configProvider.getPrefixCls,o=r("tree",n),i=this.$data,s=i._expandedKeys,c=i._selectedKeys,d=Object($e["k"])(this);Object(Ie["a"])(!d.doubleclick,"`doubleclick` is deprecated. please use `dblclick` instead.");var l={props:Object(_e["a"])(Object(_e["a"])({icon:Xe},a),{},{prefixCls:o,expandedKeys:s,selectedKeys:c,switcherIcon:Object($e["g"])(this,"switcherIcon")}),ref:"tree",class:"".concat(o,"-directory"),on:Object(_e["a"])(Object(_e["a"])({},Object(ze["a"])(d,["update:selectedKeys"])),{},{select:this.onSelect,click:this.onClick,dblclick:this.onDoubleClick,expand:this.onExpand})};return e(Re,je()([{},l]),[this.$slots.default])}},tt=n("db14");Re.TreeNode.name="ATreeNode",Re.DirectoryTree=et,Re.install=function(e){e.use(tt["a"]),e.component(Re.name,Re),e.component(Re.TreeNode.name,Re.TreeNode),e.component(et.name,et)};var nt=Re,at=n("4eb5"),rt=n.n(at),ot=n("1d4b"),it={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},n={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(Z["a"],{attrs:{size:this.size,tip:this.tip},style:n})])}},st="0.0.1",ct={newInstance:function(e,t){var n=document.querySelector("body>div[type=loading]");n||(n=document.createElement("div"),n.setAttribute("type","loading"),n.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(n));var a=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),r=new e({data:function(){return Object(_e["a"])({},a)},render:function(){var e=arguments[0],t=this.tip,n={};return this.tip&&(n.tip=t),this.visible?e(it,{props:Object(_e["a"])({},n)}):null}}).$mount(n);function o(e){var t=Object(_e["a"])(Object(_e["a"])({},a),e),n=t.visible,o=t.size,i=t.tip;r.$set(r,"visible",n),i&&r.$set(r,"tip",i),o&&r.$set(r,"size",o)}return{instance:r,update:o}}},dt={show:function(e){this.instance.update(Object(_e["a"])(Object(_e["a"])({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},lt=function(e,t){e.prototype.$loading||(dt.instance=ct.newInstance(e,t),e.prototype.$loading=dt)},ut={version:st,install:lt},pt=n("3835"),ht={add:{key:"add",label:"新增"},delete:{key:"delete",label:"删除"},edit:{key:"edit",label:"修改"},query:{key:"query",label:"查询"},get:{key:"get",label:"详情"},enable:{key:"enable",label:"启用"},disable:{key:"disable",label:"禁用"},import:{key:"import",label:"导入"},export:{key:"export",label:"导出"}};function mt(e){mt.installed||(!e.prototype.$auth&&Object.defineProperties(e.prototype,{$auth:{get:function(){var e=this;return function(t){var n=t.split("."),a=Object(pt["a"])(n,2),r=a[0],o=a[1],i=e.$store.getters.roles;if(i.isSuper)return!0;var s=i.permissions.find((function(e){return e.permissionId===r}));return!!s&&(void 0===o||s.actionList.findIndex((function(e){return e===o}))>-1)}}}}),!e.prototype.$enum&&Object.defineProperties(e.prototype,{$enum:{get:function(){return function(e){var t=ht;return e&&e.split(".").forEach((function(e){t=t&&t[e]||null})),t}}}}))}var ft=mt;a["a"].directive("action",{inserted:function(e,t,n){var a=t.arg,r=y["a"].getters.roles;if(!r.isSuper){var o=n.context.$route.meta.permission,i=o instanceof String&&[o]||o;r.permissions.forEach((function(t){i.includes(t.permissionId)&&t.actionList&&!t.actionList.includes(a)&&(e.parentNode&&e.parentNode.removeChild(e)||(e.style.display="none"))}))}}});a["a"].use(xe["a"]),a["a"].use(ke["a"]),a["a"].use(ye["a"]),a["a"].use(ve["a"]),a["a"].use(be["a"]),a["a"].use(ge["a"]),a["a"].use(fe["a"]),a["a"].use(me["a"]),a["a"].use(he["c"]),a["a"].use(pe["a"]),a["a"].use(ue["a"]),a["a"].use(le["a"]),a["a"].use(de["a"]),a["a"].use(ce["a"]),a["a"].use(se["a"]),a["a"].use(ie["a"]),a["a"].use(oe["a"]),a["a"].use(re["a"]),a["a"].use(ae["a"]),a["a"].use(ne["a"]),a["a"].use(te["b"]),a["a"].use(ee["a"]),a["a"].use(X["a"]),a["a"].use(J["a"]),a["a"].use(Z["a"]),a["a"].use(Q["a"]),a["a"].use(Y["a"]),a["a"].use(G["a"]),a["a"].use(U["a"]),a["a"].use(V["a"]),a["a"].use(B["a"]),a["a"].use(W["a"]),a["a"].use(I["a"]),a["a"].use(q["a"]),a["a"].use(F["a"]),a["a"].use(z["a"]),a["a"].use(H["a"]),a["a"].use(R["a"]),a["a"].use(L["a"]),a["a"].use(D["a"]),a["a"].use(T["a"]),a["a"].use(P["a"]),a["a"].use($["a"]),a["a"].use(A["a"]),a["a"].use(N["a"]),a["a"].prototype.$confirm=ce["a"].confirm,a["a"].prototype.$message=E["a"],a["a"].prototype.$notification=K["a"],a["a"].prototype.$info=ce["a"].info,a["a"].prototype.$success=ce["a"].success,a["a"].prototype.$error=ce["a"].error,a["a"].prototype.$warning=ce["a"].warning,rt.a.config.autoSetContainer=!0,a["a"].use(Oe["a"]),a["a"].use(ot["a"]),a["a"].use(ut),a["a"].use(ft),a["a"].use(rt.a),a["a"].use(S["a"]),a["a"].use(M["a"]),a["a"].use(_["a"]),a["a"].use(nt);var gt=n("323e"),bt=n.n(gt),vt=(n("fddb"),n("ca00"));bt.a.configure({showSpinner:!1});var yt="/passport/login",kt="/pay",xt=[yt,kt],Ot="/";v.beforeEach((function(e,t,n){bt.a.start(),e.meta&&"undefined"!==typeof e.meta.title&&s("".concat(Object(c["b"])(e.meta.title)));var a=e.query;e.path===yt&&a["superLogin"]&&y["a"].dispatch("SuperLogin",{userId:a["userId"],token:a["token"]}),w.a.get(j["a"])?e.path===yt?(n({path:Ot}),bt.a.done()):Object(vt["e"])(y["a"].getters.roles)?y["a"].dispatch("GetInfo").then((function(a){var r=a.roles;y["a"].dispatch("GenerateRoutes",{roles:r}).then((function(a){v.addRoutes(a);var r=decodeURIComponent(t.query.redirect||e.path);e.path===r?n(Object(_e["a"])(Object(_e["a"])({},e),{},{replace:!0})):n({path:r})}))})).catch((function(){K["a"].error({message:"错误",description:"请求用户信息失败,请重试"}),y["a"].dispatch("Logout").then((function(){n({path:yt,query:{redirect:e.fullPath}})}))})):n():xt.includes(e.path)?n():(n({path:yt,query:{redirect:e.fullPath}}),bt.a.done())})),v.afterEach((function(){bt.a.done()}));var wt=n("c1df"),jt=n.n(wt);n("5c3a");jt.a.locale("zh-cn"),a["a"].filter("NumberFormat",(function(e){if(!e)return"0";var t=e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return t})),a["a"].filter("dayjs",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return jt()(e).format(t)})),a["a"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return jt()(e).format(t)}));n("861f");a["a"].config.productionTip=!1,a["a"].use(d["a"]),a["a"].component("pro-layout",k["e"]),a["a"].component("page-header-wrapper",k["b"]),a["a"].filter("dateFormat",(function(e){if(!e)return"";var t=new Date(1e3*e),n=t.getFullYear(),a=(t.getMonth()+1+"").padStart(2,"0"),r=(t.getDate()+"").padStart(2,"0"),o=(t.getHours()+"").padStart(2,"0"),i=(t.getMinutes()+"").padStart(2,"0"),s=(t.getSeconds()+"").padStart(2,"0");return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)})),window.umi_plugin_ant_themeVar=x.theme,new a["a"]({router:v,store:y["a"],i18n:c["a"],created:C,render:function(e){return e(m)}}).$mount("#app")},5805:function(e,t,n){},"5b96":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1592810676056",class:"icon",viewBox:"0 0 1112 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5986","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"542.96875",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1103.626164 714.111047c0-18.548339-18.548339-37.096678-27.822508-37.096677-27.822508 0-55.645017-27.822508-55.645017-55.645017 0-9.274169 0-18.548339 9.274169-18.548339 9.274169-18.548339 0-37.096678-18.548338-46.370847l-64.919187-37.096678c-18.548339-9.274169-37.096678 0-46.370847 9.274169-9.274169 0-37.096678 18.548339-46.370847 18.548339-18.548339 0-37.096678-18.548339-46.370847-27.822508-9.274169-9.274169-27.822508-9.274169-46.370847-9.274169l-64.919187 37.096677c-18.548339 18.548339-27.822508 37.096678-18.548338 55.645017 0 9.274169 0 18.548339 9.274169 18.548339 0 27.822508-27.822508 55.645017-55.645017 55.645017-18.548339 0-27.822508 9.274169-27.822508 37.096677 0 0-9.274169 27.822508-9.274169 55.645017s9.274169 46.370847 9.274169 55.645017c0 18.548339 18.548339 37.096678 27.822508 37.096677 27.822508 0 55.645017 27.822508 55.645017 55.645017 0 9.274169 0 18.548339-9.274169 18.548339-9.274169 18.548339 0 37.096678 18.548338 46.370847l64.919187 37.096678c18.548339 9.274169 37.096678 0 46.370847-9.274169 9.274169-9.274169 27.822508-27.822508 46.370847-27.822509s37.096678 18.548339 46.370847 27.822509c9.274169 9.274169 27.822508 9.274169 46.370847 9.274169l64.919187-37.096678c18.548339-9.274169 18.548339-27.822508 9.274169-46.370847 0-9.274169 0-18.548339-9.274169-18.548339 0-27.822508 27.822508-55.645017 55.645016-55.645017 18.548339 0 27.822508-9.274169 27.822509-37.096677 0 0 9.274169-27.822508 9.274169-55.645017 9.274169-27.822508 0-55.645017 0-55.645017zM853.223589 862.497758c-55.645017 0-92.741694-46.370847-92.741694-102.015863s37.096678-102.015864 92.741694-102.015864 92.741694 46.370847 92.741694 102.015864-46.370847 102.015864-92.741694 102.015863zM686.288539 472.982642c-92.741694 46.370847-148.386711 129.838372-166.93505 231.854236s9.274169 204.031728 74.193356 287.499253H92.741694c-55.645017 0-92.741694-37.096678-92.741694-83.467525v-27.822509c0-46.370847 37.096678-92.741694 83.467525-111.290033L278.225083 686.288539s55.645017-18.548339 64.919186-37.096678c9.274169-9.274169 9.274169-46.370847 0-74.193355-18.548339-18.548339-111.290033-148.386711-111.290033-259.676745C231.854236 139.112542 343.144269 0 482.256811 0c139.112542 0 250.402575 139.112542 250.402575 315.321761 0 55.645017-18.548339 111.290033-46.370847 157.660881z","p-id":"5987"}}]})}},6052:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1634495198314",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3933",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M780.56106667 999.0144H244.80426667c-121.6512 0-220.22826667-98.57706667-220.22826667-220.22826668V243.02933332c0-121.6512 98.57706667-220.22826667 220.22826667-220.22826664h535.7568c121.6512 0 220.22826667 98.57706667 220.22826666 220.22826664v535.7568c0 121.6512-98.57706667 220.22826667-220.22826666 220.22826668z",fill:"#009CF5","p-id":"3934"}},{tag:"path",attrsMap:{d:"M530.97813333 591.4624h-107.17866666l80.69120001-139.264 8.19199999-14.19946667 55.296-95.0272 10.6496-18.56853333 22.93760001-39.3216c10.10346667-17.2032 10.37653333-39.3216-1.09226668-55.56906668-9.8304-13.9264-23.89333333-19.52426668-37.81973333-19.52426665-16.384 0-32.3584 8.46506668-41.3696 23.7568l-8.19199999 14.47253333-8.46506668-14.47253333c-9.0112-15.29173333-25.12213333-23.7568-41.3696-23.7568-8.192 0-16.384 1.91146667-24.02986667 6.28053333-22.66453333 13.1072-30.44693333 42.46186667-17.2032 65.1264l35.6352 61.57653333-144.1792 248.76373335H219.81866667c-28.672 0.27306667-51.6096 25.66826668-47.10399999 55.56906664 3.54986668 23.48373332 25.53173333 39.86773333 49.28853332 39.86773335h36.18133333l110.31893334-0.27306667h220.22826666c4.096 0 8.192-1.77493333 10.64959999-5.05173333 12.56106667-16.7936 21.84533333-42.87146668-8.87466664-69.76853334-16.24746667-14.336-37.95626668-20.61653333-59.52853335-20.61653333z",fill:"#FFFFFF","p-id":"3935"}},{tag:"path",attrsMap:{d:"M803.49866667 591.18933333h-91.7504L589.0048 379.42613332c-2.18453333-3.6864-7.09973333-4.9152-10.51306668-2.4576-17.2032 12.42453332-27.30666667 29.76426667-32.49493332 48.87893336-8.73813332 32.22186667-1.50186667 66.7648 15.1552 95.70986665l26.35093333 45.73866667 13.9264 24.30293333 55.296 95.30026667 5.7344 9.55733332 53.11146667 91.75040001c9.0112 15.29173333 24.84906667 23.7568 41.09653332 23.75679999 8.192 0 16.65706667-2.18453333 24.30293336-6.55359999 22.66453333-13.1072 30.44693333-42.1888 17.2032-65.1264l-30.99306668-53.65760001h38.63893332c28.672 0 51.47306668-25.94133332 46.83093335-55.84213332-3.82293332-23.3472-25.53173333-39.59466667-49.152-39.59466667zM306.7904 699.32373333c-16.7936-6.82666667-32.63146667-6.00746668-45.32906668-2.4576-6.9632 1.91146667-12.6976 6.69013333-16.24746664 12.83413335l-17.74933335 30.31039999c-13.38026668 22.9376-5.46133333 52.0192 17.2032 65.1264 7.64586667 4.36906667 16.11093332 6.5536 24.30293334 6.55360001 16.384 0 32.08533332-8.46506668 40.82346666-23.75680001l20.20693335-34.816c4.9152-8.6016 5.87093333-18.97813333 2.18453332-28.12586667-4.096-10.24-11.74186667-20.0704-25.3952-25.66826667z",fill:"#FFFFFF","p-id":"3936"}}]})}},"60fa":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1600756394501",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5021",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M9.728 584.192c0-34.816 27.648-62.464 63.488-62.464h124.416c34.816 0 63.488 28.672 63.488 62.464v377.344c0 34.816-27.648 62.464-63.488 62.464H73.216c-34.816 0-63.488-28.672-63.488-62.464v-377.344z m753.664-250.88c0-34.816 27.648-62.976 63.488-62.976h124.416c34.816 0 63.488 28.672 63.488 62.976v627.712c0 34.816-27.648 62.976-63.488 62.976h-124.416c-34.816 0-63.488-28.672-63.488-62.976V333.312zM374.784 64C374.784 28.672 402.944 0 439.296 0h126.976c35.84 0 64.512 28.672 64.512 64v896c0 35.328-28.16 64-64.512 64H439.296c-35.84 0-64.512-28.672-64.512-64v-896z","p-id":"5022"}}]})}},"613a":function(e,t,n){},"6fb3":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1625710316933",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"21058",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M763.648 488.71466666L328.096 49.96266666c-9.696-9.696-25.824-9.696-35.488 0s-9.696 25.824 0 35.488l419.424 419.424-419.424 429.12c-9.696 9.696-9.696 25.824 0 35.488s25.824 9.696 35.488 0l435.552-445.248a25.28 25.28 0 0 0 0-35.488z",fill:"","p-id":"21059"}}]})}},7257:function(e,t,n){},"743d":function(e,t,n){"use strict";n.r(t);var a=n("5530"),r=n("8b45"),o=n("0ff2"),i=n.n(o),s={antLocale:r["a"],momentName:"eu",momentLocale:i.a},c={message:"-","menu.home":"Home","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Do you really log-out.","app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"};t["default"]=Object(a["a"])(Object(a["a"])({},s),c)},7620:function(e,t,n){},"7d57":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M1024 854v6q0 44-22 82t-60 60-82 22h-696q-45 0-82.5-22t-59.5-60-22-82v-696q0-44 22-82t59.5-60 82.5-22h695q45 0 82.5 22t60 59.5 22.5 82.5v690M780 399q-29-30-63-55l-10-7q24-12 38-32t14-44.5-15-45.5-40-32.5-55-11.5q-19 0-37 6-7 2-13 6-1 1-4 0t-4-2q-7-11-21-23v0q-25-22-58-21.5t-58 21.5v0q-14 12-21 23-1 1-4 1.5t-4 0.5q-6-4-13-6-17-6-37-6-30 0-55 11.5t-40 32.5-15 45.5 14 44.5 38 32q-3 2-8 6l-2 1q-31 22-63 55-95 97-95 205 0 101 50 168 45 60 129 89 76 27 180 27h8q104 0 180-27 84-29 129-89 50-67 50-168 0-108-95-205M616 593h-75v29h55q12 0 20.5 8.5t8.5 20.5-8.5 20.5-20.5 8.5h-55v44q0 12-8.5 20.5t-20.5 8.5-20.5-8.5-8.5-20.5v-44h-58q-12 0-20.5-8.5t-8.5-20.5 8.5-20.5 20.5-8.5h58v-29h-75q-12 0-20.5-8.5t-8.5-20.5 8.5-20 20.5-8h34l-25-54q-9-9-9-21t8.5-20.5 20.5-8.5 21 9l54 83 58-83q9-9 21-9t20.5 8.5 8.5 20.5-9 21l-30 54h35q12 0 20 8t8.5 20-8 20.5-20.5 8.5z"}}]})}},"7e43":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1608212084627",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5849",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m302.848 470.176a187.424 187.424 0 0 1-105.408 78.656c-1.664 0-1.664 0-3.328 1.664-6.72 1.696-13.376 3.36-21.76 3.36-31.808 0-48.512-21.76-40.16-46.848 6.72-18.4 25.088-35.136 46.848-41.824 35.136-13.376 58.56-41.824 58.56-75.296 0-45.184-43.52-81.984-97.024-81.984-53.568 0-97.088 36.8-97.088 81.984v249.28c0 60.224-35.136 112.128-86.976 142.24-28.448 16.704-61.92 25.088-97.056 25.088-102.08 0-184.064-75.264-184.064-167.328 0-30.112 8.384-56.896 23.424-81.984a187.296 187.296 0 0 1 105.408-78.656c8.384-1.696 15.04-3.328 23.424-3.328 31.808 0 48.512 21.728 40.16 46.848-6.72 18.368-23.424 33.44-43.52 41.792a12.8 12.8 0 0 0-6.688 3.328c-31.808 13.408-53.568 40.192-53.568 73.664 0 45.152 43.52 81.984 97.056 81.984s97.056-36.8 97.056-81.984v-249.312c0-60.224 35.136-112.096 87.008-142.208 28.416-16.736 61.888-25.088 97.024-25.088 102.08 0 184.064 75.264 184.064 167.296 0 26.784-8.384 53.568-23.424 78.656z","p-id":"5850"}}]})}},8477:function(e,t,n){"use strict";n("7620")},8484:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1617674936203",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4263","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M76.775946 12.60487h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#FD4E45","p-id":"4264"}},{tag:"path",attrsMap:{d:"M76.775946 550.036493h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#FF933D","p-id":"4265"}},{tag:"path",attrsMap:{d:"M515.422518 231.160397l220.091046-220.091046c14.84335-14.84335 39.923492-14.84335 54.766841 0.51184l222.138404 222.138404c15.355189 15.355189 15.355189 39.923492 0.51184 54.766841l-220.091046 220.091046c-14.84335 14.84335-39.923492 14.84335-54.766841-0.51184l-222.138404-222.138404c-15.355189-14.84335-15.355189-39.923492-0.51184-54.766841z",fill:"#12BC83","p-id":"4266"}},{tag:"path",attrsMap:{d:"M608.065493 550.036493h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#2C97FE","p-id":"4267"}}]})}},"861f":function(e,t,n){},"8eeb4":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1591771112298",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14907","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z",fill:"#1890ff","p-id":"14908"}},{tag:"path",attrsMap:{d:"M328.192 748.288A44.288 44.288 0 0 1 284.032 704v-103.424a14.208 14.208 0 0 1 4.096-10.112 25.6 25.6 0 0 1 10.112-4.224 132.736 132.736 0 0 0 58.496 12.16c22.784 0 51.2-25.6 80.768-25.6 24.576 0 51.2 24.576 76.8 24.448s55.296-25.6 80.896-25.6c30.208 0 57.6 27.136 78.848 29.824 25.6 3.2 42.496-18.048 45.312-18.048a14.336 14.336 0 0 1 14.208 14.336V704a44.416 44.416 0 0 1-44.16 44.544H328.32z m23.296-190.08a100.736 100.736 0 0 1-44.288-9.472v-1.92h-3.712a101.12 101.12 0 0 1-52.224-88.704 102.4 102.4 0 0 1 4.736-31.616 18.304 18.304 0 0 1 0-1.92l48.384-115.2a50.048 50.048 0 0 1 49.92-33.152h316.288a52.48 52.48 0 0 1 51.2 34.304L767.232 422.4a11.776 11.776 0 0 1 0.768 2.304v1.152a99.328 99.328 0 0 1 4.864 30.976 101.248 101.248 0 0 1-52.352 88.96 102.4 102.4 0 0 1-125.056-24.448l-3.84-4.608-3.84 4.608a98.688 98.688 0 0 1-152.32 0l-3.84-4.48-3.84 4.48a100.096 100.096 0 0 1-76.8 36.096z m3.584-119.296a14.336 14.336 0 0 1 0-28.544h307.2a14.336 14.336 0 0 1 0 28.544z",fill:"#FFFFFF","p-id":"14909","data-spm-anchor-id":"a313x.7781069.0.i4",class:"selected"}}]})}},"90f3":function(e,t,n){},9868:function(e,t,n){"use strict";n("4077")},"9a93":function(e,t,n){},"9fb0":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"b",(function(){return f}));var a="Access-Token",r="sidebar_type",o="is_mobile",i="nav_theme",s="layout",c="fixed_header",d="fixed_sidebar",l="content_width",u="auto_hide_header",p="color",h="weak",m="multi_tab",f="app_language"},a044:function(e,t,n){},a1d4:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1592372316432",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5986","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M590.624 950.496v-261.76h-156.928v262.016H201.44c-26.176 0-42.72-18.592-42.72-47.904 0-106.432 0.032-212.864-0.096-319.296 0-6.08 1.728-9.952 5.92-13.792 114.592-105.088 229.056-210.336 343.552-315.52 1.248-1.152 2.56-2.176 4.16-3.552l50.176 46.08c99.328 91.36 198.624 182.72 298.016 273.984a14.112 14.112 0 0 1 4.992 11.52c-0.096 107.552-0.032 215.136-0.096 322.688-0.032 26.272-17.056 45.632-40.448 45.696-76.672 0.16-153.312 0.064-229.984 0.064-1.184 0-2.4-0.128-4.224-0.256zM511.968 190.304l-113.472 105.472-307.584 285.824c-12.768 11.84-23.104 10.816-33.792-3.232-11.232-14.784-22.432-29.568-33.568-44.448-9.024-12.096-8.032-24.672 2.72-34.656 146.176-135.808 292.384-271.616 438.624-407.36 27.328-25.376 67.36-24.8 95.424 1.216 37.408 34.688 74.688 69.504 112.032 104.256l36 33.44v-8.512-90.208c0-17.312 6.88-24.96 22.464-24.96h110.4c17.6 0 24.096 7.168 24.096 26.688 0 88.672 0.064 145.824-0.128 234.496 0 6.112 1.76 9.984 5.856 13.76 42.24 38.88 84.352 77.92 126.496 116.928 10.816 9.984 12 22.4 3.008 34.56a3164.16 3164.16 0 0 1-35.104 46.592c-9.184 11.936-20.224 12.832-31.136 2.688l-279.232-259.616-139.392-129.6-3.712-3.264z","p-id":"5987"}}]})}},a7c9:function(e,t,n){},b0cc:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));n("d3b7");var a=n("bc3a"),r=n.n(a),o=n("4360"),i=n("8ded"),s=n.n(i),c=n("56cd"),d=n("f64c"),l={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},u=n("ca00"),p=n("9fb0"),h=o["a"].getters.publicConfig,m=r.a.create({baseURL:h.BASE_API,timeout:6e4});m.interceptors.request.use((function(e){var t=s.a.get(p["a"]);return t&&(e.headers["Access-Token"]=t),e}));var f=!1;m.interceptors.response.use((function(e){var t=e.data;if(!Object(u["g"])(t)){var n={message:"服务端api返回的数据格式不正确"};return Promise.reject(n)}return 500===t.status?(d["a"].error(t.message,1.8),Promise.reject(t)):401===t.status?(f||(f=!0,o["a"].dispatch("Logout").then((function(){c["a"].error({key:"notLoggedMessage",message:"错误",description:t.message,duration:3}),setTimeout((function(){return window.location.reload()}),1500)}))),Promise.reject(t)):t}),(function(e){var t=((e.response||{}).data||{}).message||"请求出现错误,请稍后再试";return c["a"].error({message:"网络请求出错",description:t,duration:3}),Promise.reject(e)}));var g={vm:{},install:function(e){e.use(l,m)}}},ba93:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1611452084144",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18462","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M982.912686 11.008633A34.367979 34.367979 0 0 0 957.696701 0.00064H66.305259A34.239979 34.239979 0 0 0 32.00128 36.864617l68.671957 853.311467a34.239979 34.239979 0 0 0 25.151984 30.207981l377.151765 102.399936a34.623978 34.623978 0 0 0 18.047988 0l377.151765-102.399936a34.175979 34.175979 0 0 0 25.151984-30.207981L992.00068 36.864617a34.047979 34.047979 0 0 0-9.087994-25.855984z m-179.199888 279.167826H327.233095l9.791994 136.511914h453.055717l-23.551985 327.871795L512.00098 839.040116l-257.151839-85.311947V597.312267h102.847935v82.559948l154.303904 51.199968 156.863902-52.095967 10.751993-149.951907H241.281149l-24.511984-341.311786h586.687633z","p-id":"18463"}}]})}},bdf5:function(e,t,n){"use strict";e.exports=n("0423")},bf0f:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b}));var a=n("5530"),r=(n("d3b7"),n("caad"),n("3ca3"),n("ddb0"),n("2b0e")),o=n("a925"),i=n("8ded"),s=n.n(i),c=n("c1df"),d=n.n(c),l=n("743d");r["a"].use(o["a"]);var u="en-US",p={"en-US":Object(a["a"])({},l["default"])},h=new o["a"]({silentTranslationWarn:!0,locale:u,fallbackLocale:u,messages:p}),m=[u];function f(e){return h.locale=e,document.querySelector("html").setAttribute("lang",e),e}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return new Promise((function(t){return s.a.set("lang",e),h.locale!==e?m.includes(e)?t(f(e)):n("4aa4")("./".concat(e)).then((function(t){var n=t.default;return h.setLocaleMessage(e,n),m.push(e),d.a.updateLocale(n.momentName,n.momentLocale),f(e)})):t(e)}))}function b(e){return h.t("".concat(e))}t["a"]=h},c06e:function(e,t,n){},c428:function(e,t,n){},ca00:function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"i",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));n("b64b"),n("d3b7"),n("caad"),n("2532"),n("25f0"),n("159b"),n("a15b");function a(){var e=new Date,t=e.getHours();return t<9?"早上好":t<=11?"上午好":t<=13?"中午好":t<20?"下午好":"晚上好"}function r(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}function o(e,t){return function(n){var a=this,r=n;clearTimeout(e.id),e.id=setTimeout((function(){e.call(a,r)}),t)}}function i(e){return 0===Object.keys(e).length}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"[object Array]"===Object.prototype.toString.call(e)}function d(e){return c(e)?0===e.length:s(e)?i(e):!e}function l(e,t){return t.includes(e)}function u(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=function(n){var a=e[n];if(!a)return"continue";c(a)?a.forEach((function(e){t.push(n+"="+e)})):t.push(n+"="+a)};for(var a in e)n(a);return t.join("&")};function h(e,t){var n=p(t);return d(n)?e:e+"?"+n}},cd83:function(e,t,n){},d22e:function(e,t,n){"use strict";n.d(t,"o",(function(){return y})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return x})),n.d(t,"n",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"j",(function(){return C})),n.d(t,"l",(function(){return S})),n.d(t,"i",(function(){return K})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return N})),n.d(t,"g",(function(){return $})),n.d(t,"h",(function(){return P})),n.d(t,"m",(function(){return T})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return L}));var a=n("2909"),r=n("3835"),o=n("b85c"),i=n("53ca"),s=n("2638"),c=n.n(s),d=n("15fd"),l=(n("fb6a"),n("a434"),n("99af"),n("4de4"),n("d3b7"),n("159b"),n("d81d"),n("4ec9"),n("3ca3"),n("ddb0"),n("b64b"),n("d96e")),u=n.n(l),p=n("0464"),h=n("2b5d"),m=n("daa3"),f=["children"],g=.25,b=2,v=!1;function y(){v||(v=!0,u()(!1,"Tree only accept TreeNode as children."))}function k(e,t){var n=e.slice(),a=n.indexOf(t);return a>=0&&n.splice(a,1),n}function x(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function O(e){return e.split("-")}function w(e,t){return"".concat(e,"-").concat(t)}function j(e){return Object(m["o"])(e).isTreeNode}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(j)}function _(e){var t=Object(m["l"])(e)||{},n=t.disabled,a=t.disableCheckbox,r=t.checkable;return!(!n&&!a)||!1===r}function M(e,t){function n(a,r,o){var i=a?a.componentOptions.children:e,s=a?w(o.pos,r):0,c=C(i);if(a){var d=a.key;d||void 0!==d&&null!==d||(d=s);var l={node:a,index:r,pos:s,key:d,parentPos:o.node?o.pos:null};t(l)}c.forEach((function(e,t){n(e,t,{node:a,pos:s})}))}n(null)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.map(t);return 1===n.length?n[0]:n}function K(e,t){var n=Object(m["l"])(t),a=n.eventKey,r=n.pos,o=[];return M(e,(function(e){var t=e.key;o.push(t)})),o.push(a||r),o}function E(e,t){var n=e.clientY,a=t.$refs.selectHandle.getBoundingClientRect(),r=a.top,o=a.bottom,i=a.height,s=Math.max(i*g,b);return n<=r+s?-1:n>=o-s?1:0}function N(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{props:Object(p["a"])(e,["on","key","class","className","style"]),on:e.on||{},class:e.class||e.className,style:e.style,key:e.key}};function $(e,t,n){if(!t)return[];var a=n||{},r=a.processProps,o=void 0===r?A:r,i=Array.isArray(t)?t:[t];return i.map((function(t){var a=t.children,r=Object(d["a"])(t,f),i=$(e,a,n);return e(h["a"],c()([{},o(r)]),[i])}))}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,a=t.processEntity,r=t.onProcessFinished,o=new Map,i=new Map,s={posEntities:o,keyEntities:i};return n&&(s=n(s)||s),M(e,(function(e){var t=e.node,n=e.index,r=e.pos,c=e.key,d=e.parentPos,l={node:t,index:n,key:c,pos:r};o.set(r,l),i.set(c,l),l.parent=o.get(d),l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),a&&a(l,s)})),r&&r(s),s}function T(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(i["a"])(e))return u()(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function D(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new Map,s=new Map;function c(e){if(i.get(e)!==t){var a=n.get(e);if(a){var r=a.children,o=a.parent,d=a.node;if(!_(d)){var l=!0,u=!1;(r||[]).filter((function(e){return!_(e.node)})).forEach((function(e){var t=e.key,n=i.get(t),a=s.get(t);(n||a)&&(u=!0),n||(l=!1)})),t?i.set(e,l):i.set(e,!1),s.set(e,u),o&&c(o.key)}}}}function d(e){if(i.get(e)!==t){var a=n.get(e);if(a){var r=a.children,o=a.node;_(o)||(i.set(e,t),(r||[]).forEach((function(e){d(e.key)})))}}}function l(e){var a=n.get(e);if(a){var r=a.children,o=a.parent,s=a.node;i.set(e,t),_(s)||((r||[]).filter((function(e){return!_(e.node)})).forEach((function(e){d(e.key)})),o&&c(o.key))}else u()(!1,"'".concat(e,"' does not exist in the tree."))}(a.checkedKeys||[]).forEach((function(e){i.set(e,!0)})),(a.halfCheckedKeys||[]).forEach((function(e){s.set(e,!0)})),(e||[]).forEach((function(e){l(e)}));var p,h=[],m=[],f=Object(o["a"])(i);try{for(f.s();!(p=f.n()).done;){var g=Object(r["a"])(p.value,2),b=g[0],v=g[1];v&&h.push(b)}}catch(j){f.e(j)}finally{f.f()}var y,k=Object(o["a"])(s);try{for(k.s();!(y=k.n()).done;){var x=Object(r["a"])(y.value,2),O=x[0],w=x[1];!i.get(O)&&w&&m.push(O)}}catch(j){k.e(j)}finally{k.f()}return{checkedKeys:h,halfCheckedKeys:m}}function L(e,t){var n=new Map;function r(e){if(!n.get(e)){var a=t.get(e);if(a){n.set(e,!0);var o=a.parent,i=a.node,s=Object(m["l"])(i);s&&s.disabled||o&&r(o.key)}}}return(e||[]).forEach((function(e){r(e)})),Object(a["a"])(n.keys())}},d6e0:function(e,t,n){},d73b:function(e,t,n){"use strict";n.d(t,"a",(function(){return le})),n.d(t,"b",(function(){return ue}));n("d3b7"),n("3ca3"),n("ddb0");var a,r,o=function(){var e=this,t=e._self._c;return t("div",{class:["user-layout-wrapper",e.isMobile&&"mobile"]},[t("div",{staticClass:"container"},[t("router-view"),t("div",{staticClass:"footer"})],1)])},i=[],s=n("5530"),c=n("2f62"),d={computed:Object(s["a"])({},Object(c["c"])({isMobile:function(e){return e.app.isMobile}}))},l={name:"UserLayout",mixins:[d],mounted:function(){}},u=l,p=(n("24e1"),n("2877")),h=Object(p["a"])(u,o,i,!1,null,"2951c3e6",null),m=h.exports,f=function(){var e=this,t=e._self._c;return t("div",[t("router-view")],1)},g=[],b={name:"BlankLayout"},v=b,y=Object(p["a"])(v,f,g,!1,null,"7f25f9eb",null),k=(y.exports,function(){var e=this,t=e._self._c;return t("pro-layout",e._b({attrs:{title:e.storeInfo.store_name,menus:e.menus,hasSubMenu:e.hasSubMenu,subMenus:e.subMenus,subMenuTitle:e.subMenuTitle,siderWidth:e.siderWidth,collapsed:e.collapsed,mediaQuery:e.query,isMobile:e.isMobile,handleMediaQuery:e.handleMediaQuery,handleCollapse:e.handleCollapse,logo:e.logoRender,i18nRender:e.i18nRender},scopedSlots:e._u([{key:"rightContentRender",fn:function(){return[t("right-content",{attrs:{"top-menu":"topmenu"===e.settings.layout,"is-mobile":e.isMobile,theme:e.settings.theme}})]},proxy:!0},{key:"footerRender",fn:function(){return[t("global-footer")]},proxy:!0}])},"pro-layout",e.settings,!1),[t("router-view")],1)}),x=[],O=(n("7db0"),n("b0c0"),n("33ca")),w=n("4ceb"),j=n("bf0f"),C=n("9fb0"),_=n("e819"),M=function(){var e=this,t=e._self._c;return t("div",{class:e.wrpCls},[t("avatar-dropdown",{class:e.prefixCls,attrs:{menu:e.showMenu,"current-user":e.currentUser}})],1)},S=[],K=n("ade3"),E=function(){var e=this,t=e._self._c;return e.currentUser?t("a-dropdown",{attrs:{placement:"bottomRight"},scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",{staticClass:"ant-pro-drop-down menu",attrs:{"selected-keys":[]}},[e.menu?t("a-menu-item",{key:"settings",on:{click:e.handleToSettings}},[t("a-icon",{attrs:{type:"setting"}}),e._v("账户设置 ")],1):e._e(),t("a-menu-item",{key:"logout",on:{click:e.handleLogout}},[t("a-icon",{attrs:{type:"logout"}}),e._v("退出登录 ")],1)],1)]},proxy:!0}],null,!1,3564529297)},[t("span",{staticClass:"ant-pro-account-avatar oneline-hide"},[t("a-icon",{style:{fontSize:"16px",marginRight:"5px"},attrs:{type:"user"}}),t("span",[e._v(e._s(e.currentUser.real_name||e.currentUser.user_name))])],1)]):t("span",[t("a-spin",{style:{marginLeft:8,marginRight:8},attrs:{size:"small"}})],1)},N=[],A=(n("cd17"),n("ed3b")),$={name:"AvatarDropdown",props:{currentUser:{type:Object,default:function(){return null}},menu:{type:Boolean,default:!0}},methods:{handleToSettings:function(){this.$router.push({path:"/manage/renew"})},handleLogout:function(e){var t=this;A["a"].confirm({title:"友情提示",content:"真的要注销登录吗 ?",onOk:function(){return t.$store.dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),200)}))},onCancel:function(){}})}}},P=$,T=(n("9868"),Object(p["a"])(P,E,N,!1,null,"5fd74d0e",null)),D=T.exports,L={name:"RightContent",components:{AvatarDropdown:D},props:{prefixCls:{type:String,default:"ant-pro-global-header-index-action"},isMobile:{type:Boolean,default:function(){return!1}},topMenu:{type:Boolean,required:!0},theme:{type:String,required:!0}},data:function(){var e=this.$store.getters.userInfo;return{showMenu:!0,currentUser:e}},computed:{wrpCls:function(){return Object(K["a"])({"ant-pro-global-header-index-right":!0},"ant-pro-global-header-index-".concat(this.isMobile||!this.topMenu?"light":this.theme),!0)}},mounted:function(){}},R=L,H=Object(p["a"])(R,M,S,!1,null,null,null),z=H.exports,F=function(){var e=this,t=e._self._c;return e.visibility?t("global-footer",{staticClass:"footer custom-render",scopedSlots:e._u([{key:"links",fn:function(){},proxy:!0},{key:"copyright",fn:function(){},proxy:!0}],null,!1,2460324447)}):e._e()},q=[],I=function(e){e=unescape(e);for(var t=String.fromCharCode(e.charCodeAt(0)-e.length),n=1;n-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)})),Object(w["f"])(this.settings.primaryColor)},methods:{i18nRender:j["b"],getStoreInfo:function(){var e=this;O["a"]().then((function(t){var n=t.data.storeInfo;e.storeInfo=n}))},updateSider:function(){var e=this.$route.matched[1].name,t=this.menus.find((function(t){return t.name===e}));this.subMenus=t&&t.children||[],this.hasSubMenu=this.subMenus.length>0,this.siderWidth=this.subMenus.length>0?280:160,this.subMenuTitle=t&&t.meta.title},handleMediaQuery:function(e){this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,n=e.value;switch(t&&(this.settings[t]=n),t){case"contentWidth":this.settings[t]="Fixed"===n;break;case"layout":"sidemenu"===n?this.settings.contentWidth=!1:(this.settings.fixSiderbar=!1,this.settings.contentWidth=!0);break}},logoRender:function(){var e=this.$createElement;return e(Y.a)}}},Z=Q,J=(n("8477"),Object(p["a"])(Z,k,x,!1,null,null,null)),X=J.exports,ee={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=this.$store.getters,a=e("keep-alive",[e("router-view")]),r=e("router-view");return(n.multiTab||t.keepAlive)&&(this.keepAlive||n.multiTab||t.keepAlive)?a:r}},te=ee,ne=Object(p["a"])(te,a,r,!1,null,null,null),ae=(ne.exports,function(){var e=this,t=e._self._c;return t("page-header-wrapper",[t("router-view")],1)}),re=[],oe={name:"PageView"},ie=oe,se=Object(p["a"])(ie,ae,re,!1,null,null,null),ce=(se.exports,n("04b3")),de={name:"RouteView",render:function(e){return e("router-view")}},le=[{path:"/",name:"root",component:X,children:[{path:"/index",name:"index",component:function(){return n.e("index").then(n.bind(null,"0a0d"))},meta:{title:"首页",keepAlive:!0,icon:ce["f"],permission:["/index"]}},{path:"/manage",name:"manage",component:de,redirect:"/manage/user/index",meta:{title:"管理员",icon:ce["g"],permission:["/manage"]},children:[{path:"/manage/user/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"b484"))},meta:{title:"管理员列表",keepAlive:!1,permission:["/manage/user/index"]}},{path:"/manage/role/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"759b"))},meta:{title:"角色管理",keepAlive:!1,permission:["/manage/role/index"]}}]},{path:"/card",name:"card",component:de,redirect:"/card/index",meta:{title:"实体兑换卡",icon:ce["l"],permission:["/card"]},children:[{path:"/card/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("card")]).then(n.bind(null,"1043"))},meta:{title:"兑换卡列表",keepAlive:!1,permission:["/card/index"]}},{path:"/card/print",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("card")]).then(n.bind(null,"bd70"))},meta:{title:"打印下载列表",keepAlive:!1,permission:["/card/print"]}}]},{path:"/store",name:"store",component:de,redirect:"/store/setting",meta:{title:"店铺管理",icon:ce["l"],permission:["/store"]},children:[{path:"/store/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("store")]).then(n.bind(null,"976c"))},meta:{title:"店铺设置",keepAlive:!1,permission:["/store/setting"]}},{path:"/store/address/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("store")]).then(n.bind(null,"f30f"))},meta:{title:"地址管理",keepAlive:!1,permission:["/store/address/index"]}},{path:"/page",component:de,redirect:"/page/index",meta:{title:"店铺页面",keepAlive:!1,permission:["/page"]},children:[{path:"/page/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"0773"))},meta:{title:"页面设计",keepAlive:!1,permission:["/page/index"]},activePath:["/page/create","/page/update"]},{path:"/page/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"ead9"))},meta:{title:"新增页面",keepAlive:!1,permission:["/page/create"]},hidden:!0},{path:"/page/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"c207"))},meta:{title:"编辑页面",keepAlive:!1,permission:["/page/update"]},hidden:!0},{path:"/page/category",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"b043"))},meta:{title:"分类模板",keepAlive:!1,permission:["/page/category"]}}]}]},{path:"/goods",name:"goods",component:de,redirect:"/goods/index",meta:{title:"商品管理",icon:ce["c"],permission:["/goods"]},children:[{path:"/goods/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"1788"))},meta:{title:"商品列表",keepAlive:!1,permission:["/goods/index"]},activePath:["/goods/create","/goods/update"]},{path:"/goods/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"f11f"))},meta:{title:"创建商品",keepAlive:!1,permission:["/goods/create"]},hidden:!0},{path:"/goods/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"c1df6"))},meta:{title:"编辑商品",keepAlive:!1,permission:["/goods/update"]},hidden:!0},{path:"/goods/category/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"3686"))},meta:{title:"商品分类",keepAlive:!1,permission:["/goods/category/index"]}},{path:"/goods/comment/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"acbe"))},meta:{title:"商品评价",keepAlive:!1,permission:["/goods/comment/index"]}}]},{path:"/merchant",name:"merchant",component:de,redirect:"/merchant/index",meta:{title:"代理商管理",icon:ce["l"],permission:["/merchant"]},children:[{path:"/merchant/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"796a"))},meta:{title:"代理商列表",keepAlive:!1,permission:["/merchant/index"]},activePath:["/merchant/create","/merchant/update"]},{path:"/merchant/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"1a56"))},meta:{title:"发券订单",keepAlive:!1,permission:["/merchant/order/index"]}},{path:"/merchant/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"43de"))},meta:{title:"创建代理商",keepAlive:!1,permission:["/merchant/create"]},hidden:!0},{path:"/merchant/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"9f8e"))},meta:{title:"编辑代理商",keepAlive:!1,permission:["/merchant/update"]},hidden:!0},{path:"/merchant/balance",component:de,redirect:"/merchant/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/merchant/balance"]},children:[{path:"/merchant/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"b672"))},meta:{title:"余额明细",keepAlive:!1,permission:["/merchant/balance/index"]}}]}]},{path:"/order",name:"order",component:de,redirect:"/order/list/all",meta:{title:"订单管理",icon:ce["j"],permission:["/order"]},children:[{path:"/order/list/all",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"全部订单",keepAlive:!1,permission:["/order/list/all"]}},{path:"/order/list/oil",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"油券订单",keepAlive:!1,permission:["/order/list/all"]}},{path:"/order/list/coupon",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"优惠券订单",keepAlive:!1,permission:["/order/list/all"]}}]},{path:"/promotion",name:"promotion",component:de,meta:{title:"分销管理",icon:ce["j"],permission:["/promotion"]},children:[{path:"/promotion/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"d8cc"))},meta:{title:"代理商列表",keepAlive:!1,permission:["/promotion/index"]}},{path:"/promotion/commission",component:de,redirect:"/promotion/order/index",meta:{title:"佣金记录",keepAlive:!1,permission:["/promotion/commission"]},moduleKey:"promotion-commission",children:[{path:"/promotion/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3728"))},meta:{title:"分销订单",keepAlive:!1,permission:["/promotion/order/index"]}}]}]},{path:"/checkout",name:"checkout",component:de,meta:{title:"结账管理",icon:ce["j"],permission:["/checkout"]},children:[{path:"/checkout/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"0e24"))},meta:{title:"结账记录",keepAlive:!1,permission:["/checkout/index"]}}]},{path:"/user",name:"user",component:de,meta:{title:"用户管理",icon:ce["m"],permission:["/user"]},children:[{path:"/user/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"dab6"))},meta:{title:"用户列表",keepAlive:!1,permission:["/user/index"]}},{path:"/user/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"3669"))},meta:{title:"创建用户",keepAlive:!1,permission:["/user/create"]},hidden:!0},{path:"/user/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"459d"))},meta:{title:"编辑用户",keepAlive:!1,permission:["/user/update"]},hidden:!0},{path:"/user/grade/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"7ad7"))},meta:{title:"会员等级",keepAlive:!1,permission:["/user/grade/index"]}},{path:"/user/balance",component:de,redirect:"/user/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/user/balance"]},children:[{path:"/user/recharge/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"66c9"))},meta:{title:"充值记录",keepAlive:!1,permission:["/user/recharge/index"]}},{path:"/user/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"4a98"))},meta:{title:"余额明细",keepAlive:!1,permission:["/user/balance/index"]}}]}]},{path:"/partners",name:"partners",component:de,redirect:"/partners/index",meta:{title:"合作商管理",icon:ce["l"],permission:["/partners"]},children:[{path:"/partners/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"a11a"))},meta:{title:"合作商列表",keepAlive:!1,permission:["/partners/index"]},activePath:["/partners/create","/partners/update"]},{path:"/partners/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"5cd2"))},meta:{title:"创建合作商",keepAlive:!1,permission:["/partners/create"]},hidden:!0},{path:"/partners/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"bba5"))},meta:{title:"编辑合作商",keepAlive:!1,permission:["/partners/update"]},hidden:!0},{path:"/partners/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"98fc"))},meta:{title:"订单列表",keepAlive:!1,permission:["/partners/order/index"]}},{path:"/qyt/driver/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"9a97"))},meta:{title:"司机管理",keepAlive:!1,permission:["/qyt/driver/index"]}},{path:"/qyt/invoice/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"b06c"))},meta:{title:"发票管理",keepAlive:!1,permission:["/qyt/invoice/index"]}},{path:"/partners/balance",component:de,redirect:"/partners/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/partners/balance"]},children:[{path:"/partners/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"64a2"))},meta:{title:"余额明细",keepAlive:!1,permission:["/partners/balance/index"]}}]}]},{path:"/content",name:"content",component:de,meta:{title:"内容管理",icon:ce["b"],permission:["/content"]},children:[{path:"/content/article",component:de,redirect:"/content/article/index",meta:{title:"文章管理",keepAlive:!1,permission:["/content/article"]},children:[{path:"/content/article/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"98bf"))},meta:{title:"文章列表",keepAlive:!1,permission:["/content/article/index"]}},{path:"/content/article/category/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3226"))},meta:{title:"文章分类",keepAlive:!1,permission:["/content/article/category/index"]}}]},{path:"/content/files",component:de,redirect:"/content/files/index",meta:{title:"文件库管理",keepAlive:!1,permission:["/content/files"]},children:[{path:"/content/files/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"2b0e8"))},meta:{title:"文件列表",keepAlive:!1,permission:["/content/files/index"]}},{path:"/content/files/group/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"bae3"))},meta:{title:"文件分组",keepAlive:!1,permission:["/content/files/group/index"]}}]},{path:"/content/help/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"d1d6"))},meta:{title:"帮助中心",keepAlive:!1,permission:["/content/help/index"]}}]},{path:"/market",name:"market",component:de,meta:{title:"营销管理",icon:ce["h"],permission:["/market"]},children:[{path:"/market/coupon",component:de,redirect:"/market/coupon/index",meta:{title:"优惠券",keepAlive:!1,permission:["/market/coupon"]},children:[{path:"/market/coupon/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"164a"))},meta:{title:"优惠券列表",keepAlive:!1,permission:["/market/coupon/index"]},activePath:["/market/coupon/create","/market/coupon/update"]},{path:"/market/coupon/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"c24e"))},meta:{title:"创建优惠券",keepAlive:!1,permission:["/market/coupon/create"]},hidden:!0},{path:"/market/coupon/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"0b60"))},meta:{title:"编辑优惠券",keepAlive:!1,permission:["/market/coupon/update"]},hidden:!0},{path:"/market/coupon/receive/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"3d2f"))},meta:{title:"领券记录",keepAlive:!1,permission:["/market/coupon/receive/index"]}}]},{path:"/market/recharge",component:de,redirect:"/market/recharge/setting",meta:{title:"会员充值",keepAlive:!1,permission:["/market/recharge"]},children:[{path:"/market/recharge/plan/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"6ad7"))},meta:{title:"充值套餐",keepAlive:!1,permission:["/market/recharge/plan/index"]}},{path:"/market/recharge/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"3095"))},meta:{title:"充值设置",keepAlive:!1,permission:["/market/recharge/setting"]}}]},{path:"/market/share",component:de,redirect:"/market/share/setting",meta:{title:"余额分享",keepAlive:!1,permission:["/market/share"]},children:[{path:"/market/share/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"6801"))},meta:{title:"分享设置",keepAlive:!1,permission:["/market/share/setting"]}}]},{path:"/market/exchange",component:de,redirect:"/market/exchange/setting",meta:{title:"实体卡兑换",keepAlive:!1,permission:["/market/exchange"]},children:[{path:"/market/exchange/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"7ec7"))},meta:{title:"兑换设置",keepAlive:!1,permission:["/market/exchange/setting"]}}]}]},{path:"/client",name:"client",component:de,meta:{title:"客户端",keepAlive:!0,icon:ce["i"],iconStyle:{fontSize:"17.2px",color:"#36b313"},permission:["/client"]},children:[{path:"/client/register",component:function(){return n.e("client").then(n.bind(null,"8c72"))},meta:{title:"注册设置",keepAlive:!1,permission:["/client/register"]}},{path:"/client/wxapp",component:de,redirect:"/client/wxapp/setting",meta:{title:"微信小程序",keepAlive:!1,permission:["/client/wxapp"]},children:[{path:"/client/wxapp/setting",component:function(){return n.e("client").then(n.bind(null,"e36a"))},meta:{title:"小程序设置",keepAlive:!1,permission:["/client/wxapp/setting"]}}]},{path:"/client/h5",component:de,redirect:"/client/h5/setting",meta:{title:"H5端",keepAlive:!1,permission:["/client/h5"]},children:[{path:"/client/h5/setting",component:function(){return n.e("client").then(n.bind(null,"2fa9"))},meta:{title:"站点设置",keepAlive:!1,permission:["/client/h5/setting"]}}]}]},{path:"/setting",name:"setting",component:de,redirect:"/setting/store/basic",meta:{title:"设置",icon:ce["k"],permission:["/setting"]},children:[{path:"/setting/trade",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a6b6"))},meta:{title:"参数设置",keepAlive:!1,permission:["/setting/trade"]}},{path:"/qyt/enterprise/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a8bf"))},meta:{title:"企业管理",keepAlive:!1,permission:["/qyt/enterprise/index"]}},{path:"/setting/qyt",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"c7de"))},meta:{title:"企油通对接",keepAlive:!1,permission:["/setting/qyt"]}},{path:"/setting/promotion",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"14b5"))},meta:{title:"分销设置",keepAlive:!1,permission:["/setting/promotion"]}},{path:"/setting/storage",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"c5b8"))},meta:{title:"上传设置",keepAlive:!1,permission:["/setting/storage"]}},{path:"/setting/sms",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a85e"))},meta:{title:"短信通知",keepAlive:!1,permission:["/setting/sms"]}},{path:"/setting/delivery",component:de,redirect:"/setting/delivery/setting",meta:{title:"配送设置",keepAlive:!1,permission:["/setting/delivery"]},children:[{path:"/setting/delivery/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"0b43a"))},meta:{title:"配送方式",keepAlive:!1,permission:["/setting/delivery/setting"]}},{path:"/setting/delivery/template/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"96ef"))},meta:{title:"运费模板",keepAlive:!1,permission:["/setting/delivery/template/index"]},activePath:["/setting/delivery/template/create","/setting/delivery/template/update"]},{path:"/setting/delivery/template/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"61e5"))},meta:{title:"新增运费模板",keepAlive:!1,permission:["/setting/delivery/template/create"]},hidden:!0},{path:"/setting/delivery/template/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3833"))},meta:{title:"编辑运费模板",keepAlive:!1,permission:["/setting/delivery/template/update"]},hidden:!0},{path:"/setting/delivery/express/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"f4eb"))},meta:{title:"物流公司",keepAlive:!1,permission:["/setting/delivery/express/index"]}}]},{path:"/setting/other",component:de,redirect:"/setting/other/clear",meta:{title:"其他设置",keepAlive:!1,permission:["/setting/other"]},children:[{path:"/setting/other/clear",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"67ac"))},meta:{title:"清理缓存",keepAlive:!1,permission:["/setting/other/clear"]}}]}]}]},{name:"renew",path:"/manage",redirect:"/manage/renew",component:X,hidden:!0,meta:{title:"更新账户信息",keepAlive:!1},children:[{path:"renew",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"9dce"))}}]},{path:"*",redirect:"/404",hidden:!0}],ue=[{path:"/passport",component:m,redirect:"/passport/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return n.e("passport").then(n.bind(null,"cedc"))}}]},{path:"/404",component:function(){return n.e("exception").then(n.bind(null,"cc89"))}},{path:"/pay",component:function(){return n.e("exception").then(n.bind(null,"6ae7"))}}]},e819:function(e,t,n){"use strict";t["a"]={title:"Ant Design Pro",primaryColor:"#1890FF",navTheme:"dark",layout:"sidemenu",contentWidth:"Fixed",fixedHeader:!0,fixSiderbar:!0,autoHideHeader:!1,colorWeak:!1,multiTab:!1,production:!0}},e9ba:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M1024 701v-504q0-53-26.5-98t-72-71.5-98.5-26.5h-630q-53 0-98.5 26.5t-72 71.5-26.5 98v630q0 54 26.5 99t72 71.5 98.5 26.5h630q47 0 88.5-21t69-58 36.5-83l-6-2q-276-120-391-174-71 86-143 127-81 46-182 46-69 0-123-26-53-26-80-70.5t-21-97.5q4-43 25-78 28-45 79-68 64-27 160-18 65 6 119 19 33 8 100 31l31 10q35-64 57-139h-398v-40h197v-70h-240v-44h240v-102l1-4q2-5 6.5-8.5t12.5-3.5h98v118h256v44h-256v70h209q-29 116-85 213 38 14 191 61l146 45M284 792q-69 0-111-26-35-21-48-56-12-28-7-52 5-21 20-41 18-22 45-35 31-15 70-15 70 0 139 19 66 18 145 56-55 72-119 110-66 40-134 40z"}}]})}},eb1e:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595299959859",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2081","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M286.72 290.133c17.067 0 30.72-13.653 30.72-34.133 0-105.813 95.573-170.667 191.147-170.667 92.16 0 194.56 71.68 194.56 170.667 0 20.48 13.653 34.133 30.72 34.133s30.72-13.653 30.72-34.133c0-139.947-136.534-238.933-256-238.933-122.88 0-256 88.746-256 238.933 3.413 17.067 17.066 34.133 34.133 34.133z m648.533 102.4c-17.066-20.48-44.373-34.133-71.68-34.133H160.427c-27.307 0-54.614 10.24-71.68 34.133-17.067 20.48-23.894 47.787-20.48 75.094L143.36 911.36c10.24 54.613 61.44 98.987 116.053 98.987h505.174c54.613 0 105.813-40.96 116.053-98.987l75.093-443.733c3.414-27.307-3.413-54.614-20.48-75.094z m-645.12 204.8c-27.306 0-51.2-23.893-51.2-51.2s23.894-51.2 51.2-51.2 51.2 23.894 51.2 51.2-23.893 51.2-51.2 51.2z m443.734 0c-27.307 0-51.2-23.893-51.2-51.2s23.893-51.2 51.2-51.2 51.2 23.894 51.2 51.2-23.894 51.2-51.2 51.2z","p-id":"2082"}}]})}},f544:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return l}));var a=n("b775"),r={info:"/store.user/info",list:"/store.user/list",add:"/store.user/add",edit:"/store.user/edit",delete:"/store.user/delete",renew:"/store.user/renew"};function o(e){return Object(a["b"])({url:r.info,method:"get",params:e})}function i(e){return Object(a["b"])({url:r.renew,method:"post",data:e})}function s(e){return Object(a["b"])({url:r.list,method:"get",params:e})}function c(e){return Object(a["b"])({url:r.add,method:"post",data:e})}function d(e){return Object(a["b"])({url:r.edit,method:"post",data:e})}function l(e){return Object(a["b"])({url:r.delete,method:"post",data:e})}},fddb:function(e,t,n){}}); \ No newline at end of file diff --git a/server-tp6/public/store/js/app.5559e87a.js.gz b/server-tp6/public/store/js/app.5559e87a.js.gz new file mode 100644 index 0000000..49aff00 Binary files /dev/null and b/server-tp6/public/store/js/app.5559e87a.js.gz differ diff --git a/server-tp6/public/store/js/app.bcc9542b.js b/server-tp6/public/store/js/app.bcc9542b.js deleted file mode 100644 index fd61065..0000000 --- a/server-tp6/public/store/js/app.bcc9542b.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var a,r,s=t[0],c=t[1],d=t[2],l=0,u=[];l0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){t[e]=function(){this.needSyncKeys[e]=!0}})),t}var b={name:"Tree",mixins:[h["a"]],props:Object(u["t"])({prefixCls:i["a"].string,tabIndex:i["a"].oneOfType([i["a"].string,i["a"].number]),children:i["a"].any,treeData:i["a"].array,showLine:i["a"].bool,showIcon:i["a"].bool,icon:i["a"].oneOfType([i["a"].object,i["a"].func]),focusable:i["a"].bool,selectable:i["a"].bool,disabled:i["a"].bool,multiple:i["a"].bool,checkable:i["a"].oneOfType([i["a"].object,i["a"].bool]),checkStrictly:i["a"].bool,draggable:i["a"].bool,defaultExpandParent:i["a"].bool,autoExpandParent:i["a"].bool,defaultExpandAll:i["a"].bool,defaultExpandedKeys:i["a"].array,expandedKeys:i["a"].array,defaultCheckedKeys:i["a"].array,checkedKeys:i["a"].oneOfType([i["a"].array,i["a"].object]),defaultSelectedKeys:i["a"].array,selectedKeys:i["a"].array,loadData:i["a"].func,loadedKeys:i["a"].array,filterTreeNode:i["a"].func,openTransitionName:i["a"].string,openAnimation:i["a"].oneOfType([i["a"].string,i["a"].object]),switcherIcon:i["a"].any,_propsSymbol:i["a"].any},{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]}),data:function(){l()(this.$props.__propsSymbol__,"must pass __propsSymbol__"),l()(this.$props.children,"please use children prop replace slots.default"),this.needSyncKeys={},this.domTreeNodes={};var e={_posEntities:new Map,_keyEntities:new Map,_expandedKeys:[],_selectedKeys:[],_checkedKeys:[],_halfCheckedKeys:[],_loadedKeys:[],_loadingKeys:[],_treeNode:[],_prevProps:null,_dragOverNodeKey:"",_dropPosition:null,_dragNodesKeys:[]};return Object(o["a"])(Object(o["a"])({},e),this.getDerivedState(Object(u["l"])(this),e))},provide:function(){return{vcTree:this}},watch:Object(o["a"])(Object(o["a"])({},g(["treeData","children","expandedKeys","autoExpandParent","selectedKeys","checkedKeys","loadedKeys"])),{},{__propsSymbol__:function(){this.setState(this.getDerivedState(Object(u["l"])(this),this.$data)),this.needSyncKeys={}}}),methods:{getDerivedState:function(e,t){var n=t._prevProps,a={_prevProps:Object(o["a"])({},e)},i=this;function s(t){return!n&&t in e||n&&i.needSyncKeys[t]}var c=null;if(s("treeData")?c=Object(f["g"])(this.$createElement,e.treeData):s("children")&&(c=e.children),c){a._treeNode=c;var d=Object(f["h"])(c);a._keyEntities=d.keyEntities}var l,u=a._keyEntities||t._keyEntities;if((s("expandedKeys")||n&&s("autoExpandParent")?a._expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?Object(f["f"])(e.expandedKeys,u):e.expandedKeys:!n&&e.defaultExpandAll?a._expandedKeys=Object(r["a"])(u.keys()):!n&&e.defaultExpandedKeys&&(a._expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(f["f"])(e.defaultExpandedKeys,u):e.defaultExpandedKeys),e.selectable&&(s("selectedKeys")?a._selectedKeys=Object(f["d"])(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(a._selectedKeys=Object(f["d"])(e.defaultSelectedKeys,e))),e.checkable)&&(s("checkedKeys")?l=Object(f["m"])(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?l=Object(f["m"])(e.defaultCheckedKeys)||{}:c&&(l=Object(f["m"])(e.checkedKeys)||{checkedKeys:t._checkedKeys,halfCheckedKeys:t._halfCheckedKeys}),l)){var p=l,h=p.checkedKeys,m=void 0===h?[]:h,g=p.halfCheckedKeys,b=void 0===g?[]:g;if(!e.checkStrictly){var v=Object(f["e"])(m,!0,u);m=v.checkedKeys,b=v.halfCheckedKeys}a._checkedKeys=m,a._halfCheckedKeys=b}return s("loadedKeys")&&(a._loadedKeys=e.loadedKeys),a},onNodeDragStart:function(e,t){var n=this.$data._expandedKeys,a=t.eventKey,r=Object(u["p"])(t).default;this.dragNode=t,this.setState({_dragNodesKeys:Object(f["i"])("function"===typeof r?r():r,t),_expandedKeys:Object(f["b"])(n,a)}),this.__emit("dragstart",{event:e,node:t})},onNodeDragEnter:function(e,t){var n=this,a=this.$data._expandedKeys,r=t.pos,o=t.eventKey;if(this.dragNode&&t.$refs.selectHandle){var i=Object(f["c"])(e,t);this.dragNode.eventKey!==o||0!==i?setTimeout((function(){n.setState({_dragOverNodeKey:o,_dropPosition:i}),n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach((function(e){clearTimeout(n.delayedDragEnterLogic[e])})),n.delayedDragEnterLogic[r]=setTimeout((function(){var r=Object(f["a"])(a,o);Object(u["s"])(n,"expandedKeys")||n.setState({_expandedKeys:r}),n.__emit("dragenter",{event:e,node:t,expandedKeys:r})}),400)}),0):this.setState({_dragOverNodeKey:"",_dropPosition:null})}},onNodeDragOver:function(e,t){var n=t.eventKey,a=this.$data,r=a._dragOverNodeKey,o=a._dropPosition;if(this.dragNode&&n===r&&t.$refs.selectHandle){var i=Object(f["c"])(e,t);if(i===o)return;this.setState({_dropPosition:i})}this.__emit("dragover",{event:e,node:t})},onNodeDragLeave:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragleave",{event:e,node:t})},onNodeDragEnd:function(e,t){this.setState({_dragOverNodeKey:""}),this.__emit("dragend",{event:e,node:t}),this.dragNode=null},onNodeDrop:function(e,t){var n=this.$data,a=n._dragNodesKeys,r=void 0===a?[]:a,o=n._dropPosition,i=t.eventKey,s=t.pos;if(this.setState({_dragOverNodeKey:""}),-1===r.indexOf(i)){var c=Object(f["n"])(s),d={event:e,node:t,dragNode:this.dragNode,dragNodesKeys:r.slice(),dropPosition:o+Number(c[c.length-1]),dropToGap:!1};0!==o&&(d.dropToGap=!0),this.__emit("drop",d),this.dragNode=null}else l()(!1,"Can not drop to dragNode(include it's children node)")},onNodeClick:function(e,t){this.__emit("click",e,t)},onNodeDoubleClick:function(e,t){this.__emit("dblclick",e,t)},onNodeSelect:function(e,t){var n=this.$data._selectedKeys,a=this.$data._keyEntities,r=this.$props.multiple,o=Object(u["l"])(t),i=o.selected,s=o.eventKey,c=!i;n=c?r?Object(f["a"])(n,s):[s]:Object(f["b"])(n,s);var d=n.map((function(e){var t=a.get(e);return t?t.node:null})).filter((function(e){return e}));this.setUncontrolledState({_selectedKeys:n});var l={event:"select",selected:c,node:t,selectedNodes:d,nativeEvent:e};this.__emit("update:selectedKeys",n),this.__emit("select",n,l)},getCheckedKeys:function(){return this.$data._checkedKeys},clearExpandedKeys:function(){this.$data._expandedKeys=[]},getHalfCheckedKeys:function(){return this.$data._halfCheckedKeys},onNodeCheck:function(e,t,n){var a,r=this.$data,o=r._keyEntities,i=r._checkedKeys,s=r._halfCheckedKeys,c=this.$props.checkStrictly,d=Object(u["l"])(t),l=d.eventKey,p={event:"check",node:t,checked:n,nativeEvent:e};if(c){var h=n?Object(f["a"])(i,l):Object(f["b"])(i,l),m=Object(f["b"])(s,l);a={checked:h,halfChecked:m},p.checkedNodes=h.map((function(e){return o.get(e)})).filter((function(e){return e})).map((function(e){return e.node})),this.setUncontrolledState({_checkedKeys:h})}else{var g=Object(f["e"])([l],n,o,{checkedKeys:i,halfCheckedKeys:s}),b=g.checkedKeys,v=g.halfCheckedKeys;a=b,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,b.forEach((function(e){var t=o.get(e);if(t){var n=t.node,a=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:a})}})),this.setUncontrolledState({_checkedKeys:b,_halfCheckedKeys:v})}this.__emit("check",a,p)},onNodeLoad:function(e){var t=this;return new Promise((function(n){t.setState((function(a){var r=a._loadedKeys,o=void 0===r?[]:r,i=a._loadingKeys,s=void 0===i?[]:i,c=t.$props.loadData,d=Object(u["l"])(e),l=d.eventKey;if(!c||-1!==o.indexOf(l)||-1!==s.indexOf(l))return{};var p=c(e);return p.then((function(){var a=t.$data,r=a._loadedKeys,o=a._loadingKeys,i=Object(f["a"])(r,l),s=Object(f["b"])(o,l);t.__emit("load",i,{event:"load",node:e}),t.setUncontrolledState({_loadedKeys:i}),t.setState({_loadingKeys:s}),n()})),{_loadingKeys:Object(f["a"])(s,l)}}))}))},onNodeExpand:function(e,t){var n=this,a=this.$data._expandedKeys,r=this.$props.loadData,o=Object(u["l"])(t),i=o.eventKey,s=o.expanded,c=a.indexOf(i),d=!s;if(l()(s&&-1!==c||!s&&-1===c,"Expand state not sync with index check"),a=d?Object(f["a"])(a,i):Object(f["b"])(a,i),this.setUncontrolledState({_expandedKeys:a}),this.__emit("expand",a,{node:t,expanded:d,nativeEvent:e}),this.__emit("update:expandedKeys",a),d&&r){var p=this.onNodeLoad(t);return p?p.then((function(){n.setUncontrolledState({_expandedKeys:a})})):null}return null},onNodeMouseEnter:function(e,t){this.__emit("mouseenter",{event:e,node:t})},onNodeMouseLeave:function(e,t){this.__emit("mouseleave",{event:e,node:t})},onNodeContextMenu:function(e,t){e.preventDefault(),this.__emit("rightClick",{event:e,node:t})},setUncontrolledState:function(e){var t=!1,n={},a=Object(u["l"])(this);Object.keys(e).forEach((function(r){r.replace("_","")in a||(t=!0,n[r]=e[r])})),t&&this.setState(n)},registerTreeNode:function(e,t){t?this.domTreeNodes[e]=t:delete this.domTreeNodes[e]},isKeyChecked:function(e){var t=this.$data._checkedKeys,n=void 0===t?[]:t;return-1!==n.indexOf(e)},renderTreeNode:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=this.$data,r=a._keyEntities,o=a._expandedKeys,i=void 0===o?[]:o,s=a._selectedKeys,c=void 0===s?[]:s,d=a._halfCheckedKeys,l=void 0===d?[]:d,u=a._loadedKeys,h=void 0===u?[]:u,m=a._loadingKeys,g=void 0===m?[]:m,b=a._dragOverNodeKey,v=a._dropPosition,y=Object(f["k"])(n,t),k=e.key;return k||void 0!==k&&null!==k||(k=y),r.get(k)?Object(p["a"])(e,{props:{eventKey:k,expanded:-1!==i.indexOf(k),selected:-1!==c.indexOf(k),loaded:-1!==h.indexOf(k),loading:-1!==g.indexOf(k),checked:this.isKeyChecked(k),halfChecked:-1!==l.indexOf(k),pos:y,dragOver:b===k&&0===v,dragOverGapTop:b===k&&-1===v,dragOverGapBottom:b===k&&1===v},key:k}):(Object(f["o"])(),null)}},render:function(){var e=this,t=arguments[0],n=this.$data._treeNode,r=this.$props,o=r.prefixCls,i=r.focusable,s=r.showLine,d=r.tabIndex,l=void 0===d?0:d;return t("ul",{class:c()(o,Object(a["a"])({},"".concat(o,"-show-line"),s)),attrs:{role:"tree",unselectable:"on",tabIndex:i?l:null}},[Object(f["l"])(n,(function(t,n){return e.renderTreeNode(t,n)}))])}},v=Object(m["a"])(b),y=n("2b5d");b.TreeNode=y["a"],v.TreeNode=y["a"];t["default"]=v},"04b3":function(e,t,n){"use strict";var a=n("a1d4"),r=n.n(a);n.d(t,"f",(function(){return r.a}));var o=n("5b96"),i=n.n(o);n.d(t,"g",(function(){return i.a}));var s=n("eb1e"),c=n.n(s);n.d(t,"c",(function(){return c.a}));var d=n("559f"),l=n.n(d);n.d(t,"j",(function(){return l.a}));var u=n("3a93"),p=n.n(u);n.d(t,"b",(function(){return p.a}));var h=n("38d8"),m=n.n(h);n.d(t,"k",(function(){return m.a}));var f=n("1a79"),g=n.n(f);n.d(t,"l",(function(){return g.a}));var b=n("401b"),v=n.n(b);n.d(t,"m",(function(){return v.a}));var y=n("524c"),k=n.n(y);n.d(t,"h",(function(){return k.a}));n("60fa"),n("8484"),n("6fb3");var x=n("7e43"),O=n.n(x);n.d(t,"i",(function(){return O.a}));var w=n("0787"),j=n.n(w);n.d(t,"e",(function(){return j.a}));var C=n("ba93"),_=n.n(C);n.d(t,"d",(function(){return _.a}));var M=n("6052"),S=n.n(M);n.d(t,"a",(function(){return S.a}));n("e9ba"),n("7d57"),n("36fa")},"0787":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1653368449777",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"17693",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M794.112 0H231.936C104.96 0 0 104.96 0 231.424v558.08C0 919.04 104.96 1024 231.936 1024h559.616c129.536 0 231.936-104.96 231.936-231.424V231.424c3.072-126.464-102.4-231.424-229.376-231.424z m-378.88 675.328c-34.304 0-60.928-7.168-92.672-12.288l-95.232 44.032 27.136-80.384c-68.608-46.08-107.52-107.52-107.52-180.224 0-126.976 119.808-226.816 268.8-226.816 132.096 0 246.784 80.384 271.36 187.904-7.168 0-16.896-2.56-27.136-2.56-126.976 0-227.328 95.232-227.328 211.968 0 19.456 2.56 38.912 7.168 56.32-7.168-0.512-16.896 2.048-24.576 2.048zM808.96 768l19.456 66.048-73.216-38.912c-27.136 7.168-53.76 12.288-80.896 12.288-126.976 0-227.328-87.552-227.328-195.072s100.352-195.072 227.328-195.072c119.808 0 227.328 87.552 227.328 195.072 2.56 62.976-38.912 114.176-92.672 155.648zM361.472 365.568c0 19.456-16.896 36.352-36.864 36.352s-36.864-16.896-36.864-36.352 16.896-36.352 36.864-36.352 36.864 16.896 36.864 36.352z m115.2 0c0-19.456 16.896-36.352 36.864-36.352 19.456 0 36.864 16.896 36.864 36.352s-16.896 36.352-36.864 36.352c-22.528 0.512-36.864-14.336-36.864-36.352z m307.712 187.904c0 16.896-14.848 29.184-29.184 29.184-16.896 0-29.184-14.848-29.184-29.184 0-16.896 14.848-29.184 29.184-29.184 14.848 0 29.184 12.288 29.184 29.184z m-148.992 0c0 16.896-14.848 29.184-29.184 29.184-14.848 0-29.184-14.848-29.184-29.184 0-14.848 14.848-29.184 29.184-29.184 14.336 0 29.184 12.288 29.184 29.184z","p-id":"17694"}}]})}},"1a79":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599016452086",class:"icon",viewBox:"0 0 1147 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9426","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"560.05859375",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1038.020219 178.928351 106.89802 178.928351 10.24 431.8492C10.24 507.56499 73.069837 570.38696 150.394994 570.38696 227.71386 570.38696 292.153063 509.174358 292.153063 431.8492 292.153063 507.56499 354.9829 570.38696 432.308058 570.38696 509.633217 570.38696 574.066127 509.174358 574.066127 431.8492 574.066127 507.56499 636.895965 570.38696 714.221122 570.38696 791.547853 570.38696 854.369823 509.174358 854.369823 431.8492 854.369823 507.56499 917.199661 570.38696 996.135758 570.38696 1073.460916 570.38696 1137.90012 509.174358 1137.90012 431.8492L1038.020219 178.928351 1038.020219 178.928351ZM960.69506 613.883935 960.69506 936.073665 187.445059 936.073665 187.445059 613.883935 106.89802 613.883935 106.89802 952.186218C106.89802 981.180006 139.118409 1016.619131 168.112197 1016.619131L978.418557 1016.619131C1007.410772 1016.619131 1039.631159 981.180006 1039.631159 952.186218L1039.631159 613.883935 960.69506 613.883935 960.69506 613.883935ZM1038.020219 177.318984 1038.020219 177.318984 1041.240527 180.134984 1038.020219 177.318984 1038.020219 177.318984ZM171.330932 114.495439 976.801323 114.495439C1004.192035 114.495439 1025.134266 93.553209 1025.134266 66.16407 1025.134266 38.779649 1004.192035 17.837419 976.801323 17.837419L171.330932 17.837419C143.948085 17.837419 123.005855 38.779649 123.005855 66.16407 123.005855 93.553209 143.948085 114.495439 171.330932 114.495439L171.330932 114.495439Z","p-id":"9427"}}]})}},"1d4b":function(e,t,n){"use strict";var a=n("5530"),r=(n("d3b7"),n("ed3b"));t["a"]=function(e){function t(t,n,o){var i=this;if(o=o||{},i&&i._isVue){var s=document.querySelector("body>div[type=dialog]");s||(s=document.createElement("div"),s.setAttribute("type","dialog"),document.body.appendChild(s));var c=function(e,t){if(e instanceof Function){var n=e();n instanceof Promise?n.then((function(e){e&&t()})):n&&t()}else e||t()},d=new e({data:function(){return{visible:!0}},router:i.$router,store:i.$store,mounted:function(){var e=this;this.$on("close",(function(t){e.handleClose()}))},methods:{handleClose:function(){var e=this;c(this.$refs._component.onCancel,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("cancel"),d.$destroy()}))},handleOk:function(){var e=this;c(this.$refs._component.onOK||this.$refs._component.onOk,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("ok"),d.$destroy()}))}},render:function(e){var i=this,s=o&&o.model;s&&delete o.model;var c=Object.assign({},s&&{model:s}||{},{attrs:Object.assign({},Object(a["a"])({},o.attrs||o),{visible:this.visible}),on:Object.assign({},Object(a["a"])({},o.on||o),{ok:function(){i.handleOk()},cancel:function(){i.handleClose()}})}),d=n&&n.model;d&&delete n.model;var l=Object.assign({},d&&{model:d}||{},{ref:"_component",attrs:Object.assign({},Object(a["a"])({},n&&n.attrs||n)),on:Object.assign({},Object(a["a"])({},n&&n.on||n))});return e(r["a"],c,[e(t,l)])}}).$mount(s)}}Object.defineProperty(e.prototype,"$dialog",{get:function(){return function(){t.apply(this,arguments)}}})}},"24e1":function(e,t,n){"use strict";n("7257")},"2b5d":function(e,t,n){"use strict";var a=n("ade3"),r=n("2638"),o=n.n(r),i=n("53ca"),s=n("5530"),c=(n("99af"),n("4d91")),d=n("4d26"),l=n.n(d),u=n("d22e"),p=n("daa3"),h=n("b488"),m=n("94eb");function f(){}var g="open",b="close",v="---",y={name:"TreeNode",mixins:[h["a"]],__ANT_TREE_NODE:!0,props:Object(p["t"])({eventKey:c["a"].oneOfType([c["a"].string,c["a"].number]),prefixCls:c["a"].string,root:c["a"].object,expanded:c["a"].bool,selected:c["a"].bool,checked:c["a"].bool,loaded:c["a"].bool,loading:c["a"].bool,halfChecked:c["a"].bool,title:c["a"].any,pos:c["a"].string,dragOver:c["a"].bool,dragOverGapTop:c["a"].bool,dragOverGapBottom:c["a"].bool,isLeaf:c["a"].bool,checkable:c["a"].bool,selectable:c["a"].bool,disabled:c["a"].bool,disableCheckbox:c["a"].bool,icon:c["a"].any,dataRef:c["a"].object,switcherIcon:c["a"].any,label:c["a"].any,value:c["a"].any},{}),data:function(){return{dragNodeHighlight:!1}},inject:{vcTree:{default:function(){return{}}},vcTreeNode:{default:function(){return{}}}},provide:function(){return{vcTreeNode:this}},mounted:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;this.syncLoadData(this.$props),t&&t(e,this)},updated:function(){this.syncLoadData(this.$props)},beforeDestroy:function(){var e=this.eventKey,t=this.vcTree.registerTreeNode;t&&t(e,null)},methods:{onSelectorClick:function(e){var t=this.vcTree.onNodeClick;t(e,this),this.isSelectable()?this.onSelect(e):this.onCheck(e)},onSelectorDoubleClick:function(e){var t=this.vcTree.onNodeDoubleClick;t(e,this)},onSelect:function(e){if(!this.isDisabled()){var t=this.vcTree.onNodeSelect;e.preventDefault(),t(e,this)}},onCheck:function(e){if(!this.isDisabled()){var t=this.disableCheckbox,n=this.checked,a=this.vcTree.onNodeCheck;if(this.isCheckable()&&!t){e.preventDefault();var r=!n;a(e,this,r)}}},onMouseEnter:function(e){var t=this.vcTree.onNodeMouseEnter;t(e,this)},onMouseLeave:function(e){var t=this.vcTree.onNodeMouseLeave;t(e,this)},onContextMenu:function(e){var t=this.vcTree.onNodeContextMenu;t(e,this)},onDragStart:function(e){var t=this.vcTree.onNodeDragStart;e.stopPropagation(),this.setState({dragNodeHighlight:!0}),t(e,this);try{e.dataTransfer.setData("text/plain","")}catch(n){}},onDragEnter:function(e){var t=this.vcTree.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragOver:function(e){var t=this.vcTree.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,this)},onDragLeave:function(e){var t=this.vcTree.onNodeDragLeave;e.stopPropagation(),t(e,this)},onDragEnd:function(e){var t=this.vcTree.onNodeDragEnd;e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},onDrop:function(e){var t=this.vcTree.onNodeDrop;e.preventDefault(),e.stopPropagation(),this.setState({dragNodeHighlight:!1}),t(e,this)},onExpand:function(e){var t=this.vcTree.onNodeExpand;t(e,this)},getNodeChildren:function(){var e=this.$slots.default,t=Object(p["c"])(e),n=Object(u["j"])(t);return t.length!==n.length&&Object(u["o"])(),n},getNodeState:function(){var e=this.expanded;return this.isLeaf2()?null:e?g:b},isLeaf2:function(){var e=this.isLeaf,t=this.loaded,n=this.vcTree.loadData,a=0!==this.getNodeChildren().length;return!1!==e&&(e||!n&&!a||n&&t&&!a)},isDisabled:function(){var e=this.disabled,t=this.vcTree.disabled;return!1!==e&&!(!t&&!e)},isCheckable:function(){var e=this.$props.checkable,t=this.vcTree.checkable;return!(!t||!1===e)&&t},syncLoadData:function(e){var t=e.expanded,n=e.loading,a=e.loaded,r=this.vcTree,o=r.loadData,i=r.onNodeLoad;if(!n&&o&&t&&!this.isLeaf2()){var s=0!==this.getNodeChildren().length;s||a||i(this)}},isSelectable:function(){var e=this.selectable,t=this.vcTree.selectable;return"boolean"===typeof e?e:t},renderSwitcher:function(){var e=this.$createElement,t=this.expanded,n=this.vcTree.prefixCls,a=Object(p["g"])(this,"switcherIcon",{},!1)||Object(p["g"])(this.vcTree,"switcherIcon",{},!1);if(this.isLeaf2())return e("span",{key:"switcher",class:l()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},["function"===typeof a?a(Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),{},{isLeaf:!0})):a]);var r=l()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?g:b));return e("span",{key:"switcher",on:{click:this.onExpand},class:r},["function"===typeof a?a(Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),{},{isLeaf:!1})):a])},renderCheckbox:function(){var e=this.$createElement,t=this.checked,n=this.halfChecked,a=this.disableCheckbox,r=this.vcTree.prefixCls,o=this.isDisabled(),i=this.isCheckable();if(!i)return null;var s="boolean"!==typeof i?i:null;return e("span",{key:"checkbox",class:l()("".concat(r,"-checkbox"),t&&"".concat(r,"-checkbox-checked"),!t&&n&&"".concat(r,"-checkbox-indeterminate"),(o||a)&&"".concat(r,"-checkbox-disabled")),on:{click:this.onCheck}},[s])},renderIcon:function(){var e=this.$createElement,t=this.loading,n=this.vcTree.prefixCls;return e("span",{key:"icon",class:l()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(this.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},renderSelector:function(e){var t,n=this.selected,a=this.loading,r=this.dragNodeHighlight,o=Object(p["g"])(this,"icon",{},!1),i=this.vcTree,c=i.prefixCls,d=i.showIcon,u=i.icon,h=i.draggable,m=i.loadData,g=this.isDisabled(),b=Object(p["g"])(this,"title",{},!1),y="".concat(c,"-node-content-wrapper");if(d){var k=o||u;t=k?e("span",{class:l()("".concat(c,"-iconEle"),"".concat(c,"-icon__customize"))},["function"===typeof k?k(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),e):k]):this.renderIcon()}else m&&a&&(t=this.renderIcon());var x=b,O=e("span",{class:"".concat(c,"-title")},x?["function"===typeof x?x(Object(s["a"])(Object(s["a"])({},this.$props),this.$props.dataRef),e):x]:[v]);return e("span",{key:"selector",ref:"selectHandle",attrs:{title:"string"===typeof b?b:"",draggable:!g&&h||void 0,"aria-grabbed":!g&&h||void 0},class:l()("".concat(y),"".concat(y,"-").concat(this.getNodeState()||"normal"),!g&&(n||r)&&"".concat(c,"-node-selected"),!g&&h&&"draggable"),on:{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave,contextmenu:this.onContextMenu,click:this.onSelectorClick,dblclick:this.onSelectorDoubleClick,dragstart:h?this.onDragStart:f}},[t,O])},renderChildren:function(){var e=this.$createElement,t=this.expanded,n=this.pos,a=this.vcTree,r=a.prefixCls,c=a.openTransitionName,d=a.openAnimation,p=a.renderTreeNode,h={};c?h=Object(m["a"])(c):"object"===Object(i["a"])(d)&&(h=Object(s["a"])({},d),h.props=Object(s["a"])({css:!1},h.props));var f,g=this.getNodeChildren();return 0===g.length?null:(t&&(f=e("ul",{class:l()("".concat(r,"-child-tree"),t&&"".concat(r,"-child-tree-open")),attrs:{"data-expanded":t,role:"group"}},[Object(u["l"])(g,(function(e,t){return p(e,t,n)}))])),e("transition",o()([{},h]),[f]))}},render:function(e){var t,n=this.$props,r=n.dragOver,o=n.dragOverGapTop,i=n.dragOverGapBottom,s=n.isLeaf,c=n.expanded,d=n.selected,l=n.checked,u=n.halfChecked,p=n.loading,h=this.vcTree,m=h.prefixCls,g=h.filterTreeNode,b=h.draggable,v=this.isDisabled();return e("li",{class:(t={},Object(a["a"])(t,"".concat(m,"-treenode-disabled"),v),Object(a["a"])(t,"".concat(m,"-treenode-switcher-").concat(c?"open":"close"),!s),Object(a["a"])(t,"".concat(m,"-treenode-checkbox-checked"),l),Object(a["a"])(t,"".concat(m,"-treenode-checkbox-indeterminate"),u),Object(a["a"])(t,"".concat(m,"-treenode-selected"),d),Object(a["a"])(t,"".concat(m,"-treenode-loading"),p),Object(a["a"])(t,"drag-over",!v&&r),Object(a["a"])(t,"drag-over-gap-top",!v&&o),Object(a["a"])(t,"drag-over-gap-bottom",!v&&i),Object(a["a"])(t,"filter-node",g&&g(this)),t),attrs:{role:"treeitem"},on:{dragenter:b?this.onDragEnter:f,dragover:b?this.onDragOver:f,dragleave:b?this.onDragLeave:f,drop:b?this.onDrop:f,dragend:b?this.onDragEnd:f}},[this.renderSwitcher(),this.renderCheckbox(),this.renderSelector(e),this.renderChildren()])},isTreeNode:1};t["a"]=y},"2cb7":function(e,t,n){},"33ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n("b775"),r={info:"/store/info",update:"/store/update"};function o(e){return Object(a["b"])({url:r.info,method:"get",params:e})}function i(e){return Object(a["b"])({url:r.update,method:"post",data:e})}},"36fa":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M783 0h-542q-66 0-121 32.5t-87.5 87.5-32.5 121v542q0 66 32.5 121t87.5 87.5 121 32.5h542q66 0 121-32.5t87.5-87.5 32.5-121v-542q0-66-32.5-121t-87.5-87.5-121-32.5M512 785q-56 0-109-15-16 3-30 9l-67 42q-30 20-19-15l14-53q2-15-2-31-62-41-97-101-36-61-36-131 0-79 47-148 46-67 124-106 81-40 175-40 86 0 161 34 73 33 121 90l-322 154q-18 10-34.5 10t-32.5-15l-52-46q-35-10-25 23l56 136q10 16 25 18t38-14l374-228q37 62 37 132 0 80-47 149-46 67-124 106-81 40-175 40z"}}]})}},"38d8":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1598326995472",class:"icon",viewBox:"0 0 1152 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9426","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"562.5",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1146.496 435.392c-4.512-23.808-28.64-48-53.696-53.376l-18.72-4.064c-44-12.64-83.008-40.288-107.808-80.992a169.184 169.184 0 0 1-19.84-130.08l5.856-16.704c7.456-23.136-2.24-55.072-21.888-70.944 0 0-17.6-14.144-67.232-41.376-49.632-27.008-71.04-34.496-71.04-34.496-24.128-8.352-57.984-0.416-75.552 17.376l-13.088 13.28c-33.376 30.016-78.272 48.224-127.872 48.224s-94.976-18.432-128.352-48.64l-12.64-12.864c-17.376-17.792-51.424-25.728-75.552-17.344 0 0-21.664 7.52-71.264 34.496-49.632 27.424-66.976 41.568-66.976 41.568-19.616 15.648-29.312 47.36-21.888 70.72l5.408 16.928c10.592 42.656 4.96 88.928-19.84 129.888s-64.288 68.8-108.48 81.216l-18.048 3.84c-24.8 5.376-49.184 29.376-53.696 53.376 0 0-4.064 21.44-4.064 75.872s4.064 75.872 4.064 75.872c4.512 24 28.64 48 53.696 53.376l17.6 3.872c44.192 12.416 83.904 40.288 108.704 81.44a169.056 169.056 0 0 1 19.84 130.08l-5.184 16.512c-7.456 23.136 2.24 55.072 21.888 70.944 0 0 17.6 14.144 67.232 41.376s71.04 34.496 71.04 34.496c24.128 8.352 57.984 0.416 75.584-17.376l12.416-12.64c33.6-30.208 78.72-48.64 128.576-48.64s95.168 18.656 128.576 48.864l12.416 12.64c17.376 17.792 51.424 25.728 75.552 17.344 0 0 21.664-7.488 71.264-34.496 49.632-27.232 66.976-41.376 66.976-41.376 19.616-15.648 29.312-47.584 21.888-70.944l-5.408-17.152a168.736 168.736 0 0 1 19.84-129.44c24.8-40.928 64.512-69.024 108.704-81.44l17.6-3.872c24.8-5.344 49.184-29.344 53.696-53.376 0 0 4.064-21.44 4.064-75.872-0.224-54.656-4.288-76.064-4.288-76.064z m-570.88 293.824c-126.528 0-229.408-97.504-229.408-217.952 0-120.224 102.624-217.76 229.408-217.76 126.528 0 229.376 97.504 229.376 217.952-0.224 120.224-102.848 217.76-229.376 217.76z","p-id":"9427"}}]})}},"3a93":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595829608228",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4042",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M202.24 61.44h619.52c48.64 0 88.746667 40.106667 88.746667 88.746667v707.413333c0 48.64-40.106667 88.746667-88.746667 88.746667H202.24c-48.64 0-88.746667-40.106667-88.746667-88.746667v-708.266667c0.853333-48.64 40.106667-87.893333 88.746667-87.893333z m88.746667 198.826667v88.746666h447.146666V260.266667H290.986667z m0 175.786666v88.746667h447.146666V436.053333H290.986667z m0 178.346667v88.746667h334.506666V614.4H290.986667z","p-id":"4043"}}]})}},"401b":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599184757190",class:"icon",viewBox:"0 0 1027 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1064",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M790.62826087 316.98369565a274.54891304 274.54891304 0 1 1-549.09782609 0 274.54891304 274.54891304 0 0 1 549.09782609 0z m-47.95434783 287.4326087a364.79347826 364.79347826 0 0 1-226.59456521 78.56413043c-84.28695652 0-164.34782609-28.70217391-228.61956522-80.17826087C118.06413043 664.99021739 42.40543478 882.31086957 42.40543478 981.56521739h942.53478261c0-98.37391304-76.24565217-314.16847826-242.29565217-377.11956522z","p-id":"1065"}}]})}},4077:function(e,t,n){},4360:function(e,t,n){"use strict";var a,r=n("2b0e"),o=n("2f62"),i=n("ade3"),s=(n("d3b7"),n("8ded")),c=n.n(s),d=n("9fb0"),l=n("bf0f"),u={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(a={},Object(i["a"])(a,d["c"],(function(e,t){e.sideCollapsed=t,c.a.set(d["c"],t)})),Object(i["a"])(a,d["j"],(function(e,t){e.isMobile=t})),Object(i["a"])(a,d["l"],(function(e,t){e.theme=t,c.a.set(d["l"],t)})),Object(i["a"])(a,d["i"],(function(e,t){e.layout=t,c.a.set(d["i"],t)})),Object(i["a"])(a,d["f"],(function(e,t){e.fixedHeader=t,c.a.set(d["f"],t)})),Object(i["a"])(a,d["g"],(function(e,t){e.fixedSidebar=t,c.a.set(d["g"],t)})),Object(i["a"])(a,d["e"],(function(e,t){e.contentWidth=t,c.a.set(d["e"],t)})),Object(i["a"])(a,d["h"],(function(e,t){e.autoHideHeader=t,c.a.set(d["h"],t)})),Object(i["a"])(a,d["d"],(function(e,t){e.color=t,c.a.set(d["d"],t)})),Object(i["a"])(a,d["m"],(function(e,t){e.weak=t,c.a.set(d["m"],t)})),Object(i["a"])(a,d["b"],(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=n,c.a.set(d["b"],t)})),Object(i["a"])(a,d["k"],(function(e,t){c.a.set(d["k"],t),e.multiTab=t})),a),actions:{setLang:function(e,t){var n=e.commit;return new Promise((function(e,a){n(d["b"],t),Object(l["c"])(t).then((function(){e()})).catch((function(e){a(e)}))}))}}},p=u,h=(n("b0c0"),n("d81d"),n("b775")),m={login:"/passport/login",logout:"/passport/logout"};function f(e){return Object(h["b"])({url:m.login,method:"post",data:e})}function g(){return Object(h["b"])({url:m.logout,method:"post"})}var b=n("f544"),v=n("ca00"),y={state:{token:"",name:"",welcome:"",roles:{},info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var n=t.name,a=t.welcome;e.name=n,e.welcome=a},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var n=e.commit;return new Promise((function(e,a){f(t).then((function(t){var a=t.data;c.a.set(d["a"],a.token,6048e5),n("SET_TOKEN",a.token),e(t)})).catch((function(e){a(e)}))}))},GetInfo:function(e){var t=e.commit,n=window.localStorage.getItem("client_id");return new Promise((function(e,a){Object(b["d"])({client_id:n}).then((function(n){var a=n.data,r=a.roles;r.permissions.map((function(e){e.actionList=[],e.actionEntitySet&&e.actionEntitySet.length>0&&(e.actionList=e.actionEntitySet.map((function(e){return e.action})))})),r.permissionList=r.permissions.map((function(e){return e.permissionId})),t("SET_ROLES",r),t("SET_INFO",a.userInfo),t("SET_NAME",{name:a.userInfo.real_name,welcome:Object(v["i"])()}),e(a)})).catch((function(e){a(e)}))}))},Logout:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){g(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),c.a.remove(d["a"]),e()}))}))},SuperLogin:function(e,t){var n=e.commit;c.a.set(d["a"],t["token"],6048e5),n("SET_TOKEN",t["token"])}}},k=y,x=(n("caad"),n("2532"),n("4de4"),n("159b"),n("99af"),n("d73b"));function O(e,t){if(t.meta&&t.meta.permission){for(var n=!1,a=0,r=e.length;a0&&(e.redirect&&-1!==n.indexOf(e.redirect)||(e.redirect=n[0]))}));var n=null!=e.children?e.children.map((function(e){return e.path})):[];n.length>0&&(e.redirect&&-1!==n.indexOf(e.redirect)||(e.redirect=n[0]))})),_(e)}function _(e){var t=e[0];if(t.children&&t.children.length){var n=t.children[0];t.redirect=null!=n.redirect?n.redirect:n.path}else t.redirect="/404";return e}var M={state:{routers:x["b"],addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=x["b"].concat(t)}},actions:{GenerateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var a=t.roles,r=j(x["a"],a);n("SET_ROUTERS",r),e(r)}))}}},S=M,K={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab},publicConfig:function(){return window.publicConfig}},E=K;r["a"].use(o["a"]);t["a"]=new o["a"].Store({modules:{app:p,user:k,permission:S},state:{},mutations:{},actions:{},getters:E})},"4aa4":function(e,t,n){var a={"./en-US":["743d"],"./en-US.js":["743d"],"./zh-CN":["2807","lang-zh-CN"],"./zh-CN.js":["2807","lang-zh-CN"]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id="4aa4",e.exports=r},"4ceb":function(e,t,n){"use strict";n.d(t,"a",(function(){return re})),n.d(t,"b",(function(){return te})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return Ct})),n.d(t,"f",(function(){return ut}));n("1a62");var a=n("98c5"),r=n("5530"),o=(n("2cb7"),n("4d91")),i=n("d525"),s=n("2638"),c=n.n(s),d=(n("8fb1"),n("0c63")),l=n("53ca"),u=(n("fbd8"),n("55f1")),p=(n("d81d"),n("d3b7"),n("159b"),n("7db0"),n("caad"),n("2532"),n("99af"),n("c428"),u["a"].Item),h=u["a"].SubMenu,m={menus:o["a"].array,collapsed:o["a"].bool.def(!1),theme:o["a"].string.def("dark"),mode:o["a"].string.def("inline"),i18nRender:o["a"].oneOfType([o["a"].func,o["a"].bool]).def(!1)},f=function(e,t,n){if(t&&!t.hidden){t.hideChildrenInMenu=!0;var a=t.children&&!t.hideChildrenInMenu;return a?g(e,t,n):b(e,t,n)}return null},g=function(e,t,n){return e(h,{key:t.path,attrs:{title:e("span",[v(e,t.meta.icon),e("span",[y(e,t.meta.title,n)])])}},[!t.hideChildrenInMenu&&t.children.map((function(t){return f(e,t,n)}))])},b=function(e,t,n){var a=Object.assign({},t.meta),o=a.target||null,i="router-link",s={to:{path:t.path}},c={target:o};return t.hideChildrenInMenu=!0,t.children&&t.hideChildrenInMenu&&t.children.forEach((function(e){e.meta=Object.assign(e.meta,{hidden:!0})})),e(p,{key:t.path},[e(i,{props:Object(r["a"])({},s),attrs:Object(r["a"])({},c)},[v(e,a.icon,a.iconStyle),y(e,a.title,n)])])},v=function(e,t,n){if(void 0===t||"none"===t||null===t)return null;var a={};return"object"===Object(l["a"])(t)?a.component=t:a.type=t,e(d["a"],{style:n,props:Object(r["a"])({},a)})},y=function(e,t,n){return e("span",[n&&n(t)||t])},k={name:"RouteMenu",props:m,data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},render:function(e){var t=this,n=this.mode,a=this.theme,r=this.menus,o=this.i18nRender,i=function(e){if("horizontal"!==n){var a=e.find((function(e){return!t.openKeys.includes(e)}));t.rootSubmenuKeys.includes(a)?t.openKeys=a?[a]:[]:t.openKeys=e}else t.openKeys=e},s={props:{mode:n,theme:a,openKeys:this.openKeys,selectedKeys:this.selectedKeys},on:{select:function(e){t.selectedKeys=e.selectedKeys,t.$emit("select",e)},openChange:i}},d=r.map((function(t){return t.hidden?null:f(e,t,o)}));return e(u["a"],c()([{class:"sub-menu"},s]),[d])},methods:{updateMenu:function(){var e=this.$route.matched.concat();this.selectedKeys=[this.$route.matched[1].path];var t=[];"inline"===this.mode&&e.forEach((function(e){e.path&&t.push(e.path)})),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menus.forEach((function(e){return t.push(e.path)})),t}},created:function(){var e=this;this.$watch("$route",(function(){e.updateMenu()})),this.$watch("collapsed",(function(t){t?(e.cachedOpenKeys=e.openKeys.concat(),e.openKeys=[]):e.openKeys=e.cachedOpenKeys}))},mounted:function(){this.updateMenu()}},x=k,O=x,w=(n("6d2a"),n("9571")),j=(n("b0c0"),n("cd83"),n("4de4"),n("ca00")),C=(n("5805"),{name:"SecondMenu",props:{subMenuTitle:o["a"].string.def(""),subMenus:o["a"].array.def(),collapsed:o["a"].bool.def(!1)},data:function(){return{menuList:[]}},created:function(){this.updateMenu(this.subMenus)},watch:{subMenus:function(e){this.updateMenu(e)}},render:function(e){var t=this;return e("div",{class:"menu-second"},[e("div",{class:"menu-title"},[e("span",[this.subMenuTitle])]),e("ul",{class:"menu-list"},[this.menuList.map((function(e){return t.renderMenuItem(e)}))])])},methods:{updateMenu:function(e){var t=this,n=[];e.forEach((function(e){var a=t.isHasChildren(e),r=[];a&&e.children.forEach((function(e){r.push({title:e.meta.title,path:e.path,hidden:e.hidden,activePath:e.activePath})})),n.push({title:e.meta.title,path:e.path,activePath:e.activePath,hidden:e.hidden,isHasChildren:a,isHideChildren:e.isHideChildren||!1,children:r})})),this.menuList=n},isHasChildren:function(e){var t=void 0!==e.children,n=t?e.children.filter((function(e){return e.hidden})):[];return t&&n.length0&&e(D["a"],c()([{class:"".concat(B,"-tabs"),attrs:{activeKey:r,tabBarExtraContent:i},on:{change:function(e){o&&o(e)}}},s]),[a.map((function(t){return e(D["a"].TabPane,c()([{},t,{attrs:{tab:n(t.tab)},key:t.key}]))}))])},J=function(e,t,n){return t||n?e("div",{class:"".concat(B,"-detail")},[e("div",{class:"".concat(B,"-main")},[e("div",{class:"".concat(B,"-row")},[t&&e("div",{class:"".concat(B,"-content")},[t]),n&&e("div",{class:"".concat(B,"-extraContent")},[n])])])]):null},X=function(e,t,n,a){var o=t.title,i=t.content,s=t.pageHeaderRender,c=t.extra,d=t.extraContent,l=t.breadcrumb,u=t.back,p=Object(T["a"])(t,I);if(s)return s(Object(r["a"])({},t));var h=o;o||!1===o||(h=n.title);var m={breadcrumb:l,extra:c,title:a(h),footer:Z(e,p,a)};return u||(m.backIcon=!1),e(L["a"],{props:Object(r["a"])({},m),on:{back:u||Q}},[J(e,i,d)])},ee={name:"PageHeaderWrapper",props:U,inject:["locale","contentWidth","breadcrumbRender"],render:function(e){var t=this,n=this.$route,a=this.$listeners,o=this.$slots.default,i=Object(q["getComponentFromProp"])(this,"content"),s=Object(q["getComponentFromProp"])(this,"extra"),c=Object(q["getComponentFromProp"])(this,"extraContent"),d=Y(this.$props.route||n),l=this.$props.i18nRender||this.locale||G,u=this.$props.contentWidth||this.contentWidth||!1,p=this.$props.back||a.back,h=p&&function(){p&&p()}||void 0,m=this.$props.tabChange,f=function(e){t.$emit("tabChange",e),m&&m(e)},g={},b=this.$props.breadcrumb;if(!0===b){var v=n.matched.concat().map((function(e){return{path:e.path,breadcrumbName:l(e.meta.title)}})),y=function(e){var t=e.route,n=e.params,a=e.routes,r=(e.paths,e.h);return a.indexOf(t)===a.length-1&&r("span",[t.breadcrumbName])||r("router-link",{attrs:{to:{path:t.path||"/",params:n}}},[t.breadcrumbName])},k=this.breadcrumbRender||y;g={props:{routes:v,itemRender:k}}}else g=b||null;var x=Object(r["a"])(Object(r["a"])({},this.$props),{},{content:i,extra:s,extraContent:c,breadcrumb:g,tabChange:f,back:h});return e("div",{class:"ant-pro-page-header-wrap"},[e("div",{class:"".concat(B,"-page-header-warp")},[e(F,[X(e,x,d,l)])]),o?e(F,{attrs:{contentWidth:u}},[e("div",{class:"".concat(B,"-children-content")},[o])]):null])}},te=ee,ne=(n("9a93"),{links:o["a"].array,copyright:o["a"].any}),ae={name:"GlobalFooter",props:ne,render:function(){var e=arguments[0],t=Object(q["getComponentFromProp"])(this,"copyright"),n=Object(q["getComponentFromProp"])(this,"links"),a=Object(q["hasProp"])(n);return e("footer",{class:"ant-pro-global-footer"},[e("div",{class:"ant-pro-global-footer-links"},[a&&n.map((function(t){return e("a",{key:t.key,attrs:{title:t.key,target:t.blankTarget?"_blank":"_self",href:t.href}},[t.title])}))||n]),t&&e("div",{class:"ant-pro-global-footer-copyright"},[t])])}},re=ae,oe={name:"VueFragment",functional:!0,render:function(e,t){return t.children.length>1?e("div",{},t.children):t.children}},ie=(n("b64b"),n("c68f")),se=n("81a7"),ce=function(e,t){var n=e.slots&&e.slots();return n[t]||e.props[t]},de=function(e){return"function"===typeof e},le={daybreak:"daybreak","#1890ff":"daybreak","#F5222D":"dust","#FA541C":"volcano","#FAAD14":"sunset","#13C2C2":"cyan","#52C41A":"green","#2F54EB":"geekblue","#722ED1":"purple"},ue=function(e){return Object.keys(e).reduce((function(t,n){return t[e[n]]=n,t}),{})};function pe(e){return e&&le[e]?le[e]:e}function he(e){var t=ue(le);return e&&t[e]?t[e]:e}n("90f3"),n("a044");var me=n("b047"),fe=n.n(me),ge={collapsed:o["a"].bool,handleCollapse:o["a"].func,isMobile:o["a"].bool.def(!1),fixedHeader:o["a"].bool.def(!1),logo:o["a"].any,menuRender:o["a"].any,collapsedButtonRender:o["a"].any,rightContentRender:o["a"].any},be="ant-pro-global-header",ve={name:"GlobalHeader",props:ge,inject:["locale"],render:function(e){var t=this.$props,n=t.isMobile,a=t.logo,r=t.rightContentRender;return e("div",{class:be},[n&&e("a",{class:"".concat(be,"-logo"),key:"logo",attrs:{href:"/"}},[K(e,a)]),e("div",{class:be+"-tools"},[this.renderCollapsedButton(),this.renderRefreshButton(),this.renderBreadcrumb(),de(r)&&r(e,this.$props)||r])])},methods:{triggerResizeEvent:fe()((function(){se["a"]&&Object(ie["a"])(window,"resize")})),renderCollapsedButton:function(){var e=this.$createElement,t=this.$props,n=t.collapsed,a=t.collapsedButtonRender,r=void 0===a?function(t){return e(d["a"],{attrs:{type:t?"menu-unfold":"menu-fold"}})}:a,o=t.menuRender;return!1!==r&&!1!==o?e("div",{class:"".concat(be,"-trigger"),on:{click:this.onCollapsed}},[de(r)&&r(n)||r]):null},renderRefreshButton:function(){var e=this.$createElement;return e("span",{class:"ant-pro-global-header-trigger",on:{click:this.onRefresh}},[e(d["a"],{attrs:{type:"reload"}})])},renderBreadcrumb:function(){var e=this.$createElement,t=this.locale,n=this.$route,a=[];if(n.matched.concat().forEach((function(e){e.meta&&e.meta.title&&a.push({path:e.path,breadcrumbName:t(e.meta.title)})})),a.length<=1)return null;var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=["ant-breadcrumb-link"];return n&&a.push("active"),e("span",{class:a},[t.breadcrumbName])},o=[],i=e("span",{class:"ant-breadcrumb-separator"},["/"]);return a.forEach((function(e){var t=a.indexOf(e)===a.length-1;o.push(r(e,t)),!t&&o.push(i)})),e("div",{class:"".concat(be,"-breadcrumb")},[o])},onCollapsed:function(){var e=this.$props,t=e.collapsed,n=e.handleCollapse;n&&n(!t),this.triggerResizeEvent()},onRefresh:function(){window.location.reload()}},beforeDestroy:function(){this.triggerResizeEvent.cancel&&this.triggerResizeEvent.cancel()}},ye=ve,ke=a["a"].Header,xe=Object(r["a"])(Object(r["a"])(Object(r["a"])({},ge),S),{},{isMobile:o["a"].bool.def(!1),collapsed:o["a"].bool,logo:o["a"].any,hasSiderMenu:o["a"].bool,autoHideHeader:o["a"].bool,menuRender:o["a"].any,headerRender:o["a"].any,rightContentRender:o["a"].any,visible:o["a"].bool.def(!0)}),Oe=function(e,t){var n="topmenu"===t.layout,a=800,o=t.contentWidth,i="ant-pro-top-nav-header",s=t.logo,c=t.title,d=t.theme,l=t.isMobile,u=t.headerRender,p=t.rightContentRender,h={theme:d,isTop:n,isMobile:l},m=e(ye,{props:Object(r["a"])({},t)});return n&&!l&&(m=e("div",{class:[i,d]},[e("div",{class:["".concat(i,"-main"),o?"wide":""]},[e("div",{class:"".concat(i,"-left")},[e("div",{class:"".concat(i,"-logo"),key:"logo",attrs:{id:"logo"}},[E(e,{logo:s,title:c,menuHeaderRender:null})])]),e("div",{class:"".concat(i,"-menu"),style:{maxWidth:"".concat(a,"px"),flex:1}},[e(x,{props:Object(r["a"])({},t)})]),de(p)&&p(e,h)||p])])),u?u(e,t):m},we={name:"HeaderView",props:xe,render:function(e){var t=this.$props,n=t.visible,a=t.isMobile,r=t.layout,o=t.collapsed,i=t.fixedHeader,s=t.hasSiderMenu,c=this.$props,d="topmenu"===r,l=i&&s&&!d&&!a,u={"ant-pro-fixed-header":i,"ant-pro-top-menu":d};return n?e(oe,[e(ke,{style:{padding:0,width:l?"calc(100% - ".concat(o?80:160,"px)"):"100%",zIndex:9,right:i?0:void 0},class:u},[Oe(e,c)])]):null}},je=we,Ce=(n("d2a3"),n("4df5")),_e=a["a"].Content,Me={isChildrenLayout:o["a"].bool,location:o["a"].any,contentHeight:o["a"].number,contentWidth:o["a"].bool},Se={name:"WrapContent",props:Me,render:function(e){var t=this.$props,n=t.isChildrenLayout,a=t.contentWidth;return e(_e,[e(Ce["a"],{attrs:{getPopupContainer:function(e,t){return n?e.parentNode():document.body}}},[e("div",{class:"ant-pro-basicLayout-children-content-wrap"},[e(F,{attrs:{contentWidth:a}},[this.$slots.default])])])])}},Ke=Se,Ee={name:"ProConfigProvider",props:{i18nRender:o["a"].any,contentWidth:o["a"].bool,breadcrumbRender:o["a"].func},provide:function(){var e=this;return{locale:e.$props.i18nRender,contentWidth:e.$props.contentWidth,breadcrumbRender:e.$props.breadcrumbRender}},render:function(){var e=this.$scopedSlots,t=this.children||e["default"];return t()}},Ne=Ee,Ae=Object(r["a"])(Object(r["a"])(Object(r["a"])({},S),xe),{},{locale:o["a"].oneOfType([o["a"].string,o["a"].bool]).def("en-US"),breadcrumbRender:o["a"].func,disableMobile:o["a"].bool.def(!1),mediaQuery:o["a"].object.def({}),handleMediaQuery:o["a"].func,footerRender:o["a"].func}),$e={"screen-xs":{maxWidth:575},"screen-sm":{minWidth:576,maxWidth:767},"screen-md":{minWidth:768,maxWidth:991},"screen-lg":{minWidth:992,maxWidth:1199},"screen-xl":{minWidth:1200,maxWidth:1599},"screen-xxl":{minWidth:1600}},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e?t?80:n:0},Te=function(e,t){return!1===t.headerRender?null:e(je,{props:Object(r["a"])({},t)})},De=function(e){return e},Le={name:"BasicLayout",functional:!0,props:Ae,render:function(e,t){var n=t.props,o=t.children,s=n.layout,c=n.isMobile,d=n.collapsed,l=n.siderWidth,u=n.mediaQuery,p=n.handleMediaQuery,h=n.handleCollapse,m=n.contentWidth,f=n.fixSiderbar,g=n.i18nRender,b=void 0===g?De:g,v=ce(t,"footerRender"),y=ce(t,"rightContentRender"),k=ce(t,"collapsedButtonRender"),x=ce(t,"menuHeaderRender"),O=ce(t,"breadcrumbRender"),w="topmenu"===s,j=!w,C=f&&!w&&!c,_=Object(r["a"])(Object(r["a"])({},n),{},{siderWidth:l,hasSiderMenu:j,footerRender:v,menuHeaderRender:x,rightContentRender:y,collapsedButtonRender:k,breadcrumbRender:O});return e(Ne,{attrs:{i18nRender:b,contentWidth:m,breadcrumbRender:O}},[e(i["ContainerQuery"],{attrs:{query:$e},on:{change:p}},[e(a["a"],{class:Object(r["a"])({"ant-pro-basicLayout":!0,"ant-pro-topmenu":w},u)},[Te(e,Object(r["a"])(Object(r["a"])({},_),{},{mode:"horizontal"})),e(P,{props:Object(r["a"])({},_),attrs:{collapsed:d},on:{collapse:h}}),e(a["a"],{class:[s],style:{paddingLeft:j?"".concat(Pe(!!C,d,l),"px"):void 0,minHeight:"100vh"}},[e(Ke,{class:"ant-pro-basicLayout-content",attrs:{contentWidth:m}},[o]),e(a["a"].Footer,[v&&(de(v)&&v(e)||v)])])])])])}},Re=Le,He=(n("6ba6"),n("5efb")),ze=(n("3b18"),n("f64c")),Fe=(n("ab9e"),n("2c92")),qe=(n("fbd6"),n("160c")),Ie=(n("d88f"),n("fe2b")),We=(n("55ec"),n("a79d")),Be=n("41b2"),Ve=n.n(Be),Ue=(n("a7c9"),n("0464")),Ge=(n("9a33"),n("f933")),Ye={value:{type:String,default:null},list:{type:Array,default:null}},Qe="ant-pro-setting-drawer-block-checbox",Ze={props:Ye,inject:["locale"],render:function(e){var t=this,n=this.value,a=this.list,r=this.$props.i18nRender||this.locale||vt,o=a||[{key:"sidemenu",url:"https://gw.alipayobjects.com/zos/antfincdn/XwFOFbLkSM/LCkqqYNmvBEbokSDscrm.svg",title:r("app.setting.sidemenu")},{key:"topmenu",url:"https://gw.alipayobjects.com/zos/antfincdn/URETY8%24STp/KDNDBbriJhLwuqMoxcAr.svg",title:r("app.setting.topmenu")}],i=function(e){t.$emit("change",e)},s={cursor:"not-allowed"};return e("div",{class:Qe,key:n},[o.map((function(t){return e(Ge["a"],{attrs:{title:t.title},key:t.key},[e("div",{class:Qe+"-item",style:t.disable&&s,on:{click:function(){return!t.disable&&i(t.key)}}},[e("img",{attrs:{src:t.url,alt:t.key}}),e("div",{class:Qe+"-selectIcon",style:{display:n===t.key?"block":"none"}},[e(d["a"],{attrs:{type:"check"}})])])])}))])}},Je=Ze,Xe=n("92fa"),et=n.n(Xe),tt=(n("b0cc"),"theme-color"),nt={color:o["a"].string,check:o["a"].bool},at={props:nt,functional:!0,render:function(e,t){var n=t.props,a=n.color,r=n.check,o=t.data;return e("div",et()([o,{style:{backgroundColor:a}}]),[r?e(d["a"],{attrs:{type:"check"}}):null])}},rt={colors:o["a"].array,title:o["a"].string,value:o["a"].string,i18nRender:o["a"].func},ot={props:rt,inject:["locale"],render:function(e){var t=this,n=this.title,a=this.value,r=this.colors,o=void 0===r?[]:r,i=this.$props.i18nRender||this.locale||vt,s=function(e){t.$emit("change",e)};return e("div",{class:tt,ref:"ref"},[e("h3",{class:tt+"-title"},[n]),e("div",{class:tt+"-content"},[o.map((function(t){var n=pe(t.key),r=a===t.key||pe(a)===t.key;return e(Ge["a"],{key:t.color,attrs:{title:n?i("app.setting.themecolor."+n):t.key}},[e(at,{class:tt+"-block",attrs:{color:t.color,check:r},on:{click:function(){return s(t.key)}}})])}))])])}},it=ot,st=(n("2ef0f"),n("9839")),ct=function(e,t){var n=Ve()({},t.action);return e(Ge["a"],{attrs:{title:t.disabled?t.disabledReason:"",placement:"left"}},[e(Ie["b"].Item,{attrs:{actions:[n]}},[e("span",{style:{opacity:t.disabled?.5:1}},[t.title])])])},dt={contentWidth:o["a"].bool,fixedHeader:o["a"].bool,fixSiderbar:o["a"].bool,layout:o["a"].oneOf(["sidemenu","topmenu"])},lt={props:dt,inject:["locale"],render:function(e){var t=this,n=this.$props.i18nRender||this.locale||vt,a=this.contentWidth,r=this.fixedHeader,o=this.layout,i=this.fixSiderbar,s=function(e,n){t.$emit("change",{type:e,value:n})};return e(Ie["b"],{attrs:{split:!1,dataSource:[{title:n("app.setting.content-width"),action:e(st["c"],{attrs:{value:a?"Fixed":"Fluid",size:"small"},on:{select:function(e){return s("contentWidth",e)}},style:{width:"80px"}},["sidemenu"===o?null:e(st["c"].Option,{attrs:{value:"Fixed"}},[n("app.setting.content-width.fixed")]),e(st["c"].Option,{attrs:{value:"Fluid"}},[n("app.setting.content-width.fluid")])])},{title:n("app.setting.fixedheader"),action:e(qe["a"],{attrs:{size:"small",checked:!!r},on:{change:function(e){return s("fixedHeader",e)}}})},{title:n("app.setting.fixedsidebar"),disabled:"topmenu"===o,disabledReason:n("app.setting.fixedsidebar.hint"),action:e(qe["a"],{attrs:{size:"small",disabled:"topmenu"===o,checked:!!i},on:{change:function(e){return s("fixSiderbar",e)}}})}],renderItem:function(t,n){return ct(e,t)}}})}},ut=(n("cb29"),n("a15b"),n("ac1f"),n("5319"),n("6a71"),n("7746"),function(e){}),pt=function(e){var t=document.body.querySelector("#app");e?t.classList.add("colorWeak"):t.classList.remove("colorWeak")},ht=n("b384"),mt=n.n(ht),ft="ant-pro-setting-drawer",gt={title:{type:String,default:""}},bt={props:gt,render:function(e){var t=this.title;return e("div",{style:{marginBottom:24}},[e("h3",{class:ft+"-title"},[t]),this.$slots["default"]])}},vt=function(e){return e},yt=function(e){var t=window.umi_plugin_ant_themeVar||[],n=[{key:"light",url:"https://gw.alipayobjects.com/zos/antfincdn/NQ%24zoisaD2/jpRkZQMyYRryryPNtyIC.svg",title:e("app.setting.pagestyle.light")},{key:"dark",url:"https://gw.alipayobjects.com/zos/antfincdn/XwFOFbLkSM/LCkqqYNmvBEbokSDscrm.svg",title:e("app.setting.pagestyle.dark")}],a=[{key:"#1890ff",color:"#1890ff",theme:"dark"}],r=[{key:"#1890ff",color:"#1890ff",theme:"dark"}];return t.find((function(e){return"dark"===e.theme}))&&n.push({disable:!0,key:"realDark",url:"https://gw.alipayobjects.com/zos/antfincdn/hmKaLQvmY2/LCkqqYNmvBEbokSDscrm.svg",title:e("app.setting.pagestyle.realdark")}),t.forEach((function(e){var t=(e.modifyVars||{})["@primary-color"];"dark"===e.theme&&t&&a.push(Ve()({color:t},e)),e.theme&&"light"!==e.theme||r.push(Ve()({color:t},e))})),{colorList:{dark:a,light:r},themeList:n}},kt=function(e,t,n){"primaryColor"===e&&ut(t),"colorWeak"===e&&pt(t)},xt=function(e){return JSON.stringify(Object(Ue["a"])(Ve()({},e,{primaryColor:he(e.primaryColor)}),["colorWeak"]),null,2)},Ot={theme:o["a"].oneOf(["dark","light","realDark"]),primaryColor:o["a"].string,layout:o["a"].oneOf(["sidemenu","topmenu"]),colorWeak:o["a"].bool,contentWidth:o["a"].bool,fixedHeader:o["a"].bool,fixSiderbar:o["a"].bool,hideHintAlert:o["a"].bool.def(!1),hideCopyButton:o["a"].bool.def(!1)},wt={getContainer:o["a"].func,settings:o["a"].objectOf(Ot)},jt={name:"SettingDrawer",props:wt,inject:["locale"],data:function(){return{show:!1}},render:function(e){var t=this,n=this.setShow,a=this.getContainer,r=this.settings,o=r.theme,i=void 0===o?"dark":o,s=r.primaryColor,c=void 0===s?"daybreak":s,l=r.layout,u=void 0===l?"sidemenu":l,p=r.fixedHeader,h=void 0!==p&&p,m=r.fixSiderbar,f=void 0!==m&&m,g=r.contentWidth,b=void 0!==g&&g,v=r.hideHintAlert,y=r.hideCopyButton,k=r.colorWeak,x=this.$props.i18nRender||this.locale,O=yt(x),j="topmenu"===u,C={color:"#fff",fontSize:20},_=function(e,n){t.$emit("change",{type:e,value:n}),kt(e,n,!1)};return e(w["a"],{attrs:{visible:this.show,width:300,placement:"right",getContainer:a},on:{close:function(){return n(!1)}},style:{zIndex:999}},[e("template",{slot:"handle"},[e("div",{class:ft+"-handle",on:{click:function(){return n(!t.show)}}},[this.show?e(d["a"],{attrs:{type:"close"},style:C}):e(d["a"],{attrs:{type:"setting"},style:C})])]),e("div",{class:ft+"-content"},[e(bt,{attrs:{title:x("app.setting.pagestyle")}},[e(Je,{attrs:{list:O.themeList,value:i},on:{change:function(e){_("theme",e)}}})]),e(it,{attrs:{title:x("app.setting.themecolor"),value:c,colors:O.colorList["realDark"===i?"dark":"light"]},on:{change:function(e){_("primaryColor",e,null)}}}),e(We["a"]),e(bt,{attrs:{title:x("app.setting.navigationmode")}},[e(Je,{attrs:{value:u},on:{change:function(e){_("layout",e,null)}}})]),e(lt,{attrs:{contentWidth:b,fixedHeader:h,fixSiderbar:!j&&f,layout:u},on:{change:function(e){var t=e.type,n=e.value;_(t,n)}}}),e(We["a"]),e(bt,{attrs:{title:x("app.setting.othersettings")}},[e(Ie["b"],{attrs:{split:!1,renderItem:function(t){return ct(e,t)},dataSource:[{title:x("app.setting.weakmode"),action:e(qe["a"],{attrs:{size:"small",checked:!!k},on:{change:function(e){return _("colorWeak",e)}}})}]}})]),v&&y?null:e(We["a"]),v?null:e(Fe["a"],{attrs:{type:"warning",message:x("app.setting.production.hint"),icon:e(d["a"],{attrs:{type:"notification"}}),showIcon:!0},style:{marginBottom:"16px"}}),y?null:e(mt.a,{attrs:{text:xt(r)},on:{copy:function(){return ze["a"].success(x("app.setting.copyinfo"))}}},[e(He["a"],{attrs:{block:!0}},[e(d["a"],{attrs:{type:"copy"}}),x("app.setting.copy")])])])])},methods:{setShow:function(e){this.show=e}}},Ct=jt;t["e"]=Re},"524c":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1599549785172",class:"icon",viewBox:"0 0 1102 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3880",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M601.245538 272.147692l154.624 448.984616 55.217231 28.041846c36.312615 17.959385 76.878769 3.938462 87.827693-30.168616l33.083076-57.028923 163.209847-314.840615c17.486769-36.548923 3.465846-77.193846-30.404923-88.379077L544.768 19.298462C510.739692 8.270769 460.8-5.12 420.548923 8.979692l-119.729231 47.261539 192.827077 77.981538c36.076308 18.038154 79.399385 56.32 107.598769 137.924923z m122.249847 519.483077L538.702769 254.424615c-11.657846-33.949538-41.590154-76.957538-75.618461-88.142769L234.023385 70.183385a84.913231 84.913231 0 0 0-94.28677 32.610461L11.500308 321.851077c-19.928615 29.696-10.24 79.714462 1.496615 113.664l184.871385 537.284923c5.041231 36.312615 32.295385 49.782154 72.62523 35.84h-0.157538l418.028308-143.911385c33.634462-11.657846 46.946462-39.148308 35.131077-73.097846z m-448.196923-453.868307a50.648615 50.648615 0 0 1-64.196924-31.507693c-9.846154-28.829538 2.599385-54.508308 31.192616-64.275692 28.514462-9.846154 54.193231 2.756923 64.039384 31.507692a50.412308 50.412308 0 0 1-31.035076 64.275693z","p-id":"3881"}}]})}},"559f":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595300943273",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"997",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M618.2 62c25.52958985 0 45.95976563 23.93964844 45.92988281 53.52011719 0 29.64023438-20.39941406 53.60976563-44.66953125 53.60976562H410.06005859c-25.47070313 0-45.9-24.00029297-45.9-53.60976562C364.15917969 85.93964844 384.55859375 62 410.06005859 62h208.1100586zM316.99970703 361.99970703h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297z m0 180h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297z m0 180h390.00058594a29.99970703 29.99970703 0 1 1 0 60.00029297H316.99970703a29.99970703 29.99970703 0 1 1 0-60.00029297zM739.82128906 122.00029297c0 65.99970703-12.06035156 101.81953125-75.96035156 101.81953125H360.13994141c-63.60029297 0-75.96035156-47.15947266-75.96035156-101.81953125h-101.25c-42.62958985 0-75.92958985 31.37958985-75.92958985 76.34970703v687.30029297c0 50.42988281 27.29970703 76.34970703 75.92958985 76.34970703h658.17070312c40.5 0 75.89970703-24.87041015 75.89970703-76.35058594V198.35087891c0-49.64941406-28.29023438-76.35058594-75.92958983-76.35058594h-101.25z","p-id":"998"}}]})}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("4de4"),n("d3b7"),n("4d90"),n("99af"),n("a4d3"),n("e01a"),n("b636"),n("dc8d"),n("efe9"),n("d28b"),n("2a1b"),n("80e0"),n("6b9e"),n("197b"),n("2351"),n("8172"),n("944a"),n("81b8"),n("a874"),n("cb29"),n("7db0"),n("c740"),n("0481"),n("5db7"),n("a630"),n("caad"),n("a15b"),n("d81d"),n("5ded"),n("fb6a"),n("4e82"),n("f785"),n("a434"),n("4069"),n("73d9"),n("c19f"),n("82da"),n("ace4"),n("efec"),n("b56e"),n("b0c0"),n("0c47"),n("4ec9"),n("5327"),n("79a8"),n("9ff9"),n("3ea3"),n("40d9"),n("ff9c"),n("0ac8"),n("f664"),n("4057"),n("bc01"),n("6b93"),n("ca21"),n("90d7"),n("2af1"),n("0261"),n("7898"),n("23dc"),n("b65f"),n("a9e3"),n("35b3"),n("f00c"),n("8ba4"),n("9129"),n("583b"),n("aff5"),n("e6e1"),n("c35a"),n("25eb"),n("b680"),n("12a8"),n("e71b"),n("4fadc"),n("dca8"),n("c1f9"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("2b19"),n("c906"),n("e21d"),n("e43e"),n("b64b"),n("bf96"),n("5bf7"),n("cee8"),n("af93"),n("131a"),n("07ac"),n("a6fd"),n("4ae1"),n("3f3a"),n("ac16"),n("5d41"),n("9e4a"),n("7f78"),n("c760"),n("db96"),n("1bf2"),n("d6dd"),n("7ed3"),n("8b9a"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("6062"),n("f5b2"),n("8a79"),n("f6d6"),n("2532"),n("3ca3"),n("466d"),n("843c"),n("d80f"),n("38cf"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("1e25"),n("eee7"),n("18a5"),n("1393"),n("04d3"),n("cc71"),n("c7cd"),n("9767"),n("1913"),n("c5d0"),n("9911"),n("c96a"),n("2315"),n("4c53"),n("664f"),n("cfc3"),n("4a9b"),n("fd87"),n("8b09"),n("143c"),n("5cc6"),n("8a59"),n("84c3"),n("fb2c"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("20bf"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ec97"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("10d1"),n("1fe2"),n("159b"),n("ddb0"),n("130f"),n("9f96"),n("2b3d"),n("bf19"),n("9861"),n("96cf");var a=n("2b0e"),r=function(){var e=this,t=e._self._c;return t("a-config-provider",{attrs:{locale:e.locale}},[t("div",{attrs:{id:"app"}},[t("router-view")],1)])},o=[],i=n("e819"),s=function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var a=document.createElement("iframe");a.src="/favicon.ico",a.style.display="none",a.onload=function(){setTimeout((function(){a.remove()}),9)},document.body.appendChild(a)}},c=(i["a"].title,n("bf0f")),d=n("b775");var l={data:function(){return{}},computed:{locale:function(){}}},u=l,p=n("2877"),h=Object(p["a"])(u,r,o,!1,null,null,null),m=h.exports,f=n("8c4f"),g=n("d73b"),b=f["a"].prototype.push;f["a"].prototype.push=function(e,t,n){return t||n?b.call(this,e,t,n):b.call(this,e).catch((function(e){return e}))},a["a"].use(f["a"]);var v=new f["a"]({mode:"hash",routes:g["b"]}),y=n("4360"),k=n("4ceb"),x={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},O=n("8ded"),w=n.n(O),j=n("9fb0");function C(){y["a"].commit(j["i"],w.a.get(j["i"],i["a"].layout)),y["a"].commit(j["f"],w.a.get(j["f"],i["a"].fixedHeader)),y["a"].commit(j["g"],w.a.get(j["g"],i["a"].fixSiderbar)),y["a"].commit(j["e"],w.a.get(j["e"],i["a"].contentWidth)),y["a"].commit(j["h"],w.a.get(j["h"],i["a"].autoHideHeader)),y["a"].commit(j["l"],w.a.get(j["l"],i["a"].navTheme)),y["a"].commit(j["m"],w.a.get(j["m"],i["a"].colorWeak)),y["a"].commit(j["d"],w.a.get(j["d"],i["a"].primaryColor)),y["a"].commit(j["k"],w.a.get(j["k"],i["a"].multiTab)),y["a"].commit("SET_TOKEN",w.a.get(j["a"])),y["a"].dispatch("setLang",w.a.get(j["b"],"zh-CN"))}n("3c1f");var _=n("2f50"),M=(n("06f4"),n("fc25")),S=(n("68c7"),n("de1b")),K=(n("dc5a"),n("56cd")),E=(n("3b18"),n("f64c")),N=(n("17ac"),n("ff57")),A=(n("438c"),n("fbdf")),$=(n("7d24"),n("dfae")),P=(n("98a7"),n("7bec")),T=(n("bffa"),n("6634")),D=(n("e7c6"),n("a8ba")),L=(n("dd98"),n("3779")),R=(n("34c0"),n("9fd0")),H=(n("2a26"),n("768f")),z=(n("cc70"),n("1fd5")),F=(n("1273"),n("f2ca")),q=(n("eb14"),n("39ab")),I=(n("0025"),n("27ab")),W=(n("9980"),n("0bb7")),B=(n("55ec"),n("a79d")),V=(n("b97c"),n("7571")),U=(n("ab9e"),n("2c92")),G=(n("9a33"),n("f933")),Y=(n("6d2a"),n("9571")),Q=(n("fbd8"),n("55f1")),Z=(n("7f6b"),n("8592")),J=(n("b380"),n("bf7b")),X=(n("dd48"),n("2fc4")),ee=(n("af3d"),n("27fd")),te=(n("d88f"),n("fe2b")),ne=(n("9d5c"),n("a600")),ae=(n("5136"),n("681b")),re=(n("4a96"),n("a071")),oe=(n("8fb1"),n("0c63")),ie=(n("d13f"),n("ccb9")),se=(n("c68a"),n("0020")),ce=(n("cd17"),n("ed3b")),de=(n("0032"),n("e32c")),le=(n("de6a"),n("9a63")),ue=(n("f2ef"),n("3af3")),pe=(n("288f"),n("cdeb")),he=(n("2ef0f"),n("9839")),me=(n("ee00"),n("bb76")),fe=(n("5783"),n("59a5")),ge=(n("fbd6"),n("160c")),be=(n("6ba6"),n("5efb")),ve=(n("922d"),n("09d9")),ye=(n("5704"),n("b558")),ke=(n("1a62"),n("98c5")),xe=(n("d2a3"),n("4df5")),Oe=n("3654"),we=n("2638"),je=n.n(we),Ce=n("15fd"),_e=n("5530"),Me=n("ade3"),Se=n("d96e"),Ke=n.n(Se),Ee=n("bdf5"),Ne=n("3593"),Ae=n("4d91"),$e=n("daa3"),Pe=n("7b05"),Te=n("9cba"),De=(n("b2a3"),n("d6e0"),["on","slots","scopedSlots","class","style"]);function Le(){return{showLine:Ae["a"].bool,multiple:Ae["a"].bool,autoExpandParent:Ae["a"].bool,checkStrictly:Ae["a"].bool,checkable:Ae["a"].bool,disabled:Ae["a"].bool,defaultExpandAll:Ae["a"].bool,defaultExpandParent:Ae["a"].bool,defaultExpandedKeys:Ae["a"].array,expandedKeys:Ae["a"].array,checkedKeys:Ae["a"].oneOfType([Ae["a"].array,Ae["a"].shape({checked:Ae["a"].array,halfChecked:Ae["a"].array}).loose]),defaultCheckedKeys:Ae["a"].array,selectedKeys:Ae["a"].array,defaultSelectedKeys:Ae["a"].array,selectable:Ae["a"].bool,filterAntTreeNode:Ae["a"].func,loadData:Ae["a"].func,loadedKeys:Ae["a"].array,draggable:Ae["a"].bool,showIcon:Ae["a"].bool,icon:Ae["a"].func,switcherIcon:Ae["a"].any,prefixCls:Ae["a"].string,filterTreeNode:Ae["a"].func,openAnimation:Ae["a"].any,treeNodes:Ae["a"].array,treeData:Ae["a"].array,replaceFields:Ae["a"].object,blockNode:Ae["a"].bool}}var Re={name:"ATree",model:{prop:"checkedKeys",event:"check"},props:Object($e["t"])(Le(),{checkable:!1,showIcon:!1,openAnimation:{on:Ne["a"],props:{appear:null}},blockNode:!1}),inject:{configProvider:{default:function(){return Te["a"]}}},created:function(){Ke()(!("treeNodes"in Object($e["l"])(this)),"`treeNodes` is deprecated. please use treeData instead.")},TreeNode:Ee["TreeNode"],methods:{renderSwitcherIcon:function(e,t,n){var a=n.isLeaf,r=n.expanded,o=n.loading,i=this.$createElement,s=this.$props.showLine;if(o)return i(oe["a"],{attrs:{type:"loading"},class:"".concat(e,"-switcher-loading-icon")});if(a)return s?i(oe["a"],{attrs:{type:"file"},class:"".concat(e,"-switcher-line-icon")}):null;var c="".concat(e,"-switcher-icon");return t?Object(Pe["a"])(t,{class:Object(Me["a"])({},c,!0)}):i(oe["a"],s?{attrs:{type:r?"minus-square":"plus-square",theme:"outlined"},class:"".concat(e,"-switcher-line-icon")}:{attrs:{type:"caret-down",theme:"filled"},class:c})},updateTreeData:function(e){var t=this,n=this.$slots,a=this.$scopedSlots,r={children:"children",title:"title",key:"key"},o=Object(_e["a"])(Object(_e["a"])({},r),this.$props.replaceFields);return e.map((function(e){var r=e[o.key],i=e[o.children],s=e.on,c=void 0===s?{}:s,d=e.slots,l=void 0===d?{}:d,u=e.scopedSlots,p=void 0===u?{}:u,h=e.class,m=e.style,f=Object(Ce["a"])(e,De),g=Object(_e["a"])(Object(_e["a"])({},f),{},{icon:a[p.icon]||n[l.icon]||f.icon,switcherIcon:a[p.switcherIcon]||n[l.switcherIcon]||f.switcherIcon,title:a[p.title]||n[l.title]||f[o.title],dataRef:e,on:c,key:r,class:h,style:m});return i?Object(_e["a"])(Object(_e["a"])({},g),{},{children:t.updateTreeData(i)}):g}))},getCheckedKeys:function(){return this.$refs.tree.getCheckedKeys()},clearExpandedKeys:function(){return this.$refs.tree.clearExpandedKeys()},getHalfCheckedKeys:function(){return this.$refs.tree.getHalfCheckedKeys()}},render:function(){var e,t=this,n=arguments[0],a=Object($e["l"])(this),r=this.$slots,o=this.$scopedSlots,i=a.prefixCls,s=a.showIcon,c=a.treeNodes,d=a.blockNode,l=this.configProvider.getPrefixCls,u=l("tree",i),p=Object($e["g"])(this,"switcherIcon"),h=a.checkable,m=a.treeData||c;m&&(m=this.updateTreeData(m));var f={props:Object(_e["a"])(Object(_e["a"])({},a),{},{prefixCls:u,checkable:h?n("span",{class:"".concat(u,"-checkbox-inner")}):h,children:Object($e["c"])(o.default?o.default():r.default),__propsSymbol__:Symbol(),switcherIcon:function(e){return t.renderSwitcherIcon(u,p,e)}}),on:Object($e["k"])(this),ref:"tree",class:(e={},Object(Me["a"])(e,"".concat(u,"-icon-hide"),!s),Object(Me["a"])(e,"".concat(u,"-block-node"),d),e)};return m&&(f.props.treeData=m),n(Ee["Tree"],je()([{},f]))}},He=n("2909"),ze=n("0464"),Fe=n("b047"),qe=n.n(Fe),Ie=n("6a21"),We=n("d22e"),Be={None:"node",Start:"start",End:"end"};function Ve(e,t){var n=Object(We["j"])(e)||[];function a(e){var n=e.key,a=Object($e["p"])(e).default;!1!==t(n,e)&&Ve("function"===typeof a?a():a,t)}n.forEach(a)}function Ue(e){var t=Object(We["h"])(e),n=t.keyEntities;return Object(He["a"])(n.keys())}function Ge(e,t,n,a){var r=[],o=Be.None;if(n&&n===a)return[n];if(!n||!a)return[];function i(e){return e===n||e===a}return Ve(e,(function(e){if(o===Be.End)return!1;if(i(e)){if(r.push(e),o===Be.None)o=Be.Start;else if(o===Be.Start)return o=Be.End,!1}else o===Be.Start&&r.push(e);return-1!==t.indexOf(e)})),r}function Ye(e,t){var n=Object(He["a"])(t),a=[];return Ve(e,(function(e,t){var r=n.indexOf(e);return-1!==r&&(a.push(t),n.splice(r,1)),!!n.length})),a}function Qe(e){var t=[];return(e||[]).forEach((function(e){t.push(e.key),e.children&&(t=[].concat(Object(He["a"])(t),Object(He["a"])(Qe(e.children))))})),t}var Ze=n("b488"),Je=["prefixCls"];function Xe(e,t){var n=e.isLeaf,a=e.expanded;return t(oe["a"],n?{attrs:{type:"file"}}:{attrs:{type:a?"folder-open":"folder"}})}var et={name:"ADirectoryTree",mixins:[Ze["a"]],model:{prop:"checkedKeys",event:"check"},props:Object($e["t"])(Object(_e["a"])(Object(_e["a"])({},Le()),{},{expandAction:Ae["a"].oneOf([!1,"click","doubleclick","dblclick"])}),{showIcon:!0,expandAction:"click"}),inject:{configProvider:{default:function(){return Te["a"]}}},data:function(){var e=Object($e["l"])(this),t=e.defaultExpandAll,n=e.defaultExpandParent,a=e.expandedKeys,r=e.defaultExpandedKeys,o=Object(We["h"])(this.$slots.default),i=o.keyEntities,s={};return s._selectedKeys=e.selectedKeys||e.defaultSelectedKeys||[],t?e.treeData?s._expandedKeys=Qe(e.treeData):s._expandedKeys=Ue(this.$slots.default):s._expandedKeys=n?Object(We["f"])(a||r,i):a||r,this.onDebounceExpand=qe()(this.expandFolderNode,200,{leading:!0}),Object(_e["a"])({_selectedKeys:[],_expandedKeys:[]},s)},watch:{expandedKeys:function(e){this.setState({_expandedKeys:e})},selectedKeys:function(e){this.setState({_selectedKeys:e})}},methods:{onExpand:function(e,t){this.setUncontrolledState({_expandedKeys:e}),this.$emit("expand",e,t)},onClick:function(e,t){var n=this.$props.expandAction;"click"===n&&this.onDebounceExpand(e,t),this.$emit("click",e,t)},onDoubleClick:function(e,t){var n=this.$props.expandAction;"dblclick"!==n&&"doubleclick"!==n||this.onDebounceExpand(e,t),this.$emit("doubleclick",e,t),this.$emit("dblclick",e,t)},onSelect:function(e,t){var n,a=this.$props.multiple,r=this.$slots.default||[],o=this.$data._expandedKeys,i=void 0===o?[]:o,s=t.node,c=t.nativeEvent,d=s.eventKey,l=void 0===d?"":d,u={},p=Object(_e["a"])(Object(_e["a"])({},t),{},{selected:!0}),h=c.ctrlKey||c.metaKey,m=c.shiftKey;a&&h?(n=e,this.lastSelectedKey=l,this.cachedSelectedKeys=n,p.selectedNodes=Ye(r,n)):a&&m?(n=Array.from(new Set([].concat(Object(He["a"])(this.cachedSelectedKeys||[]),Object(He["a"])(Ge(r,i,l,this.lastSelectedKey))))),p.selectedNodes=Ye(r,n)):(n=[l],this.lastSelectedKey=l,this.cachedSelectedKeys=n,p.selectedNodes=[t.node]),u._selectedKeys=n,this.$emit("update:selectedKeys",n),this.$emit("select",n,p),this.setUncontrolledState(u)},expandFolderNode:function(e,t){var n=t.isLeaf;if(!(n||e.shiftKey||e.metaKey||e.ctrlKey)&&this.$refs.tree.$refs.tree){var a=this.$refs.tree.$refs.tree;a.onNodeExpand(e,t)}},setUncontrolledState:function(e){var t=Object(ze["a"])(e,Object.keys(Object($e["l"])(this)).map((function(e){return"_".concat(e)})));Object.keys(t).length&&this.setState(t)}},render:function(){var e=arguments[0],t=Object($e["l"])(this),n=t.prefixCls,a=Object(Ce["a"])(t,Je),r=this.configProvider.getPrefixCls,o=r("tree",n),i=this.$data,s=i._expandedKeys,c=i._selectedKeys,d=Object($e["k"])(this);Object(Ie["a"])(!d.doubleclick,"`doubleclick` is deprecated. please use `dblclick` instead.");var l={props:Object(_e["a"])(Object(_e["a"])({icon:Xe},a),{},{prefixCls:o,expandedKeys:s,selectedKeys:c,switcherIcon:Object($e["g"])(this,"switcherIcon")}),ref:"tree",class:"".concat(o,"-directory"),on:Object(_e["a"])(Object(_e["a"])({},Object(ze["a"])(d,["update:selectedKeys"])),{},{select:this.onSelect,click:this.onClick,dblclick:this.onDoubleClick,expand:this.onExpand})};return e(Re,je()([{},l]),[this.$slots.default])}},tt=n("db14");Re.TreeNode.name="ATreeNode",Re.DirectoryTree=et,Re.install=function(e){e.use(tt["a"]),e.component(Re.name,Re),e.component(Re.TreeNode.name,Re.TreeNode),e.component(et.name,et)};var nt=Re,at=n("4eb5"),rt=n.n(at),ot=n("1d4b"),it={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},n={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(Z["a"],{attrs:{size:this.size,tip:this.tip},style:n})])}},st="0.0.1",ct={newInstance:function(e,t){var n=document.querySelector("body>div[type=loading]");n||(n=document.createElement("div"),n.setAttribute("type","loading"),n.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(n));var a=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),r=new e({data:function(){return Object(_e["a"])({},a)},render:function(){var e=arguments[0],t=this.tip,n={};return this.tip&&(n.tip=t),this.visible?e(it,{props:Object(_e["a"])({},n)}):null}}).$mount(n);function o(e){var t=Object(_e["a"])(Object(_e["a"])({},a),e),n=t.visible,o=t.size,i=t.tip;r.$set(r,"visible",n),i&&r.$set(r,"tip",i),o&&r.$set(r,"size",o)}return{instance:r,update:o}}},dt={show:function(e){this.instance.update(Object(_e["a"])(Object(_e["a"])({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},lt=function(e,t){e.prototype.$loading||(dt.instance=ct.newInstance(e,t),e.prototype.$loading=dt)},ut={version:st,install:lt},pt=n("3835"),ht={add:{key:"add",label:"新增"},delete:{key:"delete",label:"删除"},edit:{key:"edit",label:"修改"},query:{key:"query",label:"查询"},get:{key:"get",label:"详情"},enable:{key:"enable",label:"启用"},disable:{key:"disable",label:"禁用"},import:{key:"import",label:"导入"},export:{key:"export",label:"导出"}};function mt(e){mt.installed||(!e.prototype.$auth&&Object.defineProperties(e.prototype,{$auth:{get:function(){var e=this;return function(t){var n=t.split("."),a=Object(pt["a"])(n,2),r=a[0],o=a[1],i=e.$store.getters.roles;if(i.isSuper)return!0;var s=i.permissions.find((function(e){return e.permissionId===r}));return!!s&&(void 0===o||s.actionList.findIndex((function(e){return e===o}))>-1)}}}}),!e.prototype.$enum&&Object.defineProperties(e.prototype,{$enum:{get:function(){return function(e){var t=ht;return e&&e.split(".").forEach((function(e){t=t&&t[e]||null})),t}}}}))}var ft=mt;a["a"].directive("action",{inserted:function(e,t,n){var a=t.arg,r=y["a"].getters.roles;if(!r.isSuper){var o=n.context.$route.meta.permission,i=o instanceof String&&[o]||o;r.permissions.forEach((function(t){i.includes(t.permissionId)&&t.actionList&&!t.actionList.includes(a)&&(e.parentNode&&e.parentNode.removeChild(e)||(e.style.display="none"))}))}}});a["a"].use(xe["a"]),a["a"].use(ke["a"]),a["a"].use(ye["a"]),a["a"].use(ve["a"]),a["a"].use(be["a"]),a["a"].use(ge["a"]),a["a"].use(fe["a"]),a["a"].use(me["a"]),a["a"].use(he["c"]),a["a"].use(pe["a"]),a["a"].use(ue["a"]),a["a"].use(le["a"]),a["a"].use(de["a"]),a["a"].use(ce["a"]),a["a"].use(se["a"]),a["a"].use(ie["a"]),a["a"].use(oe["a"]),a["a"].use(re["a"]),a["a"].use(ae["a"]),a["a"].use(ne["a"]),a["a"].use(te["b"]),a["a"].use(ee["a"]),a["a"].use(X["a"]),a["a"].use(J["a"]),a["a"].use(Z["a"]),a["a"].use(Q["a"]),a["a"].use(Y["a"]),a["a"].use(G["a"]),a["a"].use(U["a"]),a["a"].use(V["a"]),a["a"].use(B["a"]),a["a"].use(W["a"]),a["a"].use(I["a"]),a["a"].use(q["a"]),a["a"].use(F["a"]),a["a"].use(z["a"]),a["a"].use(H["a"]),a["a"].use(R["a"]),a["a"].use(L["a"]),a["a"].use(D["a"]),a["a"].use(T["a"]),a["a"].use(P["a"]),a["a"].use($["a"]),a["a"].use(A["a"]),a["a"].use(N["a"]),a["a"].prototype.$confirm=ce["a"].confirm,a["a"].prototype.$message=E["a"],a["a"].prototype.$notification=K["a"],a["a"].prototype.$info=ce["a"].info,a["a"].prototype.$success=ce["a"].success,a["a"].prototype.$error=ce["a"].error,a["a"].prototype.$warning=ce["a"].warning,rt.a.config.autoSetContainer=!0,a["a"].use(Oe["a"]),a["a"].use(ot["a"]),a["a"].use(ut),a["a"].use(ft),a["a"].use(rt.a),a["a"].use(S["a"]),a["a"].use(M["a"]),a["a"].use(_["a"]),a["a"].use(nt);var gt=n("323e"),bt=n.n(gt),vt=(n("fddb"),n("ca00"));bt.a.configure({showSpinner:!1});var yt="/passport/login",kt="/pay",xt=[yt,kt],Ot="/";v.beforeEach((function(e,t,n){bt.a.start(),e.meta&&"undefined"!==typeof e.meta.title&&s("".concat(Object(c["b"])(e.meta.title)));var a=e.query;e.path===yt&&a["superLogin"]&&y["a"].dispatch("SuperLogin",{userId:a["userId"],token:a["token"]}),w.a.get(j["a"])?e.path===yt?(n({path:Ot}),bt.a.done()):Object(vt["e"])(y["a"].getters.roles)?y["a"].dispatch("GetInfo").then((function(a){var r=a.roles;y["a"].dispatch("GenerateRoutes",{roles:r}).then((function(a){v.addRoutes(a);var r=decodeURIComponent(t.query.redirect||e.path);e.path===r?n(Object(_e["a"])(Object(_e["a"])({},e),{},{replace:!0})):n({path:r})}))})).catch((function(){K["a"].error({message:"错误",description:"请求用户信息失败,请重试"}),y["a"].dispatch("Logout").then((function(){n({path:yt,query:{redirect:e.fullPath}})}))})):n():xt.includes(e.path)?n():(n({path:yt,query:{redirect:e.fullPath}}),bt.a.done())})),v.afterEach((function(){bt.a.done()}));var wt=n("c1df"),jt=n.n(wt);n("5c3a");jt.a.locale("zh-cn"),a["a"].filter("NumberFormat",(function(e){if(!e)return"0";var t=e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return t})),a["a"].filter("dayjs",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return jt()(e).format(t)})),a["a"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return jt()(e).format(t)}));n("861f");a["a"].config.productionTip=!1,a["a"].use(d["a"]),a["a"].component("pro-layout",k["e"]),a["a"].component("page-header-wrapper",k["b"]),a["a"].filter("dateFormat",(function(e){if(!e)return"";var t=new Date(1e3*e),n=t.getFullYear(),a=(t.getMonth()+1+"").padStart(2,"0"),r=(t.getDate()+"").padStart(2,"0"),o=(t.getHours()+"").padStart(2,"0"),i=(t.getMinutes()+"").padStart(2,"0"),s=(t.getSeconds()+"").padStart(2,"0");return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)})),window.umi_plugin_ant_themeVar=x.theme,new a["a"]({router:v,store:y["a"],i18n:c["a"],created:C,render:function(e){return e(m)}}).$mount("#app")},5805:function(e,t,n){},"5b96":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1592810676056",class:"icon",viewBox:"0 0 1112 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5986","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"542.96875",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M1103.626164 714.111047c0-18.548339-18.548339-37.096678-27.822508-37.096677-27.822508 0-55.645017-27.822508-55.645017-55.645017 0-9.274169 0-18.548339 9.274169-18.548339 9.274169-18.548339 0-37.096678-18.548338-46.370847l-64.919187-37.096678c-18.548339-9.274169-37.096678 0-46.370847 9.274169-9.274169 0-37.096678 18.548339-46.370847 18.548339-18.548339 0-37.096678-18.548339-46.370847-27.822508-9.274169-9.274169-27.822508-9.274169-46.370847-9.274169l-64.919187 37.096677c-18.548339 18.548339-27.822508 37.096678-18.548338 55.645017 0 9.274169 0 18.548339 9.274169 18.548339 0 27.822508-27.822508 55.645017-55.645017 55.645017-18.548339 0-27.822508 9.274169-27.822508 37.096677 0 0-9.274169 27.822508-9.274169 55.645017s9.274169 46.370847 9.274169 55.645017c0 18.548339 18.548339 37.096678 27.822508 37.096677 27.822508 0 55.645017 27.822508 55.645017 55.645017 0 9.274169 0 18.548339-9.274169 18.548339-9.274169 18.548339 0 37.096678 18.548338 46.370847l64.919187 37.096678c18.548339 9.274169 37.096678 0 46.370847-9.274169 9.274169-9.274169 27.822508-27.822508 46.370847-27.822509s37.096678 18.548339 46.370847 27.822509c9.274169 9.274169 27.822508 9.274169 46.370847 9.274169l64.919187-37.096678c18.548339-9.274169 18.548339-27.822508 9.274169-46.370847 0-9.274169 0-18.548339-9.274169-18.548339 0-27.822508 27.822508-55.645017 55.645016-55.645017 18.548339 0 27.822508-9.274169 27.822509-37.096677 0 0 9.274169-27.822508 9.274169-55.645017 9.274169-27.822508 0-55.645017 0-55.645017zM853.223589 862.497758c-55.645017 0-92.741694-46.370847-92.741694-102.015863s37.096678-102.015864 92.741694-102.015864 92.741694 46.370847 92.741694 102.015864-46.370847 102.015864-92.741694 102.015863zM686.288539 472.982642c-92.741694 46.370847-148.386711 129.838372-166.93505 231.854236s9.274169 204.031728 74.193356 287.499253H92.741694c-55.645017 0-92.741694-37.096678-92.741694-83.467525v-27.822509c0-46.370847 37.096678-92.741694 83.467525-111.290033L278.225083 686.288539s55.645017-18.548339 64.919186-37.096678c9.274169-9.274169 9.274169-46.370847 0-74.193355-18.548339-18.548339-111.290033-148.386711-111.290033-259.676745C231.854236 139.112542 343.144269 0 482.256811 0c139.112542 0 250.402575 139.112542 250.402575 315.321761 0 55.645017-18.548339 111.290033-46.370847 157.660881z","p-id":"5987"}}]})}},6052:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1634495198314",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3933",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M780.56106667 999.0144H244.80426667c-121.6512 0-220.22826667-98.57706667-220.22826667-220.22826668V243.02933332c0-121.6512 98.57706667-220.22826667 220.22826667-220.22826664h535.7568c121.6512 0 220.22826667 98.57706667 220.22826666 220.22826664v535.7568c0 121.6512-98.57706667 220.22826667-220.22826666 220.22826668z",fill:"#009CF5","p-id":"3934"}},{tag:"path",attrsMap:{d:"M530.97813333 591.4624h-107.17866666l80.69120001-139.264 8.19199999-14.19946667 55.296-95.0272 10.6496-18.56853333 22.93760001-39.3216c10.10346667-17.2032 10.37653333-39.3216-1.09226668-55.56906668-9.8304-13.9264-23.89333333-19.52426668-37.81973333-19.52426665-16.384 0-32.3584 8.46506668-41.3696 23.7568l-8.19199999 14.47253333-8.46506668-14.47253333c-9.0112-15.29173333-25.12213333-23.7568-41.3696-23.7568-8.192 0-16.384 1.91146667-24.02986667 6.28053333-22.66453333 13.1072-30.44693333 42.46186667-17.2032 65.1264l35.6352 61.57653333-144.1792 248.76373335H219.81866667c-28.672 0.27306667-51.6096 25.66826668-47.10399999 55.56906664 3.54986668 23.48373332 25.53173333 39.86773333 49.28853332 39.86773335h36.18133333l110.31893334-0.27306667h220.22826666c4.096 0 8.192-1.77493333 10.64959999-5.05173333 12.56106667-16.7936 21.84533333-42.87146668-8.87466664-69.76853334-16.24746667-14.336-37.95626668-20.61653333-59.52853335-20.61653333z",fill:"#FFFFFF","p-id":"3935"}},{tag:"path",attrsMap:{d:"M803.49866667 591.18933333h-91.7504L589.0048 379.42613332c-2.18453333-3.6864-7.09973333-4.9152-10.51306668-2.4576-17.2032 12.42453332-27.30666667 29.76426667-32.49493332 48.87893336-8.73813332 32.22186667-1.50186667 66.7648 15.1552 95.70986665l26.35093333 45.73866667 13.9264 24.30293333 55.296 95.30026667 5.7344 9.55733332 53.11146667 91.75040001c9.0112 15.29173333 24.84906667 23.7568 41.09653332 23.75679999 8.192 0 16.65706667-2.18453333 24.30293336-6.55359999 22.66453333-13.1072 30.44693333-42.1888 17.2032-65.1264l-30.99306668-53.65760001h38.63893332c28.672 0 51.47306668-25.94133332 46.83093335-55.84213332-3.82293332-23.3472-25.53173333-39.59466667-49.152-39.59466667zM306.7904 699.32373333c-16.7936-6.82666667-32.63146667-6.00746668-45.32906668-2.4576-6.9632 1.91146667-12.6976 6.69013333-16.24746664 12.83413335l-17.74933335 30.31039999c-13.38026668 22.9376-5.46133333 52.0192 17.2032 65.1264 7.64586667 4.36906667 16.11093332 6.5536 24.30293334 6.55360001 16.384 0 32.08533332-8.46506668 40.82346666-23.75680001l20.20693335-34.816c4.9152-8.6016 5.87093333-18.97813333 2.18453332-28.12586667-4.096-10.24-11.74186667-20.0704-25.3952-25.66826667z",fill:"#FFFFFF","p-id":"3936"}}]})}},"60fa":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1600756394501",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5021",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M9.728 584.192c0-34.816 27.648-62.464 63.488-62.464h124.416c34.816 0 63.488 28.672 63.488 62.464v377.344c0 34.816-27.648 62.464-63.488 62.464H73.216c-34.816 0-63.488-28.672-63.488-62.464v-377.344z m753.664-250.88c0-34.816 27.648-62.976 63.488-62.976h124.416c34.816 0 63.488 28.672 63.488 62.976v627.712c0 34.816-27.648 62.976-63.488 62.976h-124.416c-34.816 0-63.488-28.672-63.488-62.976V333.312zM374.784 64C374.784 28.672 402.944 0 439.296 0h126.976c35.84 0 64.512 28.672 64.512 64v896c0 35.328-28.16 64-64.512 64H439.296c-35.84 0-64.512-28.672-64.512-64v-896z","p-id":"5022"}}]})}},"613a":function(e,t,n){},"6fb3":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1625710316933",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"21058",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M763.648 488.71466666L328.096 49.96266666c-9.696-9.696-25.824-9.696-35.488 0s-9.696 25.824 0 35.488l419.424 419.424-419.424 429.12c-9.696 9.696-9.696 25.824 0 35.488s25.824 9.696 35.488 0l435.552-445.248a25.28 25.28 0 0 0 0-35.488z",fill:"","p-id":"21059"}}]})}},7257:function(e,t,n){},"743d":function(e,t,n){"use strict";n.r(t);var a=n("5530"),r=n("8b45"),o=n("0ff2"),i=n.n(o),s={antLocale:r["a"],momentName:"eu",momentLocale:i.a},c={message:"-","menu.home":"Home","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Do you really log-out.","app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"};t["default"]=Object(a["a"])(Object(a["a"])({},s),c)},7620:function(e,t,n){},"7d57":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M1024 854v6q0 44-22 82t-60 60-82 22h-696q-45 0-82.5-22t-59.5-60-22-82v-696q0-44 22-82t59.5-60 82.5-22h695q45 0 82.5 22t60 59.5 22.5 82.5v690M780 399q-29-30-63-55l-10-7q24-12 38-32t14-44.5-15-45.5-40-32.5-55-11.5q-19 0-37 6-7 2-13 6-1 1-4 0t-4-2q-7-11-21-23v0q-25-22-58-21.5t-58 21.5v0q-14 12-21 23-1 1-4 1.5t-4 0.5q-6-4-13-6-17-6-37-6-30 0-55 11.5t-40 32.5-15 45.5 14 44.5 38 32q-3 2-8 6l-2 1q-31 22-63 55-95 97-95 205 0 101 50 168 45 60 129 89 76 27 180 27h8q104 0 180-27 84-29 129-89 50-67 50-168 0-108-95-205M616 593h-75v29h55q12 0 20.5 8.5t8.5 20.5-8.5 20.5-20.5 8.5h-55v44q0 12-8.5 20.5t-20.5 8.5-20.5-8.5-8.5-20.5v-44h-58q-12 0-20.5-8.5t-8.5-20.5 8.5-20.5 20.5-8.5h58v-29h-75q-12 0-20.5-8.5t-8.5-20.5 8.5-20 20.5-8h34l-25-54q-9-9-9-21t8.5-20.5 20.5-8.5 21 9l54 83 58-83q9-9 21-9t20.5 8.5 8.5 20.5-9 21l-30 54h35q12 0 20 8t8.5 20-8 20.5-20.5 8.5z"}}]})}},"7e43":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1608212084627",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5849",width:"200",height:"200"},children:[{tag:"path",attrsMap:{d:"M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m302.848 470.176a187.424 187.424 0 0 1-105.408 78.656c-1.664 0-1.664 0-3.328 1.664-6.72 1.696-13.376 3.36-21.76 3.36-31.808 0-48.512-21.76-40.16-46.848 6.72-18.4 25.088-35.136 46.848-41.824 35.136-13.376 58.56-41.824 58.56-75.296 0-45.184-43.52-81.984-97.024-81.984-53.568 0-97.088 36.8-97.088 81.984v249.28c0 60.224-35.136 112.128-86.976 142.24-28.448 16.704-61.92 25.088-97.056 25.088-102.08 0-184.064-75.264-184.064-167.328 0-30.112 8.384-56.896 23.424-81.984a187.296 187.296 0 0 1 105.408-78.656c8.384-1.696 15.04-3.328 23.424-3.328 31.808 0 48.512 21.728 40.16 46.848-6.72 18.368-23.424 33.44-43.52 41.792a12.8 12.8 0 0 0-6.688 3.328c-31.808 13.408-53.568 40.192-53.568 73.664 0 45.152 43.52 81.984 97.056 81.984s97.056-36.8 97.056-81.984v-249.312c0-60.224 35.136-112.096 87.008-142.208 28.416-16.736 61.888-25.088 97.024-25.088 102.08 0 184.064 75.264 184.064 167.296 0 26.784-8.384 53.568-23.424 78.656z","p-id":"5850"}}]})}},8477:function(e,t,n){"use strict";n("7620")},8484:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1617674936203",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4263","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M76.775946 12.60487h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#FD4E45","p-id":"4264"}},{tag:"path",attrsMap:{d:"M76.775946 550.036493h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#FF933D","p-id":"4265"}},{tag:"path",attrsMap:{d:"M515.422518 231.160397l220.091046-220.091046c14.84335-14.84335 39.923492-14.84335 54.766841 0.51184l222.138404 222.138404c15.355189 15.355189 15.355189 39.923492 0.51184 54.766841l-220.091046 220.091046c-14.84335 14.84335-39.923492 14.84335-54.766841-0.51184l-222.138404-222.138404c-15.355189-14.84335-15.355189-39.923492-0.51184-54.766841z",fill:"#12BC83","p-id":"4266"}},{tag:"path",attrsMap:{d:"M608.065493 550.036493h312.222181c42.48269 0 76.775946 33.781416 76.775946 76.775946v317.340577c0 42.48269-34.293256 76.775946-76.775946 76.775946h-312.222181c-42.48269 0-76.775946-33.781416-76.775946-76.775946v-317.340577c0-42.48269 34.293256-76.775946 76.775946-76.775946z",fill:"#2C97FE","p-id":"4267"}}]})}},"861f":function(e,t,n){},"8eeb4":function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1591771112298",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14907","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z",fill:"#1890ff","p-id":"14908"}},{tag:"path",attrsMap:{d:"M328.192 748.288A44.288 44.288 0 0 1 284.032 704v-103.424a14.208 14.208 0 0 1 4.096-10.112 25.6 25.6 0 0 1 10.112-4.224 132.736 132.736 0 0 0 58.496 12.16c22.784 0 51.2-25.6 80.768-25.6 24.576 0 51.2 24.576 76.8 24.448s55.296-25.6 80.896-25.6c30.208 0 57.6 27.136 78.848 29.824 25.6 3.2 42.496-18.048 45.312-18.048a14.336 14.336 0 0 1 14.208 14.336V704a44.416 44.416 0 0 1-44.16 44.544H328.32z m23.296-190.08a100.736 100.736 0 0 1-44.288-9.472v-1.92h-3.712a101.12 101.12 0 0 1-52.224-88.704 102.4 102.4 0 0 1 4.736-31.616 18.304 18.304 0 0 1 0-1.92l48.384-115.2a50.048 50.048 0 0 1 49.92-33.152h316.288a52.48 52.48 0 0 1 51.2 34.304L767.232 422.4a11.776 11.776 0 0 1 0.768 2.304v1.152a99.328 99.328 0 0 1 4.864 30.976 101.248 101.248 0 0 1-52.352 88.96 102.4 102.4 0 0 1-125.056-24.448l-3.84-4.608-3.84 4.608a98.688 98.688 0 0 1-152.32 0l-3.84-4.48-3.84 4.48a100.096 100.096 0 0 1-76.8 36.096z m3.584-119.296a14.336 14.336 0 0 1 0-28.544h307.2a14.336 14.336 0 0 1 0 28.544z",fill:"#FFFFFF","p-id":"14909","data-spm-anchor-id":"a313x.7781069.0.i4",class:"selected"}}]})}},"90f3":function(e,t,n){},9868:function(e,t,n){"use strict";n("4077")},"9a93":function(e,t,n){},"9fb0":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"b",(function(){return f}));var a="Access-Token",r="sidebar_type",o="is_mobile",i="nav_theme",s="layout",c="fixed_header",d="fixed_sidebar",l="content_width",u="auto_hide_header",p="color",h="weak",m="multi_tab",f="app_language"},a044:function(e,t,n){},a1d4:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1592372316432",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5986","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M590.624 950.496v-261.76h-156.928v262.016H201.44c-26.176 0-42.72-18.592-42.72-47.904 0-106.432 0.032-212.864-0.096-319.296 0-6.08 1.728-9.952 5.92-13.792 114.592-105.088 229.056-210.336 343.552-315.52 1.248-1.152 2.56-2.176 4.16-3.552l50.176 46.08c99.328 91.36 198.624 182.72 298.016 273.984a14.112 14.112 0 0 1 4.992 11.52c-0.096 107.552-0.032 215.136-0.096 322.688-0.032 26.272-17.056 45.632-40.448 45.696-76.672 0.16-153.312 0.064-229.984 0.064-1.184 0-2.4-0.128-4.224-0.256zM511.968 190.304l-113.472 105.472-307.584 285.824c-12.768 11.84-23.104 10.816-33.792-3.232-11.232-14.784-22.432-29.568-33.568-44.448-9.024-12.096-8.032-24.672 2.72-34.656 146.176-135.808 292.384-271.616 438.624-407.36 27.328-25.376 67.36-24.8 95.424 1.216 37.408 34.688 74.688 69.504 112.032 104.256l36 33.44v-8.512-90.208c0-17.312 6.88-24.96 22.464-24.96h110.4c17.6 0 24.096 7.168 24.096 26.688 0 88.672 0.064 145.824-0.128 234.496 0 6.112 1.76 9.984 5.856 13.76 42.24 38.88 84.352 77.92 126.496 116.928 10.816 9.984 12 22.4 3.008 34.56a3164.16 3164.16 0 0 1-35.104 46.592c-9.184 11.936-20.224 12.832-31.136 2.688l-279.232-259.616-139.392-129.6-3.712-3.264z","p-id":"5987"}}]})}},a7c9:function(e,t,n){},b0cc:function(e,t,n){},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));n("d3b7");var a=n("bc3a"),r=n.n(a),o=n("4360"),i=n("8ded"),s=n.n(i),c=n("56cd"),d=n("f64c"),l={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},u=n("ca00"),p=n("9fb0"),h=o["a"].getters.publicConfig,m=r.a.create({baseURL:h.BASE_API,timeout:6e4});m.interceptors.request.use((function(e){var t=s.a.get(p["a"]);return t&&(e.headers["Access-Token"]=t),e}));var f=!1;m.interceptors.response.use((function(e){var t=e.data;if(!Object(u["g"])(t)){var n={message:"服务端api返回的数据格式不正确"};return Promise.reject(n)}return 500===t.status?(d["a"].error(t.message,1.8),Promise.reject(t)):401===t.status?(f||(f=!0,o["a"].dispatch("Logout").then((function(){c["a"].error({key:"notLoggedMessage",message:"错误",description:t.message,duration:3}),setTimeout((function(){return window.location.reload()}),1500)}))),Promise.reject(t)):t}),(function(e){var t=((e.response||{}).data||{}).message||"请求出现错误,请稍后再试";return c["a"].error({message:"网络请求出错",description:t,duration:3}),Promise.reject(e)}));var g={vm:{},install:function(e){e.use(l,m)}}},ba93:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1611452084144",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"18462","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M982.912686 11.008633A34.367979 34.367979 0 0 0 957.696701 0.00064H66.305259A34.239979 34.239979 0 0 0 32.00128 36.864617l68.671957 853.311467a34.239979 34.239979 0 0 0 25.151984 30.207981l377.151765 102.399936a34.623978 34.623978 0 0 0 18.047988 0l377.151765-102.399936a34.175979 34.175979 0 0 0 25.151984-30.207981L992.00068 36.864617a34.047979 34.047979 0 0 0-9.087994-25.855984z m-179.199888 279.167826H327.233095l9.791994 136.511914h453.055717l-23.551985 327.871795L512.00098 839.040116l-257.151839-85.311947V597.312267h102.847935v82.559948l154.303904 51.199968 156.863902-52.095967 10.751993-149.951907H241.281149l-24.511984-341.311786h586.687633z","p-id":"18463"}}]})}},bdf5:function(e,t,n){"use strict";e.exports=n("0423")},bf0f:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b}));var a=n("5530"),r=(n("d3b7"),n("caad"),n("3ca3"),n("ddb0"),n("2b0e")),o=n("a925"),i=n("8ded"),s=n.n(i),c=n("c1df"),d=n.n(c),l=n("743d");r["a"].use(o["a"]);var u="en-US",p={"en-US":Object(a["a"])({},l["default"])},h=new o["a"]({silentTranslationWarn:!0,locale:u,fallbackLocale:u,messages:p}),m=[u];function f(e){return h.locale=e,document.querySelector("html").setAttribute("lang",e),e}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return new Promise((function(t){return s.a.set("lang",e),h.locale!==e?m.includes(e)?t(f(e)):n("4aa4")("./".concat(e)).then((function(t){var n=t.default;return h.setLocaleMessage(e,n),m.push(e),d.a.updateLocale(n.momentName,n.momentLocale),f(e)})):t(e)}))}function b(e){return h.t("".concat(e))}t["a"]=h},c06e:function(e,t,n){},c428:function(e,t,n){},ca00:function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"i",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));n("b64b"),n("d3b7"),n("caad"),n("2532"),n("25f0"),n("159b"),n("a15b");function a(){var e=new Date,t=e.getHours();return t<9?"早上好":t<=11?"上午好":t<=13?"中午好":t<20?"下午好":"晚上好"}function r(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}function o(e,t){return function(n){var a=this,r=n;clearTimeout(e.id),e.id=setTimeout((function(){e.call(a,r)}),t)}}function i(e){return 0===Object.keys(e).length}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"[object Array]"===Object.prototype.toString.call(e)}function d(e){return c(e)?0===e.length:s(e)?i(e):!e}function l(e,t){return t.includes(e)}function u(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=function(n){var a=e[n];if(!a)return"continue";c(a)?a.forEach((function(e){t.push(n+"="+e)})):t.push(n+"="+a)};for(var a in e)n(a);return t.join("&")};function h(e,t){var n=p(t);return d(n)?e:e+"?"+n}},cd83:function(e,t,n){},d22e:function(e,t,n){"use strict";n.d(t,"o",(function(){return y})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return x})),n.d(t,"n",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"j",(function(){return C})),n.d(t,"l",(function(){return S})),n.d(t,"i",(function(){return K})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return N})),n.d(t,"g",(function(){return $})),n.d(t,"h",(function(){return P})),n.d(t,"m",(function(){return T})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return L}));var a=n("2909"),r=n("3835"),o=n("b85c"),i=n("53ca"),s=n("2638"),c=n.n(s),d=n("15fd"),l=(n("fb6a"),n("a434"),n("99af"),n("4de4"),n("d3b7"),n("159b"),n("d81d"),n("4ec9"),n("3ca3"),n("ddb0"),n("b64b"),n("d96e")),u=n.n(l),p=n("0464"),h=n("2b5d"),m=n("daa3"),f=["children"],g=.25,b=2,v=!1;function y(){v||(v=!0,u()(!1,"Tree only accept TreeNode as children."))}function k(e,t){var n=e.slice(),a=n.indexOf(t);return a>=0&&n.splice(a,1),n}function x(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function O(e){return e.split("-")}function w(e,t){return"".concat(e,"-").concat(t)}function j(e){return Object(m["o"])(e).isTreeNode}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(j)}function _(e){var t=Object(m["l"])(e)||{},n=t.disabled,a=t.disableCheckbox,r=t.checkable;return!(!n&&!a)||!1===r}function M(e,t){function n(a,r,o){var i=a?a.componentOptions.children:e,s=a?w(o.pos,r):0,c=C(i);if(a){var d=a.key;d||void 0!==d&&null!==d||(d=s);var l={node:a,index:r,pos:s,key:d,parentPos:o.node?o.pos:null};t(l)}c.forEach((function(e,t){n(e,t,{node:a,pos:s})}))}n(null)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=e.map(t);return 1===n.length?n[0]:n}function K(e,t){var n=Object(m["l"])(t),a=n.eventKey,r=n.pos,o=[];return M(e,(function(e){var t=e.key;o.push(t)})),o.push(a||r),o}function E(e,t){var n=e.clientY,a=t.$refs.selectHandle.getBoundingClientRect(),r=a.top,o=a.bottom,i=a.height,s=Math.max(i*g,b);return n<=r+s?-1:n>=o-s?1:0}function N(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{props:Object(p["a"])(e,["on","key","class","className","style"]),on:e.on||{},class:e.class||e.className,style:e.style,key:e.key}};function $(e,t,n){if(!t)return[];var a=n||{},r=a.processProps,o=void 0===r?A:r,i=Array.isArray(t)?t:[t];return i.map((function(t){var a=t.children,r=Object(d["a"])(t,f),i=$(e,a,n);return e(h["a"],c()([{},o(r)]),[i])}))}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,a=t.processEntity,r=t.onProcessFinished,o=new Map,i=new Map,s={posEntities:o,keyEntities:i};return n&&(s=n(s)||s),M(e,(function(e){var t=e.node,n=e.index,r=e.pos,c=e.key,d=e.parentPos,l={node:t,index:n,key:c,pos:r};o.set(r,l),i.set(c,l),l.parent=o.get(d),l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),a&&a(l,s)})),r&&r(s),s}function T(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(i["a"])(e))return u()(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function D(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new Map,s=new Map;function c(e){if(i.get(e)!==t){var a=n.get(e);if(a){var r=a.children,o=a.parent,d=a.node;if(!_(d)){var l=!0,u=!1;(r||[]).filter((function(e){return!_(e.node)})).forEach((function(e){var t=e.key,n=i.get(t),a=s.get(t);(n||a)&&(u=!0),n||(l=!1)})),t?i.set(e,l):i.set(e,!1),s.set(e,u),o&&c(o.key)}}}}function d(e){if(i.get(e)!==t){var a=n.get(e);if(a){var r=a.children,o=a.node;_(o)||(i.set(e,t),(r||[]).forEach((function(e){d(e.key)})))}}}function l(e){var a=n.get(e);if(a){var r=a.children,o=a.parent,s=a.node;i.set(e,t),_(s)||((r||[]).filter((function(e){return!_(e.node)})).forEach((function(e){d(e.key)})),o&&c(o.key))}else u()(!1,"'".concat(e,"' does not exist in the tree."))}(a.checkedKeys||[]).forEach((function(e){i.set(e,!0)})),(a.halfCheckedKeys||[]).forEach((function(e){s.set(e,!0)})),(e||[]).forEach((function(e){l(e)}));var p,h=[],m=[],f=Object(o["a"])(i);try{for(f.s();!(p=f.n()).done;){var g=Object(r["a"])(p.value,2),b=g[0],v=g[1];v&&h.push(b)}}catch(j){f.e(j)}finally{f.f()}var y,k=Object(o["a"])(s);try{for(k.s();!(y=k.n()).done;){var x=Object(r["a"])(y.value,2),O=x[0],w=x[1];!i.get(O)&&w&&m.push(O)}}catch(j){k.e(j)}finally{k.f()}return{checkedKeys:h,halfCheckedKeys:m}}function L(e,t){var n=new Map;function r(e){if(!n.get(e)){var a=t.get(e);if(a){n.set(e,!0);var o=a.parent,i=a.node,s=Object(m["l"])(i);s&&s.disabled||o&&r(o.key)}}}return(e||[]).forEach((function(e){r(e)})),Object(a["a"])(n.keys())}},d6e0:function(e,t,n){},d73b:function(e,t,n){"use strict";n.d(t,"a",(function(){return le})),n.d(t,"b",(function(){return ue}));n("d3b7"),n("3ca3"),n("ddb0");var a,r,o=function(){var e=this,t=e._self._c;return t("div",{class:["user-layout-wrapper",e.isMobile&&"mobile"]},[t("div",{staticClass:"container"},[t("router-view"),t("div",{staticClass:"footer"})],1)])},i=[],s=n("5530"),c=n("2f62"),d={computed:Object(s["a"])({},Object(c["c"])({isMobile:function(e){return e.app.isMobile}}))},l={name:"UserLayout",mixins:[d],mounted:function(){}},u=l,p=(n("24e1"),n("2877")),h=Object(p["a"])(u,o,i,!1,null,"2951c3e6",null),m=h.exports,f=function(){var e=this,t=e._self._c;return t("div",[t("router-view")],1)},g=[],b={name:"BlankLayout"},v=b,y=Object(p["a"])(v,f,g,!1,null,"7f25f9eb",null),k=(y.exports,function(){var e=this,t=e._self._c;return t("pro-layout",e._b({attrs:{title:e.storeInfo.store_name,menus:e.menus,hasSubMenu:e.hasSubMenu,subMenus:e.subMenus,subMenuTitle:e.subMenuTitle,siderWidth:e.siderWidth,collapsed:e.collapsed,mediaQuery:e.query,isMobile:e.isMobile,handleMediaQuery:e.handleMediaQuery,handleCollapse:e.handleCollapse,logo:e.logoRender,i18nRender:e.i18nRender},scopedSlots:e._u([{key:"rightContentRender",fn:function(){return[t("right-content",{attrs:{"top-menu":"topmenu"===e.settings.layout,"is-mobile":e.isMobile,theme:e.settings.theme}})]},proxy:!0},{key:"footerRender",fn:function(){return[t("global-footer")]},proxy:!0}])},"pro-layout",e.settings,!1),[t("router-view")],1)}),x=[],O=(n("7db0"),n("b0c0"),n("33ca")),w=n("4ceb"),j=n("bf0f"),C=n("9fb0"),_=n("e819"),M=function(){var e=this,t=e._self._c;return t("div",{class:e.wrpCls},[t("avatar-dropdown",{class:e.prefixCls,attrs:{menu:e.showMenu,"current-user":e.currentUser}})],1)},S=[],K=n("ade3"),E=function(){var e=this,t=e._self._c;return e.currentUser?t("a-dropdown",{attrs:{placement:"bottomRight"},scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",{staticClass:"ant-pro-drop-down menu",attrs:{"selected-keys":[]}},[e.menu?t("a-menu-item",{key:"settings",on:{click:e.handleToSettings}},[t("a-icon",{attrs:{type:"setting"}}),e._v("账户设置 ")],1):e._e(),t("a-menu-item",{key:"logout",on:{click:e.handleLogout}},[t("a-icon",{attrs:{type:"logout"}}),e._v("退出登录 ")],1)],1)]},proxy:!0}],null,!1,3564529297)},[t("span",{staticClass:"ant-pro-account-avatar oneline-hide"},[t("a-icon",{style:{fontSize:"16px",marginRight:"5px"},attrs:{type:"user"}}),t("span",[e._v(e._s(e.currentUser.real_name||e.currentUser.user_name))])],1)]):t("span",[t("a-spin",{style:{marginLeft:8,marginRight:8},attrs:{size:"small"}})],1)},N=[],A=(n("cd17"),n("ed3b")),$={name:"AvatarDropdown",props:{currentUser:{type:Object,default:function(){return null}},menu:{type:Boolean,default:!0}},methods:{handleToSettings:function(){this.$router.push({path:"/manage/renew"})},handleLogout:function(e){var t=this;A["a"].confirm({title:"友情提示",content:"真的要注销登录吗 ?",onOk:function(){return t.$store.dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),200)}))},onCancel:function(){}})}}},P=$,T=(n("9868"),Object(p["a"])(P,E,N,!1,null,"5fd74d0e",null)),D=T.exports,L={name:"RightContent",components:{AvatarDropdown:D},props:{prefixCls:{type:String,default:"ant-pro-global-header-index-action"},isMobile:{type:Boolean,default:function(){return!1}},topMenu:{type:Boolean,required:!0},theme:{type:String,required:!0}},data:function(){var e=this.$store.getters.userInfo;return{showMenu:!0,currentUser:e}},computed:{wrpCls:function(){return Object(K["a"])({"ant-pro-global-header-index-right":!0},"ant-pro-global-header-index-".concat(this.isMobile||!this.topMenu?"light":this.theme),!0)}},mounted:function(){}},R=L,H=Object(p["a"])(R,M,S,!1,null,null,null),z=H.exports,F=function(){var e=this,t=e._self._c;return e.visibility?t("global-footer",{staticClass:"footer custom-render",scopedSlots:e._u([{key:"links",fn:function(){},proxy:!0},{key:"copyright",fn:function(){},proxy:!0}],null,!1,2460324447)}):e._e()},q=[],I=function(e){e=unescape(e);for(var t=String.fromCharCode(e.charCodeAt(0)-e.length),n=1;n-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)})),Object(w["f"])(this.settings.primaryColor)},methods:{i18nRender:j["b"],getStoreInfo:function(){var e=this;O["a"]().then((function(t){var n=t.data.storeInfo;e.storeInfo=n}))},updateSider:function(){var e=this.$route.matched[1].name,t=this.menus.find((function(t){return t.name===e}));this.subMenus=t&&t.children||[],this.hasSubMenu=this.subMenus.length>0,this.siderWidth=this.subMenus.length>0?280:160,this.subMenuTitle=t&&t.meta.title},handleMediaQuery:function(e){this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,n=e.value;switch(t&&(this.settings[t]=n),t){case"contentWidth":this.settings[t]="Fixed"===n;break;case"layout":"sidemenu"===n?this.settings.contentWidth=!1:(this.settings.fixSiderbar=!1,this.settings.contentWidth=!0);break}},logoRender:function(){var e=this.$createElement;return e(Y.a)}}},Z=Q,J=(n("8477"),Object(p["a"])(Z,k,x,!1,null,null,null)),X=J.exports,ee={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=this.$store.getters,a=e("keep-alive",[e("router-view")]),r=e("router-view");return(n.multiTab||t.keepAlive)&&(this.keepAlive||n.multiTab||t.keepAlive)?a:r}},te=ee,ne=Object(p["a"])(te,a,r,!1,null,null,null),ae=(ne.exports,function(){var e=this,t=e._self._c;return t("page-header-wrapper",[t("router-view")],1)}),re=[],oe={name:"PageView"},ie=oe,se=Object(p["a"])(ie,ae,re,!1,null,null,null),ce=(se.exports,n("04b3")),de={name:"RouteView",render:function(e){return e("router-view")}},le=[{path:"/",name:"root",component:X,children:[{path:"/index",name:"index",component:function(){return n.e("index").then(n.bind(null,"0a0d"))},meta:{title:"首页",keepAlive:!0,icon:ce["f"],permission:["/index"]}},{path:"/manage",name:"manage",component:de,redirect:"/manage/user/index",meta:{title:"管理员",icon:ce["g"],permission:["/manage"]},children:[{path:"/manage/user/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"b484"))},meta:{title:"管理员列表",keepAlive:!1,permission:["/manage/user/index"]}},{path:"/manage/role/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"759b"))},meta:{title:"角色管理",keepAlive:!1,permission:["/manage/role/index"]}}]},{path:"/card",name:"card",component:de,redirect:"/card/index",meta:{title:"实体兑换卡",icon:ce["l"],permission:["/card"]},children:[{path:"/card/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("card")]).then(n.bind(null,"1043"))},meta:{title:"兑换卡列表",keepAlive:!1,permission:["/card/index"]}},{path:"/card/print",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("card")]).then(n.bind(null,"bd70"))},meta:{title:"打印下载列表",keepAlive:!1,permission:["/card/print"]}}]},{path:"/store",name:"store",component:de,redirect:"/store/setting",meta:{title:"店铺管理",icon:ce["l"],permission:["/store"]},children:[{path:"/store/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("store")]).then(n.bind(null,"976c"))},meta:{title:"店铺设置",keepAlive:!1,permission:["/store/setting"]}},{path:"/store/address/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("store")]).then(n.bind(null,"f30f"))},meta:{title:"地址管理",keepAlive:!1,permission:["/store/address/index"]}},{path:"/page",component:de,redirect:"/page/index",meta:{title:"店铺页面",keepAlive:!1,permission:["/page"]},children:[{path:"/page/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"0773"))},meta:{title:"页面设计",keepAlive:!1,permission:["/page/index"]},activePath:["/page/create","/page/update"]},{path:"/page/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"ead9"))},meta:{title:"新增页面",keepAlive:!1,permission:["/page/create"]},hidden:!0},{path:"/page/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"c207"))},meta:{title:"编辑页面",keepAlive:!1,permission:["/page/update"]},hidden:!0},{path:"/page/category",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("page")]).then(n.bind(null,"b043"))},meta:{title:"分类模板",keepAlive:!1,permission:["/page/category"]}}]}]},{path:"/goods",name:"goods",component:de,redirect:"/goods/index",meta:{title:"商品管理",icon:ce["c"],permission:["/goods"]},children:[{path:"/goods/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"1788"))},meta:{title:"商品列表",keepAlive:!1,permission:["/goods/index"]},activePath:["/goods/create","/goods/update"]},{path:"/goods/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"f11f"))},meta:{title:"创建商品",keepAlive:!1,permission:["/goods/create"]},hidden:!0},{path:"/goods/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"c1df6"))},meta:{title:"编辑商品",keepAlive:!1,permission:["/goods/update"]},hidden:!0},{path:"/goods/category/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"3686"))},meta:{title:"商品分类",keepAlive:!1,permission:["/goods/category/index"]}},{path:"/goods/comment/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"acbe"))},meta:{title:"商品评价",keepAlive:!1,permission:["/goods/comment/index"]}}]},{path:"/merchant",name:"merchant",component:de,redirect:"/merchant/index",meta:{title:"代理商管理",icon:ce["l"],permission:["/merchant"]},children:[{path:"/merchant/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"796a"))},meta:{title:"代理商列表",keepAlive:!1,permission:["/merchant/index"]},activePath:["/merchant/create","/merchant/update"]},{path:"/merchant/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"1a56"))},meta:{title:"发券订单",keepAlive:!1,permission:["/merchant/order/index"]}},{path:"/merchant/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"43de"))},meta:{title:"创建代理商",keepAlive:!1,permission:["/merchant/create"]},hidden:!0},{path:"/merchant/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"9f8e"))},meta:{title:"编辑代理商",keepAlive:!1,permission:["/merchant/update"]},hidden:!0},{path:"/merchant/balance",component:de,redirect:"/merchant/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/merchant/balance"]},children:[{path:"/merchant/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"b672"))},meta:{title:"余额明细",keepAlive:!1,permission:["/merchant/balance/index"]}}]}]},{path:"/order",name:"order",component:de,redirect:"/order/list/all",meta:{title:"订单管理",icon:ce["j"],permission:["/order"]},children:[{path:"/order/list/all",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"全部订单",keepAlive:!1,permission:["/order/list/all"]}},{path:"/order/list/oil",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"油券订单",keepAlive:!1,permission:["/order/list/all"]}},{path:"/order/list/coupon",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("goods~order"),n.e("order")]).then(n.bind(null,"fecbd"))},meta:{title:"优惠券订单",keepAlive:!1,permission:["/order/list/all"]}}]},{path:"/promotion",name:"promotion",component:de,meta:{title:"分销管理",icon:ce["j"],permission:["/promotion"]},children:[{path:"/promotion/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"d8cc"))},meta:{title:"代理商列表",keepAlive:!1,permission:["/promotion/index"]}},{path:"/promotion/commission",component:de,redirect:"/promotion/order/index",meta:{title:"佣金记录",keepAlive:!1,permission:["/promotion/commission"]},moduleKey:"promotion-commission",children:[{path:"/promotion/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3728"))},meta:{title:"分销订单",keepAlive:!1,permission:["/promotion/order/index"]}}]}]},{path:"/checkout",name:"checkout",component:de,meta:{title:"结账管理",icon:ce["j"],permission:["/checkout"]},children:[{path:"/checkout/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"0e24"))},meta:{title:"结账记录",keepAlive:!1,permission:["/checkout/index"]}}]},{path:"/user",name:"user",component:de,meta:{title:"用户管理",icon:ce["m"],permission:["/user"]},children:[{path:"/user/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"dab6"))},meta:{title:"用户列表",keepAlive:!1,permission:["/user/index"]}},{path:"/user/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"3669"))},meta:{title:"创建用户",keepAlive:!1,permission:["/user/create"]},hidden:!0},{path:"/user/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"459d"))},meta:{title:"编辑用户",keepAlive:!1,permission:["/user/update"]},hidden:!0},{path:"/user/grade/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("user")]).then(n.bind(null,"7ad7"))},meta:{title:"会员等级",keepAlive:!1,permission:["/user/grade/index"]}},{path:"/user/balance",component:de,redirect:"/user/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/user/balance"]},children:[{path:"/user/recharge/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"66c9"))},meta:{title:"充值记录",keepAlive:!1,permission:["/user/recharge/index"]}},{path:"/user/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"4a98"))},meta:{title:"余额明细",keepAlive:!1,permission:["/user/balance/index"]}}]}]},{path:"/partners",name:"partners",component:de,redirect:"/partners/index",meta:{title:"合作商管理",icon:ce["l"],permission:["/partners"]},children:[{path:"/partners/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"a11a"))},meta:{title:"合作商列表",keepAlive:!1,permission:["/partners/index"]},activePath:["/partners/create","/partners/update"]},{path:"/partners/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"5cd2"))},meta:{title:"创建合作商",keepAlive:!1,permission:["/partners/create"]},hidden:!0},{path:"/partners/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"bba5"))},meta:{title:"编辑合作商",keepAlive:!1,permission:["/partners/update"]},hidden:!0},{path:"/partners/order/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"98fc"))},meta:{title:"订单列表",keepAlive:!1,permission:["/partners/order/index"]}},{path:"/qyt/driver/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"9a97"))},meta:{title:"司机管理",keepAlive:!1,permission:["/qyt/driver/index"]}},{path:"/qyt/invoice/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("goods~order"),n.e("goods")]).then(n.bind(null,"b06c"))},meta:{title:"发票管理",keepAlive:!1,permission:["/qyt/invoice/index"]}},{path:"/partners/balance",component:de,redirect:"/partners/balance/index",meta:{title:"余额记录",keepAlive:!1,permission:["/partners/balance"]},children:[{path:"/partners/balance/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"64a2"))},meta:{title:"余额明细",keepAlive:!1,permission:["/partners/balance/index"]}}]}]},{path:"/content",name:"content",component:de,meta:{title:"内容管理",icon:ce["b"],permission:["/content"]},children:[{path:"/content/article",component:de,redirect:"/content/article/index",meta:{title:"文章管理",keepAlive:!1,permission:["/content/article"]},children:[{path:"/content/article/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"98bf"))},meta:{title:"文章列表",keepAlive:!1,permission:["/content/article/index"]}},{path:"/content/article/category/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3226"))},meta:{title:"文章分类",keepAlive:!1,permission:["/content/article/category/index"]}}]},{path:"/content/files",component:de,redirect:"/content/files/index",meta:{title:"文件库管理",keepAlive:!1,permission:["/content/files"]},children:[{path:"/content/files/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"2b0e8"))},meta:{title:"文件列表",keepAlive:!1,permission:["/content/files/index"]}},{path:"/content/files/group/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"bae3"))},meta:{title:"文件分组",keepAlive:!1,permission:["/content/files/group/index"]}}]},{path:"/content/help/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"d1d6"))},meta:{title:"帮助中心",keepAlive:!1,permission:["/content/help/index"]}}]},{path:"/market",name:"market",component:de,meta:{title:"营销管理",icon:ce["h"],permission:["/market"]},children:[{path:"/market/coupon",component:de,redirect:"/market/coupon/index",meta:{title:"优惠券",keepAlive:!1,permission:["/market/coupon"]},children:[{path:"/market/coupon/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"164a"))},meta:{title:"优惠券列表",keepAlive:!1,permission:["/market/coupon/index"]},activePath:["/market/coupon/create","/market/coupon/update"]},{path:"/market/coupon/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"c24e"))},meta:{title:"创建优惠券",keepAlive:!1,permission:["/market/coupon/create"]},hidden:!0},{path:"/market/coupon/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"0b60"))},meta:{title:"编辑优惠券",keepAlive:!1,permission:["/market/coupon/update"]},hidden:!0},{path:"/market/coupon/receive/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"3d2f"))},meta:{title:"领券记录",keepAlive:!1,permission:["/market/coupon/receive/index"]}}]},{path:"/market/recharge",component:de,redirect:"/market/recharge/setting",meta:{title:"会员充值",keepAlive:!1,permission:["/market/recharge"]},children:[{path:"/market/recharge/plan/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"6ad7"))},meta:{title:"充值套餐",keepAlive:!1,permission:["/market/recharge/plan/index"]}},{path:"/market/recharge/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"3095"))},meta:{title:"充值设置",keepAlive:!1,permission:["/market/recharge/setting"]}}]},{path:"/market/share",component:de,redirect:"/market/share/setting",meta:{title:"余额分享",keepAlive:!1,permission:["/market/share"]},children:[{path:"/market/share/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"6801"))},meta:{title:"分享设置",keepAlive:!1,permission:["/market/share/setting"]}}]},{path:"/market/exchange",component:de,redirect:"/market/exchange/setting",meta:{title:"实体卡兑换",keepAlive:!1,permission:["/market/exchange"]},children:[{path:"/market/exchange/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("market")]).then(n.bind(null,"7ec7"))},meta:{title:"兑换设置",keepAlive:!1,permission:["/market/exchange/setting"]}}]}]},{path:"/client",name:"client",component:de,meta:{title:"客户端",keepAlive:!0,icon:ce["i"],iconStyle:{fontSize:"17.2px",color:"#36b313"},permission:["/client"]},children:[{path:"/client/register",component:function(){return n.e("client").then(n.bind(null,"8c72"))},meta:{title:"注册设置",keepAlive:!1,permission:["/client/register"]}},{path:"/client/wxapp",component:de,redirect:"/client/wxapp/setting",meta:{title:"微信小程序",keepAlive:!1,permission:["/client/wxapp"]},children:[{path:"/client/wxapp/setting",component:function(){return n.e("client").then(n.bind(null,"e36a"))},meta:{title:"小程序设置",keepAlive:!1,permission:["/client/wxapp/setting"]}}]},{path:"/client/h5",component:de,redirect:"/client/h5/setting",meta:{title:"H5端",keepAlive:!1,permission:["/client/h5"]},children:[{path:"/client/h5/setting",component:function(){return n.e("client").then(n.bind(null,"2fa9"))},meta:{title:"站点设置",keepAlive:!1,permission:["/client/h5/setting"]}}]}]},{path:"/setting",name:"setting",component:de,redirect:"/setting/store/basic",meta:{title:"设置",icon:ce["k"],permission:["/setting"]},children:[{path:"/setting/trade",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a6b6"))},meta:{title:"参数设置",keepAlive:!1,permission:["/setting/trade"]}},{path:"/qyt/enterprise/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a8bf"))},meta:{title:"企业管理",keepAlive:!1,permission:["/qyt/enterprise/index"]}},{path:"/setting/qyt",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"c7de"))},meta:{title:"企油通对接",keepAlive:!1,permission:["/setting/qyt"]}},{path:"/setting/promotion",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"14b5"))},meta:{title:"分销设置",keepAlive:!1,permission:["/setting/promotion"]}},{path:"/setting/storage",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"c5b8"))},meta:{title:"上传设置",keepAlive:!1,permission:["/setting/storage"]}},{path:"/setting/sms",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("setting")]).then(n.bind(null,"a85e"))},meta:{title:"短信通知",keepAlive:!1,permission:["/setting/sms"]}},{path:"/setting/delivery",component:de,redirect:"/setting/delivery/setting",meta:{title:"配送设置",keepAlive:!1,permission:["/setting/delivery"]},children:[{path:"/setting/delivery/setting",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"0b43a"))},meta:{title:"配送方式",keepAlive:!1,permission:["/setting/delivery/setting"]}},{path:"/setting/delivery/template/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"96ef"))},meta:{title:"运费模板",keepAlive:!1,permission:["/setting/delivery/template/index"]},activePath:["/setting/delivery/template/create","/setting/delivery/template/update"]},{path:"/setting/delivery/template/create",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"61e5"))},meta:{title:"新增运费模板",keepAlive:!1,permission:["/setting/delivery/template/create"]},hidden:!0},{path:"/setting/delivery/template/update",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"3833"))},meta:{title:"编辑运费模板",keepAlive:!1,permission:["/setting/delivery/template/update"]},hidden:!0},{path:"/setting/delivery/express/index",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"f4eb"))},meta:{title:"物流公司",keepAlive:!1,permission:["/setting/delivery/express/index"]}}]},{path:"/setting/other",component:de,redirect:"/setting/other/clear",meta:{title:"其他设置",keepAlive:!1,permission:["/setting/other"]},children:[{path:"/setting/other/clear",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("content")]).then(n.bind(null,"67ac"))},meta:{title:"清理缓存",keepAlive:!1,permission:["/setting/other/clear"]}}]}]}]},{name:"renew",path:"/manage",redirect:"/manage/renew",component:X,hidden:!0,meta:{title:"更新账户信息",keepAlive:!1},children:[{path:"renew",component:function(){return Promise.all([n.e("card~content~goods~manage~market~order~page~setting~store~user"),n.e("card~content~goods~manage~market~page~store~user"),n.e("manage")]).then(n.bind(null,"9dce"))}}]},{path:"*",redirect:"/404",hidden:!0}],ue=[{path:"/passport",component:m,redirect:"/passport/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return n.e("passport").then(n.bind(null,"cedc"))}}]},{path:"/404",component:function(){return n.e("exception").then(n.bind(null,"cc89"))}},{path:"/pay",component:function(){return n.e("exception").then(n.bind(null,"6ae7"))}}]},e819:function(e,t,n){"use strict";t["a"]={title:"Ant Design Pro",primaryColor:"#1890FF",navTheme:"dark",layout:"sidemenu",contentWidth:"Fixed",fixedHeader:!0,fixSiderbar:!0,autoHideHeader:!1,colorWeak:!1,multiTab:!1,production:!0}},e9ba:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024"},children:[{tag:"title"},{tag:"g",attrsMap:{id:"icomoon-ignore"}},{tag:"path",attrsMap:{d:"M1024 701v-504q0-53-26.5-98t-72-71.5-98.5-26.5h-630q-53 0-98.5 26.5t-72 71.5-26.5 98v630q0 54 26.5 99t72 71.5 98.5 26.5h630q47 0 88.5-21t69-58 36.5-83l-6-2q-276-120-391-174-71 86-143 127-81 46-182 46-69 0-123-26-53-26-80-70.5t-21-97.5q4-43 25-78 28-45 79-68 64-27 160-18 65 6 119 19 33 8 100 31l31 10q35-64 57-139h-398v-40h197v-70h-240v-44h240v-102l1-4q2-5 6.5-8.5t12.5-3.5h98v118h256v44h-256v70h209q-29 116-85 213 38 14 191 61l146 45M284 792q-69 0-111-26-35-21-48-56-12-28-7-52 5-21 20-41 18-22 45-35 31-15 70-15 70 0 139 19 66 18 145 56-55 72-119 110-66 40-134 40z"}}]})}},eb1e:function(e,t,n){var a=n("b2b7");e.exports={__esModule:!0,default:a.svgComponent({tag:"svg",attrsMap:{t:"1595299959859",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2081","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"500",height:"500"},children:[{tag:"defs"},{tag:"path",attrsMap:{d:"M286.72 290.133c17.067 0 30.72-13.653 30.72-34.133 0-105.813 95.573-170.667 191.147-170.667 92.16 0 194.56 71.68 194.56 170.667 0 20.48 13.653 34.133 30.72 34.133s30.72-13.653 30.72-34.133c0-139.947-136.534-238.933-256-238.933-122.88 0-256 88.746-256 238.933 3.413 17.067 17.066 34.133 34.133 34.133z m648.533 102.4c-17.066-20.48-44.373-34.133-71.68-34.133H160.427c-27.307 0-54.614 10.24-71.68 34.133-17.067 20.48-23.894 47.787-20.48 75.094L143.36 911.36c10.24 54.613 61.44 98.987 116.053 98.987h505.174c54.613 0 105.813-40.96 116.053-98.987l75.093-443.733c3.414-27.307-3.413-54.614-20.48-75.094z m-645.12 204.8c-27.306 0-51.2-23.893-51.2-51.2s23.894-51.2 51.2-51.2 51.2 23.894 51.2 51.2-23.893 51.2-51.2 51.2z m443.734 0c-27.307 0-51.2-23.893-51.2-51.2s23.893-51.2 51.2-51.2 51.2 23.894 51.2 51.2-23.894 51.2-51.2 51.2z","p-id":"2082"}}]})}},f544:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return l}));var a=n("b775"),r={info:"/store.user/info",list:"/store.user/list",add:"/store.user/add",edit:"/store.user/edit",delete:"/store.user/delete",renew:"/store.user/renew"};function o(e){return Object(a["b"])({url:r.info,method:"get",params:e})}function i(e){return Object(a["b"])({url:r.renew,method:"post",data:e})}function s(e){return Object(a["b"])({url:r.list,method:"get",params:e})}function c(e){return Object(a["b"])({url:r.add,method:"post",data:e})}function d(e){return Object(a["b"])({url:r.edit,method:"post",data:e})}function l(e){return Object(a["b"])({url:r.delete,method:"post",data:e})}},fddb:function(e,t,n){}}); \ No newline at end of file diff --git a/server-tp6/public/store/js/app.bcc9542b.js.gz b/server-tp6/public/store/js/app.bcc9542b.js.gz deleted file mode 100644 index 03ec8f3..0000000 Binary files a/server-tp6/public/store/js/app.bcc9542b.js.gz and /dev/null differ diff --git a/server-tp6/public/store/js/goods.8a836fa3.js b/server-tp6/public/store/js/goods.8a836fa3.js deleted file mode 100644 index 68f9ef5..0000000 --- a/server-tp6/public/store/js/goods.8a836fa3.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["goods"],{"03eb":function(e,t,a){},"0573":function(e,t,a){},"07d4":function(e,t,a){"use strict";a("3f22")},"07dd":function(e,t,a){},"08a5":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("a9e3"),a("2ef0")),s=a.n(i),o=a("e533");t["a"]={partnersId:null,formData:{partners:{}},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.partnersId=t,new Promise((function(a,r){Promise.all([e.getPartnersDetail(t)]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getPartnersDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){o["d"]({partnersId:t}).then((function(t){e.formData.partners=t.data.partnersInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.partners,t=s.a.pick(e,["partners_id","name","address","contact_name","contact_tel","appKey","callback","create_time"]);t.callback=t.callback.toString();var a=Number(e.qyt_enterprise_id||0);return Object(r["a"])(Object(r["a"])({},t),{},{qyt_enterprise_id:a>0?a:void 0})},setDefaultData:function(){}}},"12e9":function(e,t,a){"use strict";a("b91a")},1788:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品编码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsNo"],expression:"['goodsNo']"}],attrs:{placeholder:"请输入商品编码"}})],1),t("a-form-item",{attrs:{label:"商品分类"}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categoryId",{initialValue:0}],expression:"['categoryId', { initialValue: 0 }]"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"500px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.listType},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"all"}},[e._v("全部")]),t("a-radio-button",{attrs:{value:"on_sale"}},[e._v("出售中")]),t("a-radio-button",{attrs:{value:"off_sale"}},[e._v("已下架")]),t("a-radio-button",{attrs:{value:"sold_out"}},[e._v("已售罄")])],1)],1),e.$auth("/goods/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("创建商品")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-up"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!0)}}},[e._v("上架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-down"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!1)}}},[e._v("下架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"goods_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"goods_image",fn:function(e){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:e,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:e,alt:"商品图片"}})])])}},{key:"goods_name",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"oilCardType",fn:function(a){return t("span",{},[t("p",[e._v(e._s(e.OilCardTypeEnum[a].name))])])}},{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{staticClass:"cur-p",attrs:{color:10==a?"green":"red"},on:{click:function(t){return e.handleUpdateStatus([r.goods_id],10!=a)}}},[e._v(e._s(10==a?"上架":"下架"))])],1)}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("router-link",{attrs:{to:{path:"/goods/update",query:{goodsId:r.goods_id}}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.goods_id])}}},[e._v("删除")])],1)}}])})],1)},i=[],s=a("5530"),o=(a("d3b7"),a("ca00")),n=a("d084"),l=a("2af9"),c=a("8243"),u=a("4a95"),d=[{title:"商品ID",dataIndex:"goods_id"},{title:"省份",dataIndex:"province"},{title:"卡券类型",dataIndex:"oilCardType",scopedSlots:{customRender:"oilCardType"}},{title:"商品图片",dataIndex:"goods_image",scopedSlots:{customRender:"goods_image"}},{title:"商品名称",dataIndex:"goods_name",width:"200px",scopedSlots:{customRender:"goods_name"}},{title:"商品编码",dataIndex:"goods_no",width:"100px",scopedSlots:{customRender:"goods_no"}},{title:"商品价格",dataIndex:"goods_price_min",scopedSlots:{customRender:"goods_price_min"}},{title:"总销量",dataIndex:"sales_actual"},{title:"库存总量",dataIndex:"stock_total"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],m={name:"Index",components:{ContentHeader:l["a"],STable:l["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),categoryListTree:[],queryParam:{listType:"all"},isLoading:!1,columns:d,selectedRowKeys:[],loadData:function(t){return n["f"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},beforeCreate:function(){Object(o["a"])(this,{OilCardTypeEnum:u["c"]})},created:function(){this.$route.query.listType&&(this.queryParam.listType=this.$route.query.listType),this.getCategoryList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.listType=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},getCategoryList:function(){var e=this;this.isLoading=!0,c["a"].getListFromScreen().then((function(t){e.categoryListTree=t})).finally((function(t){e.isLoading=!1}))},handleUpdateStatus:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.$auth("/goods/index.status"))return!1;this.isLoading=!0,n["j"]({goodsIds:e,state:a}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){t.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return n["c"]({goodsIds:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/goods/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},p=m,f=(a("1ff6"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"e4020f40",null);t["default"]=h.exports},"1a56":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"用户电话"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入用户电话"}})],1),t("a-form-item",{attrs:{label:"订单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"log_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"order_type",fn:function(a){return t("span",{},[t("a-tag",[e._v(e._s(e.TypeEnum[a].name))])],1)}},{key:"goods",fn:function(e){return t("span",{},[t("GoodsItem",{attrs:{data:{image:e.images[0].file.preview_url,imageAlt:"商品图片",title:e.goods_name,goods_no:e.goods_no,goodsProps:e.goods_props}}})],1)}},{key:"user",fn:function(e){return t("span",{},[t("UserItem",{attrs:{user:e}})],1)}},{key:"merchant",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.name))])])}}])})],1)},i=[],s=a("5530"),o=a("b775"),n={list:"/merchant.order/list"};function l(e){return Object(o["b"])({url:n.list,method:"get",params:e})}var c=a("ab09"),u=a("5c06"),d=new u["a"]([{key:"TICKET",name:"油券",value:"zsy_ticket"},{key:"COUPON",name:"优惠券",value:"coupon"}]),m={name:"Index",components:{STable:c["b"],GoodsItem:c["a"],UserItem:c["c"]},data:function(){var e=this;return{TypeEnum:d,searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:[{title:"ID",dataIndex:"merchant_order_id"},{title:"订单编号",dataIndex:"order_no",scopedSlots:{customRender:"order_no"}},{title:"订单类型",dataIndex:"order_type",scopedSlots:{customRender:"order_type"}},{title:"订单金额",dataIndex:"order_price"},{title:"商品信息",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"代理商",dataIndex:"merchant",scopedSlots:{customRender:"merchant"}},{title:"管理员备注",width:"260px",dataIndex:"admin_remark"},{title:"订单时间",dataIndex:"create_time"}],loadData:function(t){return l(Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))}}},p=m,f=(a("91bf"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"bfa4e59e",null);t["default"]=h.exports},"1ff6":function(e,t,a){"use strict";a("94a3")},"24ba":function(e,t,a){},"252a":function(e,t,a){},"28d5":function(e,t,a){},"2aba":function(e,t,a){"use strict";a("c095")},"2e1c":function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return c}));var r=a("b775"),i={list:"/user.grade/list",all:"/user.grade/all",add:"/user.grade/add",edit:"/user.grade/edit",delete:"/user.grade/delete"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"2eff":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("2ef0")),s=a.n(i),o=a("fab29");t["a"]={userId:null,formData:{user:{},merchantList:[]},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.userId=t,new Promise((function(a,r){Promise.all([e.getUserDetail(t),e.getMerchantList()]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getUserDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){o["c"]({userId:t}).then((function(t){e.formData.user=t.data.userInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.user,t=s.a.pick(e,["user_id","userNo","userType","userIdCard","platform","create_time"]);return t.callback=t.callback.toString(),Object(r["a"])({},t)},getMerchantList:function(){var e=this;return new Promise((function(t,a){o["g"]().then((function(a){e.formData.merchantList=a.data.list,t()}))}))},setDefaultData:function(){}}},"335a":function(e,t,a){"use strict";a("565a")},3669:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商户",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["merchant_id",{rules:[{required:!0,message:"请选择商户"}]}],expression:"['merchant_id', {rules: [{required: true, message: '请选择商户'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择商户"}},e._l(e.formData.merchantList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.merchant_id}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"用户角色",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["userType",{rules:[{required:!0,message:"请选择用户角色"}]}],expression:"['userType', {rules: [{required: true, message: '请选择用户角色'}]}]"}],attrs:{placeholder:"请选择用户角色"}},e._l(["user","admin"],(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"用户名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['userName', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户名称"}})],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['mobile', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户手机号"}})],1),t("a-form-item",{attrs:{label:"用户身份证号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userIdCard",{rules:[{required:!1}]}],expression:"['userIdCard', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入用户身份证号"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d3b7"),a("fab29")),o=a("2eff"),n={components:{},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:o["a"].formData}},created:function(){var e=this;this.isLoading=!0,o["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},l=n,c=(a("d17a"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"95fdaa1e",null);t["default"]=u.exports},3686:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-button",{directives:[{name:"action",rawName:"v-action:add",arg:"add"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),e.isLoading?e._e():t("a-table",{attrs:{rowKey:"category_id",columns:e.columns,dataSource:e.categoryList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])])}}],null,!1,1032135766)}),t("AddForm",{ref:"AddForm",attrs:{categoryList:e.categoryList,provinceList:e.provinceList},on:{handleSubmit:e.handleRefresh}}),t("EditForm",{ref:"EditForm",attrs:{categoryList:e.categoryList,provinceList:e.provinceList},on:{handleSubmit:e.handleRefresh}})],1)},i=[],s=(a("d3b7"),a("2f71")),o=a("2af9"),n=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增商品分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}]})],1),t("a-form-item",{attrs:{label:"上级分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["parent_id",{initialValue:0}],expression:"['parent_id', {initialValue: 0}]"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"400px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("不限")]),e._l(e.provinceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}]})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', {initialValue: 1, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},l=[],c=(a("99af"),a("8243")),u={components:{SelectImage:o["e"]},props:{categoryList:{type:Array,required:!0},provinceList:{type:Array,required:!0}},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),categoryListTree:[]}},methods:{add:function(){this.visible=!0,this.getCategoryList()},getCategoryList:function(){var e=this.categoryList,t=c["a"].formatTreeData(e);this.categoryListTree=[{title:"顶级分类",key:0,value:0}].concat(t)},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["a"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},d=u,m=a("2877"),p=Object(m["a"])(d,n,l,!1,null,null,null),f=p.exports,h=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑商品分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}]})],1),t("a-form-item",{attrs:{label:"上级分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["parent_id"],expression:"['parent_id']"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"400px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("不限")]),e._l(e.provinceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},v=[],b=a("2ef0"),_=a.n(b),g={components:{SelectImage:o["e"]},props:{categoryList:{type:Array,required:!0},provinceList:{type:Array,required:!0}},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),categoryListTree:[],record:{}}},methods:{edit:function(e){this.visible=!0,this.record=e,this.getCategoryList(),this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(_.a.pick(e,["name","parent_id","image_id","status","province","sort"]))}))},getCategoryList:function(){var e=this.categoryList,t=c["a"].formatTreeData(e);this.categoryListTree=[{title:"顶级分类",key:0,value:0}].concat(t)},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["c"]({categoryId:this.record["category_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},C=g,y=Object(m["a"])(C,h,v,!1,null,null,null),w=y.exports,x=a("d084"),L={name:"Index",components:{STable:o["c"],AddForm:f,EditForm:w},data:function(){return{categoryList:[],provinceList:[],queryParam:{},isLoading:!1,columns:[{title:"分类ID",dataIndex:"category_id"},{title:"分类名称",dataIndex:"name"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"省份",dataIndex:"province"},{title:"排序",dataIndex:"sort"},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}]}},created:function(){this.getCategoryList(!0),this.getProvinceList()},methods:{getCategoryList:function(e){var t=this;e&&(this.isLoading=!0),s["d"]().then((function(e){t.categoryList=e.data.list})).finally((function(e){t.isLoading=!1}))},getProvinceList:function(){var e=this;return new Promise((function(t,a){x["i"]().then((function(a){e.provinceList=a.data.list,t()}))}))},handleAdd:function(){this.$refs.AddForm.add()},handleEdit:function(e){this.$refs.EditForm.edit(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return s["b"]({categoryId:e["category_id"]}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleRefresh:function(){this.getCategoryList()}}},S=L,k=Object(m["a"])(S,r,i,!1,null,null,null);t["default"]=k.exports},"38b4":function(e,t,a){"use strict";a("0573")},"39ad9":function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"g",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"c",(function(){return d}));var r=a("b775"),i={list:"/market.coupon/list",all:"/market.coupon/all",detail:"/market.coupon/detail",receive:"/market.coupon/receive",add:"/market.coupon/add",edit:"/market.coupon/edit",delete:"/market.coupon/delete"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.receive,method:"get",params:e})}function c(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"39f0":function(e,t,a){"use strict";a("9f7c")},"3f22":function(e,t,a){},"3f55":function(e,t,a){"use strict";a("28d5")},4207:function(e,t,a){"use strict";a("6ab0")},4211:function(e,t,a){"use strict";a("60be")},"43de":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商名称"}})],1),t("a-form-item",{attrs:{label:"代理商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d3b7"),a("c519")),o=a("86e8"),n={components:{},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:o["a"].formData}},created:function(){var e=this;this.isLoading=!0,o["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},l=n,c=(a("b551"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"0519cf39",null);t["default"]=u.exports},"459d":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商户",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["merchant_id",{rules:[{required:!0,message:"请选择商户"}]}],expression:"['merchant_id', {rules: [{required: true, message: '请选择商户'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择商户"}},e._l(e.formData.merchantList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.merchant_id}},[e._v(e._s(a.name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/shop/create"}}},[e._v("新增店铺")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadShopList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"用户角色",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["userType",{rules:[{required:!0,message:"请选择用户角色"}]}],expression:"['userType', {rules: [{required: true, message: '请选择用户角色'}]}]"}],attrs:{placeholder:"请选择用户角色"}},e._l(["user","admin"],(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"用户名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['userName', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户名称"}})],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['mobile', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户手机号"}})],1),t("a-form-item",{attrs:{label:"用户身份证号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userIdCard",{rules:[{required:!1}]}],expression:"['userIdCard', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入用户身份证号"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d3b7"),a("fab29")),o=a("2af9"),n=a("2eff"),l=a("ca00"),c={components:{InputNumberGroup:o["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),userId:null,formData:n["a"].formData}},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.user={}},methods:{initData:function(){var e=this;this.userId=this.$route.query.userId,this.isLoading=!0,n["a"].getFromData(this.userId).then((function(){Object(l["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["d"]({userId:this.userId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("b126"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"a3fe5cd4",null);t["default"]=m.exports},"45b7":function(e,t,a){"use strict";a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-form-item",{attrs:{label:"优惠券",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"sku-batch"},[t("a-button",{on:{click:e.handleAddCoupon}},[e._v("添加优惠券")])],1),t("a-table",{staticClass:"sku-list",attrs:{columns:e.columns,dataSource:e.multiCouponData,scroll:{x:!0},pagination:!1,bordered:"",rowKey:"row_id"},scopedSlots:e._u([{key:"coupon_id",fn:function(a,r){return[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择优惠券"},on:{change:e.emitChange},model:{value:r.coupon_id,callback:function(t){e.$set(r,"coupon_id",t)},expression:"item.coupon_id"}},e._l(e.couponList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.coupon_id}},[e._v(" "+e._s(a.name)+" ")])})),1)]}},{key:"send_num",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:0},on:{change:e.emitChange},model:{value:r.send_num,callback:function(t){e.$set(r,"send_num",t)},expression:"item.send_num"}})]}},{key:"action",fn:function(a,r){return[t("a",{on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])]}}])})],1)],1)},i=[],s=a("5530"),o=(a("d81d"),a("4de4"),a("d3b7"),a("4d91")),n=[{title:"优惠券",dataIndex:"coupon_id",width:120,scopedSlots:{customRender:"coupon_id"}},{title:"数量",dataIndex:"send_num",width:120,scopedSlots:{customRender:"send_num"}},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],l={props:{couponList:o["a"].any,defaultCouponList:o["a"].array.def([]),isCouponLocked:o["a"].bool.def(!1)},data:function(){return{columns:n,labelCol:{span:3},wrapperCol:{span:21},multiCouponData:[]}},watch:{defaultCouponList:function(e){e.length&&this.getData()}},created:function(){this.getData()},methods:{getData:function(){this.multiCouponData=this.defaultCouponList.map((function(e,t){return Object(s["a"])(Object(s["a"])({},e),{},{row_id:e.row_id||Date.now()+t})})),this.emitChange()},handleAddCoupon:function(){this.multiCouponData.push({coupon_id:null,send_num:1,row_id:Date.now()}),this.emitChange()},handleDelete:function(e){this.multiCouponData=this.multiCouponData.filter((function(t){return t!==e})),this.emitChange()},emitChange:function(){this.$emit("change",this.multiCouponData)}}},c=l,u=(a("4207"),a("2877")),d=Object(u["a"])(c,r,i,!1,null,"c7587ee2",null);t["a"]=d.exports},4603:function(e,t,a){"use strict";a("dd9f")},5193:function(e,t,a){},"52ea":function(e,t,a){"use strict";a("07dd")},"55c4":function(e,t,a){"use strict";a("ab64")},"565a":function(e,t,a){},"5b64":function(e,t,a){"use strict";a("f040")},"5bd3":function(e,t,a){},"5cd2":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"合作商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商名称"}})],1),t("a-form-item",{attrs:{label:"合作商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1),t("a-form-item",{attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["callback",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['callback', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入回调地址"}})],1),t("a-form-item",{attrs:{label:"企油通企业",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id"],expression:"['qyt_enterprise_id']"}],attrs:{placeholder:"不选则使用默认企业",allowClear:""}},e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+")"+e._s(a.is_default?" · 默认":"")+" ")])})),1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("该合作商下单时使用哪个企业的对接参数与支付通道。留空则走默认企业。")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=a("5530"),o=(a("d3b7"),a("e533")),n=a("763d"),l=a("08a5"),c={data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:l["a"].formData,enterpriseList:[]}},created:function(){var e=this;this.getEnterpriseList(),this.isLoading=!0,l["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{getEnterpriseList:function(){var e=this;n["g"]().then((function(t){e.enterpriseList=t.data.list}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["a"]({form:Object(s["a"])(Object(s["a"])({},e),{},{qyt_enterprise_id:e.qyt_enterprise_id||0})}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("784f"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"41360aa9",null);t["default"]=m.exports},"60be":function(e,t,a){},6162:function(e,t,a){"use strict";a("bb0b")},"62cd":function(e,t,a){},"62da":function(e,t,a){"use strict";a("03eb")},"6a27":function(e,t,a){},"6ab0":function(e,t,a){},7367:function(e,t,a){"use strict";a("5bd3")},"761a":function(e,t,a){"use strict";a("252a")},"763d":function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"g",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return d})),a.d(t,"i",(function(){return m})),a.d(t,"j",(function(){return p})),a.d(t,"c",(function(){return f}));var r=a("b775"),i={list:"/qyt.enterprise/list",options:"/qyt.enterprise/options",detail:"/qyt.enterprise/detail",add:"/qyt.enterprise/add",edit:"/qyt.enterprise/edit",delete:"/qyt.enterprise/delete",setDefault:"/qyt.enterprise/setDefault",apply:"/qyt.enterprise/apply",syncAccount:"/qyt.enterprise/syncAccount",syncList:"/qyt.enterprise/syncList",balance:"/qyt.enterprise/balance"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.options,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.setDefault,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.apply,method:"post",data:e})}function m(e){return Object(r["b"])({url:i.syncAccount,method:"post",data:e})}function p(e){return Object(r["b"])({url:i.syncList,method:"post",data:e})}function f(e){return Object(r["b"])({url:i.balance,method:"get",params:e})}},"77e1":function(e,t,a){},"784f":function(e,t,a){"use strict";a("77e1")},"796a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键字搜索"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"代理商编号/代理商名称/代理商地址/联系人/联系电话"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[e.$auth("/merchant/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"merchant_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"address",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:qrCode",arg:"qrCode"}],attrs:{title:"推广码"},on:{click:function(t){return e.handleQrCode(r)}}},[e._v("推广码")]),t("a",{directives:[{name:"action",rawName:"v-action:recharge",arg:"recharge"}],attrs:{title:"代理商充值"},on:{click:function(t){return e.handleRecharge(r)}}},[e._v("充值")]),e.$auth("/merchant/update")?t("router-link",{attrs:{to:{path:"/merchant/update",query:{merchantId:r.merchant_id}}}},[e._v("编辑")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.merchant_id])}}},[e._v("删除")]),t("a",{directives:[{name:"action",rawName:"v-action:sendCoupon",arg:"sendCoupon"}],attrs:{title:"抖音发券"},on:{click:function(t){return e.handleSendCoupon(r)}}},[e._v("抖音发券")])],1)}}])}),t("RechargeForm",{ref:"RechargeForm",on:{handleSubmit:e.handleRefresh}}),t("ApiParaForm",{ref:"ApiParaForm",on:{handleSubmit:e.handleRefresh}}),t("QrCodeForm",{ref:"QrCodeForm",on:{handleSubmit:e.handleRefresh}}),t("SendCouponForm",{ref:"SendCouponForm",attrs:{coupongoods:e.couponGoodsData},on:{handleSubmit:e.handleRefresh}})],1)},i=[],s=a("5530"),o=(a("d3b7"),a("c519")),n=a("d084"),l=a("2af9"),c=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"充值余额"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.merchant_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前余额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.balance))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终金额")])],1)],1),t("a-form-item",{attrs:{label:"变更金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".money"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金额"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.money`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金额' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2)],1)],1)],1)],1)},u=[],d="balance",m="points",p={components:{},data:function(){return{title:"商户充值",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:d,RECHARGE_TYPE_BALANCE:d,RECHARGE_TYPE_POINTS:m,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record,r=this.activeKey;this.confirmLoading=!0,o["h"]({merchantId:a.merchant_id,target:r,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},f=p,h=(a("4211"),a("2877")),v=Object(h["a"])(f,c,u,!1,null,"40cf6f79",null),b=v.exports,_=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:900,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"商户对接参数"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.orgNo))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户appKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.appKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户私钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.privateKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户公钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.publicKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.callback))])])]:e._e()],2)],1)],1)],1)],1)},g=[],C="balance",y={components:{},data:function(){return{title:"商户对接参数",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:C,RECHARGE_TYPE_BALANCE:C,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},w=y,x=(a("b38a"),Object(h["a"])(w,_,g,!1,null,"1f16853b",null)),L=x.exports,S=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:500,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[e.qrcode?t("img",{attrs:{width:"260",src:e.qrcode,alt:"推广码"}}):e._e()])],1)},k=[],D={components:{},data:function(){return{title:"推广码",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,record:{},qrcode:{}}},methods:{handle:function(e){this.visible=!0,this.record=e,this.getMerchantQrcode(e.merchant_id)},getMerchantQrcode:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){o["g"]({merchantId:t}).then((function(t){e.qrcode=t.data.data,a()}))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},q=D,I=(a("ec78"),Object(h["a"])(q,S,k,!1,null,"7c0c56a0",null)),F=I.exports,N=(a("b0c0"),function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[[t("a-form-item",{staticClass:"mb-5",attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.name))])]),t("a-form-item",{attrs:{label:"发券商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_id",{rules:[{required:!0,message:"请选择发券商品"}],initialValue:e.coupongoods.length?e.coupongoods[0].goods_id:void 0}],expression:"[`goods_id`, {rules: [{required: true, message: '请选择发券商品'}], initialValue: coupongoods.length ? coupongoods[0].goods_id : undefined }]"}],staticStyle:{width:"300px"}},e._l(e.coupongoods,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.goods_id}},[e._v(e._s(a.goods_name))])})),1)],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{initialValue:"",rules:[{required:!0,message:"请输入用户手机号"}]}],expression:"[`phone`, { initialValue: '', rules: [{ required: true, message: '请输入用户手机号' }] }]"}],staticStyle:{width:"300px"}})],1),t("a-form-item",{attrs:{label:"订单备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{message:"请输入订单备注"}]}],expression:"[`remark`, { rules: [{ message: '请输入订单备注' }] }]"}],attrs:{placeholder:"请输入订单备注",rows:3}})],1)]],2)],1)],1)}),R=[],O={components:{},props:{coupongoods:{type:Array,required:!0}},data:function(){return{title:"抖音发券",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record;this.confirmLoading=!0,o["i"]({merchantId:a.merchant_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},j=O,$=(a("38b4"),Object(h["a"])(j,N,R,!1,null,"87d98050",null)),V=$.exports,T=a("ca00"),E=[{title:"代理商ID",width:"70px",dataIndex:"merchant_id"},{title:"代理商编号",width:"150px",dataIndex:"orgNo"},{title:"代理商名称",width:"150px",dataIndex:"name"},{title:"代理商地址",width:"200px",dataIndex:"address"},{title:"联系人",width:"150px",dataIndex:"contact_name"},{title:"联系电话",width:"150px",dataIndex:"contact_tel"},{title:"余额",width:"150px",dataIndex:"balance"},{title:"今日发券金额",width:"150px",dataIndex:"day_money"},{title:"发券总金额",width:"150px",dataIndex:"total_money"},{title:"创建时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"300px",fixed:"right",scopedSlots:{customRender:"action"}}],K={name:"Index",components:{ContentHeader:l["a"],RechargeForm:b,ApiParaForm:L,QrCodeForm:F,SendCouponForm:V,STable:l["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:E,selectedRowKeys:[],loadData:function(t){return o["f"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))},couponGoodsData:[]}},beforeCreate:function(){Object(T["a"])(this,{inArray:T["d"]})},created:function(){this.getCouponGoods()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},handleRecharge:function(e){this.$refs.RechargeForm.handle(e)},handleQrCode:function(e){this.$refs.QrCodeForm.handle(e)},handleApiPara:function(e){this.$refs.ApiParaForm.handle(e)},handleSendCoupon:function(e){this.$refs.SendCouponForm.handle(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return o["c"](e).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/merchant/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)},getCouponGoods:function(){var e=this;this.isLoading=!0,n["b"]({province:"",oilCardType:"coupon"}).then((function(t){e.couponGoodsData=t.data.list})).finally((function(){e.isLoading=!1}))}}},A=K,P=(a("55c4"),Object(h["a"])(A,r,i,!1,null,"0dc99bb3",null));t["default"]=P.exports},8430:function(e,t,a){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",[t("a-form-item",{attrs:{label:"商品规格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"form-item-help",staticStyle:{"line-height":"36px"}},[t("small",[e._v("最多添加3个商品规格组,生成的SKU数量不能超出50个")])]),e._l(e.multiSpecData.specList,(function(a,r){return t("div",{key:r,staticClass:"spec-group"},[t("div",{staticClass:"spec-group-item clearfix"},[t("a-input",{staticClass:"group-item-input",attrs:{readOnly:e.isSpecLocked,placeholder:"请输入规格名称"},on:{change:e.onChangeSpecGroupIpt},model:{value:a.spec_name,callback:function(t){e.$set(a,"spec_name",t)},expression:"item.spec_name"}}),e.isSpecLocked?e._e():t("a",{staticClass:"group-item-delete",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDeleteSpecGroup(r)}}},[e._v("删除规格组")])],1),t("div",{staticClass:"spec-value clearfix"},[e._l(a.valueList,(function(a,i){return t("div",{key:i,staticClass:"spec-value-item"},[t("a-input",{staticClass:"value-item-input",attrs:{readOnly:e.isSpecLocked,placeholder:"请输入规格值"},on:{change:e.onChangeSpecValueIpt},model:{value:a.spec_value,callback:function(t){e.$set(a,"spec_value",t)},expression:"itm.spec_value"}}),e.isSpecLocked?e._e():t("a-icon",{staticClass:"icon-close",attrs:{theme:"filled",type:"close-circle"},on:{click:function(t){return e.handleDeleteSpecValue(r,i)}}})],1)})),e.isSpecLocked?e._e():t("div",{staticClass:"spec-value-add"},[t("a",{staticClass:"group-item-delete",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleAddSpecValue(r)}}},[e._v("新增规格值")])])],2)])})),!e.isSpecLocked&&e.multiSpecData.specList.length<3?t("a-button",{staticClass:"spec-group-add-btn",attrs:{icon:"plus"},on:{click:e.handleAddSpecGroup}},[e._v("添加规格组")]):e._e()],2),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.multiSpecData.skuList.length,expression:"multiSpecData.skuList.length"}],attrs:{label:"SKU列表",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.multiSpecData.skuList.length>1?t("div",{staticClass:"sku-batch"},[t("span",{staticClass:"title"},[e._v("批量设置:")]),t("a-input-number",{attrs:{placeholder:"商品价格",min:.01,precision:2},model:{value:e.multiSpecData.skuBatchForm.goods_price,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_price",t)},expression:"multiSpecData.skuBatchForm.goods_price"}}),t("a-input-number",{attrs:{placeholder:"划线价格",min:0,precision:2},model:{value:e.multiSpecData.skuBatchForm.line_price,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"line_price",t)},expression:"multiSpecData.skuBatchForm.line_price"}}),t("a-input-number",{attrs:{placeholder:"库存数量",min:0,precision:0},model:{value:e.multiSpecData.skuBatchForm.stock_num,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"stock_num",t)},expression:"multiSpecData.skuBatchForm.stock_num"}}),t("a-input-number",{attrs:{placeholder:"商品重量",min:0,precision:2},model:{value:e.multiSpecData.skuBatchForm.goods_weight,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_weight",t)},expression:"multiSpecData.skuBatchForm.goods_weight"}}),t("a-input",{attrs:{placeholder:"sku编码"},model:{value:e.multiSpecData.skuBatchForm.goods_sku_no,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_sku_no",t)},expression:"multiSpecData.skuBatchForm.goods_sku_no"}}),t("a-button",{on:{click:e.handleSkuBatch}},[e._v("立即设置")])],1):e._e(),t("a-table",{staticClass:"sku-list",attrs:{columns:e.multiSpecData.skuColumns,dataSource:e.multiSpecData.skuList,scroll:{x:!0},pagination:!1,bordered:""},scopedSlots:e._u([{key:"image",fn:function(a,r){return[t("SelectImage",{attrs:{defaultList:r.image_id>0&&r.image?[r.image]:[],width:50},model:{value:r.image_id,callback:function(t){e.$set(r,"image_id",t)},expression:"item.image_id"}})]}},{key:"goods_price",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:.01,precision:2},model:{value:r.goods_price,callback:function(t){e.$set(r,"goods_price",t)},expression:"item.goods_price"}})]}},{key:"line_price",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:2},model:{value:r.line_price,callback:function(t){e.$set(r,"line_price",t)},expression:"item.line_price"}})]}},{key:"stock_num",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:0},model:{value:r.stock_num,callback:function(t){e.$set(r,"stock_num",t)},expression:"item.stock_num"}})]}},{key:"goods_weight",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:2},model:{value:r.goods_weight,callback:function(t){e.$set(r,"goods_weight",t)},expression:"item.goods_weight"}})]}},{key:"goods_sku_no",fn:function(a,r){return[t("a-input",{attrs:{size:"small"},model:{value:r.goods_sku_no,callback:function(t){e.$set(r,"goods_sku_no",t)},expression:"item.goods_sku_no"}})]}}])})],1)],1)},i=[],s=a("4d91"),o=a("5530"),n=a("d4ec"),l=a("bee2"),c=(a("d3b7"),a("159b"),a("a15b"),a("d81d"),a("99af"),a("7db0"),a("b64b"),a("a434"),a("b0c0"),a("2ef0")),u=a.n(c),d=a("ca00"),m=[{title:"预览图",dataIndex:"image",width:90,scopedSlots:{customRender:"image"}},{title:"商品价格",dataIndex:"goods_price",width:120,scopedSlots:{customRender:"goods_price"}},{title:"划线价格",dataIndex:"line_price",width:120,scopedSlots:{customRender:"line_price"}},{title:"库存数量",dataIndex:"stock_num",width:120,scopedSlots:{customRender:"stock_num"}},{title:"商品重量 (KG)",dataIndex:"goods_weight",width:120,scopedSlots:{customRender:"goods_weight"}},{title:"SKU编码",dataIndex:"goods_sku_no",width:140,scopedSlots:{customRender:"goods_sku_no"}}],p={image_id:0,image:{},goods_price:"",line_price:"",stock_num:"",goods_weight:"",goods_sku_no:""},f=function(){function e(){Object(n["a"])(this,e),this.multiSpecData={},this.error="",this.multiSpecData={specList:[],skuList:[],skuColumns:u.a.cloneDeep(m),skuBatchForm:u.a.cloneDeep(p)}}return Object(l["a"])(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.length&&(this.multiSpecData.specList=u.a.cloneDeep(e),this.multiSpecData.skuList=u.a.cloneDeep(t));var a=this.specGroupArr(),r=v(a),i=this.rowSpanArr(a,r);return this.buildSkuColumns(i),this.buildSkuList(r),this.multiSpecData}},{key:"isEmpty",value:function(){return 0===this.multiSpecData.specList.length}},{key:"getError",value:function(){return this.error}},{key:"specGroupArr",value:function(){var e=[];return this.multiSpecData.specList.forEach((function(t){var a=[];t.valueList.forEach((function(e){a.push(e)})),e.push(a)})),e}},{key:"rowSpanArr",value:function(e,t){for(var a=[],r=t.length,i=0;i0;s--)i(s);this.multiSpecData.skuColumns=a}},{key:"handleAddSpecGroup",value:function(){var e=this.multiSpecData.specList;e.push({key:e.length||0,spec_name:"",valueList:[]});var t=e.length-1;this.handleAddSpecValue(t)}},{key:"handleAddSpecValue",value:function(e){var t=this.multiSpecData.specList[e],a=t.valueList;a.push({key:a.length||0,groupKey:t.key,spec_value:""}),this.onRefreshSpecValueKey(e)}},{key:"handleDeleteSpecGroup",value:function(e){this.multiSpecData.specList.splice(e,1),this.onUpdate(!1)}},{key:"handleDeleteSpecValue",value:function(e,t){this.multiSpecData.specList[e].valueList.splice(t,1),this.onRefreshSpecValueKey(e),this.onUpdate(!1)}},{key:"onRefreshSpecValueKey",value:function(e){var t=this.multiSpecData.specList[e],a=t.valueList;a.forEach((function(e,t){a[t].key=t}))}},{key:"handleSkuBatch",value:function(){var e=this.getFilterObject(this.multiSpecData.skuBatchForm),t=this.multiSpecData.skuList;for(var a in t)t[a]=Object(o["a"])(Object(o["a"])({},t[a]),e);this.onUpdate(!1)}},{key:"getFilterObject",value:function(e){var t={};for(var a in e){var r=e[a];Object(d["e"])(r)||(t[a]=r)}return t}},{key:"verifyForm",value:function(){return!!this.verifySpec()&&!!this.verifySkuList()}},{key:"verifySkuList",value:function(){var e=[{field:"goods_price",name:"商品价格"},{field:"stock_num",name:"库存数量"},{field:"goods_weight",name:"商品重量"}],t=this.multiSpecData.skuList;for(var a in t){var r=t[a];for(var i in e){var s=r[e[i].field];if(""===s||null===s)return this.error="".concat(e[i].name,"不能为空"),!1}}return!0}},{key:"verifySpec",value:function(){var e=this.multiSpecData.specList;if(!e.length)return this.error="亲,还没有添加规格组~",!1;for(var t in e){var a=e[t];if(Object(d["e"])(a.spec_name))return this.error="规格组名称不能为空~",!1;var r=a.valueList;if(!r.length)return this.error="还没有添加规格值~",!1;for(var i in r)if(Object(d["e"])(r[i].spec_value))return this.error="规格值不能为空~",!1}return!0}},{key:"getFromSpecData",value:function(){var e=this.multiSpecData,t=e.specList,a=e.skuList,r={specList:u.a.cloneDeep(t),skuList:u.a.cloneDeep(a)};for(var i in r.skuList){var s=r.skuList[i];delete s.image,delete s.key}return r}},{key:"onUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e?Object(d["c"])(h,200)(this):h(this)}}]),e}(),h=function(e){return e.getData()},v=function(e){return e.length?Array.prototype.reduce.call(e,(function(e,t){var a=[];return e.forEach((function(e){t.forEach((function(t){a.push(e.concat([t]))}))})),a}),[[]]):[]},b=a("2af9"),_={components:{SelectImage:b["e"]},props:{defaultSpecList:s["a"].array.def([]),defaultSkuList:s["a"].array.def([]),isSpecLocked:s["a"].bool.def(!1)},data:function(){return{labelCol:{span:3},wrapperCol:{span:21},MultiSpecModel:new f,multiSpecData:{specList:[],skuList:[]}}},watch:{defaultSpecList:function(e){e.length&&this.MultiSpecModel.isEmpty()&&this.getData()}},created:function(){this.getData()},methods:{getData:function(){var e=this.defaultSpecList,t=this.defaultSkuList;this.multiSpecData=this.MultiSpecModel.getData(e,t)},getFromSpecData:function(){return this.MultiSpecModel.getFromSpecData()},handleAddSpecGroup:function(){this.checkSkuMaxNum()&&this.MultiSpecModel.handleAddSpecGroup()},handleDeleteSpecGroup:function(e){var t=this,a=this.$confirm({title:"您确定要删除该规格组吗?",content:"删除后不可恢复",onOk:function(){t.MultiSpecModel.handleDeleteSpecGroup(e),a.destroy()}})},handleAddSpecValue:function(e){this.checkSkuMaxNum()&&this.MultiSpecModel.handleAddSpecValue(e)},handleDeleteSpecValue:function(e,t){var a=this,r=this.$confirm({title:"您确定要删除该规格值吗?",content:"删除后不可恢复",onOk:function(){a.MultiSpecModel.handleDeleteSpecValue(e,t),r.destroy()}})},onChangeSpecGroupIpt:function(){this.MultiSpecModel.onUpdate(!0)},onChangeSpecValueIpt:function(e,t){this.MultiSpecModel.onUpdate(!0)},checkSkuMaxNum:function(){var e=this.multiSpecData.skuList;return!(e.length>=50)||(this.$message.error("生成的sku列表数量不能大于50个,当前数量:".concat(e.length,"个"),2.5),!1)},handleSkuBatch:function(){this.MultiSpecModel.handleSkuBatch()},verifyForm:function(){return!!this.MultiSpecModel.verifyForm()||(this.$message.error(this.MultiSpecModel.getError(),2),!1)}}},g=_,C=(a("62da"),a("2877")),y=Object(C["a"])(g,r,i,!1,null,"b63f0ed6",null);t["a"]=y.exports},"86e8":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("2ef0")),s=a.n(i),o=a("c519");t["a"]={merchantId:null,formData:{merchant:{}},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.merchantId=t,new Promise((function(a,r){Promise.all([e.getMerchantDetail(t)]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getMerchantDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){o["d"]({merchantId:t}).then((function(t){e.formData.merchant=t.data.merchantInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.merchant,t=s.a.pick(e,["merchant_id","name","address","contact_name","contact_tel","appKey","callback","create_time"]);return t.callback=t.callback.toString(),Object(r["a"])({},t)},setDefaultData:function(){}}},"88bc":function(e,t,a){(function(t){var a=1/0,r=9007199254740991,i="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]",n="[object Symbol]",l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function d(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function m(e,t){var a=-1,r=e?e.length:0,i=Array(r);while(++a0&&a(n)?t>1?y(n,t-1,a,r,i):p(i,n):r||(i[i.length]=n)}return i}function w(e,t){return e=Object(e),x(e,t,(function(t,a){return a in e}))}function x(e,t,a){var r=-1,i=t.length,s={};while(++r-1&&e%1==0&&e<=r}function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function j(e){return!!e&&"object"==typeof e}function $(e){return"symbol"==typeof e||j(e)&&v.call(e)==n}var V=L((function(e,t){return null==e?{}:w(e,m(y(t,1),k))}));e.exports=V}).call(this,a("c8ba"))},9170:function(e,t,a){"use strict";a("62cd")},"91bf":function(e,t,a){"use strict";a("c405")},"94a3":function(e,t,a){},"967a":function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"c",(function(){return u}));var r=a("b775"),i={list:"/setting.delivery/list",all:"/setting.delivery/all",detail:"/setting.delivery/detail",add:"/setting.delivery/add",edit:"/setting.delivery/edit",delete:"/setting.delivery/delete"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"98fc":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入司机手机号"}})],1),t("a-form-item",{attrs:{label:"司机姓名"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["driver_name"],expression:"['driver_name']"}],attrs:{placeholder:"请输入司机姓名"}})],1),t("a-form-item",{attrs:{label:"单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],attrs:{placeholder:"油卡编号/销售单号/批次号/运单号"}})],1),t("a-form-item",{attrs:{label:"发放状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oil_status",{initialValue:-1}],expression:"['oil_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OilStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"企油通发放态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oil_status_zsy",{initialValue:-1}],expression:"['oil_status_zsy', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未提交")]),t("a-select-option",{attrs:{value:1}},[e._v("发放中")]),t("a-select-option",{attrs:{value:2}},[e._v("发放成功")]),t("a-select-option",{attrs:{value:3}},[e._v("发放失败")])],1)],1),t("a-form-item",{attrs:{label:"加油核销"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["use_status",{initialValue:-1}],expression:"['use_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.UseStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"退款状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_status",{initialValue:-1}],expression:"['refund_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未退款")]),t("a-select-option",{attrs:{value:1}},[e._v("退款中")]),t("a-select-option",{attrs:{value:2}},[e._v("已退款")]),t("a-select-option",{attrs:{value:3}},[e._v("退款失败")]),t("a-select-option",{attrs:{value:4}},[e._v("待人工确认")])],1)],1),t("a-form-item",{attrs:{label:"合作商"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["partners_id",{initialValue:-1}],expression:"['partners_id', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.partnersListData,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.partners_id}},[e._v(e._s(a.name))])}))],2)],1),[t("a-config-provider",{attrs:{locale:e.zhCN}},[t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1)],1)],t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],2)],1),t("div",{staticClass:"row-item-tab clearfix flex-box"},[t("span",{staticClass:"form-total"},[e._v("发放总金额:¥"+e._s(e.total_money))])])],1),t("s-table",{ref:"table",attrs:{rowKey:"order_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"partners",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.name))])])}},{key:"driver",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2"},[e._v(e._s(a.driver_name||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v(e._s(a.mobile))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("车牌:"+e._s(a.plate_no||"-"))])])}},{key:"qyt",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2 f-13"},[e._v("批次:"+e._s(a.batch_no||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("运单:"+e._s(a.waybill_no||"-"))])])}},{key:"consume",fn:function(a){return t("div",{},[1===a.use_status?[t("p",{staticClass:"mtb-2 f-13"},[e._v("已加油:¥"+e._s(a.used_amount)+"("+e._s(a.used_num)+" 次)")]),t("p",{staticClass:"mtb-2 f-13"},[e._v("剩余:¥"+e._s(e.remainAmount(a)))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("最近:"+e._s(a.station_name||"-")+" "+e._s(a.oil_name)+" "+e._s(a.litter)+"L")])]:t("span",[e._v("-")])],2)}},{key:"status",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("发放状态:")]),t("a-tag",{attrs:{color:a.oil_status==e.OilStatusEnum.OIL.value?"green":""}},[e._v(e._s(e.OilStatusEnum[a.oil_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("加油核销:")]),t("a-tag",{attrs:{color:a.use_status==e.UseStatusEnum.USE.value?"green":""}},[e._v(e._s(e.UseStatusEnum[a.use_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("企油通:")]),t("a-tag",{attrs:{color:e.qytColor(a.oil_status_zsy)}},[e._v(e._s(e.qytText(a.oil_status_zsy)))])],1),a.oil_text?t("p",{staticClass:"mtb-2 f-13 order-remark"},[e._v(e._s(a.oil_text))]):e._e(),a.refund_status>0?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("退款:")]),t("a-tag",{attrs:{color:e.refundColor(a.refund_status)}},[e._v(e._s(e.refundText(a.refund_status)))])],1):e._e()])}},{key:"action",fn:function(a){return t("div",{staticClass:"actions"},[e.inArray(a.oil_status_zsy,[3])&&0===a.oil_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleShare(a)}}},[e._v("重新发放")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&2!==a.refund_status&&Number(e.remainAmount(a))>0&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handlePay(a)}}},[e._v("加油链接")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleOil(a)}}},[e._v("重推发放结果")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&1===a.use_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleUse(a)}}},[e._v("重推加油结果")]):e._e(),e.canRefund(a)?t("a",{on:{click:function(t){return e.handleRefund(a)}}},[e._v(e._s(e.refundLabel(a)))]):e._e(),1===a.use_status?t("a",{on:{click:function(t){return e.handleInvoice(a)}}},[e._v("发票")]):e._e()])}}])}),t("ShareForm",{ref:"ShareForm",on:{handleSubmit:e.handleRefresh}}),t("PayForm",{ref:"PayForm",on:{handleSubmit:e.handleRefresh}}),t("OilForm",{ref:"OilForm",on:{handleSubmit:e.handleRefresh}}),t("UseForm",{ref:"UseForm",on:{handleSubmit:e.handleRefresh}}),t("RefundForm",{ref:"RefundForm",on:{handleSubmit:e.handleRefresh}}),t("InvoiceModal",{ref:"InvoiceModal"})],1)},i=[],s=a("5530"),o=(a("b680"),a("d3b7"),a("b775")),n={list:"/partners.order/list",share:"/partners.order/share",qrCode:"/partners.order/qrCode",oilCallback:"/partners.order/oilCallback",useCallback:"/partners.order/useCallback",refund:"/partners.order/refund",refundConfirm:"/partners.order/refundConfirm",refundResolve:"/partners.order/refundResolve",refundLog:"/partners.order/refundLog",invoice:"/partners.order/invoice"};function l(e){return Object(o["b"])({url:n.list,method:"get",params:e})}function c(e){return Object(o["b"])({url:n.share,method:"post",data:e})}function u(e){return Object(o["b"])({url:n.qrCode,method:"post",data:e})}function d(e){return Object(o["b"])({url:n.oilCallback,method:"post",data:e})}function m(e){return Object(o["b"])({url:n.useCallback,method:"post",data:e})}function p(e){return Object(o["b"])({url:n.refund,method:"post",data:e})}function f(e){return Object(o["b"])({url:n.refundConfirm,method:"post",data:e})}function h(e){return Object(o["b"])({url:n.refundResolve,method:"post",data:e})}function v(e){return Object(o["b"])({url:n.refundLog,method:"get",params:e})}function b(e){return Object(o["b"])({url:n.invoice,method:"get",params:e})}var _=a("ab09"),g=a("4a95"),C=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否确认手动进行分油结果回调通知? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)},y=[],w={data:function(){return{title:"重推发放结果",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,d({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},x=w,L=a("2877"),S=Object(L["a"])(x,C,y,!1,null,null,null),k=S.exports,D=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否确认手动进行使用结果回调通知? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)},q=[],I={data:function(){return{title:"重推加油结果",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,m({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},F=I,N=Object(L["a"])(F,D,q,!1,null,null,null),R=N.exports,O=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否手动分油? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)},j=[],$={data:function(){return{title:"重新发放",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,c({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},V=$,T=Object(L["a"])(V,O,j,!1,null,null,null),E=T.exports,K=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleCancel,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.qrCodeValue?t("div",{staticClass:"qyt-h5"},[t("div",{staticClass:"qyt-h5__tip"},[e._v("司机扫码即可进入企油通加油页(免登),也可直接把下方链接发给司机。")]),t("div",{staticClass:"qyt-h5__qr"},[t("vue-qr",{attrs:{text:e.qrCodeValue,size:200,margin:6}})],1),t("a-input-search",{staticClass:"qyt-h5__url",attrs:{value:e.qrCodeValue,readonly:"","enter-button":"复制"},on:{search:e.handleCopy}})],1):t("a-empty",{attrs:{description:"正在获取加油链接…"}})],1)],1)},A=[],P=a("658f5"),B=a.n(P),U={components:{vueQr:B.a},data:function(){return{title:"加油链接",visible:!1,isLoading:!1,record:{},qrCodeValue:""}},methods:{show:function(e){this.visible=!0,this.record=e,this.qrCodeValue="",this.getQrCode()},handleCancel:function(){this.visible=!1,this.qrCodeValue=""},handleCopy:function(){var e=document.createElement("input");e.value=this.qrCodeValue,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.$message.success("链接已复制",1.5)},getQrCode:function(){var e=this;this.isLoading=!0,u({orderId:this.record.order_id}).then((function(t){e.qrCodeValue=t.data.qrCode})).finally((function(){e.isLoading=!1}))}}},G=U,M=(a("2aba"),Object(L["a"])(G,K,A,!1,null,"20bb8cdf",null)),z=M.exports,Y=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"订单退款",width:760,visible:e.visible,footer:null,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"info"},[t("p",[e._v("油卡编号:"+e._s(e.record.oilCardNo))]),t("p",[e._v("司机:"+e._s(e.record.driver_name||"-")+"  "+e._s(e.record.mobile))]),t("p",[e._v("订单金额:¥"+e._s(e.record.total_price)+"  已加油:¥"+e._s(e.record.used_amount||"0.00")+"("+e._s(e.record.used_num||0)+" 次)")]),t("p",[e._v(" 退款金额:"),t("b",{staticClass:"amount"},[e._v("¥"+e._s(e.refundAmount))]),2===e.status?t("span",[e._v("(实际退款)")]):t("span",[e._v("(剩余未加油金额,固定不可修改)")])]),t("p",[e._v("当前状态:"),t("a-tag",{attrs:{color:e.statusColor}},[e._v(e._s(e.statusText))])],1),e.record.refund_text?t("p",{staticClass:"sub"},[e._v(e._s(e.record.refund_text))]):e._e()]),(0===e.status||3===e.status)&&Number(e.refundAmount)<=0?t("a-alert",{staticClass:"block",attrs:{type:"warning","show-icon":"",message:"订单金额已全部加油,没有可退金额"}}):e._e(),(0===e.status||3===e.status)&&Number(e.refundAmount)>0?[t("a-alert",{staticClass:"block",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 一张订单可以分多次加油,"),t("b",[e._v("退款金额固定为剩余未加油金额")]),e._v(",已加油的部分不退,每单只能成功退一次。 "),t("br"),e._v("退款会先用企油通 7.17 查询司机支付凭证,再用 7.16 把凭证额度调低退款金额;成功后原路回补合作商余额,并推送油卡变动通知。 "),t("br"),e._v("额度在凭证上按司机累计,若凭证可用余额不足退款金额(被该司机其他订单用掉),会直接拒绝。 ")])]),t("a-textarea",{attrs:{rows:2,maxLength:100,placeholder:"退款原因(选填,会写入企油通调额记录)"},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}}),t("div",{staticClass:"btns"},[t("a-button",{attrs:{type:"primary",loading:e.isLoading},on:{click:e.handleRefund}},[e._v("确认退款")])],1)]:e._e(),4===e.status?[t("a-alert",{staticClass:"block",attrs:{type:"warning","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 调额请求已发给企油通但没有拿到明确结果。企油通调额接口"),t("b",[e._v("没有幂等保护")]),e._v(",重复发起会被重复扣减,所以这里不允许直接重试。 "),t("br"),e._v("请先点「向企油通取证」:系统会查司机钱包流水(找退款单号)和凭证额度变化自动判定;判定不了再人工核对后提交。 ")])]),t("div",{staticClass:"btns"},[t("a-button",{attrs:{type:"primary",loading:e.isLoading},on:{click:e.handleConfirm}},[e._v("向企油通取证")])],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("人工判定")]),t("a-radio-group",{model:{value:e.resolveResult,callback:function(t){e.resolveResult=t},expression:"resolveResult"}},[t("a-radio",{attrs:{value:"success"}},[e._v("企油通已调低额度(退款成功)")]),t("a-radio",{attrs:{value:"failed"}},[e._v("企油通未调额(退款失败,可重新发起)")])],1),t("a-textarea",{staticClass:"mt-10",attrs:{rows:2,maxLength:100,placeholder:"判定依据(必填),如:已在企油通后台核对凭证 xxx 总额度由 300 变为 200"},model:{value:e.resolveRemark,callback:function(t){e.resolveRemark=t},expression:"resolveRemark"}}),t("div",{staticClass:"btns"},[t("a-button",{attrs:{loading:e.isLoading},on:{click:e.handleResolve}},[e._v("提交人工判定")])],1)]:e._e(),t("a-divider",{attrs:{orientation:"left"}},[e._v("退款流水")]),t("a-table",{attrs:{size:"small",rowKey:"refund_id",columns:e.columns,dataSource:e.logs,pagination:!1},scopedSlots:e._u([{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{attrs:{color:e.logColor(r.status)}},[e._v(e._s(r.status_text))])],1)}}])})],2)],1)},H=[],Q=(a("498a"),{0:"未退款",1:"退款中",2:"已退款",3:"退款失败",4:"待人工确认"}),J={1:"blue",2:"green",3:"red",4:"orange"},W={data:function(){return{visible:!1,isLoading:!1,record:{},reason:"",resolveResult:"success",resolveRemark:"",logs:[],columns:[{title:"退款单号",dataIndex:"refund_no"},{title:"状态",scopedSlots:{customRender:"status"}},{title:"凭证",dataIndex:"quota_id"},{title:"调额前可用",dataIndex:"available_before"},{title:"说明",dataIndex:"message"},{title:"操作人",dataIndex:"operator"},{title:"时间",dataIndex:"create_time_text"}]}},computed:{status:function(){return Number(this.record.refund_status||0)},statusText:function(){return Q[this.status]||"-"},statusColor:function(){return J[this.status]||""},refundAmount:function(){if(2===this.status)return Number(this.record.refund_amount||0).toFixed(2);var e=Number(this.record.total_price||0)-Number(this.record.used_amount||0);return Math.max(0,e).toFixed(2)}},methods:{show:function(e){this.visible=!0,this.record=Object(s["a"])({},e),this.reason="",this.resolveResult="success",this.resolveRemark="",this.loadLogs()},handleCancel:function(){this.visible=!1},loadLogs:function(){var e=this;v({orderId:this.record.order_id}).then((function(t){e.logs=t.data.list,e.logs.length&&(e.record=Object(s["a"])(Object(s["a"])({},e.record),{},{refund_status:Number(e.logs[0].status),refund_text:e.logs[0].message}))}))},logColor:function(e){return J[Number(e)]||""},afterAction:function(e,t){this.$message.success(e.message,2),void 0!==t&&(this.record=Object(s["a"])(Object(s["a"])({},this.record),{},{refund_status:t,refund_text:e.message})),this.loadLogs(),this.$emit("handleSubmit")},afterError:function(){this.loadLogs(),this.$emit("handleSubmit")},handleRefund:function(){var e=this;this.$confirm({title:"确认退款 ¥"+this.refundAmount+"?",content:"退还剩余未加油金额:将调低该司机企油通凭证额度,成功后回补合作商余额。",onOk:function(){return e.isLoading=!0,p({orderId:e.record.order_id,reason:e.reason}).then((function(t){return e.afterAction(t,2)})).catch((function(){return e.afterError()})).finally((function(){e.isLoading=!1}))}})},handleConfirm:function(){var e=this;this.isLoading=!0,f({orderId:this.record.order_id}).then((function(t){return e.afterAction(t,t.data.refundStatus)})).catch((function(){return e.afterError()})).finally((function(){e.isLoading=!1}))},handleResolve:function(){var e=this;this.resolveRemark.trim()?(this.isLoading=!0,h({orderId:this.record.order_id,result:this.resolveResult,remark:this.resolveRemark}).then((function(t){return e.afterAction(t,t.data.refundStatus)})).catch((function(){return e.afterError()})).finally((function(){e.isLoading=!1}))):this.$message.warning("请填写判定依据")}}},X=W,Z=(a("07d4"),Object(L["a"])(X,Y,H,!1,null,"31e6d096",null)),ee=Z.exports,te=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"加油发票",width:620,visible:e.visible,footer:null},on:{cancel:function(t){e.visible=!1}}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-alert",{staticClass:"block",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 企油通发票按「企业 + 月份 + 司机」出具,和单笔订单没有一一对应关系。 这里展示的是"),t("b",[e._v("该订单所属企业、该司机在消费当月")]),e._v("的全部发票,同一司机当月的其他订单看到的是同一批。 ")])]),t("p",[e._v("消费月份:"),t("b",[e._v(e._s(e.month||"-"))]),e._v("  司机:"+e._s(e.record.driver_name||"-")+" "+e._s(e.record.mobile))]),e.row.sync_time_text?t("p",{staticClass:"sub"},[e._v("最近同步:"+e._s(e.row.sync_time_text)+"  "+e._s(e.row.sync_text))]):e.message?t("p",{staticClass:"sub"},[e._v(e._s(e.message))]):e._e(),e.urls.length?t("div",{staticClass:"links"},e._l(e.urls,(function(a,r){return t("p",{key:a},[t("a",{attrs:{href:a,target:"_blank",rel:"noopener noreferrer"}},[e._v("发票 "+e._s(r+1))]),t("span",{staticClass:"url"},[e._v(e._s(a))])])})),0):e.isLoading?e._e():t("a-empty",{attrs:{description:"企油通暂未出具该月发票"}}),t("div",{staticClass:"btns"},[t("a-button",{attrs:{loading:e.isLoading},on:{click:function(t){return e.load(!0)}}},[e._v("重新同步")])],1)],1)],1)},ae=[],re={data:function(){return{visible:!1,isLoading:!1,record:{},month:"",message:"",row:{}}},computed:{urls:function(){return this.row.invoice_urls||[]}},methods:{show:function(e){this.visible=!0,this.record=e,this.month="",this.message="",this.row={},this.load(!1)},load:function(e){var t=this;this.isLoading=!0,b({orderId:this.record.order_id,refresh:e?1:0}).then((function(a){t.month=a.data.month,t.message=a.data.message,t.row=a.data.row||{},e&&t.$message.success(a.message,1.5)})).finally((function(){t.isLoading=!1}))}}},ie=re,se=(a("12e9"),Object(L["a"])(ie,te,ae,!1,null,"2078b586",null)),oe=se.exports,ne=a("ca00"),le=a("eb60"),ce=a("e533"),ue={name:"Index",components:{STable:_["b"],ShareForm:E,PayForm:z,OilForm:k,UseForm:R,RefundForm:ee,InvoiceModal:oe},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:[{title:"ID",dataIndex:"order_id"},{title:"油卡编号",dataIndex:"oilCardNo",scopedSlots:{customRender:"oilCardNo"}},{title:"企油通单号",scopedSlots:{customRender:"qyt"}},{title:"对接公司内部销售单号",dataIndex:"partners_order_no",scopedSlots:{customRender:"partners_order_no"}},{title:"数量",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"发放金额",dataIndex:"total_price"},{title:"司机",scopedSlots:{customRender:"driver"}},{title:"加油信息",scopedSlots:{customRender:"consume"}},{title:"合作商",dataIndex:"partners",scopedSlots:{customRender:"partners"}},{title:"交易状态",scopedSlots:{customRender:"status"}},{title:"操作",width:"220px",scopedSlots:{customRender:"action"}},{title:"订单时间",dataIndex:"create_time"}],loadData:function(t){return l(Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(t){return e.total_money=t.data.total_money||0,t.data.list}))},partnersListData:[],total_money:0,zhCN:le["a"]}},beforeCreate:function(){Object(ne["a"])(this,{inArray:ne["d"],OilStatusEnum:g["d"],UseStatusEnum:g["j"]})},created:function(){this.getPartnersList()},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},qytText:function(e){return{0:"未提交",1:"发放中",2:"发放成功",3:"发放失败"}[e]||"未知"},qytColor:function(e){return{1:"blue",2:"green",3:"red"}[e]||""},handleShare:function(e){this.$refs.ShareForm.show(e)},handlePay:function(e){this.$refs.PayForm.show(e)},handleOil:function(e){this.$refs.OilForm.show(e)},handleUse:function(e){this.$refs.UseForm.show(e)},refundText:function(e){return{0:"未退款",1:"退款中",2:"已退款",3:"退款失败",4:"待人工确认"}[e]||"未知"},refundColor:function(e){return{1:"blue",2:"green",3:"red",4:"orange"}[e]||""},canRefund:function(e){return"zsy_ticket"===e.oilCardType&&2===e.oil_status_zsy&&1===e.oil_status&&(e.refund_status>0||Number(this.remainAmount(e))>0)},remainAmount:function(e){var t=2===e.refund_status?Number(e.refund_amount||0):0,a=Number(e.total_price||0)-Number(e.used_amount||0)-t;return Math.max(0,a).toFixed(2)},refundLabel:function(e){return{2:"退款记录",4:"确认退款"}[e.refund_status]||"退款"},handleRefund:function(e){this.$refs.RefundForm.show(e)},handleInvoice:function(e){this.$refs.InvoiceModal.show(e)},getPartnersList:function(){var e=this;this.isLoading=!0,ce["b"]().then((function(t){e.partnersListData=t.data.list})).finally((function(){e.isLoading=!1}))}}},de=ue,me=(a("335a"),Object(L["a"])(de,r,i,!1,null,"1f2cfa16",null));t["default"]=me.exports},"9a97":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-alert",{staticClass:"tips-alert",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 司机按身份证号归档。企油通发放到同一司机的额度会"),t("b",[e._v("在凭证上累计")]),e._v(",列表里的累计发放 / 已退款是按本地订单汇总的参考值, "),t("b",[e._v("真实可用额度以详情里实时查询的企油通数据为准")]),e._v("。 标红的「信息冲突」会导致上游实名二要素核验失败,建议先让下单平台核对司机信息。 ")])]),t("a-form",{staticClass:"search-form",attrs:{layout:"inline",form:e.searchForm},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"司机"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["keyword"],expression:"['keyword']"}],staticStyle:{width:"240px"},attrs:{placeholder:"姓名 / 手机号 / 完整身份证号",allowClear:""}})],1),t("a-form-item",{attrs:{label:"信息冲突"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["conflict",{initialValue:-1}],expression:"['conflict', { initialValue: -1 }]"}],staticStyle:{width:"110px"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("有冲突")]),t("a-select-option",{attrs:{value:0}},[e._v("正常")])],1)],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"search"}},[e._v("搜索")])],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"driver_id",columns:e.columns,data:e.loadData},scopedSlots:e._u([{key:"driver",fn:function(a){return[t("p",{staticClass:"mtb-2"},[t("b",[e._v(e._s(a.name||"-"))]),a.conflict?t("a-tag",{staticClass:"ml-6",attrs:{color:"red"}},[e._v("信息冲突")]):e._e()],1),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.mobile)+"  "+e._s(a.id_card_mask))]),a.conflict?t("p",{staticClass:"mtb-2 text-red"},[e._v(e._s(a.conflict_text))]):e._e()]}},{key:"orders",fn:function(a){return[t("p",{staticClass:"mtb-2"},[e._v("共 "+e._s(a.order_num)+" 单")]),t("p",{staticClass:"mtb-2 sub"},[e._v("已加油 "+e._s(a.used_num)+"  发放中 "+e._s(a.pending_num)+"  失败 "+e._s(a.fail_num))])]}},{key:"amount",fn:function(a){return[t("p",{staticClass:"mtb-2"},[e._v("累计发放 ¥"+e._s(a.grant_amount))]),t("p",{staticClass:"mtb-2 sub"},[e._v("已加油 ¥"+e._s(a.used_amount)+"  已退款 ¥"+e._s(a.refund_amount)+"  净额 ¥"+e._s(a.net_amount))])]}},{key:"action",fn:function(a){return[t("a",{on:{click:function(t){return e.openDetail(a)}}},[e._v("详情 / 查额度")])]}}])}),t("a-drawer",{attrs:{title:"司机详情",width:960,visible:e.drawer},on:{close:function(t){e.drawer=!1}}},[t("a-spin",{attrs:{spinning:e.detailLoading}},[e.detail.driver_id?[t("p",{staticClass:"head"},[t("b",[e._v(e._s(e.detail.name))]),e._v("  "+e._s(e.detail.mobile)+"  "+e._s(e.detail.id_card_mask)+" "),e.detail.conflict?t("a-tag",{staticClass:"ml-6",attrs:{color:"red"}},[e._v("信息冲突")]):e._e()],1),e.detail.conflict?t("a-alert",{staticClass:"block",attrs:{type:"error",message:e.detail.conflict_text,"show-icon":""}}):e._e(),t("p",{staticClass:"sub"},[e._v(" 本地汇总:共 "+e._s(e.detail.order_num)+" 单,累计发放 ¥"+e._s(e.detail.grant_amount)+",已退款 ¥"+e._s(e.detail.refund_amount)+", 净额 ¥"+e._s(e.detail.net_amount)+";最近下单 "+e._s(e.detail.last_order_time_text)+" ")]),t("a-divider",{attrs:{orientation:"left"}},[e._v("企油通实时数据")]),t("div",{staticClass:"toolbar"},[t("span",[e._v("企业:")]),t("a-select",{staticStyle:{width:"280px"},attrs:{placeholder:"选择企业"},model:{value:e.enterpriseId,callback:function(t){e.enterpriseId=t},expression:"enterpriseId"}},e._l(e.enterprises,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+") ")])})),1),e.enterprises.length?e._e():t("span",{staticClass:"sub ml-6"},[e._v("该司机还没有关联企业的订单")])],1),t("a-tabs",{on:{change:e.onTabChange},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("a-tab-pane",{key:"balance",attrs:{tab:"钱包余额(7.12)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("balance")}}},[e._v("查询")]),e.result.balance?[t("p",{staticClass:"big"},[e._v(" 钱包发放总额 ¥"+e._s(e.result.balance.totalGrantAmountYuan||"0.00")+" 当前可用 "),t("b",{staticClass:"green"},[e._v("¥"+e._s(e.result.balance.availableBalanceYuan||"0.00"))])]),t("a-table",{attrs:{size:"small",rowKey:"business_license",pagination:!1,columns:e.balanceColumns,dataSource:e.result.balance.list||[]}})]:e._e()],2),t("a-tab-pane",{key:"voucher",attrs:{tab:"支付凭证(7.17)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("voucher")}}},[e._v("查询")]),t("p",{staticClass:"sub mt-8"},[e._v("额度按凭证累计;退款时就是把其中「生效中、可用余额最大」的一张调低订单金额。")]),e.result.voucher?t("a-table",{attrs:{size:"small",rowKey:"quota_id",pagination:!1,columns:e.voucherColumns,dataSource:e.result.voucher.list||[]}}):e._e()],1),t("a-tab-pane",{key:"wallet",attrs:{tab:"钱包流水(7.13)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("wallet")}}},[e._v("查询")]),t("p",{staticClass:"sub mt-8"},[e._v("企油通默认只回溯近 1 个月流水。")]),e.result.wallet?t("a-table",{attrs:{size:"small",rowKey:"transactionId",pagination:!1,columns:e.walletColumns,dataSource:e.result.wallet.transactionDetails||[]}}):e._e()],1),t("a-tab-pane",{key:"orders",attrs:{tab:"最近订单"}},[t("p",{staticClass:"sub"},[e._v("发放失败原因里能看到上游实名二要素核验的结果。")]),t("a-table",{attrs:{size:"small",rowKey:"order_id",pagination:!1,columns:e.orderColumns,dataSource:e.orders},scopedSlots:e._u([{key:"zsy",fn:function(a,r){return t("span",{},[t("a-tag",{attrs:{color:{1:"blue",2:"green",3:"red"}[r.oil_status_zsy]||""}},[e._v(" "+e._s({0:"未提交",1:"发放中",2:"发放成功",3:"发放失败"}[r.oil_status_zsy])+" ")])],1)}}],null,!1,1747132722)})],1)],1)]:e._e()],2)],1)],1)},i=[],s=a("ade3"),o=a("5530"),n=(a("d3b7"),a("b775")),l={list:"/qyt.driver/list",detail:"/qyt.driver/detail",upstream:"/qyt.driver/upstream"};function c(e){return Object(n["b"])({url:l.list,method:"get",params:e})}function u(e){return Object(n["b"])({url:l.detail,method:"get",params:e})}function d(e){return Object(n["b"])({url:l.upstream,method:"get",params:e})}var m=a("ab09"),p={name:"QytDriverIndex",components:{STable:m["b"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},columns:[{title:"ID",dataIndex:"driver_id",width:70},{title:"司机",scopedSlots:{customRender:"driver"}},{title:"订单",scopedSlots:{customRender:"orders"}},{title:"金额(本地口径)",scopedSlots:{customRender:"amount"}},{title:"最近下单",dataIndex:"last_order_time_text",width:170},{title:"操作",width:120,scopedSlots:{customRender:"action"}}],loadData:function(t){return c(Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))},drawer:!1,detailLoading:!1,detail:{},enterprises:[],orders:[],enterpriseId:void 0,tab:"balance",upLoading:!1,result:{},balanceColumns:[{title:"企业",dataIndex:"enterprise_name"},{title:"凭证总额(元)",dataIndex:"total_amount_yuan"},{title:"可用(元)",dataIndex:"available_amount_yuan"}],voucherColumns:[{title:"凭证ID",dataIndex:"quota_id"},{title:"名称",dataIndex:"quota_name"},{title:"总额度",dataIndex:"total_amount"},{title:"可用",dataIndex:"available_amount"},{title:"已用",dataIndex:"used_amount"},{title:"冻结",dataIndex:"freeze_amount"},{title:"状态",dataIndex:"status_text"},{title:"有效期至",dataIndex:"effective_end"}],walletColumns:[{title:"时间",dataIndex:"transactionTime"},{title:"类型",dataIndex:"transactionType"},{title:"金额(元)",dataIndex:"amount_yuan"},{title:"备注",dataIndex:"remark"},{title:"流水号",dataIndex:"transactionId"}],orderColumns:[{title:"油卡编号",dataIndex:"oilCardNo"},{title:"金额",dataIndex:"total_price"},{title:"发放",scopedSlots:{customRender:"zsy"}},{title:"说明",dataIndex:"oil_text"},{title:"退款",dataIndex:"refund_status_text"},{title:"下单时间",dataIndex:"create_time_text"}]}},methods:{handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam={keyword:a.keyword||"",conflict:a.conflict},t.$refs.table.refresh(!0))}))},openDetail:function(e){var t=this;this.drawer=!0,this.detail={},this.enterprises=[],this.orders=[],this.result={},this.tab="balance",this.enterpriseId=void 0,this.detailLoading=!0,u({driverId:e.driver_id}).then((function(e){t.detail=e.data.detail,t.enterprises=e.data.enterprises,t.orders=e.data.orders,t.enterpriseId=t.enterprises.length?t.enterprises[0].enterprise_id:void 0})).finally((function(){t.detailLoading=!1}))},onTabChange:function(){},query:function(e){var t=this;this.upLoading=!0,d({driverId:this.detail.driver_id,enterpriseId:this.enterpriseId,type:e}).then((function(a){t.result=Object(o["a"])(Object(o["a"])({},t.result),{},Object(s["a"])({},e,a.data.data))})).finally((function(){t.upLoading=!1}))}}},f=p,h=(a("39f0"),a("2877")),v=Object(h["a"])(f,r,i,!1,null,"16a6e947",null);t["default"]=v.exports},"9b62":function(e,t,a){"use strict";a("24ba")},"9f1c":function(e,t,a){},"9f7c":function(e,t,a){},"9f8e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商名称"}})],1),t("a-form-item",{attrs:{label:"代理商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d3b7"),a("c519")),o=a("2af9"),n=a("86e8"),l=a("ca00"),c={components:{InputNumberGroup:o["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),merchantId:null,formData:n["a"].formData}},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.merchant={}},methods:{initData:function(){var e=this;this.merchantId=this.$route.query.merchantId,this.isLoading=!0,n["a"].getFromData(this.merchantId).then((function(){Object(l["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["e"]({merchantId:this.merchantId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("7367"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"1d6c4b44",null);t["default"]=m.exports},a11a:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键字搜索"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"合作商编号/合作商名称/合作商地址/联系人/联系电话"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[e.$auth("/partners/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"partners_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1670}},scopedSlots:e._u([{key:"qyt",fn:function(a,r){return t("div",{},["bind"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name"},[e._v(e._s(r.qyt_enterprise_name))]),t("p",{staticClass:"qyt-sub"},[e._v("已绑定 · "+e._s(r.qyt_enterprise_channel))])]:"default"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name"},[e._v(e._s(r.qyt_enterprise_name))]),t("p",{staticClass:"qyt-sub"},[e._v("未绑定,使用默认企业 · "+e._s(r.qyt_enterprise_channel))])]:"invalid"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name text-red"},[e._v("绑定失效:"+e._s(r.qyt_bind_name||"企业已删除"))]),t("p",{staticClass:"qyt-sub"},[e._v(e._s(r.qyt_enterprise_name?"实际使用默认企业 "+r.qyt_enterprise_name:"且没有默认企业,下单会被拒绝"))])]:t("p",{staticClass:"qyt-name text-red"},[e._v("无可用企业,下单会被拒绝")])],2)}},{key:"address",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:para",arg:"para"}],attrs:{title:"合作商对接参数"},on:{click:function(t){return e.handleApiPara(r)}}},[e._v("对接参数")]),t("a",{directives:[{name:"action",rawName:"v-action:recharge",arg:"recharge"}],attrs:{title:"合作商充值"},on:{click:function(t){return e.handleRecharge(r)}}},[e._v("充值")]),e.$auth("/partners/update")?t("router-link",{attrs:{to:{path:"/partners/update",query:{partnersId:r.partners_id}}}},[e._v("编辑")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.partners_id])}}},[e._v("删除")])],1)}}])}),t("RechargeForm",{ref:"RechargeForm",on:{handleSubmit:e.handleRefresh}}),t("ApiParaForm",{ref:"ApiParaForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],s=a("5530"),o=(a("d3b7"),a("e533")),n=a("2af9"),l=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"充值余额"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.partners_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前余额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.balance))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终金额")])],1)],1),t("a-form-item",{attrs:{label:"变更金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".money"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金额"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.money`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金额' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2)],1)],1)],1)],1)},c=[],u="balance",d="points",m={components:{},data:function(){return{title:"合作商充值",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:u,RECHARGE_TYPE_BALANCE:u,RECHARGE_TYPE_POINTS:d,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record,r=this.activeKey;this.confirmLoading=!0,o["g"]({partnersId:a.partners_id,target:r,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},p=m,f=(a("5b64"),a("2877")),h=Object(f["a"])(p,l,c,!1,null,"11da5822",null),v=h.exports,b=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:900,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"合作商对接参数"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.orgNo))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商appKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.appKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商私钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.privateKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商公钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.publicKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.callback))])])]:e._e()],2)],1)],1)],1)],1)},_=[],g="balance",C={components:{},data:function(){return{title:"合作商对接参数",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:g,RECHARGE_TYPE_BALANCE:g,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},y=C,w=(a("9b62"),Object(f["a"])(y,b,_,!1,null,"8a3efe68",null)),x=w.exports,L=a("ca00"),S=[{title:"合作商ID",width:"70px",dataIndex:"partners_id"},{title:"合作商编号",width:"150px",dataIndex:"orgNo"},{title:"合作商名称",width:"150px",dataIndex:"name"},{title:"企油通企业",width:"220px",scopedSlots:{customRender:"qyt"}},{title:"合作商地址",width:"200px",dataIndex:"address"},{title:"联系人",width:"150px",dataIndex:"contact_name"},{title:"联系电话",width:"150px",dataIndex:"contact_tel"},{title:"余额",width:"150px",dataIndex:"balance"},{title:"今日金额",width:"150px",dataIndex:"day_money"},{title:"油券总金额",width:"150px",dataIndex:"total_money"},{title:"appKey",dataIndex:"appKey",width:"300px"},{title:"回调地址",dataIndex:"callback",width:"300px",scopedSlots:{customRender:"callback"}},{title:"创建时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"200px",fixed:"right",scopedSlots:{customRender:"action"}}],k={name:"Index",components:{ContentHeader:n["a"],RechargeForm:v,ApiParaForm:x,STable:n["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:S,selectedRowKeys:[],loadData:function(t){return o["f"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},beforeCreate:function(){Object(L["a"])(this,{inArray:L["d"]})},created:function(){},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},handleRecharge:function(e){this.$refs.RechargeForm.handle(e)},handleApiPara:function(e){this.$refs.ApiParaForm.handle(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return o["c"](e).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/partners/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},D=k,q=(a("4603"),Object(f["a"])(D,r,i,!1,null,"5337156e",null));t["default"]=q.exports},ab64:function(e,t,a){},acbe:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],attrs:{placeholder:"请输入商品名称/编码"}})],1),t("a-form-item",{attrs:{label:"订单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],attrs:{placeholder:"请输入订单号"}})],1),t("a-form-item",{attrs:{label:"会员ID"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userId"],expression:"['userId']"}],attrs:{placeholder:"请输入会员ID"}})],1),t("a-form-item",{attrs:{label:"状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:-1}],expression:"['status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("显示")]),t("a-select-option",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.score},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:0}},[e._v("全部")]),t("a-radio-button",{attrs:{value:10}},[e._v("好评")]),t("a-radio-button",{attrs:{value:20}},[e._v("中评")]),t("a-radio-button",{attrs:{value:30}},[e._v("差评")])],1)],1)])],1),t("s-table",{ref:"table",attrs:{rowKey:"comment_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"orderGoods",fn:function(e){return t("span",{},[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props}}})],1)}},{key:"user",fn:function(e){return t("span",{},[t("UserItem",{attrs:{user:e}})],1)}},{key:"score",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:{10:"green",20:"",30:"red"}[a]}},[e._v(e._s({10:"好评",20:"中评",30:"差评"}[a]))])],1)}},{key:"content",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"is_picture",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"是":"否"))])],1)}},{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])])}}])}),t("EditForm",{ref:"EditForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],s=a("5530"),o=(a("d3b7"),a("b775")),n={list:"/goods.comment/list",detail:"/goods.comment/detail",edit:"/goods.comment/edit",delete:"/goods.comment/delete"};function l(e){return Object(o["b"])({url:n.list,method:"get",params:e})}function c(e){return Object(o["b"])({url:n.detail,method:"get",params:e})}function u(e){return Object(o["b"])({url:n.edit,method:"post",data:e})}function d(e){return Object(o["b"])({url:n.delete,method:"post",data:e})}var m=a("ab09"),p=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"评分",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["score",{initialValue:10,rules:[{required:!0}]}],expression:"['score', {initialValue: 10, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("好评")]),t("a-radio",{attrs:{value:20}},[e._v("中评")]),t("a-radio",{attrs:{value:30}},[e._v("差评")])],1)],1),t("a-form-item",{attrs:{label:"评价内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["content"],expression:"['content']"}],attrs:{placeholder:"请输入评价内容 (300个字符以内)",autoSize:{minRows:4}}})],1),t("a-form-item",{attrs:{label:"评价图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最多允许6张,可拖拽调整显示顺序"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imageIds"],expression:"['imageIds']"}],attrs:{multiple:"",maxNum:6,defaultList:e.record.imageList}})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', {initialValue: 1, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},f=[],h=a("88bc"),v=a.n(h),b=a("2af9"),_={components:{SelectImage:b["e"]},data:function(){return{title:"编辑评价",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),commentId:null,record:{}}},methods:{edit:function(e){this.visible=!0,this.commentId=e,this.getRecordData()},getRecordData:function(){var e=this;this.confirmLoading=!0,c({commentId:this.commentId}).then((function(t){e.record=t.data.detail,e.setFieldsValue()})).finally((function(t){e.confirmLoading=!1}))},setFieldsValue:function(){var e=this,t=this.form.setFieldsValue;this.$nextTick((function(){t(v()(e.record,["score","content","status","sort","imageIds"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.record={},this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,u({commentId:this.commentId,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},g=_,C=a("2877"),y=Object(C["a"])(g,p,f,!1,null,null,null),w=y.exports,x=[{title:"ID",dataIndex:"comment_id"},{title:"商品信息",dataIndex:"orderGoods",width:"320px",scopedSlots:{customRender:"orderGoods"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"评分",dataIndex:"score",scopedSlots:{customRender:"score"}},{title:"评价内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"图片评价",dataIndex:"is_picture",scopedSlots:{customRender:"is_picture"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"评价时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],L={name:"Index",components:{STable:m["b"],GoodsItem:m["a"],UserItem:m["c"],EditForm:w},data:function(){var e=this;return{expand:!1,searchForm:this.$form.createForm(this),categoryListTree:[],queryParam:{score:0},isLoading:!1,columns:x,loadData:function(t){return l(Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleTabs:function(e){this.queryParam.score=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(s["a"])(Object(s["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return d({commentId:e.comment_id}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleEdit:function(e){this.$refs.EditForm.edit(e.comment_id)},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)}}},S=L,k=(a("6162"),Object(C["a"])(S,r,i,!1,null,"944533f0",null));t["default"]=k.exports},b06c:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-alert",{staticClass:"tips-alert",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 企油通 7.14 按「企业 + 月份(+ 司机手机号)」出具发票,发票地址与单笔订单没有对应关系。 订单列表里点「发票」会自动按该订单的企业、消费月份、司机同步;这里可以按月批量同步或手动补同步。 ")])]),t("a-form",{staticClass:"sync-form",attrs:{layout:"inline",form:e.syncForm},on:{submit:e.handleSync}},[t("a-form-item",{attrs:{label:"企业"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["enterpriseId",{initialValue:0}],expression:"['enterpriseId', { initialValue: 0 }]"}],staticStyle:{width:"220px"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部启用企业(企业全量)")]),e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+" ")])}))],2)],1),t("a-form-item",{attrs:{label:"月份"}},[t("a-month-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["month",{rules:[{required:!0,message:"请选择月份"}]}],expression:"['month', { rules: [{ required: true, message: '请选择月份' }] }]"}],attrs:{placeholder:"选择月份"}})],1),t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],attrs:{placeholder:"选填,仅指定企业时有效",allowClear:""}})],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"sync",loading:e.isSyncing}},[e._v("同步发票")])],1)],1),t("a-divider"),t("a-form",{staticClass:"search-form",attrs:{layout:"inline",form:e.searchForm},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"企业"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id",{initialValue:0}],expression:"['qyt_enterprise_id', { initialValue: 0 }]"}],staticStyle:{width:"200px"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+" ")])}))],2)],1),t("a-form-item",{attrs:{label:"月份"}},[t("a-month-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["month"],expression:"['month']"}],attrs:{placeholder:"全部"}})],1),t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],attrs:{placeholder:"手机号",allowClear:""}})],1),t("a-form-item",{attrs:{label:"发票"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["has_invoice",{initialValue:-1}],expression:"['has_invoice', { initialValue: -1 }]"}],staticStyle:{width:"110px"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("已出具")]),t("a-select-option",{attrs:{value:0}},[e._v("暂无")])],1)],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"search"}},[e._v("搜索")])],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"invoice_id",columns:e.columns,data:e.loadData},scopedSlots:e._u([{key:"dimension",fn:function(a){return[t("p",{staticClass:"mtb-2"},[t("b",[e._v(e._s(a.company_name))])]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+"  "+e._s(a.month)+"  "+e._s(a.mobile_mask))])]}},{key:"invoices",fn:function(a){return[a.invoice_urls.length?e._l(a.invoice_urls,(function(a,r){return t("p",{key:a,staticClass:"mtb-2"},[t("a",{attrs:{href:a,target:"_blank",rel:"noopener noreferrer"}},[e._v("发票 "+e._s(r+1))])])})):t("span",{staticClass:"sub"},[e._v("暂无")])]}},{key:"sync",fn:function(a){return[t("a-tag",{attrs:{color:{1:"green",2:"red"}[a.sync_status]||""}},[e._v(e._s({0:"未同步",1:"成功",2:"失败"}[a.sync_status]))]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.sync_text))]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.sync_time_text))])]}},{key:"action",fn:function(a){return[t("a",{on:{click:function(t){return e.handleResync(a)}}},[e._v("重新同步")])]}}])})],1)},i=[],s=a("5530"),o=(a("d3b7"),a("b775")),n={list:"/qyt.invoice/list",sync:"/qyt.invoice/sync"};function l(e){return Object(o["b"])({url:n.list,method:"get",params:e})}function c(e){return Object(o["b"])({url:n.sync,method:"post",data:e})}var u=a("763d"),d=a("ab09"),m={name:"QytInvoiceIndex",components:{STable:d["b"]},data:function(){var e=this;return{syncForm:this.$form.createForm(this),searchForm:this.$form.createForm(this),enterpriseList:[],isSyncing:!1,queryParam:{},columns:[{title:"ID",dataIndex:"invoice_id",width:70},{title:"企业 / 通道 / 月份 / 维度",scopedSlots:{customRender:"dimension"}},{title:"发票",scopedSlots:{customRender:"invoices"}},{title:"加油明细条数",dataIndex:"order_count",width:110},{title:"同步状态",scopedSlots:{customRender:"sync"}},{title:"操作",width:100,scopedSlots:{customRender:"action"}}],loadData:function(t){return l(Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){var e=this;u["g"]().then((function(t){e.enterpriseList=t.data.list}))},methods:{handleSync:function(e){var t=this;e.preventDefault(),this.syncForm.validateFields((function(e,a){e||t.doSync({enterpriseId:a.enterpriseId||0,month:a.month.format("YYYY-MM"),mobile:a.enterpriseId&&a.mobile||""})}))},handleResync:function(e){this.doSync({enterpriseId:e.qyt_enterprise_id,month:e.month,mobile:e.mobile})},doSync:function(e){var t=this;this.isSyncing=!0,c(e).then((function(e){t.$message.success(e.message,2),t.$refs.table.refresh()})).finally((function(){t.isSyncing=!1}))},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam={qyt_enterprise_id:a.qyt_enterprise_id||"",month:a.month?a.month.format("YYYY-MM"):"",mobile:a.mobile||"",has_invoice:a.has_invoice},t.$refs.table.refresh(!0))}))}}},p=m,f=(a("9170"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"64a82a48",null);t["default"]=h.exports},b126:function(e,t,a){"use strict";a("9f1c")},b38a:function(e,t,a){"use strict";a("e05c")},b551:function(e,t,a){"use strict";a("6a27")},b91a:function(e,t,a){},bb0b:function(e,t,a){},bba5:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"合作商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商名称"}})],1),t("a-form-item",{attrs:{label:"合作商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1),t("a-form-item",{attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["callback",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['callback', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入回调地址"}})],1),t("a-form-item",{attrs:{label:"企油通企业",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id"],expression:"['qyt_enterprise_id']"}],attrs:{placeholder:"不选则使用默认企业",allowClear:""}},e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+")"+e._s(a.is_default?" · 默认":"")+" ")])})),1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("该合作商下单时使用哪个企业的对接参数与支付通道。留空则走默认企业。")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=a("5530"),o=(a("d3b7"),a("e533")),n=a("763d"),l=a("2af9"),c=a("08a5"),u=a("ca00"),d={components:{InputNumberGroup:l["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),partnersId:null,formData:c["a"].formData,enterpriseList:[]}},created:function(){this.getEnterpriseList(),this.initData()},beforeDestroy:function(){c["a"].formData.partners={}},methods:{getEnterpriseList:function(){var e=this;n["g"]().then((function(t){e.enterpriseList=t.data.list}))},initData:function(){var e=this;this.partnersId=this.$route.query.partnersId,this.isLoading=!0,c["a"].getFromData(this.partnersId).then((function(){Object(u["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(c["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["e"]({partnersId:this.partnersId,form:Object(s["a"])(Object(s["a"])({},e),{},{qyt_enterprise_id:e.qyt_enterprise_id||0})}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},m=d,p=(a("761a"),a("2877")),f=Object(p["a"])(m,r,i,!1,null,"9bc6a936",null);t["default"]=f.exports},c095:function(e,t,a){},c1df6:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}}),t("a-tab-pane",{key:1,attrs:{tab:"规格/库存"}}),t("a-tab-pane",{key:2,attrs:{tab:"商品详情"}}),t("a-tab-pane",{key:3,attrs:{tab:"更多设置"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['goods_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categorys",{rules:[{required:!0,message:"请至少选择1个商品分类"}]}],expression:"['categorys', { rules: [{required: true, message: '请至少选择1个商品分类'}]}]"}],attrs:{placeholder:"请选择商品分类",dropdownStyle:{maxHeight:"500px",overflow:"auto"},treeData:e.formData.categoryList,treeCheckable:"",treeCheckStrictly:"",allowClear:""}}),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/category/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadCategoryList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"商品图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750*750像素, 最多上传10张, 可拖拽图片调整顺序, 第1张将作为商品首图"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imagesIds",{rules:[{required:!0,message:"请至少上传1张商品图片"}]}],expression:"['imagesIds', { rules: [{ required: true, message: '请至少上传1张商品图片' }] }]"}],attrs:{multiple:"",maxNum:10,defaultList:e.formData.goods.goods_images}})],1),t("a-form-item",{staticClass:"mb-5",attrs:{label:"卡券类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"选择中石油油券时所属省份和商品编码必填,选择优惠券时优惠券必选"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oilCardType",{rules:[{required:!0,message:"请选择卡券类型"}],initialValue:"zsy_ticket"}],expression:"[`oilCardType`, { rules: [{required: true, message: '请选择卡券类型'}], initialValue: 'zsy_ticket' }]"}],staticStyle:{width:"300px"}},e._l(e.OilCardTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("无")]),e._l(e.formData.province,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"商品编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_no",{rules:[{message:"请输入至少2个字符"}]}],expression:"['goods_no', {rules: [{message: '请输入至少2个字符'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请输入商品编码"}})],1),t("MultiCoupon",{ref:"MultiCoupon",attrs:{couponList:e.formData.coupon,defaultCouponList:e.formData.goods.couponList},on:{change:e.handleCouponChange}}),t("a-form-item",{attrs:{label:"商品状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:10,rules:[{required:!0}]}],expression:"['status', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("上架")]),t("a-radio",{attrs:{value:20}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"商品排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0}]}],expression:"['sort', {initialValue: 100, rules:[{ required: true }]}]"}],attrs:{min:0}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabKey,expression:"tabKey == 1"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"规格类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["spec_type",{initialValue:10,rules:[{required:!0}]}],expression:"['spec_type', {initialValue: 10, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate()}}},[t("a-radio",{attrs:{value:10}},[e._v("单规格")]),t("a-radio",{attrs:{value:20}},[e._v("多规格")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:20==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 20"}]},[t("MultiSpec",{ref:"MultiSpec",attrs:{defaultSpecList:e.formData.goods.specList,defaultSkuList:e.formData.goods.skuList}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:10==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 10"}]},[t("a-form-item",{attrs:{label:"商品价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际购买金额,最低0.01"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_price",{rules:[{required:!0,message:"请输入商品价格"}]}],expression:"['goods_price', { rules:[{ required: true, message: '请输入商品价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"划线价仅用于商品页展示"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price"],expression:"['line_price']"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"当前库存数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际库存数量,为0时用户无法下单"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["stock_num",{initialValue:100,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['stock_num', { initialValue: 100, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0,precision:0}}),t("span",{staticClass:"ml-10"},[e._v("件")])],1),t("a-form-item",{attrs:{label:"商品重量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际重量,用于计算运费"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_weight",{initialValue:0,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['goods_weight', { initialValue: 0, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0}}),t("span",{staticClass:"ml-10"},[e._v("千克 (Kg)")])],1)],1),t("a-form-item",{attrs:{label:"库存计算方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["deduct_stock_type",{initialValue:10,rules:[{required:!0}]}],expression:"['deduct_stock_type', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("下单减库存")]),t("a-radio",{attrs:{value:20}},[e._v("付款减库存")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabKey,expression:"tabKey == 2"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"商品详情不能为空"}]}],expression:"['content', {rules: [{required: true, message: '商品详情不能为空'}]}]"}]})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:3==e.tabKey,expression:"tabKey == 3"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"主图视频",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议视频宽高比19:9,建议时长8-45秒"}},[t("SelectVideo",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_id"],expression:"['video_id']"}],attrs:{multiple:!1,defaultList:e.formData.goods.video?[e.formData.goods.video]:[]}})],1),t("a-form-item",{attrs:{label:"视频封面",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750像素*750像素"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_cover_id"],expression:"['video_cover_id']"}],attrs:{multiple:!1,defaultList:e.formData.goods.videoCover?[e.formData.goods.videoCover]:[]}})],1),t("a-form-item",{attrs:{label:"商品卖点",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"一句话简述,例如:此款商品美观大方 性价比较高 不容错过"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selling_point"],expression:"['selling_point']"}],attrs:{placeholder:"请输入商品卖点"}})],1),t("a-form-item",{attrs:{label:"服务与承诺",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.formData.serviceList?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["serviceIds"],expression:"['serviceIds']"}],attrs:{mode:"multiple",placeholder:"请选择服务与承诺"}},e._l(e.formData.serviceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.service_id}},[e._v(e._s(a.name))])})),1):e._e(),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/service/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadServiceList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"初始销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端展示的销量 = 初始销量 + 实际销量"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sales_initial",{initialValue:0}],expression:"['sales_initial', {initialValue: 0}]"}]})],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("积分设置")]),t("a-form-item",{attrs:{label:"积分赠送",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品将获得积分"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_gift",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_gift', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{attrs:{label:"积分抵扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品可以使用积分进行抵扣"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_discount",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_discount', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("会员折扣设置")]),t("a-form-item",{attrs:{label:"会员折扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后会员折扣,会员购买此商品可以享受会员等级折扣价"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_enable_grade",{initialValue:1,rules:[{required:!0}]}],expression:"['is_enable_grade', {initialValue: 1, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.getFieldValue("is_enable_grade"),expression:"form.getFieldValue('is_enable_grade')"}],attrs:{label:"会员折扣设置",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_alone_grade",{initialValue:0,rules:[{required:!0}]}],expression:"['is_alone_grade', {initialValue: 0, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:0}},[e._v("默认等级折扣")]),t("a-radio",{attrs:{value:1}},[e._v("单独设置折扣")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.form.getFieldValue("is_alone_grade"),expression:"form.getFieldValue('is_alone_grade')"}]},e._l(e.formData.userGradeList,(function(a){return t("a-form-item",{key:a.grade_id},[t("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["alone_grade_equity[grade_id:".concat(a.grade_id,"]"),{initialValue:e.formData.defaultUserGradeValue[a.grade_id],rules:[{required:!0,message:"折扣率不能为空"}]}],expression:"[`alone_grade_equity[grade_id:${item.grade_id}]`, {\n initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{required: true, message: '折扣率不能为空'}]\n }]"}],attrs:{addonBefore:a.name,addonAfter:"折",inputProps:{min:0,max:9.9}}})],1)})),1),t("div",{staticClass:"form-item-help"},[e.form.getFieldValue("is_alone_grade")?t("p",{staticClass:"extra"},[e._v("单独折扣:折扣率范围0.0-9.9,例如: 9.8代表98折,0代表不折扣")]):t("p",{staticClass:"extra"},[e._v("默认折扣:默认为用户所属会员等级的折扣率")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d3b7"),a("d81d"),a("b64b"),a("d084")),o=a("2af9"),n=a("e1fe"),l=a("8430"),c=a("45b7"),u=a("ca00"),d=a("4a95"),m={components:{SelectImage:o["e"],SelectVideo:o["g"],Ueditor:o["h"],InputNumberGroup:o["b"],MultiSpec:l["a"],MultiCoupon:c["a"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),goodsId:null,formData:n["a"].formData,couponList:[]}},beforeCreate:function(){Object(u["a"])(this,{OilCardTypeEnum:d["c"]})},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.goods={}},methods:{initData:function(){var e=this;this.goodsId=this.$route.query.goodsId,this.isLoading=!0,n["a"].getFromData(this.goodsId).then((function(){Object(u["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},onReloadCategoryList:function(){var e=this;this.isLoading=!0,n["a"].getCategoryList().then((function(){e.isLoading=!1}))},onReloadServiceList:function(){var e=this;this.isLoading=!0,n["a"].getServiceList().then((function(){e.isLoading=!1}))},onReloadStock:function(){var e=this;this.isLoading=!0,s["h"]({goodsId:this.goodsId}).then((function(t){e.$message.success(t.message,1.5),e.form.setFieldsValue({stock_num:t.data.canOrderNum})})).catch((function(){e.isBtnLoading=!1})).finally((function(){e.isLoading=!1}))},onReloadDeliveryList:function(){var e=this;this.isLoading=!0,n["a"].getDeliveryList().then((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){if(e)return t.onTargetTabError(e),!1;if(20===a.spec_type){var r=t.$refs.MultiSpec;if(!r.verifyForm())return t.tabKey=1,!1;a.specData=r.getFromSpecData()}return a.categoryIds=a.categorys.map((function(e){return e.value})),delete a.categorys,a.couponList=t.couponList,t.onFormSubmit(a),!0}))},onTargetTabError:function(e){var t=[["goods_name","categorys","imagesIds","province"],["spec_type","goods_price"],["content"],["alone_grade_equity","first_money","second_money","third_money"]],a=Object.keys(e).shift();for(var r in t)if(t[r].indexOf(a)>-1){this.tabKey=parseInt(r);break}},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["e"]({goodsId:this.goodsId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))},handleCouponChange:function(e){this.couponList=e}}},p=m,f=(a("3f55"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"42fcaf9f",null);t["default"]=h.exports},c405:function(e,t,a){},d17a:function(e,t,a){"use strict";a("f88b")},dd9f:function(e,t,a){},e05c:function(e,t,a){},e1fe:function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("4de4"),a("159b"),a("2ef0")),s=a.n(i),o=a("8243"),n=a("d084"),l=a("39ad9"),c=a("2e1c"),u=a("b775"),d={list:"/goods.service/list",all:"/goods.service/all",add:"/goods.service/add",edit:"/goods.service/edit",delete:"/goods.service/delete"};function m(e){return Object(u["b"])({url:d.all,method:"get",params:e})}var p=a("967a");t["a"]={goodsId:null,formData:{goods:{},categoryList:[],deliveryList:[],serviceList:[],defaultServiceIds:[],userGradeList:[],defaultUserGradeValue:{},province:[],coupon:[]},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.goodsId=t,new Promise((function(a,r){Promise.all([e.getGoodsDetail(t),e.getCategoryList(),e.getDeliveryList(),e.getServiceList(),e.getUserGradeList(),e.getProvinceList(),e.getCouponList()]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getGoodsDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){n["d"]({goodsId:t}).then((function(t){e.formData.goods=t.data.goodsInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.goods;e.categorys=this.formatCategoryIds(e.categoryIds);var t=s.a.pick(e,["goods_name","categorys","goods_no","delivery_type","sort","province","oilCardType","coupon_id","status","spec_type","deduct_stock_type","content","selling_point","serviceIds","sales_initial","is_points_gift","is_points_discount","is_enable_grade","is_alone_grade"]),a=s.a.pick(e.skuList[0],["goods_price","line_price","stock_num","goods_weight"]);return Object(r["a"])(Object(r["a"])({},t),a)},formatCategoryIds:function(e){return e.map((function(e){return{value:e}}))},getCategoryList:function(){var e=this;return new Promise((function(t,a){o["a"].getCategoryTreeSelect().then((function(a){e.formData.categoryList=a,t()}))}))},getDeliveryList:function(){var e=this;return new Promise((function(t,a){p["b"]().then((function(a){e.formData.deliveryList=a.data.list,t()}))}))},getServiceList:function(){var e=this;return new Promise((function(t,a){m().then((function(a){e.formData.serviceList=a.data.list,t()}))}))},getUserGradeList:function(){var e=this;return new Promise((function(t,a){c["b"]({status:1}).then((function(a){e.formData.userGradeList=a.data.list,t()}))}))},getProvinceList:function(){var e=this;return new Promise((function(t,a){n["i"]().then((function(a){e.formData.province=a.data.list,t()}))}))},getCouponList:function(){var e=this;return new Promise((function(t,a){l["b"]().then((function(a){e.formData.coupon=a.data.list,t()}))}))},setDefaultData:function(){this.setDefaultServiceIds(),this.setDefaultUserGradeValue()},setDefaultServiceIds:function(){var e=this.formData.serviceList;if(!this.goodsId){var t=e.filter((function(e){return e.is_default}));this.formData.defaultServiceIds=t.map((function(e){return e.service_id}))}},setDefaultUserGradeValue:function(){var e=this.formData.userGradeList,t=this.goodsId&&this.formData.goods.alone_grade_equity?this.formData.goods.alone_grade_equity:{},a={};e.forEach((function(e){a[e.grade_id]=t[e.grade_id]||e.equity.discount})),this.formData.defaultUserGradeValue=Object(r["a"])({},a)}}},e533:function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"c",(function(){return d}));var r=a("b775"),i={list:"/partners/index",detail:"/partners/detail",add:"/partners/add",edit:"/partners/edit",delete:"/partners/delete",all:"/partners/all",recharge:"/partners/recharge"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.recharge,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},ec78:function(e,t,a){"use strict";a("5193")},f040:function(e,t,a){},f11f:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}}),t("a-tab-pane",{key:1,attrs:{tab:"规格/库存"}}),t("a-tab-pane",{key:2,attrs:{tab:"商品详情"}}),t("a-tab-pane",{key:3,attrs:{tab:"更多设置"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['goods_name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categorys",{rules:[{required:!0,message:"请至少选择1个商品分类"}]}],expression:"['categorys', {rules: [{required: true, message: '请至少选择1个商品分类'}]}]"}],attrs:{placeholder:"请选择商品分类",dropdownStyle:{maxHeight:"500px",overflow:"auto"},treeData:e.formData.categoryList,treeCheckable:"",treeCheckStrictly:"",allowClear:""}}),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/category/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadCategoryList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"商品图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750*750像素, 最多上传10张, 可拖拽图片调整顺序, 第1张将作为商品首图"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imagesIds",{rules:[{required:!0,message:"请至少上传1张商品图片"}]}],expression:"['imagesIds', {rules: [{required: true, message: '请至少上传1张商品图片'}]}]"}],attrs:{multiple:"",maxNum:10}})],1),t("a-form-item",{staticClass:"mb-5",attrs:{label:"卡券类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"选择中石油油券时所属省份和商品编码必填,选择优惠券时优惠券必选"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oilCardType",{rules:[{required:!0,message:"请选择卡券类型"}],initialValue:"zsy_ticket"}],expression:"[`oilCardType`, {rules: [{required: true, message: '请选择卡券类型'}], initialValue: 'zsy_ticket' }]"}],staticStyle:{width:"300px"}},e._l(e.OilCardTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},e._l(e.formData.province,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"商品编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_no",{rules:[{min:2,message:"请输入至少2个字符"}]}],expression:"['goods_no', {rules: [{min: 2, message: '请输入至少2个字符'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请输入商品编码"}})],1),t("MultiCoupon",{ref:"MultiCoupon",attrs:{couponList:e.formData.coupon},on:{change:e.handleCouponChange}}),t("a-form-item",{attrs:{label:"商品状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:10,rules:[{required:!0}]}],expression:"['status', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("上架")]),t("a-radio",{attrs:{value:20}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"商品排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0}]}],expression:"['sort', {initialValue: 100, rules:[{ required: true }]}]"}],attrs:{min:0}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabKey,expression:"tabKey == 1"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"规格类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["spec_type",{initialValue:10,rules:[{required:!0}]}],expression:"['spec_type', { initialValue: 10, rules: [{ required: true }] }]"}],on:{change:function(t){return e.onForceUpdate()}}},[t("a-radio",{attrs:{value:10}},[e._v("单规格")]),t("a-radio",{attrs:{value:20}},[e._v("多规格")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:20==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 20"}]},[t("MultiSpec",{ref:"MultiSpec"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:10==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 10"}]},[t("a-form-item",{attrs:{label:"商品价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际购买金额,最低0.01"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_price",{initialValue:"",rules:[{required:!0,message:"请输入商品价格"}]}],expression:"['goods_price', { initialValue: '', rules: [{ required: true, message: '请输入商品价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"划线价仅用于商品页展示"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price"],expression:"['line_price']"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"当前库存数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际库存数量,为0时用户无法下单"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["stock_num",{initialValue:100,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['stock_num', { initialValue: 100, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0,precision:0}}),t("span",{staticClass:"ml-10"},[e._v("件")])],1),t("a-form-item",{attrs:{label:"商品重量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际重量,用于计算运费"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_weight",{initialValue:0,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['goods_weight', { initialValue: 0, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0}}),t("span",{staticClass:"ml-10"},[e._v("千克 (Kg)")])],1)],1),t("a-form-item",{attrs:{label:"库存计算方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["deduct_stock_type",{initialValue:10,rules:[{required:!0}]}],expression:"['deduct_stock_type', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("下单减库存")]),t("a-radio",{attrs:{value:20}},[e._v("付款减库存")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabKey,expression:"tabKey == 2"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"商品详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '商品详情不能为空' }] }]"}]})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:3==e.tabKey,expression:"tabKey == 3"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"主图视频",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议视频宽高比19:9,建议时长8-45秒"}},[t("SelectVideo",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_id"],expression:"['video_id']"}],attrs:{multiple:!1}})],1),t("a-form-item",{attrs:{label:"视频封面",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750像素*750像素"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_cover_id"],expression:"['video_cover_id']"}],attrs:{multiple:!1}})],1),t("a-form-item",{attrs:{label:"商品卖点",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"一句话简述,例如:此款商品美观大方 性价比较高 不容错过"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selling_point"],expression:"['selling_point']"}],attrs:{placeholder:"请输入商品卖点"}})],1),t("a-form-item",{attrs:{label:"服务与承诺",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.formData.serviceList?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["serviceIds",{initialValue:e.formData.defaultServiceIds}],expression:"['serviceIds', { initialValue: formData.defaultServiceIds }]"}],attrs:{mode:"multiple",placeholder:"请选择服务与承诺"}},e._l(e.formData.serviceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.service_id}},[e._v(e._s(a.name))])})),1):e._e(),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/service/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadServiceList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"初始销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端展示的销量 = 初始销量 + 实际销量"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sales_initial",{initialValue:0}],expression:"['sales_initial', {initialValue: 0}]"}]})],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("积分设置")]),t("a-form-item",{attrs:{label:"积分赠送",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品将获得积分"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_gift",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_gift', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{attrs:{label:"积分抵扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品可以使用积分进行抵扣"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_discount",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_discount', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("会员折扣设置")]),t("a-form-item",{attrs:{label:"会员折扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后会员折扣,会员购买此商品可以享受会员等级折扣价"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_enable_grade",{initialValue:1,rules:[{required:!0}]}],expression:"['is_enable_grade', {initialValue: 1, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),e.form.getFieldValue("is_enable_grade")?t("a-form-item",{attrs:{label:"会员折扣设置",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_alone_grade",{initialValue:0,rules:[{required:!0}]}],expression:"['is_alone_grade', { initialValue: 0, rules: [{ required: true }] }]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:0}},[e._v("默认等级折扣")]),t("a-radio",{attrs:{value:1}},[e._v("单独设置折扣")])],1),e.form.getFieldValue("is_alone_grade")?t("div",e._l(e.formData.userGradeList,(function(a){return t("a-form-item",{key:a.grade_id},[t("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["alone_grade_equity[grade_id:".concat(a.grade_id,"]"),{initialValue:e.formData.defaultUserGradeValue[a.grade_id],rules:[{required:!0,message:"折扣率不能为空"}]}],expression:"[`alone_grade_equity[grade_id:${item.grade_id}]`, {\n initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{required: true, message: '折扣率不能为空'}]\n }]"}],attrs:{addonBefore:a.name,addonAfter:"折",inputProps:{min:0,max:9.9}}})],1)})),1):e._e(),t("div",{staticClass:"form-item-help"},[e.form.getFieldValue("is_alone_grade")?t("p",{staticClass:"extra"},[e._v("单独折扣:折扣率范围0.0-9.9,例如: 9.8代表98折,0代表不折扣")]):t("p",{staticClass:"extra"},[e._v("默认折扣:默认为用户所属会员等级的折扣率")])])],1):e._e()],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(a("d81d"),a("b64b"),a("d3b7"),a("ca00")),o=a("d084"),n=a("2af9"),l=a("e1fe"),c=a("8430"),u=a("45b7"),d=a("4a95"),m={components:{SelectImage:n["e"],SelectVideo:n["g"],Ueditor:n["h"],InputNumberGroup:n["b"],MultiSpec:c["a"],MultiCoupon:u["a"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:l["a"].formData,couponList:[]}},beforeCreate:function(){Object(s["a"])(this,{OilCardTypeEnum:d["c"]})},created:function(){var e=this;this.isLoading=!0,l["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},onReloadCategoryList:function(){var e=this;this.isLoading=!0,l["a"].getCategoryList().then((function(){e.isLoading=!1}))},onReloadServiceList:function(){var e=this;this.isLoading=!0,l["a"].getServiceList().then((function(){e.isLoading=!1}))},onReloadDeliveryList:function(){var e=this;this.isLoading=!0,l["a"].getDeliveryList().then((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){if(e)return t.onTargetTabError(e),!1;if(20===a.spec_type){var r=t.$refs.MultiSpec;if(!r.verifyForm())return t.tabKey=1,!1;a.specData=r.getFromSpecData()}return a.categoryIds=a.categorys.map((function(e){return e.value})),delete a.categorys,a.couponList=t.couponList,t.onFormSubmit(a),!0}))},onTargetTabError:function(e){var t=[["goods_name","categorys","imagesIds","province"],["spec_type","goods_price"],["content"],["alone_grade_equity","first_money","second_money","third_money"]],a=Object.keys(e).shift();for(var r in t)if(t[r].indexOf(a)>-1){this.tabKey=parseInt(r);break}},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))},handleCouponChange:function(e){this.couponList=e}}},p=m,f=(a("52ea"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"21446ca5",null);t["default"]=h.exports},f88b:function(e,t,a){},fab29:function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"b",(function(){return d})),a.d(t,"g",(function(){return m}));var r=a("b775"),i={list:"/user/list",detail:"/user/detail",add:"/user/add",edit:"/user/edit",recharge:"/user/recharge",grade:"/user/grade",delete:"/user/delete",merchant:"/user/merchant"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.recharge,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.grade,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function m(){return Object(r["b"])({url:i.merchant,method:"post"})}}}]); \ No newline at end of file diff --git a/server-tp6/public/store/js/goods.8a836fa3.js.gz b/server-tp6/public/store/js/goods.8a836fa3.js.gz deleted file mode 100644 index 834e6b5..0000000 Binary files a/server-tp6/public/store/js/goods.8a836fa3.js.gz and /dev/null differ diff --git a/server-tp6/public/store/js/goods.991c20e7.js b/server-tp6/public/store/js/goods.991c20e7.js new file mode 100644 index 0000000..b4edaca --- /dev/null +++ b/server-tp6/public/store/js/goods.991c20e7.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["goods"],{"03eb":function(e,t,a){},"0573":function(e,t,a){},"07dd":function(e,t,a){},"08a5":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("a9e3"),a("2ef0")),o=a.n(i),s=a("e533");t["a"]={partnersId:null,formData:{partners:{}},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.partnersId=t,new Promise((function(a,r){Promise.all([e.getPartnersDetail(t)]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getPartnersDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){s["d"]({partnersId:t}).then((function(t){e.formData.partners=t.data.partnersInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.partners,t=o.a.pick(e,["partners_id","name","address","contact_name","contact_tel","appKey","callback","create_time"]);t.callback=t.callback.toString();var a=Number(e.qyt_enterprise_id||0);return Object(r["a"])(Object(r["a"])({},t),{},{qyt_enterprise_id:a>0?a:void 0})},setDefaultData:function(){}}},1788:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品编码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsNo"],expression:"['goodsNo']"}],attrs:{placeholder:"请输入商品编码"}})],1),t("a-form-item",{attrs:{label:"商品分类"}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categoryId",{initialValue:0}],expression:"['categoryId', { initialValue: 0 }]"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"500px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.listType},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"all"}},[e._v("全部")]),t("a-radio-button",{attrs:{value:"on_sale"}},[e._v("出售中")]),t("a-radio-button",{attrs:{value:"off_sale"}},[e._v("已下架")]),t("a-radio-button",{attrs:{value:"sold_out"}},[e._v("已售罄")])],1)],1),e.$auth("/goods/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("创建商品")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-up"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!0)}}},[e._v("上架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-down"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!1)}}},[e._v("下架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"goods_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"goods_image",fn:function(e){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:e,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:e,alt:"商品图片"}})])])}},{key:"goods_name",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"oilCardType",fn:function(a){return t("span",{},[t("p",[e._v(e._s(e.OilCardTypeEnum[a].name))])])}},{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{staticClass:"cur-p",attrs:{color:10==a?"green":"red"},on:{click:function(t){return e.handleUpdateStatus([r.goods_id],10!=a)}}},[e._v(e._s(10==a?"上架":"下架"))])],1)}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("router-link",{attrs:{to:{path:"/goods/update",query:{goodsId:r.goods_id}}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.goods_id])}}},[e._v("删除")])],1)}}])})],1)},i=[],o=a("5530"),s=(a("d3b7"),a("ca00")),n=a("d084"),l=a("2af9"),c=a("8243"),u=a("4a95"),d=[{title:"商品ID",dataIndex:"goods_id"},{title:"省份",dataIndex:"province"},{title:"卡券类型",dataIndex:"oilCardType",scopedSlots:{customRender:"oilCardType"}},{title:"商品图片",dataIndex:"goods_image",scopedSlots:{customRender:"goods_image"}},{title:"商品名称",dataIndex:"goods_name",width:"200px",scopedSlots:{customRender:"goods_name"}},{title:"商品编码",dataIndex:"goods_no",width:"100px",scopedSlots:{customRender:"goods_no"}},{title:"商品价格",dataIndex:"goods_price_min",scopedSlots:{customRender:"goods_price_min"}},{title:"总销量",dataIndex:"sales_actual"},{title:"库存总量",dataIndex:"stock_total"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],m={name:"Index",components:{ContentHeader:l["a"],STable:l["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),categoryListTree:[],queryParam:{listType:"all"},isLoading:!1,columns:d,selectedRowKeys:[],loadData:function(t){return n["f"](Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},beforeCreate:function(){Object(s["a"])(this,{OilCardTypeEnum:u["c"]})},created:function(){this.$route.query.listType&&(this.queryParam.listType=this.$route.query.listType),this.getCategoryList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.listType=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},getCategoryList:function(){var e=this;this.isLoading=!0,c["a"].getListFromScreen().then((function(t){e.categoryListTree=t})).finally((function(t){e.isLoading=!1}))},handleUpdateStatus:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.$auth("/goods/index.status"))return!1;this.isLoading=!0,n["j"]({goodsIds:e,state:a}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){t.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return n["c"]({goodsIds:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/goods/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},p=m,f=(a("1ff6"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"e4020f40",null);t["default"]=h.exports},"1a56":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"用户电话"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入用户电话"}})],1),t("a-form-item",{attrs:{label:"订单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"log_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"order_type",fn:function(a){return t("span",{},[t("a-tag",[e._v(e._s(e.TypeEnum[a].name))])],1)}},{key:"goods",fn:function(e){return t("span",{},[t("GoodsItem",{attrs:{data:{image:e.images[0].file.preview_url,imageAlt:"商品图片",title:e.goods_name,goods_no:e.goods_no,goodsProps:e.goods_props}}})],1)}},{key:"user",fn:function(e){return t("span",{},[t("UserItem",{attrs:{user:e}})],1)}},{key:"merchant",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.name))])])}}])})],1)},i=[],o=a("5530"),s=a("b775"),n={list:"/merchant.order/list"};function l(e){return Object(s["b"])({url:n.list,method:"get",params:e})}var c=a("ab09"),u=a("5c06"),d=new u["a"]([{key:"TICKET",name:"油券",value:"zsy_ticket"},{key:"COUPON",name:"优惠券",value:"coupon"}]),m={name:"Index",components:{STable:c["b"],GoodsItem:c["a"],UserItem:c["c"]},data:function(){var e=this;return{TypeEnum:d,searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:[{title:"ID",dataIndex:"merchant_order_id"},{title:"订单编号",dataIndex:"order_no",scopedSlots:{customRender:"order_no"}},{title:"订单类型",dataIndex:"order_type",scopedSlots:{customRender:"order_type"}},{title:"订单金额",dataIndex:"order_price"},{title:"商品信息",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"代理商",dataIndex:"merchant",scopedSlots:{customRender:"merchant"}},{title:"管理员备注",width:"260px",dataIndex:"admin_remark"},{title:"订单时间",dataIndex:"create_time"}],loadData:function(t){return l(Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))}}},p=m,f=(a("91bf"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"bfa4e59e",null);t["default"]=h.exports},"1ff6":function(e,t,a){"use strict";a("94a3")},"24ba":function(e,t,a){},"252a":function(e,t,a){},"28d5":function(e,t,a){},"2e1c":function(e,t,a){"use strict";a.d(t,"e",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return c}));var r=a("b775"),i={list:"/user.grade/list",all:"/user.grade/all",add:"/user.grade/add",edit:"/user.grade/edit",delete:"/user.grade/delete"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"2eff":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("2ef0")),o=a.n(i),s=a("fab29");t["a"]={userId:null,formData:{user:{},merchantList:[]},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.userId=t,new Promise((function(a,r){Promise.all([e.getUserDetail(t),e.getMerchantList()]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getUserDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){s["c"]({userId:t}).then((function(t){e.formData.user=t.data.userInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.user,t=o.a.pick(e,["user_id","userNo","userType","userIdCard","platform","create_time"]);return t.callback=t.callback.toString(),Object(r["a"])({},t)},getMerchantList:function(){var e=this;return new Promise((function(t,a){s["g"]().then((function(a){e.formData.merchantList=a.data.list,t()}))}))},setDefaultData:function(){}}},"335a":function(e,t,a){"use strict";a("565a")},3669:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商户",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["merchant_id",{rules:[{required:!0,message:"请选择商户"}]}],expression:"['merchant_id', {rules: [{required: true, message: '请选择商户'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择商户"}},e._l(e.formData.merchantList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.merchant_id}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"用户角色",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["userType",{rules:[{required:!0,message:"请选择用户角色"}]}],expression:"['userType', {rules: [{required: true, message: '请选择用户角色'}]}]"}],attrs:{placeholder:"请选择用户角色"}},e._l(["user","admin"],(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"用户名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['userName', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户名称"}})],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['mobile', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户手机号"}})],1),t("a-form-item",{attrs:{label:"用户身份证号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userIdCard",{rules:[{required:!1}]}],expression:"['userIdCard', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入用户身份证号"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("fab29")),s=a("2eff"),n={components:{},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:s["a"].formData}},created:function(){var e=this;this.isLoading=!0,s["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},l=n,c=(a("d17a"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"95fdaa1e",null);t["default"]=u.exports},3686:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-button",{directives:[{name:"action",rawName:"v-action:add",arg:"add"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),e.isLoading?e._e():t("a-table",{attrs:{rowKey:"category_id",columns:e.columns,dataSource:e.categoryList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])])}}],null,!1,1032135766)}),t("AddForm",{ref:"AddForm",attrs:{categoryList:e.categoryList,provinceList:e.provinceList},on:{handleSubmit:e.handleRefresh}}),t("EditForm",{ref:"EditForm",attrs:{categoryList:e.categoryList,provinceList:e.provinceList},on:{handleSubmit:e.handleRefresh}})],1)},i=[],o=(a("d3b7"),a("2f71")),s=a("2af9"),n=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增商品分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}]})],1),t("a-form-item",{attrs:{label:"上级分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["parent_id",{initialValue:0}],expression:"['parent_id', {initialValue: 0}]"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"400px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("不限")]),e._l(e.provinceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}]})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', {initialValue: 1, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},l=[],c=(a("99af"),a("8243")),u={components:{SelectImage:s["e"]},props:{categoryList:{type:Array,required:!0},provinceList:{type:Array,required:!0}},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),categoryListTree:[]}},methods:{add:function(){this.visible=!0,this.getCategoryList()},getCategoryList:function(){var e=this.categoryList,t=c["a"].formatTreeData(e);this.categoryListTree=[{title:"顶级分类",key:0,value:0}].concat(t)},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,o["a"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},d=u,m=a("2877"),p=Object(m["a"])(d,n,l,!1,null,null,null),f=p.exports,h=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑商品分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}]})],1),t("a-form-item",{attrs:{label:"上级分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["parent_id"],expression:"['parent_id']"}],attrs:{treeData:e.categoryListTree,dropdownStyle:{maxHeight:"400px",overflow:"auto"},allowClear:""}})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("不限")]),e._l(e.provinceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},v=[],b=a("2ef0"),_=a.n(b),g={components:{SelectImage:s["e"]},props:{categoryList:{type:Array,required:!0},provinceList:{type:Array,required:!0}},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),categoryListTree:[],record:{}}},methods:{edit:function(e){this.visible=!0,this.record=e,this.getCategoryList(),this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(_.a.pick(e,["name","parent_id","image_id","status","province","sort"]))}))},getCategoryList:function(){var e=this.categoryList,t=c["a"].formatTreeData(e);this.categoryListTree=[{title:"顶级分类",key:0,value:0}].concat(t)},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,o["c"]({categoryId:this.record["category_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},C=g,y=Object(m["a"])(C,h,v,!1,null,null,null),w=y.exports,x=a("d084"),S={name:"Index",components:{STable:s["c"],AddForm:f,EditForm:w},data:function(){return{categoryList:[],provinceList:[],queryParam:{},isLoading:!1,columns:[{title:"分类ID",dataIndex:"category_id"},{title:"分类名称",dataIndex:"name"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"省份",dataIndex:"province"},{title:"排序",dataIndex:"sort"},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}]}},created:function(){this.getCategoryList(!0),this.getProvinceList()},methods:{getCategoryList:function(e){var t=this;e&&(this.isLoading=!0),o["d"]().then((function(e){t.categoryList=e.data.list})).finally((function(e){t.isLoading=!1}))},getProvinceList:function(){var e=this;return new Promise((function(t,a){x["i"]().then((function(a){e.provinceList=a.data.list,t()}))}))},handleAdd:function(){this.$refs.AddForm.add()},handleEdit:function(e){this.$refs.EditForm.edit(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return o["b"]({categoryId:e["category_id"]}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleRefresh:function(){this.getCategoryList()}}},k=S,L=Object(m["a"])(k,r,i,!1,null,null,null);t["default"]=L.exports},"38b4":function(e,t,a){"use strict";a("0573")},"39ad9":function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return n})),a.d(t,"g",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"c",(function(){return d}));var r=a("b775"),i={list:"/market.coupon/list",all:"/market.coupon/all",detail:"/market.coupon/detail",receive:"/market.coupon/receive",add:"/market.coupon/add",edit:"/market.coupon/edit",delete:"/market.coupon/delete"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.receive,method:"get",params:e})}function c(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"39f0":function(e,t,a){"use strict";a("9f7c")},"3f55":function(e,t,a){"use strict";a("28d5")},4207:function(e,t,a){"use strict";a("6ab0")},4211:function(e,t,a){"use strict";a("60be")},"43de":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商名称"}})],1),t("a-form-item",{attrs:{label:"代理商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("c519")),s=a("86e8"),n={components:{},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:s["a"].formData}},created:function(){var e=this;this.isLoading=!0,s["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},l=n,c=(a("b551"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"0519cf39",null);t["default"]=u.exports},"459d":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商户",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["merchant_id",{rules:[{required:!0,message:"请选择商户"}]}],expression:"['merchant_id', {rules: [{required: true, message: '请选择商户'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择商户"}},e._l(e.formData.merchantList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.merchant_id}},[e._v(e._s(a.name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/shop/create"}}},[e._v("新增店铺")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadShopList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"用户角色",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["userType",{rules:[{required:!0,message:"请选择用户角色"}]}],expression:"['userType', {rules: [{required: true, message: '请选择用户角色'}]}]"}],attrs:{placeholder:"请选择用户角色"}},e._l(["user","admin"],(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"用户名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['userName', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户名称"}})],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['mobile', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入用户手机号"}})],1),t("a-form-item",{attrs:{label:"用户身份证号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userIdCard",{rules:[{required:!1}]}],expression:"['userIdCard', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入用户身份证号"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("fab29")),s=a("2af9"),n=a("2eff"),l=a("ca00"),c={components:{InputNumberGroup:s["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),userId:null,formData:n["a"].formData}},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.user={}},methods:{initData:function(){var e=this;this.userId=this.$route.query.userId,this.isLoading=!0,n["a"].getFromData(this.userId).then((function(){Object(l["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["d"]({userId:this.userId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("b126"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"a3fe5cd4",null);t["default"]=m.exports},"45b7":function(e,t,a){"use strict";a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-form-item",{attrs:{label:"优惠券",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"sku-batch"},[t("a-button",{on:{click:e.handleAddCoupon}},[e._v("添加优惠券")])],1),t("a-table",{staticClass:"sku-list",attrs:{columns:e.columns,dataSource:e.multiCouponData,scroll:{x:!0},pagination:!1,bordered:"",rowKey:"row_id"},scopedSlots:e._u([{key:"coupon_id",fn:function(a,r){return[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择优惠券"},on:{change:e.emitChange},model:{value:r.coupon_id,callback:function(t){e.$set(r,"coupon_id",t)},expression:"item.coupon_id"}},e._l(e.couponList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.coupon_id}},[e._v(" "+e._s(a.name)+" ")])})),1)]}},{key:"send_num",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:0},on:{change:e.emitChange},model:{value:r.send_num,callback:function(t){e.$set(r,"send_num",t)},expression:"item.send_num"}})]}},{key:"action",fn:function(a,r){return[t("a",{on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])]}}])})],1)],1)},i=[],o=a("5530"),s=(a("d81d"),a("4de4"),a("d3b7"),a("4d91")),n=[{title:"优惠券",dataIndex:"coupon_id",width:120,scopedSlots:{customRender:"coupon_id"}},{title:"数量",dataIndex:"send_num",width:120,scopedSlots:{customRender:"send_num"}},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],l={props:{couponList:s["a"].any,defaultCouponList:s["a"].array.def([]),isCouponLocked:s["a"].bool.def(!1)},data:function(){return{columns:n,labelCol:{span:3},wrapperCol:{span:21},multiCouponData:[]}},watch:{defaultCouponList:function(e){e.length&&this.getData()}},created:function(){this.getData()},methods:{getData:function(){this.multiCouponData=this.defaultCouponList.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{row_id:e.row_id||Date.now()+t})})),this.emitChange()},handleAddCoupon:function(){this.multiCouponData.push({coupon_id:null,send_num:1,row_id:Date.now()}),this.emitChange()},handleDelete:function(e){this.multiCouponData=this.multiCouponData.filter((function(t){return t!==e})),this.emitChange()},emitChange:function(){this.$emit("change",this.multiCouponData)}}},c=l,u=(a("4207"),a("2877")),d=Object(u["a"])(c,r,i,!1,null,"c7587ee2",null);t["a"]=d.exports},4603:function(e,t,a){"use strict";a("dd9f")},5193:function(e,t,a){},"52ea":function(e,t,a){"use strict";a("07dd")},"55c4":function(e,t,a){"use strict";a("ab64")},"565a":function(e,t,a){},"5b64":function(e,t,a){"use strict";a("f040")},"5bd3":function(e,t,a){},"5cd2":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"合作商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商名称"}})],1),t("a-form-item",{attrs:{label:"合作商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1),t("a-form-item",{attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["callback",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['callback', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入回调地址"}})],1),t("a-form-item",{attrs:{label:"企油通企业",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id"],expression:"['qyt_enterprise_id']"}],attrs:{placeholder:"不选则使用默认企业",allowClear:""}},e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+")"+e._s(a.is_default?" · 默认":"")+" ")])})),1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("该合作商下单时使用哪个企业的对接参数与支付通道。留空则走默认企业。")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=a("5530"),s=(a("d3b7"),a("e533")),n=a("763d"),l=a("08a5"),c={data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:l["a"].formData,enterpriseList:[]}},created:function(){var e=this;this.getEnterpriseList(),this.isLoading=!0,l["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{getEnterpriseList:function(){var e=this;n["g"]().then((function(t){e.enterpriseList=t.data.list}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["a"]({form:Object(o["a"])(Object(o["a"])({},e),{},{qyt_enterprise_id:e.qyt_enterprise_id||0})}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("784f"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"41360aa9",null);t["default"]=m.exports},"60be":function(e,t,a){},6162:function(e,t,a){"use strict";a("bb0b")},"62cd":function(e,t,a){},"62da":function(e,t,a){"use strict";a("03eb")},"6a27":function(e,t,a){},"6ab0":function(e,t,a){},7367:function(e,t,a){"use strict";a("5bd3")},"761a":function(e,t,a){"use strict";a("252a")},"763d":function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"g",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return d})),a.d(t,"i",(function(){return m})),a.d(t,"j",(function(){return p})),a.d(t,"c",(function(){return f}));var r=a("b775"),i={list:"/qyt.enterprise/list",options:"/qyt.enterprise/options",detail:"/qyt.enterprise/detail",add:"/qyt.enterprise/add",edit:"/qyt.enterprise/edit",delete:"/qyt.enterprise/delete",setDefault:"/qyt.enterprise/setDefault",apply:"/qyt.enterprise/apply",syncAccount:"/qyt.enterprise/syncAccount",syncList:"/qyt.enterprise/syncList",balance:"/qyt.enterprise/balance"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.options,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.setDefault,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.apply,method:"post",data:e})}function m(e){return Object(r["b"])({url:i.syncAccount,method:"post",data:e})}function p(e){return Object(r["b"])({url:i.syncList,method:"post",data:e})}function f(e){return Object(r["b"])({url:i.balance,method:"get",params:e})}},"77e1":function(e,t,a){},"784f":function(e,t,a){"use strict";a("77e1")},"796a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键字搜索"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"代理商编号/代理商名称/代理商地址/联系人/联系电话"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[e.$auth("/merchant/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"merchant_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"address",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:qrCode",arg:"qrCode"}],attrs:{title:"推广码"},on:{click:function(t){return e.handleQrCode(r)}}},[e._v("推广码")]),t("a",{directives:[{name:"action",rawName:"v-action:recharge",arg:"recharge"}],attrs:{title:"代理商充值"},on:{click:function(t){return e.handleRecharge(r)}}},[e._v("充值")]),e.$auth("/merchant/update")?t("router-link",{attrs:{to:{path:"/merchant/update",query:{merchantId:r.merchant_id}}}},[e._v("编辑")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.merchant_id])}}},[e._v("删除")]),t("a",{directives:[{name:"action",rawName:"v-action:sendCoupon",arg:"sendCoupon"}],attrs:{title:"抖音发券"},on:{click:function(t){return e.handleSendCoupon(r)}}},[e._v("抖音发券")])],1)}}])}),t("RechargeForm",{ref:"RechargeForm",on:{handleSubmit:e.handleRefresh}}),t("ApiParaForm",{ref:"ApiParaForm",on:{handleSubmit:e.handleRefresh}}),t("QrCodeForm",{ref:"QrCodeForm",on:{handleSubmit:e.handleRefresh}}),t("SendCouponForm",{ref:"SendCouponForm",attrs:{coupongoods:e.couponGoodsData},on:{handleSubmit:e.handleRefresh}})],1)},i=[],o=a("5530"),s=(a("d3b7"),a("c519")),n=a("d084"),l=a("2af9"),c=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"充值余额"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.merchant_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前余额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.balance))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终金额")])],1)],1),t("a-form-item",{attrs:{label:"变更金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".money"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金额"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.money`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金额' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2)],1)],1)],1)],1)},u=[],d="balance",m="points",p={components:{},data:function(){return{title:"商户充值",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:d,RECHARGE_TYPE_BALANCE:d,RECHARGE_TYPE_POINTS:m,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record,r=this.activeKey;this.confirmLoading=!0,s["h"]({merchantId:a.merchant_id,target:r,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},f=p,h=(a("4211"),a("2877")),v=Object(h["a"])(f,c,u,!1,null,"40cf6f79",null),b=v.exports,_=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:900,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"商户对接参数"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.orgNo))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户appKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.appKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户私钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.privateKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"商户公钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.publicKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.callback))])])]:e._e()],2)],1)],1)],1)],1)},g=[],C="balance",y={components:{},data:function(){return{title:"商户对接参数",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:C,RECHARGE_TYPE_BALANCE:C,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},w=y,x=(a("b38a"),Object(h["a"])(w,_,g,!1,null,"1f16853b",null)),S=x.exports,k=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:500,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[e.qrcode?t("img",{attrs:{width:"260",src:e.qrcode,alt:"推广码"}}):e._e()])],1)},L=[],D={components:{},data:function(){return{title:"推广码",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,record:{},qrcode:{}}},methods:{handle:function(e){this.visible=!0,this.record=e,this.getMerchantQrcode(e.merchant_id)},getMerchantQrcode:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){s["g"]({merchantId:t}).then((function(t){e.qrcode=t.data.data,a()}))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},I=D,q=(a("ec78"),Object(h["a"])(I,k,L,!1,null,"7c0c56a0",null)),F=q.exports,N=(a("b0c0"),function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[[t("a-form-item",{staticClass:"mb-5",attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.name))])]),t("a-form-item",{attrs:{label:"发券商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_id",{rules:[{required:!0,message:"请选择发券商品"}],initialValue:e.coupongoods.length?e.coupongoods[0].goods_id:void 0}],expression:"[`goods_id`, {rules: [{required: true, message: '请选择发券商品'}], initialValue: coupongoods.length ? coupongoods[0].goods_id : undefined }]"}],staticStyle:{width:"300px"}},e._l(e.coupongoods,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.goods_id}},[e._v(e._s(a.goods_name))])})),1)],1),t("a-form-item",{attrs:{label:"用户手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{initialValue:"",rules:[{required:!0,message:"请输入用户手机号"}]}],expression:"[`phone`, { initialValue: '', rules: [{ required: true, message: '请输入用户手机号' }] }]"}],staticStyle:{width:"300px"}})],1),t("a-form-item",{attrs:{label:"订单备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{message:"请输入订单备注"}]}],expression:"[`remark`, { rules: [{ message: '请输入订单备注' }] }]"}],attrs:{placeholder:"请输入订单备注",rows:3}})],1)]],2)],1)],1)}),R=[],O={components:{},props:{coupongoods:{type:Array,required:!0}},data:function(){return{title:"抖音发券",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record;this.confirmLoading=!0,s["i"]({merchantId:a.merchant_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},j=O,V=(a("38b4"),Object(h["a"])(j,N,R,!1,null,"87d98050",null)),T=V.exports,$=a("ca00"),E=[{title:"代理商ID",width:"70px",dataIndex:"merchant_id"},{title:"代理商编号",width:"150px",dataIndex:"orgNo"},{title:"代理商名称",width:"150px",dataIndex:"name"},{title:"代理商地址",width:"200px",dataIndex:"address"},{title:"联系人",width:"150px",dataIndex:"contact_name"},{title:"联系电话",width:"150px",dataIndex:"contact_tel"},{title:"余额",width:"150px",dataIndex:"balance"},{title:"今日发券金额",width:"150px",dataIndex:"day_money"},{title:"发券总金额",width:"150px",dataIndex:"total_money"},{title:"创建时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"300px",fixed:"right",scopedSlots:{customRender:"action"}}],K={name:"Index",components:{ContentHeader:l["a"],RechargeForm:b,ApiParaForm:S,QrCodeForm:F,SendCouponForm:T,STable:l["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:E,selectedRowKeys:[],loadData:function(t){return s["f"](Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))},couponGoodsData:[]}},beforeCreate:function(){Object($["a"])(this,{inArray:$["d"]})},created:function(){this.getCouponGoods()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},handleRecharge:function(e){this.$refs.RechargeForm.handle(e)},handleQrCode:function(e){this.$refs.QrCodeForm.handle(e)},handleApiPara:function(e){this.$refs.ApiParaForm.handle(e)},handleSendCoupon:function(e){this.$refs.SendCouponForm.handle(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return s["c"](e).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/merchant/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)},getCouponGoods:function(){var e=this;this.isLoading=!0,n["b"]({province:"",oilCardType:"coupon"}).then((function(t){e.couponGoodsData=t.data.list})).finally((function(){e.isLoading=!1}))}}},A=K,P=(a("55c4"),Object(h["a"])(A,r,i,!1,null,"0dc99bb3",null));t["default"]=P.exports},8430:function(e,t,a){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",[t("a-form-item",{attrs:{label:"商品规格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"form-item-help",staticStyle:{"line-height":"36px"}},[t("small",[e._v("最多添加3个商品规格组,生成的SKU数量不能超出50个")])]),e._l(e.multiSpecData.specList,(function(a,r){return t("div",{key:r,staticClass:"spec-group"},[t("div",{staticClass:"spec-group-item clearfix"},[t("a-input",{staticClass:"group-item-input",attrs:{readOnly:e.isSpecLocked,placeholder:"请输入规格名称"},on:{change:e.onChangeSpecGroupIpt},model:{value:a.spec_name,callback:function(t){e.$set(a,"spec_name",t)},expression:"item.spec_name"}}),e.isSpecLocked?e._e():t("a",{staticClass:"group-item-delete",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDeleteSpecGroup(r)}}},[e._v("删除规格组")])],1),t("div",{staticClass:"spec-value clearfix"},[e._l(a.valueList,(function(a,i){return t("div",{key:i,staticClass:"spec-value-item"},[t("a-input",{staticClass:"value-item-input",attrs:{readOnly:e.isSpecLocked,placeholder:"请输入规格值"},on:{change:e.onChangeSpecValueIpt},model:{value:a.spec_value,callback:function(t){e.$set(a,"spec_value",t)},expression:"itm.spec_value"}}),e.isSpecLocked?e._e():t("a-icon",{staticClass:"icon-close",attrs:{theme:"filled",type:"close-circle"},on:{click:function(t){return e.handleDeleteSpecValue(r,i)}}})],1)})),e.isSpecLocked?e._e():t("div",{staticClass:"spec-value-add"},[t("a",{staticClass:"group-item-delete",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleAddSpecValue(r)}}},[e._v("新增规格值")])])],2)])})),!e.isSpecLocked&&e.multiSpecData.specList.length<3?t("a-button",{staticClass:"spec-group-add-btn",attrs:{icon:"plus"},on:{click:e.handleAddSpecGroup}},[e._v("添加规格组")]):e._e()],2),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.multiSpecData.skuList.length,expression:"multiSpecData.skuList.length"}],attrs:{label:"SKU列表",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.multiSpecData.skuList.length>1?t("div",{staticClass:"sku-batch"},[t("span",{staticClass:"title"},[e._v("批量设置:")]),t("a-input-number",{attrs:{placeholder:"商品价格",min:.01,precision:2},model:{value:e.multiSpecData.skuBatchForm.goods_price,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_price",t)},expression:"multiSpecData.skuBatchForm.goods_price"}}),t("a-input-number",{attrs:{placeholder:"划线价格",min:0,precision:2},model:{value:e.multiSpecData.skuBatchForm.line_price,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"line_price",t)},expression:"multiSpecData.skuBatchForm.line_price"}}),t("a-input-number",{attrs:{placeholder:"库存数量",min:0,precision:0},model:{value:e.multiSpecData.skuBatchForm.stock_num,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"stock_num",t)},expression:"multiSpecData.skuBatchForm.stock_num"}}),t("a-input-number",{attrs:{placeholder:"商品重量",min:0,precision:2},model:{value:e.multiSpecData.skuBatchForm.goods_weight,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_weight",t)},expression:"multiSpecData.skuBatchForm.goods_weight"}}),t("a-input",{attrs:{placeholder:"sku编码"},model:{value:e.multiSpecData.skuBatchForm.goods_sku_no,callback:function(t){e.$set(e.multiSpecData.skuBatchForm,"goods_sku_no",t)},expression:"multiSpecData.skuBatchForm.goods_sku_no"}}),t("a-button",{on:{click:e.handleSkuBatch}},[e._v("立即设置")])],1):e._e(),t("a-table",{staticClass:"sku-list",attrs:{columns:e.multiSpecData.skuColumns,dataSource:e.multiSpecData.skuList,scroll:{x:!0},pagination:!1,bordered:""},scopedSlots:e._u([{key:"image",fn:function(a,r){return[t("SelectImage",{attrs:{defaultList:r.image_id>0&&r.image?[r.image]:[],width:50},model:{value:r.image_id,callback:function(t){e.$set(r,"image_id",t)},expression:"item.image_id"}})]}},{key:"goods_price",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:.01,precision:2},model:{value:r.goods_price,callback:function(t){e.$set(r,"goods_price",t)},expression:"item.goods_price"}})]}},{key:"line_price",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:2},model:{value:r.line_price,callback:function(t){e.$set(r,"line_price",t)},expression:"item.line_price"}})]}},{key:"stock_num",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:0},model:{value:r.stock_num,callback:function(t){e.$set(r,"stock_num",t)},expression:"item.stock_num"}})]}},{key:"goods_weight",fn:function(a,r){return[t("a-input-number",{attrs:{size:"small",min:0,precision:2},model:{value:r.goods_weight,callback:function(t){e.$set(r,"goods_weight",t)},expression:"item.goods_weight"}})]}},{key:"goods_sku_no",fn:function(a,r){return[t("a-input",{attrs:{size:"small"},model:{value:r.goods_sku_no,callback:function(t){e.$set(r,"goods_sku_no",t)},expression:"item.goods_sku_no"}})]}}])})],1)],1)},i=[],o=a("4d91"),s=a("5530"),n=a("d4ec"),l=a("bee2"),c=(a("d3b7"),a("159b"),a("a15b"),a("d81d"),a("99af"),a("7db0"),a("b64b"),a("a434"),a("b0c0"),a("2ef0")),u=a.n(c),d=a("ca00"),m=[{title:"预览图",dataIndex:"image",width:90,scopedSlots:{customRender:"image"}},{title:"商品价格",dataIndex:"goods_price",width:120,scopedSlots:{customRender:"goods_price"}},{title:"划线价格",dataIndex:"line_price",width:120,scopedSlots:{customRender:"line_price"}},{title:"库存数量",dataIndex:"stock_num",width:120,scopedSlots:{customRender:"stock_num"}},{title:"商品重量 (KG)",dataIndex:"goods_weight",width:120,scopedSlots:{customRender:"goods_weight"}},{title:"SKU编码",dataIndex:"goods_sku_no",width:140,scopedSlots:{customRender:"goods_sku_no"}}],p={image_id:0,image:{},goods_price:"",line_price:"",stock_num:"",goods_weight:"",goods_sku_no:""},f=function(){function e(){Object(n["a"])(this,e),this.multiSpecData={},this.error="",this.multiSpecData={specList:[],skuList:[],skuColumns:u.a.cloneDeep(m),skuBatchForm:u.a.cloneDeep(p)}}return Object(l["a"])(e,[{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.length&&(this.multiSpecData.specList=u.a.cloneDeep(e),this.multiSpecData.skuList=u.a.cloneDeep(t));var a=this.specGroupArr(),r=v(a),i=this.rowSpanArr(a,r);return this.buildSkuColumns(i),this.buildSkuList(r),this.multiSpecData}},{key:"isEmpty",value:function(){return 0===this.multiSpecData.specList.length}},{key:"getError",value:function(){return this.error}},{key:"specGroupArr",value:function(){var e=[];return this.multiSpecData.specList.forEach((function(t){var a=[];t.valueList.forEach((function(e){a.push(e)})),e.push(a)})),e}},{key:"rowSpanArr",value:function(e,t){for(var a=[],r=t.length,i=0;i0;o--)i(o);this.multiSpecData.skuColumns=a}},{key:"handleAddSpecGroup",value:function(){var e=this.multiSpecData.specList;e.push({key:e.length||0,spec_name:"",valueList:[]});var t=e.length-1;this.handleAddSpecValue(t)}},{key:"handleAddSpecValue",value:function(e){var t=this.multiSpecData.specList[e],a=t.valueList;a.push({key:a.length||0,groupKey:t.key,spec_value:""}),this.onRefreshSpecValueKey(e)}},{key:"handleDeleteSpecGroup",value:function(e){this.multiSpecData.specList.splice(e,1),this.onUpdate(!1)}},{key:"handleDeleteSpecValue",value:function(e,t){this.multiSpecData.specList[e].valueList.splice(t,1),this.onRefreshSpecValueKey(e),this.onUpdate(!1)}},{key:"onRefreshSpecValueKey",value:function(e){var t=this.multiSpecData.specList[e],a=t.valueList;a.forEach((function(e,t){a[t].key=t}))}},{key:"handleSkuBatch",value:function(){var e=this.getFilterObject(this.multiSpecData.skuBatchForm),t=this.multiSpecData.skuList;for(var a in t)t[a]=Object(s["a"])(Object(s["a"])({},t[a]),e);this.onUpdate(!1)}},{key:"getFilterObject",value:function(e){var t={};for(var a in e){var r=e[a];Object(d["e"])(r)||(t[a]=r)}return t}},{key:"verifyForm",value:function(){return!!this.verifySpec()&&!!this.verifySkuList()}},{key:"verifySkuList",value:function(){var e=[{field:"goods_price",name:"商品价格"},{field:"stock_num",name:"库存数量"},{field:"goods_weight",name:"商品重量"}],t=this.multiSpecData.skuList;for(var a in t){var r=t[a];for(var i in e){var o=r[e[i].field];if(""===o||null===o)return this.error="".concat(e[i].name,"不能为空"),!1}}return!0}},{key:"verifySpec",value:function(){var e=this.multiSpecData.specList;if(!e.length)return this.error="亲,还没有添加规格组~",!1;for(var t in e){var a=e[t];if(Object(d["e"])(a.spec_name))return this.error="规格组名称不能为空~",!1;var r=a.valueList;if(!r.length)return this.error="还没有添加规格值~",!1;for(var i in r)if(Object(d["e"])(r[i].spec_value))return this.error="规格值不能为空~",!1}return!0}},{key:"getFromSpecData",value:function(){var e=this.multiSpecData,t=e.specList,a=e.skuList,r={specList:u.a.cloneDeep(t),skuList:u.a.cloneDeep(a)};for(var i in r.skuList){var o=r.skuList[i];delete o.image,delete o.key}return r}},{key:"onUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e?Object(d["c"])(h,200)(this):h(this)}}]),e}(),h=function(e){return e.getData()},v=function(e){return e.length?Array.prototype.reduce.call(e,(function(e,t){var a=[];return e.forEach((function(e){t.forEach((function(t){a.push(e.concat([t]))}))})),a}),[[]]):[]},b=a("2af9"),_={components:{SelectImage:b["e"]},props:{defaultSpecList:o["a"].array.def([]),defaultSkuList:o["a"].array.def([]),isSpecLocked:o["a"].bool.def(!1)},data:function(){return{labelCol:{span:3},wrapperCol:{span:21},MultiSpecModel:new f,multiSpecData:{specList:[],skuList:[]}}},watch:{defaultSpecList:function(e){e.length&&this.MultiSpecModel.isEmpty()&&this.getData()}},created:function(){this.getData()},methods:{getData:function(){var e=this.defaultSpecList,t=this.defaultSkuList;this.multiSpecData=this.MultiSpecModel.getData(e,t)},getFromSpecData:function(){return this.MultiSpecModel.getFromSpecData()},handleAddSpecGroup:function(){this.checkSkuMaxNum()&&this.MultiSpecModel.handleAddSpecGroup()},handleDeleteSpecGroup:function(e){var t=this,a=this.$confirm({title:"您确定要删除该规格组吗?",content:"删除后不可恢复",onOk:function(){t.MultiSpecModel.handleDeleteSpecGroup(e),a.destroy()}})},handleAddSpecValue:function(e){this.checkSkuMaxNum()&&this.MultiSpecModel.handleAddSpecValue(e)},handleDeleteSpecValue:function(e,t){var a=this,r=this.$confirm({title:"您确定要删除该规格值吗?",content:"删除后不可恢复",onOk:function(){a.MultiSpecModel.handleDeleteSpecValue(e,t),r.destroy()}})},onChangeSpecGroupIpt:function(){this.MultiSpecModel.onUpdate(!0)},onChangeSpecValueIpt:function(e,t){this.MultiSpecModel.onUpdate(!0)},checkSkuMaxNum:function(){var e=this.multiSpecData.skuList;return!(e.length>=50)||(this.$message.error("生成的sku列表数量不能大于50个,当前数量:".concat(e.length,"个"),2.5),!1)},handleSkuBatch:function(){this.MultiSpecModel.handleSkuBatch()},verifyForm:function(){return!!this.MultiSpecModel.verifyForm()||(this.$message.error(this.MultiSpecModel.getError(),2),!1)}}},g=_,C=(a("62da"),a("2877")),y=Object(C["a"])(g,r,i,!1,null,"b63f0ed6",null);t["a"]=y.exports},"86e8":function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("25f0"),a("2ef0")),o=a.n(i),s=a("c519");t["a"]={merchantId:null,formData:{merchant:{}},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.merchantId=t,new Promise((function(a,r){Promise.all([e.getMerchantDetail(t)]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getMerchantDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){s["d"]({merchantId:t}).then((function(t){e.formData.merchant=t.data.merchantInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.merchant,t=o.a.pick(e,["merchant_id","name","address","contact_name","contact_tel","appKey","callback","create_time"]);return t.callback=t.callback.toString(),Object(r["a"])({},t)},setDefaultData:function(){}}},"88bc":function(e,t,a){(function(t){var a=1/0,r=9007199254740991,i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]",n="[object Symbol]",l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function d(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function m(e,t){var a=-1,r=e?e.length:0,i=Array(r);while(++a0&&a(n)?t>1?y(n,t-1,a,r,i):p(i,n):r||(i[i.length]=n)}return i}function w(e,t){return e=Object(e),x(e,t,(function(t,a){return a in e}))}function x(e,t,a){var r=-1,i=t.length,o={};while(++r-1&&e%1==0&&e<=r}function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function j(e){return!!e&&"object"==typeof e}function V(e){return"symbol"==typeof e||j(e)&&v.call(e)==n}var T=S((function(e,t){return null==e?{}:w(e,m(y(t,1),L))}));e.exports=T}).call(this,a("c8ba"))},9170:function(e,t,a){"use strict";a("62cd")},"91bf":function(e,t,a){"use strict";a("c405")},"94a3":function(e,t,a){},"967a":function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"c",(function(){return u}));var r=a("b775"),i={list:"/setting.delivery/list",all:"/setting.delivery/all",detail:"/setting.delivery/detail",add:"/setting.delivery/add",edit:"/setting.delivery/edit",delete:"/setting.delivery/delete"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},"98fc":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("a9e3");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"请输入司机手机号"}})],1),t("a-form-item",{attrs:{label:"司机姓名"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["driver_name"],expression:"['driver_name']"}],attrs:{placeholder:"请输入司机姓名"}})],1),t("a-form-item",{attrs:{label:"单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],attrs:{placeholder:"油卡编号/销售单号/批次号/运单号"}})],1),t("a-form-item",{attrs:{label:"发放状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oil_status",{initialValue:-1}],expression:"['oil_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OilStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"企油通发放态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oil_status_zsy",{initialValue:-1}],expression:"['oil_status_zsy', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未提交")]),t("a-select-option",{attrs:{value:1}},[e._v("发放中")]),t("a-select-option",{attrs:{value:2}},[e._v("发放成功")]),t("a-select-option",{attrs:{value:3}},[e._v("发放失败")])],1)],1),t("a-form-item",{attrs:{label:"加油核销"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["use_status",{initialValue:-1}],expression:"['use_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.UseStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"退款状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_status",{initialValue:-1}],expression:"['refund_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未退款")]),t("a-select-option",{attrs:{value:1}},[e._v("退款中")]),t("a-select-option",{attrs:{value:2}},[e._v("已退款")]),t("a-select-option",{attrs:{value:3}},[e._v("退款失败")]),t("a-select-option",{attrs:{value:4}},[e._v("待人工确认")])],1)],1),t("a-form-item",{attrs:{label:"合作商"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["partners_id",{initialValue:-1}],expression:"['partners_id', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.partnersListData,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.partners_id}},[e._v(e._s(a.name))])}))],2)],1),[t("a-config-provider",{attrs:{locale:e.zhCN}},[t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1)],1)],t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],2)],1),t("div",{staticClass:"row-item-tab clearfix flex-box"},[t("span",{staticClass:"form-total"},[e._v("发放总金额:¥"+e._s(e.total_money))])])],1),t("s-table",{ref:"table",attrs:{rowKey:"order_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"partners",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a.name))])])}},{key:"driver",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2"},[e._v(e._s(a.driver_name||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v(e._s(a.mobile))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("车牌:"+e._s(a.plate_no||"-"))])])}},{key:"qyt",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2 f-13"},[e._v("批次:"+e._s(a.batch_no||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("运单:"+e._s(a.waybill_no||"-"))])])}},{key:"consume",fn:function(a){return t("div",{},[1===a.use_status?[t("p",{staticClass:"mtb-2 f-13"},[e._v("已加油:¥"+e._s(a.used_amount)+"("+e._s(a.used_num)+" 次)")]),t("p",{staticClass:"mtb-2 f-13"},[e._v("剩余:¥"+e._s(e.remainAmount(a)))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("最近:"+e._s(a.station_name||"-")+" "+e._s(a.oil_name)+" "+e._s(a.litter)+"L")])]:t("span",[e._v("-")])],2)}},{key:"status",fn:function(a){return t("div",{},[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("发放状态:")]),t("a-tag",{attrs:{color:a.oil_status==e.OilStatusEnum.OIL.value?"green":""}},[e._v(e._s(e.OilStatusEnum[a.oil_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("加油核销:")]),t("a-tag",{attrs:{color:a.use_status==e.UseStatusEnum.USE.value?"green":""}},[e._v(e._s(e.UseStatusEnum[a.use_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("企油通:")]),t("a-tag",{attrs:{color:e.qytColor(a.oil_status_zsy)}},[e._v(e._s(e.qytText(a.oil_status_zsy)))])],1),a.oil_text?t("p",{staticClass:"mtb-2 f-13 order-remark"},[e._v(e._s(a.oil_text))]):e._e(),a.refund_status>0?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("退款:")]),t("a-tag",{attrs:{color:e.refundColor(a.refund_status)}},[e._v(e._s(e.refundText(a.refund_status)))])],1):e._e()])}},{key:"action",fn:function(a){return t("div",{staticClass:"actions"},[e.inArray(a.oil_status_zsy,[3])&&0===a.oil_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleShare(a)}}},[e._v("重新发放")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&2!==a.refund_status&&Number(e.remainAmount(a))>0&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handlePay(a)}}},[e._v("加油链接")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleOil(a)}}},[e._v("重推发放结果")]):e._e(),e.inArray(a.oil_status_zsy,[2])&&1===a.oil_status&&1===a.use_status&&"zsy_ticket"===a.oilCardType?t("a",{on:{click:function(t){return e.handleUse(a)}}},[e._v("重推加油结果")]):e._e(),e.canRefund(a)?t("a",{on:{click:function(t){return e.handleRefund(a)}}},[e._v(e._s(e.refundLabel(a)))]):e._e(),1===a.use_status?t("a",{on:{click:function(t){return e.handleInvoice(a)}}},[e._v("发票")]):e._e()])}}])}),t("ShareForm",{ref:"ShareForm",on:{handleSubmit:e.handleRefresh}}),t("PayForm",{ref:"PayForm",on:{handleSubmit:e.handleRefresh}}),t("OilForm",{ref:"OilForm",on:{handleSubmit:e.handleRefresh}}),t("UseForm",{ref:"UseForm",on:{handleSubmit:e.handleRefresh}}),t("RefundForm",{ref:"RefundForm",on:{handleSubmit:e.handleRefresh}}),t("InvoiceModal",{ref:"InvoiceModal"})],1)},i=[],o=a("5530"),s=(a("b680"),a("d3b7"),a("3c80")),n=a("ab09"),l=a("4a95"),c=a("edae"),u=a("ca00"),d=a("eb60"),m=a("e533"),p={name:"Index",components:{STable:n["b"],ShareForm:c["e"],PayForm:c["c"],OilForm:c["b"],UseForm:c["f"],RefundForm:c["d"],InvoiceModal:c["a"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:[{title:"ID",dataIndex:"order_id"},{title:"油卡编号",dataIndex:"oilCardNo",scopedSlots:{customRender:"oilCardNo"}},{title:"企油通单号",scopedSlots:{customRender:"qyt"}},{title:"对接公司内部销售单号",dataIndex:"partners_order_no",scopedSlots:{customRender:"partners_order_no"}},{title:"数量",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"发放金额",dataIndex:"total_price"},{title:"司机",scopedSlots:{customRender:"driver"}},{title:"加油信息",scopedSlots:{customRender:"consume"}},{title:"合作商",dataIndex:"partners",scopedSlots:{customRender:"partners"}},{title:"交易状态",scopedSlots:{customRender:"status"}},{title:"操作",width:"220px",scopedSlots:{customRender:"action"}},{title:"订单时间",dataIndex:"create_time"}],loadData:function(t){return s["b"](Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(t){return e.total_money=t.data.total_money||0,t.data.list}))},partnersListData:[],total_money:0,zhCN:d["a"]}},beforeCreate:function(){Object(u["a"])(this,{inArray:u["d"],OilStatusEnum:l["d"],UseStatusEnum:l["j"]})},created:function(){this.getPartnersList()},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},qytText:function(e){return{0:"未提交",1:"发放中",2:"发放成功",3:"发放失败"}[e]||"未知"},qytColor:function(e){return{1:"blue",2:"green",3:"red"}[e]||""},handleShare:function(e){this.$refs.ShareForm.show(e)},handlePay:function(e){this.$refs.PayForm.show(e)},handleOil:function(e){this.$refs.OilForm.show(e)},handleUse:function(e){this.$refs.UseForm.show(e)},refundText:function(e){return{0:"未退款",1:"退款中",2:"已退款",3:"退款失败",4:"待人工确认"}[e]||"未知"},refundColor:function(e){return{1:"blue",2:"green",3:"red",4:"orange"}[e]||""},canRefund:function(e){return"zsy_ticket"===e.oilCardType&&2===e.oil_status_zsy&&1===e.oil_status&&(e.refund_status>0||Number(this.remainAmount(e))>0)},remainAmount:function(e){var t=2===e.refund_status?Number(e.refund_amount||0):0,a=Number(e.total_price||0)-Number(e.used_amount||0)-t;return Math.max(0,a).toFixed(2)},refundLabel:function(e){return{2:"退款记录",4:"确认退款"}[e.refund_status]||"退款"},handleRefund:function(e){this.$refs.RefundForm.show(e)},handleInvoice:function(e){this.$refs.InvoiceModal.show(e)},getPartnersList:function(){var e=this;this.isLoading=!0,m["b"]().then((function(t){e.partnersListData=t.data.list})).finally((function(){e.isLoading=!1}))}}},f=p,h=(a("335a"),a("2877")),v=Object(h["a"])(f,r,i,!1,null,"1f2cfa16",null);t["default"]=v.exports},"9a97":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-alert",{staticClass:"tips-alert",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 司机按身份证号归档。企油通发放到同一司机的额度会"),t("b",[e._v("在凭证上累计")]),e._v(",列表里的累计发放 / 已退款是按本地订单汇总的参考值, "),t("b",[e._v("真实可用额度以详情里实时查询的企油通数据为准")]),e._v("。 标红的「信息冲突」会导致上游实名二要素核验失败,建议先让下单平台核对司机信息。 ")])]),t("a-form",{staticClass:"search-form",attrs:{layout:"inline",form:e.searchForm},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"司机"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["keyword"],expression:"['keyword']"}],staticStyle:{width:"240px"},attrs:{placeholder:"姓名 / 手机号 / 完整身份证号",allowClear:""}})],1),t("a-form-item",{attrs:{label:"信息冲突"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["conflict",{initialValue:-1}],expression:"['conflict', { initialValue: -1 }]"}],staticStyle:{width:"110px"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("有冲突")]),t("a-select-option",{attrs:{value:0}},[e._v("正常")])],1)],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"search"}},[e._v("搜索")])],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"driver_id",columns:e.columns,data:e.loadData},scopedSlots:e._u([{key:"driver",fn:function(a){return[t("p",{staticClass:"mtb-2"},[t("b",[e._v(e._s(a.name||"-"))]),a.conflict?t("a-tag",{staticClass:"ml-6",attrs:{color:"red"}},[e._v("信息冲突")]):e._e()],1),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.mobile)+"  "+e._s(a.id_card_mask))]),a.conflict?t("p",{staticClass:"mtb-2 text-red"},[e._v(e._s(a.conflict_text))]):e._e()]}},{key:"orders",fn:function(a){return[t("p",{staticClass:"mtb-2"},[e._v("共 "+e._s(a.order_num)+" 单")]),t("p",{staticClass:"mtb-2 sub"},[e._v("已加油 "+e._s(a.used_num)+"  发放中 "+e._s(a.pending_num)+"  失败 "+e._s(a.fail_num))])]}},{key:"amount",fn:function(a){return[t("p",{staticClass:"mtb-2"},[e._v("累计发放 ¥"+e._s(a.grant_amount))]),t("p",{staticClass:"mtb-2 sub"},[e._v("已加油 ¥"+e._s(a.used_amount)+"  已退款 ¥"+e._s(a.refund_amount)+"  净额 ¥"+e._s(a.net_amount))])]}},{key:"action",fn:function(a){return[t("a",{on:{click:function(t){return e.openDetail(a)}}},[e._v("详情 / 查额度")])]}}])}),t("a-drawer",{attrs:{title:"司机详情",width:960,visible:e.drawer},on:{close:function(t){e.drawer=!1}}},[t("a-spin",{attrs:{spinning:e.detailLoading}},[e.detail.driver_id?[t("p",{staticClass:"head"},[t("b",[e._v(e._s(e.detail.name))]),e._v("  "+e._s(e.detail.mobile)+"  "+e._s(e.detail.id_card_mask)+" "),e.detail.conflict?t("a-tag",{staticClass:"ml-6",attrs:{color:"red"}},[e._v("信息冲突")]):e._e()],1),e.detail.conflict?t("a-alert",{staticClass:"block",attrs:{type:"error",message:e.detail.conflict_text,"show-icon":""}}):e._e(),t("p",{staticClass:"sub"},[e._v(" 本地汇总:共 "+e._s(e.detail.order_num)+" 单,累计发放 ¥"+e._s(e.detail.grant_amount)+",已退款 ¥"+e._s(e.detail.refund_amount)+", 净额 ¥"+e._s(e.detail.net_amount)+";最近下单 "+e._s(e.detail.last_order_time_text)+" ")]),t("a-divider",{attrs:{orientation:"left"}},[e._v("企油通实时数据")]),t("div",{staticClass:"toolbar"},[t("span",[e._v("企业:")]),t("a-select",{staticStyle:{width:"280px"},attrs:{placeholder:"选择企业"},model:{value:e.enterpriseId,callback:function(t){e.enterpriseId=t},expression:"enterpriseId"}},e._l(e.enterprises,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+") ")])})),1),e.enterprises.length?e._e():t("span",{staticClass:"sub ml-6"},[e._v("该司机还没有关联企业的订单")])],1),t("a-tabs",{on:{change:e.onTabChange},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("a-tab-pane",{key:"balance",attrs:{tab:"钱包余额(7.12)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("balance")}}},[e._v("查询")]),e.result.balance?[t("p",{staticClass:"big"},[e._v(" 钱包发放总额 ¥"+e._s(e.result.balance.totalGrantAmountYuan||"0.00")+" 当前可用 "),t("b",{staticClass:"green"},[e._v("¥"+e._s(e.result.balance.availableBalanceYuan||"0.00"))])]),t("a-table",{attrs:{size:"small",rowKey:"business_license",pagination:!1,columns:e.balanceColumns,dataSource:e.result.balance.list||[]}})]:e._e()],2),t("a-tab-pane",{key:"voucher",attrs:{tab:"支付凭证(7.17)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("voucher")}}},[e._v("查询")]),t("p",{staticClass:"sub mt-8"},[e._v("额度按凭证累计;退款时就是把其中「生效中、可用余额最大」的一张调低订单金额。")]),e.result.voucher?t("a-table",{attrs:{size:"small",rowKey:"quota_id",pagination:!1,columns:e.voucherColumns,dataSource:e.result.voucher.list||[]}}):e._e()],1),t("a-tab-pane",{key:"wallet",attrs:{tab:"钱包流水(7.13)"}},[t("a-button",{attrs:{loading:e.upLoading,disabled:!e.enterpriseId},on:{click:function(t){return e.query("wallet")}}},[e._v("查询")]),t("p",{staticClass:"sub mt-8"},[e._v("企油通默认只回溯近 1 个月流水。")]),e.result.wallet?t("a-table",{attrs:{size:"small",rowKey:"transactionId",pagination:!1,columns:e.walletColumns,dataSource:e.result.wallet.transactionDetails||[]}}):e._e()],1),t("a-tab-pane",{key:"orders",attrs:{tab:"最近订单"}},[t("p",{staticClass:"sub"},[e._v("发放失败原因里能看到上游实名二要素核验的结果。")]),t("a-table",{attrs:{size:"small",rowKey:"order_id",pagination:!1,columns:e.orderColumns,dataSource:e.orders},scopedSlots:e._u([{key:"zsy",fn:function(a,r){return t("span",{},[t("a-tag",{attrs:{color:{1:"blue",2:"green",3:"red"}[r.oil_status_zsy]||""}},[e._v(" "+e._s({0:"未提交",1:"发放中",2:"发放成功",3:"发放失败"}[r.oil_status_zsy])+" ")])],1)}}],null,!1,1747132722)})],1)],1)]:e._e()],2)],1)],1)},i=[],o=a("ade3"),s=a("5530"),n=(a("d3b7"),a("b775")),l={list:"/qyt.driver/list",detail:"/qyt.driver/detail",upstream:"/qyt.driver/upstream"};function c(e){return Object(n["b"])({url:l.list,method:"get",params:e})}function u(e){return Object(n["b"])({url:l.detail,method:"get",params:e})}function d(e){return Object(n["b"])({url:l.upstream,method:"get",params:e})}var m=a("ab09"),p={name:"QytDriverIndex",components:{STable:m["b"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},columns:[{title:"ID",dataIndex:"driver_id",width:70},{title:"司机",scopedSlots:{customRender:"driver"}},{title:"订单",scopedSlots:{customRender:"orders"}},{title:"金额(本地口径)",scopedSlots:{customRender:"amount"}},{title:"最近下单",dataIndex:"last_order_time_text",width:170},{title:"操作",width:120,scopedSlots:{customRender:"action"}}],loadData:function(t){return c(Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))},drawer:!1,detailLoading:!1,detail:{},enterprises:[],orders:[],enterpriseId:void 0,tab:"balance",upLoading:!1,result:{},balanceColumns:[{title:"企业",dataIndex:"enterprise_name"},{title:"凭证总额(元)",dataIndex:"total_amount_yuan"},{title:"可用(元)",dataIndex:"available_amount_yuan"}],voucherColumns:[{title:"凭证ID",dataIndex:"quota_id"},{title:"名称",dataIndex:"quota_name"},{title:"总额度",dataIndex:"total_amount"},{title:"可用",dataIndex:"available_amount"},{title:"已用",dataIndex:"used_amount"},{title:"冻结",dataIndex:"freeze_amount"},{title:"状态",dataIndex:"status_text"},{title:"有效期至",dataIndex:"effective_end"}],walletColumns:[{title:"时间",dataIndex:"transactionTime"},{title:"类型",dataIndex:"transactionType"},{title:"金额(元)",dataIndex:"amount_yuan"},{title:"备注",dataIndex:"remark"},{title:"流水号",dataIndex:"transactionId"}],orderColumns:[{title:"油卡编号",dataIndex:"oilCardNo"},{title:"金额",dataIndex:"total_price"},{title:"发放",scopedSlots:{customRender:"zsy"}},{title:"说明",dataIndex:"oil_text"},{title:"退款",dataIndex:"refund_status_text"},{title:"下单时间",dataIndex:"create_time_text"}]}},methods:{handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam={keyword:a.keyword||"",conflict:a.conflict},t.$refs.table.refresh(!0))}))},openDetail:function(e){var t=this;this.drawer=!0,this.detail={},this.enterprises=[],this.orders=[],this.result={},this.tab="balance",this.enterpriseId=void 0,this.detailLoading=!0,u({driverId:e.driver_id}).then((function(e){t.detail=e.data.detail,t.enterprises=e.data.enterprises,t.orders=e.data.orders,t.enterpriseId=t.enterprises.length?t.enterprises[0].enterprise_id:void 0})).finally((function(){t.detailLoading=!1}))},onTabChange:function(){},query:function(e){var t=this;this.upLoading=!0,d({driverId:this.detail.driver_id,enterpriseId:this.enterpriseId,type:e}).then((function(a){t.result=Object(s["a"])(Object(s["a"])({},t.result),{},Object(o["a"])({},e,a.data.data))})).finally((function(){t.upLoading=!1}))}}},f=p,h=(a("39f0"),a("2877")),v=Object(h["a"])(f,r,i,!1,null,"16a6e947",null);t["default"]=v.exports},"9b62":function(e,t,a){"use strict";a("24ba")},"9f1c":function(e,t,a){},"9f7c":function(e,t,a){},"9f8e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"代理商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商名称"}})],1),t("a-form-item",{attrs:{label:"代理商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入代理商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("c519")),s=a("2af9"),n=a("86e8"),l=a("ca00"),c={components:{InputNumberGroup:s["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),merchantId:null,formData:n["a"].formData}},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.merchant={}},methods:{initData:function(){var e=this;this.merchantId=this.$route.query.merchantId,this.isLoading=!0,n["a"].getFromData(this.merchantId).then((function(){Object(l["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["e"]({merchantId:this.merchantId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},u=c,d=(a("7367"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"1d6c4b44",null);t["default"]=m.exports},a11a:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键字搜索"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["search"],expression:"['search']"}],attrs:{placeholder:"合作商编号/合作商名称/合作商地址/联系人/联系电话"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[e.$auth("/partners/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"partners_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15,scroll:{x:1670}},scopedSlots:e._u([{key:"qyt",fn:function(a,r){return t("div",{},["bind"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name"},[e._v(e._s(r.qyt_enterprise_name))]),t("p",{staticClass:"qyt-sub"},[e._v("已绑定 · "+e._s(r.qyt_enterprise_channel))])]:"default"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name"},[e._v(e._s(r.qyt_enterprise_name))]),t("p",{staticClass:"qyt-sub"},[e._v("未绑定,使用默认企业 · "+e._s(r.qyt_enterprise_channel))])]:"invalid"===r.qyt_enterprise_source?[t("p",{staticClass:"qyt-name text-red"},[e._v("绑定失效:"+e._s(r.qyt_bind_name||"企业已删除"))]),t("p",{staticClass:"qyt-sub"},[e._v(e._s(r.qyt_enterprise_name?"实际使用默认企业 "+r.qyt_enterprise_name:"且没有默认企业,下单会被拒绝"))])]:t("p",{staticClass:"qyt-name text-red"},[e._v("无可用企业,下单会被拒绝")])],2)}},{key:"address",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"action",fn:function(a,r){return t("div",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:para",arg:"para"}],attrs:{title:"合作商对接参数"},on:{click:function(t){return e.handleApiPara(r)}}},[e._v("对接参数")]),t("a",{directives:[{name:"action",rawName:"v-action:recharge",arg:"recharge"}],attrs:{title:"合作商充值"},on:{click:function(t){return e.handleRecharge(r)}}},[e._v("充值")]),e.$auth("/partners/update")?t("router-link",{attrs:{to:{path:"/partners/update",query:{partnersId:r.partners_id}}}},[e._v("编辑")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete([r.partners_id])}}},[e._v("删除")])],1)}}])}),t("RechargeForm",{ref:"RechargeForm",on:{handleSubmit:e.handleRefresh}}),t("ApiParaForm",{ref:"ApiParaForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],o=a("5530"),s=(a("d3b7"),a("e533")),n=a("2af9"),l=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:520,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"充值余额"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商ID",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.partners_id))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"当前余额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.balance))])]),t("a-form-item",{attrs:{label:"充值方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".mode"),{initialValue:"inc",rules:[{required:!0}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.mode`, { initialValue: 'inc', rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:"inc"}},[e._v("增加")]),t("a-radio",{attrs:{value:"dec"}},[e._v("减少")]),t("a-radio",{attrs:{value:"final"}},[e._v("最终金额")])],1)],1),t("a-form-item",{attrs:{label:"变更金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".money"),{initialValue:"",rules:[{required:!0,message:"请输入变更的金额"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.money`, { initialValue: '', rules: [{ required: true, message: '请输入变更的金额' }] }]"}],attrs:{min:.01}})],1),t("a-form-item",{attrs:{label:"管理员备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["".concat(e.RECHARGE_TYPE_BALANCE,".remark"),{rules:[{required:!0,message:"请输入管理员备注"}]}],expression:"[`${RECHARGE_TYPE_BALANCE}.remark`, { rules: [{ required: true, message: '请输入管理员备注' }] }]"}],attrs:{placeholder:"请输入管理员备注",rows:3}})],1)]:e._e()],2)],1)],1)],1)],1)},c=[],u="balance",d="points",m={components:{},data:function(){return{title:"合作商充值",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:u,RECHARGE_TYPE_BALANCE:u,RECHARGE_TYPE_POINTS:d,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record,r=this.activeKey;this.confirmLoading=!0,s["g"]({partnersId:a.partners_id,target:r,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.confirmLoading=!1}))}}},p=m,f=(a("5b64"),a("2877")),h=Object(f["a"])(p,l,c,!1,null,"11da5822",null),v=h.exports,b=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:900,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.onChangeTabs}},[t("a-tab-pane",{key:e.RECHARGE_TYPE_BALANCE,attrs:{tab:"合作商对接参数"}},[e.activeKey===e.RECHARGE_TYPE_BALANCE?[t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.orgNo))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商appKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.appKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商私钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.privateKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"合作商公钥",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.publicKey))])]),t("a-form-item",{staticClass:"mb-5",attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.record.callback))])])]:e._e()],2)],1)],1)],1)],1)},_=[],g="balance",C={components:{},data:function(){return{title:"合作商对接参数",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),activeKey:g,RECHARGE_TYPE_BALANCE:g,record:{}}},methods:{handle:function(e){this.visible=!0,this.record=e},onChangeTabs:function(e){this.activeKey=e},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},y=C,w=(a("9b62"),Object(f["a"])(y,b,_,!1,null,"8a3efe68",null)),x=w.exports,S=a("ca00"),k=[{title:"合作商ID",width:"70px",dataIndex:"partners_id"},{title:"合作商编号",width:"150px",dataIndex:"orgNo"},{title:"合作商名称",width:"150px",dataIndex:"name"},{title:"企油通企业",width:"220px",scopedSlots:{customRender:"qyt"}},{title:"合作商地址",width:"200px",dataIndex:"address"},{title:"联系人",width:"150px",dataIndex:"contact_name"},{title:"联系电话",width:"150px",dataIndex:"contact_tel"},{title:"余额",width:"150px",dataIndex:"balance"},{title:"今日金额",width:"150px",dataIndex:"day_money"},{title:"油券总金额",width:"150px",dataIndex:"total_money"},{title:"appKey",dataIndex:"appKey",width:"300px"},{title:"回调地址",dataIndex:"callback",width:"300px",scopedSlots:{customRender:"callback"}},{title:"创建时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"200px",fixed:"right",scopedSlots:{customRender:"action"}}],L={name:"Index",components:{ContentHeader:n["a"],RechargeForm:v,ApiParaForm:x,STable:n["c"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:k,selectedRowKeys:[],loadData:function(t){return s["f"](Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},beforeCreate:function(){Object(S["a"])(this,{inArray:S["d"]})},created:function(){},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},handleRecharge:function(e){this.$refs.RechargeForm.handle(e)},handleApiPara:function(e){this.$refs.ApiParaForm.handle(e)},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return s["c"](e).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleCreate:function(){this.$router.push("/partners/create")},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},D=L,I=(a("4603"),Object(f["a"])(D,r,i,!1,null,"5337156e",null));t["default"]=I.exports},ab64:function(e,t,a){},acbe:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],attrs:{placeholder:"请输入商品名称/编码"}})],1),t("a-form-item",{attrs:{label:"订单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],attrs:{placeholder:"请输入订单号"}})],1),t("a-form-item",{attrs:{label:"会员ID"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userId"],expression:"['userId']"}],attrs:{placeholder:"请输入会员ID"}})],1),t("a-form-item",{attrs:{label:"状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:-1}],expression:"['status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("显示")]),t("a-select-option",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.score},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:0}},[e._v("全部")]),t("a-radio-button",{attrs:{value:10}},[e._v("好评")]),t("a-radio-button",{attrs:{value:20}},[e._v("中评")]),t("a-radio-button",{attrs:{value:30}},[e._v("差评")])],1)],1)])],1),t("s-table",{ref:"table",attrs:{rowKey:"comment_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,scroll:{x:1450}},scopedSlots:e._u([{key:"orderGoods",fn:function(e){return t("span",{},[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props}}})],1)}},{key:"user",fn:function(e){return t("span",{},[t("UserItem",{attrs:{user:e}})],1)}},{key:"score",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:{10:"green",20:"",30:"red"}[a]}},[e._v(e._s({10:"好评",20:"中评",30:"差评"}[a]))])],1)}},{key:"content",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide",staticStyle:{width:"270px"}},[e._v(e._s(a))])])}},{key:"is_picture",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"是":"否"))])],1)}},{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])])}}])}),t("EditForm",{ref:"EditForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],o=a("5530"),s=(a("d3b7"),a("b775")),n={list:"/goods.comment/list",detail:"/goods.comment/detail",edit:"/goods.comment/edit",delete:"/goods.comment/delete"};function l(e){return Object(s["b"])({url:n.list,method:"get",params:e})}function c(e){return Object(s["b"])({url:n.detail,method:"get",params:e})}function u(e){return Object(s["b"])({url:n.edit,method:"post",data:e})}function d(e){return Object(s["b"])({url:n.delete,method:"post",data:e})}var m=a("ab09"),p=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"评分",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["score",{initialValue:10,rules:[{required:!0}]}],expression:"['score', {initialValue: 10, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("好评")]),t("a-radio",{attrs:{value:20}},[e._v("中评")]),t("a-radio",{attrs:{value:30}},[e._v("差评")])],1)],1),t("a-form-item",{attrs:{label:"评价内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["content"],expression:"['content']"}],attrs:{placeholder:"请输入评价内容 (300个字符以内)",autoSize:{minRows:4}}})],1),t("a-form-item",{attrs:{label:"评价图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最多允许6张,可拖拽调整显示顺序"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imageIds"],expression:"['imageIds']"}],attrs:{multiple:"",maxNum:6,defaultList:e.record.imageList}})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', {initialValue: 1, rules: [{required: true}]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', {initialValue: 100, rules: [{required: true, message: '请输入至少1个数字'}]}]"}],attrs:{min:0}})],1)],1)],1)],1)},f=[],h=a("88bc"),v=a.n(h),b=a("2af9"),_={components:{SelectImage:b["e"]},data:function(){return{title:"编辑评价",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),commentId:null,record:{}}},methods:{edit:function(e){this.visible=!0,this.commentId=e,this.getRecordData()},getRecordData:function(){var e=this;this.confirmLoading=!0,c({commentId:this.commentId}).then((function(t){e.record=t.data.detail,e.setFieldsValue()})).finally((function(t){e.confirmLoading=!1}))},setFieldsValue:function(){var e=this,t=this.form.setFieldsValue;this.$nextTick((function(){t(v()(e.record,["score","content","status","sort","imageIds"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.record={},this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,u({commentId:this.commentId,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},g=_,C=a("2877"),y=Object(C["a"])(g,p,f,!1,null,null,null),w=y.exports,x=[{title:"ID",dataIndex:"comment_id"},{title:"商品信息",dataIndex:"orderGoods",width:"320px",scopedSlots:{customRender:"orderGoods"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"评分",dataIndex:"score",scopedSlots:{customRender:"score"}},{title:"评价内容",dataIndex:"content",scopedSlots:{customRender:"content"}},{title:"图片评价",dataIndex:"is_picture",scopedSlots:{customRender:"is_picture"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"评价时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],S={name:"Index",components:{STable:m["b"],GoodsItem:m["a"],UserItem:m["c"],EditForm:w},data:function(){var e=this;return{expand:!1,searchForm:this.$form.createForm(this),categoryListTree:[],queryParam:{score:0},isLoading:!1,columns:x,loadData:function(t){return l(Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){},methods:{handleTabs:function(e){this.queryParam.score=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return d({commentId:e.comment_id}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleEdit:function(e){this.$refs.EditForm.edit(e.comment_id)},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)}}},k=S,L=(a("6162"),Object(C["a"])(k,r,i,!1,null,"944533f0",null));t["default"]=L.exports},b06c:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-alert",{staticClass:"tips-alert",attrs:{type:"info","show-icon":""}},[t("div",{attrs:{slot:"message"},slot:"message"},[e._v(" 企油通 7.14 按「企业 + 月份(+ 司机手机号)」出具发票,发票地址与单笔订单没有对应关系。 订单列表里点「发票」会自动按该订单的企业、消费月份、司机同步;这里可以按月批量同步或手动补同步。 ")])]),t("a-form",{staticClass:"sync-form",attrs:{layout:"inline",form:e.syncForm},on:{submit:e.handleSync}},[t("a-form-item",{attrs:{label:"企业"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["enterpriseId",{initialValue:0}],expression:"['enterpriseId', { initialValue: 0 }]"}],staticStyle:{width:"220px"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部启用企业(企业全量)")]),e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+" ")])}))],2)],1),t("a-form-item",{attrs:{label:"月份"}},[t("a-month-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["month",{rules:[{required:!0,message:"请选择月份"}]}],expression:"['month', { rules: [{ required: true, message: '请选择月份' }] }]"}],attrs:{placeholder:"选择月份"}})],1),t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],attrs:{placeholder:"选填,仅指定企业时有效",allowClear:""}})],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"sync",loading:e.isSyncing}},[e._v("同步发票")])],1)],1),t("a-divider"),t("a-form",{staticClass:"search-form",attrs:{layout:"inline",form:e.searchForm},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"企业"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id",{initialValue:0}],expression:"['qyt_enterprise_id', { initialValue: 0 }]"}],staticStyle:{width:"200px"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+" ")])}))],2)],1),t("a-form-item",{attrs:{label:"月份"}},[t("a-month-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["month"],expression:"['month']"}],attrs:{placeholder:"全部"}})],1),t("a-form-item",{attrs:{label:"司机手机号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],attrs:{placeholder:"手机号",allowClear:""}})],1),t("a-form-item",{attrs:{label:"发票"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["has_invoice",{initialValue:-1}],expression:"['has_invoice', { initialValue: -1 }]"}],staticStyle:{width:"110px"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("已出具")]),t("a-select-option",{attrs:{value:0}},[e._v("暂无")])],1)],1),t("a-form-item",[t("a-button",{attrs:{type:"primary","html-type":"submit",icon:"search"}},[e._v("搜索")])],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"invoice_id",columns:e.columns,data:e.loadData},scopedSlots:e._u([{key:"dimension",fn:function(a){return[t("p",{staticClass:"mtb-2"},[t("b",[e._v(e._s(a.company_name))])]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+"  "+e._s(a.month)+"  "+e._s(a.mobile_mask))])]}},{key:"invoices",fn:function(a){return[a.invoice_urls.length?e._l(a.invoice_urls,(function(a,r){return t("p",{key:a,staticClass:"mtb-2"},[t("a",{attrs:{href:a,target:"_blank",rel:"noopener noreferrer"}},[e._v("发票 "+e._s(r+1))])])})):t("span",{staticClass:"sub"},[e._v("暂无")])]}},{key:"sync",fn:function(a){return[t("a-tag",{attrs:{color:{1:"green",2:"red"}[a.sync_status]||""}},[e._v(e._s({0:"未同步",1:"成功",2:"失败"}[a.sync_status]))]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.sync_text))]),t("p",{staticClass:"mtb-2 sub"},[e._v(e._s(a.sync_time_text))])]}},{key:"action",fn:function(a){return[t("a",{on:{click:function(t){return e.handleResync(a)}}},[e._v("重新同步")])]}}])})],1)},i=[],o=a("5530"),s=(a("d3b7"),a("b775")),n={list:"/qyt.invoice/list",sync:"/qyt.invoice/sync"};function l(e){return Object(s["b"])({url:n.list,method:"get",params:e})}function c(e){return Object(s["b"])({url:n.sync,method:"post",data:e})}var u=a("763d"),d=a("ab09"),m={name:"QytInvoiceIndex",components:{STable:d["b"]},data:function(){var e=this;return{syncForm:this.$form.createForm(this),searchForm:this.$form.createForm(this),enterpriseList:[],isSyncing:!1,queryParam:{},columns:[{title:"ID",dataIndex:"invoice_id",width:70},{title:"企业 / 通道 / 月份 / 维度",scopedSlots:{customRender:"dimension"}},{title:"发票",scopedSlots:{customRender:"invoices"}},{title:"加油明细条数",dataIndex:"order_count",width:110},{title:"同步状态",scopedSlots:{customRender:"sync"}},{title:"操作",width:100,scopedSlots:{customRender:"action"}}],loadData:function(t){return l(Object(o["a"])(Object(o["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){var e=this;u["g"]().then((function(t){e.enterpriseList=t.data.list}))},methods:{handleSync:function(e){var t=this;e.preventDefault(),this.syncForm.validateFields((function(e,a){e||t.doSync({enterpriseId:a.enterpriseId||0,month:a.month.format("YYYY-MM"),mobile:a.enterpriseId&&a.mobile||""})}))},handleResync:function(e){this.doSync({enterpriseId:e.qyt_enterprise_id,month:e.month,mobile:e.mobile})},doSync:function(e){var t=this;this.isSyncing=!0,c(e).then((function(e){t.$message.success(e.message,2),t.$refs.table.refresh()})).finally((function(){t.isSyncing=!1}))},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam={qyt_enterprise_id:a.qyt_enterprise_id||"",month:a.month?a.month.format("YYYY-MM"):"",mobile:a.mobile||"",has_invoice:a.has_invoice},t.$refs.table.refresh(!0))}))}}},p=m,f=(a("9170"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"64a82a48",null);t["default"]=h.exports},b126:function(e,t,a){"use strict";a("9f1c")},b38a:function(e,t,a){"use strict";a("e05c")},b551:function(e,t,a){"use strict";a("6a27")},bb0b:function(e,t,a){},bba5:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"合作商名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商名称"}})],1),t("a-form-item",{attrs:{label:"合作商地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['address', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入合作商地址"}})],1),t("a-form-item",{attrs:{label:"联系人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_name",{rules:[{required:!1}]}],expression:"['contact_name', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系人"}})],1),t("a-form-item",{attrs:{label:"联系电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_tel",{rules:[{required:!1}]}],expression:"['contact_tel', {rules: [{required: false}]}]"}],attrs:{placeholder:"请输入联系电话"}})],1),t("a-form-item",{attrs:{label:"回调地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["callback",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['callback', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入回调地址"}})],1),t("a-form-item",{attrs:{label:"企油通企业",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["qyt_enterprise_id"],expression:"['qyt_enterprise_id']"}],attrs:{placeholder:"不选则使用默认企业",allowClear:""}},e._l(e.enterpriseList,(function(a){return t("a-select-option",{key:a.enterprise_id,attrs:{value:a.enterprise_id}},[e._v(" "+e._s(a.company_name)+"("+e._s("pingan"===a.passageway?"平安银行":"支付宝企业码")+")"+e._s(a.is_default?" · 默认":"")+" ")])})),1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("该合作商下单时使用哪个企业的对接参数与支付通道。留空则走默认企业。")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=a("5530"),s=(a("d3b7"),a("e533")),n=a("763d"),l=a("2af9"),c=a("08a5"),u=a("ca00"),d={components:{InputNumberGroup:l["b"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),partnersId:null,formData:c["a"].formData,enterpriseList:[]}},created:function(){this.getEnterpriseList(),this.initData()},beforeDestroy:function(){c["a"].formData.partners={}},methods:{getEnterpriseList:function(){var e=this;n["g"]().then((function(t){e.enterpriseList=t.data.list}))},initData:function(){var e=this;this.partnersId=this.$route.query.partnersId,this.isLoading=!0,c["a"].getFromData(this.partnersId).then((function(){Object(u["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(c["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){return e?(t.onTargetTabError(e),!1):(t.onFormSubmit(a),!0)}))},onTargetTabError:function(e){},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["e"]({partnersId:this.partnersId,form:Object(o["a"])(Object(o["a"])({},e),{},{qyt_enterprise_id:e.qyt_enterprise_id||0})}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))}}},m=d,p=(a("761a"),a("2877")),f=Object(p["a"])(m,r,i,!1,null,"9bc6a936",null);t["default"]=f.exports},c1df6:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}}),t("a-tab-pane",{key:1,attrs:{tab:"规格/库存"}}),t("a-tab-pane",{key:2,attrs:{tab:"商品详情"}}),t("a-tab-pane",{key:3,attrs:{tab:"更多设置"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['goods_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categorys",{rules:[{required:!0,message:"请至少选择1个商品分类"}]}],expression:"['categorys', { rules: [{required: true, message: '请至少选择1个商品分类'}]}]"}],attrs:{placeholder:"请选择商品分类",dropdownStyle:{maxHeight:"500px",overflow:"auto"},treeData:e.formData.categoryList,treeCheckable:"",treeCheckStrictly:"",allowClear:""}}),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/category/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadCategoryList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"商品图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750*750像素, 最多上传10张, 可拖拽图片调整顺序, 第1张将作为商品首图"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imagesIds",{rules:[{required:!0,message:"请至少上传1张商品图片"}]}],expression:"['imagesIds', { rules: [{ required: true, message: '请至少上传1张商品图片' }] }]"}],attrs:{multiple:"",maxNum:10,defaultList:e.formData.goods.goods_images}})],1),t("a-form-item",{staticClass:"mb-5",attrs:{label:"卡券类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"选择中石油油券时所属省份和商品编码必填,选择优惠券时优惠券必选"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oilCardType",{rules:[{required:!0,message:"请选择卡券类型"}],initialValue:"zsy_ticket"}],expression:"[`oilCardType`, { rules: [{required: true, message: '请选择卡券类型'}], initialValue: 'zsy_ticket' }]"}],staticStyle:{width:"300px"}},e._l(e.OilCardTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},[t("a-select-option",{key:"",attrs:{value:""}},[e._v("无")]),e._l(e.formData.province,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])}))],2)],1),t("a-form-item",{attrs:{label:"商品编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_no",{rules:[{message:"请输入至少2个字符"}]}],expression:"['goods_no', {rules: [{message: '请输入至少2个字符'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请输入商品编码"}})],1),t("MultiCoupon",{ref:"MultiCoupon",attrs:{couponList:e.formData.coupon,defaultCouponList:e.formData.goods.couponList},on:{change:e.handleCouponChange}}),t("a-form-item",{attrs:{label:"商品状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:10,rules:[{required:!0}]}],expression:"['status', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("上架")]),t("a-radio",{attrs:{value:20}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"商品排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0}]}],expression:"['sort', {initialValue: 100, rules:[{ required: true }]}]"}],attrs:{min:0}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabKey,expression:"tabKey == 1"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"规格类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["spec_type",{initialValue:10,rules:[{required:!0}]}],expression:"['spec_type', {initialValue: 10, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate()}}},[t("a-radio",{attrs:{value:10}},[e._v("单规格")]),t("a-radio",{attrs:{value:20}},[e._v("多规格")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:20==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 20"}]},[t("MultiSpec",{ref:"MultiSpec",attrs:{defaultSpecList:e.formData.goods.specList,defaultSkuList:e.formData.goods.skuList}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:10==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 10"}]},[t("a-form-item",{attrs:{label:"商品价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际购买金额,最低0.01"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_price",{rules:[{required:!0,message:"请输入商品价格"}]}],expression:"['goods_price', { rules:[{ required: true, message: '请输入商品价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"划线价仅用于商品页展示"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price"],expression:"['line_price']"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"当前库存数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际库存数量,为0时用户无法下单"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["stock_num",{initialValue:100,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['stock_num', { initialValue: 100, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0,precision:0}}),t("span",{staticClass:"ml-10"},[e._v("件")])],1),t("a-form-item",{attrs:{label:"商品重量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际重量,用于计算运费"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_weight",{initialValue:0,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['goods_weight', { initialValue: 0, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0}}),t("span",{staticClass:"ml-10"},[e._v("千克 (Kg)")])],1)],1),t("a-form-item",{attrs:{label:"库存计算方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["deduct_stock_type",{initialValue:10,rules:[{required:!0}]}],expression:"['deduct_stock_type', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("下单减库存")]),t("a-radio",{attrs:{value:20}},[e._v("付款减库存")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabKey,expression:"tabKey == 2"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"商品详情不能为空"}]}],expression:"['content', {rules: [{required: true, message: '商品详情不能为空'}]}]"}]})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:3==e.tabKey,expression:"tabKey == 3"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"主图视频",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议视频宽高比19:9,建议时长8-45秒"}},[t("SelectVideo",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_id"],expression:"['video_id']"}],attrs:{multiple:!1,defaultList:e.formData.goods.video?[e.formData.goods.video]:[]}})],1),t("a-form-item",{attrs:{label:"视频封面",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750像素*750像素"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_cover_id"],expression:"['video_cover_id']"}],attrs:{multiple:!1,defaultList:e.formData.goods.videoCover?[e.formData.goods.videoCover]:[]}})],1),t("a-form-item",{attrs:{label:"商品卖点",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"一句话简述,例如:此款商品美观大方 性价比较高 不容错过"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selling_point"],expression:"['selling_point']"}],attrs:{placeholder:"请输入商品卖点"}})],1),t("a-form-item",{attrs:{label:"服务与承诺",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.formData.serviceList?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["serviceIds"],expression:"['serviceIds']"}],attrs:{mode:"multiple",placeholder:"请选择服务与承诺"}},e._l(e.formData.serviceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.service_id}},[e._v(e._s(a.name))])})),1):e._e(),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/service/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadServiceList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"初始销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端展示的销量 = 初始销量 + 实际销量"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sales_initial",{initialValue:0}],expression:"['sales_initial', {initialValue: 0}]"}]})],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("积分设置")]),t("a-form-item",{attrs:{label:"积分赠送",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品将获得积分"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_gift",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_gift', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{attrs:{label:"积分抵扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品可以使用积分进行抵扣"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_discount",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_discount', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("会员折扣设置")]),t("a-form-item",{attrs:{label:"会员折扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后会员折扣,会员购买此商品可以享受会员等级折扣价"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_enable_grade",{initialValue:1,rules:[{required:!0}]}],expression:"['is_enable_grade', {initialValue: 1, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.getFieldValue("is_enable_grade"),expression:"form.getFieldValue('is_enable_grade')"}],attrs:{label:"会员折扣设置",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_alone_grade",{initialValue:0,rules:[{required:!0}]}],expression:"['is_alone_grade', {initialValue: 0, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:0}},[e._v("默认等级折扣")]),t("a-radio",{attrs:{value:1}},[e._v("单独设置折扣")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.form.getFieldValue("is_alone_grade"),expression:"form.getFieldValue('is_alone_grade')"}]},e._l(e.formData.userGradeList,(function(a){return t("a-form-item",{key:a.grade_id},[t("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["alone_grade_equity[grade_id:".concat(a.grade_id,"]"),{initialValue:e.formData.defaultUserGradeValue[a.grade_id],rules:[{required:!0,message:"折扣率不能为空"}]}],expression:"[`alone_grade_equity[grade_id:${item.grade_id}]`, {\n initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{required: true, message: '折扣率不能为空'}]\n }]"}],attrs:{addonBefore:a.name,addonAfter:"折",inputProps:{min:0,max:9.9}}})],1)})),1),t("div",{staticClass:"form-item-help"},[e.form.getFieldValue("is_alone_grade")?t("p",{staticClass:"extra"},[e._v("单独折扣:折扣率范围0.0-9.9,例如: 9.8代表98折,0代表不折扣")]):t("p",{staticClass:"extra"},[e._v("默认折扣:默认为用户所属会员等级的折扣率")])])],1)],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d3b7"),a("d81d"),a("b64b"),a("d084")),s=a("2af9"),n=a("e1fe"),l=a("8430"),c=a("45b7"),u=a("ca00"),d=a("4a95"),m={components:{SelectImage:s["e"],SelectVideo:s["g"],Ueditor:s["h"],InputNumberGroup:s["b"],MultiSpec:l["a"],MultiCoupon:c["a"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),goodsId:null,formData:n["a"].formData,couponList:[]}},beforeCreate:function(){Object(u["a"])(this,{OilCardTypeEnum:d["c"]})},created:function(){this.initData()},beforeDestroy:function(){n["a"].formData.goods={}},methods:{initData:function(){var e=this;this.goodsId=this.$route.query.goodsId,this.isLoading=!0,n["a"].getFromData(this.goodsId).then((function(){Object(u["f"])(e.form.getFieldsValue())||e.form.setFieldsValue(n["a"].getFieldsValue()),e.isLoading=!1}))},onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},onReloadCategoryList:function(){var e=this;this.isLoading=!0,n["a"].getCategoryList().then((function(){e.isLoading=!1}))},onReloadServiceList:function(){var e=this;this.isLoading=!0,n["a"].getServiceList().then((function(){e.isLoading=!1}))},onReloadStock:function(){var e=this;this.isLoading=!0,o["h"]({goodsId:this.goodsId}).then((function(t){e.$message.success(t.message,1.5),e.form.setFieldsValue({stock_num:t.data.canOrderNum})})).catch((function(){e.isBtnLoading=!1})).finally((function(){e.isLoading=!1}))},onReloadDeliveryList:function(){var e=this;this.isLoading=!0,n["a"].getDeliveryList().then((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){if(e)return t.onTargetTabError(e),!1;if(20===a.spec_type){var r=t.$refs.MultiSpec;if(!r.verifyForm())return t.tabKey=1,!1;a.specData=r.getFromSpecData()}return a.categoryIds=a.categorys.map((function(e){return e.value})),delete a.categorys,a.couponList=t.couponList,t.onFormSubmit(a),!0}))},onTargetTabError:function(e){var t=[["goods_name","categorys","imagesIds","province"],["spec_type","goods_price"],["content"],["alone_grade_equity","first_money","second_money","third_money"]],a=Object.keys(e).shift();for(var r in t)if(t[r].indexOf(a)>-1){this.tabKey=parseInt(r);break}},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,o["e"]({goodsId:this.goodsId,form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))},handleCouponChange:function(e){this.couponList=e}}},p=m,f=(a("3f55"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"42fcaf9f",null);t["default"]=h.exports},c405:function(e,t,a){},d17a:function(e,t,a){"use strict";a("f88b")},dd9f:function(e,t,a){},e05c:function(e,t,a){},e1fe:function(e,t,a){"use strict";var r=a("5530"),i=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("4de4"),a("159b"),a("2ef0")),o=a.n(i),s=a("8243"),n=a("d084"),l=a("39ad9"),c=a("2e1c"),u=a("b775"),d={list:"/goods.service/list",all:"/goods.service/all",add:"/goods.service/add",edit:"/goods.service/edit",delete:"/goods.service/delete"};function m(e){return Object(u["b"])({url:d.all,method:"get",params:e})}var p=a("967a");t["a"]={goodsId:null,formData:{goods:{},categoryList:[],deliveryList:[],serviceList:[],defaultServiceIds:[],userGradeList:[],defaultUserGradeValue:{},province:[],coupon:[]},getFromData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.goodsId=t,new Promise((function(a,r){Promise.all([e.getGoodsDetail(t),e.getCategoryList(),e.getDeliveryList(),e.getServiceList(),e.getUserGradeList(),e.getProvinceList(),e.getCouponList()]).then((function(){e.setDefaultData(),a({formData:e.formData})}))}))},getGoodsDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!!t&&new Promise((function(a,r){n["d"]({goodsId:t}).then((function(t){e.formData.goods=t.data.goodsInfo,a()}))}))},getFieldsValue:function(){var e=this.formData.goods;e.categorys=this.formatCategoryIds(e.categoryIds);var t=o.a.pick(e,["goods_name","categorys","goods_no","delivery_type","sort","province","oilCardType","coupon_id","status","spec_type","deduct_stock_type","content","selling_point","serviceIds","sales_initial","is_points_gift","is_points_discount","is_enable_grade","is_alone_grade"]),a=o.a.pick(e.skuList[0],["goods_price","line_price","stock_num","goods_weight"]);return Object(r["a"])(Object(r["a"])({},t),a)},formatCategoryIds:function(e){return e.map((function(e){return{value:e}}))},getCategoryList:function(){var e=this;return new Promise((function(t,a){s["a"].getCategoryTreeSelect().then((function(a){e.formData.categoryList=a,t()}))}))},getDeliveryList:function(){var e=this;return new Promise((function(t,a){p["b"]().then((function(a){e.formData.deliveryList=a.data.list,t()}))}))},getServiceList:function(){var e=this;return new Promise((function(t,a){m().then((function(a){e.formData.serviceList=a.data.list,t()}))}))},getUserGradeList:function(){var e=this;return new Promise((function(t,a){c["b"]({status:1}).then((function(a){e.formData.userGradeList=a.data.list,t()}))}))},getProvinceList:function(){var e=this;return new Promise((function(t,a){n["i"]().then((function(a){e.formData.province=a.data.list,t()}))}))},getCouponList:function(){var e=this;return new Promise((function(t,a){l["b"]().then((function(a){e.formData.coupon=a.data.list,t()}))}))},setDefaultData:function(){this.setDefaultServiceIds(),this.setDefaultUserGradeValue()},setDefaultServiceIds:function(){var e=this.formData.serviceList;if(!this.goodsId){var t=e.filter((function(e){return e.is_default}));this.formData.defaultServiceIds=t.map((function(e){return e.service_id}))}},setDefaultUserGradeValue:function(){var e=this.formData.userGradeList,t=this.goodsId&&this.formData.goods.alone_grade_equity?this.formData.goods.alone_grade_equity:{},a={};e.forEach((function(e){a[e.grade_id]=t[e.grade_id]||e.equity.discount})),this.formData.defaultUserGradeValue=Object(r["a"])({},a)}}},e533:function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"c",(function(){return d}));var r=a("b775"),i={list:"/partners/index",detail:"/partners/detail",add:"/partners/add",edit:"/partners/edit",delete:"/partners/delete",all:"/partners/all",recharge:"/partners/recharge"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.recharge,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}},ec78:function(e,t,a){"use strict";a("5193")},f040:function(e,t,a){},f11f:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form,selfUpdate:!0},on:{submit:e.handleSubmit}},[t("a-tabs",{attrs:{activeKey:e.tabKey,tabBarStyle:{marginBottom:"30px"}},on:{change:e.handleTabs}},[t("a-tab-pane",{key:0,attrs:{tab:"基本信息"}}),t("a-tab-pane",{key:1,attrs:{tab:"规格/库存"}}),t("a-tab-pane",{key:2,attrs:{tab:"商品详情"}}),t("a-tab-pane",{key:3,attrs:{tab:"更多设置"}})],1),t("div",{staticClass:"tabs-content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.tabKey,expression:"tabKey == 0"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['goods_name', {rules: [{required: true, min: 2, message: '请输入至少2个字符'}]}]"}],attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"商品分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["categorys",{rules:[{required:!0,message:"请至少选择1个商品分类"}]}],expression:"['categorys', {rules: [{required: true, message: '请至少选择1个商品分类'}]}]"}],attrs:{placeholder:"请选择商品分类",dropdownStyle:{maxHeight:"500px",overflow:"auto"},treeData:e.formData.categoryList,treeCheckable:"",treeCheckStrictly:"",allowClear:""}}),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/category/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadCategoryList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"商品图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750*750像素, 最多上传10张, 可拖拽图片调整顺序, 第1张将作为商品首图"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["imagesIds",{rules:[{required:!0,message:"请至少上传1张商品图片"}]}],expression:"['imagesIds', {rules: [{required: true, message: '请至少上传1张商品图片'}]}]"}],attrs:{multiple:"",maxNum:10}})],1),t("a-form-item",{staticClass:"mb-5",attrs:{label:"卡券类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"选择中石油油券时所属省份和商品编码必填,选择优惠券时优惠券必选"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oilCardType",{rules:[{required:!0,message:"请选择卡券类型"}],initialValue:"zsy_ticket"}],expression:"[`oilCardType`, {rules: [{required: true, message: '请选择卡券类型'}], initialValue: 'zsy_ticket' }]"}],staticStyle:{width:"300px"}},e._l(e.OilCardTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1),t("a-form-item",{attrs:{label:"所属省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{message:"请选择所属省份"}]}],expression:"['province', {rules: [{message: '请选择所属省份'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请选择所属省份"}},e._l(e.formData.province,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a}},[e._v(e._s(a))])})),1)],1),t("a-form-item",{attrs:{label:"商品编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_no",{rules:[{min:2,message:"请输入至少2个字符"}]}],expression:"['goods_no', {rules: [{min: 2, message: '请输入至少2个字符'}]}]"}],staticStyle:{width:"300px"},attrs:{placeholder:"请输入商品编码"}})],1),t("MultiCoupon",{ref:"MultiCoupon",attrs:{couponList:e.formData.coupon},on:{change:e.handleCouponChange}}),t("a-form-item",{attrs:{label:"商品状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:10,rules:[{required:!0}]}],expression:"['status', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("上架")]),t("a-radio",{attrs:{value:20}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"商品排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0}]}],expression:"['sort', {initialValue: 100, rules:[{ required: true }]}]"}],attrs:{min:0}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.tabKey,expression:"tabKey == 1"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"规格类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["spec_type",{initialValue:10,rules:[{required:!0}]}],expression:"['spec_type', { initialValue: 10, rules: [{ required: true }] }]"}],on:{change:function(t){return e.onForceUpdate()}}},[t("a-radio",{attrs:{value:10}},[e._v("单规格")]),t("a-radio",{attrs:{value:20}},[e._v("多规格")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:20==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 20"}]},[t("MultiSpec",{ref:"MultiSpec"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:10==e.form.getFieldValue("spec_type"),expression:"form.getFieldValue('spec_type') == 10"}]},[t("a-form-item",{attrs:{label:"商品价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际购买金额,最低0.01"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_price",{initialValue:"",rules:[{required:!0,message:"请输入商品价格"}]}],expression:"['goods_price', { initialValue: '', rules: [{ required: true, message: '请输入商品价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"划线价仅用于商品页展示"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price"],expression:"['line_price']"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"当前库存数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际库存数量,为0时用户无法下单"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["stock_num",{initialValue:100,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['stock_num', { initialValue: 100, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0,precision:0}}),t("span",{staticClass:"ml-10"},[e._v("件")])],1),t("a-form-item",{attrs:{label:"商品重量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商品的实际重量,用于计算运费"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_weight",{initialValue:0,rules:[{required:!0,message:"请输入库存数量"}]}],expression:"['goods_weight', { initialValue: 0, rules:[{ required: true, message: '请输入库存数量' }] }]"}],attrs:{min:0}}),t("span",{staticClass:"ml-10"},[e._v("千克 (Kg)")])],1)],1),t("a-form-item",{attrs:{label:"库存计算方式",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["deduct_stock_type",{initialValue:10,rules:[{required:!0}]}],expression:"['deduct_stock_type', {initialValue: 10, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:10}},[e._v("下单减库存")]),t("a-radio",{attrs:{value:20}},[e._v("付款减库存")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:2==e.tabKey,expression:"tabKey == 2"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"商品详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"商品详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '商品详情不能为空' }] }]"}]})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:3==e.tabKey,expression:"tabKey == 3"}],staticClass:"tab-pane"},[t("a-form-item",{attrs:{label:"主图视频",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议视频宽高比19:9,建议时长8-45秒"}},[t("SelectVideo",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_id"],expression:"['video_id']"}],attrs:{multiple:!1}})],1),t("a-form-item",{attrs:{label:"视频封面",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"建议尺寸:750像素*750像素"}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["video_cover_id"],expression:"['video_cover_id']"}],attrs:{multiple:!1}})],1),t("a-form-item",{attrs:{label:"商品卖点",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"一句话简述,例如:此款商品美观大方 性价比较高 不容错过"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selling_point"],expression:"['selling_point']"}],attrs:{placeholder:"请输入商品卖点"}})],1),t("a-form-item",{attrs:{label:"服务与承诺",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.formData.serviceList?t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["serviceIds",{initialValue:e.formData.defaultServiceIds}],expression:"['serviceIds', { initialValue: formData.defaultServiceIds }]"}],attrs:{mode:"multiple",placeholder:"请选择服务与承诺"}},e._l(e.formData.serviceList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.service_id}},[e._v(e._s(a.name))])})),1):e._e(),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/goods/service/index"}}},[e._v("去新增")]),t("a",{attrs:{href:"javascript:;"},on:{click:e.onReloadServiceList}},[e._v("刷新")])],1)],1),t("a-form-item",{attrs:{label:"初始销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端展示的销量 = 初始销量 + 实际销量"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sales_initial",{initialValue:0}],expression:"['sales_initial', {initialValue: 0}]"}]})],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("积分设置")]),t("a-form-item",{attrs:{label:"积分赠送",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品将获得积分"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_gift",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_gift', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-form-item",{attrs:{label:"积分抵扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后用户购买此商品可以使用积分进行抵扣"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_points_discount",{initialValue:1,rules:[{required:!0}]}],expression:"['is_points_discount', {initialValue: 1, rules: [{ required: true }]}]"}]},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("会员折扣设置")]),t("a-form-item",{attrs:{label:"会员折扣",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"开启后会员折扣,会员购买此商品可以享受会员等级折扣价"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_enable_grade",{initialValue:1,rules:[{required:!0}]}],expression:"['is_enable_grade', {initialValue: 1, rules: [{ required: true }]}]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1)],1),e.form.getFieldValue("is_enable_grade")?t("a-form-item",{attrs:{label:"会员折扣设置",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["is_alone_grade",{initialValue:0,rules:[{required:!0}]}],expression:"['is_alone_grade', { initialValue: 0, rules: [{ required: true }] }]"}],on:{change:function(t){return e.onForceUpdate(!0)}}},[t("a-radio",{attrs:{value:0}},[e._v("默认等级折扣")]),t("a-radio",{attrs:{value:1}},[e._v("单独设置折扣")])],1),e.form.getFieldValue("is_alone_grade")?t("div",e._l(e.formData.userGradeList,(function(a){return t("a-form-item",{key:a.grade_id},[t("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["alone_grade_equity[grade_id:".concat(a.grade_id,"]"),{initialValue:e.formData.defaultUserGradeValue[a.grade_id],rules:[{required:!0,message:"折扣率不能为空"}]}],expression:"[`alone_grade_equity[grade_id:${item.grade_id}]`, {\n initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{required: true, message: '折扣率不能为空'}]\n }]"}],attrs:{addonBefore:a.name,addonAfter:"折",inputProps:{min:0,max:9.9}}})],1)})),1):e._e(),t("div",{staticClass:"form-item-help"},[e.form.getFieldValue("is_alone_grade")?t("p",{staticClass:"extra"},[e._v("单独折扣:折扣率范围0.0-9.9,例如: 9.8代表98折,0代表不折扣")]):t("p",{staticClass:"extra"},[e._v("默认折扣:默认为用户所属会员等级的折扣率")])])],1):e._e()],1)]),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{attrs:{type:"primary","html-type":"submit",loading:e.isBtnLoading}},[e._v("提交")])],1)],1)],1)],1)},i=[],o=(a("d81d"),a("b64b"),a("d3b7"),a("ca00")),s=a("d084"),n=a("2af9"),l=a("e1fe"),c=a("8430"),u=a("45b7"),d=a("4a95"),m={components:{SelectImage:n["e"],SelectVideo:n["g"],Ueditor:n["h"],InputNumberGroup:n["b"],MultiSpec:c["a"],MultiCoupon:u["a"]},data:function(){return{tabKey:0,labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),formData:l["a"].formData,couponList:[]}},beforeCreate:function(){Object(o["a"])(this,{OilCardTypeEnum:d["c"]})},created:function(){var e=this;this.isLoading=!0,l["a"].getFromData().then((function(){e.isLoading=!1}))},methods:{onForceUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$forceUpdate(),t&&setTimeout((function(){e.$forceUpdate()}),10)},handleTabs:function(e){this.tabKey=e},onReloadCategoryList:function(){var e=this;this.isLoading=!0,l["a"].getCategoryList().then((function(){e.isLoading=!1}))},onReloadServiceList:function(){var e=this;this.isLoading=!0,l["a"].getServiceList().then((function(){e.isLoading=!1}))},onReloadDeliveryList:function(){var e=this;this.isLoading=!0,l["a"].getDeliveryList().then((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){if(e)return t.onTargetTabError(e),!1;if(20===a.spec_type){var r=t.$refs.MultiSpec;if(!r.verifyForm())return t.tabKey=1,!1;a.specData=r.getFromSpecData()}return a.categoryIds=a.categorys.map((function(e){return e.value})),delete a.categorys,a.couponList=t.couponList,t.onFormSubmit(a),!0}))},onTargetTabError:function(e){var t=[["goods_name","categorys","imagesIds","province"],["spec_type","goods_price"],["content"],["alone_grade_equity","first_money","second_money","third_money"]],a=Object.keys(e).shift();for(var r in t)if(t[r].indexOf(a)>-1){this.tabKey=parseInt(r);break}},onFormSubmit:function(e){var t=this;this.isLoading=!0,this.isBtnLoading=!0,s["a"]({form:e}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isLoading=!1}))},handleCouponChange:function(e){this.couponList=e}}},p=m,f=(a("52ea"),a("2877")),h=Object(f["a"])(p,r,i,!1,null,"21446ca5",null);t["default"]=h.exports},f88b:function(e,t,a){},fab29:function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"b",(function(){return d})),a.d(t,"g",(function(){return m}));var r=a("b775"),i={list:"/user/list",detail:"/user/detail",add:"/user/add",edit:"/user/edit",recharge:"/user/recharge",grade:"/user/grade",delete:"/user/delete",merchant:"/user/merchant"};function o(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.recharge,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.grade,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function m(){return Object(r["b"])({url:i.merchant,method:"post"})}}}]); \ No newline at end of file diff --git a/server-tp6/public/store/js/goods.991c20e7.js.gz b/server-tp6/public/store/js/goods.991c20e7.js.gz new file mode 100644 index 0000000..e110a52 Binary files /dev/null and b/server-tp6/public/store/js/goods.991c20e7.js.gz differ diff --git a/server-tp6/public/store/js/goods~order.ab650dc8.js b/server-tp6/public/store/js/goods~order.ab650dc8.js new file mode 100644 index 0000000..95a73f8 --- /dev/null +++ b/server-tp6/public/store/js/goods~order.ab650dc8.js @@ -0,0 +1,11 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["goods~order"],{"11fd":function(t,e,r){},"12e9":function(t,e,r){"use strict";r("b91a")},"2aba":function(t,e,r){"use strict";r("c095")},"3c80":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"i",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"j",(function(){return l})),r.d(e,"e",(function(){return c})),r.d(e,"f",(function(){return f})),r.d(e,"h",(function(){return h})),r.d(e,"g",(function(){return d})),r.d(e,"a",(function(){return p}));var n=r("b775"),o={list:"/partners.order/list",share:"/partners.order/share",qrCode:"/partners.order/qrCode",oilCallback:"/partners.order/oilCallback",useCallback:"/partners.order/useCallback",refund:"/partners.order/refund",refundConfirm:"/partners.order/refundConfirm",refundResolve:"/partners.order/refundResolve",refundLog:"/partners.order/refundLog",invoice:"/partners.order/invoice"};function i(t){return Object(n["b"])({url:o.list,method:"get",params:t})}function a(t){return Object(n["b"])({url:o.share,method:"post",data:t})}function s(t){return Object(n["b"])({url:o.qrCode,method:"post",data:t})}function u(t){return Object(n["b"])({url:o.oilCallback,method:"post",data:t})}function l(t){return Object(n["b"])({url:o.useCallback,method:"post",data:t})}function c(t){return Object(n["b"])({url:o.refund,method:"post",data:t})}function f(t){return Object(n["b"])({url:o.refundConfirm,method:"post",data:t})}function h(t){return Object(n["b"])({url:o.refundResolve,method:"post",data:t})}function d(t){return Object(n["b"])({url:o.refundLog,method:"get",params:t})}function p(t){return Object(n["b"])({url:o.invoice,method:"get",params:t})}},"4a95":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return i})),r.d(e,"e",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"g",(function(){return u})),r.d(e,"h",(function(){return l})),r.d(e,"i",(function(){return c})),r.d(e,"c",(function(){return f})),r.d(e,"d",(function(){return h})),r.d(e,"j",(function(){return d}));var n=r("5c06"),o=new n["a"]([{key:"NOT_DELIVERED",name:"未发货",value:10},{key:"DELIVERED",name:"已发货",value:20}]),i=new n["a"]([{key:"EXPRESS",name:"快递配送",value:10}]),a=new n["a"]([{key:"MASTER",name:"普通订单",value:10},{key:"DOUYIN",name:"抖音订单",value:20}]),s=new n["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"CANCELLED",name:"已取消",value:20},{key:"APPLY_CANCEL",name:"待取消",value:21},{key:"COMPLETED",name:"已完成",value:30}]),u=new n["a"]([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"已支付",value:20}]),l=new n["a"]([{key:"BALANCE",name:"余额支付",value:10},{key:"WECHAT",name:"微信支付",value:20}]),c=new n["a"]([{key:"NOT_RECEIVED",name:"未收货",value:10},{key:"RECEIVED",name:"已收货",value:20}]),f=new n["a"]([{key:"NONE",name:"无",value:""},{key:"CARD",name:"油卡",value:"card"},{key:"TICKET",name:"油券",value:"ticket"},{key:"ZSY_TICKET",name:"中石油油券",value:"zsy_ticket"},{key:"COUPON",name:"优惠券",value:"coupon"}]),h=new n["a"]([{key:"NOT_OIL",name:"未分油",value:0},{key:"OIL",name:"已分油",value:1}]),d=new n["a"]([{key:"NOT_USE",name:"未使用",value:0},{key:"USE",name:"已使用",value:1}])},"658f5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r65536?(a[0]=240|(1835008&s)>>>18,a[1]=128|(258048&s)>>>12,a[2]=128|(4032&s)>>>6,a[3]=128|63&s):s>2048?(a[0]=224|(61440&s)>>>12,a[1]=128|(4032&s)>>>6,a[2]=128|63&s):s>128?(a[0]=192|(1984&s)>>>6,a[1]=128|63&s):a[0]=s,r.push(a)}this.parsedData=Array.prototype.concat.apply([],r),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,r=this.parsedData.length;e0&&void 0!==arguments[0]?arguments[0]:-1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.L;o()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=r,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var r=1,n=s(t),o=0,i=y.length;oy.length)throw new Error("Too long data");return r}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,r){var n=s(e),o=t-1,i=0;switch(r){case c.L:i=y[o][0];break;case c.M:i=y[o][1];break;case c.Q:i=y[o][2];break;case c.H:i=y[o][3]}return n<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new u(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}},{key:"setupPositionProbePattern",value:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(h).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=d.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},{key:"setupTypeInfo",value:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=d.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(n>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var u=!1;i>>o&1)),d.getMask(e,n,a-s)&&(u=!u),this.modules[n][a-s]=u,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}}],[{key:"createData",value:function(e,r,n){for(var o=m.getRSBlocks(e,r),i=new v,a=0;a8*u)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*u,")"));for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(t.PAD0,8),i.getLengthInBits()>=8*u));)i.put(t.PAD1,8);return t.createBytes(i,o)}},{key:"createBytes",value:function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),a=new Array(e.length),s=0;s=0?h.get(p):0}}var m=0;for(c=0;c=0;)r^=t.G15<=0;)r^=t.G18<>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new g([1],0),r=0;r5&&(r+=3+i-5)}for(n=0;n=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();p.EXP_TABLE=new Array(256),p.LOG_TABLE=new Array(256),p._constructor=function(){for(var t=0;t<8;t++)p.EXP_TABLE[t]=1<>>7-t%8&1)}},{key:"put",value:function(t,e){for(var r=0;r>>e-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]),t}(),y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return l}));var n=r(2),o=r.n(n);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var s={resolve:function(){for(var e,r="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=t.cwd()),s=e),i(s),0!==s.length&&(r=s+"/"+r,n=47===s.charCodeAt(0))}return r=a(r,!n),n?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":s.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=s.resolve(t))===(e=s.resolve(e)))return"";for(var r=1;rl){if(47===e.charCodeAt(a+f))return e.slice(a+f+1);if(0===f)return e.slice(a+f)}else o>l&&(47===t.charCodeAt(r+f)?c=f:0===f&&(c=0));break}var h=t.charCodeAt(r+f);if(h!==e.charCodeAt(a+f))break;47===h&&(c=f)}var d="";for(f=r+c+1;f<=n;++f)f!==n&&47!==t.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(a+c):(a+=c,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var r,n=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,u=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===u&&(a=!1,u=r+1),s>=0&&(l===e.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return n===o?o=u:-1===o&&(o=t.length),t.slice(n,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":t.slice(n,o)},extname:function(t){i(t);for(var e=-1,r=0,n=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var r,n=t.charCodeAt(0),o=47===n;o?(e.root="/",r=1):r=0;for(var a=-1,s=0,u=-1,l=!0,c=t.length-1,f=0;c>=r;--c)if(47!==(n=t.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===n?-1===a?a=c:1!==f&&(f=1):-1!==a&&(f=-1);else if(!l){s=c+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(e.base=e.name=0===s&&o?t.slice(1,u):t.slice(s,u)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,u)):(e.name=t.slice(s,a),e.base=t.slice(s,u)),e.ext=t.slice(a,u)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s;var u=s.extname,l=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"b",(function(){return b})),r.d(e,"a",(function(){return C}));const n=(t,e,r={},o=r)=>{if(Array.isArray(e))e.forEach(e=>n(t,e,r,o));else if("function"==typeof e)e(t,r,o,n);else{const i=Object.keys(e)[0];Array.isArray(e[i])?(o[i]={},n(t,e[i],r,o[i])):o[i]=e[i](t,r,o,n)}return r},o=(t,e)=>(r,n,o,i)=>{e(r,n,o)&&i(r,t,n,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),s=t=>e=>e.data.subarray(e.pos,e.pos+t),u=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),l=t=>e=>{const r=a(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]},c=(t,e)=>(r,n,o)=>{const i="function"==typeof e?e(r,n,o):e,s=a(t),u=new Array(i);for(var l=0;le=>{const r=(t=>t.data[t.pos++])(e),n=new Array(8);for(var o=0;o<8;o++)n[7-o]=!!(r&1<{const o=t[r];return o.length?e[r]=((t,e,r)=>{for(var n=0,o=0;o{const e=[],r=t.data.length;for(var n=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=r){const o=r-t.pos;e.push(a(o)(t)),n+=o;break}e.push(a(o)(t)),n+=o}const i=new Uint8Array(n);for(var s=0,u=0;ut.data[t.pos++]},{extras:f({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:l(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>{var e=s(2)(t);return 33===e[0]&&249===e[1]}),p=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:l(!0)},{top:l(!0)},{width:l(!0)},{height:l(!0)},{lct:f({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:c(3,(t,e,r)=>Math.pow(2,r.descriptor.lct.size+1))},(t,e,r)=>r.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},h]}]},t=>44===i()(t)),g=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>a(r.text.blockSize)(t)},h]},t=>{var e=s(2)(t);return 33===e[0]&&1===e[1]}),m=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>u(r.blockSize)(t)},h]},t=>{var e=s(2)(t);return 33===e[0]&&255===e[1]}),v=o({comment:[{codes:a(2)},h]},t=>{var e=s(2)(t);return 33===e[0]&&254===e[1]});var y=[{header:[{signature:u(3)},{version:u(3)}]},{lsd:[{width:l(!0)},{height:l(!0)},{gct:f({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:c(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:((t,e)=>(r,n,o,i)=>{const a=[];let s=r.pos;for(;e(r,n,o);){const e={};if(i(r,t,n,e),r.pos===s)break;s=r.pos,a.push(e)}return a})([d,m,v,p,g],t=>{var e=i()(t);return 33===e||44===e})}],b=function(t){var e=new Uint8Array(t);return n({data:e,pos:0},y)},w=function(t,e,r){if(t.image){var n=t.image,o=n.descriptor.width*n.descriptor.height,i=function(t,e,r){var n,o,i,a,s,u,l,c,f,h,d,p,g,m,v,y,b=r,w=new Array(r),C=new Array(4096),_=new Array(4096),x=new Array(4097);for(s=1+(o=1<<(h=t)),n=o+2,l=-1,i=(1<<(a=h+1))-1,c=0;c>=a,p-=a,c>n||c==s)break;if(c==o){i=(1<<(a=h+1))-1,n=o+2,l=-1;continue}if(-1==l){x[m++]=_[c],l=c,g=c;continue}for(u=c,c==n&&(x[m++]=g,c=l);c>o;)x[m++]=_[c],c=C[c];g=255&_[c],x[m++]=g,n<4096&&(C[n]=l,_[n]=g,0==(++n&i)&&n<4096&&(a++,i+=n)),l=u}m--,w[v++]=x[m],f++}for(f=v;f1)throw new Error("dotScale should be in range (0, 1].");r.components.data.scale=r.dotScale,r.components.timing.scale=r.dotScale,r.components.alignment.scale=r.dotScale}this.options=r,this.canvas=new m(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new d.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return u()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var r,n,o,i,a,s,u,l,f,y,w,C,_,x,k,E,A,T,P;return g(this,void 0,void 0,c.a.mark((function g(){var L,R,S,B,D,O,I,M,N,j,U,F,Y,z,q,G,$,H,V,Q,X,K,J,Z,W,tt,et,rt,nt,ot,it,at,st,ut,lt,ct,ft,ht,dt,pt,gt,mt,vt,yt,bt,wt,Ct,_t,xt,kt,Et,At,Tt,Pt,Lt,Rt,St,Bt,Dt,Ot,It,Mt,Nt,jt,Ut,Ft,Yt,zt,qt,Gt,$t,Ht;return c.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(L=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,R=this.options.size,((S=this.options.margin)<0||2*S>=R)&&(S=0),B=Math.ceil(S),D=R-2*S,O=this.options.whiteMargin,I=this.options.backgroundDimming,M=Math.ceil(D/L),U=new m(j=(N=M*L)+2*B,j),F=U.getContext("2d"),this._clear(),F.save(),F.translate(B,B),Y=new m(j,j),z=Y.getContext("2d"),q=null,G=[],!this.options.gifBackground){c.next=47;break}if($=Object(h.b)(this.options.gifBackground),q=$,G=Object(h.a)($,!0),!this.options.autoColor){c.next=45;break}H=0,V=0,Q=0,X=0,K=0;case 28:if(!(K200||J[1]>200||J[2]>200)){c.next=32;break}return c.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){c.next=34;break}return c.abrupt("continue",38);case 34:X++,H+=J[0],V+=J[1],Q+=J[2];case 38:K++,c.next=28;break;case 41:H=~~(H/X),V=~~(V/X),Q=~~(Q/X),this.options.colorDark="rgb(".concat(H,",").concat(V,",").concat(Q,")");case 45:c.next=61;break;case 47:if(!this.options.backgroundImage){c.next=58;break}return c.next=50,v(this.options.backgroundImage);case 50:Z=c.sent,this.options.autoColor&&(W=e._getAverageRGB(Z),this.options.colorDark="rgb(".concat(W.r,",").concat(W.g,",").concat(W.b,")")),z.drawImage(Z,0,0,Z.width,Z.height,0,0,j,j),z.rect(0,0,j,j),z.fillStyle=I,z.fill(),c.next=61;break;case 58:z.rect(0,0,j,j),z.fillStyle=this.options.colorLight,z.fill();case 61:for(tt=d.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(o=null===(n=this.options.components)||void 0===n?void 0:n.data)||void 0===o?void 0:o.scale)||.4,rt=.5*(1-et),nt=0;nt=8&&ot<=L-8||6==ot&&nt>=8&&nt<=L-8,st=ot<8&&(nt<8||nt>=L-8)||ot>=L-8&&nt<8||at,ut=1;ut=tt[ut]-2&&nt<=tt[ut]+2&&ot>=tt[ut]-2&&ot<=tt[ut]+2;lt=ot*M+(st?0:rt*M),ct=nt*M+(st?0:rt*M),F.strokeStyle=it?this.options.colorDark:this.options.colorLight,F.lineWidth=.5,F.fillStyle=it?this.options.colorDark:this.options.colorLight,0===tt.length?st||F.fillRect(lt,ct,(st?1:et)*M,(st?1:et)*M):(ft=ot=L-4-5&&nt=L-4-5,st||ft||F.fillRect(lt,ct,(st?1:et)*M,(st?1:et)*M))}if(ht=tt[tt.length-1],dt=this.options.colorLight,F.fillStyle=dt,F.fillRect(0,0,8*M,8*M),F.fillRect(0,(L-8)*M,8*M,8*M),F.fillRect((L-8)*M,0,8*M,8*M),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(F.fillRect(8*M,6*M,(L-8-8)*M,M),F.fillRect(6*M,8*M,M,(L-8-8)*M)),(null===(u=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===u?void 0:u.protectors)&&e._drawAlignProtector(F,ht,ht,M),!(null===(f=null===(l=this.options.components)||void 0===l?void 0:l.alignment)||void 0===f?void 0:f.protectors)){c.next=99;break}pt=0;case 75:if(!(pt=1)&&(Rt=.2),St<0&&(St=0),Bt<0&&(Bt=0),It=Ot=.5*(j-(Dt=N*Rt)),F.restore(),F.fillStyle=this.options.logoBackgroundColor,F.save(),e._prepareRoundedCornerClip(F,Ot-St,It-St,Dt+2*St,Dt+2*St,Bt+St),F.clip(),Mt=F.globalCompositeOperation,F.globalCompositeOperation="destination-out",F.fill(),F.globalCompositeOperation=Mt,F.restore(),F.save(),e._prepareRoundedCornerClip(F,Ot,It,Dt,Dt,Bt),F.clip(),F.drawImage(Lt,Ot,It,Dt,Dt),F.restore(),F.save(),F.translate(B,B);case 179:if(!q){c.next=191;break}if(G.forEach((function(t){Nt||((Nt=new p.a(R,R)).setDelay(t.delay),Nt.setRepeat(0));var e=t.dims,r=e.width,n=e.height;jt||(jt=new m(r,n),(Ut=jt.getContext("2d")).rect(0,0,jt.width,jt.height),Ut.fillStyle="#ffffff",Ut.fill()),Ft&&zt&&r===Ft.width&&n===Ft.height||(Ft=new m(r,n),Yt=Ft.getContext("2d"),zt=Yt.createImageData(r,n)),zt.data.set(t.patch),Yt.putImageData(zt,0,0),Ut.drawImage(Ft.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new m(j,j),i=o.getContext("2d");i.drawImage(jt.getContext("2d").canvas,0,0,j,j),i.rect(0,0,j,j),i.fillStyle=I,i.fill(),i.drawImage(U.getContext("2d").canvas,0,0,j,j);var a=new m(R,R),s=a.getContext("2d");s.drawImage(o.getContext("2d").canvas,0,0,R,R),Nt.addFrame(s.getImageData(0,0,a.width,a.height).data)})),Nt){c.next=183;break}throw new Error("No frames.");case 183:if(Nt.finish(),!b(this.canvas)){c.next=188;break}return qt=Nt.stream().toFlattenUint8Array(),Gt=qt.reduce((function(t,e){return t+String.fromCharCode(e)}),""),c.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(Gt))));case 188:return c.abrupt("return",Promise.resolve(t.from(Nt.stream().toFlattenUint8Array())));case 191:if(z.drawImage(U.getContext("2d").canvas,0,0,j,j),F.drawImage(Y.getContext("2d").canvas,-B,-B,j,j),$t=new m(R,R),$t.getContext("2d").drawImage(U.getContext("2d").canvas,0,0,R,R),this.canvas=$t,Ht=this.options.gifBackground?"gif":"png",!b(this.canvas)){c.next=200;break}return c.abrupt("return",Promise.resolve(this.canvas.toDataURL(Ht)));case 200:return c.abrupt("return",Promise.resolve(this.canvas.toBuffer(Ht)));case 201:case"end":return c.stop()}}),g,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,r,n={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;r=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var s,u=new m(e,r).getContext("2d");if(!u)return n;u.drawImage(t,0,0);try{s=u.getImageData(0,0,e,r)}catch(t){return n}for(;(o+=20)200||s.data[o+1]>200||s.data[o+2]>200||(++a,i.r+=s.data[o],i.g+=s.data[o+1],i.b+=s.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)}},{key:"_drawAlignProtector",value:function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}},{key:"_drawAlign",value:function(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map((function(s,u){e._drawDot(t,r-2+u,n-2,o,i,a),e._drawDot(t,r+2,n-2+u,o,i,a),e._drawDot(t,r+2-u,n+2,o,i,a),e._drawDot(t,r-2,n+2-u,o,i,a)})),e._drawDot(t,r,n,o,i,a),u||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,u){e._drawDot(t,r-1+u,n-1,o,i,a),e._drawDot(t,r+1,n-1+u,o,i,a),e._drawDot(t,r+1-u,n+1,o,i,a),e._drawDot(t,r-1,n+1-u,o,i,a)}))),t.fillStyle=l}}]),e}();function b(t){try{return t instanceof HTMLElement}catch(e){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}y.CorrectLevel=d.b,y.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},y.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:d.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:y.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,r(15).Buffer)},function(t,e,r){"use strict";var n=r(11);const{asBuffer:o,asDownload:i,asZipDownload:a,atScale:s,options:u}=n.a,l=Symbol.for("toDataURL"),{CanvasRenderingContext2D:c,CanvasGradient:f,CanvasPattern:h,Image:d,ImageData:p,Path2D:g,DOMMatrix:m,DOMRect:v,DOMPoint:y}=window,b={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),n=[];for(var[c,f]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>o(r,"image/png"),jpg:()=>o(r,"image/jpeg"),pages:()=>n.concat(r).map(t=>t.getContext("2d"))})))Object.defineProperty(r,c,{get:f});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:o}=r,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(r,0,0),n.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(r,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let r=u(this.pages,{filename:t,...e}),{pattern:n,padding:o,mime:l,quality:c,matte:f,density:h,archive:d}=r,p=s(r.pages,h);return null==o?i(p[0],l,c,f,t):a(p,l,c,f,d,n,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=u(this.pages,{extension:t,...e}),{mime:n,quality:i,matte:a,pages:l,density:c}=r,f=s(l,c,a)[0];return o(f,n,i,a)},[l]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=u(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:a,pages:c,density:f}=n,h=s(c,f,a)[0],d=h[h===r?l:"toDataURL"](o,i);return Promise.resolve(d)}})}},loadImage:t=>new Promise((e,r)=>Object.assign(new d,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t})),CanvasRenderingContext2D:c,CanvasGradient:f,CanvasPattern:h,Image:d,ImageData:p,Path2D:g,DOMMatrix:m,DOMRect:v,DOMPoint:y};e.a=b},function(t,e,r){"use strict";(function(t){var n=r(5);class o{constructor(){let e=void 0===t,r="image/png",n="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:r,jpg:n,jpeg:"image/jpeg",webp:"image/webp"}:{png:r,jpg:n,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{[r]:"png",[n]:"jpg","image/webp":"webp"}:{[r]:"png",[n]:"jpg",[o]:"pdf",[i]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,o=0|t.length;n>>8^r[255&(e^t[n])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}i.prototype.table=(()=>{var t,e,r,n=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?r>>>1^3988292384:r>>>1;n[t]=r}return n})();class s{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=s.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),u=30+n.length,l=u+o.length,{offset:c}=this,f=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);c+=u;let h=a(u+o.length+16).set32(0,67324752).bytes(4,f.array).bytes(30,n).bytes(u,o);c+=o.length,h.set32(l,134695760).bytes(l+4,f.array.slice(10,22)),c+=16,this.files.push({offset:c,folder:r,name:n,header:f,payload:h}),this.offset=c}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),r=0;for(var{offset:n,name:o,header:i,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,i.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let u=new Uint8Array(this.offset+e.size),l=0;for(var{payload:c}of this.files)u.set(c.array,l),l+=c.size;return u.set(e.array,l),u}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const u=(t,e,r,n)=>{if(n){let{width:e,height:r}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:r}),i=o.getContext("2d");i.fillStyle=n,i.fillRect(0,0,e,r),i.drawImage(t,0,0),t=o}return new Promise((n,o)=>t.toBlob(n,e,r))},l=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(r),100)},c={asBuffer:(...t)=>u(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,r,n,o)=>{l(o,await u(t,e,r,n))},asZipDownload:async(t,e,r,o,i,a,c)=>{let f=Object(n.a)(i,".zip")||"archive",h=new s(f);await Promise.all(t.map(async(t,n)=>{let i=(t=>a.replace("{}",String(t+1).padStart(c,"0")))(n);await h.add(i,await u(t,e,r,o))})),l(f+".zip",h.blob)},atScale:(t,e,r)=>t.map(t=>{if(1==e&&!r)return t.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),i=t.canvas?t.canvas:t;return n.width=i.width*e,n.height=i.height*e,r&&(o.fillStyle=r,o.fillRect(0,0,n.width,n.height)),o.scale(e,e),o.drawImage(i,0,0),n}),options:function(t,{filename:e="",extension:r="",format:i,page:a,quality:s,matte:u,density:l,outline:c,archive:f}={}){var{fromMime:h,toMime:d,expected:p}=new o,g=(f=f||"canvas",i||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),m=(i=h(d(g)||g),d(i)),v=t.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${g}" (expected ${p})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let y,b,w=e.replace(/{(\d*)}/g,(t,e)=>(b=!0,e=parseInt(e,10),y=isFinite(e)?e:isFinite(y)?y:-1,"{}")),C=a>0?a-1:a<0?v+a:void 0;if(isFinite(C)&&C<0||C>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${C} is out of bounds)`:`Canvas has pages 1–${v} (${C} is out of bounds)`);if(t=isFinite(C)?[t[C]]:b||"pdf"==i?t:t.slice(-1),void 0===s)s=.92;else if("number"!=typeof s||!isFinite(s)||s<0||s>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===l){let t=(r||Object(n.a)(e,g)).match(/@(\d+)x$/i);l=t?parseInt(t[1],10):1}else if("number"!=typeof l||!Number.isInteger(l)||l<1)throw new TypeError("The density option must be a non-negative integer");return void 0===c?c=!0:"svg"==i&&(c=!!c),{filename:e,pattern:w,format:i,mime:m,pages:t,padding:y,quality:s,matte:u,density:l,outline:c,archive:f}}};e.a=c}).call(this,r(8))},function(t,e,r){"use strict";var n=function(t,e){var r,n,o,i,a;function s(t,e,n,o,i){r[e][0]-=t*(r[e][0]-n)/1024,r[e][1]-=t*(r[e][1]-o)/1024,r[e][2]-=t*(r[e][2]-i)/1024}function u(t,e,n,o,i){for(var s,u,l=Math.abs(e-t),c=Math.min(e+t,256),f=e+1,h=e-1,d=1;fl;)u=a[d++],fl&&((s=r[h--])[0]-=u*(s[0]-n)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18))}function l(t,e,n){var a,s,u,l,c,f=~(1<<31),h=f,d=-1,p=d;for(a=0;a<256;a++)s=r[a],(u=Math.abs(s[0]-t)+Math.abs(s[1]-e)+Math.abs(s[2]-n))>12))>10,i[a]-=c,o[a]+=c<<10;return i[d]+=64,o[d]-=65536,p}this.buildColormap=function(){!function(){var t,e;for(r=[],n=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,r[t]=new Float64Array([e,e,e,0]),i[t]=256,o[t]=0}(),function(){var r,n,o,i,c,f,h=t.length,d=30+(e-1)/3,p=h/(3*e),g=~~(p/100),m=1024,v=2048,y=v>>6;for(y<=1&&(y=0),r=0;r=h&&(b-=h),0===g&&(g=1),++r%g==0)for(m-=m/d,(y=(v-=v/30)>>6)<=1&&(y=0),f=0;f>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,o,i,a,s,u=0,l=0;for(t=0;t<256;t++){for(a=t,s=(o=r[t])[1],e=t+1;e<256;e++)(i=r[e])[1]>1,e=u+1;e>1,e=u+1;e<256;e++)n[e]=255}()},this.getColormap=function(){for(var t=[],e=[],n=0;n<256;n++)e[r[n][3]]=n;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=r[a][0],t[o++]=r[a][1],t[o++]=r[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,s,u=1e3,l=-1,c=n[e],f=c-1;c<256||f>=0;)c<256&&((s=(a=r[c])[1]-e)>=u?c=256:(c++,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)=0&&((s=e-(a=r[f])[1])>=u?f=-1:(f--,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)=254&&k(e)}function _(t){x(5003),b=l+2,w=!0,T(l,t)}function x(t){for(var e=0;e0&&(t.writeByte(a),t.writeBytes(g,0,a),a=0)}function E(t){return(1<0?i|=t<=8;)C(255&i,e),i>>=8,y-=8;if((b>s||w)&&(w?(s=E(d=u),w=!1):(++d,s=12==d?4096:E(d))),t==c){for(;y>0;)C(255&i,e),i>>=8,y-=8;k(e)}}this.encode=function(r){r.writeByte(p),f=t*e,h=0,function(t,e){var r,n,o,i,f,h;for(w=!1,s=E(d=u=t),c=1+(l=1<=0){f=5003-o,0===o&&(f=1);do{if((o-=f)<0&&(o+=5003),m[o]===r){i=v[o];continue t}}while(m[o]>=0)}T(i,e),i=n,b<4096?(v[o]=b++,m[o]=r):_(e)}else i=v[o];T(i,e),T(c,e)}(p+1,r),r.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function u(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r=0&&(this.dispose=t)},u.prototype.setRepeat=function(t){this.repeat=t},u.prototype.setTransparent=function(t){this.transparent=t},u.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},u.prototype.finish=function(){this.out.writeByte(59)},u.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},u.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},u.prototype.setGlobalPalette=function(t){this.globalPalette=t},u.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},u.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},u.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},u.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n=0&&C+c=0&&_+l>16,(65280&t)>>8,255&t,e)},u.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,a=this.colorTab.length,s=0,u=0;s=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},u.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},u.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},u.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},u.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},u.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},u.prototype.stream=function(){return this.out},e.a=u},function(t,e,r){t.exports=r(20)},function(t,e,r){var n=r(2).default;function o(){"use strict"; +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function p(){}function g(){}function m(){}var v={};c(v,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==r&&i.call(b,s)&&(v=b);var w=m.prototype=p.prototype=Object.create(v);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var r;this._invoke=function(o,a){function s(){return new e((function(r,s){!function r(o,a,s,u){var l=h(t[o],t,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,u)}))}u(l.arg)}(o,a,r,s)}))}return r=r?r.then(s,s):s()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var n=r(16),o=r(17),i=r(18);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var f=!0,h=0;ho&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:l>223?3:l>191?2:1;if(o+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function O(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function I(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,i){return i||I(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return i||I(t,0,r,8),o.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),l=this.slice(n,o),c=t.slice(e,r),f=0;fo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return C(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||S(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||S(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||S(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||S(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||S(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||B(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);B(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);B(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(8))},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),a=n[0],s=n[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),c=0,f=s>0?a-4:a;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,s=r-o;as?s:a+16383));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var o,i,a=[],s=e;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,c=-7,f=r?o-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+t[e+f],f+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=l}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,l=8*i-o-1,c=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=p,a/=256,l-=8);t[r+d-p]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f1)for(var r=1;r0?[e("a-alert",{staticClass:"block",attrs:{type:"info","show-icon":""}},[e("div",{attrs:{slot:"message"},slot:"message"},[t._v(" 一张订单可以分多次加油,"),e("b",[t._v("退款金额固定为剩余未加油金额")]),t._v(",已加油的部分不退,每单只能成功退一次。 "),e("br"),t._v("退款会先用企油通 7.17 查询司机支付凭证,再用 7.16 把凭证额度调低退款金额;成功后"+t._s(t.backText)+"。 "),e("br"),t._v("额度在凭证上按司机累计,若凭证可用余额不足退款金额(被该司机其他订单用掉),会直接拒绝。 ")])]),e("a-textarea",{attrs:{rows:2,maxLength:100,placeholder:"退款原因(选填,会写入企油通调额记录)"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}}),e("div",{staticClass:"btns"},[e("a-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.handleRefund}},[t._v("确认退款")])],1)]:t._e(),4===t.status?[e("a-alert",{staticClass:"block",attrs:{type:"warning","show-icon":""}},[e("div",{attrs:{slot:"message"},slot:"message"},[t._v(" 调额请求已发给企油通但没有拿到明确结果。企油通调额接口"),e("b",[t._v("没有幂等保护")]),t._v(",重复发起会被重复扣减,所以这里不允许直接重试。 "),e("br"),t._v("请先点「向企油通取证」:系统会查司机钱包流水(找退款单号)和凭证额度变化自动判定;判定不了再人工核对后提交。 ")])]),e("div",{staticClass:"btns"},[e("a-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.handleConfirm}},[t._v("向企油通取证")])],1),e("a-divider",{attrs:{orientation:"left"}},[t._v("人工判定")]),e("a-radio-group",{model:{value:t.resolveResult,callback:function(e){t.resolveResult=e},expression:"resolveResult"}},[e("a-radio",{attrs:{value:"success"}},[t._v("企油通已调低额度(退款成功)")]),e("a-radio",{attrs:{value:"failed"}},[t._v("企油通未调额(退款失败,可重新发起)")])],1),e("a-textarea",{staticClass:"mt-10",attrs:{rows:2,maxLength:100,placeholder:"判定依据(必填),如:已在企油通后台核对凭证 xxx 总额度由 300 变为 200"},model:{value:t.resolveRemark,callback:function(e){t.resolveRemark=e},expression:"resolveRemark"}}),e("div",{staticClass:"btns"},[e("a-button",{attrs:{loading:t.isLoading},on:{click:t.handleResolve}},[t._v("提交人工判定")])],1)]:t._e(),e("a-divider",{attrs:{orientation:"left"}},[t._v("退款流水")]),e("a-table",{attrs:{size:"small",rowKey:"refund_id",columns:t.columns,dataSource:t.logs,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(r,n){return e("span",{},[e("a-tag",{attrs:{color:t.logColor(n.status)}},[t._v(t._s(n.status_text))])],1)}}])})],2)],1)}),B=[],D=r("5530"),O=(r("b680"),r("498a"),{0:"未退款",1:"退款中",2:"已退款",3:"退款失败",4:"待人工确认"}),I={1:"blue",2:"green",3:"red",4:"orange"},M={data:function(){return{visible:!1,isLoading:!1,record:{},reason:"",resolveResult:"success",resolveRemark:"",logs:[],columns:[{title:"退款单号",dataIndex:"refund_no"},{title:"状态",scopedSlots:{customRender:"status"}},{title:"凭证",dataIndex:"quota_id"},{title:"调额前可用",dataIndex:"available_before"},{title:"说明",dataIndex:"message"},{title:"操作人",dataIndex:"operator"},{title:"时间",dataIndex:"create_time_text"}]}},computed:{status:function(){return Number(this.record.refund_status||0)},statusText:function(){return O[this.status]||"-"},statusColor:function(){return I[this.status]||""},backText:function(){return"mall"===this.record.source?"把钱退回下单用户的账户余额(按实付金额折算),并同步订单状态到用户端":"原路回补合作商余额,并推送油卡变动通知"},refundAmount:function(){if(2===this.status)return Number(this.record.refund_amount||0).toFixed(2);var t=Number(this.record.total_price||0)-Number(this.record.used_amount||0);return Math.max(0,t).toFixed(2)}},methods:{show:function(t){this.visible=!0,this.record=Object(D["a"])({},t),this.reason="",this.resolveResult="success",this.resolveRemark="",this.loadLogs()},handleCancel:function(){this.visible=!1},loadLogs:function(){var t=this;i["g"]({orderId:this.record.order_id}).then((function(e){t.logs=e.data.list,t.logs.length&&(t.record=Object(D["a"])(Object(D["a"])({},t.record),{},{refund_status:Number(t.logs[0].status),refund_text:t.logs[0].message}))}))},logColor:function(t){return I[Number(t)]||""},afterAction:function(t,e){this.$message.success(t.message,2),void 0!==e&&(this.record=Object(D["a"])(Object(D["a"])({},this.record),{},{refund_status:e,refund_text:t.message})),this.loadLogs(),this.$emit("handleSubmit")},afterError:function(){this.loadLogs(),this.$emit("handleSubmit")},handleRefund:function(){var t=this;this.$confirm({title:"确认退款 ¥"+this.refundAmount+"?",content:"退还剩余未加油金额:将调低该司机企油通凭证额度,成功后回补合作商余额。",onOk:function(){return t.isLoading=!0,i["e"]({orderId:t.record.order_id,reason:t.reason}).then((function(e){return t.afterAction(e,2)})).catch((function(){return t.afterError()})).finally((function(){t.isLoading=!1}))}})},handleConfirm:function(){var t=this;this.isLoading=!0,i["f"]({orderId:this.record.order_id}).then((function(e){return t.afterAction(e,e.data.refundStatus)})).catch((function(){return t.afterError()})).finally((function(){t.isLoading=!1}))},handleResolve:function(){var t=this;this.resolveRemark.trim()?(this.isLoading=!0,i["h"]({orderId:this.record.order_id,result:this.resolveResult,remark:this.resolveRemark}).then((function(e){return t.afterAction(e,e.data.refundStatus)})).catch((function(){return t.afterError()})).finally((function(){t.isLoading=!1}))):this.$message.warning("请填写判定依据")}}},N=M,j=(r("d60c"),Object(u["a"])(N,S,B,!1,null,"541c8648",null)),U=j.exports,F=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{title:"加油发票",width:620,visible:t.visible,footer:null},on:{cancel:function(e){t.visible=!1}}},[e("a-spin",{attrs:{spinning:t.isLoading}},[e("a-alert",{staticClass:"block",attrs:{type:"info","show-icon":""}},[e("div",{attrs:{slot:"message"},slot:"message"},[t._v(" 企油通发票按「企业 + 月份 + 司机」出具,和单笔订单没有一一对应关系。 这里展示的是"),e("b",[t._v("该订单所属企业、该司机在消费当月")]),t._v("的全部发票,同一司机当月的其他订单看到的是同一批。 ")])]),e("p",[t._v("消费月份:"),e("b",[t._v(t._s(t.month||"-"))]),t._v("  司机:"+t._s(t.record.driver_name||"-")+" "+t._s(t.record.mobile))]),t.row.sync_time_text?e("p",{staticClass:"sub"},[t._v("最近同步:"+t._s(t.row.sync_time_text)+"  "+t._s(t.row.sync_text))]):t.message?e("p",{staticClass:"sub"},[t._v(t._s(t.message))]):t._e(),t.urls.length?e("div",{staticClass:"links"},t._l(t.urls,(function(r,n){return e("p",{key:r},[e("a",{attrs:{href:r,target:"_blank",rel:"noopener noreferrer"}},[t._v("发票 "+t._s(n+1))]),e("span",{staticClass:"url"},[t._v(t._s(r))])])})),0):t.isLoading?t._e():e("a-empty",{attrs:{description:"企油通暂未出具该月发票"}}),e("div",{staticClass:"btns"},[e("a-button",{attrs:{loading:t.isLoading},on:{click:function(e){return t.load(!0)}}},[t._v("重新同步")])],1)],1)],1)},Y=[],z={data:function(){return{visible:!1,isLoading:!1,record:{},month:"",message:"",row:{}}},computed:{urls:function(){return this.row.invoice_urls||[]}},methods:{show:function(t){this.visible=!0,this.record=t,this.month="",this.message="",this.row={},this.load(!1)},load:function(t){var e=this;this.isLoading=!0,i["a"]({orderId:this.record.order_id,refresh:t?1:0}).then((function(r){e.month=r.data.month,e.message=r.data.message,e.row=r.data.row||{},t&&e.$message.success(r.message,1.5)})).finally((function(){e.isLoading=!1}))}}},q=z,G=(r("12e9"),Object(u["a"])(q,F,Y,!1,null,"2078b586",null)),$=G.exports}}]); \ No newline at end of file diff --git a/server-tp6/public/store/js/goods~order.ab650dc8.js.gz b/server-tp6/public/store/js/goods~order.ab650dc8.js.gz new file mode 100644 index 0000000..1be81a8 Binary files /dev/null and b/server-tp6/public/store/js/goods~order.ab650dc8.js.gz differ diff --git a/server-tp6/public/store/js/goods~order.d9a20aa1.js b/server-tp6/public/store/js/goods~order.d9a20aa1.js deleted file mode 100644 index 5ce065a..0000000 --- a/server-tp6/public/store/js/goods~order.d9a20aa1.js +++ /dev/null @@ -1,11 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["goods~order"],{"4a95":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return i})),r.d(e,"e",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"g",(function(){return u})),r.d(e,"h",(function(){return l})),r.d(e,"i",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"d",(function(){return f})),r.d(e,"j",(function(){return p}));var n=r("5c06"),o=new n["a"]([{key:"NOT_DELIVERED",name:"未发货",value:10},{key:"DELIVERED",name:"已发货",value:20}]),i=new n["a"]([{key:"EXPRESS",name:"快递配送",value:10}]),a=new n["a"]([{key:"MASTER",name:"普通订单",value:10},{key:"DOUYIN",name:"抖音订单",value:20}]),s=new n["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"CANCELLED",name:"已取消",value:20},{key:"APPLY_CANCEL",name:"待取消",value:21},{key:"COMPLETED",name:"已完成",value:30}]),u=new n["a"]([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"已支付",value:20}]),l=new n["a"]([{key:"BALANCE",name:"余额支付",value:10},{key:"WECHAT",name:"微信支付",value:20}]),c=new n["a"]([{key:"NOT_RECEIVED",name:"未收货",value:10},{key:"RECEIVED",name:"已收货",value:20}]),h=new n["a"]([{key:"NONE",name:"无",value:""},{key:"CARD",name:"油卡",value:"card"},{key:"TICKET",name:"油券",value:"ticket"},{key:"ZSY_TICKET",name:"中石油油券",value:"zsy_ticket"},{key:"COUPON",name:"优惠券",value:"coupon"}]),f=new n["a"]([{key:"NOT_OIL",name:"未分油",value:0},{key:"OIL",name:"已分油",value:1}]),p=new n["a"]([{key:"NOT_USE",name:"未使用",value:0},{key:"USE",name:"已使用",value:1}])},"658f5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r65536?(a[0]=240|(1835008&s)>>>18,a[1]=128|(258048&s)>>>12,a[2]=128|(4032&s)>>>6,a[3]=128|63&s):s>2048?(a[0]=224|(61440&s)>>>12,a[1]=128|(4032&s)>>>6,a[2]=128|63&s):s>128?(a[0]=192|(1984&s)>>>6,a[1]=128|63&s):a[0]=s,r.push(a)}this.parsedData=Array.prototype.concat.apply([],r),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,r=this.parsedData.length;e0&&void 0!==arguments[0]?arguments[0]:-1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.L;o()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=r,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var r=1,n=s(t),o=0,i=m.length;om.length)throw new Error("Too long data");return r}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,r){var n=s(e),o=t-1,i=0;switch(r){case c.L:i=m[o][0];break;case c.M:i=m[o][1];break;case c.Q:i=m[o][2];break;case c.H:i=m[o][3]}return n<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new u(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}},{key:"setupPositionProbePattern",value:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(f).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=p.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},{key:"setupTypeInfo",value:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=p.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!t&&1==(n>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var u=!1;i>>o&1)),p.getMask(e,n,a-s)&&(u=!u),this.modules[n][a-s]=u,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}}],[{key:"createData",value:function(e,r,n){for(var o=y.getRSBlocks(e,r),i=new v,a=0;a8*u)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*u,")"));for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(t.PAD0,8),i.getLengthInBits()>=8*u));)i.put(t.PAD1,8);return t.createBytes(i,o)}},{key:"createBytes",value:function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),a=new Array(e.length),s=0;s=0?f.get(d):0}}var y=0;for(c=0;c=0;)r^=t.G15<=0;)r^=t.G18<>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,r){switch(t){case f.PATTERN000:return(e+r)%2==0;case f.PATTERN001:return e%2==0;case f.PATTERN010:return r%3==0;case f.PATTERN011:return(e+r)%3==0;case f.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case f.PATTERN101:return e*r%2+e*r%3==0;case f.PATTERN110:return(e*r%2+e*r%3)%2==0;case f.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new g([1],0),r=0;r5&&(r+=3+i-5)}for(n=0;n=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();d.EXP_TABLE=new Array(256),d.LOG_TABLE=new Array(256),d._constructor=function(){for(var t=0;t<8;t++)d.EXP_TABLE[t]=1<>>7-t%8&1)}},{key:"put",value:function(t,e){for(var r=0;r>>e-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]),t}(),m=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return l}));var n=r(2),o=r.n(n);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var s={resolve:function(){for(var e,r="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=t.cwd()),s=e),i(s),0!==s.length&&(r=s+"/"+r,n=47===s.charCodeAt(0))}return r=a(r,!n),n?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(i(t),0===t.length)return".";var e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return i(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":s.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=s.resolve(t))===(e=s.resolve(e)))return"";for(var r=1;rl){if(47===e.charCodeAt(a+h))return e.slice(a+h+1);if(0===h)return e.slice(a+h)}else o>l&&(47===t.charCodeAt(r+h)?c=h:0===h&&(c=0));break}var f=t.charCodeAt(r+h);if(f!==e.charCodeAt(a+h))break;47===f&&(c=h)}var p="";for(h=r+c+1;h<=n;++h)h!==n&&47!==t.charCodeAt(h)||(0===p.length?p+="..":p+="/..");return p.length>0?p+e.slice(a+c):(a+=c,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var r,n=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,u=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===u&&(a=!1,u=r+1),s>=0&&(l===e.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return n===o?o=u:-1===o&&(o=t.length),t.slice(n,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){n=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":t.slice(n,o)},extname:function(t){i(t);for(var e=-1,r=0,n=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var r,n=t.charCodeAt(0),o=47===n;o?(e.root="/",r=1):r=0;for(var a=-1,s=0,u=-1,l=!0,c=t.length-1,h=0;c>=r;--c)if(47!==(n=t.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===n?-1===a?a=c:1!==h&&(h=1):-1!==a&&(h=-1);else if(!l){s=c+1;break}return-1===a||-1===u||0===h||1===h&&a===u-1&&a===s+1?-1!==u&&(e.base=e.name=0===s&&o?t.slice(1,u):t.slice(s,u)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,u)):(e.name=t.slice(s,a),e.base=t.slice(s,u)),e.ext=t.slice(a,u)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s;var u=s.extname,l=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"b",(function(){return w})),r.d(e,"a",(function(){return E}));const n=(t,e,r={},o=r)=>{if(Array.isArray(e))e.forEach(e=>n(t,e,r,o));else if("function"==typeof e)e(t,r,o,n);else{const i=Object.keys(e)[0];Array.isArray(e[i])?(o[i]={},n(t,e[i],r,o[i])):o[i]=e[i](t,r,o,n)}return r},o=(t,e)=>(r,n,o,i)=>{e(r,n,o)&&i(r,t,n,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),s=t=>e=>e.data.subarray(e.pos,e.pos+t),u=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),l=t=>e=>{const r=a(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]},c=(t,e)=>(r,n,o)=>{const i="function"==typeof e?e(r,n,o):e,s=a(t),u=new Array(i);for(var l=0;le=>{const r=(t=>t.data[t.pos++])(e),n=new Array(8);for(var o=0;o<8;o++)n[7-o]=!!(r&1<{const o=t[r];return o.length?e[r]=((t,e,r)=>{for(var n=0,o=0;o{const e=[],r=t.data.length;for(var n=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=r){const o=r-t.pos;e.push(a(o)(t)),n+=o;break}e.push(a(o)(t)),n+=o}const i=new Uint8Array(n);for(var s=0,u=0;ut.data[t.pos++]},{extras:h({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:l(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>{var e=s(2)(t);return 33===e[0]&&249===e[1]}),d=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:l(!0)},{top:l(!0)},{width:l(!0)},{height:l(!0)},{lct:h({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:c(3,(t,e,r)=>Math.pow(2,r.descriptor.lct.size+1))},(t,e,r)=>r.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},f]}]},t=>44===i()(t)),g=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>a(r.text.blockSize)(t)},f]},t=>{var e=s(2)(t);return 33===e[0]&&1===e[1]}),y=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>u(r.blockSize)(t)},f]},t=>{var e=s(2)(t);return 33===e[0]&&255===e[1]}),v=o({comment:[{codes:a(2)},f]},t=>{var e=s(2)(t);return 33===e[0]&&254===e[1]});var m=[{header:[{signature:u(3)},{version:u(3)}]},{lsd:[{width:l(!0)},{height:l(!0)},{gct:h({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:c(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:((t,e)=>(r,n,o,i)=>{const a=[];let s=r.pos;for(;e(r,n,o);){const e={};if(i(r,t,n,e),r.pos===s)break;s=r.pos,a.push(e)}return a})([p,y,v,d,g],t=>{var e=i()(t);return 33===e||44===e})}],w=function(t){var e=new Uint8Array(t);return n({data:e,pos:0},m)},b=function(t,e,r){if(t.image){var n=t.image,o=n.descriptor.width*n.descriptor.height,i=function(t,e,r){var n,o,i,a,s,u,l,c,h,f,p,d,g,y,v,m,w=r,b=new Array(r),E=new Array(4096),x=new Array(4096),A=new Array(4097);for(s=1+(o=1<<(f=t)),n=o+2,l=-1,i=(1<<(a=f+1))-1,c=0;c>=a,d-=a,c>n||c==s)break;if(c==o){i=(1<<(a=f+1))-1,n=o+2,l=-1;continue}if(-1==l){A[y++]=x[c],l=c,g=c;continue}for(u=c,c==n&&(A[y++]=g,c=l);c>o;)A[y++]=x[c],c=E[c];g=255&x[c],A[y++]=g,n<4096&&(E[n]=l,x[n]=g,0==(++n&i)&&n<4096&&(a++,i+=n)),l=u}y--,b[v++]=A[y],h++}for(h=v;h1)throw new Error("dotScale should be in range (0, 1].");r.components.data.scale=r.dotScale,r.components.timing.scale=r.dotScale,r.components.alignment.scale=r.dotScale}this.options=r,this.canvas=new y(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new p.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return u()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var r,n,o,i,a,s,u,l,h,m,b,E,x,A,C,k,T,P,_;return g(this,void 0,void 0,c.a.mark((function g(){var B,R,S,D,L,O,I,M,U,N,j,Y,F,z,G,H,q,$,X,K,Q,V,J,Z,W,tt,et,rt,nt,ot,it,at,st,ut,lt,ct,ht,ft,pt,dt,gt,yt,vt,mt,wt,bt,Et,xt,At,Ct,kt,Tt,Pt,_t,Bt,Rt,St,Dt,Lt,Ot,It,Mt,Ut,Nt,jt,Yt,Ft,zt,Gt,Ht,qt,$t;return c.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(B=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,R=this.options.size,((S=this.options.margin)<0||2*S>=R)&&(S=0),D=Math.ceil(S),L=R-2*S,O=this.options.whiteMargin,I=this.options.backgroundDimming,M=Math.ceil(L/B),j=new y(N=(U=M*B)+2*D,N),Y=j.getContext("2d"),this._clear(),Y.save(),Y.translate(D,D),F=new y(N,N),z=F.getContext("2d"),G=null,H=[],!this.options.gifBackground){c.next=47;break}if(q=Object(f.b)(this.options.gifBackground),G=q,H=Object(f.a)(q,!0),!this.options.autoColor){c.next=45;break}$=0,X=0,K=0,Q=0,V=0;case 28:if(!(V200||J[1]>200||J[2]>200)){c.next=32;break}return c.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){c.next=34;break}return c.abrupt("continue",38);case 34:Q++,$+=J[0],X+=J[1],K+=J[2];case 38:V++,c.next=28;break;case 41:$=~~($/Q),X=~~(X/Q),K=~~(K/Q),this.options.colorDark="rgb(".concat($,",").concat(X,",").concat(K,")");case 45:c.next=61;break;case 47:if(!this.options.backgroundImage){c.next=58;break}return c.next=50,v(this.options.backgroundImage);case 50:Z=c.sent,this.options.autoColor&&(W=e._getAverageRGB(Z),this.options.colorDark="rgb(".concat(W.r,",").concat(W.g,",").concat(W.b,")")),z.drawImage(Z,0,0,Z.width,Z.height,0,0,N,N),z.rect(0,0,N,N),z.fillStyle=I,z.fill(),c.next=61;break;case 58:z.rect(0,0,N,N),z.fillStyle=this.options.colorLight,z.fill();case 61:for(tt=p.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(o=null===(n=this.options.components)||void 0===n?void 0:n.data)||void 0===o?void 0:o.scale)||.4,rt=.5*(1-et),nt=0;nt=8&&ot<=B-8||6==ot&&nt>=8&&nt<=B-8,st=ot<8&&(nt<8||nt>=B-8)||ot>=B-8&&nt<8||at,ut=1;ut=tt[ut]-2&&nt<=tt[ut]+2&&ot>=tt[ut]-2&&ot<=tt[ut]+2;lt=ot*M+(st?0:rt*M),ct=nt*M+(st?0:rt*M),Y.strokeStyle=it?this.options.colorDark:this.options.colorLight,Y.lineWidth=.5,Y.fillStyle=it?this.options.colorDark:this.options.colorLight,0===tt.length?st||Y.fillRect(lt,ct,(st?1:et)*M,(st?1:et)*M):(ht=ot=B-4-5&&nt=B-4-5,st||ht||Y.fillRect(lt,ct,(st?1:et)*M,(st?1:et)*M))}if(ft=tt[tt.length-1],pt=this.options.colorLight,Y.fillStyle=pt,Y.fillRect(0,0,8*M,8*M),Y.fillRect(0,(B-8)*M,8*M,8*M),Y.fillRect((B-8)*M,0,8*M,8*M),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(Y.fillRect(8*M,6*M,(B-8-8)*M,M),Y.fillRect(6*M,8*M,M,(B-8-8)*M)),(null===(u=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===u?void 0:u.protectors)&&e._drawAlignProtector(Y,ft,ft,M),!(null===(h=null===(l=this.options.components)||void 0===l?void 0:l.alignment)||void 0===h?void 0:h.protectors)){c.next=99;break}dt=0;case 75:if(!(dt=1)&&(Rt=.2),St<0&&(St=0),Dt<0&&(Dt=0),It=Ot=.5*(N-(Lt=U*Rt)),Y.restore(),Y.fillStyle=this.options.logoBackgroundColor,Y.save(),e._prepareRoundedCornerClip(Y,Ot-St,It-St,Lt+2*St,Lt+2*St,Dt+St),Y.clip(),Mt=Y.globalCompositeOperation,Y.globalCompositeOperation="destination-out",Y.fill(),Y.globalCompositeOperation=Mt,Y.restore(),Y.save(),e._prepareRoundedCornerClip(Y,Ot,It,Lt,Lt,Dt),Y.clip(),Y.drawImage(Bt,Ot,It,Lt,Lt),Y.restore(),Y.save(),Y.translate(D,D);case 179:if(!G){c.next=191;break}if(H.forEach((function(t){Ut||((Ut=new d.a(R,R)).setDelay(t.delay),Ut.setRepeat(0));var e=t.dims,r=e.width,n=e.height;Nt||(Nt=new y(r,n),(jt=Nt.getContext("2d")).rect(0,0,Nt.width,Nt.height),jt.fillStyle="#ffffff",jt.fill()),Yt&&zt&&r===Yt.width&&n===Yt.height||(Yt=new y(r,n),Ft=Yt.getContext("2d"),zt=Ft.createImageData(r,n)),zt.data.set(t.patch),Ft.putImageData(zt,0,0),jt.drawImage(Yt.getContext("2d").canvas,t.dims.left,t.dims.top);var o=new y(N,N),i=o.getContext("2d");i.drawImage(Nt.getContext("2d").canvas,0,0,N,N),i.rect(0,0,N,N),i.fillStyle=I,i.fill(),i.drawImage(j.getContext("2d").canvas,0,0,N,N);var a=new y(R,R),s=a.getContext("2d");s.drawImage(o.getContext("2d").canvas,0,0,R,R),Ut.addFrame(s.getImageData(0,0,a.width,a.height).data)})),Ut){c.next=183;break}throw new Error("No frames.");case 183:if(Ut.finish(),!w(this.canvas)){c.next=188;break}return Gt=Ut.stream().toFlattenUint8Array(),Ht=Gt.reduce((function(t,e){return t+String.fromCharCode(e)}),""),c.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(Ht))));case 188:return c.abrupt("return",Promise.resolve(t.from(Ut.stream().toFlattenUint8Array())));case 191:if(z.drawImage(j.getContext("2d").canvas,0,0,N,N),Y.drawImage(F.getContext("2d").canvas,-D,-D,N,N),qt=new y(R,R),qt.getContext("2d").drawImage(j.getContext("2d").canvas,0,0,R,R),this.canvas=qt,$t=this.options.gifBackground?"gif":"png",!w(this.canvas)){c.next=200;break}return c.abrupt("return",Promise.resolve(this.canvas.toDataURL($t)));case 200:return c.abrupt("return",Promise.resolve(this.canvas.toBuffer($t)));case 201:case"end":return c.stop()}}),g,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,r,n={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;r=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var s,u=new y(e,r).getContext("2d");if(!u)return n;u.drawImage(t,0,0);try{s=u.getImageData(0,0,e,r)}catch(t){return n}for(;(o+=20)200||s.data[o+1]>200||s.data[o+2]>200||(++a,i.r+=s.data[o],i.g+=s.data[o+1],i.b+=s.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)}},{key:"_drawAlignProtector",value:function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}},{key:"_drawAlign",value:function(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map((function(s,u){e._drawDot(t,r-2+u,n-2,o,i,a),e._drawDot(t,r+2,n-2+u,o,i,a),e._drawDot(t,r+2-u,n+2,o,i,a),e._drawDot(t,r-2,n+2-u,o,i,a)})),e._drawDot(t,r,n,o,i,a),u||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,u){e._drawDot(t,r-1+u,n-1,o,i,a),e._drawDot(t,r+1,n-1+u,o,i,a),e._drawDot(t,r+1-u,n+1,o,i,a),e._drawDot(t,r-1,n+1-u,o,i,a)}))),t.fillStyle=l}}]),e}();function w(t){try{return t instanceof HTMLElement}catch(e){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}m.CorrectLevel=p.b,m.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},m.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:p.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:m.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,r(15).Buffer)},function(t,e,r){"use strict";var n=r(11);const{asBuffer:o,asDownload:i,asZipDownload:a,atScale:s,options:u}=n.a,l=Symbol.for("toDataURL"),{CanvasRenderingContext2D:c,CanvasGradient:h,CanvasPattern:f,Image:p,ImageData:d,Path2D:g,DOMMatrix:y,DOMRect:v,DOMPoint:m}=window,w={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),n=[];for(var[c,h]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>o(r,"image/png"),jpg:()=>o(r,"image/jpeg"),pages:()=>n.concat(r).map(t=>t.getContext("2d"))})))Object.defineProperty(r,c,{get:h});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:o}=r,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(r,0,0),n.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(r,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let r=u(this.pages,{filename:t,...e}),{pattern:n,padding:o,mime:l,quality:c,matte:h,density:f,archive:p}=r,d=s(r.pages,f);return null==o?i(d[0],l,c,h,t):a(d,l,c,h,p,n,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=u(this.pages,{extension:t,...e}),{mime:n,quality:i,matte:a,pages:l,density:c}=r,h=s(l,c,a)[0];return o(h,n,i,a)},[l]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=u(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:a,pages:c,density:h}=n,f=s(c,h,a)[0],p=f[f===r?l:"toDataURL"](o,i);return Promise.resolve(p)}})}},loadImage:t=>new Promise((e,r)=>Object.assign(new p,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t})),CanvasRenderingContext2D:c,CanvasGradient:h,CanvasPattern:f,Image:p,ImageData:d,Path2D:g,DOMMatrix:y,DOMRect:v,DOMPoint:m};e.a=w},function(t,e,r){"use strict";(function(t){var n=r(5);class o{constructor(){let e=void 0===t,r="image/png",n="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:r,jpg:n,jpeg:"image/jpeg",webp:"image/webp"}:{png:r,jpg:n,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{[r]:"png",[n]:"jpg","image/webp":"webp"}:{[r]:"png",[n]:"jpg",[o]:"pdf",[i]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,o=0|t.length;n>>8^r[255&(e^t[n])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}i.prototype.table=(()=>{var t,e,r,n=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?r>>>1^3988292384:r>>>1;n[t]=r}return n})();class s{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=s.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),u=30+n.length,l=u+o.length,{offset:c}=this,h=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);c+=u;let f=a(u+o.length+16).set32(0,67324752).bytes(4,h.array).bytes(30,n).bytes(u,o);c+=o.length,f.set32(l,134695760).bytes(l+4,h.array.slice(10,22)),c+=16,this.files.push({offset:c,folder:r,name:n,header:h,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),r=0;for(var{offset:n,name:o,header:i,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,i.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let u=new Uint8Array(this.offset+e.size),l=0;for(var{payload:c}of this.files)u.set(c.array,l),l+=c.size;return u.set(e.array,l),u}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const u=(t,e,r,n)=>{if(n){let{width:e,height:r}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:r}),i=o.getContext("2d");i.fillStyle=n,i.fillRect(0,0,e,r),i.drawImage(t,0,0),t=o}return new Promise((n,o)=>t.toBlob(n,e,r))},l=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(r),100)},c={asBuffer:(...t)=>u(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,r,n,o)=>{l(o,await u(t,e,r,n))},asZipDownload:async(t,e,r,o,i,a,c)=>{let h=Object(n.a)(i,".zip")||"archive",f=new s(h);await Promise.all(t.map(async(t,n)=>{let i=(t=>a.replace("{}",String(t+1).padStart(c,"0")))(n);await f.add(i,await u(t,e,r,o))})),l(h+".zip",f.blob)},atScale:(t,e,r)=>t.map(t=>{if(1==e&&!r)return t.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),i=t.canvas?t.canvas:t;return n.width=i.width*e,n.height=i.height*e,r&&(o.fillStyle=r,o.fillRect(0,0,n.width,n.height)),o.scale(e,e),o.drawImage(i,0,0),n}),options:function(t,{filename:e="",extension:r="",format:i,page:a,quality:s,matte:u,density:l,outline:c,archive:h}={}){var{fromMime:f,toMime:p,expected:d}=new o,g=(h=h||"canvas",i||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),y=(i=f(p(g)||g),p(i)),v=t.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${g}" (expected ${d})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let m,w,b=e.replace(/{(\d*)}/g,(t,e)=>(w=!0,e=parseInt(e,10),m=isFinite(e)?e:isFinite(m)?m:-1,"{}")),E=a>0?a-1:a<0?v+a:void 0;if(isFinite(E)&&E<0||E>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${E} is out of bounds)`:`Canvas has pages 1–${v} (${E} is out of bounds)`);if(t=isFinite(E)?[t[E]]:w||"pdf"==i?t:t.slice(-1),void 0===s)s=.92;else if("number"!=typeof s||!isFinite(s)||s<0||s>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===l){let t=(r||Object(n.a)(e,g)).match(/@(\d+)x$/i);l=t?parseInt(t[1],10):1}else if("number"!=typeof l||!Number.isInteger(l)||l<1)throw new TypeError("The density option must be a non-negative integer");return void 0===c?c=!0:"svg"==i&&(c=!!c),{filename:e,pattern:b,format:i,mime:y,pages:t,padding:m,quality:s,matte:u,density:l,outline:c,archive:h}}};e.a=c}).call(this,r(8))},function(t,e,r){"use strict";var n=function(t,e){var r,n,o,i,a;function s(t,e,n,o,i){r[e][0]-=t*(r[e][0]-n)/1024,r[e][1]-=t*(r[e][1]-o)/1024,r[e][2]-=t*(r[e][2]-i)/1024}function u(t,e,n,o,i){for(var s,u,l=Math.abs(e-t),c=Math.min(e+t,256),h=e+1,f=e-1,p=1;hl;)u=a[p++],hl&&((s=r[f--])[0]-=u*(s[0]-n)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18))}function l(t,e,n){var a,s,u,l,c,h=~(1<<31),f=h,p=-1,d=p;for(a=0;a<256;a++)s=r[a],(u=Math.abs(s[0]-t)+Math.abs(s[1]-e)+Math.abs(s[2]-n))>12))>10,i[a]-=c,o[a]+=c<<10;return i[p]+=64,o[p]-=65536,d}this.buildColormap=function(){!function(){var t,e;for(r=[],n=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,r[t]=new Float64Array([e,e,e,0]),i[t]=256,o[t]=0}(),function(){var r,n,o,i,c,h,f=t.length,p=30+(e-1)/3,d=f/(3*e),g=~~(d/100),y=1024,v=2048,m=v>>6;for(m<=1&&(m=0),r=0;r=f&&(w-=f),0===g&&(g=1),++r%g==0)for(y-=y/p,(m=(v-=v/30)>>6)<=1&&(m=0),h=0;h>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,o,i,a,s,u=0,l=0;for(t=0;t<256;t++){for(a=t,s=(o=r[t])[1],e=t+1;e<256;e++)(i=r[e])[1]>1,e=u+1;e>1,e=u+1;e<256;e++)n[e]=255}()},this.getColormap=function(){for(var t=[],e=[],n=0;n<256;n++)e[r[n][3]]=n;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=r[a][0],t[o++]=r[a][1],t[o++]=r[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,s,u=1e3,l=-1,c=n[e],h=c-1;c<256||h>=0;)c<256&&((s=(a=r[c])[1]-e)>=u?c=256:(c++,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)=0&&((s=e-(a=r[h])[1])>=u?h=-1:(h--,s<0&&(s=-s),(i=a[0]-t)<0&&(i=-i),(s+=i)=254&&C(e)}function x(t){A(5003),w=l+2,b=!0,P(l,t)}function A(t){for(var e=0;e0&&(t.writeByte(a),t.writeBytes(g,0,a),a=0)}function k(t){return(1<0?i|=t<=8;)E(255&i,e),i>>=8,m-=8;if((w>s||b)&&(b?(s=k(p=u),b=!1):(++p,s=12==p?4096:k(p))),t==c){for(;m>0;)E(255&i,e),i>>=8,m-=8;C(e)}}this.encode=function(r){r.writeByte(d),h=t*e,f=0,function(t,e){var r,n,o,i,h,f;for(b=!1,s=k(p=u=t),c=1+(l=1<=0){h=5003-o,0===o&&(h=1);do{if((o-=h)<0&&(o+=5003),y[o]===r){i=v[o];continue t}}while(y[o]>=0)}P(i,e),i=n,w<4096?(v[o]=w++,y[o]=r):x(e)}else i=v[o];P(i,e),P(c,e)}(d+1,r),r.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function u(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r=0&&(this.dispose=t)},u.prototype.setRepeat=function(t){this.repeat=t},u.prototype.setTransparent=function(t){this.transparent=t},u.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},u.prototype.finish=function(){this.out.writeByte(59)},u.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},u.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},u.prototype.setGlobalPalette=function(t){this.globalPalette=t},u.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},u.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},u.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},u.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n=0&&E+c=0&&x+l>16,(65280&t)>>8,255&t,e)},u.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,a=this.colorTab.length,s=0,u=0;s=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},u.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},u.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},u.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},u.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},u.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},u.prototype.stream=function(){return this.out},e.a=u},function(t,e,r){t.exports=r(20)},function(t,e,r){var n=r(2).default;function o(){"use strict"; -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=A(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function d(){}function g(){}function y(){}var v={};c(v,s,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(P([])));w&&w!==r&&i.call(w,s)&&(v=w);var b=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var r;this._invoke=function(o,a){function s(){return new e((function(r,s){!function r(o,a,s,u){var l=f(t[o],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==n(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,u)}))}u(l.arg)}(o,a,r,s)}))}return r=r?r.then(s,s):s()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var n=r(16),o=r(17),i=r(18);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return Y(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return _(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var h=!0,f=0;fo&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:l>223?3:l>191?2:1;if(o+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function O(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function I(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,i){return i||I(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return i||I(t,0,r,8),o.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),l=this.slice(n,o),c=t.slice(e,r),h=0;ho)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||S(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||S(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||S(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||S(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||S(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||S(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||D(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);D(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);D(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(8))},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),a=n[0],s=n[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),c=0,h=s>0?a-4:a;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===s&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===s&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,s=r-o;as?s:a+16383));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var o,i,a=[],s=e;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){ -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,c=-7,h=r?o-1:0,f=r?-1:1,p=t[e+h];for(h+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+t[e+h],h+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=l}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,l=8*i-o-1,c=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<0;t[r+p]=255&a,p+=d,a/=256,l-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&p())}function p(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h1)for(var r=1;r0?t("a",{on:{click:function(t){return e.handlePay(r.qyt)}}},[e._v("加油链接")]):e._e(),2===r.qyt.oil_status_zsy&&1===r.qyt.oil_status?t("a",{on:{click:function(t){return e.handleOil(r.qyt)}}},[e._v("重推发放结果")]):e._e(),2===r.qyt.oil_status_zsy&&1===r.qyt.use_status?t("a",{on:{click:function(t){return e.handleUse(r.qyt)}}},[e._v("重推加油结果")]):e._e(),e.canRefund(r.qyt)?t("a",{on:{click:function(t){return e.handleRefund(r.qyt)}}},[e._v(e._s(e.refundLabel(r.qyt)))]):e._e(),1===r.qyt.use_status?t("a",{on:{click:function(t){return e.handleInvoice(r.qyt)}}},[e._v("发票")]):e._e()]:"zsy_ticket"===r.oilCardType?t("span",{staticClass:"c-muted-1"},[e._v("未生成发放单")]):e._e()],2)]),t("td",[r.qyt?[t("p",{staticClass:"mtb-2"},[e._v(e._s(r.qyt.driver_name||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v(e._s(r.qyt.mobile))]),t("p",{staticClass:"mtb-2 f-13"},[e._v(e._s(r.qyt.id_card_mask||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("车牌:"+e._s(r.qyt.plate_no||"-"))])]:t("span",[e._v("-")])],2),t("td",[r.qyt?[t("p",{staticClass:"mtb-2 f-13"},[e._v("批次:"+e._s(r.qyt.batch_no||"-"))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("运单:"+e._s(r.qyt.waybill_no||"-"))])]:t("span",[e._v("-")])],2),t("td",[r.qyt&&1===r.qyt.use_status?[t("p",{staticClass:"mtb-2 f-13"},[e._v("已加油:¥"+e._s(r.qyt.used_amount)+"("+e._s(r.qyt.used_num)+" 次)")]),t("p",{staticClass:"mtb-2 f-13"},[e._v("剩余:¥"+e._s(e.remainAmount(r.qyt)))]),t("p",{staticClass:"mtb-2 f-13"},[e._v("最近:"+e._s(r.qyt.station_name||"-")+" "+e._s(r.qyt.oil_name)+" "+e._s(r.qyt.litter)+"L")])]:t("span",[e._v("-")])],2),0===s?[t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v("¥"+e._s(a.pay_price))]),t("p",{staticClass:"c-muted-1"},[e._v("(含运费:¥"+e._s(a.express_price)+")")])]),t("td",{attrs:{rowspan:a.goods.length}},[t("UserItem",{attrs:{user:a.user}})],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.OrderSourceEnum[a.order_source].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.PayTypeEnum[a.pay_type].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(a.spreadOne?a.spreadOne.name:""))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.province))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(e.OilCardTypeEnum[r.oilCardType].name))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.oilCardNo))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.shareNo))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("付款状态:")]),t("a-tag",{attrs:{color:a.pay_status==e.PayStatusEnum.SUCCESS.value?"green":""}},[e._v(e._s(e.PayStatusEnum[a.pay_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("分油状态:")]),t("a-tag",{attrs:{color:r.oil_status==e.OilStatusEnum.OIL.value?"green":""}},[e._v(e._s(e.OilStatusEnum[r.oil_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("使用状态:")]),t("a-tag",{attrs:{color:r.use_status==e.UseStatusEnum.USE.value?"green":""}},[e._v(e._s(e.UseStatusEnum[r.use_status].name))])],1),r.qyt?[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("企油通:")]),t("a-tag",{attrs:{color:e.qytColor(r.qyt.oil_status_zsy)}},[e._v(e._s(e.qytText(r.qyt.oil_status_zsy)))])],1),r.qyt.oil_text?t("p",{staticClass:"mtb-2 f-13 order-remark"},[e._v(e._s(r.qyt.oil_text))]):e._e(),r.qyt.refund_status>0?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("退款:")]),t("a-tag",{attrs:{color:e.refundColor(r.qyt.refund_status)}},[e._v(e._s(e.refundText(r.qyt.refund_status)))])],1):e._e()]:e._e(),[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value].includes(a.order_status)?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("订单状态:")]),t("a-tag",{attrs:{color:e.renderOrderStatusColor(a.order_status)}},[e._v(e._s(e.OrderStatusEnum[a.order_status].name))])],1):e._e()],2)]:e._e()],2)}))]}))],2)])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("CancelShareForm",{ref:"CancelShareForm",on:{handleSubmit:e.handleRefresh}}),t("ShareForm",{ref:"ShareForm",on:{handleSubmit:e.handleRefresh}}),t("PayForm",{ref:"PayForm",on:{handleSubmit:e.handleRefresh}}),t("OilForm",{ref:"OilForm",on:{handleSubmit:e.handleRefresh}}),t("UseForm",{ref:"UseForm",on:{handleSubmit:e.handleRefresh}}),t("RefundForm",{ref:"RefundForm",on:{handleSubmit:e.handleRefresh}}),t("InvoiceModal",{ref:"InvoiceModal"})],1)],1)},s=[],i=a("ade3"),n=a("5530"),o=(a("06f4"),a("fc25")),l=(a("d3b7"),a("b680"),a("4d90"),a("ca00")),d=a("3a10"),u=a("b775"),c={delivery:"/order.event/delivery",updatePrice:"/order.event/updatePrice",confirmCancel:"/order.event/confirmCancel",delete:"/order.event/delete",updateStatus:"/order/updatestatus",fillUp:"/order/callback",cancelShare:"/order/cancelShare",share:"/order/share",qrCode:"/order/qrCode"};function m(e){return Object(u["b"])({url:c.delivery,method:"post",data:e})}function p(e){return Object(u["b"])({url:c.updatePrice,method:"post",data:e})}function f(e){return Object(u["b"])({url:c.confirmCancel,method:"post",data:e})}function h(e){return Object(u["b"])({url:c.delete,method:"post",data:{orderId:e}})}function v(e){return Object(u["b"])({url:c.updateStatus,method:"post",data:e})}function _(e){return Object(u["b"])({url:c.fillUp,method:"post",data:e})}function b(e){return Object(u["b"])({url:c.cancelShare,method:"post",data:e})}function g(e){return Object(u["b"])({url:c.share,method:"post",data:e})}function C(e){return Object(u["b"])({url:c.qrCode,method:"post",data:e})}var y=a("8d5f"),S=a("ab09"),w=a("c519"),L=a("eb60"),x=a("4a95"),F=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id",{rules:[{required:!0,message:"请选择物流公司"}]}],expression:"['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"}],attrs:{placeholder:"请选择物流公司"}},e._l(e.expressList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/delivery/express/index"}}},[e._v("物流公司管理")])],1)],1),t("a-form-item",{attrs:{label:"物流单号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请手动录入物流单号或快递单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_no",{rules:[{required:!0,message:"请输入物流单号"}]}],expression:"['express_no', { rules: [{ required: true, message: '请输入物流单号' }] }]"}]})],1)],1)],1)],1)},q=[],O=a("2a66"),N={data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){this.getExpressList()},methods:{show:function(e){this.visible=!0,this.record=e},getExpressList:function(){var e=this;this.isLoading=!0,O["b"]().then((function(t){return e.expressList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,m({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},k=N,E=a("2877"),R=Object(E["a"])(k,F,q,!1,null,null,null),I=R.exports,$=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"实付款金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.pay_price))])]),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"同意后将退回付款金额并关闭订单"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("同意")]),t("a-radio",{attrs:{value:0}},[e._v("拒绝")])],1)],1)],1)],1)],1)},j=[],T={data:function(){return{title:"审核取消订单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,f({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},D=T,P=Object(E["a"])(D,$,j,!1,null,null,null),V=P.exports,U=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最终付款金额 = 订单金额 + 运费金额"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_price",{rules:[{required:!0,message:"请输入订单金额"}]}],expression:"['order_price', { rules: [{ required: true, message: '请输入订单金额' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"运费金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_price",{rules:[{required:!0,message:"请输入运费金额"}]}],expression:"['express_price', { rules: [{ required: true, message: '请输入运费金额' }] }]"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1)],1)],1)],1)},M=[],z=a("2ef0"),A=a.n(z),G={data:function(){return{title:"修改订单金额",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){var t=Number(e.update_price.value);"-"===e.update_price.symbol&&(t=-t),a({order_price:A.a.add(Number(e.order_price),t),express_price:Number(e.express_price)})}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,p({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},Y=G,Q=Object(E["a"])(Y,U,M,!1,null,null,null),B=(Q.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{rules:[{required:!0,message:"请选择订单状态"}]}],expression:"['status', { rules: [{ required: true, message: '请选择订单状态' }] }]"}],attrs:{placeholder:"请选择订单状态"}},[t("a-select-option",{attrs:{value:20}},[e._v("支付成功")]),t("a-select-option",{attrs:{value:30}},[e._v("支付超时")])],1)],1),t("a-form-item",{attrs:{label:"修改备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入备注"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["buyer_remark",{rules:[{required:!0,message:"请输入备注"}]}],expression:"['buyer_remark', { rules: [{ required: true, message: '请输入备注' }] }]"}]})],1)],1)],1)],1)}),J=[],H={data:function(){return{title:"修改状态",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,v({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},K=H,W=Object(E["a"])(K,B,J,!1,null,null,null),X=(W.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否确认手动补单回调? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)}),Z=[],ee={data:function(){return{title:"手动补单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,_({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},te=ee,ae=Object(E["a"])(te,X,Z,!1,null,null,null),re=(ae.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否撤销分油? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)}),se=[],ie={data:function(){return{title:"撤销分油",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,b({orderGoodsId:this.record.order_goods_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},ne=ie,oe=Object(E["a"])(ne,re,se,!1,null,null,null),le=oe.exports,de=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否手动分油? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)},ue=[],ce={data:function(){return{title:"手动分油",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,g({orderGoodsId:this.record.order_goods_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},me=ce,pe=Object(E["a"])(me,de,ue,!1,null,null,null),fe=(pe.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleCancel,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("iframe",{attrs:{src:e.qrCodeValue,width:"200px",height:"200px"}})])],1)],1)}),he=[],ve=a("658f5"),_e=a.n(ve),be={components:{vueQr:_e.a},data:function(){return{title:"支付码",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{},qrCodeValue:""}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.getQrCode()},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},getQrCode:function(){var e=this;C({orderGoodsId:this.record.order_goods_id}).then((function(t){e.qrCodeValue=t.data.qrCode})).finally((function(){}))}}},ge=be,Ce=Object(E["a"])(ge,fe,he,!1,null,null,null),ye=(Ce.exports,a("edae")),Se=[{title:"商品信息",align:"center",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"单价/数量",align:"center",scopedSlots:{customRender:"unit_price"}},{title:"操作",dataIndex:"action",width:"220px",scopedSlots:{customRender:"action"}},{title:"司机",align:"center",scopedSlots:{customRender:"driver"}},{title:"企油通单号",align:"center",scopedSlots:{customRender:"qyt"}},{title:"加油信息",align:"center",scopedSlots:{customRender:"consume"}},{title:"实付款",align:"center",dataIndex:"pay_price",scopedSlots:{customRender:"pay_price"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"订单来源",dataIndex:"order_source",scopedSlots:{customRender:"order_source"}},{title:"支付方式",dataIndex:"pay_type",scopedSlots:{customRender:"pay_type"}},{title:"一级代理商",dataIndex:"spreadOne",scopedSlots:{customRender:"spreadOne"}},{title:"省份",align:"center",dataIndex:"province",scopedSlots:{customRender:"province"}},{title:"卡券类型",align:"center",dataIndex:"oilCardType",scopedSlots:{customRender:"oilCardType"}},{title:"油卡编号",dataIndex:"oilCardNo",scopedSlots:{customRender:"oilCardNo"}},{title:"分油记录编号",dataIndex:"shareNo",scopedSlots:{customRender:"shareNo"}},{title:"交易状态",dataIndex:"status",scopedSlots:{customRender:"status"}}],we=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30},{name:"收货人姓名",value:40},{name:"收货人电话",value:50}],Le={name:"Index",components:{PlatformIcon:y["a"],GoodsItem:S["a"],UserItem:S["c"],DeliveryForm:I,CancelForm:V,CancelShareForm:le,ShareForm:ye["e"],PayForm:ye["c"],OilForm:ye["b"],UseForm:ye["f"],RefundForm:ye["d"],InvoiceModal:ye["a"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:Se,page:1,orderList:{data:[],total:0,per_page:10},merchantListData:[],total_money:0,zhCN:L["a"]}},beforeCreate:function(){Object(l["a"])(this,{inArray:l["d"],DeliveryStatusEnum:x["a"],DeliveryTypeEnum:x["b"],OrderSourceEnum:x["e"],OrderStatusEnum:x["f"],PayStatusEnum:x["g"],PayTypeEnum:x["h"],ReceiptStatusEnum:x["i"],SearchTypeEnum:we,OilCardTypeEnum:x["c"],OilStatusEnum:x["d"],UseStatusEnum:x["j"],simpleImage:o["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},watch:{$route:function(){this.init()}},methods:{init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getDataType:function(){return this.$route.path.split("/")[3]},getList:function(){var e=this,t=this.dataType,a=this.queryParam,r=this.page;return this.isLoading=!0,d["b"](Object(n["a"])(Object(n["a"])({dataType:t},a),{},{page:r})).then((function(t){e.orderList=t.data.list,e.total_money=t.data.total_money})).finally((function(){e.isLoading=!1}))},renderOrderStatusColor:function(e){var t,a=this.OrderStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.CANCELLED.value,"red"),Object(i["a"])(t,a.APPLY_CANCEL.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),t);return r[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getMerchantList(),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(n["a"])(Object(n["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelete:function(e){var t=this,a=t.$confirm({title:"您确定要删除该订单记录吗?",content:"删除后不可恢复,请谨慎操作",onOk:function(){return h(e.order_id).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)},handleCancelShare:function(e){this.$refs.CancelShareForm.show(e)},handleShare:function(e){this.$refs.ShareForm.show(e)},handlePay:function(e){this.$refs.PayForm.show(e)},handleOil:function(e){this.$refs.OilForm.show(e)},handleUse:function(e){this.$refs.UseForm.show(e)},handleRefund:function(e){this.$refs.RefundForm.show(e)},handleInvoice:function(e){this.$refs.InvoiceModal.show(e)},qytText:function(e){return{0:"未提交",1:"发放中",2:"发放成功",3:"发放失败"}[e]||"未知"},qytColor:function(e){return{1:"blue",2:"green",3:"red"}[e]||""},refundText:function(e){return{0:"未退款",1:"退款中",2:"已退款",3:"退款失败",4:"待人工确认"}[e]||"未知"},refundColor:function(e){return{1:"blue",2:"green",3:"red",4:"orange"}[e]||""},canRefund:function(e){return"zsy_ticket"===e.oilCardType&&2===e.oil_status_zsy&&1===e.oil_status&&(e.refund_status>0||Number(this.remainAmount(e))>0)},remainAmount:function(e){var t=2===e.refund_status?Number(e.refund_amount||0):0,a=Number(e.total_price||0)-Number(e.used_amount||0)-t;return Math.max(0,a).toFixed(2)},refundLabel:function(e){return{2:"退款记录",4:"确认退款"}[e.refund_status]||"退款"},formatTime:function(e){var t=new Date(e),a=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),n=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return"".concat(a,"-").concat(r,"-").concat(s," ").concat(i,":").concat(n,":").concat(o)},getMerchantList:function(){var e=this;this.isLoading=!0,w["b"]().then((function(t){e.merchantListData=t.data.list})).finally((function(){e.isLoading=!1}))}}},xe=Le,Fe=(a("57a7"),Object(E["a"])(xe,r,s,!1,null,"246757a0",null));t["default"]=Fe.exports}}]); \ No newline at end of file diff --git a/server-tp6/public/store/js/order.0fe6a88d.js.gz b/server-tp6/public/store/js/order.0fe6a88d.js.gz new file mode 100644 index 0000000..79b8abe Binary files /dev/null and b/server-tp6/public/store/js/order.0fe6a88d.js.gz differ diff --git a/server-tp6/public/store/js/order.bc3eac19.js b/server-tp6/public/store/js/order.bc3eac19.js deleted file mode 100644 index daedb26..0000000 --- a/server-tp6/public/store/js/order.bc3eac19.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"02c6":function(e,t,a){"use strict";a("10b5")},"10b5":function(e,t,a){},"2a66":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a("b775"),s={list:"/setting.express/list",all:"/setting.express/all",add:"/setting.express/add",edit:"/setting.express/edit",delete:"/setting.express/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},"3a10":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return d}));var r=a("b775"),s={list:"/order/list",detail:"/order/detail",rebate:"/order/rebate"},i={detail:"/passport/detail",bindUid:"/passport/bindUid",clickNum:"/passport/clickNum"};function o(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:i.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.clickNum,method:"get",params:e})}function d(e){return Object(r["b"])({url:s.rebate,method:"post",data:e})}},fecbd:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("99af"),a("caad"),a("2532");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键词"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchValue"],expression:"['searchValue']"}],staticStyle:{width:"342px"},attrs:{placeholder:"请输入关键词"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchType",{initialValue:10}],expression:"['searchType', { initialValue: 10 }]"}],staticStyle:{width:"100px"},attrs:{slot:"addonBefore"},slot:"addonBefore"},e._l(e.SearchTypeEnum,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-form-item",{attrs:{label:"订单来源"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderSource",{initialValue:-1}],expression:"['orderSource', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OrderSourceEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payType",{initialValue:-1}],expression:"['payType', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.PayTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"一级代理商"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["spread_uid",{initialValue:-1}],expression:"['spread_uid', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.merchantListData,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.merchant_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"支付状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pay_status",{initialValue:-1}],expression:"['pay_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.PayStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"分油状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["oil_status",{initialValue:-1}],expression:"['oil_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OilStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"使用状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["use_status",{initialValue:-1}],expression:"['use_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.UseStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"商品编码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_no"],expression:"['goods_no']"}],attrs:{placeholder:"商品编码"}})],1),t("a-form-item",{attrs:{label:"油卡编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["oilCardNo"],expression:"['oilCardNo']"}],attrs:{placeholder:"油卡编号"}})],1),t("a-form-item",{attrs:{label:"分油记录编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["shareNo"],expression:"['shareNo']"}],attrs:{placeholder:"分油记录编号"}})],1),[t("a-config-provider",{attrs:{locale:e.zhCN}},[t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1)],1)],t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],2)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("span",{staticClass:"form-total"},[e._v("实付款:¥"+e._s(e.total_money))])])],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,r){return t("th",{key:r},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a){return[t("tr",{key:"order_".concat(a.order_id,"_1"),staticClass:"order-empty"},[t("td",{attrs:{colspan:"15"}})]),t("tr",{key:"order_".concat(a.order_id,"_2")},[t("td",{attrs:{colspan:"15"}},[t("span",{staticClass:"mr-20"},[e._v(e._s(a.create_time))]),t("span",{staticClass:"mr-20"},[e._v("订单号:"+e._s(a.order_no))]),t("platform-icon",{attrs:{name:a.platform,showTips:!0}})],1)]),e._l(a.goods,(function(r,s){return t("tr",{key:"orderGoods_".concat(a.order_id,"_").concat(s)},[t("td",[t("GoodsItem",{attrs:{data:{image:r.goods_image,imageAlt:"商品图片",title:r.goods_name,goods_no:r.goods_no,goodsProps:r.goods_props}}})],1),t("td",[t("p",[e._v("¥"+e._s(r.goods_price))]),t("p",[e._v("×"+e._s(r.total_num))])]),t("td",[t("div",{staticClass:"actions"},[e.$auth("/order/pay")&&e.inArray(a.order_status,[e.OrderStatusEnum.NORMAL.value])&&e.inArray(a.pay_status,[e.PayStatusEnum.SUCCESS.value])&&0===r.use_status&&1===r.oil_status&&"zsy_ticket"===r.oilCardType?t("a",{on:{click:function(t){return e.handlePay(r)}}},[e._v("付款码")]):e._e(),e.$auth("/order/pay")&&e.inArray(a.order_status,[e.OrderStatusEnum.NORMAL.value])&&e.inArray(a.pay_status,[e.PayStatusEnum.SUCCESS.value])&&0===r.oil_status&&"zsy_ticket"===r.oilCardType?t("a",{on:{click:function(t){return e.handleShare(r)}}},[e._v("手动分油")]):e._e()])]),0===s?[t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v("¥"+e._s(a.pay_price))]),t("p",{staticClass:"c-muted-1"},[e._v("(含运费:¥"+e._s(a.express_price)+")")])]),t("td",{attrs:{rowspan:a.goods.length}},[t("UserItem",{attrs:{user:a.user}})],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.OrderSourceEnum[a.order_source].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.PayTypeEnum[a.pay_type].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(a.spreadOne?a.spreadOne.name:""))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.province))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(e.OilCardTypeEnum[r.oilCardType].name))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.oilCardNo))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v(e._s(r.shareNo))])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("付款状态:")]),t("a-tag",{attrs:{color:a.pay_status==e.PayStatusEnum.SUCCESS.value?"green":""}},[e._v(e._s(e.PayStatusEnum[a.pay_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("分油状态:")]),t("a-tag",{attrs:{color:r.oil_status==e.OilStatusEnum.OIL.value?"green":""}},[e._v(e._s(e.OilStatusEnum[r.oil_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("使用状态:")]),t("a-tag",{attrs:{color:r.use_status==e.UseStatusEnum.USE.value?"green":""}},[e._v(e._s(e.UseStatusEnum[r.use_status].name))])],1),[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value].includes(a.order_status)?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("订单状态:")]),t("a-tag",{attrs:{color:e.renderOrderStatusColor(a.order_status)}},[e._v(e._s(e.OrderStatusEnum[a.order_status].name))])],1):e._e()])]:e._e()],2)}))]}))],2)])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("CancelShareForm",{ref:"CancelShareForm",on:{handleSubmit:e.handleRefresh}}),t("ShareForm",{ref:"ShareForm",on:{handleSubmit:e.handleRefresh}}),t("PayForm",{ref:"PayForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},s=[],i=a("ade3"),o=a("5530"),n=(a("06f4"),a("fc25")),l=(a("d3b7"),a("4d90"),a("ca00")),d=a("3a10"),u=a("b775"),c={delivery:"/order.event/delivery",updatePrice:"/order.event/updatePrice",confirmCancel:"/order.event/confirmCancel",delete:"/order.event/delete",updateStatus:"/order/updatestatus",fillUp:"/order/callback",cancelShare:"/order/cancelShare",share:"/order/share",qrCode:"/order/qrCode"};function m(e){return Object(u["b"])({url:c.delivery,method:"post",data:e})}function p(e){return Object(u["b"])({url:c.updatePrice,method:"post",data:e})}function h(e){return Object(u["b"])({url:c.confirmCancel,method:"post",data:e})}function f(e){return Object(u["b"])({url:c.delete,method:"post",data:{orderId:e}})}function v(e){return Object(u["b"])({url:c.updateStatus,method:"post",data:e})}function b(e){return Object(u["b"])({url:c.fillUp,method:"post",data:e})}function g(e){return Object(u["b"])({url:c.cancelShare,method:"post",data:e})}function _(e){return Object(u["b"])({url:c.share,method:"post",data:e})}function C(e){return Object(u["b"])({url:c.qrCode,method:"post",data:e})}var S=a("8d5f"),y=a("ab09"),w=a("c519"),L=a("eb60"),x=a("4a95"),F=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id",{rules:[{required:!0,message:"请选择物流公司"}]}],expression:"['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"}],attrs:{placeholder:"请选择物流公司"}},e._l(e.expressList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/delivery/express/index"}}},[e._v("物流公司管理")])],1)],1),t("a-form-item",{attrs:{label:"物流单号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请手动录入物流单号或快递单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_no",{rules:[{required:!0,message:"请输入物流单号"}]}],expression:"['express_no', { rules: [{ required: true, message: '请输入物流单号' }] }]"}]})],1)],1)],1)],1)},O=[],E=a("2a66"),N={data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){this.getExpressList()},methods:{show:function(e){this.visible=!0,this.record=e},getExpressList:function(){var e=this;this.isLoading=!0,E["b"]().then((function(t){return e.expressList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,m({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},k=N,j=a("2877"),$=Object(j["a"])(k,F,O,!1,null,null,null),P=$.exports,I=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"实付款金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.pay_price))])]),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"同意后将退回付款金额并关闭订单"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("同意")]),t("a-radio",{attrs:{value:0}},[e._v("拒绝")])],1)],1)],1)],1)],1)},q=[],D={data:function(){return{title:"审核取消订单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,h({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},T=D,R=Object(j["a"])(T,I,q,!1,null,null,null),V=R.exports,A=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最终付款金额 = 订单金额 + 运费金额"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_price",{rules:[{required:!0,message:"请输入订单金额"}]}],expression:"['order_price', { rules: [{ required: true, message: '请输入订单金额' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"运费金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_price",{rules:[{required:!0,message:"请输入运费金额"}]}],expression:"['express_price', { rules: [{ required: true, message: '请输入运费金额' }] }]"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1)],1)],1)],1)},U=[],M=(a("a9e3"),a("2ef0")),G=a.n(M),Y={data:function(){return{title:"修改订单金额",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){var t=Number(e.update_price.value);"-"===e.update_price.symbol&&(t=-t),a({order_price:G.a.add(Number(e.order_price),t),express_price:Number(e.express_price)})}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,p({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},z=Y,Q=Object(j["a"])(z,A,U,!1,null,null,null),B=(Q.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{rules:[{required:!0,message:"请选择订单状态"}]}],expression:"['status', { rules: [{ required: true, message: '请选择订单状态' }] }]"}],attrs:{placeholder:"请选择订单状态"}},[t("a-select-option",{attrs:{value:20}},[e._v("支付成功")]),t("a-select-option",{attrs:{value:30}},[e._v("支付超时")])],1)],1),t("a-form-item",{attrs:{label:"修改备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入备注"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["buyer_remark",{rules:[{required:!0,message:"请输入备注"}]}],expression:"['buyer_remark', { rules: [{ required: true, message: '请输入备注' }] }]"}]})],1)],1)],1)],1)}),J=[],H={data:function(){return{title:"修改状态",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,v({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},K=H,W=Object(j["a"])(K,B,J,!1,null,null,null),X=(W.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否确认手动补单回调? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)}),Z=[],ee={data:function(){return{title:"手动补单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,b({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},te=ee,ae=Object(j["a"])(te,X,Z,!1,null,null,null),re=(ae.exports,function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否撤销分油? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)}),se=[],ie={data:function(){return{title:"撤销分油",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,g({orderGoodsId:this.record.order_goods_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},oe=ie,ne=Object(j["a"])(oe,re,se,!1,null,null,null),le=ne.exports,de=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:580,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:" 提示 ",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e._v(" 是否手动分油? ")]),t("a-form-item",{attrs:{label:"登录密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请输入密码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码"}]}],expression:"['password', { rules: [{ required: true, message: '请输入密码' }] }]"}],attrs:{type:"password"}})],1)],1)],1)],1)},ue=[],ce={data:function(){return{title:"手动分油",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,_({orderGoodsId:this.record.order_goods_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},me=ce,pe=Object(j["a"])(me,de,ue,!1,null,null,null),he=pe.exports,fe=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleCancel,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("iframe",{attrs:{src:e.qrCodeValue,width:"200px",height:"200px"}})])],1)],1)},ve=[],be=a("658f5"),ge=a.n(be),_e={components:{vueQr:ge.a},data:function(){return{title:"支付码",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{},qrCodeValue:""}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.getQrCode()},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},getQrCode:function(){var e=this;C({orderGoodsId:this.record.order_goods_id}).then((function(t){e.qrCodeValue=t.data.qrCode})).finally((function(){}))}}},Ce=_e,Se=Object(j["a"])(Ce,fe,ve,!1,null,null,null),ye=Se.exports,we=[{title:"商品信息",align:"center",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"单价/数量",align:"center",scopedSlots:{customRender:"unit_price"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}},{title:"实付款",align:"center",dataIndex:"pay_price",scopedSlots:{customRender:"pay_price"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"订单来源",dataIndex:"order_source",scopedSlots:{customRender:"order_source"}},{title:"支付方式",dataIndex:"pay_type",scopedSlots:{customRender:"pay_type"}},{title:"一级代理商",dataIndex:"spreadOne",scopedSlots:{customRender:"spreadOne"}},{title:"省份",align:"center",dataIndex:"province",scopedSlots:{customRender:"province"}},{title:"卡券类型",align:"center",dataIndex:"oilCardType",scopedSlots:{customRender:"oilCardType"}},{title:"油卡编号",dataIndex:"oilCardNo",scopedSlots:{customRender:"oilCardNo"}},{title:"分油记录编号",dataIndex:"shareNo",scopedSlots:{customRender:"shareNo"}},{title:"交易状态",dataIndex:"status",scopedSlots:{customRender:"status"}}],Le=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30},{name:"收货人姓名",value:40},{name:"收货人电话",value:50}],xe={name:"Index",components:{PlatformIcon:S["a"],GoodsItem:y["a"],UserItem:y["c"],DeliveryForm:P,CancelForm:V,CancelShareForm:le,ShareForm:he,PayForm:ye},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:we,page:1,orderList:{data:[],total:0,per_page:10},merchantListData:[],total_money:0,zhCN:L["a"]}},beforeCreate:function(){Object(l["a"])(this,{inArray:l["d"],DeliveryStatusEnum:x["a"],DeliveryTypeEnum:x["b"],OrderSourceEnum:x["e"],OrderStatusEnum:x["f"],PayStatusEnum:x["g"],PayTypeEnum:x["h"],ReceiptStatusEnum:x["i"],SearchTypeEnum:Le,OilCardTypeEnum:x["c"],OilStatusEnum:x["d"],UseStatusEnum:x["j"],simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},watch:{$route:function(){this.init()}},methods:{init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getDataType:function(){return this.$route.path.split("/")[3]},getList:function(){var e=this,t=this.dataType,a=this.queryParam,r=this.page;return this.isLoading=!0,d["b"](Object(o["a"])(Object(o["a"])({dataType:t},a),{},{page:r})).then((function(t){e.orderList=t.data.list,e.total_money=t.data.total_money})).finally((function(){e.isLoading=!1}))},renderOrderStatusColor:function(e){var t,a=this.OrderStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.CANCELLED.value,"red"),Object(i["a"])(t,a.APPLY_CANCEL.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),t);return r[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getMerchantList(),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelete:function(e){var t=this,a=t.$confirm({title:"您确定要删除该订单记录吗?",content:"删除后不可恢复,请谨慎操作",onOk:function(){return f(e.order_id).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){a.destroy()}))}})},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)},handleCancelShare:function(e){this.$refs.CancelShareForm.show(e)},handleShare:function(e){this.$refs.ShareForm.show(e)},handlePay:function(e){this.$refs.PayForm.show(e)},formatTime:function(e){var t=new Date(e),a=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),n=String(t.getSeconds()).padStart(2,"0");return"".concat(a,"-").concat(r,"-").concat(s," ").concat(i,":").concat(o,":").concat(n)},getMerchantList:function(){var e=this;this.isLoading=!0,w["b"]().then((function(t){e.merchantListData=t.data.list})).finally((function(){e.isLoading=!1}))}}},Fe=xe,Oe=(a("02c6"),Object(j["a"])(Fe,r,s,!1,null,"57882a87",null));t["default"]=Oe.exports}}]); \ No newline at end of file diff --git a/server-tp6/public/store/js/order.bc3eac19.js.gz b/server-tp6/public/store/js/order.bc3eac19.js.gz deleted file mode 100644 index 6fdeeab..0000000 Binary files a/server-tp6/public/store/js/order.bc3eac19.js.gz and /dev/null differ diff --git a/server-tp6/public/store/js/setting.02914954.js b/server-tp6/public/store/js/setting.02914954.js deleted file mode 100644 index dde54ad..0000000 --- a/server-tp6/public/store/js/setting.02914954.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting"],{"0d50":function(e,a,t){"use strict";t("4180")},"14b5":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{attrs:{label:"一级分销比例",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["one_brokerage_ratio",{rules:[{required:!0,message:"不能为空"}]}],expression:"['one_brokerage_ratio', { rules: [{ required: true, message: '不能为空' }] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("%")])],1)]),a("a-form-item",{attrs:{label:"二级分销比例",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["two_brokerage_ratio",{rules:[{required:!0,message:"不能为空"}]}],expression:"['two_brokerage_ratio', { rules: [{ required: true, message: '不能为空' }] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("%")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("订单完成后,才能进行返佣")])])]),a("a-form-item",{attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("88bc"),t("f585")),o=t("ca00"),l={data:function(){return{key:"promotion",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),radioStyle:{display:"block",height:"30px",lineHeight:"30px"},record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,s["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(o["e"])(t.getFieldsValue())&&a((function(){t.setFieldsValue({one_brokerage_ratio:e.one_brokerage_ratio,two_brokerage_ratio:e.two_brokerage_ratio})}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,s["b"](this.key,{form:e}).then((function(e){return a.$message.success(e.message,1.5)})).finally((function(){return a.isLoading=!1}))}}},n=l,c=(t("f84d"),t("2877")),u=Object(c["a"])(n,r,i,!1,null,"01d8132a",null);a["default"]=u.exports},"222d":function(e,a,t){"use strict";t("c2a3")},"293e":function(e,a,t){"use strict";t("9b4c")},"2a68":function(e,a,t){"use strict";t("4567")},3267:function(e,a,t){"use strict";var r=t("5c06");a["a"]=new r["a"]([{key:"CAPTCHA",name:"短信验证码",value:"captcha"},{key:"ORDER_PAY",name:"新付款订单",value:"order_pay"}])},"414d":function(e,a,t){},4180:function(e,a,t){},4567:function(e,a,t){},"71b5":function(e,a,t){"use strict";var r=t("5c06");a["a"]=new r["a"]([{key:"LOCAL",name:"本地",value:"local"},{key:"QINIU",name:"七牛云",value:"qiniu"},{key:"ALIYUN",name:"阿里云",value:"aliyun"},{key:"QCLOUD",name:"腾讯云",value:"qcloud"}])},"763d":function(e,a,t){"use strict";t.d(a,"f",(function(){return s})),t.d(a,"g",(function(){return o})),t.d(a,"a",(function(){return l})),t.d(a,"e",(function(){return n})),t.d(a,"d",(function(){return c})),t.d(a,"h",(function(){return u})),t.d(a,"b",(function(){return d})),t.d(a,"i",(function(){return p})),t.d(a,"j",(function(){return m})),t.d(a,"c",(function(){return v}));var r=t("b775"),i={list:"/qyt.enterprise/list",options:"/qyt.enterprise/options",detail:"/qyt.enterprise/detail",add:"/qyt.enterprise/add",edit:"/qyt.enterprise/edit",delete:"/qyt.enterprise/delete",setDefault:"/qyt.enterprise/setDefault",apply:"/qyt.enterprise/apply",syncAccount:"/qyt.enterprise/syncAccount",syncList:"/qyt.enterprise/syncList",balance:"/qyt.enterprise/balance"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.options,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function n(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.setDefault,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.apply,method:"post",data:e})}function p(e){return Object(r["b"])({url:i.syncAccount,method:"post",data:e})}function m(e){return Object(r["b"])({url:i.syncList,method:"post",data:e})}function v(e){return Object(r["b"])({url:i.balance,method:"get",params:e})}},"88bc":function(e,a,t){(function(a){var t=1/0,r=9007199254740991,i="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]",l="[object Symbol]",n="object"==typeof a&&a&&a.Object===Object&&a,c="object"==typeof self&&self&&self.Object===Object&&self,u=n||c||Function("return this")();function d(e,a,t){switch(t.length){case 0:return e.call(a);case 1:return e.call(a,t[0]);case 2:return e.call(a,t[0],t[1]);case 3:return e.call(a,t[0],t[1],t[2])}return e.apply(a,t)}function p(e,a){var t=-1,r=e?e.length:0,i=Array(r);while(++t0&&t(l)?a>1?w(l,a-1,t,r,i):m(i,l):r||(i[i.length]=l)}return i}function y(e,a){return e=Object(e),x(e,a,(function(a,t){return t in e}))}function x(e,a,t){var r=-1,i=a.length,s={};while(++r-1&&e%1==0&&e<=r}function $(e){var a=typeof e;return!!e&&("object"==a||"function"==a)}function j(e){return!!e&&"object"==typeof e}function E(e){return"symbol"==typeof e||j(e)&&b.call(e)==l}var D=S((function(e,a){return null==e?{}:y(e,p(w(a,1),N))}));e.exports=D}).call(this,t("c8ba"))},"9b4c":function(e,a,t){},a3f9:function(e,a,t){"use strict";t("d4aa")},a6b6:function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{attrs:{label:"支付码有效期",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["expiration_time",{rules:[{required:!0,message:"不能为空"}]}],expression:"['expiration_time', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:10,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("秒")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间未支付,二维码自动失效")])])]),a("a-form-item",{attrs:{label:"油券省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["province_list",{rules:[{required:!0,message:"不能为空"}]}],expression:"['province_list', { rules: [{required: true, message: '不能为空'}] }]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v(" 注:如需填写多个省份,请用中文逗号 "),a("a-tag",[e._v(",")]),e._v("隔开 ")],1)])],1),a("a-form-item",{attrs:{label:"未支付订单",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order.closeHours",{rules:[{required:!0,message:"不能为空"}]}],expression:"['order.closeHours', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("小时后自动关闭")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间订单未付款,系统自动关闭,设置0小时不自动关闭")])])]),a("a-form-item",{attrs:{label:"客服电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{rules:[{required:!0,message:"不能为空"}]}],expression:"['phone', { rules: [{required: true, message: '不能为空'}] }]"}],staticStyle:{width:"200px"}})],1),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("88bc")),o=t.n(s),l=t("f585"),n=t("ca00"),c={data:function(){return{key:"trade",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),radioStyle:{display:"block",height:"30px",lineHeight:"30px"},record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,l["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(n["e"])(t.getFieldsValue())&&a((function(){t.setFieldsValue({expiration_time:e.expiration_time,province_list:e.province_list,phone:e.phone,order:o()(e.order,["closeHours"])})}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,l["b"](this.key,{form:e}).then((function(e){a.$message.success(e.message,1.5)})).finally((function(e){a.isLoading=!1}))}}},u=c,d=(t("293e"),t("2877")),p=Object(d["a"])(u,r,i,!1,null,"f551b524",null);a["default"]=p.exports},a85e:function(e,a,t){"use strict";t.r(a);t("b0c0");var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{staticClass:"mb-20",attrs:{label:"短信平台",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["default",{rules:[{required:!0}]}],expression:"['default', { rules: [{ required: true }] }]"}],on:{change:e.onChangeEngine}},e._l(e.record.engine,(function(t,r){return a("a-radio",{key:r,attrs:{value:r}},[a("span",[e._v(e._s(t.name))]),"aliyun"===r?a("a-tag",{staticClass:"ml-5",attrs:{color:"green"}},[e._v("推荐")]):e._e()],1)})),1),e.form.getFieldValue("default")?a("div",{staticClass:"form-item-help"},[a("small",[e._v("短信平台管理地址:")]),a("a",{attrs:{href:e.record.engine[e.form.getFieldValue("default")].website,target:"_blank"}},[e._v(e._s(e.record.engine[e.form.getFieldValue("default")].website))])]):e._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"aliyun"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'aliyun'"}]},[a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeyId"],expression:"[`engine.aliyun.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeySecret"],expression:"[`engine.aliyun.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.sign"],expression:"[`engine.aliyun.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qcloud"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qcloud'"}]},[a("a-form-item",{attrs:{label:"SdkAppID",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.SdkAppID"],expression:"[`engine.qcloud.SdkAppID`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeyId"],expression:"[`engine.qcloud.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeySecret"],expression:"[`engine.qcloud.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.sign"],expression:"[`engine.qcloud.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qiniu"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qiniu'"}]},[a("a-form-item",{attrs:{label:"AccessKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.AccessKey"],expression:"[`engine.qiniu.AccessKey`]"}]})],1),a("a-form-item",{attrs:{label:"SecretKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.SecretKey"],expression:"[`engine.qiniu.SecretKey`]"}]})],1)],1),e._l(e.record["scene"],(function(t,r){return a("div",{key:r},[a("a-divider",{attrs:{orientation:"left"}},[e._v(e._s(t.name))]),a("a-form-item",{attrs:{label:"是否开启",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".isEnable"),{rules:[{required:!0}]}],expression:"[`scene.${index}.isEnable`, { rules: [{ required: true }] }]"}]},[a("a-radio",{attrs:{value:!0}},[e._v("开启")]),a("a-radio",{attrs:{value:!1}},[e._v("关闭")])],1)],1),a("a-form-item",{attrs:{label:"模板内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("span",[e._v(e._s(e.record.scene[r].contentPractical))])]),a("a-form-item",{attrs:{label:"模板ID/Code",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".templateCode")],expression:"[`scene.${index}.templateCode`]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v("例如:SMS_139800030")])])],1),void 0!==e.record.scene[r].acceptPhone?a("a-form-item",{attrs:{label:"接收手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".acceptPhone")],expression:"[`scene.${index}.acceptPhone`]"}]})],1):e._e()],1)})),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],2)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("4d63"),t("ac1f"),t("25f0"),t("5319"),t("2ef0")),o=t("ca00"),l=t("f585"),n=t("3267"),c={data:function(){return{SettingSmsSceneEnum:n["a"],key:"sms",labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,l["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},onChangeEngine:function(e){var a=this,t=e.target.value;for(var r in a.record.scene){var i=a.record.scene[r];i.contentPractical=a.onVsprintf(i.content,i.variables[t])}},onVsprintf:function(e,a){for(var t=new RegExp("%s"),r=0;r0&&t(s)?a>1?w(s,a-1,t,r,i):m(i,s):r||(i[i.length]=s)}return i}function y(e,a){return e=Object(e),x(e,a,(function(a,t){return t in e}))}function x(e,a,t){var r=-1,i=a.length,l={};while(++r-1&&e%1==0&&e<=r}function $(e){var a=typeof e;return!!e&&("object"==a||"function"==a)}function j(e){return!!e&&"object"==typeof e}function E(e){return"symbol"==typeof e||j(e)&&b.call(e)==s}var D=S((function(e,a){return null==e?{}:y(e,p(w(a,1),N))}));e.exports=D}).call(this,t("c8ba"))},"931d":function(e,a,t){},"9b4c":function(e,a,t){},a6b6:function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{attrs:{label:"支付码有效期",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["expiration_time",{rules:[{required:!0,message:"不能为空"}]}],expression:"['expiration_time', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:10,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("秒")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间未支付,二维码自动失效")])])]),a("a-form-item",{attrs:{label:"油券省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["province_list",{rules:[{required:!0,message:"不能为空"}]}],expression:"['province_list', { rules: [{required: true, message: '不能为空'}] }]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v(" 注:如需填写多个省份,请用中文逗号 "),a("a-tag",[e._v(",")]),e._v("隔开 ")],1)])],1),a("a-form-item",{attrs:{label:"未支付订单",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order.closeHours",{rules:[{required:!0,message:"不能为空"}]}],expression:"['order.closeHours', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("小时后自动关闭")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间订单未付款,系统自动关闭,设置0小时不自动关闭")])])]),a("a-form-item",{attrs:{label:"客服电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{rules:[{required:!0,message:"不能为空"}]}],expression:"['phone', { rules: [{required: true, message: '不能为空'}] }]"}],staticStyle:{width:"200px"}})],1),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],l=(t("d3b7"),t("ddb0"),t("88bc")),o=t.n(l),s=t("f585"),n=t("ca00"),c={data:function(){return{key:"trade",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),radioStyle:{display:"block",height:"30px",lineHeight:"30px"},record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,s["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(n["e"])(t.getFieldsValue())&&a((function(){t.setFieldsValue({expiration_time:e.expiration_time,province_list:e.province_list,phone:e.phone,order:o()(e.order,["closeHours"])})}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,s["b"](this.key,{form:e}).then((function(e){a.$message.success(e.message,1.5)})).finally((function(e){a.isLoading=!1}))}}},u=c,d=(t("293e"),t("2877")),p=Object(d["a"])(u,r,i,!1,null,"f551b524",null);a["default"]=p.exports},a85e:function(e,a,t){"use strict";t.r(a);t("b0c0");var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{staticClass:"mb-20",attrs:{label:"短信平台",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["default",{rules:[{required:!0}]}],expression:"['default', { rules: [{ required: true }] }]"}],on:{change:e.onChangeEngine}},e._l(e.record.engine,(function(t,r){return a("a-radio",{key:r,attrs:{value:r}},[a("span",[e._v(e._s(t.name))]),"aliyun"===r?a("a-tag",{staticClass:"ml-5",attrs:{color:"green"}},[e._v("推荐")]):e._e()],1)})),1),e.form.getFieldValue("default")?a("div",{staticClass:"form-item-help"},[a("small",[e._v("短信平台管理地址:")]),a("a",{attrs:{href:e.record.engine[e.form.getFieldValue("default")].website,target:"_blank"}},[e._v(e._s(e.record.engine[e.form.getFieldValue("default")].website))])]):e._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"aliyun"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'aliyun'"}]},[a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeyId"],expression:"[`engine.aliyun.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeySecret"],expression:"[`engine.aliyun.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.sign"],expression:"[`engine.aliyun.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qcloud"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qcloud'"}]},[a("a-form-item",{attrs:{label:"SdkAppID",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.SdkAppID"],expression:"[`engine.qcloud.SdkAppID`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeyId"],expression:"[`engine.qcloud.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeySecret"],expression:"[`engine.qcloud.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.sign"],expression:"[`engine.qcloud.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qiniu"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qiniu'"}]},[a("a-form-item",{attrs:{label:"AccessKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.AccessKey"],expression:"[`engine.qiniu.AccessKey`]"}]})],1),a("a-form-item",{attrs:{label:"SecretKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.SecretKey"],expression:"[`engine.qiniu.SecretKey`]"}]})],1)],1),e._l(e.record["scene"],(function(t,r){return a("div",{key:r},[a("a-divider",{attrs:{orientation:"left"}},[e._v(e._s(t.name))]),a("a-form-item",{attrs:{label:"是否开启",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".isEnable"),{rules:[{required:!0}]}],expression:"[`scene.${index}.isEnable`, { rules: [{ required: true }] }]"}]},[a("a-radio",{attrs:{value:!0}},[e._v("开启")]),a("a-radio",{attrs:{value:!1}},[e._v("关闭")])],1)],1),a("a-form-item",{attrs:{label:"模板内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("span",[e._v(e._s(e.record.scene[r].contentPractical))])]),a("a-form-item",{attrs:{label:"模板ID/Code",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".templateCode")],expression:"[`scene.${index}.templateCode`]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v("例如:SMS_139800030")])])],1),void 0!==e.record.scene[r].acceptPhone?a("a-form-item",{attrs:{label:"接收手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".acceptPhone")],expression:"[`scene.${index}.acceptPhone`]"}]})],1):e._e()],1)})),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],2)],1)],1)},i=[],l=(t("d3b7"),t("ddb0"),t("4d63"),t("ac1f"),t("25f0"),t("5319"),t("2ef0")),o=t("ca00"),s=t("f585"),n=t("3267"),c={data:function(){return{SettingSmsSceneEnum:n["a"],key:"sms",labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,s["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},onChangeEngine:function(e){var a=this,t=e.target.value;for(var r in a.record.scene){var i=a.record.scene[r];i.contentPractical=a.onVsprintf(i.content,i.variables[t])}},onVsprintf:function(e,a){for(var t=new RegExp("%s"),r=0;r