From d1a15a4c4296d7e6a1515d6369c78abd3cc33cc6 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Mon, 13 Jul 2026 16:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/user/User.php | 5 +- app/admin/logic/user/UserLogic.php | 3 +- app/admin/view/user/user/edit.html | 12 ++ app/api/controller/Index.php | 17 +- app/api/controller/Shop.php | 3 +- app/api/controller/ShopGoodsCategory.php | 3 +- app/api/logic/DistributionLogic.php | 22 ++- app/api/logic/ShopGoodsCategoryLogic.php | 26 +-- app/api/logic/ShopLogic.php | 36 ++-- app/common/logic/CityLogic.php | 178 ++++++++++++++++++ public/mp-weixin/common/main.js | 2 +- public/mp-weixin/common/vendor.js | 4 +- .../components/privacy-popup/privacy-popup.js | 2 +- public/mp-weixin/pages/index/index.js | 2 +- scripts/patch-mp-entry-city.js | 71 +++++++ 15 files changed, 348 insertions(+), 38 deletions(-) create mode 100644 app/common/logic/CityLogic.php create mode 100644 scripts/patch-mp-entry-city.js diff --git a/app/admin/controller/user/User.php b/app/admin/controller/user/User.php index 7bce7440..146f87a9 100644 --- a/app/admin/controller/user/User.php +++ b/app/admin/controller/user/User.php @@ -7,7 +7,7 @@ use app\admin\logic\user\LevelLogic; use app\admin\logic\user\UserLogic; use app\common\model\user\UserLevel; use app\common\server\JsonServer; -use app\common\enum\ClientEnum; +use app\common\logic\RegionLogic; use app\admin\validate\user\UserValidate; use think\exception\ValidateException; @@ -65,7 +65,8 @@ class User extends AdminBase return view('', [ 'info' => $detail, - 'tag_list' => json_encode(TagLogic::getTagList()) + 'tag_list' => json_encode(TagLogic::getTagList()), + 'city_list' => RegionLogic::hotCity(), ]); } diff --git a/app/admin/logic/user/UserLogic.php b/app/admin/logic/user/UserLogic.php index 8bf93e5d..77190ee2 100644 --- a/app/admin/logic/user/UserLogic.php +++ b/app/admin/logic/user/UserLogic.php @@ -141,7 +141,7 @@ class UserLogic extends Logic { $field = [ 'id', 'sn','nickname','avatar','mobile','sex','birthday','tag_ids', - 'remark','user_money','user_growth','user_integral','earnings', 'disable' + 'remark','user_money','user_growth','user_integral','earnings', 'disable', 'city_id' ]; $user = User::field($field)->where(['del' => 0, 'id' => $id])->findOrEmpty(); @@ -170,6 +170,7 @@ class UserLogic extends Logic 'tag_ids' => $post['select'], 'remark' => $post['remark'], 'disable' => $post['disable'], + 'city_id' => (int)($post['city_id'] ?? 0), 'update_time' => time() ]; User::update($data); diff --git a/app/admin/view/user/user/edit.html b/app/admin/view/user/user/edit.html index 54c65f50..ee244acf 100644 --- a/app/admin/view/user/user/edit.html +++ b/app/admin/view/user/user/edit.html @@ -69,6 +69,18 @@ +
+ +
+ +
+
码主人所属地区,扫码进入时将展示对应城市商城
+
diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 19be0668..a80aee4f 100644 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -4,12 +4,13 @@ namespace app\api\controller; use app\common\basics\Api; use app\api\logic\IndexLogic; use app\common\logic\ChatLogic; +use app\common\logic\CityLogic; use app\common\logic\RegionLogic; use app\common\server\JsonServer; class Index extends Api { - public $like_not_need_login = ['index','hotCity', 'indexCategory', 'config','copyright','city','geocoder']; + public $like_not_need_login = ['index','hotCity', 'indexCategory', 'config','copyright','city','geocoder','getEntryCity']; // 首页 public function index() @@ -114,4 +115,18 @@ class Index extends Api } return JsonServer::success('',$result); } + + /** + * 小程序进入时获取应展示的城市商城 + * 未扫码:上海总部;扫码:码主人所属城市 + */ + public function getEntryCity() + { + $params = [ + 'invite_code' => $this->request->get('invite_code', ''), + 'user_id' => $this->request->get('user_id/d', 0), + ]; + $data = CityLogic::getEntryCity($params); + return JsonServer::success('获取成功', $data); + } } \ No newline at end of file diff --git a/app/api/controller/Shop.php b/app/api/controller/Shop.php index ba87932f..e1ea7894 100644 --- a/app/api/controller/Shop.php +++ b/app/api/controller/Shop.php @@ -51,8 +51,7 @@ class Shop extends Api public function getShopCityInfo() { if($this->request->isGet()) { - $city_id = $this->request->get('city_id', 0); - $data = ShopLogic::getShopCityInfo($city_id, $this->user_id, input()); + $data = ShopLogic::getShopCityInfo(0, $this->user_id, input()); return JsonServer::success('获取店铺信息成功', $data); }else{ return JsonServer::error('请求类型错误'); diff --git a/app/api/controller/ShopGoodsCategory.php b/app/api/controller/ShopGoodsCategory.php index 4df90ee2..9724a201 100644 --- a/app/api/controller/ShopGoodsCategory.php +++ b/app/api/controller/ShopGoodsCategory.php @@ -46,8 +46,7 @@ class ShopGoodsCategory extends Api public function getCityGoodsCategory() { if($this->request->isGet()) { - $city_id = $this->request->get('city_id', 0); - $data = ShopGoodsCategoryLogic::getCityGoodsCategory($city_id); + $data = ShopGoodsCategoryLogic::getCityGoodsCategory(0, input()); return JsonServer::success('获取店铺分类成功', $data); }else{ return JsonServer::error('请求类型错误'); diff --git a/app/api/logic/DistributionLogic.php b/app/api/logic/DistributionLogic.php index 77209a92..2b976e27 100644 --- a/app/api/logic/DistributionLogic.php +++ b/app/api/logic/DistributionLogic.php @@ -27,6 +27,7 @@ use app\common\model\distribution\Distribution; use app\common\model\distribution\DistributionLevel; use app\common\server\ConfigServer; use app\common\model\user\UserDistribution; +use app\common\logic\CityLogic; use app\common\model\user\User; use app\common\model\distribution\DistributionMemberApply; use app\common\model\distribution\DistributionOrderGoods; @@ -133,7 +134,11 @@ class DistributionLogic extends Logic 'update_time' => $time, ]; DistributionMemberApply::create($data); - User::where("id",$user_id)->update(['url'=>$url['data']['qr_code']]); + $userUpdate = ['url' => $url['data']['qr_code']]; + if (!empty($post['city'])) { + $userUpdate['city_id'] = (int)$post['city']; + } + User::where("id", $user_id)->update($userUpdate); $distribution = Distribution::where("user_id",$user_id)->find(); $defaultLevelId = DistributionLevel::where('is_default', 1)->value('id'); $data = [ @@ -263,7 +268,7 @@ class DistributionLogic extends Logic try { Db::startTrans(); - $firstLeader = User::field(['id', 'first_leader', 'second_leader', 'third_leader', 'ancestor_relation','user_integral']) + $firstLeader = User::field(['id', 'first_leader', 'second_leader', 'third_leader', 'ancestor_relation','user_integral', 'city_id']) ->where(['distribution_code' => $post['code']]) ->findOrEmpty(); if($firstLeader->isEmpty()) { @@ -298,6 +303,12 @@ class DistributionLogic extends Logic 'update_time' => time() ]; + // 扫码进入时继承码主人的所属城市 + $ownerCityId = CityLogic::getUserCityId((int)$firstLeader['id']); + if ($ownerCityId > 0) { + $data['city_id'] = $ownerCityId; + } + // 更新当前用户的分销关系 User::where(['id' => $post['user_id']])->update($data); @@ -368,7 +379,7 @@ class DistributionLogic extends Logic try { Db::startTrans(); - $firstLeader = User::field(['id', 'first_leader', 'second_leader', 'third_leader', 'ancestor_relation','user_integral']) + $firstLeader = User::field(['id', 'first_leader', 'second_leader', 'third_leader', 'ancestor_relation','user_integral', 'city_id']) ->where(['id' => $post['user_id']]) ->findOrEmpty(); if($firstLeader->isEmpty()) { @@ -389,6 +400,11 @@ class DistributionLogic extends Logic 'update_time' => time() ]; + $ownerCityId = CityLogic::getUserCityId((int)$firstLeader['id']); + if ($ownerCityId > 0) { + $data['city_id'] = $ownerCityId; + } + // 更新当前用户的分销关系 User::where(['id' => $user_id])->update($data); //通知用户 diff --git a/app/api/logic/ShopGoodsCategoryLogic.php b/app/api/logic/ShopGoodsCategoryLogic.php index 0e24031e..3e7f12c4 100644 --- a/app/api/logic/ShopGoodsCategoryLogic.php +++ b/app/api/logic/ShopGoodsCategoryLogic.php @@ -2,6 +2,7 @@ namespace app\api\logic; use app\common\basics\Logic; +use app\common\logic\CityLogic; use app\common\model\shop\Shop; use app\common\model\shop\ShopGoodsCategory; @@ -27,18 +28,21 @@ class ShopGoodsCategoryLogic extends Logic return $data; } - public static function getCityGoodsCategory($city_id) + public static function getCityGoodsCategory($city_id, $params = []) { - $shop_msg = Shop::where("city_id",$city_id) - ->where("is_run",1) - ->where("is_freeze",0) - ->where("del",0) - ->find(); - $c = ""; - if($shop_msg == null){ - $shopId = 1; - }else{ - $shopId = $shop_msg['id']; + $entryCity = CityLogic::getEntryCity([ + 'invite_code' => $params['invite_code'] ?? '', + 'user_id' => (int)($params['user_id'] ?? 0), + ]); + $shopId = (int)($entryCity['shop_id'] ?? 0); + if ($shopId <= 0) { + $city_id = (int)($entryCity['id'] ?? 0); + $shop_msg = Shop::where("city_id", $city_id) + ->where("is_run", 1) + ->where("is_freeze", 0) + ->where("del", 0) + ->find(); + $shopId = $shop_msg == null ? 1 : (int)$shop_msg['id']; } $where = [ 'del' => 0, diff --git a/app/api/logic/ShopLogic.php b/app/api/logic/ShopLogic.php index a48e2c7c..1471a53f 100644 --- a/app/api/logic/ShopLogic.php +++ b/app/api/logic/ShopLogic.php @@ -5,6 +5,7 @@ use app\common\basics\Logic; use app\common\enum\GoodsEnum; use app\common\enum\ShopAdEnum; use app\common\enum\ShopEnum; +use app\common\logic\CityLogic; use app\common\logic\QrCodeLogic; use app\common\model\dev\DevRegion; use app\common\model\shop\ShopAd; @@ -108,21 +109,32 @@ class ShopLogic extends Logic return $shop; } - public static function getShopCityInfo($city_id,$userId, $params = []) + public static function getShopCityInfo($city_id, $userId, $params = []) { + // 未扫码进入:上海总部;扫码进入:码主人所属城市(忽略定位 city_id) + $entryCity = CityLogic::getEntryCity([ + 'invite_code' => $params['invite_code'] ?? '', + 'user_id' => (int)($params['user_id'] ?? 0), + ]); + $city_id = (int)($entryCity['id'] ?? 0); + $entryShopId = (int)($entryCity['shop_id'] ?? 0); + // 记录统计信息(访问商铺用户量) Event::listen('ShopStat', 'app\common\listener\ShopStat'); - $shop_msg = Shop::where("city_id",$city_id) - ->where("is_run",1) - ->where("is_freeze",0) - ->where("del",0) - ->find(); - $c = ""; - if($shop_msg == null){ - $c = "id = 1"; - }else{ - $c = "city_id = ".$city_id.""; + if ($entryShopId > 0) { + $c = 'id = ' . $entryShopId; + } else { + $shop_msg = Shop::where("city_id", $city_id) + ->where("is_run", 1) + ->where("is_freeze", 0) + ->where("del", 0) + ->find(); + if ($shop_msg == null) { + $c = "id = 1"; + } else { + $c = "city_id = " . $city_id . ""; + } } $field = [ @@ -199,6 +211,8 @@ class ShopLogic extends Logic 'mobile' => ShopAd::where($adWhere)->where('terminal', ShopAdEnum::TERMINAL_MOBILE)->append([ 'link_path', 'link_query' ])->order('sort desc,id desc')->select()->toArray(), ]; + $shop['entry_city'] = $entryCity; + return $shop; } diff --git a/app/common/logic/CityLogic.php b/app/common/logic/CityLogic.php new file mode 100644 index 00000000..e7645af2 --- /dev/null +++ b/app/common/logic/CityLogic.php @@ -0,0 +1,178 @@ + $code, 'del' => 0]) + ->field('id,city_id') + ->findOrEmpty(); + + if ($user->isEmpty()) { + return self::getHeadquartersCity(); + } + + $cityId = self::resolveUserCityId((int)$user['id'], (int)$user['city_id']); + if ($cityId <= 0) { + return self::getHeadquartersCity(); + } + + return self::formatCityInfo($cityId); + } + + /** + * 根据用户ID获取所属城市(分销扫码等场景) + */ + public static function getCityByUserId(int $userId): array + { + $user = User::where(['id' => $userId, 'del' => 0]) + ->field('id,city_id') + ->findOrEmpty(); + + if ($user->isEmpty()) { + return self::getHeadquartersCity(); + } + + $cityId = self::resolveUserCityId((int)$user['id'], (int)$user['city_id']); + if ($cityId <= 0) { + return self::getHeadquartersCity(); + } + + return self::formatCityInfo($cityId); + } + + /** + * 解析用户所属城市:优先用户表,其次分销申请地区 + */ + protected static function resolveUserCityId(int $userId, int $cityId = 0): int + { + if ($cityId > 0) { + return $cityId; + } + + if ($userId <= 0) { + return 0; + } + + return (int)DistributionMemberApply::where([ + ['user_id', '=', $userId], + ['status', '=', 1], + ])->order('id desc')->value('city'); + } + + /** + * 获取用户所属城市ID,扫码绑定时继承上级地区 + */ + public static function getUserCityId(int $userId): int + { + if ($userId <= 0) { + return 0; + } + + $cityId = (int)User::where(['id' => $userId, 'del' => 0])->value('city_id'); + + return self::resolveUserCityId($userId, $cityId); + } + + protected static function formatCityInfo(int $cityId, bool $isHeadquarters = false): array + { + if ($cityId <= 0) { + return [ + 'id' => 0, + 'name' => '上海总部', + 'gcj02_lat' => 0, + 'gcj02_lng' => 0, + 'shop_id' => 1, + 'is_headquarters' => 1, + ]; + } + + $city = DevRegion::where('id', $cityId) + ->field('id,name,gcj02_lat,gcj02_lng,db09_lat,db09_lng') + ->findOrEmpty(); + + if ($city->isEmpty()) { + return [ + 'id' => 0, + 'name' => '上海总部', + 'gcj02_lat' => 0, + 'gcj02_lng' => 0, + 'shop_id' => 1, + 'is_headquarters' => 1, + ]; + } + + $shop = Shop::where([ + ['city_id', '=', $cityId], + ['is_run', '=', 1], + ['is_freeze', '=', 0], + ['del', '=', 0], + ])->field('id')->findOrEmpty(); + + return [ + 'id' => (int)$city['id'], + 'name' => $city['name'], + 'gcj02_lat' => (float)($city['gcj02_lat'] ?: 0), + 'gcj02_lng' => (float)($city['gcj02_lng'] ?: 0), + 'shop_id' => $shop->isEmpty() ? 1 : (int)$shop['id'], + 'is_headquarters' => $isHeadquarters ? 1 : 0, + ]; + } + + protected static function resolveHeadquartersCityId(): int + { + $cityId = (int)ConfigServer::get('shop', 'headquarters_city_id', 0); + if ($cityId <= 0) { + $cityId = (int)Shop::where(['id' => 1, 'del' => 0])->value('city_id'); + } + if ($cityId <= 0) { + $cityId = (int)DevRegion::where(['level' => 2]) + ->whereLike('name', '上海%') + ->value('id'); + } + + return $cityId; + } +} diff --git a/public/mp-weixin/common/main.js b/public/mp-weixin/common/main.js index 6f4ffdb0..7d1f0331 100644 --- a/public/mp-weixin/common/main.js +++ b/public/mp-weixin/common/main.js @@ -1 +1 @@ -(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"0acf":function(e,t,n){"use strict";(function(e,t){var r=n("47a9"),o=r(n("7ca3"));n("3712");var c=r(n("3240")),a=r(n("568c")),u=r(n("31f5")),i=n("0aec"),f=r(n("3f13")),s=r(n("2a4c")),d=r(n("995a")),l=n("6495");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0&&t>0&&t>=e){var a=t-e+1;return Math.floor(Math.random()*a+e)}return 0};t.default=l},"03a1":function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.apiInvoiceAdd=function(e){return n.default.post("order_invoice/add",e)},t.apiInvoiceDetail=function(e){return n.default.get("order_invoice/detail",{params:e})},t.apiInvoiceEdit=function(e){return n.default.post("order_invoice/edit",e)},t.apiOrderInvoiceDetail=function(e){return n.default.get("order/invoice",{params:e})},t.changeShopFollow=function(e){return n.default.post("shop_follow/changeStatus",e)},t.getInvoiceSetting=function(e){return n.default.get("order_invoice/setting",{params:e})},t.getNearbyShops=function(e){return n.default.get("shop/getNearbyShops",{params:e})},t.getShopCategory=function(){return n.default.get("shop_category/getList")},t.getShopGoodsCategory=function(e){return n.default.get("shop_goods_category/getShopGoodsCategory",{params:e})},t.getShopInfo=function(e){return n.default.get("shop/getShopInfo",{params:e})},t.getShopList=function(e){return n.default.get("shop/getShopList",{params:e})},t.getShopService=function(e){return n.default.get("setting/getShopCustomerService",{params:{shop_id:e}})},t.getTreaty=function(){return n.default.get("ShopApply/getTreaty")},t.shopApply=function(e){return n.default.post("ShopApply/apply",e)},t.shopApplyDetail=function(e){return n.default.get("ShopApply/detail",{params:{id:e}})},t.shopApplyRecord=function(e){return n.default.get("ShopApply/record",{params:e})};var n=l(a("21ce"));a("0aec")},"05da":function(e,t,a){var l=a("bdd7"),n=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"};function r(e){var t=Object.assign(Object.create(null),l.userAgentStyles);for(var a in e)t[a]=(t[a]?t[a]+";":"")+e[a];this.styles=t}function o(e,t){this.data=e,this.floor=0,this.i=0,this.list=[],this.res=t,this.state=this.Space}r.prototype.getStyle=function(e){this.styles=new o(e,this.styles).parse()},r.prototype.match=function(e,t){var a,l=(a=this.styles[e])?a+";":"";if(t.class)for(var n,r=t.class.split(" "),o=0;n=r[o];o++)(a=this.styles["."+n])&&(l+=a+";");return(a=this.styles["#"+t.id])&&(l+=a+";"),l},e.exports=r,o.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);return this.res},o.prototype.section=function(){return this.data.substring(this.start,this.i)},o.prototype.Space=function(e){"."==e||"#"==e||n(e)?(this.start=this.i,this.state=this.Name):"/"==e&&"*"==this.data[this.i+1]?this.Comment():l.blankChar[e]||";"==e||(this.state=this.Ignore)},o.prototype.Comment=function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space},o.prototype.Ignore=function(e){"{"==e?this.floor++:"}"!=e||--this.floor||(this.list=[],this.state=this.Space)},o.prototype.Name=function(e){l.blankChar[e]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==e?(this.list.push(this.section()),this.Content()):","==e?(this.list.push(this.section()),this.Comma()):!n(e)&&(e<"0"||e>"9")&&"-"!=e&&"_"!=e&&(this.state=this.Ignore)},o.prototype.NameSpace=function(e){"{"==e?this.Content():","==e?this.Comma():l.blankChar[e]||(this.state=this.Ignore)},o.prototype.Comma=function(){while(l.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)},o.prototype.Content=function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var e,t=this.section(),a=0;e=this.list[a++];)this.res[e]?this.res[e]+=";"+t:this.res[e]=t;this.list=[],this.state=this.Space}},"0956":function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIntegralOrder=function(e){return n.default.post("integral_order/cancel",{id:e})},t.closeBargainOrder=function(e){return n.default.get("bargain/closeBargain",{params:e})},t.confirmIntegralOrder=function(e){return n.default.post("integral_order/confirm",{id:e})},t.delIntegralOrder=function(e){return n.default.post("integral_order/del",{id:e})},t.getActivityGoodsLists=function(e){return n.default.get("activity_area/activityGoodsList",{params:e})},t.getBargainActivityDetail=function(e){return n.default.get("bargain/bargainDetail",{params:e})},t.getBargainActivityList=function(e){return n.default.get("bargain/orderList",{params:e})},t.getBargainDetail=function(e){return n.default.get("bargain/detail",{params:e})},t.getBargainList=function(e){return n.default.get("bargain/lists",{params:e})},t.getBargainNumber=function(){return n.default.get("bargain/barginNumber")},t.getBargainPost=function(e){return n.default.get("share/shareBargain",{params:e})},t.getCoupon=function(e){return n.default.post("coupon/getCoupon",{coupon_id:e})},t.getCouponList=function(e){return n.default.get("coupon/getCouponList",{params:e})},t.getGroupList=function(e){return n.default.get("team/activity",{params:e})},t.getIntegralGoods=function(e){return n.default.get("integral_goods/lists",{params:e})},t.getIntegralGoodsDetail=function(e){return n.default.get("integral_goods/detail",{params:e})},t.getIntegralOrder=function(e){return n.default.get("integral_order/lists",{params:e})},t.getIntegralOrderDetail=function(e){return n.default.get("integral_order/detail",{params:{id:e}})},t.getIntegralOrderTraces=function(e){return n.default.get("integral_order/orderTraces",{params:{id:e}})},t.getMyCoupon=function(e){return n.default.get("coupon/myCouponList",{params:e})},t.getOrderCoupon=function(e){return n.default.post("coupon/getBuyCouponList",e)},t.getSeckillGoods=function(e){return n.default.get("seckill_goods/getSeckillGoods",{params:e})},t.getSeckillTime=function(){return n.default.get("seckill_goods/getSeckillTime")},t.getSignLists=function(){return n.default.get("sign/lists")},t.getSignRule=function(){return n.default.get("sign/rule")},t.getTeamInfo=function(e){return n.default.get("team/teamInfo",{params:e})},t.getUserGroup=function(e){return n.default.get("team/record",{params:e})},t.helpBargain=function(e){return n.default.post("bargain/knife",e)},t.integralSettlement=function(e){return n.default.get("integral_order/settlement",{params:e})},t.integralSubmitOrder=function(e){return n.default.post("integral_order/submitOrder",e)},t.launchBargain=function(e){return n.default.post("bargain/sponsor",e)},t.teamBuy=function(e){return n.default.post("team/buy",e)},t.teamCheck=function(e){return n.default.post("team/check",e)},t.teamKaiTuan=function(e){return n.default.post("team/kaituan",e)},t.userSignIn=function(){return n.default.get("sign/sign")};var n=l(a("21ce"));a("0aec")},"0aec":function(e,t,a){"use strict";(function(e,l){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.arraySlice=function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;if(t=JSON.parse(JSON.stringify(t)),t.length<=l)return t.length>0&&a.push(t),a;return a.push(t.splice(0,l)),e(t,a,l)},t.client=void 0,t.compareWeChatVersion=function(e){var t=p();return t===e?0:t>e?1:-1},t.copy=function(t){e.setClipboardData({data:t.toString()})},t.currentPage=function(){var e=getCurrentPages(),t=e[e.length-1];return t||{}},t.debounce=void 0,t.getBaseLibraryVersion=p,t.getClient=function(){return new Promise((function(t,a){e.getSystemInfo({success:function(e){var a=e.platform;t(a)},fail:function(e){a(e),console.log(e)}})}))},t.getRect=function(t,a,l){return new Promise((function(n){var r=e.createSelectorQuery();l&&(r=e.createSelectorQuery().in(l)),r[a?"selectAll":"select"](t).boundingClientRect((function(e){a&&Array.isArray(e)&&e.length&&n(e),!a&&e&&n(e)})).exec()}))},t.isAndroid=function(){var e=navigator.userAgent;return e.indexOf("Android")>-1||e.indexOf("Adr")>-1},t.isWeixinClient=function(){return!1},t.menuJump=function(t){var a=t.is_tab,n=t.link,r=t.link_type,o=t.category_id,i=t.mnp_params;if(a)return 2==r&&e.setStorageSync("category_id",o),void e.switchTab({url:n});switch(r){case 0:e.navigateTo({url:n});break;case 1:e.navigateTo({url:n});break;case 2:e.navigateTo({url:n+"?category_id="+o});break;case 3:e.navigateTo({url:n+"?id="+o});break;case 4:e.navigateTo({url:n+"?category_id="+o});break;case 5:e.navigateTo({url:n});break;case 6:e.navigateTo({url:n});break;case 7:e.navigateTo({url:"/pages/webview/webview?url="+n});break;case 8:l.navigateToMiniProgram({appId:i.mnp_app_id,path:i.mnp_path});break}},t.paramsToStr=function(e){var t="";if("object"==(0,o.default)(e)){for(var a in t="?",e)t+="".concat(a,"=").concat(e[a],"&");t=t.slice(0,-1)}return t},t.strToParams=function(e){var t,a={},l=function(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"===typeof e)return v(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return v(e,t)}(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var l=0,n=function(){};return{s:n,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:n}}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 r,o=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(i)throw r}}}}(e.split("&"));try{for(l.s();!(t=l.n()).done;){var n=t.value;a[n.split("=")[0]]=n.split("=")[1]}}catch(r){l.e(r)}finally{l.f()}return a},t.toLivePlayer=function(e){l.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(e)})},t.toast=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,l=t.title||"",n=t.icon||"none",r=t.endtime||2e3;l&&e.showToast({title:l,icon:n,duration:r});if(void 0!=a)if("object"==(0,o.default)(a)){var i=a.tab||1,u=a.url||"";switch(i){case 1:setTimeout((function(){e.switchTab({url:u})}),r);break;case 2:setTimeout((function(){e.navigateTo({url:u})}),r);break;case 3:setTimeout((function(){e.navigateBack({delta:parseInt(u)})}),r);break;case 4:setTimeout((function(){e.reLaunch({url:u})}),r);break;case 5:setTimeout((function(){e.redirectTo({url:u})}),r);break}}else"function"==typeof a&&setTimeout((function(){a&&a()}),r)},t.trottle=void 0,t.uploadFile=function(t,a){var l=a||{},n=l.header,r=l.name;return new Promise((function(a,l){e.uploadFile({url:i.baseURL+"/api/file/formimage",filePath:t,name:r||"file",header:c({token:u.default.getters.token},n),fileType:"image",cloudPath:"",success:function(e){try{console.log(t),console.log("uploadFile res ==> ",e);var n=JSON.parse(e.data);1==n.code?a(n.data):l()}catch(r){console.log(r),l()}},fail:function(e){console.log(e),l()}})}))},t.urlencode=function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")};var r=n(a("7ca3")),o=n(a("3b2d")),i=(a("f4fb"),a("a381")),u=n(a("31f5"));function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1&&void 0!==arguments[1]?arguments[1]:1e3,a=arguments.length>2?arguments[2]:void 0,l=new Date(0).getTime();return function(){var n=(new Date).getTime();if(n-l>t){for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:1e3,a=arguments.length>2?arguments[2]:void 0,l=null;return function(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:t,header:l,data:a})},this.post=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"POST",header:l,data:a})},this.put=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"PUT",header:l,data:a})},this.delete=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"DELETE",header:l,data:a})}}return(0,r.default)(t,[{key:"setConfig",value:function(e){this.config=(0,o.default)(this.config,e)}},{key:"request",value:function(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var l=this.interceptor.request(a);if(!1===l)return new Promise((function(){}));this.options=l}return a.dataType=a.dataType||this.config.dataType,a.responseType=a.responseType||this.config.responseType,a.url=a.url||"",a.params=a.params||{},a.header=Object.assign({},this.config.header,a.header),a.method=a.method||this.config.method,new Promise((function(l,n){a.complete=function(a){if(e.hideLoading(),clearTimeout(t.config.timer),t.config.timer=null,t.config.originalData)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var r=t.interceptor.response(a);!1!==r?l(r):n(a)}else l(a);else if(200==a.statusCode)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var o=t.interceptor.response(a.data);!1!==o?l(o):n(a.data)}else l(a.data);else n(a)},a.url=i.default.url(a.url)?a.url:t.config.baseUrl+(0==a.url.indexOf("/")?a.url:"/"+a.url),t.config.showLoading&&!t.config.timer&&(t.config.timer=setTimeout((function(){e.showLoading({title:t.config.loadingText,mask:t.config.loadingMask}),t.config.timer=null}),t.config.loadingTime)),e.request(a)}))}}]),t}(),s=new u;t.default=s}).call(this,a("df3c")["default"])},"0ee4":function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(l){"object"===typeof window&&(a=window)}e.exports=a},1382:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;e.showToast({title:t,icon:"none",duration:a})};t.default=a}).call(this,a("df3c")["default"])},"177b":function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("7eb4")),r=l(a("7ca3")),o=l(a("34cf")),i=l(a("ee10")),u=(l(a("d3f1")),a("0aec")),s=(a("a381"),a("c2cb"));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}var v={setCityInfo:function(t,a){t.cityInfo=a,e.$emit("refreshhome")}},f={getAuthorize:function(t){return(0,i.default)(n.default.mark((function a(){var l,r,i,u,s,c,v;return n.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return l=t.dispatch,a.next=3,e.showModal({title:"您已拒绝地理位置权限",content:"是否进入权限管理,调整授权?"});case 3:if(r=a.sent,i=(0,o.default)(r,2),i[0],u=i[1],!u.confirm){a.next=15;break}return a.next=10,e.openSetting();case 10:s=a.sent,c=(0,o.default)(s,2),c[0],v=c[1],v.authSetting["scope.userLocation"]&&l("initLocationFunc");case 15:case"end":return a.stop()}}),a)})))()},initLocationFunc:function(t){return(0,i.default)(n.default.mark((function a(){var l,r,i,u,s,c;return n.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return l=t.dispatch,r=t.rootState,console.log("获取地址"),a.prev=2,a.next=5,e.getLocation({type:"gcj02"});case 5:if(i=a.sent,u=(0,o.default)(i,2),s=u[0],c=u[1],console.log(s,c,"----"),l("getSystemInfo"),r.app.sysInfo.locationEnabled){a.next=14;break}return e.showModal({title:"温馨提示",content:"您的手机定位还未开启"}),a.abrupt("return");case 14:if(c){a.next=16;break}return a.abrupt("return",l("getAuthorize"));case 16:if(!s){a.next=19;break}return e.showModal({title:"温馨提示",content:"获取位置失败,请检查是否开启定位!"}),a.abrupt("return");case 19:l("getGeocoderFunc",{location:"".concat(c.latitude,",").concat(c.longitude)}),a.next=25;break;case 22:a.prev=22,a.t0=a["catch"](2),console.log(a.t0);case 25:case"end":return a.stop()}}),a,null,[[2,22]])})))()},getGeocoderFunc:function(e,t){var a=e.commit;console.log(t),(0,s.getGeocoder)(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=(0,r.default)(t),"object"!==(0,n.default)(t)||"object"!==(0,n.default)(a))return!1;for(var l in a)a.hasOwnProperty(l)&&(l in t?"object"!==(0,n.default)(t[l])||"object"!==(0,n.default)(a[l])?t[l]=a[l]:t[l].concat&&a[l].concat?t[l]=t[l].concat(a[l]):t[l]=e(t[l],a[l]):t[l]=a[l]);return t};t.default=o},"24af":function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=l(a("3b2d"));function r(e,t){var a=this;a.version="1.3.3",a.options=e||{},a.isScrollBody=t||!1,a.isDownScrolling=!1,a.isUpScrolling=!1;var l=a.options.down&&a.options.down.callback;a.initDownScroll(),a.initUpScroll(),setTimeout((function(){(a.optDown.use||a.optDown.native)&&a.optDown.auto&&l&&(a.optDown.autoShowLoading?a.triggerDownScroll():a.optDown.callback&&a.optDown.callback(a)),a.isUpAutoLoad||setTimeout((function(){a.optUp.use&&a.optUp.auto&&!a.isUpAutoLoad&&a.triggerUpScroll()}),100)}),30)}r.prototype.extendDownScroll=function(e){r.extend(e,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:100,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(e){e.resetUpScroll()}})},r.prototype.extendUpScroll=function(e){r.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:4,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},r.extend=function(e,t){if(!e)return t;for(var a in t)if(null==e[a]){var l=t[a];null!=l&&"object"===(0,n.default)(l)?e[a]=r.extend({},l):e[a]=l}else"object"===(0,n.default)(e[a])&&r.extend(e[a],t[a]);return e},r.prototype.hasColor=function(e){if(!e)return!1;var t=e.toLowerCase();return"#fff"!=t&&"#ffffff"!=t&&"transparent"!=t&&"white"!=t},r.prototype.initDownScroll=function(){var e=this;e.optDown=e.options.down||{},!e.optDown.textColor&&e.hasColor(e.optDown.bgColor)&&(e.optDown.textColor="#fff"),e.extendDownScroll(e.optDown),e.isScrollBody&&e.optDown.native?e.optDown.use=!1:e.optDown.native=!1,e.downHight=0,e.optDown.use&&e.optDown.inited&&setTimeout((function(){e.optDown.inited(e)}),0)},r.prototype.touchstartEvent=function(e){this.optDown.use&&(this.startPoint=this.getPoint(e),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},r.prototype.touchmoveEvent=function(e){if(this.optDown.use){var t=this,a=t.getScrollTop(),l=t.getPoint(e),n=l.y-t.startPoint.y;if(n>0&&(t.isScrollBody&&a<=0||!t.isScrollBody&&(a<=0||a<=t.optDown.startTop&&a===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){if(t.startAngle||(t.startAngle=t.getAngle(t.lastPoint,l)),t.startAngle0&&l.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var r=l.y-t.lastPoint.y;t.downHight0?r*t.optDown.outOffsetRate:r),t.downHight=Math.round(t.downHight);var o=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,o,t.downHight)}t.lastPoint=l}},r.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var a=this.getAngle(this.getPoint(e),this.startPoint);a>80&&this.triggerUpScroll(!0)}}},r.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},r.prototype.getAngle=function(e,t){var a=Math.abs(e.x-t.x),l=Math.abs(e.y-t.y),n=Math.sqrt(a*a+l*l),r=0;return 0!==n&&(r=Math.asin(l/n)/Math.PI*180),r},r.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},r.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},r.prototype.showDownLoadingCall=function(e){this.optDown.showLoading&&this.optDown.showLoading(this,e),this.optDown.afterLoading&&this.optDown.afterLoading(this,e)},r.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},r.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void e.stopPullDownRefresh();var t=this,a=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},l=0;t.optDown.beforeEndDownScroll&&(l=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(l=0)),"number"===typeof l&&l>0?setTimeout(a,l):a()},r.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},r.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},r.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},r.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},!e.optUp.textColor&&e.hasColor(e.optUp.bgColor)&&(e.optUp.textColor="#fff"),e.extendUpScroll(e.optUp),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},r.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},r.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},r.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},r.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},r.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},r.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},r.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},r.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},r.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},r.prototype.setPageNum=function(e){this.optUp.page.num=e-1},r.prototype.setPageSize=function(e){this.optUp.page.size=e},r.prototype.endByPage=function(e,t,a){var l;this.optUp.use&&null!=t&&(l=this.optUp.page.num>6),a=128+(63&e),[t,a]):(t=224+(e>>12),a=128+(e>>6&63),l=128+(63&e),[t,a,l])}function a(e,a){this.typeNumber=-1,this.errorCorrectLevel=a,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=e,this.utf8bytes=function(e){for(var a=[],l=0;l=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(e,t){for(var a=-1;a<=7;a++)if(!(e+a<=-1||this.moduleCount<=e+a))for(var l=-1;l<=7;l++)t+l<=-1||this.moduleCount<=t+l||(this.modules[e+a][t+l]=0<=a&&a<=6&&(0==l||6==l)||0<=l&&l<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=l&&l<=4)},createQrcode:function(){for(var e=0,t=0,a=null,l=0;l<8;l++){this.makeImpl(l);var n=o.getLostPoint(this);(0==l||e>n)&&(e=n,t=l,a=this.modules)}this.modules=a,this.setupTypeInfo(!1,t),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var e=8;e>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=l,this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=l}},setupTypeInfo:function(e,t){for(var a=l[this.errorCorrectLevel]<<3|t,n=o.getBCHTypeInfo(a),r=0;r<15;r++){var i=!e&&1==(n>>r&1);r<6?this.modules[r][8]=i:r<8?this.modules[r+1][8]=i:this.modules[this.moduleCount-15+r][8]=i;i=!e&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=i:r<9?this.modules[8][15-r-1+1]=i:this.modules[8][15-r-1]=i}this.modules[this.moduleCount-8][8]=!e},createData:function(){var e=new v,t=this.typeNumber>9?16:8;e.put(4,4),e.put(this.utf8bytes.length,t);for(var l=0,n=this.utf8bytes.length;l=8*this.totalDataCount)break;if(e.put(a.PAD0,8),e.length>=8*this.totalDataCount)break;e.put(a.PAD1,8)}return this.createBytes(e)},createBytes:function(e){for(var t=0,a=0,l=0,n=this.rsBlock.length/3,r=new Array,i=0;i=0?w.get(_):0}}var x=new Array(this.totalDataCount),O=0;for(i=0;i0;i-=2){6==i&&i--;while(1){for(var u=0;u<2;u++)if(null==this.modules[l][i-u]){var s=!1;r>>n&1));var c=o.getMask(t,l,i-u);c&&(s=!s),this.modules[l][i-u]=s,n--,-1==n&&(r++,n=7)}if(l+=a,l<0||this.moduleCount<=l){l-=a,a=-a;break}}}}},a.PAD0=236,a.PAD1=17;for(var l=[1,0,3,2],r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0)t^=o.G15<=0)t^=o.G18<>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,a){switch(e){case r.PATTERN000:return(t+a)%2==0;case r.PATTERN001:return t%2==0;case r.PATTERN010:return a%3==0;case r.PATTERN011:return(t+a)%3==0;case r.PATTERN100:return(Math.floor(t/2)+Math.floor(a/3))%2==0;case r.PATTERN101:return t*a%2+t*a%3==0;case r.PATTERN110:return(t*a%2+t*a%3)%2==0;case r.PATTERN111:return(t*a%3+(t+a)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new s([1],0),a=0;a3&&e.modules[n][i-1]&&e.modules[n][i-2]&&e.modules[n][i-3]&&e.modules[n][i-4]&&(a+=40)),n=5&&(a+=3+r-5),r=1),u&&l++}for(i=0;i3&&e.modules[n-1][i]&&e.modules[n-2][i]&&e.modules[n-3][i]&&e.modules[n-4][i]&&(a+=40)),o^u?r++:(o=u,r>=5&&(a+=3+r-5),r=1)}var c=Math.abs(100*l/t/t-50)/5;return a+=10*c,a}},i={glog:function(e){if(e<1)throw new Error("glog("+e+")");return i.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return i.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},u=0;u<8;u++)i.EXP_TABLE[u]=1<=a){var r=i.glog(l[0])-i.glog(e.get(0));for(n=0;n9?2:1;if(this.utf8bytes.length+i>>7-e%8&1},put:function(e,t){for(var a=0;a>>t-a-1&1)},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var f=[];n=function(t){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:t.canvasId,context:t.context,usingComponents:t.usingComponents,showLoading:t.showLoading,loadingText:t.loadingText},"string"===typeof t&&(t={text:t}),t)for(var l in t)this.options[l]=t[l];for(var n=null,r=(l=0,f.length);l1&&e.row<5&&e.col>1&&e.col<5||e.row>e.count-6&&e.row1&&e.col<5||e.row>1&&e.row<5&&e.col>e.count-6&&e.col0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];if(a=a||l.length,e)for(var r=0;r-1||"function"===typeof i[e])}r[o]=function(){var e={};for(var t in i)s(t)&&(e[t]=i[t]);return e}(),r[o].canIUse("getAppBaseInfo")||(r[o].getAppBaseInfo=r[o].getSystemInfoSync),r[o].canIUse("getWindowInfo")||(r[o].getWindowInfo=r[o].getSystemInfoSync),r[o].canIUse("getDeviceInfo")||(r[o].getDeviceInfo=r[o].getSystemInfoSync);var c=r[o];t.default=c},3240:function(e,t,a){"use strict";a.r(t),function(e){ +(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(e,t){function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=a=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"01fa":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(e,t){if(e>=0&&t>0&&t>=e){var a=t-e+1;return Math.floor(Math.random()*a+e)}return 0};t.default=l},"03a1":function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.apiInvoiceAdd=function(e){return n.default.post("order_invoice/add",e)},t.apiInvoiceDetail=function(e){return n.default.get("order_invoice/detail",{params:e})},t.apiInvoiceEdit=function(e){return n.default.post("order_invoice/edit",e)},t.apiOrderInvoiceDetail=function(e){return n.default.get("order/invoice",{params:e})},t.changeShopFollow=function(e){return n.default.post("shop_follow/changeStatus",e)},t.getInvoiceSetting=function(e){return n.default.get("order_invoice/setting",{params:e})},t.getNearbyShops=function(e){return n.default.get("shop/getNearbyShops",{params:e})},t.getShopCategory=function(){return n.default.get("shop_category/getList")},t.getShopGoodsCategory=function(e){return n.default.get("shop_goods_category/getShopGoodsCategory",{params:e})},t.getShopInfo=function(e){return n.default.get("shop/getShopInfo",{params:e})},t.getShopList=function(e){return n.default.get("shop/getShopList",{params:e})},t.getShopService=function(e){return n.default.get("setting/getShopCustomerService",{params:{shop_id:e}})},t.getTreaty=function(){return n.default.get("ShopApply/getTreaty")},t.shopApply=function(e){return n.default.post("ShopApply/apply",e)},t.shopApplyDetail=function(e){return n.default.get("ShopApply/detail",{params:{id:e}})},t.shopApplyRecord=function(e){return n.default.get("ShopApply/record",{params:e})};var n=l(a("21ce"));a("0aec")},"05da":function(e,t,a){var l=a("bdd7"),n=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"};function r(e){var t=Object.assign(Object.create(null),l.userAgentStyles);for(var a in e)t[a]=(t[a]?t[a]+";":"")+e[a];this.styles=t}function o(e,t){this.data=e,this.floor=0,this.i=0,this.list=[],this.res=t,this.state=this.Space}r.prototype.getStyle=function(e){this.styles=new o(e,this.styles).parse()},r.prototype.match=function(e,t){var a,l=(a=this.styles[e])?a+";":"";if(t.class)for(var n,r=t.class.split(" "),o=0;n=r[o];o++)(a=this.styles["."+n])&&(l+=a+";");return(a=this.styles["#"+t.id])&&(l+=a+";"),l},e.exports=r,o.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);return this.res},o.prototype.section=function(){return this.data.substring(this.start,this.i)},o.prototype.Space=function(e){"."==e||"#"==e||n(e)?(this.start=this.i,this.state=this.Name):"/"==e&&"*"==this.data[this.i+1]?this.Comment():l.blankChar[e]||";"==e||(this.state=this.Ignore)},o.prototype.Comment=function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space},o.prototype.Ignore=function(e){"{"==e?this.floor++:"}"!=e||--this.floor||(this.list=[],this.state=this.Space)},o.prototype.Name=function(e){l.blankChar[e]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==e?(this.list.push(this.section()),this.Content()):","==e?(this.list.push(this.section()),this.Comma()):!n(e)&&(e<"0"||e>"9")&&"-"!=e&&"_"!=e&&(this.state=this.Ignore)},o.prototype.NameSpace=function(e){"{"==e?this.Content():","==e?this.Comma():l.blankChar[e]||(this.state=this.Ignore)},o.prototype.Comma=function(){while(l.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)},o.prototype.Content=function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var e,t=this.section(),a=0;e=this.list[a++];)this.res[e]?this.res[e]+=";"+t:this.res[e]=t;this.list=[],this.state=this.Space}},"0956":function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIntegralOrder=function(e){return n.default.post("integral_order/cancel",{id:e})},t.closeBargainOrder=function(e){return n.default.get("bargain/closeBargain",{params:e})},t.confirmIntegralOrder=function(e){return n.default.post("integral_order/confirm",{id:e})},t.delIntegralOrder=function(e){return n.default.post("integral_order/del",{id:e})},t.getActivityGoodsLists=function(e){return n.default.get("activity_area/activityGoodsList",{params:e})},t.getBargainActivityDetail=function(e){return n.default.get("bargain/bargainDetail",{params:e})},t.getBargainActivityList=function(e){return n.default.get("bargain/orderList",{params:e})},t.getBargainDetail=function(e){return n.default.get("bargain/detail",{params:e})},t.getBargainList=function(e){return n.default.get("bargain/lists",{params:e})},t.getBargainNumber=function(){return n.default.get("bargain/barginNumber")},t.getBargainPost=function(e){return n.default.get("share/shareBargain",{params:e})},t.getCoupon=function(e){return n.default.post("coupon/getCoupon",{coupon_id:e})},t.getCouponList=function(e){return n.default.get("coupon/getCouponList",{params:e})},t.getGroupList=function(e){return n.default.get("team/activity",{params:e})},t.getIntegralGoods=function(e){return n.default.get("integral_goods/lists",{params:e})},t.getIntegralGoodsDetail=function(e){return n.default.get("integral_goods/detail",{params:e})},t.getIntegralOrder=function(e){return n.default.get("integral_order/lists",{params:e})},t.getIntegralOrderDetail=function(e){return n.default.get("integral_order/detail",{params:{id:e}})},t.getIntegralOrderTraces=function(e){return n.default.get("integral_order/orderTraces",{params:{id:e}})},t.getMyCoupon=function(e){return n.default.get("coupon/myCouponList",{params:e})},t.getOrderCoupon=function(e){return n.default.post("coupon/getBuyCouponList",e)},t.getSeckillGoods=function(e){return n.default.get("seckill_goods/getSeckillGoods",{params:e})},t.getSeckillTime=function(){return n.default.get("seckill_goods/getSeckillTime")},t.getSignLists=function(){return n.default.get("sign/lists")},t.getSignRule=function(){return n.default.get("sign/rule")},t.getTeamInfo=function(e){return n.default.get("team/teamInfo",{params:e})},t.getUserGroup=function(e){return n.default.get("team/record",{params:e})},t.helpBargain=function(e){return n.default.post("bargain/knife",e)},t.integralSettlement=function(e){return n.default.get("integral_order/settlement",{params:e})},t.integralSubmitOrder=function(e){return n.default.post("integral_order/submitOrder",e)},t.launchBargain=function(e){return n.default.post("bargain/sponsor",e)},t.teamBuy=function(e){return n.default.post("team/buy",e)},t.teamCheck=function(e){return n.default.post("team/check",e)},t.teamKaiTuan=function(e){return n.default.post("team/kaituan",e)},t.userSignIn=function(){return n.default.get("sign/sign")};var n=l(a("21ce"));a("0aec")},"0aec":function(e,t,a){"use strict";(function(e,l){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.arraySlice=function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;if(t=JSON.parse(JSON.stringify(t)),t.length<=l)return t.length>0&&a.push(t),a;return a.push(t.splice(0,l)),e(t,a,l)},t.client=void 0,t.compareWeChatVersion=function(e){var t=p();return t===e?0:t>e?1:-1},t.copy=function(t){e.setClipboardData({data:t.toString()})},t.currentPage=function(){var e=getCurrentPages(),t=e[e.length-1];return t||{}},t.debounce=void 0,t.getBaseLibraryVersion=p,t.getClient=function(){return new Promise((function(t,a){e.getSystemInfo({success:function(e){var a=e.platform;t(a)},fail:function(e){a(e),console.log(e)}})}))},t.getRect=function(t,a,l){return new Promise((function(n){var r=e.createSelectorQuery();l&&(r=e.createSelectorQuery().in(l)),r[a?"selectAll":"select"](t).boundingClientRect((function(e){a&&Array.isArray(e)&&e.length&&n(e),!a&&e&&n(e)})).exec()}))},t.isAndroid=function(){var e=navigator.userAgent;return e.indexOf("Android")>-1||e.indexOf("Adr")>-1},t.isWeixinClient=function(){return!1},t.menuJump=function(t){var a=t.is_tab,n=t.link,r=t.link_type,o=t.category_id,i=t.mnp_params;if(a)return 2==r&&e.setStorageSync("category_id",o),void e.switchTab({url:n});switch(r){case 0:e.navigateTo({url:n});break;case 1:e.navigateTo({url:n});break;case 2:e.navigateTo({url:n+"?category_id="+o});break;case 3:e.navigateTo({url:n+"?id="+o});break;case 4:e.navigateTo({url:n+"?category_id="+o});break;case 5:e.navigateTo({url:n});break;case 6:e.navigateTo({url:n});break;case 7:e.navigateTo({url:"/pages/webview/webview?url="+n});break;case 8:l.navigateToMiniProgram({appId:i.mnp_app_id,path:i.mnp_path});break}},t.paramsToStr=function(e){var t="";if("object"==(0,o.default)(e)){for(var a in t="?",e)t+="".concat(a,"=").concat(e[a],"&");t=t.slice(0,-1)}return t},t.strToParams=function(e){var t,a={},l=function(e,t){var a="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"===typeof e)return v(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return v(e,t)}(e))||t&&e&&"number"===typeof e.length){a&&(e=a);var l=0,n=function(){};return{s:n,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:n}}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 r,o=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(i)throw r}}}}(e.split("&"));try{for(l.s();!(t=l.n()).done;){var n=t.value;a[n.split("=")[0]]=n.split("=")[1]}}catch(r){l.e(r)}finally{l.f()}return a},t.toLivePlayer=function(e){l.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(e)})},t.toast=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,l=t.title||"",n=t.icon||"none",r=t.endtime||2e3;l&&e.showToast({title:l,icon:n,duration:r});if(void 0!=a)if("object"==(0,o.default)(a)){var i=a.tab||1,u=a.url||"";switch(i){case 1:setTimeout((function(){e.switchTab({url:u})}),r);break;case 2:setTimeout((function(){e.navigateTo({url:u})}),r);break;case 3:setTimeout((function(){e.navigateBack({delta:parseInt(u)})}),r);break;case 4:setTimeout((function(){e.reLaunch({url:u})}),r);break;case 5:setTimeout((function(){e.redirectTo({url:u})}),r);break}}else"function"==typeof a&&setTimeout((function(){a&&a()}),r)},t.trottle=void 0,t.uploadFile=function(t,a){var l=a||{},n=l.header,r=l.name;return new Promise((function(a,l){e.uploadFile({url:i.baseURL+"/api/file/formimage",filePath:t,name:r||"file",header:c({token:u.default.getters.token},n),fileType:"image",cloudPath:"",success:function(e){try{console.log(t),console.log("uploadFile res ==> ",e);var n=JSON.parse(e.data);1==n.code?a(n.data):l()}catch(r){console.log(r),l()}},fail:function(e){console.log(e),l()}})}))},t.urlencode=function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")};var r=n(a("7ca3")),o=n(a("3b2d")),i=(a("f4fb"),a("a381")),u=n(a("31f5"));function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1&&void 0!==arguments[1]?arguments[1]:1e3,a=arguments.length>2?arguments[2]:void 0,l=new Date(0).getTime();return function(){var n=(new Date).getTime();if(n-l>t){for(var r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:1e3,a=arguments.length>2?arguments[2]:void 0,l=null;return function(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:t,header:l,data:a})},this.post=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"POST",header:l,data:a})},this.put=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"PUT",header:l,data:a})},this.delete=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"DELETE",header:l,data:a})}}return(0,r.default)(t,[{key:"setConfig",value:function(e){this.config=(0,o.default)(this.config,e)}},{key:"request",value:function(){var t=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var l=this.interceptor.request(a);if(!1===l)return new Promise((function(){}));this.options=l}return a.dataType=a.dataType||this.config.dataType,a.responseType=a.responseType||this.config.responseType,a.url=a.url||"",a.params=a.params||{},a.header=Object.assign({},this.config.header,a.header),a.method=a.method||this.config.method,new Promise((function(l,n){a.complete=function(a){if(e.hideLoading(),clearTimeout(t.config.timer),t.config.timer=null,t.config.originalData)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var r=t.interceptor.response(a);!1!==r?l(r):n(a)}else l(a);else if(200==a.statusCode)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var o=t.interceptor.response(a.data);!1!==o?l(o):n(a.data)}else l(a.data);else n(a)},a.url=i.default.url(a.url)?a.url:t.config.baseUrl+(0==a.url.indexOf("/")?a.url:"/"+a.url),t.config.showLoading&&!t.config.timer&&(t.config.timer=setTimeout((function(){e.showLoading({title:t.config.loadingText,mask:t.config.loadingMask}),t.config.timer=null}),t.config.loadingTime)),e.request(a)}))}}]),t}(),s=new u;t.default=s}).call(this,a("df3c")["default"])},"0ee4":function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(l){"object"===typeof window&&(a=window)}e.exports=a},1382:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;e.showToast({title:t,icon:"none",duration:a})};t.default=a}).call(this,a("df3c")["default"])},"177b":function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("7eb4")),r=l(a("7ca3")),o=l(a("34cf")),i=l(a("ee10")),u=(l(a("d3f1")),a("0aec")),s=(a("a381"),a("c2cb"));function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}var v={setCityInfo:function(t,a){t.cityInfo=a,e.$emit("refreshhome")}},f={getAuthorize:function(t){return(0,i.default)(n.default.mark((function a(){var l,r,i,u,s,c,v;return n.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return l=t.dispatch,a.next=3,e.showModal({title:"您已拒绝地理位置权限",content:"是否进入权限管理,调整授权?"});case 3:if(r=a.sent,i=(0,o.default)(r,2),i[0],u=i[1],!u.confirm){a.next=15;break}return a.next=10,e.openSetting();case 10:s=a.sent,c=(0,o.default)(s,2),c[0],v=c[1],v.authSetting["scope.userLocation"]&&l("initLocationFunc");case 15:case"end":return a.stop()}}),a)})))()},initLocationFunc:function(t){return(0,i.default)(n.default.mark((function a(){var l,r,u,c,v;return n.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return l=t.commit,a.prev=1,u={},a.prev=2,c=e.getStorageSync("ENTRY_CITY_PARAMS"),c&&(u=JSON.parse(c)),a.next=7,(0,s.getEntryCity)(u);case 7:if(v=a.sent,1!=v.code){a.next=11;break}r=v.data,l("setCityInfo",{id:r.id,name:r.name,gcj02_lat:r.gcj02_lat||0,gcj02_lng:r.gcj02_lng||0}),a.next=12;break;case 11:l("setCityInfo",{id:0,name:"上海总部",gcj02_lat:0,gcj02_lng:0});case 12:a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](2),console.log(a.t0),l("setCityInfo",{id:0,name:"上海总部",gcj02_lat:0,gcj02_lng:0});case 17:case"end":return a.stop()}}),a,null,[[2,14],[1,14]])})))()},getGeocoderFunc:function(e,t){var a=e.commit;console.log(t),(0,s.getGeocoder)(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=(0,r.default)(t),"object"!==(0,n.default)(t)||"object"!==(0,n.default)(a))return!1;for(var l in a)a.hasOwnProperty(l)&&(l in t?"object"!==(0,n.default)(t[l])||"object"!==(0,n.default)(a[l])?t[l]=a[l]:t[l].concat&&a[l].concat?t[l]=t[l].concat(a[l]):t[l]=e(t[l],a[l]):t[l]=a[l]);return t};t.default=o},"24af":function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=l(a("3b2d"));function r(e,t){var a=this;a.version="1.3.3",a.options=e||{},a.isScrollBody=t||!1,a.isDownScrolling=!1,a.isUpScrolling=!1;var l=a.options.down&&a.options.down.callback;a.initDownScroll(),a.initUpScroll(),setTimeout((function(){(a.optDown.use||a.optDown.native)&&a.optDown.auto&&l&&(a.optDown.autoShowLoading?a.triggerDownScroll():a.optDown.callback&&a.optDown.callback(a)),a.isUpAutoLoad||setTimeout((function(){a.optUp.use&&a.optUp.auto&&!a.isUpAutoLoad&&a.triggerUpScroll()}),100)}),30)}r.prototype.extendDownScroll=function(e){r.extend(e,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:100,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(e){e.resetUpScroll()}})},r.prototype.extendUpScroll=function(e){r.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:4,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},r.extend=function(e,t){if(!e)return t;for(var a in t)if(null==e[a]){var l=t[a];null!=l&&"object"===(0,n.default)(l)?e[a]=r.extend({},l):e[a]=l}else"object"===(0,n.default)(e[a])&&r.extend(e[a],t[a]);return e},r.prototype.hasColor=function(e){if(!e)return!1;var t=e.toLowerCase();return"#fff"!=t&&"#ffffff"!=t&&"transparent"!=t&&"white"!=t},r.prototype.initDownScroll=function(){var e=this;e.optDown=e.options.down||{},!e.optDown.textColor&&e.hasColor(e.optDown.bgColor)&&(e.optDown.textColor="#fff"),e.extendDownScroll(e.optDown),e.isScrollBody&&e.optDown.native?e.optDown.use=!1:e.optDown.native=!1,e.downHight=0,e.optDown.use&&e.optDown.inited&&setTimeout((function(){e.optDown.inited(e)}),0)},r.prototype.touchstartEvent=function(e){this.optDown.use&&(this.startPoint=this.getPoint(e),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},r.prototype.touchmoveEvent=function(e){if(this.optDown.use){var t=this,a=t.getScrollTop(),l=t.getPoint(e),n=l.y-t.startPoint.y;if(n>0&&(t.isScrollBody&&a<=0||!t.isScrollBody&&(a<=0||a<=t.optDown.startTop&&a===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){if(t.startAngle||(t.startAngle=t.getAngle(t.lastPoint,l)),t.startAngle0&&l.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var r=l.y-t.lastPoint.y;t.downHight0?r*t.optDown.outOffsetRate:r),t.downHight=Math.round(t.downHight);var o=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,o,t.downHight)}t.lastPoint=l}},r.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var a=this.getAngle(this.getPoint(e),this.startPoint);a>80&&this.triggerUpScroll(!0)}}},r.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},r.prototype.getAngle=function(e,t){var a=Math.abs(e.x-t.x),l=Math.abs(e.y-t.y),n=Math.sqrt(a*a+l*l),r=0;return 0!==n&&(r=Math.asin(l/n)/Math.PI*180),r},r.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},r.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},r.prototype.showDownLoadingCall=function(e){this.optDown.showLoading&&this.optDown.showLoading(this,e),this.optDown.afterLoading&&this.optDown.afterLoading(this,e)},r.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},r.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void e.stopPullDownRefresh();var t=this,a=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},l=0;t.optDown.beforeEndDownScroll&&(l=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(l=0)),"number"===typeof l&&l>0?setTimeout(a,l):a()},r.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},r.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},r.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},r.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},!e.optUp.textColor&&e.hasColor(e.optUp.bgColor)&&(e.optUp.textColor="#fff"),e.extendUpScroll(e.optUp),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},r.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},r.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},r.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},r.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},r.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},r.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},r.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},r.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},r.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},r.prototype.setPageNum=function(e){this.optUp.page.num=e-1},r.prototype.setPageSize=function(e){this.optUp.page.size=e},r.prototype.endByPage=function(e,t,a){var l;this.optUp.use&&null!=t&&(l=this.optUp.page.num>6),a=128+(63&e),[t,a]):(t=224+(e>>12),a=128+(e>>6&63),l=128+(63&e),[t,a,l])}function a(e,a){this.typeNumber=-1,this.errorCorrectLevel=a,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=e,this.utf8bytes=function(e){for(var a=[],l=0;l=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(e,t){for(var a=-1;a<=7;a++)if(!(e+a<=-1||this.moduleCount<=e+a))for(var l=-1;l<=7;l++)t+l<=-1||this.moduleCount<=t+l||(this.modules[e+a][t+l]=0<=a&&a<=6&&(0==l||6==l)||0<=l&&l<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=l&&l<=4)},createQrcode:function(){for(var e=0,t=0,a=null,l=0;l<8;l++){this.makeImpl(l);var n=o.getLostPoint(this);(0==l||e>n)&&(e=n,t=l,a=this.modules)}this.modules=a,this.setupTypeInfo(!1,t),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var e=8;e>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=l,this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=l}},setupTypeInfo:function(e,t){for(var a=l[this.errorCorrectLevel]<<3|t,n=o.getBCHTypeInfo(a),r=0;r<15;r++){var i=!e&&1==(n>>r&1);r<6?this.modules[r][8]=i:r<8?this.modules[r+1][8]=i:this.modules[this.moduleCount-15+r][8]=i;i=!e&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=i:r<9?this.modules[8][15-r-1+1]=i:this.modules[8][15-r-1]=i}this.modules[this.moduleCount-8][8]=!e},createData:function(){var e=new v,t=this.typeNumber>9?16:8;e.put(4,4),e.put(this.utf8bytes.length,t);for(var l=0,n=this.utf8bytes.length;l=8*this.totalDataCount)break;if(e.put(a.PAD0,8),e.length>=8*this.totalDataCount)break;e.put(a.PAD1,8)}return this.createBytes(e)},createBytes:function(e){for(var t=0,a=0,l=0,n=this.rsBlock.length/3,r=new Array,i=0;i=0?w.get(_):0}}var x=new Array(this.totalDataCount),O=0;for(i=0;i0;i-=2){6==i&&i--;while(1){for(var u=0;u<2;u++)if(null==this.modules[l][i-u]){var s=!1;r>>n&1));var c=o.getMask(t,l,i-u);c&&(s=!s),this.modules[l][i-u]=s,n--,-1==n&&(r++,n=7)}if(l+=a,l<0||this.moduleCount<=l){l-=a,a=-a;break}}}}},a.PAD0=236,a.PAD1=17;for(var l=[1,0,3,2],r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0)t^=o.G15<=0)t^=o.G18<>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,a){switch(e){case r.PATTERN000:return(t+a)%2==0;case r.PATTERN001:return t%2==0;case r.PATTERN010:return a%3==0;case r.PATTERN011:return(t+a)%3==0;case r.PATTERN100:return(Math.floor(t/2)+Math.floor(a/3))%2==0;case r.PATTERN101:return t*a%2+t*a%3==0;case r.PATTERN110:return(t*a%2+t*a%3)%2==0;case r.PATTERN111:return(t*a%3+(t+a)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new s([1],0),a=0;a3&&e.modules[n][i-1]&&e.modules[n][i-2]&&e.modules[n][i-3]&&e.modules[n][i-4]&&(a+=40)),n=5&&(a+=3+r-5),r=1),u&&l++}for(i=0;i3&&e.modules[n-1][i]&&e.modules[n-2][i]&&e.modules[n-3][i]&&e.modules[n-4][i]&&(a+=40)),o^u?r++:(o=u,r>=5&&(a+=3+r-5),r=1)}var c=Math.abs(100*l/t/t-50)/5;return a+=10*c,a}},i={glog:function(e){if(e<1)throw new Error("glog("+e+")");return i.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return i.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},u=0;u<8;u++)i.EXP_TABLE[u]=1<=a){var r=i.glog(l[0])-i.glog(e.get(0));for(n=0;n9?2:1;if(this.utf8bytes.length+i>>7-e%8&1},put:function(e,t){for(var a=0;a>>t-a-1&1)},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var f=[];n=function(t){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:t.canvasId,context:t.context,usingComponents:t.usingComponents,showLoading:t.showLoading,loadingText:t.loadingText},"string"===typeof t&&(t={text:t}),t)for(var l in t)this.options[l]=t[l];for(var n=null,r=(l=0,f.length);l1&&e.row<5&&e.col>1&&e.col<5||e.row>e.count-6&&e.row1&&e.col<5||e.row>1&&e.row<5&&e.col>e.count-6&&e.col0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];if(a=a||l.length,e)for(var r=0;r-1||"function"===typeof i[e])}r[o]=function(){var e={};for(var t in i)s(t)&&(e[t]=i[t]);return e}(),r[o].canIUse("getAppBaseInfo")||(r[o].getAppBaseInfo=r[o].getSystemInfoSync),r[o].canIUse("getWindowInfo")||(r[o].getWindowInfo=r[o].getSystemInfoSync),r[o].canIUse("getDeviceInfo")||(r[o].getDeviceInfo=r[o].getSystemInfoSync);var c=r[o];t.default=c},3240:function(e,t,a){"use strict";a.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2024 Evan You @@ -33,4 +33,4 @@ function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate: OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t,a=function(){return(a=Object.assign||function(e){for(var t,a=1,l=arguments.length;a0&&n[n.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]0;break}}return n}("Android"===plus.os.name?"1.9.9.80627":"1.9.9.80472",plus.runtime.innerVersion))return void plus.io.resolveLocalFileSystemURL("_doc",(function(a){a.getDirectory("uniapp_temp",{create:!0,exclusive:!1},(function(a){a.getFile(v,{create:!0,exclusive:!1},(function(a){a.createWriter((function(a){var l;a.onwrite=function(){e(f)},a.onerror=t,a.seek(0),a.writeAsBinary((l=o.split(","))[l.length-1])}),t)}),t)}),t)}),t);var p=new plus.nativeObj.Bitmap(v);p.loadBase64Data(o,(function(){p.save(f,{},(function(){p.clear(),e(f)}),(function(e){p.clear(),t(e)}))}),(function(e){p.clear(),t(e)}))}})))];case 2:return t=r.sent(),[3,4];case 3:return n=r.sent(),console.log(n),[3,4];case 4:return c.getImageInfo({src:t,success:function(e){return a(e)},fail:function(e){return l(e)}}),[2]}var o}))}))}))}function h(e){for(var t=[],a=[],l=0,n=e.substring(0,e.length-1).split("%,");lu.left+u.width+c;if(this.getBoxState(f,d)||k)d.style.left+=r,(null==(x=f)?void 0:x.offsetSize.height)>=(null==(O=p)?void 0:O.offsetSize.height)?d.style.top+=f.offsetSize.top+f.offsetSize.height||0:d.style.top+=(null==(S=p)?void 0:S.offsetSize.top)+(null==(P=p)?void 0:P.offsetSize.height)||0,d.getBoxPosition(),f=d,p=d,b=!0;else d.style.left+=f.offsetSize.left+f.offsetSize.width,d.style.top+=b?f.offsetSize.top:i,d.getBoxPosition(),f=d}}this.layoutBoxUpdate(u,t)}else this.layoutBoxUpdate(u,t);return this.layoutBox},t.setMaxLineHeight=function(e,t,a){for(var l=e;l>=0&&!t[l].contentSize.maxLineHeight;)t[l].contentSize.maxLineHeight=a,l--},t.getBoxState=function(e,t){return"view"==t.name&&"inline-block"!==t.style.display||"view"==(null==e?void 0:e.name)&&"inline-block"!==(null==e?void 0:e.style.display)||"block"==t.style.display||"block"==(null==e?void 0:e.style.display)},t.getBoxHieght=function(){var e,t=this,a=this.name,l=this.computedStyle,n=this.attributes,r=this.parent,o=this.getChildren(),i=l.top,u=l.bottom,s=l.height,c=void 0===s?0:s,v=l.fontSize,f=void 0===v?14:v,b=l.position,h=l.lineHeight,d=void 0===h?"1.4em":h;l.lineClamp;var m=g({},this.contentSize);if("image"==a&&null==c){var y=n.width,w=n.height;n.mode,m.height=Math.round(m.width*w/y)||0,this.layoutBoxUpdate(m,l,"height")}else if(c)if(o.length){var _=null,x=0;o.forEach((function(e,a){var l,n,r=a==o.length-1;e.getBoxHieght();var i=(null==(l=_)?void 0:l.offsetSize.left)+(null==(n=_)?void 0:n.offsetSize.width)+e.offsetSize.width>m.left+m.width,u=t.getBoxState(_,e);if(i||u){if(i){for(var s=a-1;s>=0&&!o[s].contentSize.maxLineHeight;)x=0&&!o[c].contentSize.maxLineHeight;)xm.width;if(i||r){var u,s,c=0;return i||k&&("view"!==(null==(u=k)?void 0:u.name)||"inline-block"==(null==(s=k)?void 0:s.style.display))?(n&&(t.setMaxLineHeight(l-1,o,P),P+=a.offsetSize.height),c=e+P,P=a.offsetSize.height,A=a.offsetSize.width,k=a,c):(A=0,P=0,e+a.offsetSize.height)}return A+=a.offsetSize.width,P=Math.max(P,a.offsetSize.height)||0,n?(t.setMaxLineHeight(l,o,P),e+P):(k=a,e)}),0),O&&(m.height=O),this.layoutBoxUpdate(m,l)}else O&&(m.height=O),this.layoutBoxUpdate(m,l,"height")}if(l.borderRadius&&null!=(e=this.borderSize)&&e.width)for(var T in l.borderRadius)Object.hasOwnProperty.call(l.borderRadius,T)&&(l.borderRadius[T]=p(l.borderRadius[T],this.borderSize.width));return this.layoutBox},t.contrastSize=function(e,t,a){var l=e;return a&&(l=Math.min(l,a)),t&&(l=Math.max(l,t)),l},t.measureText=function(e,t){var a=this.ctx.measureText(e);return{width:a.width,fontHeight:(a.actualBoundingBoxAscent||.7*t)+1}},t.getBoxWidth=function(){var e,t=this,a=this.name,l=this.computedStyle,n=this.attributes,r=this.parent,o=void 0===r?{}:r,i=this.ctx,u=this.getChildren(),s=l.left,c=void 0===s?0:s;l.top;var v=l.right,f=l.width,b=void 0===f?0:f,h=l.minWidth,d=l.maxWidth,g=l.height,m=void 0===g?0:g,y=l.fontSize,w=void 0===y?14:y,_=l.fontWeight,x=l.fontFamily,O=l.textStyle,S=l.position,P=l.display,k=l.lineClamp,A=l.padding,T=void 0===A?{}:A,j=l.margin,C=void 0===j?{}:j,E=l.border,L=(E=void 0===E?{}:E).borderWidth,M=void 0===L?0:L,D=l.borderRight,R=(D=void 0===D?{}:D).borderRightWidth,I=void 0===R?M:R,$=l.borderLeft,N=($=void 0===$?{}:$).borderLeftWidth,B=void 0===N?M:N;if(/%$/.test(b)&&o.contentSize.width&&(b=p(b,o.contentSize.width,!0)),/%$/.test(m)&&o.contentSize.height&&(m=p(m,o.contentSize.height)),/%$/.test(h)&&o.contentSize.width&&(h=p(h,o.contentSize.width,!0)),/%$/.test(d)&&o.contentSize.width&&(d=p(d,o.contentSize.width,!0)),l.padding&&null!=(e=o.contentSize)&&e.width)for(var U in l.padding)Object.hasOwnProperty.call(l.padding,U)&&(l.padding[U]=p(l.padding[U],o.contentSize.width));var z=T.paddingRight,H=void 0===z?0:z,F=T.paddingLeft,q=void 0===F?0:F;if(l.margin&&[l.margin.marginLeft,l.margin.marginRight].includes("auto"))if(b){var V=o.contentSize.width-b-H-q-B-I||0;l.margin.marginLeft==l.margin.marginRight?l.margin.marginLeft=l.margin.marginRight=V/2:"auto"==l.margin.marginLeft?l.margin.marginLeft=V:l.margin.marginRight=V}else l.margin.marginLeft=l.margin.marginRight=0;var W=C.marginRight,G=void 0===W?0:W,K=C.marginLeft,X={width:b,height:m,left:0,top:0},J=q+H+B+I+(void 0===K?0:K)+G;if("text"==a&&!this.attributes.widths){var Y=n.text||"";i.save(),i.setFonts({fontFamily:x,fontSize:w,fontWeight:_,textStyle:O}),Y.split("\n").map((function(e){var a=e.split("").map((function(e){return t.measureText(e,w).width}));t.attributes.fontHeight=t.measureText(e,w).fontHeight,t.attributes.widths||(t.attributes.widths=[]),t.attributes.widths.push({widths:a,total:a.reduce((function(e,t){return e+t}),0)})})),i.restore()}if("image"==a&&null==b){var Q=n.width,Z=n.height;X.width=this.contrastSize(Math.round(Q*m/Z)||0,h,d),this.layoutBoxUpdate(X,l,"width")}else if(b)u.length?(this.layoutBoxUpdate(X,l,"width"),u.forEach((function(e){e.getBoxWidth()}))):this.layoutBoxUpdate(X,l,"width");else{var ee=0;if((this.isAbsolute||this.isFixed)&&o.contentSize.width){var te="absolute"==S?o.contentSize.width:this.root.width;ee=te-(/%$/.test(c)?p(c,te):c)-(/%$/.test(v)?p(v,te):v)}if("text"==a){var ae=this.attributes.widths,le=Math.max.apply(Math,ae.map((function(e){return e.total})));o&&o.contentSize.width>0&&(le>o.contentSize.width||"block"==P)&&!this.isAbsolute&&!this.isFixed&&(le=o.contentSize.width-J),X.width=ee||this.contrastSize(le,h,d),this.layoutBoxUpdate(X,l,"width")}else if("view"!=a||!o||"inline-block"===P||this.isAbsolute||this.isFixed)if(u.length){for(var ne=0,re=null,oe=0;u.length>oe;){var ie=u[oe],ue=oe==u.length-1,se=this.getBoxState(re,ie);if(!ie.isFixed&&!ie.isAbsolute)if(!re||se){var ce=ie.getBoxWidth();ne=Math.max(ne,ce.width)||0,re=ie}else if(re.offsetSize.left+re.offsetSize.width+ie.offsetSize.widthX.width?(fe++,t):e+t}),0)})),fe=k&&fe>k?k:fe,this.attributes.lines=fe}return this.layoutBox},t.layout=function(){return this.getBoxWidth(),this.getBoxHieght(),this.getBoxPosition(),this.offsetSize},e}(),_=function(){var e,t,a,l,n,r,o=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],i=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],u=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],s=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],c=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],v=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],f=[],p=[],b=[],h=[],d=[],g=2;function m(e,t){var a;e>t&&(a=e,e=t,t=a),a=t,a*=t,a+=t,a>>=1,h[a+=e]=1}function y(e,a){var l;for(b[e+t*a]=1,l=-2;l<2;l++)b[e+l+t*(a-2)]=1,b[e-2+t*(a+l+1)]=1,b[e+2+t*(a+l)]=1,b[e+l+1+t*(a+2)]=1;for(l=0;l<2;l++)m(e-1,a+l),m(e+1,a-l),m(e-l,a-1),m(e+l,a+1)}function w(e){for(;e>=255;)e=((e-=255)>>8)+(255&e);return e}var _=[];function x(e,t,a,l){var n,r,o;for(n=0;nt&&(a=e,e=t,t=a),a=t,a+=t*t,a>>=1,h[a+=e]}function S(e){var a,l,n,r;switch(e){case 0:for(l=0;l>1&1,a=0;a=5&&(a+=3+d[t]-5);for(t=3;te||3*d[t-3]>=4*d[t]||3*d[t+3]>=4*d[t])&&(a+=40);return a}function k(){var e,a,l,n,r,o=0,i=0;for(a=0;at*t;)u-=t*t,s++;for(o+=10*s,e=0;e1)for(j=o[e],A=t-7;;){for(P=t-7;P>j-3&&(y(P,A),!(P6)for(j=i[e-7],T=17,P=0;P<6;P++)for(A=0;A<3;A++,T--)1&(T>11?e>>T-12:j>>T)?(b[5-P+t*(2-A+t-11)]=1,b[2-A+t-11+t*(5-P)]=1):(m(5-P,2-A+t-11),m(2-A+t-11,5-P));for(A=0;A=(P=n*(a+l)+l)-2&&(C=P-2,e>9&&C--),E=C,e>9){for(f[E+2]=0,f[E+3]=0;E--;)j=f[E],f[E+3]|=255&j<<4,f[E+2]=j>>4;f[2]|=255&C<<4,f[1]=C>>4,f[0]=64|C>>12}else{for(f[E+1]=0,f[E+2]=0;E--;)j=f[E],f[E+2]|=255&j<<4,f[E+1]=j>>4;f[1]|=255&C<<4,f[0]=64|C>>4}for(E=C+3-(e<10);E0;L--)_[L]=_[L]?_[L-1]^v[w(c[_[L]]+E)]:_[L-1];_[0]=v[w(c[_[0]]+E)]}for(E=0;E<=r;E++)_[E]=c[_[E]];for(T=P,A=0,E=0;E>=1)1&A&&(b[t-1-T+8*t]=1,T<6?b[8+t*T]=1:b[8+t*(T+1)]=1);for(T=0;T<7;T++,A>>=1)1&A&&(b[8+t*(t-7+T)]=1,T?b[6-T+8*t]=1:b[7+8*t]=1);return b}(d)},utf16to8:function(e){var t,a,l,n;for(t="",l=e.length,a=0;a=1&&n<=127?t+=e.charAt(a):n>2047?(t+=String.fromCharCode(224|n>>12&15),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|n>>0&63)):(t+=String.fromCharCode(192|n>>6&31),t+=String.fromCharCode(128|n>>0&63));return t},draw:function(e,a,l,n,r){a.drawView(l,n);var o=a.ctx,i=l.contentSize,u=i.width,s=i.height;n.borderRadius,n.backgroundColor;var c=n.color,v=void 0===c?"#000000":c;n.border;var f=l.contentSize.left-l.borderSize.left,p=l.contentSize.top-l.borderSize.top;if(g=r||g,o){o.save(),a.setOpacity(n);var b=a.setTransform(l,n),h=b.x,d=b.y;h+=f,d+=p;var m=Math.min(u,s);e=this.utf16to8(e);var y=this.getFrame(e),w=m/t;o.setFillStyle(v);for(var _=0;_0?1:-1)*n.x+(S+h)/s,y:A*(v>0?1:-1)*n.y+(P+g)/v};return o.translate(C.x,C.y),y&&o.rotate(y*Math.PI/180),(_||O)&&o.transform(1,Math.tan(O*Math.PI/180),Math.tan(_*Math.PI/180),1,0,0),{x:-k*n.x,y:-A*n.y,w:k,h:A}},e.prototype.setBackground=function(e,t,a,l,n){var r=this.ctx;e&&"transparent"!=e?function(e){return!(!e||!e.startsWith("linear")&&!e.startsWith("radial"))}(e)?function(e,t,a,l,n,r){e.startsWith("linear")?function(e,t,a,l,n,r){for(var o=function(e,t,a,l,n){void 0===l&&(l=0),void 0===n&&(n=0);var r=e.match(/([-]?\d{1,3})deg/),o=r&&r[1]?parseFloat(r[1]):0;if(o>=360&&(o-=360),o<0&&(o+=360),0===(o=Math.round(o)))return{x0:Math.round(t/2)+l,y0:a+n,x1:Math.round(t/2)+l,y1:n};if(180===o)return{x0:Math.round(t/2)+l,y0:n,x1:Math.round(t/2)+l,y1:a+n};if(90===o)return{x0:l,y0:Math.round(a/2)+n,x1:t+l,y1:Math.round(a/2)+n};if(270===o)return{x0:t+l,y0:Math.round(a/2)+n,x1:l,y1:Math.round(a/2)+n};var i=Math.round(180*Math.asin(t/Math.sqrt(Math.pow(t,2)+Math.pow(a,2)))/Math.PI);if(o===i)return{x0:l,y0:a+n,x1:t+l,y1:n};if(o===180-i)return{x0:l,y0:n,x1:t+l,y1:a+n};if(o===180+i)return{x0:t+l,y0:n,x1:l,y1:a+n};if(o===360-i)return{x0:t+l,y0:a+n,x1:l,y1:n};var u,s=0,c=0,v=0,f=0;if(o180-i&&o<180||o>180&&o<180+i||o>360-i){var p=o*Math.PI/180,b=o360-i?a/2:-a/2,h=Math.tan(p)*b,d=o180-i&&o<180?t/2-h:-t/2-h;s=-(v=h+(u=Math.pow(Math.sin(p),2)*d)),c=-(f=b+u/Math.tan(p))}(o>i&&o<90||o>90&&o<90+i||o>180+i&&o<270||o>270&&o<360-i)&&(p=(90-o)*Math.PI/180,h=o>i&&o<90||o>90&&o<90+i?t/2:-t/2,b=Math.tan(p)*h,d=o>i&&o<90||o>270&&o<360-i?a/2-b:-a/2-b,s=-(v=h+(u=Math.pow(Math.sin(p),2)*d)/Math.tan(p)),c=-(f=b+u));return s=Math.round(s+t/2)+l,c=Math.round(a/2-c)+n,v=Math.round(v+t/2)+l,f=Math.round(a/2-f)+n,{x0:s,y0:c,x1:v,y1:f}}(n,e,t,a,l),i=o.x0,u=o.y0,s=o.x1,c=o.y1,v=r.createLinearGradient(i,u,s,c),f=n.match(/linear-gradient\((.+)\)/)[1],p=h(f.substring(f.indexOf(",")+1)),b=0;b=o||"cover"==l&&r=o)&&(i=t.width/a.width);var u=a.width*i,s=a.height*i,c=/^\d+px|rpx$/.test(null==n?void 0:n[0])?p(null==n?void 0:n[0],t.width):(t.width-u)*(/%$/.test(null==n?void 0:n[0])?p(null==n?void 0:n[0],1,!0):{left:0,center:.5,right:1}[(null==n?void 0:n[0])||"center"]),v=/^\d+px|rpx$/.test(null==n?void 0:n[1])?p(null==n?void 0:n[1],t.height):(t.height-s)*(/%$/.test(null==n?void 0:n[1])?p(null==n?void 0:n[1],1,!0):{top:0,center:.5,bottom:1}[(null==n?void 0:n[1])||"center"]),f=function(e,t){return[(e-c)/i,(t-v)/i]},b=f(0,0),h=b[0],d=b[1],g=f(t.width,t.height),m=g[0],y=g[1];return{sx:Math.max(h,0),sy:Math.max(d,0),sw:Math.min(m-h,a.width),sh:Math.min(y-d,a.height),dx:Math.max(c,0),dy:Math.max(v,0),dw:Math.min(u,t.width),dh:Math.min(s,t.height)}}({objectFit:m,objectPosition:y},t.contentSize,e),l=a.sx,n=a.sy,r=a.sh,o=a.sw,i=a.dx,s=a.dy,c=a.dh,v=a.dw;"mp-baidu"==I.platform?u.drawImage(e.src,i+x,s+O,v,c,l,n,o,r):u.drawImage(e.src,l,n,o,r,i+x,s+O,v,c)}else u.drawImage(e.src,x,O,w,_)},C=function(){u.restore(),I.drawView(t,a,!1,!0,!1),setTimeout(i,s)},E=function(e){if(c.createImage||"web"==I.platform){var t=null;(t=c.createImage?c.createImage():new Image).onload=function(){e.src=t,j(e),C()},t.onerror=function(){return r(I,void 0,void 0,(function(){return o(this,(function(t){return console.log("createImage fail: "+JSON.stringify(e)),i(!0),[2]}))}))},t.src=e.path}else j(e),C()},"string"!=typeof e?[3,2]:[4,b(e)];case 1:return L=$.sent(),M=L.path,D=L.width,R=L.height,E({path:M,src:M,width:D,height:R}),[3,3];case 2:E(e),$.label=3;case 3:return[2]}}))}))}))];case 1:return i.sent(),[2]}}))}))},e.prototype.drawText=function(e,t,a,l){this.drawView(t,a);var n=this.ctx,r=t.borderSize,o=t.contentSize,i=o.width,u=o.height,s=o.left-r.left,c=o.top-r.top,v=a.color,f=void 0===v?"#000000":v,b=a.lineHeight,h=void 0===b?"1.4em":b,d=a.fontSize,g=void 0===d?14:d,m=a.fontWeight,y=a.fontFamily,w=a.textStyle,_=a.textAlign,x=void 0===_?"left":_,O=a.verticalAlign,S=void 0===O?"middle":O;a.backgroundColor;var P=a.lineClamp,k=a.textDecoration;if(h=p(h,g),e){n.save(),this.setOpacity(a);var A=this.setTransform(t,a),T=A.x,j=A.y;switch(T+=s,j+=c,n.setFonts({fontFamily:y,fontSize:g,fontWeight:m,textStyle:w}),n.setTextBaseline("middle"),n.setTextAlign(x),n.setFillStyle(f),j+=g/2,x){case"left":break;case"center":T+=.5*i;break;case"right":T+=i}var C=l.lines*h,E=Math.ceil((u-C)/2);switch(E<0&&(E=0),S){case"top":break;case"middle":j+=E;break;case"bottom":j+=2*E}var L=(h-l.fontHeight)/2,M=function(e,t,a){var r=e;switch(x){case"left":e=e,r+=a;break;case"center":r=(e-=a/2)+a;break;case"right":r=e,e-=a}k&&(n.setLineWidth(g/13),n.beginPath(),t-=L,/\bunderline\b/.test(k)&&(n.moveTo(e,t-.5*l.fontHeight),n.lineTo(r,t-.5*l.fontHeight)),/\boverline\b/.test(k)&&(n.moveTo(e,t-1.5*l.fontHeight),n.lineTo(r,t-1.5*l.fontHeight)),/\bline-through\b/.test(k)&&(n.moveTo(e,t-l.fontHeight),n.lineTo(r,t-l.fontHeight)),n.closePath(),n.setStrokeStyle(f),n.stroke())};if(1==l.widths.lenght&&l.widths[0].total<=o.width)return n.fillText(e,T,j+L),M(T,j+=h,l.widths[0].total),n.restore(),void this.setBorder(t,a);for(var D=e.split(""),R=j,I=T,$="",N=0,B=0;B<=D.length;B++){var U=D[B]||"",z="\n"===U,H=""==U,F=$+(U=z?"":U),q=n.measureText(F).width;if(N>=P)break;if(I=T,(q=q)>o.width||z||H){if(N++,$=H&&q<=o.width?F:$,N===P&&q>i){for(;n.measureText($+"...").width>o.width&&!($.length<=1);)$=$.substring(0,$.length-1);$+="..."}if(n.fillText($,I,j+L),M(I,j+=h,q),$=U,j+h>R+u)break}else $=F}n.restore()}},e.prototype.source=function(e){var t;return r(this,void 0,void 0,(function(){var a,l;return o(this,(function(n){switch(n.label){case 0:if("{}"==JSON.stringify(e))return[2];if(!e.type)for(a in e.type="view",e.css=e.css||{},e)["views","children","type","css"].includes(a)||(e.css[a]=e[a],delete e[a]);return(null===(t=null==e?void 0:e.css)||void 0===t?void 0:t.width)||(e.css?e.css.width=this.root.width:e.css={width:this.root.width}),[4,this.create(e)];case 1:return l=n.sent(),this.size=l.layout(),this.node=l,[2,this.size]}}))}))},e.prototype.create=function(e,t){var a,l,n,i;return r(this,void 0,void 0,(function(){var r,u,s,c,v,f,p,h,d,g,m,y;return o(this,(function(o){switch(o.label){case 0:if("image"==e.type&&!e.src&&!e.url||"qrcode"==e.type&&!e.text)return[2];if("none"==(null===(a=null==e?void 0:e.css)||void 0===a?void 0:a.display))return console.error("element display none"),[2];o.label=1;case 1:return o.trys.push([1,4,,5]),"image"==e.type||"view"==e.type&&(null===(l=e.css)||void 0===l?void 0:l.backgroundImage)?(r=null,u=/url\((.+)\)/,e.css.backgroundImage&&(null===(n=u.exec(e.css.backgroundImage))||void 0===n?void 0:n[1])&&(r=null===(i=u.exec(e.css.backgroundImage))||void 0===i?void 0:i[1]),[4,b(e.src||r)]):[3,3];case 2:s=o.sent(),c=s.width,v=s.height,f=s.path,["mp-weixin","mp-baidu","mp-qq","mp-toutiao"].includes(this.platform)&&(f=/^\.|^\/(?=[^\/])/.test(e.src||r)?"/"+f:f),e.attributes=Object.assign(e.attributes||{},{width:c,height:v,path:f,src:f,naturalSrc:e.src||r}),o.label=3;case 3:return[3,5];case 4:return p=o.sent(),console.log(p),[2];case 5:if(this.count+=1,h=new w(e,t,this.root,this.ctx),!(d=e.views||e.children))return[3,9];g=0,o.label=6;case 6:return g1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var a=this;if(a.length>=e)return String(a);var l=e-a.length,n=Math.ceil(l/t.length);while(n>>=1)t+=t,1===n&&(t+=t);return t.slice(0,l)+a});var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var a,l=new Date(e),n={"y+":l.getFullYear().toString(),"m+":(l.getMonth()+1).toString(),"d+":l.getDate().toString(),"h+":l.getHours().toString(),"M+":l.getMinutes().toString(),"s+":l.getSeconds().toString()};for(var r in n)a=new RegExp("("+r+")").exec(t),a&&(t=t.replace(a[1],1==a[1].length?n[r]:n[r].padStart(a[1].length,"0")));return t};t.default=l},"9b63":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={v:"1.8.3",version:"1.8.3",type:["primary","success","info","error","warning"]};t.default=l},"9edb":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=null;var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==l&&clearTimeout(l),a){var n=!l;l=setTimeout((function(){l=null}),t),n&&"function"===typeof e&&e()}else l=setTimeout((function(){"function"===typeof e&&e()}),t)};t.default=n},"9fc1":function(e,t,a){var l=a("3b2d")["default"];function n(){"use strict"; -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=function(){return a},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,a={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,a){e[t]=a.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",v=u.toStringTag||"@@toStringTag";function f(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,a){return e[t]=a}}function p(e,t,a,l){var n=t&&t.prototype instanceof y?t:y,r=Object.create(n.prototype),o=new L(l||[]);return i(r,"_invoke",{value:T(e,a,o)}),r}function b(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}a.wrap=p;var h="suspendedStart",d="executing",g="completed",m={};function y(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(M([])));S&&S!==r&&o.call(S,s)&&(x=S);var P=_.prototype=y.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function a(n,r,i,u){var s=b(e[n],e,r);if("throw"!==s.type){var c=s.arg,v=c.value;return v&&"object"==l(v)&&o.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,i,u)}),(function(e){a("throw",e,i,u)})):t.resolve(v).then((function(e){c.value=e,i(c)}),(function(e){return a("throw",e,i,u)}))}u(s.arg)}var n;i(this,"_invoke",{value:function(e,l){function r(){return new t((function(t,n){a(e,l,t,n)}))}return n=n?n.then(r,r):r()}})}function T(e,a,l){var n=h;return function(r,o){if(n===d)throw Error("Generator is already running");if(n===g){if("throw"===r)throw o;return{value:t,done:!0}}for(l.method=r,l.arg=o;;){var i=l.delegate;if(i){var u=j(i,l);if(u){if(u===m)continue;return u}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(n===h)throw n=g,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);n=d;var s=b(e,a,l);if("normal"===s.type){if(n=l.done?g:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:l.done}}"throw"===s.type&&(n=g,l.method="throw",l.arg=s.arg)}}}function j(e,a){var l=a.method,n=e.iterator[l];if(n===t)return a.delegate=null,"throw"===l&&e.iterator["return"]&&(a.method="return",a.arg=t,j(e,a),"throw"===a.method)||"return"!==l&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+l+"' method")),m;var r=b(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,m;var o=r.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,m):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[s];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function a(){for(;++n=0;--n){var r=this.tryEntries[n],i=r.completion;if("root"===r.tryLoc)return l("end");if(r.tryLoc<=this.prev){var u=o.call(r,"catchLoc"),s=o.call(r,"finallyLoc");if(u&&s){if(this.prev=0;--a){var l=this.tryEntries[a];if(l.tryLoc<=this.prev&&o.call(l,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var l=a.completion;if("throw"===l.type){var n=l.arg;E(a)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,a,l){return this.delegate={iterator:M(e),resultName:a,nextLoc:l},"next"===this.method&&(this.arg=t),m}},a}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},a381:function(e,t,a){var l={development:"",production:"[baseUrl]"},n=l["production"];e.exports={version:"3.1.5",baseURL:n,basePath:"/mobile"}},a3fc:function(e,t,a){(function(e){function a(e,t){for(var a=0,l=e.length-1;l>=0;l--){var n=e[l];"."===n?e.splice(l,1):".."===n?(e.splice(l,1),a++):a&&(e.splice(l,1),a--)}if(t)for(;a--;a)e.unshift("..");return e}function l(e,t){if(e.filter)return e.filter(t);for(var a=[],l=0;l=-1&&!n;r--){var o=r>=0?arguments[r]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return t=a(l(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===n(e,-1);return e=a(l(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(l(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,a){function l(e){for(var t=0;t=0;a--)if(""!==e[a])break;return t>a?[]:e.slice(t,a-t+1)}e=t.resolve(e).substr(1),a=t.resolve(a).substr(1);for(var n=l(e.split("/")),r=l(a.split("/")),o=Math.min(n.length,r.length),i=o,u=0;u=1;--r)if(t=e.charCodeAt(r),47===t){if(!n){l=r;break}}else n=!1;return-1===l?a?"/":".":a&&1===l?"/":e.slice(0,l)},t.basename=function(e,t){var a=function(e){"string"!==typeof e&&(e+="");var t,a=0,l=-1,n=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!n){a=t+1;break}}else-1===l&&(n=!1,l=t+1);return-1===l?"":e.slice(a,l)}(e);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,a=0,l=-1,n=!0,r=0,o=e.length-1;o>=0;--o){var i=e.charCodeAt(o);if(47!==i)-1===l&&(n=!1,l=o+1),46===i?-1===t?t=o:1!==r&&(r=1):-1!==t&&(r=-1);else if(!n){a=o+1;break}}return-1===t||-1===l||0===r||1===r&&t===l-1&&t===a+1?"":e.slice(t,l)};var n="b"==="ab".substr(-1)?function(e,t,a){return e.substr(t,a)}:function(e,t,a){return t<0&&(t=e.length+t),e.substr(t,a)}}).call(this,a("28d0"))},a708:function(e,t,a){var l=a("6454");e.exports=function(e){if(Array.isArray(e))return l(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a8b3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toast:999,noNetwork:10080,popup:901,mask:900,navbar:880,topTips:975,sticky:870,indexListSticky:965}},af34:function(e,t,a){var l=a("a708"),n=a("b893"),r=a("6382"),o=a("9008");e.exports=function(e){return l(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},b013:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.children=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.indexKey;return{inject:(0,o.default)({},e,{default:null}),watch:{el:{handler:function(e,t){JSON.stringify(e)!=JSON.stringify(t)&&this.bindRelation()},deep:!0,immediate:!0},src:{handler:function(e,t){e!=t&&this.bindRelation()},immediate:!0},text:{handler:function(e,t){e!=t&&this.bindRelation()},immediate:!0},css:{handler:function(e,t){e!=t&&(this.el.css="object"==(0,r.default)(e)?e:e&&Object.assign.apply(Object,(0,n.default)(i(e)))||{})},immediate:!0},replace:{handler:function(e,t){JSON.stringify(e)!=JSON.stringify(t)&&this.bindRelation()},deep:!0,immediate:!0}},created:function(){var t=this;Object.defineProperty(this,"parent",{get:function(){return t[e]}}),Object.defineProperty(this,"index",{get:function(){var e,a;return t.bindRelation(),null===(e=t.parent)||void 0===e||null===(a=e.el.views)||void 0===a?void 0:a.indexOf(t.el)}}),this.el.type=this.type},beforeDestroy:function(){var e=this;this.parent&&(this.parent.el.views=this.parent.el.views.filter((function(t){return t._uid!==e._uid})))},methods:{bindRelation:function(){var e,t,a,l,r=this;(this.el._uid||(this.el._uid=this._uid),["text","qrcode"].includes(this.type))&&(this.el.text=(null===(e=this.$slots)||void 0===e||null===(t=e.default)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.text)||(null===(l=this.text)||void 0===l?void 0:l.replace(/\\n/g,"\n")));if("text"==this.type&&this.replace&&(this.el.replace=this.replace),"image"==this.type&&(this.el.src=this.src),this.parent){var o=this.parent.el.views||[];-1!==o.indexOf(this.el)?this.parent.el.views=o.map((function(e){return e._uid==r._uid?r.el:e})):this.parent.el.views=[].concat((0,n.default)(o),[this.el])}}},mounted:function(){this.bindRelation()}}},t.parent=function(e){return{provide:function(){return(0,o.default)({},e,this)},data:function(){return{el:{css:{},views:[]}}},watch:{css:{handler:function(e){var t,a;this.canvasId&&(this.el.css="object"==(0,r.default)(e)?e:e&&Object.assign.apply(Object,(0,n.default)(i(e)))||{},this.canvasWidth=(null===(t=this.el.css)||void 0===t?void 0:t.width)||this.canvasWidth,this.canvasHeight=(null===(a=this.el.css)||void 0===a?void 0:a.height)||this.canvasHeight)},immediate:!0}}}};var n=l(a("af34")),r=l(a("3b2d")),o=l(a("7ca3")),i=(a("56dd"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(";").filter((function(e){return e&&!/^[\n\s]+$/.test(e)})).map((function(e){var t,a,l=e.split(":");return(0,o.default)({},l[0].replace(/-([a-z])/g,(function(){return arguments[1].toUpperCase()})).replace(/\s+/g,""),(null===l||void 0===l||null===(t=l[1])||void 0===t||null===(a=t.replace(/^\s+/,""))||void 0===a?void 0:a.replace(/\s+$/,""))||"")}))})},b698:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};t.default=l},b88d:function(e,t,a){"use strict";function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&a.test(e)){if(4===e.length){for(var l="#",n=1;n<4;n+=1)l+=e.slice(n,n+1).concat(e.slice(n,n+1));e=l}for(var r=[],o=1;o<7;o+=2)r.push(parseInt("0x"+e.slice(o,o+2)));return t?"rgb(".concat(r[0],",").concat(r[1],",").concat(r[2],")"):r}if(/^(rgb|RGB)/.test(e)){var i=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return i.map((function(e){return Number(e)}))}return e}function n(e){var t=e;if(/^(rgb|RGB)/.test(t)){for(var a=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),l="#",n=0;n0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=l(e,!1),o=r[0],i=r[1],u=r[2],s=l(t,!1),c=s[0],v=s[1],f=s[2],p=(c-o)/a,b=(v-i)/a,h=(f-u)/a,d=[],g=0;g1&&void 0!==arguments[1]?arguments[1]:.3;e=n(e);var a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,l=e.toLowerCase();if(l&&a.test(l)){if(4===l.length){for(var r="#",o=1;o<4;o+=1)r+=l.slice(o,o+1).concat(l.slice(o,o+1));l=r}for(var i=[],u=1;u<7;u+=2)i.push(parseInt("0x"+l.slice(u,u+2)));return"rgba("+i.join(",")+","+t+")"}return l}};t.default=r},b893:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},bd42:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.cancelOrder=function(e){return n.default.post("order/cancel",{id:e})},t.confirmOrder=function(e){return n.default.post("order/confirm",{id:e})},t.delOrder=function(e){return n.default.post("order/del",{id:e})},t.getOrderDetail=function(e){return n.default.get("order/getOrderDetail",{params:{id:e}})},t.getOrderList=function(e){return n.default.get("order/lists",{params:e})},t.getPayResult=function(e){return n.default.get("order/pay_result",{params:e})},t.getwechatSyncCheck=function(e){return n.default.get("order/wechatSyncCheck",{params:e})},t.getwxReceiveDetail=function(e){return n.default.get("order/wxReceiveDetail",{params:e})},t.orderBuy=function(e){return n.default.post("order/submitOrder",e)},t.orderInfo=function(e){return n.default.post("order/settlement",e)},t.orderTraces=function(e){return n.default.get("order/orderTraces",{params:{id:e}})};var n=l(a("21ce"));a("0aec")},bdd7:function(e,t,a){(function(t){var a={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:l(" , ,\t,\r,\n,\f"),boolAttrs:l("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:l("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:l("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:l("a,colgroup,fieldset,legend"),selfClosingTags:l("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:l("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function l(e){for(var t=Object.create(null),a=e.split(","),l=a.length;l--;)t[a[l]]=!0;return t}t.canIUse("editor")&&(a.blockTags.pre=void 0,a.ignoreTags.rp=!0,Object.assign(a.richOnlyTags,l("bdi,bdo,caption,rt,ruby")),Object.assign(a.trustTags,l("bdi,bdo,caption,pre,rt,ruby"))),e.exports=a}).call(this,a("3223")["default"])},c2cb:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.addCart=function(e){return n.default.post("cart/add",e)},t.changeCartSelect=function(e){return n.default.post("cart/selected",e)},t.changeGoodsCount=function(e){return n.default.post("cart/change",e)},t.clearSearch=function(){return n.default.post("search_record/clear")},t.deleteGoods=function(e){return n.default.post("cart/del",e)},t.getAdList=function(e){return n.default.get("ad_content/lists",{params:e})},t.getArticleDetail=function(e){var t=e.type,a=t?"help/detail":"article/detail";return delete e.type,n.default.get(a,{params:{id:e.id}})},t.getArticleList=function(e){var t=e.type,a=t?"help/lists":"article/lists";return delete e.type,n.default.get(a,{params:e})},t.getBrandList=function(){return n.default.get("goods_brand/getGoodsBrandList")},t.getCartList=function(){return n.default.get("cart/lists")},t.getCartNum=function(e){return n.default.get("cart/num",{params:e})},t.getCategoryList=function(e){var t=e.type,a=t?"help/category":"article/category";return delete e.type,n.default.get(a)},t.getCatrgory=function(){return n.default.get("goods_category/lists")},t.getCityLists=function(){return n.default.get("index/city")},t.getCommentCategory=function(e){return n.default.get("goods_comment/category",{params:{goods_id:e}})},t.getCommentList=function(e){return n.default.get("goods_comment/lists",{params:e})},t.getGeocoder=function(e){return n.default.get("index/geocoder",{params:e})},t.getGoodsColumn=function(){return n.default.get("goods_column/getGoodsColumnList")},t.getGoodsDetail=function(e){return n.default.get("goods/getGoodsDetail",{params:e})},t.getGoodsList=function(e){return n.default.get("goods/getGoodsList",{params:e})},t.getGoodsListColumn=function(e){return n.default.get("goods/getGoodsListByColumnId",{params:e})},t.getHome=function(e){return n.default.get("index/index",{params:e})},t.getIndexCategory=function(e){return n.default.get("index/indexCategory",{params:e})},t.getLevelOneList=function(){return n.default.get("goods_category/getLevelOneList")},t.getListByLevelOne=function(e){return n.default.get("goods_category/getListByLevelOne",{params:e})},t.getMenu=function(e){return n.default.get("menu/lists",{params:e})},t.getMessageLists=function(){return n.default.get("notice/index")},t.getNoticeLists=function(e){return n.default.get("notice/lists",{params:e})},t.getPoster=function(e){return n.default.get("share/sharegoods",{params:e})},t.getSearchpage=function(){return n.default.get("search_record/lists")},t.selectedOpt=function(e){return n.default.post("cart/selected",e)};var n=l(a("21ce"));a("0aec")},cc11:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={onPageScroll:function(e){this.handlePageScroll(e)},onReachBottom:function(){this.handleReachBottom()},onPullDownRefresh:function(){this.handlePullDownRefresh()},data:function(){var e=this;return{mescroll:{onPageScroll:function(t){e.handlePageScroll(t)},onReachBottom:function(){e.handleReachBottom()},onPullDownRefresh:function(){e.handlePullDownRefresh()}}}},methods:{handlePageScroll:function(e){var t=this.$refs["mescrollItem"];t&&t.mescroll&&t.mescroll.onPageScroll(e)},handleReachBottom:function(){var e=this.$refs["mescrollItem"];e&&e.mescroll&&e.mescroll.onReachBottom()},handlePullDownRefresh:function(){var e=this.$refs["mescrollItem"];e&&e.mescroll&&e.mescroll.onPullDownRefresh()}}};t.default=l},d08f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=["em-smile","em-laughing","em-blush","em-smiley","em-relaxed","em-smirk","em-heart_eyes","em-kissing_heart","em-kissing_closed_eyes","em-flushed","em-relieved","em-satisfied","em-grin","em-wink","em-stuck_out_tongue_winking_eye","em-stuck_out_tongue_closed_eyes","em-grinning","em-kissing","em-kissing_smiling_eyes","em-stuck_out_tongue","em-sleeping","em-worried","em-frowning","em-anguished","em-open_mouth","em-grimacing","em-confused","em-hushed","em-expressionless","em-unamused","em-sweat_smile","em-sweat","em-disappointed_relieved","em-weary","em-pensive","em-disappointed","em-confounded","em-fearful","em-cold_sweat","em-persevere","em-cry","em-sob","em-joy","em-astonished","em-scream","em-tired_face","em-angry","em-rage","em-triumph","em-sleepy","em-yum","em-mask","em-dizzy_face","em-sunglasses","em-imp","em-smiling_imp","em-neutral_face","em-no_mouth","em-innocent","em-alien","em-heart","em-broken_heart","em-hankey","em-thumbsup","em-thumbsdown","em-ok_hand","em-facepunch","em-fist","em-v","em-point_up","em-point_down","em-point_left","em-point_right","em-pray"]},d0d1:function(e,t){e.exports={USER_INFO:"USER_INFO",TOKEN:"TOKEN",BACK_URL:"BACK_URL",CONFIG:"CONFIG",INVITE_CODE:"INVITE_CODE"}},d3b4:function(e,t,a){"use strict";(function(e,l){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var a=t.locale,l=t.locales,n=t.delimiters;if(!P(e,n))return e;O||(O=new v);var r=[];Object.keys(l).forEach((function(e){e!==a&&r.push({locale:e,values:l[e]})})),r.unshift({locale:a,values:l[a]});try{return JSON.stringify(A(JSON.parse(e),r,n),null,2)}catch(o){}return e},t.hasI18nJson=function e(t,a){O||(O=new v);return T(t,(function(t,l){var n=t[l];return S(n)?!!P(n,a)||void 0:e(n,a)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var n=[t,e];e=n[0],t=n[1]}"string"!==typeof e&&(e=x());"string"!==typeof a&&(a="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var r=new w({locale:e,fallbackLocale:a,messages:t,watcher:l}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return r.t(e,t)};else{var a=!1;o=function(e,t){var l=getApp().$vm;return l&&(l.$locale,a||(a=!0,_(l,r))),r.t(e,t)}}return o(e,t)};return{i18n:r,f:function(e,t,a){return r.f(e,t,a)},t:function(e,t){return o(e,t)},add:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.add(e,t,a)},watch:function(e){return r.watchLocale(e)},getLocale:function(){return r.getLocale()},setLocale:function(e){return r.setLocale(e)}}},t.isI18nStr=P,t.isString=void 0,t.normalizeLocale=y,t.parseI18nJson=function e(t,a,l){O||(O=new v);return T(t,(function(t,n){var r=t[n];S(r)?P(r,l)&&(t[n]=k(r,a,l)):e(r,a,l)})),t},t.resolveLocale=function(e){return function(t){return t?(t=y(t)||t,function(e){var t=[],a=e.split("-");while(a.length)t.push(a.join("-")),a.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var r=n(a("34cf")),o=n(a("67ad")),i=n(a("0bdb")),u=n(a("3b2d")),s=function(e){return null!==e&&"object"===(0,u.default)(e)},c=["{","}"],v=function(){function e(){(0,o.default)(this,e),this._caches=Object.create(null)}return(0,i.default)(e,[{key:"interpolate",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!t)return[e];var l=this._caches[e];return l||(l=b(e,a),this._caches[e]=l),h(l,t)}}]),e}();t.Formatter=v;var f=/^(?:\d)+/,p=/^(?:\w)+/;function b(e,t){var a=(0,r.default)(t,2),l=a[0],n=a[1],o=[],i=0,u="";while(i-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var a=["en","fr","es"];t&&Object.keys(t).length>0&&(a=Object.keys(t));var l=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,a);return l||void 0}}var w=function(){function e(t){var a=t.locale,l=t.fallbackLocale,n=t.messages,r=t.watcher,i=t.formater;(0,o.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],l&&(this.fallbackLocale=l),this.formater=i||m,this.messages=n||{},this.setLocale(a||"en"),r&&this.watchLocale(r)}return(0,i.default)(e,[{key:"setLocale",value:function(e){var t=this,a=this.locale;this.locale=y(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],a!==this.locale&&this.watchers.forEach((function(e){e(t.locale,a)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,a=this.watchers.push(e)-1;return function(){t.watchers.splice(a,1)}}},{key:"add",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=this.messages[e];l?a?Object.assign(l,t):Object.keys(t).forEach((function(e){g(l,e)||(l[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,a){return this.formater.interpolate(e,t,a).join("")}},{key:"t",value:function(e,t,a){var l=this.message;return"string"===typeof t?(t=y(t,this.messages),t&&(l=this.messages[t])):a=t,g(l,e)?this.formater.interpolate(l[e],a).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function _(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function x(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof l&&l.getLocale?l.getLocale():"en"}t.I18n=w;var O,S=function(e){return"string"===typeof e};function P(e,t){return e.indexOf(t[0])>-1}function k(e,t,a){return O.interpolate(e,t,a).join("")}function A(e,t,a){return T(e,(function(e,l){(function(e,t,a,l){var n=e[t];if(S(n)){if(P(n,l)&&(e[t]=k(n,a[0].values,l),a.length>1)){var r=e[t+"Locales"]={};a.forEach((function(e){r[e.locale]=k(n,e.values,l)}))}}else A(n,a,l)})(e,l,t,a)})),e}function T(e,t){if(Array.isArray(e)){for(var a=0;a>16&255):64===l?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return n}:atob;var m=Object.prototype.toString,y=Object.prototype.hasOwnProperty;function w(e){return"function"===typeof e}function _(e){return"string"===typeof e}function x(e){return"[object Object]"===m.call(e)}function O(e,t){return y.call(e,t)}function S(){}function P(e){var t=Object.create(null);return function(a){var l=t[a];return l||(t[a]=e(a))}}var k=/-(\w)/g,A=P((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))}));function T(e){var t={};return x(e)&&Object.keys(e).sort().forEach((function(a){t[a]=e[a]})),Object.keys(t)?t:e}var j=["invoke","success","fail","complete","returnValue"],C={},E={};function L(e,t){Object.keys(t).forEach((function(a){-1!==j.indexOf(a)&&w(t[a])&&(e[a]=function(e,t){var a=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return a?function(e){for(var t=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(a){if(Array.isArray(e[a])){var l=t[a];t[a]=function(n){I(e[a],n,t).then((function(e){return w(l)&&l(e)||e}))}}})),t}function N(e,t){var a=[];Array.isArray(C.returnValue)&&a.push.apply(a,(0,s.default)(C.returnValue));var l=E[e];return l&&Array.isArray(l.returnValue)&&a.push.apply(a,(0,s.default)(l.returnValue)),a.forEach((function(e){t=e(t)||t})),t}function B(e){var t=Object.create(null);Object.keys(C).forEach((function(e){"returnValue"!==e&&(t[e]=C[e].slice())}));var a=E[e];return a&&Object.keys(a).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(a[e]))})),t}function U(e,t,a){for(var l=arguments.length,n=new Array(l>3?l-3:0),r=3;r0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length,n=new Array(l>1?l-1:0),r=1;r-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var a=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return a||void 0}}function ue(){if(w(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return ne()}var se=[];"undefined"!==typeof l&&(l.getLocale=ue);var ce={promiseInterceptor:z},ve=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:ue,setLocale:function(e){var t=!!w(getApp)&&getApp();if(!t)return!1;var a=t.$vm.$locale;return a!==e&&(t.$vm.$locale=e,se.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===se.indexOf(e)&&se.push(e)},addInterceptor:function(e,t){"string"===typeof e&&x(t)?L(E[e]||(E[e]={}),t):x(e)&&L(C,e)},removeInterceptor:function(e,t){"string"===typeof e?x(t)?M(E[e],t):delete E[e]:x(e)&&M(C,e)},interceptors:ce});var fe,pe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),a=t.length;while(a--){var l=t[a];if(l.$page&&l.$page.fullPath===e)return a}return-1}(e.url);if(-1!==t){var a=getCurrentPages().length-1-t;a>0&&(e.delta=a)}}}},be={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var a=e.urls;if(Array.isArray(a)){var l=a.length;if(l)return t<0?t=0:t>=l&&(t=l-1),t>0?(e.current=a[t],e.urls=a.filter((function(e,l){return!(l2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(x(t)){var r=!0===n?t:{};for(var o in w(a)&&(a=a(t,r)||{}),t)if(O(a,o)){var i=a[o];w(i)&&(i=i(t[o],t,r)),i?_(i)?r[i]=t[o]:x(i)&&(r[i.name?i.name:o]=i.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==Te.indexOf(o)?w(t[o])&&(r[o]=je(e,t[o],l)):n||(r[o]=t[o]);return r}return w(t)&&(t=je(e,t,l)),t}function Ee(e,t,a){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w(Ae.returnValue)&&(t=Ae.returnValue(e,t)),Ce(e,t,a,{},l)}function Le(t,a){if(O(Ae,t)){var l=Ae[t];return l?function(a,n){var r=l;w(l)&&(r=l(a)),a=Ce(t,a,r.args,r.returnValue);var o=[a];"undefined"!==typeof n&&o.push(n),w(r.name)?t=r.name(a):_(r.name)&&(t=r.name);var i=e[t].apply(e,o);return K(t)?Ee(t,i,r.returnValue,G(t)):i}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return a}var Me=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Me[e]=function(e){return function(t){var a=t.fail,l=t.complete,n={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};w(a)&&a(n),w(l)&&l(n)}}(e)}));var De={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Re=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,a=e.success,l=e.fail,n=e.complete,r=!1;De[t]?(r={errMsg:"getProvider:ok",service:t,provider:De[t]},w(a)&&a(r)):(r={errMsg:"getProvider:fail service not found"},w(l)&&l(r)),w(n)&&n(r)}}),Ie=function(){var e;return function(){return e||(e=new f.default),e}}();function $e(e,t,a){return e[t].apply(e,a)}var Ne,Be,Ue,ze=Object.freeze({__proto__:null,$on:function(){return $e(Ie(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return $e(Ie(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return $e(Ie(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return $e(Ie(),"$emit",Array.prototype.slice.call(arguments))}});function He(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Fe(e){try{return JSON.parse(e)}catch(t){}return e}var qe=[];function Ve(e,t){qe.forEach((function(a){a(e,t)})),qe.length=0}var We=[];var Ge=e.getAppBaseInfo&&e.getAppBaseInfo();Ge||(Ge=e.getSystemInfoSync());var Ke=Ge?Ge.host:null,Xe=Ke&&"SAAASDK"===Ke.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Je=Object.freeze({__proto__:null,shareVideoMessage:Xe,getPushClientId:function(e){x(e)||(e={});var t=function(e){var t={};for(var a in e){var l=e[a];w(l)&&(t[a]=He(l),delete e[a])}return t}(e),a=t.success,l=t.fail,n=t.complete,r=w(a),o=w(l),i=w(n);Promise.resolve().then((function(){"undefined"===typeof Ue&&(Ue=!1,Ne="",Be="uniPush is not enabled"),qe.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},r&&a(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&l(u)),i&&n(u)})),"undefined"!==typeof Ne&&Ve(Ne,Be)}))},onPushMessage:function(e){-1===We.indexOf(e)&&We.push(e)},offPushMessage:function(e){if(e){var t=We.indexOf(e);t>-1&&We.splice(t,1)}else We.length=0},invokePushCallback:function(e){if("enabled"===e.type)Ue=!0;else if("clientId"===e.type)Ne=e.cid,Be=e.errMsg,Ve(Ne,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Fe(e.message)},a=0;a1?t-1:0),l=1;l=0;r--){var o=n[r];if(o.$scope._$vueId===a)return o}for(var i=n.length-1;i>=0;i--)if(l=e(n[i],a),l)return l}(this.$vm,l)),t||(t=this.$vm),n.parent=t}function lt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function nt(e){return function(e){return null!==e&&"object"===(0,c.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,i.default)({},"__v_skip",!0)}),e}var rt=/_(.*)_worklet_factory_/;var ot=Page,it=Component,ut=/:/g,st=P((function(e){return A(e.replace(ut,"-"))}));function ct(e){var t=e.triggerEvent,a=function(e){for(var a=arguments.length,l=new Array(a>1?a-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return vt("onLoad",e),ot(e)},Page.after=ot.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vt("created",e),it(e)});function ft(e,t,a){t.forEach((function(t){(function e(t,a){if(!a)return!0;if(f.default.options&&Array.isArray(f.default.options[t]))return!0;if(a=a.default||a,w(a))return!!w(a.extendOptions[t])||!!(a.super&&a.super.options&&Array.isArray(a.super.options[t]));if(w(a[t])||Array.isArray(a[t]))return!0;var l=a.mixins;return Array.isArray(l)?!!l.find((function(a){return e(t,a)})):void 0})(t,a)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function pt(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];bt(t).forEach((function(t){return ht(e,t,a)}))}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(a){0===a.indexOf("on")&&w(e[a])&&t.push(a)})),t}function ht(e,t,a){-1!==a.indexOf(t)||O(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function dt(e,t){var a;return t=t.default||t,a=w(t)?t:e.extend(t),t=a.options,[a,t]}function gt(e,t){if(Array.isArray(t)&&t.length){var a=Object.create(null);t.forEach((function(e){a[e]=!0})),e.$scopedSlots=e.$slots=a}}function mt(e,t){e=(e||"").split(",");var a=e.length;1===a?t._$vueId=e[0]:2===a&&(t._$vueId=e[0],t._$vuePid=e[1])}function yt(e,t){var a=e.data||{},l=e.methods||{};if("function"===typeof a)try{a=a.call(t)}catch(n){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"likeshop多商户",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/",VUE_APP_BASE_API:""}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",a)}else try{a=JSON.parse(JSON.stringify(a))}catch(n){}return x(a)||(a={}),Object.keys(l).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||O(a,e)||(a[e]=l[e])})),a}var wt=[String,Number,Boolean,Object,Array,null];function _t(e){return function(t,a){this.$vm&&(this.$vm[e]=t)}}function xt(e,t){var a=e.behaviors,l=e.extends,n=e.mixins,r=e.props;r||(e.props=r=[]);var o=[];return Array.isArray(a)&&a.forEach((function(e){o.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(r)?(r.push("name"),r.push("value")):(r.name={type:String,default:""},r.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),x(l)&&l.props&&o.push(t({properties:St(l.props,!0)})),Array.isArray(n)&&n.forEach((function(e){x(e)&&e.props&&o.push(t({properties:St(e.props,!0)}))})),o}function Ot(e,t,a,l){return Array.isArray(t)&&1===t.length?t[0]:t}function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>3?arguments[3]:void 0,l={};return t||(l.vueId={type:String,value:""},a.virtualHost&&(l.virtualHostStyle={type:null,value:""},l.virtualHostClass={type:null,value:""}),l.scopedSlotsCompiler={type:String,value:""},l.vueSlots={type:null,value:[],observer:function(e,t){var a=Object.create(null);e.forEach((function(e){a[e]=!0})),this.setData({$slots:a})}}),Array.isArray(e)?e.forEach((function(e){l[e]={type:null,observer:_t(e)}})):x(e)&&Object.keys(e).forEach((function(t){var a=e[t];if(x(a)){var n=a.default;w(n)&&(n=n()),a.type=Ot(0,a.type),l[t]={type:-1!==wt.indexOf(a.type)?a.type:null,value:n,observer:_t(t)}}else{var r=Ot(0,a);l[t]={type:-1!==wt.indexOf(r)?r:null,observer:_t(t)}}})),l}function Pt(e,t,a,l){var n={};return Array.isArray(t)&&t.length&&t.forEach((function(t,r){"string"===typeof t?t?"$event"===t?n["$"+r]=a:"arguments"===t?n["$"+r]=a.detail&&a.detail.__args__||l:0===t.indexOf("$event.")?n["$"+r]=e.__get_value(t.replace("$event.",""),a):n["$"+r]=e.__get_value(t):n["$"+r]=e:n["$"+r]=function(e,t){var a=e;return t.forEach((function(t){var l=t[0],n=t[2];if(l||"undefined"!==typeof n){var r,o=t[1],i=t[3];Number.isInteger(l)?r=l:l?"string"===typeof l&&l&&(r=0===l.indexOf("#s#")?l.substr(3):e.__get_value(l,a)):r=a,Number.isInteger(r)?a=n:o?Array.isArray(r)?a=r.find((function(t){return e.__get_value(o,t)===n})):x(r)?a=Object.keys(r).find((function(t){return e.__get_value(o,r[t])===n})):console.error("v-for 暂不支持循环数据:",r):a=r[n],i&&(a=e.__get_value(i,a))}})),a}(e,t)})),n}function kt(e){for(var t={},a=1;a2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,o=!1,i=x(t.detail)&&t.detail.__args__||[t.detail];if(n&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!a.length))return o?[t]:i;var u=Pt(e,l,t,i),s=[];return a.forEach((function(e){"$event"===e?"__set_model"!==r||n?n&&!o?s.push(i[0]):s.push(t):s.push(t.target.value):Array.isArray(e)&&"o"===e[0]?s.push(kt(e)):"string"===typeof e&&O(u,e)?s.push(u[e]):s.push(e)})),s}function Tt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=S,e.preventDefault=S,e.target=e.target||{},O(e,"detail")||(e.detail={}),O(e,"markerId")&&(e.detail="object"===(0,c.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),x(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var a=(e.currentTarget||e.target).dataset;if(!a)return console.warn("事件信息不存在");var l=a.eventOpts||a["event-opts"];if(!l)return console.warn("事件信息不存在");var n=e.type,r=[];return l.forEach((function(a){var l=a[0],o=a[1],i="^"===l.charAt(0);l=i?l.slice(1):l;var u="~"===l.charAt(0);l=u?l.slice(1):l,o&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(n,l)&&o.forEach((function(a){var l=a[0];if(l){var n=t.$vm;if(n.$options.generic&&(n=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(n)||n),"$emit"===l)return void n.$emit.apply(n,At(t.$vm,e,a[1],a[2],i,l));var o=n[l];if(!w(o)){var s="page"===t.$vm.mpType?"Page":"Component",c=t.route||t.is;throw new Error("".concat(s,' "').concat(c,'" does not have a method "').concat(l,'"'))}if(u){if(o.once)return;o.once=!0}var v=At(t.$vm,e,a[1],a[2],i,l);v=Array.isArray(v)?v:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(v=v.concat([,,,,,,,,,,e])),r.push(o.apply(n,v))}}))})),"input"===n&&1===r.length&&"undefined"!==typeof r[0]?r[0]:void 0}var jt={};var Ct=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Et(){f.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=f.default.prototype.__call_hook;f.default.prototype.__call_hook=function(t,a){return"onLoad"===t&&a&&a.__id__&&(this.__eventChannel__=function(e){var t=jt[e];return delete jt[e],t}(a.__id__),delete a.__id__),e.call(this,t,a)}}function Lt(t,a){var l=a.mocks,n=a.initRefs;Et(),function(){var e={},t={};function a(e){var t=this.$options.propsData.vueId;if(t){var a=t.split(",")[0];e(a)}}f.default.prototype.$hasSSP=function(a){var l=e[a];return l||(t[a]=this,this.$on("hook:destroyed",(function(){delete t[a]}))),l},f.default.prototype.$getSSP=function(t,a,l){var n=e[t];if(n){var r=n[a]||[];return l?r:r[0]}},f.default.prototype.$setSSP=function(t,l){var n=0;return a.call(this,(function(a){var r=e[a],o=r[t]=r[t]||[];o.push(l),n=o.length-1})),n},f.default.prototype.$initSSP=function(){a.call(this,(function(t){e[t]={}}))},f.default.prototype.$callSSP=function(){a.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},f.default.mixin({destroyed:function(){var a=this.$options.propsData,l=a&&a.vueId;l&&(delete e[l],delete t[l])}})}(),t.$options.store&&(f.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=g(),a=t.role;return a.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=g(),a=t.permission;return this.uniIDHasRole("admin")||a.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=g(),t=e.tokenExpired;return t>Date.now()}}(f.default),f.default.prototype.mpHost="mp-weixin",f.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,i.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(n(this),function(e,t){var a=e.$mp[e.mpType];t.forEach((function(t){O(a,t)&&(e[t]=a[t])}))}(this,l))}}});var r={onLaunch:function(a){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",a),this.$vm.__call_hook("onLaunch",a))}};r.globalData=t.$options.globalData||{};var o=t.$options.methods;return o&&Object.keys(o).forEach((function(e){r[e]=o[e]})),function(e,t,a){var l=e.observable({locale:a||re.getLocale()}),n=[];t.$watchLocale=function(e){n.push(e)},Object.defineProperty(t,"$locale",{get:function(){return l.locale},set:function(e){l.locale=e,n.forEach((function(t){return t(e)}))}})}(f.default,t,function(){var t,a=e.getAppBaseInfo(),l=a&&a.language?a.language:"en";return t=ie(l)||"en",t}()),ft(r,Ct),pt(r,t.$options),r}function Mt(e){return Lt(e,{mocks:Ye,initRefs:tt})}function Dt(e){return App(Mt(e)),e}var Rt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},$t=/%2C/g,Nt=function(e){return encodeURIComponent(e).replace(Rt,It).replace($t,",")};function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,a=e?Object.keys(e).map((function(a){var l=e[a];if(void 0===l)return"";if(null===l)return t(a);if(Array.isArray(l)){var n=[];return l.forEach((function(e){void 0!==e&&(null===e?n.push(t(a)):n.push(t(a)+"="+t(e)))})),n.join("&")}return t(a)+"="+t(l)})).filter((function(e){return e.length>0})).join("&"):null;return a?"?".concat(a):""}function Ut(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.isPage,l=t.initRelation,n=arguments.length>2?arguments[2]:void 0,r=dt(f.default,e),i=(0,o.default)(r,2),u=i[0],s=i[1],c=b({multipleSlots:!0,addGlobalClass:!0},s.options||{});s["mp-weixin"]&&s["mp-weixin"].options&&Object.assign(c,s["mp-weixin"].options);var v={options:c,data:yt(s,f.default.prototype),behaviors:xt(s,Qe),properties:St(s.props,!1,s.__file,c),lifetimes:{attached:function(){var e=this.properties,t={mpType:a.call(this)?"page":"component",mpInstance:this,propsData:e};mt(e.vueId,this),l.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),gt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:at,__e:Tt}};return s.externalClasses&&(v.externalClasses=s.externalClasses),Array.isArray(s.wxsCallMethods)&&s.wxsCallMethods.forEach((function(e){v.methods[e]=function(t){return this.$vm[e](t)}})),n?[v,s,u]:a?v:[v,u]}(e,{isPage:Ze,initRelation:et},t)}var zt=["onShow","onHide","onUnload"];function Ht(e){var t=Ut(e,!0),a=(0,o.default)(t,2),l=a[0],n=a[1];return ft(l.methods,zt,n),l.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Bt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},pt(l.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(a){var l=a.match(rt);if(l){var n=l[1];e[a]=t[a],e[n]=t[n]}}))}(l.methods,n.methods),l}function Ft(e){return Component(function(e){return Ht(e)}(e))}function qt(e){return Component(Ut(e))}function Vt(t){var a=Mt(t),l=getApp({allowDefault:!0});t.$scope=l;var n=l.globalData;if(n&&Object.keys(a.globalData).forEach((function(e){O(n,e)||(n[e]=a.globalData[e])})),Object.keys(a).forEach((function(e){O(l,e)||(l[e]=a[e])})),w(a.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,a=new Array(e),l=0;l0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}},e4fb:function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.getUserProfile=function(){return new Promise((function(t,a){e.getUserProfile({desc:"获取用户信息,完善用户资料 ",success:function(e){t(e)},fail:function(e){}})}))},t.getWxCode=f,t.toLogin=void 0,t.wxMnpLogin=p;var n=l(a("7eb4")),r=l(a("ee10")),o=a("7a03"),i=a("0aec"),u=l(a("31f5")),s=l(a("3f13")),c=a("d0d1"),v=a("25af");l(a("d3f1")),a("6495");function f(){return new Promise((function(t,a){e.login({success:function(e){t(e.code)},fail:function(e){a(e)}})}))}function p(){return b.apply(this,arguments)}function b(){return b=(0,r.default)(n.default.mark((function e(){var t,a,l,r,p,b,h,d,g;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:return t=e.sent,e.next=5,(0,o.silentLogin)({code:t});case 5:if(a=e.sent,l=a.code,r=a.data,p=(0,i.currentPage)(),b=p.options,h=p.onLoad,d=p.onShow,p.route,1==l){e.next=11;break}return e.abrupt("return");case 11:r.token&&!r.is_new_user&&(u.default.commit("login",r),g=s.default.get(c.INVITE_CODE),g&&((0,v.bindSuperior)({code:g}),s.default.remove(c.INVITE_CODE)),h&&h(b),d&&d());case 12:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}var h=(0,i.trottle)((function(){p()}),1e3);t.toLogin=h}).call(this,a("df3c")["default"])},e6db:function(e,t,a){var l=a("3b2d")["default"];e.exports=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e730:function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("7ca3")),r=a("25af"),o=a("c2cb"),i=a("d0d1"),u=l(a("3f13"));l(a("d3f1")),a("0aec"),a("a381");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;t=r)return e;switch(e){case"%s":return String(t[l++]);case"%d":return Number(t[l++]);case"%j":try{return JSON.stringify(t[l++])}catch(a){return"[Circular]"}break;default:return e}})),u=t[l];l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},g={integer:function(e){return g.number(e)&&parseInt(e,10)===e},float:function(e){return g.number(e)&&!g.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,n.default)(e)&&!g.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(d.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(d.url)},hex:function(e){return"string"===typeof e&&!!e.match(d.hex)}};var m={required:h,whitespace:function(e,t,a,l,n){(/^\s+$/.test(t)||""===t)&&l.push(s(n.messages.whitespace,e.fullField))},type:function(e,t,a,l,r){if(e.required&&void 0===t)h(e,t,a,l,r);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?g[o](t)||l.push(s(r.messages.types[o],e.fullField,e.type)):o&&(0,n.default)(t)!==e.type&&l.push(s(r.messages.types[o],e.fullField,e.type))}},range:function(e,t,a,l,n){var r="number"===typeof e.len,o="number"===typeof e.min,i="number"===typeof e.max,u=t,c=null,v="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(v?c="number":f?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?u!==e.len&&l.push(s(n.messages[c].len,e.fullField,e.len)):o&&!i&&ue.max?l.push(s(n.messages[c].max,e.fullField,e.max)):o&&i&&(ue.max)&&l.push(s(n.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,a,l,n){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&l.push(s(n.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,a,l,n){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||l.push(s(n.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var r=new RegExp(e.pattern);r.test(t)||l.push(s(n.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function y(e,t,a,l,n){var r=e.type,o=[],i=e.required||!e.required&&l.hasOwnProperty(e.field);if(i){if(c(t,r)&&!e.required)return a();m.required(e,t,l,o,n,r),c(t,r)||m.type(e,t,l,o,n)}a(o)}var w={string:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return a();m.required(e,t,l,r,n,"string"),c(t,"string")||(m.type(e,t,l,r,n),m.range(e,t,l,r,n),m.pattern(e,t,l,r,n),!0===e.whitespace&&m.whitespace(e,t,l,r,n))}a(r)},method:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},number:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},boolean:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},regexp:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),c(t)||m.type(e,t,l,r,n)}a(r)},integer:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},float:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},array:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"array")&&!e.required)return a();m.required(e,t,l,r,n,"array"),c(t,"array")||(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},object:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},enum:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m["enum"](e,t,l,r,n)}a(r)},pattern:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return a();m.required(e,t,l,r,n),c(t,"string")||m.pattern(e,t,l,r,n)}a(r)},date:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();var i;if(m.required(e,t,l,r,n),!c(t))i="number"===typeof t?new Date(t):t,m.type(e,i,l,r,n),i&&m.range(e,i.getTime(),l,r,n)}a(r)},url:y,hex:y,email:y,required:function(e,t,a,l,r){var o=[],i=Array.isArray(t)?"array":(0,n.default)(t);m.required(e,t,l,o,r,i),a(o)},any:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n)}a(r)}};function _(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var x=_();function O(e){this.rules=null,this._messages=x,this.define(e)}O.prototype={messages:function(e){return e&&(this._messages=b(_(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,n.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,a;for(t in this.rules={},e)e.hasOwnProperty(t)&&(a=e[t],this.rules[t]=Array.isArray(a)?a:[a])},validate:function(e,t,a){var l=this;void 0===t&&(t={}),void 0===a&&(a=function(){});var o,i,c=e,v=t,h=a;if("function"===typeof v&&(h=v,v={}),!this.rules||0===Object.keys(this.rules).length)return h&&h(),Promise.resolve();if(v.messages){var d=this.messages();d===x&&(d=_()),b(d,v.messages),v.messages=d}else v.messages=this.messages();var g={},m=v.keys||Object.keys(this.rules);m.forEach((function(t){o=l.rules[t],i=c[t],o.forEach((function(a){var n=a;"function"===typeof n.transform&&(c===e&&(c=r({},c)),i=c[t]=n.transform(i)),n="function"===typeof n?{validator:n}:r({},n),n.validator=l.getValidationMethod(n),n.field=t,n.fullField=n.fullField||t,n.type=l.getType(n),n.validator&&(g[t]=g[t]||[],g[t].push({rule:n,value:i,source:c,field:t}))}))}));var y={};return f(g,v,(function(e,t){var a,l=e.rule,o=("object"===l.type||"array"===l.type)&&("object"===(0,n.default)(l.fields)||"object"===(0,n.default)(l.defaultField));function i(e,t){return r({},t,{fullField:l.fullField+"."+e})}function u(a){void 0===a&&(a=[]);var n=a;if(Array.isArray(n)||(n=[n]),!v.suppressWarning&&n.length&&O.warning("async-validator:",n),n.length&&l.message&&(n=[].concat(l.message)),n=n.map(p(l)),v.first&&n.length)return y[l.field]=1,t(n);if(o){if(l.required&&!e.value)return n=l.message?[].concat(l.message).map(p(l)):v.error?[v.error(l,s(v.messages.required,l.field))]:[],t(n);var u={};if(l.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(u[c]=l.defaultField);for(var f in u=r({},u,{},e.rule.fields),u)if(u.hasOwnProperty(f)){var b=Array.isArray(u[f])?u[f]:[u[f]];u[f]=b.map(i.bind(null,f))}var h=new O(u);h.messages(v.messages),e.rule.options&&(e.rule.options.messages=v.messages,e.rule.options.error=v.error),h.validate(e.value,e.rule.options||v,(function(e){var a=[];n&&n.length&&a.push.apply(a,n),e&&e.length&&a.push.apply(a,e),t(a.length?a:null)}))}else t(n)}o=o&&(l.required||!l.required&&e.value),l.field=e.field,l.asyncValidator?a=l.asyncValidator(l,e.value,u,e.source,v):l.validator&&(a=l.validator(l,e.value,u,e.source,v),!0===a?u():!1===a?u(l.message||l.field+" fails"):a instanceof Array?u(a):a instanceof Error&&u(a.message)),a&&a.then&&a.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){(function(e){var t,a=[],l={};function n(e){var t;Array.isArray(e)?a=(t=a).concat.apply(t,e):a.push(e)}for(t=0;t0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){t.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&t.$u.test.array(this.parent.children)){var a=this.parent.children;a.map((function(t,l){t===e&&a.splice(l,1)}))}}}}).call(this,a("df3c")["default"])},f620:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("3b2d"));function r(e){switch((0,n.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}var o={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){return 7===e.length?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/.test(e):8===e.length&&/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:r,isEmpty:r,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,n.default)(t)||!t)}catch(a){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:function(e){return"[object Object]"===Object.prototype.toString.call(e)},array:function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}};t.default=o},f686:function(e,t,a){(function(t){var l=a("bdd7"),n=l.blankChar,r=a("05da"),o=t.getSystemInfoSync().windowWidth;function i(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.attrs={},this.CssHandler=new r(a.tagStyle,o),this.data=e,this.domain=a.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,a.prot=(this.domain||"").includes("://")?this.domain.split("://")[0]:"http",this.options=a,this.state=this.Text,this.STACK=[],this.bubble=function(){for(var e,a=t.STACK.length;e=t.STACK[--a];){if(l.richOnlyTags[e.name])return!1;e.c=1}return!0},this.decode=function(e,t){var a,n,r=-1;while(1){if(-1==(r=e.indexOf("&",r+1)))break;if(-1==(a=e.indexOf(";",r+2)))break;"#"==e[r+1]?(n=parseInt(("x"==e[r+2]?"0":"")+e.substring(r+2,a)),isNaN(n)||(e=e.substr(0,r)+String.fromCharCode(n)+e.substr(a+1))):(n=e.substring(r+1,a),(l.entities[n]||n==t)&&(e=e.substr(0,r)+(l.entities[n]||"&")+e.substr(a+1)))}return e},this.getUrl=function(e){return"/"==e[0]?"/"==e[1]?e=t.options.prot+":"+e:t.domain&&(e=t.domain+e):t.domain&&0!=e.indexOf("data:")&&!e.includes("://")&&(e=t.domain+"/"+e),e},this.isClose=function(){return">"==t.data[t.i]||"/"==t.data[t.i]&&">"==t.data[t.i+1]},this.section=function(){return t.data.substring(t.start,t.i)},this.parent=function(){return t.STACK[t.STACK.length-1]},this.siblings=function(){return t.STACK.length?t.parent().children:t.DOM}}i.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM},i.prototype.setAttr=function(){var e=this.attrName.toLowerCase(),t=this.attrVal;l.boolAttrs[e]?this.attrs[e]="T":t&&("src"==e||"data-src"==e&&!this.attrs.src?this.attrs.src=this.getUrl(this.decode(t,"amp")):"href"==e||"style"==e?this.attrs[e]=this.decode(t,"amp"):"data-"!=e.substr(0,5)&&(this.attrs[e]=t)),this.attrVal="";while(n[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)},i.prototype.setText=function(){var e,t=this.section();if(t)if(t=l.onText&&l.onText(t,(function(){return e=!0}))||t,e){this.data=this.data.substr(0,this.start)+t+this.data.substr(this.i);var a=this.start+t.length;for(this.i=this.start;this.i7&&(s=7);u["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][s-1],r.size=void 0}break;case"embed":var c=e.attrs.src||"",v=e.attrs.type||"";if(v.includes("video")||c.includes(".mp4")||c.includes(".3gp")||c.includes(".m3u8"))e.name="video";else{if(!(v.includes("audio")||c.includes(".m4a")||c.includes(".wav")||c.includes(".mp3")||c.includes(".aac")))break;e.name="audio"}e.attrs.autostart&&(e.attrs.autoplay="T"),e.attrs.controls="T";case"video":case"audio":r.id?this["".concat(e.name,"Num")]++:r.id=e.name+ ++this["".concat(e.name,"Num")],"video"==e.name&&(this.videoNum>3&&(e.lazyLoad=1),r.width&&(u.width=parseFloat(r.width)+(r.width.includes("%")?"%":"px"),r.width=void 0),r.height&&(u.height=parseFloat(r.height)+(r.height.includes("%")?"%":"px"),r.height=void 0)),r.controls||r.autoplay||(r.controls="T"),r.source=[],r.src&&(r.source.push(r.src),r.src=void 0),this.bubble();break;case"td":case"th":if(r.colspan||r.rowspan)for(var f,p=this.STACK.length;f=this.STACK[--p];)if("table"==f.name){f.flag=1;break}}r.align&&("table"==e.name?"center"==r.align?u["margin-inline-start"]=u["margin-inline-end"]="auto":u["float"]=r.align:u["text-align"]=r.align,r.align=void 0);var b,h=i.split(";");i="";for(var d=0,g=h.length;do&&(u.height="",r.height&&(r.height=void 0))),u.height?(r.height=u.height,u.height=""):r.height&&!r.height.includes("%")&&(r.height=parseFloat(r.height)+"px");for(var _ in u){var x=u[_];if(x){if((_.includes("flex")||"order"==_||"self-align"==_)&&(e.c=1),x.includes("url")){var O=x.indexOf("(");if(-1!=O++){while('"'==x[O]||"'"==x[O]||n[x[O]])O++;x=x.substr(0,O)+this.getUrl(x.substr(O))}}else x.includes("rpx")?x=x.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*o/750+"px"})):"white-space"==_&&x.includes("pre")&&!t&&(this.pre=e.pre=!0);i+=";".concat(_,":").concat(x)}}i=i.substr(1),i&&(r.style=i),t?l.filter&&0==l.filter(e,this)||this.siblings().push(e):(e.children=[],"pre"==e.name&&l.highlight&&(this.remove(e),this.pre=e.pre=!0),this.siblings().push(e),this.STACK.push(e))}"/"==this.data[this.i]&&this.i++,this.start=this.i+1,this.state=this.Text},i.prototype.remove=function(e){var t=this,a=e.name,r=this.i,o=function(){var a=t.data.substring(r,t.i+1);for(var l in e.attrs.xmlns="http://www.w3.org/2000/svg",e.attrs)"viewbox"==l?a=' viewBox="'.concat(e.attrs.viewbox,'"')+a:"style"!=l&&(a=" ".concat(l,'="').concat(e.attrs[l],'"')+a);a="",this.i))&&(this.i=this.data.length),void("svg"==a&&o()))}},i.prototype.popNode=function(e){if(e.pre){e.pre=this.pre=void 0;for(var t=this.STACK.length;t--;)this.STACK[t].pre&&(this.pre=!0)}var a=this.siblings(),n=a.length,r=e.children;if("head"==e.name||l.filter&&0==l.filter(e,this))return a.pop();var o=e.attrs;if(l.blockTags[e.name]?e.name="div":l.trustTags[e.name]||(e.name="span"),e.c&&("ul"==e.name||"ol"==e.name))if((e.attrs.style||"").includes("list-style:none"))for(var i,u=0;i=r[u++];)"li"==i.name&&(i.name="div");else if("ul"==e.name){for(var s=1,c=this.STACK.length;c--;)"ul"==this.STACK[c].name&&s++;if(1!=s)for(var v=r.length;v--;)r[v].floor=s}else for(var f,p=0,b=1;f=r[p++];)"li"==f.name&&(f.type="ol",f.num=function(e,t){if("a"==t)return String.fromCharCode(97+(e-1)%26);if("A"==t)return String.fromCharCode(65+(e-1)%26);if("i"==t||"I"==t){e=(e-1)%99+1;var a=(["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"][Math.floor(e/10)-1]||"")+(["I","II","III","IV","V","VI","VII","VIII","IX"][e%10-1]||"");return"i"==t?a.toLowerCase():a}return e}(b++,o.type)+".");if("table"==e.name){var h=parseFloat(o.cellpadding),d=parseFloat(o.cellspacing),g=parseFloat(o.border);if(e.c&&(isNaN(h)&&(h=2),isNaN(d)&&(d=2)),g&&(o.style="border:".concat(g,"px solid gray;").concat(o.style||"")),e.flag&&e.c){o.style="".concat(o.style||"",";").concat(d?";grid-gap:".concat(d,"px"):";border-left:0;border-top:0");var m,y=1,w=1,_=[],x=[],O={};(function e(t){for(var a=0;a="a"&&e<="z"||e>="A"&&e<="Z"};a(t)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==t?(this.setText(),a(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"!=t&&"?"!=t||(this.setText(),this.Comment())}},i.prototype.Comment=function(){var e;e="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(e,this.i+2))?this.i=this.data.length:this.i+=e.length-1,this.start=this.i+1,this.state=this.Text},i.prototype.TagName=function(e){if(n[e]){this.tagName=this.section();while(n[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())},i.prototype.AttrName=function(e){if("="==e||n[e]||this.isClose()){if(this.attrName=this.section(),n[e])while(n[this.data[++this.i]]);if("="==this.data[this.i]){while(n[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else this.setAttr()}},i.prototype.AttrValue=function(e){if('"'==e||"'"==e){if(this.start++,-1==(this.i=this.data.indexOf(e,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!n[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()},i.prototype.EndTag=function(e){if(n[e]||">"==e||"/"==e){for(var t=this.section().toLowerCase(),a=this.STACK.length;a--;)if(this.STACK[a].name==t)break;if(-1!=a){var l;while((l=this.STACK.pop()).name!=t)this.popNode(l);this.popNode(l)}else"p"!=t&&"br"!=t||this.siblings().push({name:t,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}},e.exports=i}).call(this,a("df3c")["default"])},f6b3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))};t.default=l},fc75:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={data:function(){return{wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0},renderBiz:{propObserver:function(){}}}},methods:{wxsCall:function(e){"setWxsProp"===e.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===e.type?(this.downLoadType=e.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===e.type?this.mescroll.triggerDownScroll():"endDownScroll"===e.type?this.mescroll.endDownScroll():"triggerUpScroll"===e.type&&this.mescroll.triggerUpScroll(!0)}},mounted:function(){var e=this;this.mescroll.optDown.afterLoading=function(){e.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=function(){e.callProp={callType:"endDownScroll",t:Date.now()};var t=300+(e.mescroll.optDown.beforeEndDelay||0);setTimeout((function(){4!==e.downLoadType&&0!==e.downLoadType||(e.callProp={callType:"clearTransform",t:Date.now()}),e.$set(e.mescroll,"downLoadType",e.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}},n=l;t.default=n},fcc3:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.getLiveLists=function(e){return n.default.get("live/lists",{params:e})},t.getShopLive=function(e){return n.default.get("live/shopLive",{params:e})};var n=l(a("21ce"))}}]); \ No newline at end of file +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=function(){return a},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,a={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,a){e[t]=a.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",v=u.toStringTag||"@@toStringTag";function f(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,a){return e[t]=a}}function p(e,t,a,l){var n=t&&t.prototype instanceof y?t:y,r=Object.create(n.prototype),o=new L(l||[]);return i(r,"_invoke",{value:T(e,a,o)}),r}function b(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}a.wrap=p;var h="suspendedStart",d="executing",g="completed",m={};function y(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(M([])));S&&S!==r&&o.call(S,s)&&(x=S);var P=_.prototype=y.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function a(n,r,i,u){var s=b(e[n],e,r);if("throw"!==s.type){var c=s.arg,v=c.value;return v&&"object"==l(v)&&o.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,i,u)}),(function(e){a("throw",e,i,u)})):t.resolve(v).then((function(e){c.value=e,i(c)}),(function(e){return a("throw",e,i,u)}))}u(s.arg)}var n;i(this,"_invoke",{value:function(e,l){function r(){return new t((function(t,n){a(e,l,t,n)}))}return n=n?n.then(r,r):r()}})}function T(e,a,l){var n=h;return function(r,o){if(n===d)throw Error("Generator is already running");if(n===g){if("throw"===r)throw o;return{value:t,done:!0}}for(l.method=r,l.arg=o;;){var i=l.delegate;if(i){var u=j(i,l);if(u){if(u===m)continue;return u}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(n===h)throw n=g,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);n=d;var s=b(e,a,l);if("normal"===s.type){if(n=l.done?g:"suspendedYield",s.arg===m)continue;return{value:s.arg,done:l.done}}"throw"===s.type&&(n=g,l.method="throw",l.arg=s.arg)}}}function j(e,a){var l=a.method,n=e.iterator[l];if(n===t)return a.delegate=null,"throw"===l&&e.iterator["return"]&&(a.method="return",a.arg=t,j(e,a),"throw"===a.method)||"return"!==l&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+l+"' method")),m;var r=b(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,m;var o=r.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,m):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(e){if(e||""===e){var a=e[s];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function a(){for(;++n=0;--n){var r=this.tryEntries[n],i=r.completion;if("root"===r.tryLoc)return l("end");if(r.tryLoc<=this.prev){var u=o.call(r,"catchLoc"),s=o.call(r,"finallyLoc");if(u&&s){if(this.prev=0;--a){var l=this.tryEntries[a];if(l.tryLoc<=this.prev&&o.call(l,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var l=a.completion;if("throw"===l.type){var n=l.arg;E(a)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,a,l){return this.delegate={iterator:M(e),resultName:a,nextLoc:l},"next"===this.method&&(this.arg=t),m}},a}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},a381:function(e,t,a){var l={development:"",production:"[baseUrl]"},n=l["production"];e.exports={version:"3.1.5",baseURL:n,basePath:"/mobile"}},a3fc:function(e,t,a){(function(e){function a(e,t){for(var a=0,l=e.length-1;l>=0;l--){var n=e[l];"."===n?e.splice(l,1):".."===n?(e.splice(l,1),a++):a&&(e.splice(l,1),a--)}if(t)for(;a--;a)e.unshift("..");return e}function l(e,t){if(e.filter)return e.filter(t);for(var a=[],l=0;l=-1&&!n;r--){var o=r>=0?arguments[r]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return t=a(l(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===n(e,-1);return e=a(l(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(l(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,a){function l(e){for(var t=0;t=0;a--)if(""!==e[a])break;return t>a?[]:e.slice(t,a-t+1)}e=t.resolve(e).substr(1),a=t.resolve(a).substr(1);for(var n=l(e.split("/")),r=l(a.split("/")),o=Math.min(n.length,r.length),i=o,u=0;u=1;--r)if(t=e.charCodeAt(r),47===t){if(!n){l=r;break}}else n=!1;return-1===l?a?"/":".":a&&1===l?"/":e.slice(0,l)},t.basename=function(e,t){var a=function(e){"string"!==typeof e&&(e+="");var t,a=0,l=-1,n=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!n){a=t+1;break}}else-1===l&&(n=!1,l=t+1);return-1===l?"":e.slice(a,l)}(e);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,a=0,l=-1,n=!0,r=0,o=e.length-1;o>=0;--o){var i=e.charCodeAt(o);if(47!==i)-1===l&&(n=!1,l=o+1),46===i?-1===t?t=o:1!==r&&(r=1):-1!==t&&(r=-1);else if(!n){a=o+1;break}}return-1===t||-1===l||0===r||1===r&&t===l-1&&t===a+1?"":e.slice(t,l)};var n="b"==="ab".substr(-1)?function(e,t,a){return e.substr(t,a)}:function(e,t,a){return t<0&&(t=e.length+t),e.substr(t,a)}}).call(this,a("28d0"))},a708:function(e,t,a){var l=a("6454");e.exports=function(e){if(Array.isArray(e))return l(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a8b3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toast:999,noNetwork:10080,popup:901,mask:900,navbar:880,topTips:975,sticky:870,indexListSticky:965}},af34:function(e,t,a){var l=a("a708"),n=a("b893"),r=a("6382"),o=a("9008");e.exports=function(e){return l(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},b013:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.children=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.indexKey;return{inject:(0,o.default)({},e,{default:null}),watch:{el:{handler:function(e,t){JSON.stringify(e)!=JSON.stringify(t)&&this.bindRelation()},deep:!0,immediate:!0},src:{handler:function(e,t){e!=t&&this.bindRelation()},immediate:!0},text:{handler:function(e,t){e!=t&&this.bindRelation()},immediate:!0},css:{handler:function(e,t){e!=t&&(this.el.css="object"==(0,r.default)(e)?e:e&&Object.assign.apply(Object,(0,n.default)(i(e)))||{})},immediate:!0},replace:{handler:function(e,t){JSON.stringify(e)!=JSON.stringify(t)&&this.bindRelation()},deep:!0,immediate:!0}},created:function(){var t=this;Object.defineProperty(this,"parent",{get:function(){return t[e]}}),Object.defineProperty(this,"index",{get:function(){var e,a;return t.bindRelation(),null===(e=t.parent)||void 0===e||null===(a=e.el.views)||void 0===a?void 0:a.indexOf(t.el)}}),this.el.type=this.type},beforeDestroy:function(){var e=this;this.parent&&(this.parent.el.views=this.parent.el.views.filter((function(t){return t._uid!==e._uid})))},methods:{bindRelation:function(){var e,t,a,l,r=this;(this.el._uid||(this.el._uid=this._uid),["text","qrcode"].includes(this.type))&&(this.el.text=(null===(e=this.$slots)||void 0===e||null===(t=e.default)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.text)||(null===(l=this.text)||void 0===l?void 0:l.replace(/\\n/g,"\n")));if("text"==this.type&&this.replace&&(this.el.replace=this.replace),"image"==this.type&&(this.el.src=this.src),this.parent){var o=this.parent.el.views||[];-1!==o.indexOf(this.el)?this.parent.el.views=o.map((function(e){return e._uid==r._uid?r.el:e})):this.parent.el.views=[].concat((0,n.default)(o),[this.el])}}},mounted:function(){this.bindRelation()}}},t.parent=function(e){return{provide:function(){return(0,o.default)({},e,this)},data:function(){return{el:{css:{},views:[]}}},watch:{css:{handler:function(e){var t,a;this.canvasId&&(this.el.css="object"==(0,r.default)(e)?e:e&&Object.assign.apply(Object,(0,n.default)(i(e)))||{},this.canvasWidth=(null===(t=this.el.css)||void 0===t?void 0:t.width)||this.canvasWidth,this.canvasHeight=(null===(a=this.el.css)||void 0===a?void 0:a.height)||this.canvasHeight)},immediate:!0}}}};var n=l(a("af34")),r=l(a("3b2d")),o=l(a("7ca3")),i=(a("56dd"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(";").filter((function(e){return e&&!/^[\n\s]+$/.test(e)})).map((function(e){var t,a,l=e.split(":");return(0,o.default)({},l[0].replace(/-([a-z])/g,(function(){return arguments[1].toUpperCase()})).replace(/\s+/g,""),(null===l||void 0===l||null===(t=l[1])||void 0===t||null===(a=t.replace(/^\s+/,""))||void 0===a?void 0:a.replace(/\s+$/,""))||"")}))})},b698:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};t.default=l},b88d:function(e,t,a){"use strict";function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&a.test(e)){if(4===e.length){for(var l="#",n=1;n<4;n+=1)l+=e.slice(n,n+1).concat(e.slice(n,n+1));e=l}for(var r=[],o=1;o<7;o+=2)r.push(parseInt("0x"+e.slice(o,o+2)));return t?"rgb(".concat(r[0],",").concat(r[1],",").concat(r[2],")"):r}if(/^(rgb|RGB)/.test(e)){var i=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return i.map((function(e){return Number(e)}))}return e}function n(e){var t=e;if(/^(rgb|RGB)/.test(t)){for(var a=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),l="#",n=0;n0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=l(e,!1),o=r[0],i=r[1],u=r[2],s=l(t,!1),c=s[0],v=s[1],f=s[2],p=(c-o)/a,b=(v-i)/a,h=(f-u)/a,d=[],g=0;g1&&void 0!==arguments[1]?arguments[1]:.3;e=n(e);var a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,l=e.toLowerCase();if(l&&a.test(l)){if(4===l.length){for(var r="#",o=1;o<4;o+=1)r+=l.slice(o,o+1).concat(l.slice(o,o+1));l=r}for(var i=[],u=1;u<7;u+=2)i.push(parseInt("0x"+l.slice(u,u+2)));return"rgba("+i.join(",")+","+t+")"}return l}};t.default=r},b893:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},bd42:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.cancelOrder=function(e){return n.default.post("order/cancel",{id:e})},t.confirmOrder=function(e){return n.default.post("order/confirm",{id:e})},t.delOrder=function(e){return n.default.post("order/del",{id:e})},t.getOrderDetail=function(e){return n.default.get("order/getOrderDetail",{params:{id:e}})},t.getOrderList=function(e){return n.default.get("order/lists",{params:e})},t.getPayResult=function(e){return n.default.get("order/pay_result",{params:e})},t.getwechatSyncCheck=function(e){return n.default.get("order/wechatSyncCheck",{params:e})},t.getwxReceiveDetail=function(e){return n.default.get("order/wxReceiveDetail",{params:e})},t.orderBuy=function(e){return n.default.post("order/submitOrder",e)},t.orderInfo=function(e){return n.default.post("order/settlement",e)},t.orderTraces=function(e){return n.default.get("order/orderTraces",{params:{id:e}})};var n=l(a("21ce"));a("0aec")},bdd7:function(e,t,a){(function(t){var a={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:l(" , ,\t,\r,\n,\f"),boolAttrs:l("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:l("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:l("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:l("a,colgroup,fieldset,legend"),selfClosingTags:l("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:l("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function l(e){for(var t=Object.create(null),a=e.split(","),l=a.length;l--;)t[a[l]]=!0;return t}t.canIUse("editor")&&(a.blockTags.pre=void 0,a.ignoreTags.rp=!0,Object.assign(a.richOnlyTags,l("bdi,bdo,caption,rt,ruby")),Object.assign(a.trustTags,l("bdi,bdo,caption,pre,rt,ruby"))),e.exports=a}).call(this,a("3223")["default"])},c2cb:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.addCart=function(e){return n.default.post("cart/add",e)},t.changeCartSelect=function(e){return n.default.post("cart/selected",e)},t.changeGoodsCount=function(e){return n.default.post("cart/change",e)},t.clearSearch=function(){return n.default.post("search_record/clear")},t.deleteGoods=function(e){return n.default.post("cart/del",e)},t.getAdList=function(e){return n.default.get("ad_content/lists",{params:e})},t.getArticleDetail=function(e){var t=e.type,a=t?"help/detail":"article/detail";return delete e.type,n.default.get(a,{params:{id:e.id}})},t.getArticleList=function(e){var t=e.type,a=t?"help/lists":"article/lists";return delete e.type,n.default.get(a,{params:e})},t.getBrandList=function(){return n.default.get("goods_brand/getGoodsBrandList")},t.getCartList=function(){return n.default.get("cart/lists")},t.getCartNum=function(e){return n.default.get("cart/num",{params:e})},t.getCategoryList=function(e){var t=e.type,a=t?"help/category":"article/category";return delete e.type,n.default.get(a)},t.getCatrgory=function(){return n.default.get("goods_category/lists")},t.getCityLists=function(){return n.default.get("index/city")},t.getCommentCategory=function(e){return n.default.get("goods_comment/category",{params:{goods_id:e}})},t.getCommentList=function(e){return n.default.get("goods_comment/lists",{params:e})},t.getGeocoder=function(e){return n.default.get("index/geocoder",{params:e})},t.getEntryCity=function(e){return n.default.get("index/getEntryCity",{params:e})},t.getGoodsColumn=function(){return n.default.get("goods_column/getGoodsColumnList")},t.getGoodsDetail=function(e){return n.default.get("goods/getGoodsDetail",{params:e})},t.getGoodsList=function(e){return n.default.get("goods/getGoodsList",{params:e})},t.getGoodsListColumn=function(e){return n.default.get("goods/getGoodsListByColumnId",{params:e})},t.getHome=function(e){return n.default.get("index/index",{params:e})},t.getIndexCategory=function(e){return n.default.get("index/indexCategory",{params:e})},t.getLevelOneList=function(){return n.default.get("goods_category/getLevelOneList")},t.getListByLevelOne=function(e){return n.default.get("goods_category/getListByLevelOne",{params:e})},t.getMenu=function(e){return n.default.get("menu/lists",{params:e})},t.getMessageLists=function(){return n.default.get("notice/index")},t.getNoticeLists=function(e){return n.default.get("notice/lists",{params:e})},t.getPoster=function(e){return n.default.get("share/sharegoods",{params:e})},t.getSearchpage=function(){return n.default.get("search_record/lists")},t.selectedOpt=function(e){return n.default.post("cart/selected",e)};var n=l(a("21ce"));a("0aec")},cc11:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={onPageScroll:function(e){this.handlePageScroll(e)},onReachBottom:function(){this.handleReachBottom()},onPullDownRefresh:function(){this.handlePullDownRefresh()},data:function(){var e=this;return{mescroll:{onPageScroll:function(t){e.handlePageScroll(t)},onReachBottom:function(){e.handleReachBottom()},onPullDownRefresh:function(){e.handlePullDownRefresh()}}}},methods:{handlePageScroll:function(e){var t=this.$refs["mescrollItem"];t&&t.mescroll&&t.mescroll.onPageScroll(e)},handleReachBottom:function(){var e=this.$refs["mescrollItem"];e&&e.mescroll&&e.mescroll.onReachBottom()},handlePullDownRefresh:function(){var e=this.$refs["mescrollItem"];e&&e.mescroll&&e.mescroll.onPullDownRefresh()}}};t.default=l},d08f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=["em-smile","em-laughing","em-blush","em-smiley","em-relaxed","em-smirk","em-heart_eyes","em-kissing_heart","em-kissing_closed_eyes","em-flushed","em-relieved","em-satisfied","em-grin","em-wink","em-stuck_out_tongue_winking_eye","em-stuck_out_tongue_closed_eyes","em-grinning","em-kissing","em-kissing_smiling_eyes","em-stuck_out_tongue","em-sleeping","em-worried","em-frowning","em-anguished","em-open_mouth","em-grimacing","em-confused","em-hushed","em-expressionless","em-unamused","em-sweat_smile","em-sweat","em-disappointed_relieved","em-weary","em-pensive","em-disappointed","em-confounded","em-fearful","em-cold_sweat","em-persevere","em-cry","em-sob","em-joy","em-astonished","em-scream","em-tired_face","em-angry","em-rage","em-triumph","em-sleepy","em-yum","em-mask","em-dizzy_face","em-sunglasses","em-imp","em-smiling_imp","em-neutral_face","em-no_mouth","em-innocent","em-alien","em-heart","em-broken_heart","em-hankey","em-thumbsup","em-thumbsdown","em-ok_hand","em-facepunch","em-fist","em-v","em-point_up","em-point_down","em-point_left","em-point_right","em-pray"]},d0d1:function(e,t){e.exports={USER_INFO:"USER_INFO",TOKEN:"TOKEN",BACK_URL:"BACK_URL",CONFIG:"CONFIG",INVITE_CODE:"INVITE_CODE"}},d3b4:function(e,t,a){"use strict";(function(e,l){var n=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var a=t.locale,l=t.locales,n=t.delimiters;if(!P(e,n))return e;O||(O=new v);var r=[];Object.keys(l).forEach((function(e){e!==a&&r.push({locale:e,values:l[e]})})),r.unshift({locale:a,values:l[a]});try{return JSON.stringify(A(JSON.parse(e),r,n),null,2)}catch(o){}return e},t.hasI18nJson=function e(t,a){O||(O=new v);return T(t,(function(t,l){var n=t[l];return S(n)?!!P(n,a)||void 0:e(n,a)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var n=[t,e];e=n[0],t=n[1]}"string"!==typeof e&&(e=x());"string"!==typeof a&&(a="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var r=new w({locale:e,fallbackLocale:a,messages:t,watcher:l}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return r.t(e,t)};else{var a=!1;o=function(e,t){var l=getApp().$vm;return l&&(l.$locale,a||(a=!0,_(l,r))),r.t(e,t)}}return o(e,t)};return{i18n:r,f:function(e,t,a){return r.f(e,t,a)},t:function(e,t){return o(e,t)},add:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.add(e,t,a)},watch:function(e){return r.watchLocale(e)},getLocale:function(){return r.getLocale()},setLocale:function(e){return r.setLocale(e)}}},t.isI18nStr=P,t.isString=void 0,t.normalizeLocale=y,t.parseI18nJson=function e(t,a,l){O||(O=new v);return T(t,(function(t,n){var r=t[n];S(r)?P(r,l)&&(t[n]=k(r,a,l)):e(r,a,l)})),t},t.resolveLocale=function(e){return function(t){return t?(t=y(t)||t,function(e){var t=[],a=e.split("-");while(a.length)t.push(a.join("-")),a.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var r=n(a("34cf")),o=n(a("67ad")),i=n(a("0bdb")),u=n(a("3b2d")),s=function(e){return null!==e&&"object"===(0,u.default)(e)},c=["{","}"],v=function(){function e(){(0,o.default)(this,e),this._caches=Object.create(null)}return(0,i.default)(e,[{key:"interpolate",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!t)return[e];var l=this._caches[e];return l||(l=b(e,a),this._caches[e]=l),h(l,t)}}]),e}();t.Formatter=v;var f=/^(?:\d)+/,p=/^(?:\w)+/;function b(e,t){var a=(0,r.default)(t,2),l=a[0],n=a[1],o=[],i=0,u="";while(i-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var a=["en","fr","es"];t&&Object.keys(t).length>0&&(a=Object.keys(t));var l=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,a);return l||void 0}}var w=function(){function e(t){var a=t.locale,l=t.fallbackLocale,n=t.messages,r=t.watcher,i=t.formater;(0,o.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],l&&(this.fallbackLocale=l),this.formater=i||m,this.messages=n||{},this.setLocale(a||"en"),r&&this.watchLocale(r)}return(0,i.default)(e,[{key:"setLocale",value:function(e){var t=this,a=this.locale;this.locale=y(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],a!==this.locale&&this.watchers.forEach((function(e){e(t.locale,a)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,a=this.watchers.push(e)-1;return function(){t.watchers.splice(a,1)}}},{key:"add",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=this.messages[e];l?a?Object.assign(l,t):Object.keys(t).forEach((function(e){g(l,e)||(l[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,a){return this.formater.interpolate(e,t,a).join("")}},{key:"t",value:function(e,t,a){var l=this.message;return"string"===typeof t?(t=y(t,this.messages),t&&(l=this.messages[t])):a=t,g(l,e)?this.formater.interpolate(l[e],a).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function _(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function x(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof l&&l.getLocale?l.getLocale():"en"}t.I18n=w;var O,S=function(e){return"string"===typeof e};function P(e,t){return e.indexOf(t[0])>-1}function k(e,t,a){return O.interpolate(e,t,a).join("")}function A(e,t,a){return T(e,(function(e,l){(function(e,t,a,l){var n=e[t];if(S(n)){if(P(n,l)&&(e[t]=k(n,a[0].values,l),a.length>1)){var r=e[t+"Locales"]={};a.forEach((function(e){r[e.locale]=k(n,e.values,l)}))}}else A(n,a,l)})(e,l,t,a)})),e}function T(e,t){if(Array.isArray(e)){for(var a=0;a>16&255):64===l?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return n}:atob;var m=Object.prototype.toString,y=Object.prototype.hasOwnProperty;function w(e){return"function"===typeof e}function _(e){return"string"===typeof e}function x(e){return"[object Object]"===m.call(e)}function O(e,t){return y.call(e,t)}function S(){}function P(e){var t=Object.create(null);return function(a){var l=t[a];return l||(t[a]=e(a))}}var k=/-(\w)/g,A=P((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))}));function T(e){var t={};return x(e)&&Object.keys(e).sort().forEach((function(a){t[a]=e[a]})),Object.keys(t)?t:e}var j=["invoke","success","fail","complete","returnValue"],C={},E={};function L(e,t){Object.keys(t).forEach((function(a){-1!==j.indexOf(a)&&w(t[a])&&(e[a]=function(e,t){var a=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return a?function(e){for(var t=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(a){if(Array.isArray(e[a])){var l=t[a];t[a]=function(n){I(e[a],n,t).then((function(e){return w(l)&&l(e)||e}))}}})),t}function N(e,t){var a=[];Array.isArray(C.returnValue)&&a.push.apply(a,(0,s.default)(C.returnValue));var l=E[e];return l&&Array.isArray(l.returnValue)&&a.push.apply(a,(0,s.default)(l.returnValue)),a.forEach((function(e){t=e(t)||t})),t}function B(e){var t=Object.create(null);Object.keys(C).forEach((function(e){"returnValue"!==e&&(t[e]=C[e].slice())}));var a=E[e];return a&&Object.keys(a).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(a[e]))})),t}function U(e,t,a){for(var l=arguments.length,n=new Array(l>3?l-3:0),r=3;r0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length,n=new Array(l>1?l-1:0),r=1;r-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var a=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return a||void 0}}function ue(){if(w(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return ne()}var se=[];"undefined"!==typeof l&&(l.getLocale=ue);var ce={promiseInterceptor:z},ve=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:ue,setLocale:function(e){var t=!!w(getApp)&&getApp();if(!t)return!1;var a=t.$vm.$locale;return a!==e&&(t.$vm.$locale=e,se.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===se.indexOf(e)&&se.push(e)},addInterceptor:function(e,t){"string"===typeof e&&x(t)?L(E[e]||(E[e]={}),t):x(e)&&L(C,e)},removeInterceptor:function(e,t){"string"===typeof e?x(t)?M(E[e],t):delete E[e]:x(e)&&M(C,e)},interceptors:ce});var fe,pe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),a=t.length;while(a--){var l=t[a];if(l.$page&&l.$page.fullPath===e)return a}return-1}(e.url);if(-1!==t){var a=getCurrentPages().length-1-t;a>0&&(e.delta=a)}}}},be={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var a=e.urls;if(Array.isArray(a)){var l=a.length;if(l)return t<0?t=0:t>=l&&(t=l-1),t>0?(e.current=a[t],e.urls=a.filter((function(e,l){return!(l2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(x(t)){var r=!0===n?t:{};for(var o in w(a)&&(a=a(t,r)||{}),t)if(O(a,o)){var i=a[o];w(i)&&(i=i(t[o],t,r)),i?_(i)?r[i]=t[o]:x(i)&&(r[i.name?i.name:o]=i.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==Te.indexOf(o)?w(t[o])&&(r[o]=je(e,t[o],l)):n||(r[o]=t[o]);return r}return w(t)&&(t=je(e,t,l)),t}function Ee(e,t,a){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return w(Ae.returnValue)&&(t=Ae.returnValue(e,t)),Ce(e,t,a,{},l)}function Le(t,a){if(O(Ae,t)){var l=Ae[t];return l?function(a,n){var r=l;w(l)&&(r=l(a)),a=Ce(t,a,r.args,r.returnValue);var o=[a];"undefined"!==typeof n&&o.push(n),w(r.name)?t=r.name(a):_(r.name)&&(t=r.name);var i=e[t].apply(e,o);return K(t)?Ee(t,i,r.returnValue,G(t)):i}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return a}var Me=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Me[e]=function(e){return function(t){var a=t.fail,l=t.complete,n={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};w(a)&&a(n),w(l)&&l(n)}}(e)}));var De={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Re=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,a=e.success,l=e.fail,n=e.complete,r=!1;De[t]?(r={errMsg:"getProvider:ok",service:t,provider:De[t]},w(a)&&a(r)):(r={errMsg:"getProvider:fail service not found"},w(l)&&l(r)),w(n)&&n(r)}}),Ie=function(){var e;return function(){return e||(e=new f.default),e}}();function $e(e,t,a){return e[t].apply(e,a)}var Ne,Be,Ue,ze=Object.freeze({__proto__:null,$on:function(){return $e(Ie(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return $e(Ie(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return $e(Ie(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return $e(Ie(),"$emit",Array.prototype.slice.call(arguments))}});function He(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Fe(e){try{return JSON.parse(e)}catch(t){}return e}var qe=[];function Ve(e,t){qe.forEach((function(a){a(e,t)})),qe.length=0}var We=[];var Ge=e.getAppBaseInfo&&e.getAppBaseInfo();Ge||(Ge=e.getSystemInfoSync());var Ke=Ge?Ge.host:null,Xe=Ke&&"SAAASDK"===Ke.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Je=Object.freeze({__proto__:null,shareVideoMessage:Xe,getPushClientId:function(e){x(e)||(e={});var t=function(e){var t={};for(var a in e){var l=e[a];w(l)&&(t[a]=He(l),delete e[a])}return t}(e),a=t.success,l=t.fail,n=t.complete,r=w(a),o=w(l),i=w(n);Promise.resolve().then((function(){"undefined"===typeof Ue&&(Ue=!1,Ne="",Be="uniPush is not enabled"),qe.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},r&&a(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&l(u)),i&&n(u)})),"undefined"!==typeof Ne&&Ve(Ne,Be)}))},onPushMessage:function(e){-1===We.indexOf(e)&&We.push(e)},offPushMessage:function(e){if(e){var t=We.indexOf(e);t>-1&&We.splice(t,1)}else We.length=0},invokePushCallback:function(e){if("enabled"===e.type)Ue=!0;else if("clientId"===e.type)Ne=e.cid,Be=e.errMsg,Ve(Ne,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Fe(e.message)},a=0;a1?t-1:0),l=1;l=0;r--){var o=n[r];if(o.$scope._$vueId===a)return o}for(var i=n.length-1;i>=0;i--)if(l=e(n[i],a),l)return l}(this.$vm,l)),t||(t=this.$vm),n.parent=t}function lt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function nt(e){return function(e){return null!==e&&"object"===(0,c.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,i.default)({},"__v_skip",!0)}),e}var rt=/_(.*)_worklet_factory_/;var ot=Page,it=Component,ut=/:/g,st=P((function(e){return A(e.replace(ut,"-"))}));function ct(e){var t=e.triggerEvent,a=function(e){for(var a=arguments.length,l=new Array(a>1?a-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return vt("onLoad",e),ot(e)},Page.after=ot.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vt("created",e),it(e)});function ft(e,t,a){t.forEach((function(t){(function e(t,a){if(!a)return!0;if(f.default.options&&Array.isArray(f.default.options[t]))return!0;if(a=a.default||a,w(a))return!!w(a.extendOptions[t])||!!(a.super&&a.super.options&&Array.isArray(a.super.options[t]));if(w(a[t])||Array.isArray(a[t]))return!0;var l=a.mixins;return Array.isArray(l)?!!l.find((function(a){return e(t,a)})):void 0})(t,a)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function pt(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];bt(t).forEach((function(t){return ht(e,t,a)}))}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(a){0===a.indexOf("on")&&w(e[a])&&t.push(a)})),t}function ht(e,t,a){-1!==a.indexOf(t)||O(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function dt(e,t){var a;return t=t.default||t,a=w(t)?t:e.extend(t),t=a.options,[a,t]}function gt(e,t){if(Array.isArray(t)&&t.length){var a=Object.create(null);t.forEach((function(e){a[e]=!0})),e.$scopedSlots=e.$slots=a}}function mt(e,t){e=(e||"").split(",");var a=e.length;1===a?t._$vueId=e[0]:2===a&&(t._$vueId=e[0],t._$vuePid=e[1])}function yt(e,t){var a=e.data||{},l=e.methods||{};if("function"===typeof a)try{a=a.call(t)}catch(n){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"likeshop多商户",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/",VUE_APP_BASE_API:""}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",a)}else try{a=JSON.parse(JSON.stringify(a))}catch(n){}return x(a)||(a={}),Object.keys(l).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||O(a,e)||(a[e]=l[e])})),a}var wt=[String,Number,Boolean,Object,Array,null];function _t(e){return function(t,a){this.$vm&&(this.$vm[e]=t)}}function xt(e,t){var a=e.behaviors,l=e.extends,n=e.mixins,r=e.props;r||(e.props=r=[]);var o=[];return Array.isArray(a)&&a.forEach((function(e){o.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(r)?(r.push("name"),r.push("value")):(r.name={type:String,default:""},r.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),x(l)&&l.props&&o.push(t({properties:St(l.props,!0)})),Array.isArray(n)&&n.forEach((function(e){x(e)&&e.props&&o.push(t({properties:St(e.props,!0)}))})),o}function Ot(e,t,a,l){return Array.isArray(t)&&1===t.length?t[0]:t}function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>3?arguments[3]:void 0,l={};return t||(l.vueId={type:String,value:""},a.virtualHost&&(l.virtualHostStyle={type:null,value:""},l.virtualHostClass={type:null,value:""}),l.scopedSlotsCompiler={type:String,value:""},l.vueSlots={type:null,value:[],observer:function(e,t){var a=Object.create(null);e.forEach((function(e){a[e]=!0})),this.setData({$slots:a})}}),Array.isArray(e)?e.forEach((function(e){l[e]={type:null,observer:_t(e)}})):x(e)&&Object.keys(e).forEach((function(t){var a=e[t];if(x(a)){var n=a.default;w(n)&&(n=n()),a.type=Ot(0,a.type),l[t]={type:-1!==wt.indexOf(a.type)?a.type:null,value:n,observer:_t(t)}}else{var r=Ot(0,a);l[t]={type:-1!==wt.indexOf(r)?r:null,observer:_t(t)}}})),l}function Pt(e,t,a,l){var n={};return Array.isArray(t)&&t.length&&t.forEach((function(t,r){"string"===typeof t?t?"$event"===t?n["$"+r]=a:"arguments"===t?n["$"+r]=a.detail&&a.detail.__args__||l:0===t.indexOf("$event.")?n["$"+r]=e.__get_value(t.replace("$event.",""),a):n["$"+r]=e.__get_value(t):n["$"+r]=e:n["$"+r]=function(e,t){var a=e;return t.forEach((function(t){var l=t[0],n=t[2];if(l||"undefined"!==typeof n){var r,o=t[1],i=t[3];Number.isInteger(l)?r=l:l?"string"===typeof l&&l&&(r=0===l.indexOf("#s#")?l.substr(3):e.__get_value(l,a)):r=a,Number.isInteger(r)?a=n:o?Array.isArray(r)?a=r.find((function(t){return e.__get_value(o,t)===n})):x(r)?a=Object.keys(r).find((function(t){return e.__get_value(o,r[t])===n})):console.error("v-for 暂不支持循环数据:",r):a=r[n],i&&(a=e.__get_value(i,a))}})),a}(e,t)})),n}function kt(e){for(var t={},a=1;a2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,o=!1,i=x(t.detail)&&t.detail.__args__||[t.detail];if(n&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!a.length))return o?[t]:i;var u=Pt(e,l,t,i),s=[];return a.forEach((function(e){"$event"===e?"__set_model"!==r||n?n&&!o?s.push(i[0]):s.push(t):s.push(t.target.value):Array.isArray(e)&&"o"===e[0]?s.push(kt(e)):"string"===typeof e&&O(u,e)?s.push(u[e]):s.push(e)})),s}function Tt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=S,e.preventDefault=S,e.target=e.target||{},O(e,"detail")||(e.detail={}),O(e,"markerId")&&(e.detail="object"===(0,c.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),x(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var a=(e.currentTarget||e.target).dataset;if(!a)return console.warn("事件信息不存在");var l=a.eventOpts||a["event-opts"];if(!l)return console.warn("事件信息不存在");var n=e.type,r=[];return l.forEach((function(a){var l=a[0],o=a[1],i="^"===l.charAt(0);l=i?l.slice(1):l;var u="~"===l.charAt(0);l=u?l.slice(1):l,o&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(n,l)&&o.forEach((function(a){var l=a[0];if(l){var n=t.$vm;if(n.$options.generic&&(n=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(n)||n),"$emit"===l)return void n.$emit.apply(n,At(t.$vm,e,a[1],a[2],i,l));var o=n[l];if(!w(o)){var s="page"===t.$vm.mpType?"Page":"Component",c=t.route||t.is;throw new Error("".concat(s,' "').concat(c,'" does not have a method "').concat(l,'"'))}if(u){if(o.once)return;o.once=!0}var v=At(t.$vm,e,a[1],a[2],i,l);v=Array.isArray(v)?v:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(v=v.concat([,,,,,,,,,,e])),r.push(o.apply(n,v))}}))})),"input"===n&&1===r.length&&"undefined"!==typeof r[0]?r[0]:void 0}var jt={};var Ct=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Et(){f.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=f.default.prototype.__call_hook;f.default.prototype.__call_hook=function(t,a){return"onLoad"===t&&a&&a.__id__&&(this.__eventChannel__=function(e){var t=jt[e];return delete jt[e],t}(a.__id__),delete a.__id__),e.call(this,t,a)}}function Lt(t,a){var l=a.mocks,n=a.initRefs;Et(),function(){var e={},t={};function a(e){var t=this.$options.propsData.vueId;if(t){var a=t.split(",")[0];e(a)}}f.default.prototype.$hasSSP=function(a){var l=e[a];return l||(t[a]=this,this.$on("hook:destroyed",(function(){delete t[a]}))),l},f.default.prototype.$getSSP=function(t,a,l){var n=e[t];if(n){var r=n[a]||[];return l?r:r[0]}},f.default.prototype.$setSSP=function(t,l){var n=0;return a.call(this,(function(a){var r=e[a],o=r[t]=r[t]||[];o.push(l),n=o.length-1})),n},f.default.prototype.$initSSP=function(){a.call(this,(function(t){e[t]={}}))},f.default.prototype.$callSSP=function(){a.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},f.default.mixin({destroyed:function(){var a=this.$options.propsData,l=a&&a.vueId;l&&(delete e[l],delete t[l])}})}(),t.$options.store&&(f.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=g(),a=t.role;return a.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=g(),a=t.permission;return this.uniIDHasRole("admin")||a.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=g(),t=e.tokenExpired;return t>Date.now()}}(f.default),f.default.prototype.mpHost="mp-weixin",f.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,i.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(n(this),function(e,t){var a=e.$mp[e.mpType];t.forEach((function(t){O(a,t)&&(e[t]=a[t])}))}(this,l))}}});var r={onLaunch:function(a){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",a),this.$vm.__call_hook("onLaunch",a))}};r.globalData=t.$options.globalData||{};var o=t.$options.methods;return o&&Object.keys(o).forEach((function(e){r[e]=o[e]})),function(e,t,a){var l=e.observable({locale:a||re.getLocale()}),n=[];t.$watchLocale=function(e){n.push(e)},Object.defineProperty(t,"$locale",{get:function(){return l.locale},set:function(e){l.locale=e,n.forEach((function(t){return t(e)}))}})}(f.default,t,function(){var t,a=e.getAppBaseInfo(),l=a&&a.language?a.language:"en";return t=ie(l)||"en",t}()),ft(r,Ct),pt(r,t.$options),r}function Mt(e){return Lt(e,{mocks:Ye,initRefs:tt})}function Dt(e){return App(Mt(e)),e}var Rt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},$t=/%2C/g,Nt=function(e){return encodeURIComponent(e).replace(Rt,It).replace($t,",")};function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt,a=e?Object.keys(e).map((function(a){var l=e[a];if(void 0===l)return"";if(null===l)return t(a);if(Array.isArray(l)){var n=[];return l.forEach((function(e){void 0!==e&&(null===e?n.push(t(a)):n.push(t(a)+"="+t(e)))})),n.join("&")}return t(a)+"="+t(l)})).filter((function(e){return e.length>0})).join("&"):null;return a?"?".concat(a):""}function Ut(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.isPage,l=t.initRelation,n=arguments.length>2?arguments[2]:void 0,r=dt(f.default,e),i=(0,o.default)(r,2),u=i[0],s=i[1],c=b({multipleSlots:!0,addGlobalClass:!0},s.options||{});s["mp-weixin"]&&s["mp-weixin"].options&&Object.assign(c,s["mp-weixin"].options);var v={options:c,data:yt(s,f.default.prototype),behaviors:xt(s,Qe),properties:St(s.props,!1,s.__file,c),lifetimes:{attached:function(){var e=this.properties,t={mpType:a.call(this)?"page":"component",mpInstance:this,propsData:e};mt(e.vueId,this),l.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),gt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:at,__e:Tt}};return s.externalClasses&&(v.externalClasses=s.externalClasses),Array.isArray(s.wxsCallMethods)&&s.wxsCallMethods.forEach((function(e){v.methods[e]=function(t){return this.$vm[e](t)}})),n?[v,s,u]:a?v:[v,u]}(e,{isPage:Ze,initRelation:et},t)}var zt=["onShow","onHide","onUnload"];function Ht(e){var t=Ut(e,!0),a=(0,o.default)(t,2),l=a[0],n=a[1];return ft(l.methods,zt,n),l.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Bt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},pt(l.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(a){var l=a.match(rt);if(l){var n=l[1];e[a]=t[a],e[n]=t[n]}}))}(l.methods,n.methods),l}function Ft(e){return Component(function(e){return Ht(e)}(e))}function qt(e){return Component(Ut(e))}function Vt(t){var a=Mt(t),l=getApp({allowDefault:!0});t.$scope=l;var n=l.globalData;if(n&&Object.keys(a.globalData).forEach((function(e){O(n,e)||(n[e]=a.globalData[e])})),Object.keys(a).forEach((function(e){O(l,e)||(l[e]=a[e])})),w(a.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,a=new Array(e),l=0;l0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}},e4fb:function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.getUserProfile=function(){return new Promise((function(t,a){e.getUserProfile({desc:"获取用户信息,完善用户资料 ",success:function(e){t(e)},fail:function(e){}})}))},t.getWxCode=f,t.toLogin=void 0,t.wxMnpLogin=p;var n=l(a("7eb4")),r=l(a("ee10")),o=a("7a03"),i=a("0aec"),u=l(a("31f5")),s=l(a("3f13")),c=a("d0d1"),v=a("25af");l(a("d3f1")),a("6495");function f(){return new Promise((function(t,a){e.login({success:function(e){t(e.code)},fail:function(e){a(e)}})}))}function p(){return b.apply(this,arguments)}function b(){return b=(0,r.default)(n.default.mark((function e(){var t,a,l,r,p,b,h,d,g;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:return t=e.sent,e.next=5,(0,o.silentLogin)({code:t});case 5:if(a=e.sent,l=a.code,r=a.data,p=(0,i.currentPage)(),b=p.options,h=p.onLoad,d=p.onShow,p.route,1==l){e.next=11;break}return e.abrupt("return");case 11:r.token&&!r.is_new_user&&(u.default.commit("login",r),g=s.default.get(c.INVITE_CODE),g&&((0,v.bindSuperior)({code:g}),s.default.remove(c.INVITE_CODE)),h&&h(b),d&&d());case 12:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}var h=(0,i.trottle)((function(){p()}),1e3);t.toLogin=h}).call(this,a("df3c")["default"])},e6db:function(e,t,a){var l=a("3b2d")["default"];e.exports=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e730:function(e,t,a){"use strict";(function(e){var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("7ca3")),r=a("25af"),o=a("c2cb"),i=a("d0d1"),u=l(a("3f13"));l(a("d3f1")),a("0aec"),a("a381");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;t=r)return e;switch(e){case"%s":return String(t[l++]);case"%d":return Number(t[l++]);case"%j":try{return JSON.stringify(t[l++])}catch(a){return"[Circular]"}break;default:return e}})),u=t[l];l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},g={integer:function(e){return g.number(e)&&parseInt(e,10)===e},float:function(e){return g.number(e)&&!g.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,n.default)(e)&&!g.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(d.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(d.url)},hex:function(e){return"string"===typeof e&&!!e.match(d.hex)}};var m={required:h,whitespace:function(e,t,a,l,n){(/^\s+$/.test(t)||""===t)&&l.push(s(n.messages.whitespace,e.fullField))},type:function(e,t,a,l,r){if(e.required&&void 0===t)h(e,t,a,l,r);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?g[o](t)||l.push(s(r.messages.types[o],e.fullField,e.type)):o&&(0,n.default)(t)!==e.type&&l.push(s(r.messages.types[o],e.fullField,e.type))}},range:function(e,t,a,l,n){var r="number"===typeof e.len,o="number"===typeof e.min,i="number"===typeof e.max,u=t,c=null,v="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(v?c="number":f?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?u!==e.len&&l.push(s(n.messages[c].len,e.fullField,e.len)):o&&!i&&ue.max?l.push(s(n.messages[c].max,e.fullField,e.max)):o&&i&&(ue.max)&&l.push(s(n.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,a,l,n){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&l.push(s(n.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,a,l,n){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||l.push(s(n.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var r=new RegExp(e.pattern);r.test(t)||l.push(s(n.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function y(e,t,a,l,n){var r=e.type,o=[],i=e.required||!e.required&&l.hasOwnProperty(e.field);if(i){if(c(t,r)&&!e.required)return a();m.required(e,t,l,o,n,r),c(t,r)||m.type(e,t,l,o,n)}a(o)}var w={string:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return a();m.required(e,t,l,r,n,"string"),c(t,"string")||(m.type(e,t,l,r,n),m.range(e,t,l,r,n),m.pattern(e,t,l,r,n),!0===e.whitespace&&m.whitespace(e,t,l,r,n))}a(r)},method:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},number:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},boolean:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},regexp:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),c(t)||m.type(e,t,l,r,n)}a(r)},integer:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},float:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},array:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"array")&&!e.required)return a();m.required(e,t,l,r,n,"array"),c(t,"array")||(m.type(e,t,l,r,n),m.range(e,t,l,r,n))}a(r)},object:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m.type(e,t,l,r,n)}a(r)},enum:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n),void 0!==t&&m["enum"](e,t,l,r,n)}a(r)},pattern:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return a();m.required(e,t,l,r,n),c(t,"string")||m.pattern(e,t,l,r,n)}a(r)},date:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();var i;if(m.required(e,t,l,r,n),!c(t))i="number"===typeof t?new Date(t):t,m.type(e,i,l,r,n),i&&m.range(e,i.getTime(),l,r,n)}a(r)},url:y,hex:y,email:y,required:function(e,t,a,l,r){var o=[],i=Array.isArray(t)?"array":(0,n.default)(t);m.required(e,t,l,o,r,i),a(o)},any:function(e,t,a,l,n){var r=[],o=e.required||!e.required&&l.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return a();m.required(e,t,l,r,n)}a(r)}};function _(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var x=_();function O(e){this.rules=null,this._messages=x,this.define(e)}O.prototype={messages:function(e){return e&&(this._messages=b(_(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,n.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,a;for(t in this.rules={},e)e.hasOwnProperty(t)&&(a=e[t],this.rules[t]=Array.isArray(a)?a:[a])},validate:function(e,t,a){var l=this;void 0===t&&(t={}),void 0===a&&(a=function(){});var o,i,c=e,v=t,h=a;if("function"===typeof v&&(h=v,v={}),!this.rules||0===Object.keys(this.rules).length)return h&&h(),Promise.resolve();if(v.messages){var d=this.messages();d===x&&(d=_()),b(d,v.messages),v.messages=d}else v.messages=this.messages();var g={},m=v.keys||Object.keys(this.rules);m.forEach((function(t){o=l.rules[t],i=c[t],o.forEach((function(a){var n=a;"function"===typeof n.transform&&(c===e&&(c=r({},c)),i=c[t]=n.transform(i)),n="function"===typeof n?{validator:n}:r({},n),n.validator=l.getValidationMethod(n),n.field=t,n.fullField=n.fullField||t,n.type=l.getType(n),n.validator&&(g[t]=g[t]||[],g[t].push({rule:n,value:i,source:c,field:t}))}))}));var y={};return f(g,v,(function(e,t){var a,l=e.rule,o=("object"===l.type||"array"===l.type)&&("object"===(0,n.default)(l.fields)||"object"===(0,n.default)(l.defaultField));function i(e,t){return r({},t,{fullField:l.fullField+"."+e})}function u(a){void 0===a&&(a=[]);var n=a;if(Array.isArray(n)||(n=[n]),!v.suppressWarning&&n.length&&O.warning("async-validator:",n),n.length&&l.message&&(n=[].concat(l.message)),n=n.map(p(l)),v.first&&n.length)return y[l.field]=1,t(n);if(o){if(l.required&&!e.value)return n=l.message?[].concat(l.message).map(p(l)):v.error?[v.error(l,s(v.messages.required,l.field))]:[],t(n);var u={};if(l.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(u[c]=l.defaultField);for(var f in u=r({},u,{},e.rule.fields),u)if(u.hasOwnProperty(f)){var b=Array.isArray(u[f])?u[f]:[u[f]];u[f]=b.map(i.bind(null,f))}var h=new O(u);h.messages(v.messages),e.rule.options&&(e.rule.options.messages=v.messages,e.rule.options.error=v.error),h.validate(e.value,e.rule.options||v,(function(e){var a=[];n&&n.length&&a.push.apply(a,n),e&&e.length&&a.push.apply(a,e),t(a.length?a:null)}))}else t(n)}o=o&&(l.required||!l.required&&e.value),l.field=e.field,l.asyncValidator?a=l.asyncValidator(l,e.value,u,e.source,v):l.validator&&(a=l.validator(l,e.value,u,e.source,v),!0===a?u():!1===a?u(l.message||l.field+" fails"):a instanceof Array?u(a):a instanceof Error&&u(a.message)),a&&a.then&&a.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){(function(e){var t,a=[],l={};function n(e){var t;Array.isArray(e)?a=(t=a).concat.apply(t,e):a.push(e)}for(t=0;t0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){t.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&t.$u.test.array(this.parent.children)){var a=this.parent.children;a.map((function(t,l){t===e&&a.splice(l,1)}))}}}}).call(this,a("df3c")["default"])},f620:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a("3b2d"));function r(e){switch((0,n.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}var o={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){return 7===e.length?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/.test(e):8===e.length&&/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:r,isEmpty:r,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,n.default)(t)||!t)}catch(a){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:function(e){return"[object Object]"===Object.prototype.toString.call(e)},array:function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}};t.default=o},f686:function(e,t,a){(function(t){var l=a("bdd7"),n=l.blankChar,r=a("05da"),o=t.getSystemInfoSync().windowWidth;function i(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.attrs={},this.CssHandler=new r(a.tagStyle,o),this.data=e,this.domain=a.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,a.prot=(this.domain||"").includes("://")?this.domain.split("://")[0]:"http",this.options=a,this.state=this.Text,this.STACK=[],this.bubble=function(){for(var e,a=t.STACK.length;e=t.STACK[--a];){if(l.richOnlyTags[e.name])return!1;e.c=1}return!0},this.decode=function(e,t){var a,n,r=-1;while(1){if(-1==(r=e.indexOf("&",r+1)))break;if(-1==(a=e.indexOf(";",r+2)))break;"#"==e[r+1]?(n=parseInt(("x"==e[r+2]?"0":"")+e.substring(r+2,a)),isNaN(n)||(e=e.substr(0,r)+String.fromCharCode(n)+e.substr(a+1))):(n=e.substring(r+1,a),(l.entities[n]||n==t)&&(e=e.substr(0,r)+(l.entities[n]||"&")+e.substr(a+1)))}return e},this.getUrl=function(e){return"/"==e[0]?"/"==e[1]?e=t.options.prot+":"+e:t.domain&&(e=t.domain+e):t.domain&&0!=e.indexOf("data:")&&!e.includes("://")&&(e=t.domain+"/"+e),e},this.isClose=function(){return">"==t.data[t.i]||"/"==t.data[t.i]&&">"==t.data[t.i+1]},this.section=function(){return t.data.substring(t.start,t.i)},this.parent=function(){return t.STACK[t.STACK.length-1]},this.siblings=function(){return t.STACK.length?t.parent().children:t.DOM}}i.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM},i.prototype.setAttr=function(){var e=this.attrName.toLowerCase(),t=this.attrVal;l.boolAttrs[e]?this.attrs[e]="T":t&&("src"==e||"data-src"==e&&!this.attrs.src?this.attrs.src=this.getUrl(this.decode(t,"amp")):"href"==e||"style"==e?this.attrs[e]=this.decode(t,"amp"):"data-"!=e.substr(0,5)&&(this.attrs[e]=t)),this.attrVal="";while(n[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)},i.prototype.setText=function(){var e,t=this.section();if(t)if(t=l.onText&&l.onText(t,(function(){return e=!0}))||t,e){this.data=this.data.substr(0,this.start)+t+this.data.substr(this.i);var a=this.start+t.length;for(this.i=this.start;this.i7&&(s=7);u["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][s-1],r.size=void 0}break;case"embed":var c=e.attrs.src||"",v=e.attrs.type||"";if(v.includes("video")||c.includes(".mp4")||c.includes(".3gp")||c.includes(".m3u8"))e.name="video";else{if(!(v.includes("audio")||c.includes(".m4a")||c.includes(".wav")||c.includes(".mp3")||c.includes(".aac")))break;e.name="audio"}e.attrs.autostart&&(e.attrs.autoplay="T"),e.attrs.controls="T";case"video":case"audio":r.id?this["".concat(e.name,"Num")]++:r.id=e.name+ ++this["".concat(e.name,"Num")],"video"==e.name&&(this.videoNum>3&&(e.lazyLoad=1),r.width&&(u.width=parseFloat(r.width)+(r.width.includes("%")?"%":"px"),r.width=void 0),r.height&&(u.height=parseFloat(r.height)+(r.height.includes("%")?"%":"px"),r.height=void 0)),r.controls||r.autoplay||(r.controls="T"),r.source=[],r.src&&(r.source.push(r.src),r.src=void 0),this.bubble();break;case"td":case"th":if(r.colspan||r.rowspan)for(var f,p=this.STACK.length;f=this.STACK[--p];)if("table"==f.name){f.flag=1;break}}r.align&&("table"==e.name?"center"==r.align?u["margin-inline-start"]=u["margin-inline-end"]="auto":u["float"]=r.align:u["text-align"]=r.align,r.align=void 0);var b,h=i.split(";");i="";for(var d=0,g=h.length;do&&(u.height="",r.height&&(r.height=void 0))),u.height?(r.height=u.height,u.height=""):r.height&&!r.height.includes("%")&&(r.height=parseFloat(r.height)+"px");for(var _ in u){var x=u[_];if(x){if((_.includes("flex")||"order"==_||"self-align"==_)&&(e.c=1),x.includes("url")){var O=x.indexOf("(");if(-1!=O++){while('"'==x[O]||"'"==x[O]||n[x[O]])O++;x=x.substr(0,O)+this.getUrl(x.substr(O))}}else x.includes("rpx")?x=x.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*o/750+"px"})):"white-space"==_&&x.includes("pre")&&!t&&(this.pre=e.pre=!0);i+=";".concat(_,":").concat(x)}}i=i.substr(1),i&&(r.style=i),t?l.filter&&0==l.filter(e,this)||this.siblings().push(e):(e.children=[],"pre"==e.name&&l.highlight&&(this.remove(e),this.pre=e.pre=!0),this.siblings().push(e),this.STACK.push(e))}"/"==this.data[this.i]&&this.i++,this.start=this.i+1,this.state=this.Text},i.prototype.remove=function(e){var t=this,a=e.name,r=this.i,o=function(){var a=t.data.substring(r,t.i+1);for(var l in e.attrs.xmlns="http://www.w3.org/2000/svg",e.attrs)"viewbox"==l?a=' viewBox="'.concat(e.attrs.viewbox,'"')+a:"style"!=l&&(a=" ".concat(l,'="').concat(e.attrs[l],'"')+a);a="",this.i))&&(this.i=this.data.length),void("svg"==a&&o()))}},i.prototype.popNode=function(e){if(e.pre){e.pre=this.pre=void 0;for(var t=this.STACK.length;t--;)this.STACK[t].pre&&(this.pre=!0)}var a=this.siblings(),n=a.length,r=e.children;if("head"==e.name||l.filter&&0==l.filter(e,this))return a.pop();var o=e.attrs;if(l.blockTags[e.name]?e.name="div":l.trustTags[e.name]||(e.name="span"),e.c&&("ul"==e.name||"ol"==e.name))if((e.attrs.style||"").includes("list-style:none"))for(var i,u=0;i=r[u++];)"li"==i.name&&(i.name="div");else if("ul"==e.name){for(var s=1,c=this.STACK.length;c--;)"ul"==this.STACK[c].name&&s++;if(1!=s)for(var v=r.length;v--;)r[v].floor=s}else for(var f,p=0,b=1;f=r[p++];)"li"==f.name&&(f.type="ol",f.num=function(e,t){if("a"==t)return String.fromCharCode(97+(e-1)%26);if("A"==t)return String.fromCharCode(65+(e-1)%26);if("i"==t||"I"==t){e=(e-1)%99+1;var a=(["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"][Math.floor(e/10)-1]||"")+(["I","II","III","IV","V","VI","VII","VIII","IX"][e%10-1]||"");return"i"==t?a.toLowerCase():a}return e}(b++,o.type)+".");if("table"==e.name){var h=parseFloat(o.cellpadding),d=parseFloat(o.cellspacing),g=parseFloat(o.border);if(e.c&&(isNaN(h)&&(h=2),isNaN(d)&&(d=2)),g&&(o.style="border:".concat(g,"px solid gray;").concat(o.style||"")),e.flag&&e.c){o.style="".concat(o.style||"",";").concat(d?";grid-gap:".concat(d,"px"):";border-left:0;border-top:0");var m,y=1,w=1,_=[],x=[],O={};(function e(t){for(var a=0;a="a"&&e<="z"||e>="A"&&e<="Z"};a(t)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==t?(this.setText(),a(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"!=t&&"?"!=t||(this.setText(),this.Comment())}},i.prototype.Comment=function(){var e;e="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(e,this.i+2))?this.i=this.data.length:this.i+=e.length-1,this.start=this.i+1,this.state=this.Text},i.prototype.TagName=function(e){if(n[e]){this.tagName=this.section();while(n[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())},i.prototype.AttrName=function(e){if("="==e||n[e]||this.isClose()){if(this.attrName=this.section(),n[e])while(n[this.data[++this.i]]);if("="==this.data[this.i]){while(n[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else this.setAttr()}},i.prototype.AttrValue=function(e){if('"'==e||"'"==e){if(this.start++,-1==(this.i=this.data.indexOf(e,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!n[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()},i.prototype.EndTag=function(e){if(n[e]||">"==e||"/"==e){for(var t=this.section().toLowerCase(),a=this.STACK.length;a--;)if(this.STACK[a].name==t)break;if(-1!=a){var l;while((l=this.STACK.pop()).name!=t)this.popNode(l);this.popNode(l)}else"p"!=t&&"br"!=t||this.siblings().push({name:t,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}},e.exports=i}).call(this,a("df3c")["default"])},f6b3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))};t.default=l},fc75:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={data:function(){return{wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0},renderBiz:{propObserver:function(){}}}},methods:{wxsCall:function(e){"setWxsProp"===e.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===e.type?(this.downLoadType=e.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===e.type?this.mescroll.triggerDownScroll():"endDownScroll"===e.type?this.mescroll.endDownScroll():"triggerUpScroll"===e.type&&this.mescroll.triggerUpScroll(!0)}},mounted:function(){var e=this;this.mescroll.optDown.afterLoading=function(){e.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=function(){e.callProp={callType:"endDownScroll",t:Date.now()};var t=300+(e.mescroll.optDown.beforeEndDelay||0);setTimeout((function(){4!==e.downLoadType&&0!==e.downLoadType||(e.callProp={callType:"clearTransform",t:Date.now()}),e.$set(e.mescroll,"downLoadType",e.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}},n=l;t.default=n},fcc3:function(e,t,a){"use strict";var l=a("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.getLiveLists=function(e){return n.default.get("live/lists",{params:e})},t.getShopLive=function(e){return n.default.get("live/shopLive",{params:e})};var n=l(a("21ce"))}}]); \ No newline at end of file diff --git a/public/mp-weixin/components/privacy-popup/privacy-popup.js b/public/mp-weixin/components/privacy-popup/privacy-popup.js index d2a13c4e..0b3ffefa 100644 --- a/public/mp-weixin/components/privacy-popup/privacy-popup.js +++ b/public/mp-weixin/components/privacy-popup/privacy-popup.js @@ -1,4 +1,4 @@ -(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/privacy-popup/privacy-popup"],{"0f76":function(t,n,e){"use strict";e.r(n);var o=e("f57b"),r=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(c);n["default"]=r.a},5885:function(t,n,e){},"5d09":function(t,n,e){"use strict";var o=e("5885"),r=e.n(o);r.a},8561:function(t,n,e){"use strict";e.r(n);var o=e("e521"),r=e("0f76");for(var c in r)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(c);e("5d09");var u=e("828b"),i=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=i.exports},e521:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return o}));var o={uPopup:function(){return e.e("components/uview-ui/components/u-popup/u-popup").then(e.bind(null,"b12c"))}},r=function(){var t=this.$createElement;this._self._c},c=[]},f57b:function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("7ca3")),c=e("8f59");function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function i(t){for(var n=1;n