123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449 |
- "use strict";
- const common_vendor = require("../../../../common/vendor.js");
- const common_assets = require("../../../../common/assets.js");
- require("../../../index.js");
- const sheep_hooks_useModal = require("../../../hooks/useModal.js");
- require("../../../api/index.js");
- require("../../../api/distri/score.js");
- require("../../../request/index.js");
- require("../../../config/index.js");
- require("../../../store/index.js");
- require("../../../store/app.js");
- require("../../../api/promotion/diy.js");
- require("../../../platform/index.js");
- require("../../../platform/provider/wechat/index.js");
- require("../../../platform/provider/wechat/miniProgram.js");
- require("../../../api/member/auth.js");
- require("../../../api/member/social.js");
- require("../../../api/member/user.js");
- require("../../../platform/provider/apple/index.js");
- require("../../../platform/share.js");
- require("../../../router/index.js");
- require("../../../helper/throttle.js");
- require("../../../url/index.js");
- require("../../../platform/pay.js");
- require("../../../helper/index.js");
- require("../../../helper/test.js");
- require("../../../helper/digit.js");
- require("../../../api/pay/order.js");
- require("../../../store/user.js");
- require("../../../store/cart.js");
- require("../../../api/trade/cart.js");
- require("../../../api/pay/wallet.js");
- require("../../../api/trade/order.js");
- require("../../../api/promotion/coupon.js");
- require("../../../store/sys.js");
- require("../../../store/modal.js");
- require("../../../api/distri/share.js");
- require("../../../api/distri/team.js");
- require("../../../api/infra/file.js");
- require("../../../api/member/address.js");
- require("../../../api/member/point.js");
- require("../../../api/member/signin.js");
- require("../../../api/migration/app.js");
- require("../../../api/migration/chat.js");
- require("../../../api/migration/index.js");
- require("../../../api/migration/third.js");
- require("../../../api/pay/channel.js");
- require("../../../api/product/category.js");
- require("../../../api/product/comment.js");
- require("../../../api/product/favorite.js");
- require("../../../api/product/history.js");
- require("../../../api/product/spu.js");
- require("../../../api/promotion/activity.js");
- require("../../../api/promotion/article.js");
- require("../../../api/promotion/bargain.js");
- require("../../../api/promotion/combination.js");
- require("../../../api/promotion/rewardActivity.js");
- require("../../../api/promotion/seckill.js");
- require("../../../api/system/area.js");
- require("../../../api/system/voice.js");
- require("../../../api/trade/afterSale.js");
- require("../../../api/trade/brokerage.js");
- require("../../../api/trade/config.js");
- require("../../../api/trade/delivery.js");
- require("../../../config/zIndex.js");
- const countryData = [
- {
- english_name: "China",
- chinese_name: "中国",
- country_code: "CN",
- phone_code: "86"
- },
- {
- english_name: "Hong Kong",
- chinese_name: "中国香港",
- country_code: "HK",
- phone_code: "852"
- },
- {
- english_name: "Taiwan",
- chinese_name: "中国台湾",
- country_code: "TW",
- phone_code: "886"
- },
- {
- english_name: "Macau",
- chinese_name: "中国澳门",
- country_code: "MO",
- phone_code: "853"
- },
- {
- english_name: "Central African Republic",
- chinese_name: "中非共和国",
- country_code: "CF",
- phone_code: "236"
- },
- {
- english_name: "Chile",
- chinese_name: "智利",
- country_code: "CL",
- phone_code: "56"
- },
- {
- english_name: "Gibraltar",
- chinese_name: "直布罗陀",
- country_code: "GI",
- phone_code: "350"
- },
- {
- english_name: "Chad",
- chinese_name: "乍得",
- country_code: "TD",
- phone_code: "235"
- },
- {
- english_name: "Zambia",
- chinese_name: "赞比亚",
- country_code: "ZM",
- phone_code: "260"
- },
- {
- english_name: "Vietnam",
- chinese_name: "越南",
- country_code: "VN",
- phone_code: "84"
- },
- {
- english_name: "Jordan",
- chinese_name: "约旦",
- country_code: "JO",
- phone_code: "962"
- },
- {
- english_name: "Virgin Islands, British",
- chinese_name: "英属处女群岛",
- country_code: "VG",
- phone_code: "1340"
- },
- {
- english_name: "United Kingdom",
- chinese_name: "英国",
- country_code: "GB",
- phone_code: "44"
- },
- {
- english_name: "Indonesia",
- chinese_name: "印度尼西亚",
- country_code: "ID",
- phone_code: "62"
- },
- {
- english_name: "India",
- chinese_name: "印度",
- country_code: "IN",
- phone_code: "91"
- },
- {
- english_name: "Italy",
- chinese_name: "意大利",
- country_code: "IT",
- phone_code: "39"
- },
- {
- english_name: "Israel",
- chinese_name: "以色列",
- country_code: "IL",
- phone_code: "972"
- },
- {
- english_name: "Iran",
- chinese_name: "伊朗",
- country_code: "IR",
- phone_code: "98"
- },
- {
- english_name: "Iraq",
- chinese_name: "伊拉克",
- country_code: "IQ",
- phone_code: "964"
- },
- {
- english_name: "Yemen",
- chinese_name: "也门",
- country_code: "YE",
- phone_code: "967"
- },
- {
- english_name: "Armenia",
- chinese_name: "亚美尼亚",
- country_code: "AM",
- phone_code: "374"
- },
- {
- english_name: "Jamaica",
- chinese_name: "牙买加",
- country_code: "JM",
- phone_code: "1876"
- },
- {
- english_name: "Syria",
- chinese_name: "叙利亚",
- country_code: "SY",
- phone_code: "963"
- },
- {
- english_name: "Hungary",
- chinese_name: "匈牙利",
- country_code: "HU",
- phone_code: "36"
- },
- {
- english_name: "New Zealand",
- chinese_name: "新西兰",
- country_code: "NZ",
- phone_code: "64"
- },
- {
- english_name: "New Caledonia",
- chinese_name: "新喀里多尼亚",
- country_code: "NC",
- phone_code: "687"
- },
- {
- english_name: "Singapore",
- chinese_name: "新加坡",
- country_code: "SG",
- phone_code: "65"
- },
- {
- english_name: "Ivory Coast",
- chinese_name: "象牙海岸",
- country_code: "CI",
- phone_code: "225"
- },
- {
- english_name: "Greece",
- chinese_name: "希腊",
- country_code: "GR",
- phone_code: "30"
- },
- {
- english_name: "Spain",
- chinese_name: "西班牙",
- country_code: "ES",
- phone_code: "34"
- },
- {
- english_name: "Uzbekistan",
- chinese_name: "乌兹别克斯坦",
- country_code: "UZ",
- phone_code: "998"
- },
- {
- english_name: "Uruguay",
- chinese_name: "乌拉圭",
- country_code: "UY",
- phone_code: "598"
- },
- {
- english_name: "Ukraine",
- chinese_name: "乌克兰",
- country_code: "UA",
- phone_code: "380"
- },
- {
- english_name: "Uganda",
- chinese_name: "乌干达",
- country_code: "UG",
- phone_code: "256"
- },
- {
- english_name: "Brunei",
- chinese_name: "文莱",
- country_code: "BN",
- phone_code: "673"
- },
- {
- english_name: "Venezuela",
- chinese_name: "委内瑞拉",
- country_code: "VE",
- phone_code: "58"
- },
- {
- english_name: "Vanuatu",
- chinese_name: "瓦努阿图",
- country_code: "VU",
- phone_code: "678"
- },
- {
- english_name: "Turkmenistan",
- chinese_name: "土库曼斯坦",
- country_code: "TM",
- phone_code: "993"
- },
- {
- english_name: "Turkey",
- chinese_name: "土耳其",
- country_code: "TR",
- phone_code: "90"
- },
- {
- english_name: "Tunisia",
- chinese_name: "突尼斯",
- country_code: "TN",
- phone_code: "216"
- },
- {
- english_name: "Trinidad and Tobago",
- chinese_name: "特立尼达和多巴哥",
- country_code: "TT",
- phone_code: "1868"
- },
- {
- english_name: "Turks and Caicos Islands",
- chinese_name: "特克斯和凯科斯群岛",
- country_code: "TC",
- phone_code: "1649"
- },
- {
- english_name: "Tonga",
- chinese_name: "汤加",
- country_code: "TO",
- phone_code: "676"
- },
- {
- english_name: "Tanzania",
- chinese_name: "坦桑尼亚",
- country_code: "TZ",
- phone_code: "255"
- },
- {
- english_name: "Thailand",
- chinese_name: "泰国",
- country_code: "TH",
- phone_code: "66"
- },
- {
- english_name: "Tajikistan",
- chinese_name: "塔吉克斯坦",
- country_code: "TJ",
- phone_code: "992"
- },
- {
- english_name: "Somalia",
- chinese_name: "索马里",
- country_code: "SO",
- phone_code: "252"
- },
- {
- english_name: "Solomon Islands",
- chinese_name: "所罗门群岛",
- country_code: "SB",
- phone_code: "677"
- },
- {
- english_name: "Suriname",
- chinese_name: "苏里南",
- country_code: "SR",
- phone_code: "597"
- },
- {
- english_name: "Sudan",
- chinese_name: "苏丹",
- country_code: "SD",
- phone_code: "249"
- },
- {
- english_name: "Swaziland",
- chinese_name: "斯威士兰",
- country_code: "SZ",
- phone_code: "268"
- },
- {
- english_name: "Slovenia",
- chinese_name: "斯洛文尼亚",
- country_code: "SI",
- phone_code: "386"
- },
- {
- english_name: "Slovakia",
- chinese_name: "斯洛伐克",
- country_code: "SK",
- phone_code: "421"
- },
- {
- english_name: "Sri Lanka",
- chinese_name: "斯里兰卡",
- country_code: "LK",
- phone_code: "94"
- },
- {
- english_name: "Saint Vincent and The Grenadines",
- chinese_name: "圣文森特和格林纳丁斯",
- country_code: "VC",
- phone_code: "1784"
- },
- {
- english_name: "San Marino",
- chinese_name: "圣马力诺",
- country_code: "SM",
- phone_code: "378"
- },
- {
- english_name: "Saint Maarten (Dutch Part)",
- chinese_name: "圣马丁岛(荷兰部分)",
- country_code: "SX",
- phone_code: "1721"
- },
- {
- english_name: "Saint Lucia",
- chinese_name: "圣露西亚",
- country_code: "LC",
- phone_code: "1758"
- },
- {
- english_name: "Saint Kitts and Nevis",
- chinese_name: "圣基茨和尼维斯",
- country_code: "KN",
- phone_code: "1869"
- },
- {
- english_name: "Sao Tome and Principe",
- chinese_name: "圣多美和普林西比",
- country_code: "ST",
- phone_code: "239"
- },
- {
- english_name: "Saint Pierre and Miquelon",
- chinese_name: "圣彼埃尔和密克隆岛",
- country_code: "PM",
- phone_code: "508"
- },
- {
- english_name: "Saudi Arabia",
- chinese_name: "沙特阿拉伯",
- country_code: "SA",
- phone_code: "966"
- },
- {
- english_name: "Seychelles",
- chinese_name: "塞舌尔",
- country_code: "SC",
- phone_code: "248"
- },
- {
- english_name: "Cyprus",
- chinese_name: "塞浦路斯",
- country_code: "CY",
- phone_code: "357"
- },
- {
- english_name: "Senegal",
- chinese_name: "塞内加尔",
- country_code: "SN",
- phone_code: "221"
- },
- {
- english_name: "Sierra Leone",
- chinese_name: "塞拉利昂",
- country_code: "SL",
- phone_code: "232"
- },
- {
- english_name: "Serbia",
- chinese_name: "塞尔维亚",
- country_code: "RS",
- phone_code: "381"
- },
- {
- english_name: "Samoa",
- chinese_name: "萨摩亚",
- country_code: "WS",
- phone_code: "685"
- },
- {
- english_name: "El Salvador",
- chinese_name: "萨尔瓦多",
- country_code: "SV",
- phone_code: "503"
- },
- {
- english_name: "Switzerland",
- chinese_name: "瑞士",
- country_code: "CH",
- phone_code: "41"
- },
- {
- english_name: "Sweden",
- chinese_name: "瑞典",
- country_code: "SE",
- phone_code: "46"
- },
- {
- english_name: "Japan",
- chinese_name: "日本",
- country_code: "JP",
- phone_code: "81"
- },
- {
- english_name: "Portugal",
- chinese_name: "葡萄牙",
- country_code: "PT",
- phone_code: "351"
- },
- {
- english_name: "Palau",
- chinese_name: "帕劳",
- country_code: "PW",
- phone_code: "680"
- },
- {
- english_name: "Norway",
- chinese_name: "挪威",
- country_code: "NO",
- phone_code: "47"
- },
- {
- english_name: "Nigeria",
- chinese_name: "尼日利亚",
- country_code: "NG",
- phone_code: "234"
- },
- {
- english_name: "Niger",
- chinese_name: "尼日尔",
- country_code: "NE",
- phone_code: "227"
- },
- {
- english_name: "Nepal",
- chinese_name: "尼泊尔",
- country_code: "NP",
- phone_code: "977"
- },
- {
- english_name: "Nicaragua",
- chinese_name: "尼加拉瓜",
- country_code: "NI",
- phone_code: "505"
- },
- {
- english_name: "South Africa",
- chinese_name: "南非",
- country_code: "ZA",
- phone_code: "27"
- },
- {
- english_name: "Namibia",
- chinese_name: "纳米比亚",
- country_code: "NA",
- phone_code: "264"
- },
- {
- english_name: "Mexico",
- chinese_name: "墨西哥",
- country_code: "MX",
- phone_code: "52"
- },
- {
- english_name: "Mozambique",
- chinese_name: "莫桑比克",
- country_code: "MZ",
- phone_code: "258"
- },
- {
- english_name: "Monaco",
- chinese_name: "摩纳哥",
- country_code: "MC",
- phone_code: "377"
- },
- {
- english_name: "Morocco",
- chinese_name: "摩洛哥",
- country_code: "MA",
- phone_code: "212"
- },
- {
- english_name: "Moldova",
- chinese_name: "摩尔多瓦",
- country_code: "MD",
- phone_code: "373"
- },
- {
- english_name: "Myanmar",
- chinese_name: "缅甸",
- country_code: "MM",
- phone_code: "95"
- },
- {
- english_name: "Peru",
- chinese_name: "秘鲁",
- country_code: "PE",
- phone_code: "51"
- },
- {
- english_name: "Bangladesh",
- chinese_name: "孟加拉国",
- country_code: "BD",
- phone_code: "880"
- },
- {
- english_name: "Montserrat",
- chinese_name: "蒙特塞拉特岛",
- country_code: "MS",
- phone_code: "1664"
- },
- {
- english_name: "Mongolia",
- chinese_name: "蒙古",
- country_code: "MN",
- phone_code: "976"
- },
- {
- english_name: "Virgin Islands, US",
- chinese_name: "美属维尔京群岛",
- country_code: "VI",
- phone_code: "1284"
- },
- {
- english_name: "American Samoa",
- chinese_name: "美属萨摩亚",
- country_code: "AS",
- phone_code: "1684"
- },
- {
- english_name: "United States",
- chinese_name: "美国",
- country_code: "US",
- phone_code: "1"
- },
- {
- english_name: "Mauritania",
- chinese_name: "毛里塔尼亚",
- country_code: "MR",
- phone_code: "222"
- },
- {
- english_name: "Mauritius",
- chinese_name: "毛里求斯",
- country_code: "MU",
- phone_code: "230"
- },
- {
- english_name: "Mayotte",
- chinese_name: "马约特",
- country_code: "YT",
- phone_code: "269"
- },
- {
- english_name: "Martinique",
- chinese_name: "马提尼克",
- country_code: "MQ",
- phone_code: "596"
- },
- {
- english_name: "Macedonia",
- chinese_name: "马其顿",
- country_code: "MK",
- phone_code: "389"
- },
- {
- english_name: "Mali",
- chinese_name: "马里",
- country_code: "ML",
- phone_code: "223"
- },
- {
- english_name: "Malaysia",
- chinese_name: "马来西亚",
- country_code: "MY",
- phone_code: "60"
- },
- {
- english_name: "Malawi",
- chinese_name: "马拉维",
- country_code: "MW",
- phone_code: "265"
- },
- {
- english_name: "Malta",
- chinese_name: "马耳他",
- country_code: "MT",
- phone_code: "356"
- },
- {
- english_name: "Maldives",
- chinese_name: "马尔代夫",
- country_code: "MV",
- phone_code: "960"
- },
- {
- english_name: "Madagascar",
- chinese_name: "马达加斯加",
- country_code: "MG",
- phone_code: "261"
- },
- {
- english_name: "Romania",
- chinese_name: "罗马尼亚",
- country_code: "RO",
- phone_code: "40"
- },
- {
- english_name: "Rwanda",
- chinese_name: "卢旺达",
- country_code: "RW",
- phone_code: "250"
- },
- {
- english_name: "Luxembourg",
- chinese_name: "卢森堡",
- country_code: "LU",
- phone_code: "352"
- },
- {
- english_name: "Réunion Island",
- chinese_name: "留尼汪",
- country_code: "RE",
- phone_code: "262"
- },
- {
- english_name: "Liechtenstein",
- chinese_name: "列支敦士登",
- country_code: "LI",
- phone_code: "423"
- },
- {
- english_name: "Libya",
- chinese_name: "利比亚",
- country_code: "LY",
- phone_code: "218"
- },
- {
- english_name: "Liberia",
- chinese_name: "利比里亚",
- country_code: "LR",
- phone_code: "231"
- },
- {
- english_name: "Lithuania",
- chinese_name: "立陶宛",
- country_code: "LT",
- phone_code: "370"
- },
- {
- english_name: "Lebanon",
- chinese_name: "黎巴嫩",
- country_code: "LB",
- phone_code: "961"
- },
- {
- english_name: "Laos",
- chinese_name: "老挝",
- country_code: "LA",
- phone_code: "856"
- },
- {
- english_name: "Lesotho",
- chinese_name: "莱索托",
- country_code: "LS",
- phone_code: "266"
- },
- {
- english_name: "Latvia",
- chinese_name: "拉脱维亚",
- country_code: "LV",
- phone_code: "371"
- },
- {
- english_name: "Curacao",
- chinese_name: "库拉索",
- country_code: "CW",
- phone_code: "599"
- },
- {
- english_name: "Cook Islands",
- chinese_name: "库克群岛",
- country_code: "CK",
- phone_code: "682"
- },
- {
- english_name: "Kenya",
- chinese_name: "肯尼亚",
- country_code: "KE",
- phone_code: "254"
- },
- {
- english_name: "Croatia",
- chinese_name: "克罗地亚",
- country_code: "HR",
- phone_code: "385"
- },
- {
- english_name: "Kuwait",
- chinese_name: "科威特",
- country_code: "KW",
- phone_code: "965"
- },
- {
- english_name: "Comoros",
- chinese_name: "科摩罗",
- country_code: "KM",
- phone_code: "269"
- },
- {
- english_name: "Cape Verde",
- chinese_name: "开普",
- country_code: "CV",
- phone_code: "238"
- },
- {
- english_name: "Cayman Islands",
- chinese_name: "开曼群岛",
- country_code: "KY",
- phone_code: "1345"
- },
- {
- english_name: "Qatar",
- chinese_name: "卡塔尔",
- country_code: "QA",
- phone_code: "974"
- },
- {
- english_name: "Cameroon",
- chinese_name: "喀麦隆",
- country_code: "CM",
- phone_code: "237"
- },
- {
- english_name: "Zimbabwe",
- chinese_name: "津巴布韦",
- country_code: "ZW",
- phone_code: "263"
- },
- {
- english_name: "Czech",
- chinese_name: "捷克",
- country_code: "CZ",
- phone_code: "420"
- },
- {
- english_name: "Cambodia",
- chinese_name: "柬埔寨",
- country_code: "KH",
- phone_code: "855"
- },
- {
- english_name: "Gabon",
- chinese_name: "加蓬",
- country_code: "GA",
- phone_code: "241"
- },
- {
- english_name: "Ghana",
- chinese_name: "加纳",
- country_code: "GH",
- phone_code: "233"
- },
- {
- english_name: "Canada",
- chinese_name: "加拿大",
- country_code: "CA",
- phone_code: "1"
- },
- {
- english_name: "Guinea-Bissau",
- chinese_name: "几内亚比绍共和国",
- country_code: "GW",
- phone_code: "245"
- },
- {
- english_name: "Guinea",
- chinese_name: "几内亚",
- country_code: "GN",
- phone_code: "224"
- },
- {
- english_name: "Kyrgyzstan",
- chinese_name: "吉尔吉斯斯坦",
- country_code: "KG",
- phone_code: "996"
- },
- {
- english_name: "Djibouti",
- chinese_name: "吉布提",
- country_code: "DJ",
- phone_code: "253"
- },
- {
- english_name: "Kiribati",
- chinese_name: "基里巴斯",
- country_code: "KI",
- phone_code: "686"
- },
- {
- english_name: "Honduras",
- chinese_name: "洪都拉斯",
- country_code: "HN",
- phone_code: "504"
- },
- {
- english_name: "Montenegro",
- chinese_name: "黑山",
- country_code: "ME",
- phone_code: "382"
- },
- {
- english_name: "Netherlands",
- chinese_name: "荷兰",
- country_code: "NL",
- phone_code: "31"
- },
- {
- english_name: "South Korea",
- chinese_name: "韩国",
- country_code: "KR",
- phone_code: "82"
- },
- {
- english_name: "Haiti",
- chinese_name: "海地",
- country_code: "HT",
- phone_code: "509"
- },
- {
- english_name: "Kazakhstan",
- chinese_name: "哈萨克斯坦",
- country_code: "KZ",
- phone_code: "7"
- },
- {
- english_name: "Guyana",
- chinese_name: "圭亚那",
- country_code: "GY",
- phone_code: "592"
- },
- {
- english_name: "Guam",
- chinese_name: "关岛",
- country_code: "GU",
- phone_code: "1671"
- },
- {
- english_name: "Guatemala",
- chinese_name: "瓜地马拉",
- country_code: "GT",
- phone_code: "502"
- },
- {
- english_name: "Guadeloupe",
- chinese_name: "瓜德罗普岛",
- country_code: "GP",
- phone_code: "590"
- },
- {
- english_name: "Cuba",
- chinese_name: "古巴",
- country_code: "CU",
- phone_code: "53"
- },
- {
- english_name: "Georgia",
- chinese_name: "格鲁吉亚",
- country_code: "GE",
- phone_code: "995"
- },
- {
- english_name: "Greenland",
- chinese_name: "格陵兰岛",
- country_code: "GL",
- phone_code: "299"
- },
- {
- english_name: "Grenada",
- chinese_name: "格林纳达",
- country_code: "GD",
- phone_code: "1473"
- },
- {
- english_name: "Costa Rica",
- chinese_name: "哥斯达黎加",
- country_code: "CR",
- phone_code: "506"
- },
- {
- english_name: "Colombia",
- chinese_name: "哥伦比亚",
- country_code: "CO",
- phone_code: "57"
- },
- {
- english_name: "Democratic Republic of the Congo",
- chinese_name: "刚果民主共和国",
- country_code: "CD",
- phone_code: "243"
- },
- {
- english_name: "Republic Of The Congo",
- chinese_name: "刚果共和国",
- country_code: "CG",
- phone_code: "242"
- },
- {
- english_name: "Gambia",
- chinese_name: "冈比亚",
- country_code: "GM",
- phone_code: "220"
- },
- {
- english_name: "Finland",
- chinese_name: "芬兰",
- country_code: "FI",
- phone_code: "358"
- },
- {
- english_name: "Fiji",
- chinese_name: "斐济",
- country_code: "FJ",
- phone_code: "679"
- },
- {
- english_name: "Philippines",
- chinese_name: "菲律宾",
- country_code: "PH",
- phone_code: "63"
- },
- {
- english_name: "French Guiana",
- chinese_name: "法属圭亚那",
- country_code: "GF",
- phone_code: "594"
- },
- {
- english_name: "French Polynesia",
- chinese_name: "法属波利尼西亚",
- country_code: "PF",
- phone_code: "689"
- },
- {
- english_name: "Faroe Islands",
- chinese_name: "法罗群岛",
- country_code: "FO",
- phone_code: "298"
- },
- {
- english_name: "France",
- chinese_name: "法国",
- country_code: "FR",
- phone_code: "33"
- },
- {
- english_name: "Eritrea",
- chinese_name: "厄立特里亚",
- country_code: "ER",
- phone_code: "291"
- },
- {
- english_name: "Ecuador",
- chinese_name: "厄瓜多尔",
- country_code: "EC",
- phone_code: "593"
- },
- {
- english_name: "Russia",
- chinese_name: "俄罗斯",
- country_code: "RU",
- phone_code: "7"
- },
- {
- english_name: "Dominican Republic",
- chinese_name: "多米尼加共和国",
- country_code: "DO",
- phone_code: "1809"
- },
- {
- english_name: "Dominica",
- chinese_name: "多米尼加",
- country_code: "DM",
- phone_code: "1767"
- },
- {
- english_name: "Togo",
- chinese_name: "多哥",
- country_code: "TG",
- phone_code: "228"
- },
- {
- english_name: "Timor-Leste",
- chinese_name: "东帝汶",
- country_code: "TL",
- phone_code: "670"
- },
- {
- english_name: "Germany",
- chinese_name: "德国",
- country_code: "DE",
- phone_code: "49"
- },
- {
- english_name: "Denmark",
- chinese_name: "丹麦",
- country_code: "DK",
- phone_code: "45"
- },
- {
- english_name: "Equatorial Guinea",
- chinese_name: "赤道几内亚",
- country_code: "GQ",
- phone_code: "240"
- },
- {
- english_name: "Burundi",
- chinese_name: "布隆迪",
- country_code: "BI",
- phone_code: "257"
- },
- {
- english_name: "Burkina Faso",
- chinese_name: "布基纳法索",
- country_code: "BF",
- phone_code: "226"
- },
- {
- english_name: "Bhutan",
- chinese_name: "不丹",
- country_code: "BT",
- phone_code: "975"
- },
- {
- english_name: "Botswana",
- chinese_name: "博茨瓦纳",
- country_code: "BW",
- phone_code: "267"
- },
- {
- english_name: "Belize",
- chinese_name: "伯利兹",
- country_code: "BZ",
- phone_code: "501"
- },
- {
- english_name: "Bolivia",
- chinese_name: "玻利维亚",
- country_code: "BO",
- phone_code: "591"
- },
- {
- english_name: "Bosnia and Herzegovina",
- chinese_name: "波斯尼亚和黑塞哥维那",
- country_code: "BA",
- phone_code: "387"
- },
- {
- english_name: "Poland",
- chinese_name: "波兰",
- country_code: "PL",
- phone_code: "48"
- },
- {
- english_name: "Puerto Rico",
- chinese_name: "波多黎各",
- country_code: "PR",
- phone_code: "1787"
- },
- {
- english_name: "Iceland",
- chinese_name: "冰岛",
- country_code: "IS",
- phone_code: "354"
- },
- {
- english_name: "Belgium",
- chinese_name: "比利时",
- country_code: "BE",
- phone_code: "32"
- },
- {
- english_name: "Benin",
- chinese_name: "贝宁",
- country_code: "BJ",
- phone_code: "229"
- },
- {
- english_name: "Bulgaria",
- chinese_name: "保加利亚",
- country_code: "BG",
- phone_code: "359"
- },
- {
- english_name: "Bermuda",
- chinese_name: "百慕大群岛",
- country_code: "BM",
- phone_code: "1441"
- },
- {
- english_name: "Belarus",
- chinese_name: "白俄罗斯",
- country_code: "BY",
- phone_code: "375"
- },
- {
- english_name: "Brazil",
- chinese_name: "巴西",
- country_code: "BR",
- phone_code: "55"
- },
- {
- english_name: "Panama",
- chinese_name: "巴拿马",
- country_code: "PA",
- phone_code: "507"
- },
- {
- english_name: "Bahrain",
- chinese_name: "巴林",
- country_code: "BH",
- phone_code: "973"
- },
- {
- english_name: "Palestine",
- chinese_name: "巴勒斯坦",
- country_code: "BL",
- phone_code: "970"
- },
- {
- english_name: "Paraguay",
- chinese_name: "巴拉圭",
- country_code: "PY",
- phone_code: "595"
- },
- {
- english_name: "Pakistan",
- chinese_name: "巴基斯坦",
- country_code: "PK",
- phone_code: "92"
- },
- {
- english_name: "Bahamas",
- chinese_name: "巴哈马",
- country_code: "BS",
- phone_code: "1242"
- },
- {
- english_name: "Papua New Guinea",
- chinese_name: "巴布亚新几内亚",
- country_code: "PG",
- phone_code: "675"
- },
- {
- english_name: "Barbados",
- chinese_name: "巴巴多斯",
- country_code: "BB",
- phone_code: "1246"
- },
- {
- english_name: "Australia",
- chinese_name: "澳大利亚",
- country_code: "AU",
- phone_code: "61"
- },
- {
- english_name: "Austria",
- chinese_name: "奥地利",
- country_code: "AT",
- phone_code: "43"
- },
- {
- english_name: "Antigua and Barbuda",
- chinese_name: "安提瓜和巴布达",
- country_code: "AG",
- phone_code: "1268"
- },
- {
- english_name: "Anguilla",
- chinese_name: "安圭拉",
- country_code: "AI",
- phone_code: "1264"
- },
- {
- english_name: "Angola",
- chinese_name: "安哥拉",
- country_code: "AO",
- phone_code: "244"
- },
- {
- english_name: "Andorra",
- chinese_name: "安道尔",
- country_code: "AD",
- phone_code: "376"
- },
- {
- english_name: "Estonia",
- chinese_name: "爱沙尼亚",
- country_code: "EE",
- phone_code: "372"
- },
- {
- english_name: "Ireland",
- chinese_name: "爱尔兰",
- country_code: "IE",
- phone_code: "353"
- },
- {
- english_name: "Ethiopia",
- chinese_name: "埃塞俄比亚",
- country_code: "ET",
- phone_code: "251"
- },
- {
- english_name: "Egypt",
- chinese_name: "埃及",
- country_code: "EG",
- phone_code: "20"
- },
- {
- english_name: "Azerbaijan",
- chinese_name: "阿塞拜疆",
- country_code: "AZ",
- phone_code: "994"
- },
- {
- english_name: "Oman",
- chinese_name: "阿曼",
- country_code: "OM",
- phone_code: "968"
- },
- {
- english_name: "Aruba",
- chinese_name: "阿鲁巴",
- country_code: "AW",
- phone_code: "297"
- },
- {
- english_name: "United Arab Emirates",
- chinese_name: "阿拉伯联合酋长国",
- country_code: "AE",
- phone_code: "971"
- },
- {
- english_name: "Argentina",
- chinese_name: "阿根廷",
- country_code: "AR",
- phone_code: "54"
- },
- {
- english_name: "Afghanistan",
- chinese_name: "阿富汗",
- country_code: "AF",
- phone_code: "93"
- },
- {
- english_name: "Algeria",
- chinese_name: "阿尔及利亚",
- country_code: "DZ",
- phone_code: "213"
- },
- {
- english_name: "Albania",
- chinese_name: "阿尔巴尼亚",
- country_code: "AL",
- phone_code: "355"
- }
- ];
- if (!Array) {
- const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
- _easycom_uni_easyinput2();
- }
- const _easycom_uni_easyinput = () => "../../../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
- if (!Math) {
- _easycom_uni_easyinput();
- }
- const _sfc_main = {
- __name: "phone-international-input",
- props: {
- verifyUsername: {
- type: Boolean
- }
- },
- emits: ["input"],
- setup(__props, { emit: __emit }) {
- const country = common_vendor.ref(countryData);
- const selectedCode = common_vendor.ref("");
- const selectedCountryCode = common_vendor.ref("");
- const selectedIndex = common_vendor.ref(0);
- const findIndexByCode = (code) => {
- return country.value.findIndex((item) => item.phone_code == code);
- };
- const pickChange = (e) => {
- selectedIndex.value = e.detail.value;
- selectedCode.value = country.value[selectedIndex.value].phone_code;
- selectedCountryCode.value = country.value[selectedIndex.value].country_code;
- };
- common_vendor.onLoad(() => {
- const chinaIndex = findIndexByCode("86");
- if (chinaIndex !== -1) {
- selectedIndex.value = chinaIndex;
- selectedCode.value = country.value[chinaIndex].phone_code;
- selectedCountryCode.value = country.value[chinaIndex].country_code;
- }
- });
- const emits = __emit;
- const verifyMobile = (e) => {
- const phone = e;
- if (phone == "") {
- emits("input", phone, "请输入手机号");
- } else {
- try {
- const phoneParseMobile = common_vendor.parsePhoneNumber(phone, selectedCountryCode.value);
- if (phoneParseMobile.isValid()) {
- emits("input", phone, "");
- } else {
- emits("input", phone, "手机号码格式不正确");
- }
- } catch (e2) {
- }
- }
- };
- const state = common_vendor.reactive({
- codeText: "获取验证码",
- model: {
- mobile: ""
- // 手机号
- }
- });
- return (_ctx, _cache) => {
- return {
- a: common_vendor.t(selectedCode.value),
- b: common_assets._imports_0$1,
- c: country.value.map((item) => item.chinese_name + " +" + item.phone_code),
- d: selectedIndex.value,
- e: common_vendor.o(pickChange),
- f: common_vendor.t(common_vendor.unref(sheep_hooks_useModal.getSmsTimer)("smsLogin")),
- g: !__props.verifyUsername || selectedCode.value != 86,
- h: !__props.verifyUsername || selectedCode.value != 86 ? 1 : "",
- i: common_vendor.o(($event) => common_vendor.unref(sheep_hooks_useModal.getSmsCode)("smsLogin", state.model.mobile)),
- j: common_vendor.o(verifyMobile),
- k: common_vendor.o(($event) => state.model.mobile = $event),
- l: common_vendor.p({
- placeholder: "请输入手机号",
- inputBorder: false,
- type: "number",
- modelValue: state.model.mobile
- })
- };
- };
- }
- };
- const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5db53ad8"], ["__file", "D:/zx/mall-front-app/sheep/components/s-auth-modal/components/phone-international-input.vue"]]);
- wx.createComponent(Component);
|