| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- "use strict";
- (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_chunk-6GAVBEBQ_js"],{
- /***/ "./node_modules/.taro/weapp/prebundle/chunk-6GAVBEBQ.js":
- /*!**************************************************************!*\
- !*** ./node_modules/.taro/weapp/prebundle/chunk-6GAVBEBQ.js ***!
- \**************************************************************/
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ require_taro: function() { return /* binding */ require_taro; }
- /* harmony export */ });
- /* harmony import */ var _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-3EXGJ5BE.js */ "./node_modules/.taro/weapp/prebundle/chunk-3EXGJ5BE.js");
- /* harmony import */ var _chunk_77KB62LY_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chunk-77KB62LY.js */ "./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js");
- /* harmony import */ var _chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chunk-SOUSFT7N.js */ "./node_modules/.taro/weapp/prebundle/chunk-SOUSFT7N.js");
- /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
- // node_modules/@babel/runtime/helpers/esm/defineProperty.js
- function _defineProperty(obj, key, value) {
- key = (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._toPropertyKey)(key);
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- var init_defineProperty = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/defineProperty.js" () {
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__.init_toPropertyKey)();
- }
- });
- // node_modules/@babel/runtime/helpers/esm/objectSpread2.js
- function ownKeys(e, r) {
- var t = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e);
- r && (o = o.filter(function(r2) {
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
- })), t.push.apply(t, o);
- }
- return t;
- }
- function _objectSpread2(e) {
- for(var r = 1; r < arguments.length; r++){
- var t = null != arguments[r] ? arguments[r] : {};
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
- _defineProperty(e, r2, t[r2]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
- });
- }
- return e;
- }
- var init_objectSpread2 = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/objectSpread2.js" () {
- init_defineProperty();
- }
- });
- // node_modules/@tarojs/api/dist/index.esm.js
- var index_esm_exports = {};
- (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__export)(index_esm_exports, {
- default: ()=>Taro
- });
- function isFunction(x) {
- return typeof x === "function";
- }
- function isUndefined(x) {
- return typeof x === "undefined";
- }
- function isObject(x) {
- return x && (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._typeof)(x) === "object";
- }
- function throwTypeError(s) {
- throw new TypeError(s);
- }
- function getEnv() {
- if (true) {
- return ENV_TYPE.WEAPP;
- } else {}
- }
- function interceptorify(promiseifyApi) {
- return new Link(function(chain) {
- return promiseifyApi(chain.requestParams);
- });
- }
- function timeoutInterceptor(chain) {
- var requestParams = chain.requestParams;
- var p;
- var res = new Promise(function(resolve, reject) {
- var timeout = setTimeout(function() {
- timeout = null;
- reject(new Error("\u7F51\u7EDC\u94FE\u63A5\u8D85\u65F6,\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01"));
- }, requestParams && requestParams.timeout || 6e4);
- p = chain.proceed(requestParams);
- p.then(function(res2) {
- if (!timeout) return;
- clearTimeout(timeout);
- resolve(res2);
- }).catch(function(err) {
- timeout && clearTimeout(timeout);
- reject(err);
- });
- });
- if (!isUndefined(p) && isFunction(p.abort)) res.abort = p.abort;
- return res;
- }
- function logInterceptor(chain) {
- var requestParams = chain.requestParams;
- var method = requestParams.method, data = requestParams.data, url = requestParams.url;
- console.log("http ".concat(method || "GET", " --> ").concat(url, " data: "), data);
- var p = chain.proceed(requestParams);
- var res = p.then(function(res2) {
- console.log("http <-- ".concat(url, " result:"), res2);
- return res2;
- });
- if (isFunction(p.abort)) res.abort = p.abort;
- return res;
- }
- function Behavior(options2) {
- return options2;
- }
- function getPreload(current) {
- return function(key, val) {
- current.preloadData = isObject(key) ? key : _defineProperty({}, key, val);
- };
- }
- function getInitPxTransform(taro) {
- return function(config) {
- var _config$designWidth = config.designWidth, designWidth = _config$designWidth === void 0 ? defaultDesignWidth : _config$designWidth, _config$deviceRatio = config.deviceRatio, deviceRatio = _config$deviceRatio === void 0 ? defaultDesignRatio : _config$deviceRatio, _config$baseFontSize = config.baseFontSize, baseFontSize = _config$baseFontSize === void 0 ? defaultBaseFontSize : _config$baseFontSize, _config$targetUnit = config.targetUnit, targetUnit = _config$targetUnit === void 0 ? defaultTargetUnit : _config$targetUnit, _config$unitPrecision = config.unitPrecision, unitPrecision = _config$unitPrecision === void 0 ? defaultUnitPrecision : _config$unitPrecision;
- taro.config = taro.config || {};
- taro.config.designWidth = designWidth;
- taro.config.deviceRatio = deviceRatio;
- taro.config.baseFontSize = baseFontSize;
- taro.config.targetUnit = targetUnit;
- taro.config.unitPrecision = unitPrecision;
- };
- }
- function getPxTransform(taro) {
- return function(size) {
- var config = taro.config || {};
- var baseFontSize = config.baseFontSize;
- var deviceRatio = config.deviceRatio || defaultDesignRatio;
- var designWidth = function() {
- var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
- return isFunction(config.designWidth) ? config.designWidth(input) : config.designWidth || defaultDesignWidth;
- }(size);
- if (!(designWidth in deviceRatio)) {
- throw new Error("deviceRatio \u914D\u7F6E\u4E2D\u4E0D\u5B58\u5728 ".concat(designWidth, " \u7684\u8BBE\u7F6E\uFF01"));
- }
- var targetUnit = config.targetUnit || defaultTargetUnit;
- var unitPrecision = config.unitPrecision || defaultUnitPrecision;
- var formatSize = ~~size;
- var rootValue = 1 / deviceRatio[designWidth];
- switch(targetUnit){
- case "rem":
- rootValue *= baseFontSize * 2;
- break;
- case "px":
- rootValue *= 2;
- break;
- }
- var val = formatSize / rootValue;
- if (unitPrecision >= 0 && unitPrecision <= 100) {
- val = Number(val.toFixed(unitPrecision));
- }
- return val + targetUnit;
- };
- }
- var isBadObj, ENV_TYPE, isWeb, Chain, Link, interceptors, defaultDesignWidth, defaultDesignRatio, defaultBaseFontSize, defaultUnitPrecision, defaultTargetUnit, Taro;
- var init_index_esm = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__esm)({
- "node_modules/@tarojs/api/dist/index.esm.js" () {
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__.init_typeof)();
- (0,_chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.init_runtime_esm)();
- (0,_chunk_77KB62LY_js__WEBPACK_IMPORTED_MODULE_1__.init_shared_esm)();
- init_objectSpread2();
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__.init_classCallCheck)();
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__.init_createClass)();
- init_defineProperty();
- isBadObj = function isBadObj2(x) {
- return !isObject(x);
- };
- if (!isFunction(Object.assign)) {
- Object.assign = function(target) {
- if (target == null) {
- throwTypeError("Cannot convert undefined or null to object");
- }
- var to = Object(target);
- for(var index = 1; index < arguments.length; index++){
- var nextSource = arguments[index];
- if (nextSource != null) {
- for(var nextKey in nextSource){
- if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
- to[nextKey] = nextSource[nextKey];
- }
- }
- }
- }
- return to;
- };
- }
- if (!isFunction(Object.defineProperties)) {
- Object.defineProperties = function(obj, properties) {
- function convertToDescriptor(desc) {
- function hasProperty(obj2, prop) {
- return Object.prototype.hasOwnProperty.call(obj2, prop);
- }
- if (isBadObj(desc)) {
- throwTypeError("bad desc");
- }
- var d = {};
- if (hasProperty(desc, "enumerable")) d.enumerable = !!desc.enumerable;
- if (hasProperty(desc, "configurable")) {
- d.configurable = !!desc.configurable;
- }
- if (hasProperty(desc, "value")) d.value = desc.value;
- if (hasProperty(desc, "writable")) d.writable = !!desc.writable;
- if (hasProperty(desc, "get")) {
- var g = desc.get;
- if (!isFunction(g) && !isUndefined(g)) {
- throwTypeError("bad get");
- }
- d.get = g;
- }
- if (hasProperty(desc, "set")) {
- var s = desc.set;
- if (!isFunction(s) && !isUndefined(s)) {
- throwTypeError("bad set");
- }
- d.set = s;
- }
- if (("get" in d || "set" in d) && ("value" in d || "writable" in d)) {
- throwTypeError("identity-confused descriptor");
- }
- return d;
- }
- if (isBadObj(obj)) throwTypeError("bad obj");
- properties = Object(properties);
- var keys = Object.keys(properties);
- var descs = [];
- for(var i = 0; i < keys.length; i++){
- descs.push([
- keys[i],
- convertToDescriptor(properties[keys[i]])
- ]);
- }
- for(var _i = 0; _i < descs.length; _i++){
- Object.defineProperty(obj, descs[_i][0], descs[_i][1]);
- }
- return obj;
- };
- }
- ENV_TYPE = {
- WEAPP: "WEAPP",
- SWAN: "SWAN",
- ALIPAY: "ALIPAY",
- TT: "TT",
- QQ: "QQ",
- JD: "JD",
- WEB: "WEB",
- RN: "RN",
- HARMONY: "HARMONY",
- QUICKAPP: "QUICKAPP"
- };
- isWeb = (0,_chunk_77KB62LY_js__WEBPACK_IMPORTED_MODULE_1__.isWebPlatform)();
- Chain = function() {
- function Chain2(requestParams, interceptors2, index) {
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._classCallCheck)(this, Chain2);
- this.index = index || 0;
- this.requestParams = requestParams;
- this.interceptors = interceptors2 || [];
- }
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._createClass)(Chain2, [
- {
- key: "proceed",
- value: function proceed(requestParams) {
- this.requestParams = requestParams;
- if (this.index >= this.interceptors.length) {
- throw new Error("chain \u53C2\u6570\u9519\u8BEF, \u8BF7\u52FF\u76F4\u63A5\u4FEE\u6539 request.chain");
- }
- var nextInterceptor = this._getNextInterceptor();
- var nextChain = this._getNextChain();
- var p = nextInterceptor(nextChain);
- var res = p.catch(function(err) {
- return Promise.reject(err);
- });
- Object.keys(p).forEach(function(k) {
- return isFunction(p[k]) && (res[k] = p[k]);
- });
- return res;
- }
- },
- {
- key: "_getNextInterceptor",
- value: function _getNextInterceptor() {
- return this.interceptors[this.index];
- }
- },
- {
- key: "_getNextChain",
- value: function _getNextChain() {
- return new Chain2(this.requestParams, this.interceptors, this.index + 1);
- }
- }
- ]);
- return Chain2;
- }();
- Link = function() {
- function Link2(interceptor) {
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._classCallCheck)(this, Link2);
- this.taroInterceptor = interceptor;
- this.chain = new Chain();
- }
- (0,_chunk_SOUSFT7N_js__WEBPACK_IMPORTED_MODULE_2__._createClass)(Link2, [
- {
- key: "request",
- value: function request(requestParams) {
- var chain = this.chain;
- var taroInterceptor = this.taroInterceptor;
- chain.interceptors = chain.interceptors.filter(function(interceptor) {
- return interceptor !== taroInterceptor;
- }).concat(taroInterceptor);
- return chain.proceed(_objectSpread2({}, requestParams));
- }
- },
- {
- key: "addInterceptor",
- value: function addInterceptor(interceptor) {
- this.chain.interceptors.push(interceptor);
- }
- },
- {
- key: "cleanInterceptors",
- value: function cleanInterceptors() {
- this.chain = new Chain();
- }
- }
- ]);
- return Link2;
- }();
- interceptors = Object.freeze({
- __proto__: null,
- timeoutInterceptor,
- logInterceptor
- });
- defaultDesignWidth = 750;
- defaultDesignRatio = {
- 640: 2.34 / 2,
- 750: 1,
- 828: 1.81 / 2
- };
- defaultBaseFontSize = 20;
- defaultUnitPrecision = 5;
- defaultTargetUnit = "rpx";
- Taro = {
- Behavior,
- getEnv,
- ENV_TYPE,
- Link,
- interceptors,
- Current: _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.Current,
- getCurrentInstance: _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance,
- options: _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.options,
- nextTick: _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.nextTick,
- eventCenter: _chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.eventCenter,
- Events: _chunk_77KB62LY_js__WEBPACK_IMPORTED_MODULE_1__.Events,
- getInitPxTransform,
- interceptorify
- };
- Taro.initPxTransform = getInitPxTransform(Taro);
- Taro.preload = getPreload(_chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.Current);
- Taro.pxTransform = getPxTransform(Taro);
- }
- });
- // node_modules/@tarojs/taro/index.js
- var require_taro = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__commonJS)({
- "node_modules/@tarojs/taro/index.js" (exports, module) {
- var { hooks } = ((0,_chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.init_runtime_esm)(), (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toCommonJS)(_chunk_3EXGJ5BE_js__WEBPACK_IMPORTED_MODULE_0__.runtime_esm_exports));
- var taro = (init_index_esm(), (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_3__.__toCommonJS)(index_esm_exports)).default;
- if (hooks.isExist("initNativeApi")) {
- hooks.call("initNativeApi", taro);
- }
- module.exports = taro;
- module.exports.default = module.exports;
- }
- });
- /***/ }),
- /***/ "./node_modules/.taro/weapp/prebundle/chunk-SOUSFT7N.js":
- /*!**************************************************************!*\
- !*** ./node_modules/.taro/weapp/prebundle/chunk-SOUSFT7N.js ***!
- \**************************************************************/
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ _classCallCheck: function() { return /* binding */ _classCallCheck; },
- /* harmony export */ _createClass: function() { return /* binding */ _createClass; },
- /* harmony export */ _toPropertyKey: function() { return /* binding */ _toPropertyKey; },
- /* harmony export */ _typeof: function() { return /* binding */ _typeof; },
- /* harmony export */ init_classCallCheck: function() { return /* binding */ init_classCallCheck; },
- /* harmony export */ init_createClass: function() { return /* binding */ init_createClass; },
- /* harmony export */ init_toPropertyKey: function() { return /* binding */ init_toPropertyKey; },
- /* harmony export */ init_typeof: function() { return /* binding */ init_typeof; }
- /* harmony export */ });
- /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
- // node_modules/@babel/runtime/helpers/esm/classCallCheck.js
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- var init_classCallCheck = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/classCallCheck.js" () {}
- });
- // node_modules/@babel/runtime/helpers/esm/typeof.js
- function _typeof(o) {
- "@babel/helpers - typeof";
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
- return typeof o2;
- } : function(o2) {
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
- }, _typeof(o);
- }
- var init_typeof = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/typeof.js" () {}
- });
- // node_modules/@babel/runtime/helpers/esm/toPrimitive.js
- function _toPrimitive(input, hint) {
- if (_typeof(input) !== "object" || input === null) return input;
- var prim = input[Symbol.toPrimitive];
- if (prim !== void 0) {
- var res = prim.call(input, hint || "default");
- if (_typeof(res) !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
- return (hint === "string" ? String : Number)(input);
- }
- var init_toPrimitive = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/toPrimitive.js" () {
- init_typeof();
- }
- });
- // node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
- function _toPropertyKey(arg) {
- var key = _toPrimitive(arg, "string");
- return _typeof(key) === "symbol" ? key : String(key);
- }
- var init_toPropertyKey = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/toPropertyKey.js" () {
- init_typeof();
- init_toPrimitive();
- }
- });
- // node_modules/@babel/runtime/helpers/esm/createClass.js
- function _defineProperties(target, props) {
- for(var i = 0; i < props.length; i++){
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- Object.defineProperty(Constructor, "prototype", {
- writable: false
- });
- return Constructor;
- }
- var init_createClass = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@babel/runtime/helpers/esm/createClass.js" () {
- init_toPropertyKey();
- }
- });
- /***/ })
- }]);
|