You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1460 lines
124 KiB
1460 lines
124 KiB
|
3 years ago
|
(this["webpackJsonp"] = this["webpackJsonp"] || []).push([["app-service"],[
|
||
|
|
/* 0 */
|
||
|
|
/*!************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/main.js ***!
|
||
|
|
\************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 1);\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 2));\n__webpack_require__(/*! uni-pages */ 6);\nvar _App = _interopRequireDefault(__webpack_require__(/*! ./App */ 26));\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 24));\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n_vue.default.config.productionTip = false;\n_App.default.mpType = 'app';\nvar app = new _vue.default(_objectSpread({}, _App.default));\napp.$mount();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vbWFpbi5qcyJdLCJuYW1lcyI6WyJWdWUiLCJjb25maWciLCJwcm9kdWN0aW9uVGlwIiwiQXBwIiwibXBUeXBlIiwiYXBwIiwiJG1vdW50Il0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7QUFBbUI7QUFHbkI7QUFBcUI7QUFBQTtBQUNyQkEsWUFBRyxDQUFDQyxNQUFNLENBQUNDLGFBQWEsR0FBRyxLQUFLO0FBQ2hDQyxZQUFHLENBQUNDLE1BQU0sR0FBRyxLQUFLO0FBQ2xCLElBQU1DLEdBQUcsR0FBRyxJQUFJTCxZQUFHLG1CQUNaRyxZQUFHLEVBQ1I7QUFDRkUsR0FBRyxDQUFDQyxNQUFNLEVBQUUiLCJmaWxlIjoiMC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAndW5pLXBhZ2VzJztpbXBvcnQgQXBwIGZyb20gJy4vQXBwJ1xyXG5cclxuXHJcbmltcG9ydCBWdWUgZnJvbSAndnVlJ1xyXG5WdWUuY29uZmlnLnByb2R1Y3Rpb25UaXAgPSBmYWxzZVxyXG5BcHAubXBUeXBlID0gJ2FwcCdcclxuY29uc3QgYXBwID0gbmV3IFZ1ZSh7XHJcbiAgICAuLi5BcHBcclxufSlcclxuYXBwLiRtb3VudCgpXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n");
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 1 */
|
||
|
|
/*!**********************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||
|
|
\**********************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _interopRequireDefault(obj) {
|
||
|
|
return obj && obj.__esModule ? obj : {
|
||
|
|
"default": obj
|
||
|
|
};
|
||
|
|
}
|
||
|
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 2 */
|
||
|
|
/*!***************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
||
|
|
\***************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 3);
|
||
|
|
function _defineProperty(obj, key, value) {
|
||
|
|
key = toPropertyKey(key);
|
||
|
|
if (key in obj) {
|
||
|
|
Object.defineProperty(obj, key, {
|
||
|
|
value: value,
|
||
|
|
enumerable: true,
|
||
|
|
configurable: true,
|
||
|
|
writable: true
|
||
|
|
});
|
||
|
|
} else {
|
||
|
|
obj[key] = value;
|
||
|
|
}
|
||
|
|
return obj;
|
||
|
|
}
|
||
|
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 3 */
|
||
|
|
/*!**************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
||
|
|
\**************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
var _typeof = __webpack_require__(/*! ./typeof.js */ 4)["default"];
|
||
|
|
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 5);
|
||
|
|
function _toPropertyKey(arg) {
|
||
|
|
var key = toPrimitive(arg, "string");
|
||
|
|
return _typeof(key) === "symbol" ? key : String(key);
|
||
|
|
}
|
||
|
|
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 4 */
|
||
|
|
/*!*******************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
|
||
|
|
\*******************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _typeof(obj) {
|
||
|
|
"@babel/helpers - typeof";
|
||
|
|
|
||
|
|
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
||
|
|
return typeof obj;
|
||
|
|
} : function (obj) {
|
||
|
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||
|
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
||
|
|
}
|
||
|
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 5 */
|
||
|
|
/*!************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
|
||
|
|
\************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
var _typeof = __webpack_require__(/*! ./typeof.js */ 4)["default"];
|
||
|
|
function _toPrimitive(input, hint) {
|
||
|
|
if (_typeof(input) !== "object" || input === null) return input;
|
||
|
|
var prim = input[Symbol.toPrimitive];
|
||
|
|
if (prim !== undefined) {
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 6 */
|
||
|
|
/*!***************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/pages.json ***!
|
||
|
|
\***************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
|
||
|
|
Promise.prototype.finally = function (callback) {
|
||
|
|
var promise = this.constructor;
|
||
|
|
return this.then(function (value) {
|
||
|
|
return promise.resolve(callback()).then(function () {
|
||
|
|
return value;
|
||
|
|
});
|
||
|
|
}, function (reason) {
|
||
|
|
return promise.resolve(callback()).then(function () {
|
||
|
|
throw reason;
|
||
|
|
});
|
||
|
|
});
|
||
|
|
};
|
||
|
|
}
|
||
|
|
if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||
|
|
var global = uni.requireGlobal();
|
||
|
|
ArrayBuffer = global.ArrayBuffer;
|
||
|
|
Int8Array = global.Int8Array;
|
||
|
|
Uint8Array = global.Uint8Array;
|
||
|
|
Uint8ClampedArray = global.Uint8ClampedArray;
|
||
|
|
Int16Array = global.Int16Array;
|
||
|
|
Uint16Array = global.Uint16Array;
|
||
|
|
Int32Array = global.Int32Array;
|
||
|
|
Uint32Array = global.Uint32Array;
|
||
|
|
Float32Array = global.Float32Array;
|
||
|
|
Float64Array = global.Float64Array;
|
||
|
|
BigInt64Array = global.BigInt64Array;
|
||
|
|
BigUint64Array = global.BigUint64Array;
|
||
|
|
}
|
||
|
|
if (uni.restoreGlobal) {
|
||
|
|
uni.restoreGlobal(weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
|
||
|
|
}
|
||
|
|
__definePage('pages/index/index', function () {
|
||
|
|
return Vue.extend(__webpack_require__(/*! pages/index/index.vue?mpType=page */ 7).default);
|
||
|
|
});
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 7 */
|
||
|
|
/*!**************************************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/pages/index/index.vue?mpType=page ***!
|
||
|
|
\**************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=2be84a3c&scoped=true&mpType=page */ 8);\n/* harmony import */ var _index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js&mpType=page */ 10);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 25);\n\nvar renderjs\n\n\n\n\n/* normalize component */\n\nvar component = Object(_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"2be84a3c\",\n null,\n false,\n _index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__[\"components\"],\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/index.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBeUk7QUFDekk7QUFDb0U7QUFDTDs7O0FBRy9EO0FBQ21OO0FBQ25OLGdCQUFnQiwyTkFBVTtBQUMxQixFQUFFLHNGQUFNO0FBQ1IsRUFBRSx1R0FBTTtBQUNSLEVBQUUsZ0hBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEVBQUUsMkdBQVU7QUFDWjtBQUNBOztBQUVBO0FBQ2UsZ0YiLCJmaWxlIjoiNy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zLCByZWN5Y2xhYmxlUmVuZGVyLCBjb21wb25lbnRzIH0gZnJvbSBcIi4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTJiZTg0YTNjJnNjb3BlZD10cnVlJm1wVHlwZT1wYWdlXCJcbnZhciByZW5kZXJqc1xuaW1wb3J0IHNjcmlwdCBmcm9tIFwiLi9pbmRleC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmbXBUeXBlPXBhZ2VcIlxuZXhwb3J0ICogZnJvbSBcIi4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJm1wVHlwZT1wYWdlXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIUQ6XFxcXDEuZGV2ZWxvcFNvZnR3YXJlXFxcXEhCdWlsZGVyWC4zLjYuMTUuMjAyMjEyMjhcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx2dWUtbG9hZGVyXFxcXGxpYlxcXFxydW50aW1lXFxcXGNvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBcIjJiZTg0YTNjXCIsXG4gIG51bGwsXG4gIGZhbHNlLFxuICBjb21wb25lbnRzLFxuICByZW5kZXJqc1xuKVxuXG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInBhZ2VzL2luZGV4L2luZGV4LnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///7\n");
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 8 */
|
||
|
|
/*!********************************************************************************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/pages/index/index.vue?vue&type=template&id=2be84a3c&scoped=true&mpType=page ***!
|
||
|
|
\********************************************************************************************************************/
|
||
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_0_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=2be84a3c&scoped=true&mpType=page */ 9);
|
||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_0_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||
|
|
|
||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_0_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||
|
|
|
||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_0_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||
|
|
|
||
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_10_0_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_2be84a3c_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 9 */
|
||
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--10-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!E:/01-烁今项目/05-app端开发/xumuocr_app/pages/index/index.vue?vue&type=template&id=2be84a3c&scoped=true&mpType=page ***!
|
||
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
||
|
|
var components
|
||
|
|
var render = function () {
|
||
|
|
var _vm = this
|
||
|
|
var _h = _vm.$createElement
|
||
|
|
var _c = _vm._self._c || _h
|
||
|
|
return _c(
|
||
|
|
"view",
|
||
|
|
{ staticClass: _vm._$s(0, "sc", "box"), attrs: { _i: 0 } },
|
||
|
|
[
|
||
|
|
_c(
|
||
|
|
"view",
|
||
|
|
{ staticClass: _vm._$s(1, "sc", "header"), attrs: { _i: 1 } },
|
||
|
|
[_c("button", { attrs: { _i: 2 }, on: { click: _vm.uploadImage } })]
|
||
|
|
),
|
||
|
|
_c("view", { staticClass: _vm._$s(3, "sc", "main"), attrs: { _i: 3 } }, [
|
||
|
|
_c("scroll-view", {}, [
|
||
|
|
_c("view", [
|
||
|
|
_vm._$s(6, "i", _vm.content.length > 0) ? _c("h4") : _vm._e(),
|
||
|
|
_c("text", [_vm._v(_vm._$s(7, "t0-0", _vm._s(_vm.message)))]),
|
||
|
|
]),
|
||
|
|
_c(
|
||
|
|
"view",
|
||
|
|
_vm._l(
|
||
|
|
_vm._$s(9, "f", { forItems: _vm.content }),
|
||
|
|
function (item, index, $20, $30) {
|
||
|
|
return _c(
|
||
|
|
"text",
|
||
|
|
{ key: _vm._$s(9, "f", { forIndex: $20, key: index }) },
|
||
|
|
[
|
||
|
|
_c("p", [
|
||
|
|
_c("text", {}, [
|
||
|
|
_vm._v(
|
||
|
|
_vm._$s("11-" + $30, "t0-0", _vm._s(item.words))
|
||
|
|
),
|
||
|
|
]),
|
||
|
|
]),
|
||
|
|
]
|
||
|
|
)
|
||
|
|
}
|
||
|
|
),
|
||
|
|
0
|
||
|
|
),
|
||
|
|
]),
|
||
|
|
]),
|
||
|
|
_c(
|
||
|
|
"view",
|
||
|
|
{ staticClass: _vm._$s(12, "sc", "footer"), attrs: { _i: 12 } },
|
||
|
|
[
|
||
|
|
_vm._$s(13, "i", _vm.contentStr !== "")
|
||
|
|
? _c("button", {
|
||
|
|
attrs: { _i: 13 },
|
||
|
|
on: {
|
||
|
|
click: function ($event) {
|
||
|
|
return _vm.saveTxt(_vm.contentStr)
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|
||
|
|
: _vm._e(),
|
||
|
|
]
|
||
|
|
),
|
||
|
|
]
|
||
|
|
)
|
||
|
|
}
|
||
|
|
var recyclableRender = false
|
||
|
|
var staticRenderFns = []
|
||
|
|
render._withStripped = true
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 10 */
|
||
|
|
/*!**************************************************************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/pages/index/index.vue?vue&type=script&lang=js&mpType=page ***!
|
||
|
|
\**************************************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./index.vue?vue&type=script&lang=js&mpType=page */ 11);\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packag
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 11 */
|
||
|
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!E:/01-烁今项目/05-app端开发/xumuocr_app/pages/index/index.vue?vue&type=script&lang=js&mpType=page ***!
|
||
|
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("/* WEBPACK VAR INJECTION */(function(__f__) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _index = __webpack_require__(/*! @/api/index.js */ 13);\nvar _index2 = __webpack_require__(/*! @/components/image-tools/index.js */ 15);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = {\n data: function data() {\n return {\n content: [],\n token: \"\",\n contentStr: \"\",\n message: \"\"\n };\n },\n created: function created() {\n var _this = this;\n (0, _index.getTokenR)().then(function (res) {\n _this.token = res.access_token;\n });\n },\n methods: {\n uploadImage: function uploadImage() {\n var _this2 = this;\n // 选取照片,进行OCR识别\n\n uni.chooseImage({\n count: 1,\n //默认9\n sizeType: ['original', 'compressed'],\n //可以指定是原图还是压缩图,默认二者都有\n success: function success(res) {\n _this2.contentStr = \"\";\n _this2.message = \"\";\n uni.showLoading({\n title: '正在识别中...'\n });\n // this.src = res.tempFilePaths[0]; //后面还能用到 src 暂且留着\n (0, _index2.pathToBase64)(res.tempFilePaths[0]).then(function (res2) {\n // 下面进行转码\n uni.request({\n url: \"https://aip.baidubce.com/rest/2.0/ocr/v1/accurate_basic?access_token=\".concat(_this2.token),\n data: {\n image: res2,\n language_type: 'ENG',\n //识别语言类型,默认中英文结合\n detect_direction: true //检测图像朝向\n },\n\n method: 'POST',\n header: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n success: function success(res) {\n _this2.content = res.data.words_result;\n for (var i in res.data.words_result) {\n _this2.contentStr += res.data.words_result[i].words + \"\\n\";\n }\n uni.hideLoading(); //把正在加载中隐藏\n }\n });\n });\n }\n });\n },\n // 保存本地文件txt\n saveTxt: function saveTxt(res) {\n var dir = '/A_store';\n var pathUrl = \"/A_store/\".concat(Date.parse(new Date()), \".txt\");\n var environment = plus.android.importClass(\"android.os.Environment\");\n var sdRoot = environment.getExternalStorageDirectory(); //文件夹根目录\n var File = plus.android.importClass(\"java.io.File\");\n var BufferedReader = plus.android.importClass(\"java.io.BufferedReader\");\n var FileReader = plus.android.importClass(\"java.io.FileReader\");\n var FileWriter = plus.android.importClass(\"java.io.FileWriter\");\n var BufferedWriter = plus.android.importClass(\"java.io.BufferedWriter\");\n var OutputStreamWriter = plus.android.importClass(\"java.io.OutputStreamWriter\");\n var FileOutputStream = plus.android.importClass(\"java.io.FileOutputStream\");\n try {\n //不加根目录创建文件(即用相对地址)的话directory.exists()这个判断一值都是false\n var directory = new File(sdRoot + dir);\n if (!directory.exists()) {\n __f__(\"log\", '创建目录', \" at pages/index/index.vue:111\");\n directory.mkdirs(); //创建目录\n }\n\n var file = new File(sdRoot + pathUrl);\n __f__(\"log\", file.exists(), \" at pages/index/index.vue:115\");\n if (!file.exists()) {\n file.createNewFile(); //创建文件\n }\n\n var path = sdRoot + pathUrl;\n\n // let writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n // writer.write(res);\n // writer.close();\n\n var fos = new FileWriter(sdRoot + pathUrl, true);\n fos.write(res);
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 12 */
|
||
|
|
/*!*********************************************************************!*\
|
||
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js ***!
|
||
|
|
\*********************************************************************/
|
||
|
|
/*! exports provided: log, default */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLog; });
|
||
|
|
function typof (v) {
|
||
|
|
var s = Object.prototype.toString.call(v)
|
||
|
|
return s.substring(8, s.length - 1)
|
||
|
|
}
|
||
|
|
|
||
|
|
function isDebugMode () {
|
||
|
|
/* eslint-disable no-undef */
|
||
|
|
return typeof __channelId__ === 'string' && __channelId__
|
||
|
|
}
|
||
|
|
|
||
|
|
function jsonStringifyReplacer (k, p) {
|
||
|
|
switch (typof(p)) {
|
||
|
|
case 'Function':
|
||
|
|
return 'function() { [native code] }'
|
||
|
|
default :
|
||
|
|
return p
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
function log (type) {
|
||
|
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||
|
|
args[_key - 1] = arguments[_key]
|
||
|
|
}
|
||
|
|
console[type].apply(console, args)
|
||
|
|
}
|
||
|
|
|
||
|
|
function formatLog () {
|
||
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
|
|
args[_key] = arguments[_key]
|
||
|
|
}
|
||
|
|
var type = args.shift()
|
||
|
|
if (isDebugMode()) {
|
||
|
|
args.push(args.pop().replace('at ', 'uni-app:///'))
|
||
|
|
return console[type].apply(console, args)
|
||
|
|
}
|
||
|
|
|
||
|
|
var msgs = args.map(function (v) {
|
||
|
|
var type = Object.prototype.toString.call(v).toLowerCase()
|
||
|
|
|
||
|
|
if (type === '[object object]' || type === '[object array]') {
|
||
|
|
try {
|
||
|
|
v = '---BEGIN:JSON---' + JSON.stringify(v, jsonStringifyReplacer) + '---END:JSON---'
|
||
|
|
} catch (e) {
|
||
|
|
v = type
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
if (v === null) {
|
||
|
|
v = '---NULL---'
|
||
|
|
} else if (v === undefined) {
|
||
|
|
v = '---UNDEFINED---'
|
||
|
|
} else {
|
||
|
|
var vType = typof(v).toUpperCase()
|
||
|
|
|
||
|
|
if (vType === 'NUMBER' || vType === 'BOOLEAN') {
|
||
|
|
v = '---BEGIN:' + vType + '---' + v + '---END:' + vType + '---'
|
||
|
|
} else {
|
||
|
|
v = String(v)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return v
|
||
|
|
})
|
||
|
|
var msg = ''
|
||
|
|
|
||
|
|
if (msgs.length > 1) {
|
||
|
|
var lastMsg = msgs.pop()
|
||
|
|
msg = msgs.join('---COMMA---')
|
||
|
|
|
||
|
|
if (lastMsg.indexOf(' at ') === 0) {
|
||
|
|
msg += lastMsg
|
||
|
|
} else {
|
||
|
|
msg += '---COMMA---' + lastMsg
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
msg = msgs[0]
|
||
|
|
}
|
||
|
|
|
||
|
|
console[type](msg)
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 13 */
|
||
|
|
/*!*****************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/api/index.js ***!
|
||
|
|
\*****************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("\n\nvar _index = __webpack_require__(/*! @/request/index.js */ 14);\nvar url = {\n // 获取token\n getToken: 'oauth/2.0/token',\n idCard: 'rest/2.0/ocr/v1/accurate_basic'\n // idCard:'rest/2.0/ocr/v1/general_basic',\n};\n\nmodule.exports = {\n getTokenR: function getTokenR(params) {\n return (0, _index.httpRequest)({\n url: \"\".concat(url.getToken, \"?grant_type=client_credentials&client_id=W4jgXICF2kyaivdsYzKoDOxD&client_secret=h6uwa0q0hkjn4im4Vb9QXaC7xrBbvw6B\")\n });\n },\n getMessage: function getMessage(params) {\n return (0, _index.httpRequest)({\n url: \"\".concat(url.idCard, \"?access_token=\").concat(params.access_token),\n data: params.data,\n header: {\n \"Content-Type\": \"application/x-www-form-urlencoded\"\n }\n });\n }\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vYXBpL2luZGV4LmpzIl0sIm5hbWVzIjpbInVybCIsImdldFRva2VuIiwiaWRDYXJkIiwibW9kdWxlIiwiZXhwb3J0cyIsImdldFRva2VuUiIsInBhcmFtcyIsImh0dHBSZXF1ZXN0IiwiZ2V0TWVzc2FnZSIsImFjY2Vzc190b2tlbiIsImRhdGEiLCJoZWFkZXIiXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQSxJQUFJQSxHQUFHLEdBQUc7RUFDTjtFQUNBQyxRQUFRLEVBQUMsaUJBQWlCO0VBQzFCQyxNQUFNLEVBQUM7RUFDUDtBQUNKLENBQUM7O0FBRURDLE1BQU0sQ0FBQ0MsT0FBTyxHQUFHO0VBQ2JDLFNBQVMscUJBQUNDLE1BQU0sRUFBQztJQUNiLE9BQU8sSUFBQUMsa0JBQVcsRUFBQztNQUNmUCxHQUFHLFlBQUlBLEdBQUcsQ0FBQ0MsUUFBUTtJQUN2QixDQUFDLENBQUM7RUFDTixDQUFDO0VBQ0RPLFVBQVUsc0JBQUNGLE1BQU0sRUFBQztJQUNkLE9BQU8sSUFBQUMsa0JBQVcsRUFBQztNQUNmUCxHQUFHLFlBQUlBLEdBQUcsQ0FBQ0UsTUFBTSwyQkFBaUJJLE1BQU0sQ0FBQ0csWUFBWSxDQUFFO01BQ3ZEQyxJQUFJLEVBQUNKLE1BQU0sQ0FBQ0ksSUFBSTtNQUNoQkMsTUFBTSxFQUFDO1FBQ0gsY0FBYyxFQUFDO01BQ25CO0lBQ0osQ0FBQyxDQUFDO0VBQ047QUFDSCxDQUFDIiwiZmlsZSI6IjEzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaHR0cFJlcXVlc3QgfSBmcm9tICdAL3JlcXVlc3QvaW5kZXguanMnXHJcbmxldCB1cmwgPSB7XHJcbiAgICAvLyDojrflj5Z0b2tlblxyXG4gICAgZ2V0VG9rZW46J29hdXRoLzIuMC90b2tlbicsXHJcbiAgICBpZENhcmQ6J3Jlc3QvMi4wL29jci92MS9hY2N1cmF0ZV9iYXNpYycsXHJcbiAgICAvLyBpZENhcmQ6J3Jlc3QvMi4wL29jci92MS9nZW5lcmFsX2Jhc2ljJyxcclxufVxyXG5cclxubW9kdWxlLmV4cG9ydHMgPSB7XHRcclxuICAgIGdldFRva2VuUihwYXJhbXMpe1xyXG4gICAgICAgIHJldHVybiBodHRwUmVxdWVzdCh7XHJcbiAgICAgICAgICAgIHVybDpgJHt1cmwuZ2V0VG9rZW59P2dyYW50X3R5cGU9Y2xpZW50X2NyZWRlbnRpYWxzJmNsaWVudF9pZD1XNGpnWElDRjJreWFpdmRzWXpLb0RPeEQmY2xpZW50X3NlY3JldD1oNnV3YTBxMGhram40aW00VmI5UVhhQzd4ckJidnc2QmBcclxuICAgICAgICB9KVxyXG4gICAgfSxcclxuICAgIGdldE1lc3NhZ2UocGFyYW1zKXtcclxuICAgICAgICByZXR1cm4gaHR0cFJlcXVlc3Qoe1xyXG4gICAgICAgICAgICB1cmw6YCR7dXJsLmlkQ2FyZH0/YWNjZXNzX3Rva2VuPSR7cGFyYW1zLmFjY2Vzc190b2tlbn1gLFxyXG4gICAgICAgICAgICBkYXRhOnBhcmFtcy5kYXRhLFxyXG4gICAgICAgICAgICBoZWFkZXI6e1xyXG4gICAgICAgICAgICAgICAgXCJDb250ZW50LVR5cGVcIjpcImFwcGxpY2F0aW9uL3gtd3d3LWZvcm0tdXJsZW5jb2RlZFwiXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KVxyXG4gICAgfVxyXG4gfSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///13\n");
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 14 */
|
||
|
|
/*!*********************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/request/index.js ***!
|
||
|
|
\*********************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
eval("// 配置公共的URL路径\nvar Host = \"https://aip.baidubce.com/\";\nvar http = function http(params) {\n //返回promise 对象\n return new Promise(function (resolve, reject) {\n uni.request({\n // 服务器url+参数中携带的接口具体地址\n url: Host + params.url,\n // 请求参数\n data: params.data,\n // 设置后端需要的常用的格式就好,特殊情况调用的时候单独设置\n header: params.header || {\n \"Content-Type\": \"application/json;charset=utf-8\",\n \"api-version\": params.apiVersion || '1.0'\n },\n // \"Authorization\": token\n // 默认为GET,可以不写,如常用请求格式为POST,可以设置POST为默认请求方式\n method: params.method && params.method.toUpperCase() || 'POST',\n dataType: params.dataType,\n //返回的数据格式,默认为JSON,特殊格式可以在调用的时候传入参数\n responseType: params.responseType,\n //响应的数据类型\n success: function success(res) {\n // 接口访问正常返回数据\n if (res.statusCode == 200 && res.data.code === 200 || res.data.code === 401) {\n //1. 操作成功返回数据\n resolve(res.data);\n } else {\n //2. 操作不成功返回数据,以toast方式弹出响应信息,如后端未格式化非操作成功异常信息,则可以统一定义异常提示\n if (res.data.code === 503) {\n uni.showToast({\n icon: \"none\",\n title: \"系统异常\",\n duration: 3000\n });\n } else {\n if (res.data.msg) {\n uni.showToast({\n icon: \"none\",\n title: res.data.msg,\n duration: 3000\n });\n }\n }\n resolve(res.data);\n }\n },\n fail: function fail(e) {\n if (e.errMsg === \"request:fail timeout\") {\n uni.showToast({\n icon: \"none\",\n title: \"网络连接超时,请稍后重试\"\n });\n }\n reject(e);\n setTimeout(function () {\n uni.hideLoading();\n }, 1500);\n },\n complete: function complete(e) {\n resolve(e);\n }\n });\n });\n};\nmodule.exports = {\n httpRequest: http\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vcmVxdWVzdC9pbmRleC5qcyJdLCJuYW1lcyI6WyJIb3N0IiwiaHR0cCIsInBhcmFtcyIsIlByb21pc2UiLCJyZXNvbHZlIiwicmVqZWN0IiwidW5pIiwicmVxdWVzdCIsInVybCIsImRhdGEiLCJoZWFkZXIiLCJhcGlWZXJzaW9uIiwibWV0aG9kIiwidG9VcHBlckNhc2UiLCJkYXRhVHlwZSIsInJlc3BvbnNlVHlwZSIsInN1Y2Nlc3MiLCJyZXMiLCJzdGF0dXNDb2RlIiwiY29kZSIsInNob3dUb2FzdCIsImljb24iLCJ0aXRsZSIsImR1cmF0aW9uIiwibXNnIiwiZmFpbCIsImUiLCJlcnJNc2ciLCJzZXRUaW1lb3V0IiwiaGlkZUxvYWRpbmciLCJjb21wbGV0ZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJodHRwUmVxdWVzdCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSxJQUFNQSxJQUFJLEdBQUcsMkJBQTJCO0FBR3hDLElBQU1DLElBQUksR0FBRyxTQUFQQSxJQUFJLENBQUlDLE1BQU0sRUFBSztFQUV2QjtFQUNBLE9BQU8sSUFBSUMsT0FBTyxDQUFDLFVBQUNDLE9BQU8sRUFBRUMsTUFBTSxFQUFLO0lBQ3RDQyxHQUFHLENBQUNDLE9BQU8sQ0FBQztNQUNWO01BQ0FDLEdBQUcsRUFBQ1IsSUFBSSxHQUFDRSxNQUFNLENBQUNNLEdBQUc7TUFDbkI7TUFDQUMsSUFBSSxFQUFFUCxNQUFNLENBQUNPLElBQUk7TUFDakI7TUFDQUMsTUFBTSxFQUFFUixNQUFNLENBQUNRLE1BQU0sSUFBSTtRQUN2QixjQUFjLEVBQUUsZ0NBQWdDO1FBQ2hELGFBQWEsRUFBRVIsTUFBTSxDQUFDUyxVQUFVLElBQUc7TUFDckMsQ0FBQztNQUNEO01BQ0E7TUFDQUMsTUFBTSxFQUFFVixNQUFNLENBQUNVLE1BQU0sSUFBSVYsTUFBTSxDQUFDVSxNQUFNLENBQUNDLFdBQVcsRUFBRSxJQUFJLE1BQU07TUFDOURDLFFBQVEsRUFBRVosTUFBTSxDQUFDWSxRQUFRO01BQUM7TUFDMUJDLFlBQVksRUFBRWIsTUFBTSxDQUFDYSxZQUFZO01BQUM7TUFDbENDLE9BQU8sRUFBRSxpQkFBQUMsR0FBRyxFQUFJO1FBQ2Q7UUFDQSxJQUFLQSxHQUFHLENBQUNDLFVBQVUsSUFBSSxHQUFHLElBQUlELEdBQUcsQ0FBQ1IsSUFBSSxDQUFDVSxJQUFJLEtBQUssR0FBRyxJQUFHRixHQUFHLENBQUNSLElBQUksQ0FBQ1UsSUFBSSxLQUFLLEdBQUcsRUFBRTtVQUMzRTtVQUNBZixPQUFPLENBQUNhLEdBQUcsQ0FBQ1IsSUFBSSxDQUFDO1FBQ25CLENBQUMsTUFBTTtVQUNMO1VBQ0EsSUFBR1EsR0FBRyxDQUFDUixJQUFJLENBQUNVLElBQUk
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 15 */
|
||
|
|
/*!************************************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/components/image-tools/index.js ***!
|
||
|
|
\************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("/* WEBPACK VAR INJECTION */(function(wx) {\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 1);\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pathToBase64 = pathToBase64;\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 4));\nfunction getLocalFilePath(path) {\n if (path.indexOf('_www') === 0 || path.indexOf('_doc') === 0 || path.indexOf('_documents') === 0 || path.indexOf('_downloads') === 0) {\n return path;\n }\n if (path.indexOf('file://') === 0) {\n return path;\n }\n if (path.indexOf('/storage/emulated/0/') === 0) {\n return path;\n }\n if (path.indexOf('/') === 0) {\n var localFilePath = plus.io.convertAbsoluteFileSystem(path);\n if (localFilePath !== path) {\n return localFilePath;\n } else {\n path = path.substr(1);\n }\n }\n return '_www/' + path;\n}\nfunction pathToBase64(path) {\n return new Promise(function (resolve, reject) {\n if ((typeof window === \"undefined\" ? \"undefined\" : (0, _typeof2.default)(window)) === 'object' && 'document' in window) {\n if (typeof FileReader === 'function') {\n var xhr = new XMLHttpRequest();\n xhr.open('GET', path, true);\n xhr.responseType = 'blob';\n xhr.onload = function () {\n if (this.status === 200) {\n var fileReader = new FileReader();\n fileReader.onload = function (e) {\n resolve(e.target.result);\n };\n fileReader.onerror = reject;\n fileReader.readAsDataURL(this.response);\n }\n };\n xhr.onerror = reject;\n xhr.send();\n return;\n }\n var canvas = document.createElement('canvas');\n var c2x = canvas.getContext('2d');\n var img = new Image();\n img.onload = function () {\n canvas.width = img.width;\n canvas.height = img.height;\n c2x.drawImage(img, 0, 0);\n resolve(canvas.toDataURL());\n canvas.height = canvas.width = 0;\n };\n img.onerror = reject;\n img.src = path;\n return;\n }\n if ((typeof plus === \"undefined\" ? \"undefined\" : (0, _typeof2.default)(plus)) === 'object') {\n plus.io.resolveLocalFileSystemURL(getLocalFilePath(path), function (entry) {\n entry.file(function (file) {\n var fileReader = new plus.io.FileReader();\n fileReader.onload = function (data) {\n resolve(data.target.result);\n };\n fileReader.onerror = function (error) {\n reject(error);\n };\n fileReader.readAsDataURL(file);\n }, function (error) {\n reject(error);\n });\n }, function (error) {\n reject(error);\n });\n return;\n }\n if ((typeof wx === \"undefined\" ? \"undefined\" : (0, _typeof2.default)(wx)) === 'object' && wx.canIUse('getFileSystemManager')) {\n wx.getFileSystemManager().readFile({\n filePath: path,\n encoding: 'base64',\n success: function success(res) {\n resolve('data:image/png;base64,' + res.data);\n },\n fail: function fail(error) {\n reject(error);\n }\n });\n return;\n }\n reject(new Error('not support'));\n });\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! @dcloudio/uni-mp-weixin/dist/mp.js */ 16)[\"default\"]))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vY29tcG9uZW50cy9pbWFnZS10b29scy9pbmRleC5qcyJdLCJuYW1lcyI6WyJnZXRMb2NhbEZpbGVQYXRoIiwicGF0aCIsImluZGV4T2YiLCJsb2NhbEZpbGVQYXRoIiwicGx1cyIsImlvIiwiY29udmVydEFic29sdXRlRmlsZVN5c3RlbSIsInN1YnN0ciIsInBhdGhUb0Jhc2U2NCIsIlByb21pc2UiLCJyZXNvbHZlIiwicmVqZWN0Iiwid2luZG93IiwiRmlsZVJlYWRlciIsInhociIsIlhNTEh0dHBSZXF1ZXN0Iiwib3BlbiIsInJlc3BvbnNlVHlwZSIsIm9ubG9hZCIsInN0YXR1cyIsImZpbGVSZWFkZXIiLCJlIiwidGFyZ2V0IiwicmVzdWx0Iiwib25lcnJvciIsInJlYWRBc0RhdGFVUkwiLCJyZXNwb25zZSIsInNlbmQiLCJjYW5
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 16 */
|
||
|
|
/*!*********************************************************!*\
|
||
|
|
!*** ./node_modules/@dcloudio/uni-mp-weixin/dist/mp.js ***!
|
||
|
|
\*********************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
/* WEBPACK VAR INJECTION */(function(global) {
|
||
|
|
|
||
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 1);
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
exports.Behavior = Behavior;
|
||
|
|
exports.Component = Component;
|
||
|
|
exports.Page = Page;
|
||
|
|
exports.nextTick = exports.default = void 0;
|
||
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 2));
|
||
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 18));
|
||
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 24));
|
||
|
|
var _PROP_DEFAULT_VALUES;
|
||
|
|
function parseData(data, vueComponentOptions) {
|
||
|
|
if (!data) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
vueComponentOptions.mpOptions.data = data;
|
||
|
|
}
|
||
|
|
function parseComponents(vueComponentOptions) {
|
||
|
|
vueComponentOptions.components = global.__wxVueOptions.components;
|
||
|
|
}
|
||
|
|
var _toString = Object.prototype.toString;
|
||
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||
|
|
function isFn(fn) {
|
||
|
|
return typeof fn === 'function';
|
||
|
|
}
|
||
|
|
function isPlainObject(obj) {
|
||
|
|
return _toString.call(obj) === '[object Object]';
|
||
|
|
}
|
||
|
|
function hasOwn(obj, key) {
|
||
|
|
return hasOwnProperty.call(obj, key);
|
||
|
|
}
|
||
|
|
function noop() {}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a cached version of a pure function.
|
||
|
|
*/
|
||
|
|
function cached(fn) {
|
||
|
|
var cache = Object.create(null);
|
||
|
|
return function cachedFn(str) {
|
||
|
|
var hit = cache[str];
|
||
|
|
return hit || (cache[str] = fn(str));
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Camelize a hyphen-delimited string.
|
||
|
|
*/
|
||
|
|
var camelizeRE = /-(\w)/g;
|
||
|
|
var camelize = cached(function (str) {
|
||
|
|
return str.replace(camelizeRE, function (_, c) {
|
||
|
|
return c ? c.toUpperCase() : '';
|
||
|
|
});
|
||
|
|
});
|
||
|
|
var SOURCE_KEY = '__data__';
|
||
|
|
var COMPONENT_LIFECYCLE = {
|
||
|
|
created: 'onServiceCreated',
|
||
|
|
attached: 'onServiceAttached',
|
||
|
|
ready: 'mounted',
|
||
|
|
moved: 'moved',
|
||
|
|
detached: 'destroyed'
|
||
|
|
};
|
||
|
|
var COMPONENT_LIFECYCLE_KEYS = Object.keys(COMPONENT_LIFECYCLE);
|
||
|
|
var PAGE_LIFETIMES = {
|
||
|
|
show: 'onPageShow',
|
||
|
|
hide: 'onPageHide',
|
||
|
|
resize: 'onPageResize'
|
||
|
|
};
|
||
|
|
var PAGE_LIFETIMES_KEYS = Object.keys(PAGE_LIFETIMES);
|
||
|
|
var PAGE_LIFECYCLE = ['onLoad', 'onShow', 'onReady', 'onHide', 'onUnload', 'onPullDownRefresh', 'onReachBottom', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
|
||
|
|
function parsePageMethods(mpComponentOptions, vueComponentOptions) {
|
||
|
|
var methods = Object.create(null);
|
||
|
|
Object.keys(mpComponentOptions).forEach(function (key) {
|
||
|
|
var value = mpComponentOptions[key];
|
||
|
|
if (isFn(value) && PAGE_LIFECYCLE.indexOf(key) === -1) {
|
||
|
|
methods[key] = value;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
vueComponentOptions.methods = methods;
|
||
|
|
}
|
||
|
|
function parsePageLifecycle(mpComponentOptions, vueComponentOptions) {
|
||
|
|
Object.keys(mpComponentOptions).forEach(function (key) {
|
||
|
|
if (PAGE_LIFECYCLE.indexOf(key) !== -1) {
|
||
|
|
vueComponentOptions[key] = mpComponentOptions[key];
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function parsePage(mpComponentOptions) {
|
||
|
|
var vueComponentOptions = {
|
||
|
|
mixins: [],
|
||
|
|
mpOptions: {}
|
||
|
|
};
|
||
|
|
parseComponents(vueComponentOptions);
|
||
|
|
parseData(mpComponentOptions.data, vueComponentOptions);
|
||
|
|
parsePageMethods(mpComponentOptions, vueComponentOptions);
|
||
|
|
parsePageLifecycle(mpComponentOptions, vueComponentOptions);
|
||
|
|
return vueComponentOptions;
|
||
|
|
}
|
||
|
|
function parseProperties(properties, vueComponentOptions) {
|
||
|
|
if (!properties) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
vueComponentOptions.mpOptions.properties = properties;
|
||
|
|
}
|
||
|
|
function parseOptions(options, vueComponentOptions) {
|
||
|
|
if (!options) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
vueComponentOptions.mpOptions.options = options;
|
||
|
|
}
|
||
|
|
function parseMethods(methods, vueComponentOptions) {
|
||
|
|
if (!methods) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (methods.$emit) {
|
||
|
|
console.warn('Method "$emit" conflicts with an existing Vue instance method');
|
||
|
|
delete methods.$emit;
|
||
|
|
}
|
||
|
|
vueComponentOptions.methods = methods;
|
||
|
|
}
|
||
|
|
function parseLifecycle(mpComponentOptions, vueComponentOptions) {
|
||
|
|
COMPONENT_LIFECYCLE_KEYS.forEach(function (name) {
|
||
|
|
if (hasOwn(mpComponentOptions, name)) {
|
||
|
|
(vueComponentOptions[COMPONENT_LIFECYCLE[name]] || (vueComponentOptions[COMPONENT_LIFECYCLE[name]] = [])).push(mpComponentOptions[name]);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var mpBehaviors = {
|
||
|
|
'wx://form-field': {},
|
||
|
|
'wx://component-export': {}
|
||
|
|
};
|
||
|
|
function callDefinitionFilter(mpComponentOptions) {
|
||
|
|
var behaviors = mpComponentOptions.behaviors,
|
||
|
|
definitionFilter = mpComponentOptions.definitionFilter;
|
||
|
|
var behaviorDefinitionFilters = [];
|
||
|
|
if (Array.isArray(behaviors)) {
|
||
|
|
behaviors.forEach(function (behavior) {
|
||
|
|
behavior = typeof behavior === 'string' ? mpBehaviors[behavior] : behavior;
|
||
|
|
if (behavior.definitionFilter) {
|
||
|
|
behaviorDefinitionFilters.push(behavior.definitionFilter);
|
||
|
|
behavior.definitionFilter.call(null, mpComponentOptions, []);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
if (isFn(definitionFilter)) {
|
||
|
|
return function (defFields) {
|
||
|
|
definitionFilter(defFields, behaviorDefinitionFilters);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function parseDefinitionFilter(mpComponentOptions, vueComponentOptions) {
|
||
|
|
callDefinitionFilter(mpComponentOptions);
|
||
|
|
}
|
||
|
|
function parseBehavior(behavior) {
|
||
|
|
var data = behavior.data,
|
||
|
|
methods = behavior.methods,
|
||
|
|
behaviors = behavior.behaviors,
|
||
|
|
properties = behavior.properties;
|
||
|
|
var vueComponentOptions = {
|
||
|
|
watch: {},
|
||
|
|
mpOptions: {
|
||
|
|
mpObservers: []
|
||
|
|
}
|
||
|
|
};
|
||
|
|
parseData(data, vueComponentOptions);
|
||
|
|
parseMethods(methods, vueComponentOptions);
|
||
|
|
parseBehaviors(behaviors, vueComponentOptions);
|
||
|
|
parseProperties(properties, vueComponentOptions);
|
||
|
|
parseLifecycle(behavior, vueComponentOptions);
|
||
|
|
parseDefinitionFilter(behavior);
|
||
|
|
return vueComponentOptions;
|
||
|
|
}
|
||
|
|
var BEHAVIORS = {
|
||
|
|
'wx://form-field': {
|
||
|
|
beforeCreate: function beforeCreate() {
|
||
|
|
var mpOptions = this.$options.mpOptions;
|
||
|
|
if (!mpOptions.properties) {
|
||
|
|
mpOptions.properties = Object.create(null);
|
||
|
|
}
|
||
|
|
var props = mpOptions.properties;
|
||
|
|
// TODO form submit,reset
|
||
|
|
if (!hasOwn(props, 'name')) {
|
||
|
|
props.name = {
|
||
|
|
type: String
|
||
|
|
};
|
||
|
|
}
|
||
|
|
if (!hasOwn(props, 'value')) {
|
||
|
|
props.value = {
|
||
|
|
type: String // 默认类型调整为 String,否则默认值为 null,导致一些自定义 input 显示不正确
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
function parseBehaviors(behaviors, vueComponentOptions) {
|
||
|
|
if (!behaviors) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
behaviors.forEach(function (behavior) {
|
||
|
|
if (typeof behavior === 'string') {
|
||
|
|
BEHAVIORS[behavior] && vueComponentOptions.mixins.push(BEHAVIORS[behavior]);
|
||
|
|
} else {
|
||
|
|
vueComponentOptions.mixins.push(parseBehavior(behavior));
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function parseSinglePath(path) {
|
||
|
|
return path.split('.');
|
||
|
|
}
|
||
|
|
function parseMultiPaths(paths) {
|
||
|
|
return paths.split(',').map(function (path) {
|
||
|
|
return parseSinglePath(path);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function parseObservers(observers, vueComponentOptions) {
|
||
|
|
if (!observers) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
var mpObservers = vueComponentOptions.mpOptions.mpObservers;
|
||
|
|
Object.keys(observers).forEach(function (path) {
|
||
|
|
mpObservers.push({
|
||
|
|
paths: parseMultiPaths(path),
|
||
|
|
observer: observers[path]
|
||
|
|
});
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function relative(from, to) {
|
||
|
|
if (to.indexOf('/') === 0) {
|
||
|
|
from = '';
|
||
|
|
}
|
||
|
|
var fromArr = from.split('/');
|
||
|
|
var toArr = to.split('/');
|
||
|
|
fromArr.pop();
|
||
|
|
while (toArr.length) {
|
||
|
|
var part = toArr.shift();
|
||
|
|
if (part !== '' && part !== '.') {
|
||
|
|
if (part !== '..') {
|
||
|
|
fromArr.push(part);
|
||
|
|
} else {
|
||
|
|
fromArr.pop();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return fromArr.join('/');
|
||
|
|
}
|
||
|
|
function parseRelations(relations, vueComponentOptions) {
|
||
|
|
if (!relations) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Object.keys(relations).forEach(function (name) {
|
||
|
|
var relation = relations[name];
|
||
|
|
relation.name = name;
|
||
|
|
relation.target = relation.target ? String(relation.target) : relative(global.__wxRoute, name);
|
||
|
|
});
|
||
|
|
vueComponentOptions.mpOptions.relations = relations;
|
||
|
|
}
|
||
|
|
function parseExternalClasses(externalClasses, vueComponentOptions) {
|
||
|
|
if (!externalClasses) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (!Array.isArray(externalClasses)) {
|
||
|
|
externalClasses = [externalClasses];
|
||
|
|
}
|
||
|
|
vueComponentOptions.mpOptions.externalClasses = externalClasses;
|
||
|
|
if (!vueComponentOptions.mpOptions.properties) {
|
||
|
|
vueComponentOptions.mpOptions.properties = Object.create(null);
|
||
|
|
}
|
||
|
|
externalClasses.forEach(function (externalClass) {
|
||
|
|
vueComponentOptions.mpOptions.properties[camelize(externalClass)] = {
|
||
|
|
type: String,
|
||
|
|
value: ''
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function parseLifetimes(lifetimes, vueComponentOptions) {
|
||
|
|
if (!lifetimes) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
parseLifecycle(lifetimes, vueComponentOptions);
|
||
|
|
}
|
||
|
|
function parsePageLifetimes(pageLifetimes, vueComponentOptions) {
|
||
|
|
if (!pageLifetimes) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
PAGE_LIFETIMES_KEYS.forEach(function (key) {
|
||
|
|
var lifetimeFn = pageLifetimes[key];
|
||
|
|
isFn(lifetimeFn) && (vueComponentOptions[PAGE_LIFETIMES[key]] = lifetimeFn);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function parseComponent(mpComponentOptions) {
|
||
|
|
var data = mpComponentOptions.data,
|
||
|
|
options = mpComponentOptions.options,
|
||
|
|
methods = mpComponentOptions.methods,
|
||
|
|
behaviors = mpComponentOptions.behaviors,
|
||
|
|
lifetimes = mpComponentOptions.lifetimes,
|
||
|
|
observers = mpComponentOptions.observers,
|
||
|
|
relations = mpComponentOptions.relations,
|
||
|
|
properties = mpComponentOptions.properties,
|
||
|
|
pageLifetimes = mpComponentOptions.pageLifetimes,
|
||
|
|
externalClasses = mpComponentOptions.externalClasses;
|
||
|
|
var vueComponentOptions = {
|
||
|
|
mixins: [],
|
||
|
|
props: {},
|
||
|
|
watch: {},
|
||
|
|
mpOptions: {
|
||
|
|
mpObservers: []
|
||
|
|
}
|
||
|
|
};
|
||
|
|
parseComponents(vueComponentOptions);
|
||
|
|
parseData(data, vueComponentOptions);
|
||
|
|
parseOptions(options, vueComponentOptions);
|
||
|
|
parseMethods(methods, vueComponentOptions);
|
||
|
|
parseBehaviors(behaviors, vueComponentOptions);
|
||
|
|
parseLifetimes(lifetimes, vueComponentOptions);
|
||
|
|
parseObservers(observers, vueComponentOptions);
|
||
|
|
parseRelations(relations, vueComponentOptions);
|
||
|
|
parseProperties(properties, vueComponentOptions);
|
||
|
|
parsePageLifetimes(pageLifetimes, vueComponentOptions);
|
||
|
|
parseExternalClasses(externalClasses, vueComponentOptions);
|
||
|
|
parseLifecycle(mpComponentOptions, vueComponentOptions);
|
||
|
|
parseDefinitionFilter(mpComponentOptions);
|
||
|
|
return vueComponentOptions;
|
||
|
|
}
|
||
|
|
function initRelationHandlers(type, handler, target, ctx) {
|
||
|
|
if (!handler) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
var name = "_$".concat(type, "Handlers");
|
||
|
|
(ctx[name] || (ctx[name] = [])).push(function () {
|
||
|
|
handler.call(ctx, target);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function initLinkedHandlers(relation, target, ctx) {
|
||
|
|
var type = 'linked';
|
||
|
|
var name = relation.name;
|
||
|
|
var relationNodes = ctx._$relationNodes || (ctx._$relationNodes = Object.create(null));
|
||
|
|
(relationNodes[name] || (relationNodes[name] = [])).push(target);
|
||
|
|
initRelationHandlers(type, relation[type], target, ctx);
|
||
|
|
}
|
||
|
|
function initUnlinkedHandlers(relation, target, ctx) {
|
||
|
|
var type = 'unlinked';
|
||
|
|
initRelationHandlers(type, relation[type], target, ctx);
|
||
|
|
}
|
||
|
|
function findParentRelation(parentVm, target, type) {
|
||
|
|
var relations = parentVm && parentVm.$options.mpOptions && parentVm.$options.mpOptions.relations;
|
||
|
|
if (!relations) {
|
||
|
|
return [];
|
||
|
|
}
|
||
|
|
var name = Object.keys(relations).find(function (name) {
|
||
|
|
var relation = relations[name];
|
||
|
|
return relation.target === target && relation.type === type;
|
||
|
|
});
|
||
|
|
if (!name) {
|
||
|
|
return [];
|
||
|
|
}
|
||
|
|
return [relations[name], parentVm];
|
||
|
|
}
|
||
|
|
function initParentRelation(vm, childRelation, match) {
|
||
|
|
var _match = match(vm, vm.$options.mpOptions.path),
|
||
|
|
_match2 = (0, _slicedToArray2.default)(_match, 2),
|
||
|
|
parentRelation = _match2[0],
|
||
|
|
parentVm = _match2[1];
|
||
|
|
if (!parentRelation) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
initLinkedHandlers(parentRelation, vm, parentVm);
|
||
|
|
initLinkedHandlers(childRelation, parentVm, vm);
|
||
|
|
initUnlinkedHandlers(parentRelation, vm, parentVm);
|
||
|
|
initUnlinkedHandlers(childRelation, parentVm, vm);
|
||
|
|
}
|
||
|
|
function initRelation(relation, vm) {
|
||
|
|
var type = relation.type;
|
||
|
|
if (type === 'parent') {
|
||
|
|
initParentRelation(vm, relation, function matchParent(vm, target) {
|
||
|
|
return findParentRelation(vm.$parent, target, 'child');
|
||
|
|
});
|
||
|
|
} else if (type === 'ancestor') {
|
||
|
|
initParentRelation(vm, relation, function matchAncestor(vm, target) {
|
||
|
|
var $parent = vm.$parent;
|
||
|
|
while ($parent) {
|
||
|
|
var ret = findParentRelation($parent, target, 'descendant');
|
||
|
|
if (ret.length) {
|
||
|
|
return ret;
|
||
|
|
}
|
||
|
|
$parent = $parent.$parent;
|
||
|
|
}
|
||
|
|
return [];
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function initRelations(vm) {
|
||
|
|
var _ref = vm.$options.mpOptions || {},
|
||
|
|
relations = _ref.relations;
|
||
|
|
if (!relations) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Object.keys(relations).forEach(function (name) {
|
||
|
|
initRelation(relations[name], vm);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function handleRelations(vm, type) {
|
||
|
|
// TODO 需要移除 relationNodes
|
||
|
|
var handlers = vm["_$".concat(type, "Handlers")];
|
||
|
|
if (!handlers) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
handlers.forEach(function (handler) {
|
||
|
|
return handler();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var sharedPropertyDefinition = {
|
||
|
|
enumerable: true,
|
||
|
|
configurable: true,
|
||
|
|
get: noop,
|
||
|
|
set: noop
|
||
|
|
};
|
||
|
|
function proxy(target, sourceKey, key) {
|
||
|
|
sharedPropertyDefinition.get = function proxyGetter() {
|
||
|
|
return this[sourceKey][key];
|
||
|
|
};
|
||
|
|
sharedPropertyDefinition.set = function proxySetter(val) {
|
||
|
|
this[sourceKey][key] = val;
|
||
|
|
};
|
||
|
|
Object.defineProperty(target, key, sharedPropertyDefinition);
|
||
|
|
}
|
||
|
|
function setDataByExprPath(exprPath, value, data) {
|
||
|
|
var keys = exprPath.replace(/\[(\d+?)\]/g, '.$1').split('.');
|
||
|
|
keys.reduce(function (obj, key, idx) {
|
||
|
|
if (idx === keys.length - 1) {
|
||
|
|
obj[key] = value;
|
||
|
|
} else {
|
||
|
|
if (typeof obj[key] === 'undefined') {
|
||
|
|
obj[key] = {};
|
||
|
|
}
|
||
|
|
return obj[key];
|
||
|
|
}
|
||
|
|
}, data);
|
||
|
|
return keys.length === 1;
|
||
|
|
}
|
||
|
|
function setData(data, callback) {
|
||
|
|
var _this = this;
|
||
|
|
if (!isPlainObject(data)) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Object.keys(data).forEach(function (key) {
|
||
|
|
if (setDataByExprPath(key, data[key], _this.data)) {
|
||
|
|
!hasOwn(_this, key) && proxy(_this, SOURCE_KEY, key);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
this.$forceUpdate();
|
||
|
|
isFn(callback) && this.$nextTick(callback);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* https://github.com/swan-team/swan-js/blob/61e2a63f7aa576b5daafbe77fdfa7c65b977060c/src/utils/index.js
|
||
|
|
*/
|
||
|
|
|
||
|
|
var _toString$1 = Object.prototype.toString;
|
||
|
|
/**
|
||
|
|
* 深度assign的函数
|
||
|
|
* @param {Object} targetObject 要被拷贝的目标对象
|
||
|
|
* @param {Object} originObject 拷贝的源对象
|
||
|
|
* @return {Object} merge后的对象
|
||
|
|
*/
|
||
|
|
var deepAssign = function deepAssign() {
|
||
|
|
var targetObject = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||
|
|
var originObject = arguments.length > 1 ? arguments[1] : undefined;
|
||
|
|
var originType = _toString$1.call(originObject);
|
||
|
|
if (originType === '[object Array]') {
|
||
|
|
targetObject = originObject.slice(0);
|
||
|
|
return targetObject;
|
||
|
|
} else if (originType === '[object Object]') {
|
||
|
|
for (var key in originObject) {
|
||
|
|
targetObject[key] = deepAssign(targetObject[key], originObject[key]);
|
||
|
|
}
|
||
|
|
return targetObject;
|
||
|
|
} else if (originType === '[object Date]') {
|
||
|
|
return new Date(originObject.getTime());
|
||
|
|
} else if (originType === '[object RegExp]') {
|
||
|
|
var target = String(originObject);
|
||
|
|
var lastIndex = target.lastIndexOf('/');
|
||
|
|
return new RegExp(target.slice(1, lastIndex), target.slice(lastIndex + 1));
|
||
|
|
}
|
||
|
|
return originObject;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 深度拷贝逻辑,不同于lodash等库,但是与微信一致
|
||
|
|
* @param {*} [originObj] 原对象
|
||
|
|
* @return {Object|Array} 拷贝结果
|
||
|
|
*/
|
||
|
|
var deepClone = function deepClone(originObj) {
|
||
|
|
return deepAssign(_toString$1.call(originObj) === '[object Array]' ? [] : {}, originObj);
|
||
|
|
};
|
||
|
|
var PROP_DEFAULT_VALUES = (_PROP_DEFAULT_VALUES = {}, (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, String, ''), (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, Number, 0), (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, Boolean, false), (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, Object, null), (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, Array, []), (0, _defineProperty2.default)(_PROP_DEFAULT_VALUES, null, null), _PROP_DEFAULT_VALUES);
|
||
|
|
function getDefaultVal(propType) {
|
||
|
|
return PROP_DEFAULT_VALUES[propType];
|
||
|
|
}
|
||
|
|
function getPropertyVal(options) {
|
||
|
|
if (isPlainObject(options)) {
|
||
|
|
if (hasOwn(options, 'value')) {
|
||
|
|
return options.value;
|
||
|
|
}
|
||
|
|
return getDefaultVal(options.type);
|
||
|
|
}
|
||
|
|
return getDefaultVal(options);
|
||
|
|
}
|
||
|
|
function getType(propOptions) {
|
||
|
|
return isPlainObject(propOptions) ? propOptions.type : propOptions;
|
||
|
|
}
|
||
|
|
function validateProp(key, propsOptions, propsData, vm) {
|
||
|
|
var value = propsData[key];
|
||
|
|
if (value !== undefined) {
|
||
|
|
var propOptions = propsOptions[key];
|
||
|
|
var type = getType(propOptions);
|
||
|
|
value = formatVal(value, type);
|
||
|
|
var observer = propOptions && propOptions.observer;
|
||
|
|
if (observer) {
|
||
|
|
// 初始化时,异步触发 observer,否则 observer 中无法访问 methods 或其他
|
||
|
|
setTimeout(function () {
|
||
|
|
observe(observer, vm, value);
|
||
|
|
}, 4);
|
||
|
|
}
|
||
|
|
return value;
|
||
|
|
}
|
||
|
|
return getPropertyVal(propsOptions[key]);
|
||
|
|
}
|
||
|
|
function formatVal(val, type) {
|
||
|
|
if (type === Boolean) {
|
||
|
|
return !!val;
|
||
|
|
} else if (type === String) {
|
||
|
|
return String(val);
|
||
|
|
}
|
||
|
|
return val;
|
||
|
|
}
|
||
|
|
function observe(observer, vm, newVal, oldVal) {
|
||
|
|
try {
|
||
|
|
if (typeof observer === 'function') {
|
||
|
|
observer.call(vm, newVal, oldVal);
|
||
|
|
} else if (typeof observer === 'string' && typeof vm[observer] === 'function') {
|
||
|
|
vm[observer](newVal, oldVal);
|
||
|
|
}
|
||
|
|
} catch (err) {
|
||
|
|
console.error("execute observer ".concat(observer, " callback fail! err: ").concat(err));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function initProperties(vm, instanceData) {
|
||
|
|
var properties = vm.$options.mpOptions.properties;
|
||
|
|
if (!properties) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
var propsData = deepClone(vm.$options.propsData) || {};
|
||
|
|
var _loop = function _loop(key) {
|
||
|
|
var observer = isPlainObject(properties[key]) ? properties[key].observer : false;
|
||
|
|
var value = validateProp(key, properties, propsData, vm);
|
||
|
|
Object.defineProperty(instanceData, key, {
|
||
|
|
enumerable: true,
|
||
|
|
configurable: true,
|
||
|
|
get: function get() {
|
||
|
|
return value;
|
||
|
|
},
|
||
|
|
set: function set(newVal) {
|
||
|
|
var oldVal = value;
|
||
|
|
/* eslint-disable no-self-compare */
|
||
|
|
if (newVal === value || newVal !== newVal && value !== value) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
// TODO 临时方案,clone array
|
||
|
|
value = Array.isArray(newVal) ? newVal.slice(0) : newVal;
|
||
|
|
if (observer) {
|
||
|
|
observe(observer, vm, newVal, oldVal);
|
||
|
|
}
|
||
|
|
// 触发渲染
|
||
|
|
vm.$forceUpdate();
|
||
|
|
}
|
||
|
|
});
|
||
|
|
};
|
||
|
|
for (var key in properties) {
|
||
|
|
_loop(key);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function updateProperties(vm) {
|
||
|
|
var properties = vm.$options.mpOptions && vm.$options.mpOptions.properties;
|
||
|
|
var propsData = vm.$options.propsData;
|
||
|
|
if (propsData && properties) {
|
||
|
|
Object.keys(properties).forEach(function (key) {
|
||
|
|
if (hasOwn(propsData, key)) {
|
||
|
|
vm[key] = formatVal(propsData[key], getType(properties[key]));
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function initState(vm) {
|
||
|
|
var instanceData = JSON.parse(JSON.stringify(vm.$options.mpOptions.data || {}));
|
||
|
|
vm[SOURCE_KEY] = instanceData;
|
||
|
|
var propertyDefinition = {
|
||
|
|
get: function get() {
|
||
|
|
return vm[SOURCE_KEY];
|
||
|
|
},
|
||
|
|
set: function set(value) {
|
||
|
|
vm[SOURCE_KEY] = value;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
Object.defineProperties(vm, {
|
||
|
|
data: propertyDefinition,
|
||
|
|
properties: propertyDefinition
|
||
|
|
});
|
||
|
|
vm.setData = setData;
|
||
|
|
initProperties(vm, instanceData);
|
||
|
|
Object.keys(instanceData).forEach(function (key) {
|
||
|
|
proxy(vm, SOURCE_KEY, key);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function initMethods(vm) {
|
||
|
|
var oldEmit = vm.$emit;
|
||
|
|
vm.triggerEvent = function (eventName, detail, options) {
|
||
|
|
var target = {
|
||
|
|
dataset: vm.$el.dataset
|
||
|
|
};
|
||
|
|
var event = {
|
||
|
|
target: target,
|
||
|
|
currentTarget: target,
|
||
|
|
detail: detail,
|
||
|
|
preventDefault: noop,
|
||
|
|
stopPropagation: noop
|
||
|
|
};
|
||
|
|
oldEmit.call(vm, eventName, event);
|
||
|
|
};
|
||
|
|
// 主要是Vant 自己封装了 $emit,放到 methods 中会触发 Vue 的警告,索性,框架直接重写该方法
|
||
|
|
vm.$emit = function () {
|
||
|
|
vm.triggerEvent.apply(vm, arguments);
|
||
|
|
};
|
||
|
|
vm.getRelationNodes = function (relationKey) {
|
||
|
|
// 需要过滤已被销毁的vm
|
||
|
|
/* eslint-disable no-mixed-operators */
|
||
|
|
return (vm._$relationNodes && vm._$relationNodes[relationKey] || []).filter(function (vm) {
|
||
|
|
return !vm._isDestroyed;
|
||
|
|
});
|
||
|
|
};
|
||
|
|
vm._$updateProperties = updateProperties;
|
||
|
|
}
|
||
|
|
function handleObservers(vm) {
|
||
|
|
var watch = vm.$options.watch;
|
||
|
|
if (!watch) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
Object.keys(watch).forEach(function (name) {
|
||
|
|
var observer = watch[name];
|
||
|
|
if (observer.mounted) {
|
||
|
|
var val = vm[name];
|
||
|
|
var handler = observer.handler;
|
||
|
|
if (typeof handler === 'string') {
|
||
|
|
handler = vm[handler];
|
||
|
|
}
|
||
|
|
handler && handler.call(vm, val, val);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
var polyfill = {
|
||
|
|
beforeCreate: function beforeCreate() {
|
||
|
|
// 取消 development 时的 Proxy,避免小程序组件模板中使用尚未定义的属性告警
|
||
|
|
this._renderProxy = this;
|
||
|
|
this._$self = this;
|
||
|
|
this._$noop = noop;
|
||
|
|
},
|
||
|
|
created: function created() {
|
||
|
|
// properties 中可能会访问 methods,故需要在 created 中初始化
|
||
|
|
initState(this);
|
||
|
|
initMethods(this);
|
||
|
|
initRelations(this);
|
||
|
|
},
|
||
|
|
mounted: function mounted() {
|
||
|
|
handleObservers(this);
|
||
|
|
},
|
||
|
|
destroyed: function destroyed() {
|
||
|
|
handleRelations(this, 'unlinked');
|
||
|
|
}
|
||
|
|
};
|
||
|
|
global.__wxRoute = '';
|
||
|
|
global.__wxComponents = Object.create(null);
|
||
|
|
global.__wxVueOptions = Object.create(null);
|
||
|
|
function Page(options) {
|
||
|
|
var pageOptions = parsePage(options);
|
||
|
|
pageOptions.mixins.unshift(polyfill);
|
||
|
|
pageOptions.mpOptions.path = global.__wxRoute;
|
||
|
|
global.__wxComponents[global.__wxRoute] = pageOptions;
|
||
|
|
}
|
||
|
|
function initRelationsHandler(vueComponentOptions) {
|
||
|
|
// linked 需要在当前组件 attached 之后再执行
|
||
|
|
if (!vueComponentOptions.onServiceAttached) {
|
||
|
|
vueComponentOptions.onServiceAttached = [];
|
||
|
|
}
|
||
|
|
vueComponentOptions.onServiceAttached.push(function onServiceAttached() {
|
||
|
|
handleRelations(this, 'linked');
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function Component(options) {
|
||
|
|
var componentOptions = parseComponent(options);
|
||
|
|
componentOptions.mixins.unshift(polyfill);
|
||
|
|
componentOptions.mpOptions.path = global.__wxRoute;
|
||
|
|
initRelationsHandler(componentOptions);
|
||
|
|
global.__wxComponents[global.__wxRoute] = componentOptions;
|
||
|
|
}
|
||
|
|
function Behavior(options) {
|
||
|
|
return options;
|
||
|
|
}
|
||
|
|
var nextTick = _vue.default.nextTick;
|
||
|
|
exports.nextTick = nextTick;
|
||
|
|
var index = uni.__$wx__;
|
||
|
|
var _default = index;
|
||
|
|
exports.default = _default;
|
||
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 17)))
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 17 */
|
||
|
|
/*!***********************************!*\
|
||
|
|
!*** (webpack)/buildin/global.js ***!
|
||
|
|
\***********************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
var g;
|
||
|
|
|
||
|
|
// This works in non-strict mode
|
||
|
|
g = (function() {
|
||
|
|
return this;
|
||
|
|
})();
|
||
|
|
|
||
|
|
try {
|
||
|
|
// This works if eval is allowed (see CSP)
|
||
|
|
g = g || new Function("return this")();
|
||
|
|
} catch (e) {
|
||
|
|
// This works if the window reference is available
|
||
|
|
if (typeof window === "object") g = window;
|
||
|
|
}
|
||
|
|
|
||
|
|
// g can still be undefined, but nothing to do about it...
|
||
|
|
// We return undefined, instead of nothing here, so it's
|
||
|
|
// easier to handle this case. if(!global) { ...}
|
||
|
|
|
||
|
|
module.exports = g;
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 18 */
|
||
|
|
/*!**************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
|
||
|
|
\**************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 19);
|
||
|
|
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 20);
|
||
|
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 21);
|
||
|
|
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 23);
|
||
|
|
function _slicedToArray(arr, i) {
|
||
|
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
||
|
|
}
|
||
|
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 19 */
|
||
|
|
/*!***************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
||
|
|
\***************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _arrayWithHoles(arr) {
|
||
|
|
if (Array.isArray(arr)) return arr;
|
||
|
|
}
|
||
|
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 20 */
|
||
|
|
/*!*********************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
|
||
|
|
\*********************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _iterableToArrayLimit(arr, i) {
|
||
|
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
||
|
|
if (null != _i) {
|
||
|
|
var _s,
|
||
|
|
_e,
|
||
|
|
_x,
|
||
|
|
_r,
|
||
|
|
_arr = [],
|
||
|
|
_n = !0,
|
||
|
|
_d = !1;
|
||
|
|
try {
|
||
|
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
||
|
|
if (Object(_i) !== _i) return;
|
||
|
|
_n = !1;
|
||
|
|
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
||
|
|
;
|
||
|
|
}
|
||
|
|
} catch (err) {
|
||
|
|
_d = !0, _e = err;
|
||
|
|
} finally {
|
||
|
|
try {
|
||
|
|
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
||
|
|
} finally {
|
||
|
|
if (_d) throw _e;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return _arr;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 21 */
|
||
|
|
/*!***************************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
||
|
|
\***************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 22);
|
||
|
|
function _unsupportedIterableToArray(o, minLen) {
|
||
|
|
if (!o) return;
|
||
|
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
||
|
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||
|
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||
|
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||
|
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
||
|
|
}
|
||
|
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 22 */
|
||
|
|
/*!*****************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
||
|
|
\*****************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _arrayLikeToArray(arr, len) {
|
||
|
|
if (len == null || len > arr.length) len = arr.length;
|
||
|
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
||
|
|
arr2[i] = arr[i];
|
||
|
|
}
|
||
|
|
return arr2;
|
||
|
|
}
|
||
|
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 23 */
|
||
|
|
/*!****************************************************************!*\
|
||
|
|
!*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
||
|
|
\****************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
function _nonIterableRest() {
|
||
|
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
|
|
}
|
||
|
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 24 */
|
||
|
|
/*!**********************!*\
|
||
|
|
!*** external "Vue" ***!
|
||
|
|
\**********************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports) {
|
||
|
|
|
||
|
|
module.exports = Vue;
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 25 */
|
||
|
|
/*!**********************************************************************************************************!*\
|
||
|
|
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
|
||
|
|
\**********************************************************************************************************/
|
||
|
|
/*! exports provided: default */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
__webpack_require__.r(__webpack_exports__);
|
||
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
|
||
|
|
/* globals __VUE_SSR_CONTEXT__ */
|
||
|
|
|
||
|
|
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||
|
|
// This module is a runtime utility for cleaner component module output and will
|
||
|
|
// be included in the final webpack user bundle.
|
||
|
|
|
||
|
|
function normalizeComponent (
|
||
|
|
scriptExports,
|
||
|
|
render,
|
||
|
|
staticRenderFns,
|
||
|
|
functionalTemplate,
|
||
|
|
injectStyles,
|
||
|
|
scopeId,
|
||
|
|
moduleIdentifier, /* server only */
|
||
|
|
shadowMode, /* vue-cli only */
|
||
|
|
components, // fixed by xxxxxx auto components
|
||
|
|
renderjs // fixed by xxxxxx renderjs
|
||
|
|
) {
|
||
|
|
// Vue.extend constructor export interop
|
||
|
|
var options = typeof scriptExports === 'function'
|
||
|
|
? scriptExports.options
|
||
|
|
: scriptExports
|
||
|
|
|
||
|
|
// fixed by xxxxxx auto components
|
||
|
|
if (components) {
|
||
|
|
if (!options.components) {
|
||
|
|
options.components = {}
|
||
|
|
}
|
||
|
|
var hasOwn = Object.prototype.hasOwnProperty
|
||
|
|
for (var name in components) {
|
||
|
|
if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
|
||
|
|
options.components[name] = components[name]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
// fixed by xxxxxx renderjs
|
||
|
|
if (renderjs) {
|
||
|
|
(renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
|
||
|
|
this[renderjs.__module] = this
|
||
|
|
});
|
||
|
|
(options.mixins || (options.mixins = [])).push(renderjs)
|
||
|
|
}
|
||
|
|
|
||
|
|
// render functions
|
||
|
|
if (render) {
|
||
|
|
options.render = render
|
||
|
|
options.staticRenderFns = staticRenderFns
|
||
|
|
options._compiled = true
|
||
|
|
}
|
||
|
|
|
||
|
|
// functional template
|
||
|
|
if (functionalTemplate) {
|
||
|
|
options.functional = true
|
||
|
|
}
|
||
|
|
|
||
|
|
// scopedId
|
||
|
|
if (scopeId) {
|
||
|
|
options._scopeId = 'data-v-' + scopeId
|
||
|
|
}
|
||
|
|
|
||
|
|
var hook
|
||
|
|
if (moduleIdentifier) { // server build
|
||
|
|
hook = function (context) {
|
||
|
|
// 2.3 injection
|
||
|
|
context =
|
||
|
|
context || // cached call
|
||
|
|
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||
|
|
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||
|
|
// 2.2 with runInNewContext: true
|
||
|
|
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||
|
|
context = __VUE_SSR_CONTEXT__
|
||
|
|
}
|
||
|
|
// inject component styles
|
||
|
|
if (injectStyles) {
|
||
|
|
injectStyles.call(this, context)
|
||
|
|
}
|
||
|
|
// register component module identifier for async chunk inferrence
|
||
|
|
if (context && context._registeredComponents) {
|
||
|
|
context._registeredComponents.add(moduleIdentifier)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
// used by ssr in case component is cached and beforeCreate
|
||
|
|
// never gets called
|
||
|
|
options._ssrRegister = hook
|
||
|
|
} else if (injectStyles) {
|
||
|
|
hook = shadowMode
|
||
|
|
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||
|
|
: injectStyles
|
||
|
|
}
|
||
|
|
|
||
|
|
if (hook) {
|
||
|
|
if (options.functional) {
|
||
|
|
// for template-only hot-reload because in that case the render fn doesn't
|
||
|
|
// go through the normalizer
|
||
|
|
options._injectStyles = hook
|
||
|
|
// register for functioal component in vue file
|
||
|
|
var originalRender = options.render
|
||
|
|
options.render = function renderWithStyleInjection (h, context) {
|
||
|
|
hook.call(context)
|
||
|
|
return originalRender(h, context)
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
// inject component registration as beforeCreate hook
|
||
|
|
var existing = options.beforeCreate
|
||
|
|
options.beforeCreate = existing
|
||
|
|
? [].concat(existing, hook)
|
||
|
|
: [hook]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return {
|
||
|
|
exports: scriptExports,
|
||
|
|
options: options
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 26 */
|
||
|
|
/*!************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/App.vue ***!
|
||
|
|
\************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./App.vue?vue&type=script&lang=js& */ 27);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 25);\nvar render, staticRenderFns, recyclableRender, components\nvar renderjs\n\n\n\n\n/* normalize component */\n\nvar component = Object(_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(\n _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUN1RDtBQUNMOzs7QUFHbEQ7QUFDbU47QUFDbk4sZ0JBQWdCLDJOQUFVO0FBQzFCLEVBQUUseUVBQU07QUFDUjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNlLGdGIiwiZmlsZSI6IjI2LmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciwgc3RhdGljUmVuZGVyRm5zLCByZWN5Y2xhYmxlUmVuZGVyLCBjb21wb25lbnRzXG52YXIgcmVuZGVyanNcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuZXhwb3J0ICogZnJvbSBcIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuXG5cbi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi9cbmltcG9ydCBub3JtYWxpemVyIGZyb20gXCIhRDpcXFxcMS5kZXZlbG9wU29mdHdhcmVcXFxcSEJ1aWxkZXJYLjMuNi4xNS4yMDIyMTIyOFxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXHJ1bnRpbWVcXFxcY29tcG9uZW50Tm9ybWFsaXplci5qc1wiXG52YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcihcbiAgc2NyaXB0LFxuICByZW5kZXIsXG4gIHN0YXRpY1JlbmRlckZucyxcbiAgZmFsc2UsXG4gIG51bGwsXG4gIG51bGwsXG4gIG51bGwsXG4gIGZhbHNlLFxuICBjb21wb25lbnRzLFxuICByZW5kZXJqc1xuKVxuXG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcIkFwcC52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///26\n");
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 27 */
|
||
|
|
/*!*************************************************************************!*\
|
||
|
|
!*** E:/01-烁今项目/05-app端开发/xumuocr_app/App.vue?vue&type=script&lang=js& ***!
|
||
|
|
\*************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./App.vue?vue&type=script&lang=js& */ 28);\n/* harmony import */ var _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_1_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_D_1_developSoftware_HBuilderX_3_6_15_20221228_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_App_vue_vue_type_sc
|
||
|
|
|
||
|
|
/***/ }),
|
||
|
|
/* 28 */
|
||
|
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!E:/01-烁今项目/05-app端开发/xumuocr_app/App.vue?vue&type=script&lang=js& ***!
|
||
|
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||
|
|
/*! no static exports found */
|
||
|
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
|
||
|
|
"use strict";
|
||
|
|
eval("/* WEBPACK VAR INJECTION */(function(__f__) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = {\n onLaunch: function onLaunch() {\n __f__(\"log\", 'App Launch', \" at App.vue:4\");\n this.qxcz();\n },\n onShow: function onShow() {\n __f__(\"log\", 'App Show', \" at App.vue:8\");\n },\n onHide: function onHide() {\n __f__(\"log\", 'App Hide', \" at App.vue:12\");\n },\n methods: {\n // 判断有没有存储权限\n qxcz: function qxcz() {\n var _this = this;\n plus.android.requestPermissions(['android.permission.WRITE_EXTERNAL_STORAGE'], function (e) {\n if (e.deniedAlways.length > 0) {\n //权限被永久拒绝\n // 弹出提示框解释为何需要读写手机储存权限,引导用户打开设置页面开启\n uni.showModal({\n title: '存储权限',\n content: '您拒绝了存储权限,请去设置-应用开启存储权限。',\n success: function success(res) {\n if (res.confirm) {\n // console.log('用户点击确定');\n } else if (res.cancel) {\n // console.log('用户点击取消');\n }\n }\n });\n }\n if (e.deniedPresent.length > 0) {\n //权限被临时拒绝\n // 弹出提示框解释为何需要读写手机储存权限,可再次调用plus.android.requestPermissions申请权限\n plus.android.requestPermissions(['android.permission.WRITE_EXTERNAL_STORAGE']);\n // console.log('666666666 ' + e.deniedPresent.toString());\n }\n\n if (e.granted.length > 0) {//权限被允许\n //调用依赖获取读写手机储存权限的代码\n // _this.upload() // 获取权限成功之后调用的函数\n // console.log('2222222222 ' + e.granted.toString());\n }\n }, function (e) {\n // console.log('R12133313221' + JSON.stringify(e));\n });\n }\n }\n};\nexports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 12)[\"default\"]))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vQXBwLnZ1ZSJdLCJuYW1lcyI6WyJvbkxhdW5jaCIsIm9uU2hvdyIsIm9uSGlkZSIsIm1ldGhvZHMiLCJxeGN6IiwicGx1cyIsInVuaSIsInRpdGxlIiwiY29udGVudCIsInN1Y2Nlc3MiXSwibWFwcGluZ3MiOiI7Ozs7OztlQUNBO0VBQ0FBO0lBQ0E7SUFDQTtFQUNBO0VBQ0FDO0lBQ0E7RUFFQTtFQUNBQztJQUNBO0VBQ0E7RUFDQUM7SUFDQTtJQUNBQztNQUNBO01BQ0FDO1FBQ0E7VUFBQTtVQUNBO1VBQ0FDO1lBQ0FDO1lBQ0FDO1lBQ0FDO2NBQ0E7Z0JBQ0E7Y0FBQSxDQUNBO2dCQUNBO2NBQUE7WUFFQTtVQUNBO1FBQ0E7UUFDQTtVQUFBO1VBQ0E7VUFDQUo7VUFDQTtRQUNBOztRQUNBO1VBQ0E7VUFDQTtVQUNBO1FBQUE7TUFFQTtRQUNBO01BQUEsQ0FDQTtJQUNBO0VBQ0E7QUFDQTtBQUFBLDJCIiwiZmlsZSI6IjI4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiPHNjcmlwdD5cclxuXHRleHBvcnQgZGVmYXVsdCB7XHJcblx0XHRvbkxhdW5jaDogZnVuY3Rpb24oKSB7XHJcblx0XHRcdGNvbnNvbGUubG9nKCdBcHAgTGF1bmNoJylcclxuXHRcdFx0dGhpcy5xeGN6KClcclxuXHRcdH0sXHJcblx0XHRvblNob3c6IGZ1bmN0aW9uKCkge1xyXG5cdFx0XHRjb25zb2xlLmxvZygnQXBwIFNob3cnKVxyXG5cclxuXHRcdH0sXHJcblx0XHRvbkhpZGU6IGZ1bmN0aW9uKCkge1xyXG5cdFx0XHRjb25zb2xlLmxvZygnQXBwIEhpZGUnKVxyXG5cdFx0fSxcclxuXHRcdG1ldGhvZHM6IHtcclxuXHRcdFx0Ly8g5Yik5pat5pyJ5rKh5pyJ5a2Y5YKo5p2D6ZmQXHJcblx0XHRcdHF4Y3ooKSB7XHJcblx0XHRcdFx0dmFyIF90aGlzID0gdGhpc1xyXG5cdFx0XHRcdHBsdXMuYW5kcm9pZC5yZXF1ZXN0UGVybWlzc2lvbnMoWydhbmRyb2lkLnBlcm1pc3Npb24uV1JJVEVfRVhURVJOQUxfU1RPUkFHRSddLCBmdW5jdGlvbihlKSB7XHJcblx0XHRcdFx0XHRpZiAoZS5kZW5pZWRBbHdheXMubGVuZ3RoID4gMCkgeyAvL+adg+mZkOiiq+awuOS5heaLkue7nVxyXG5cdFx0XHRcdFx0XHQvLyDlvLnlh7rmj5DnpLrmoYbop6Pph4rkuLrkvZXpnIDopoHor7vlhpnmiYvmnLrlgqjlrZjmnYPpmZDvvIzlvJXlr7znlKjmiLfmiZPlvIDorr7nva7pobXpnaLlvIDlkK9cclxuXHRcdFx0XHRcdFx0dW5pLnNob3dNb2RhbCh7XHJcblx0XHRcdFx0XHRcdFx0dGl0bGU6ICflrZjlgqjmnYPpmZAnLFxyXG5cdFx0XHRcdFx0XHRcdGNvbnRlbnQ6ICfmgqjmi5Lnu53kuoblrZjlgqjmnYPpmZDvvIzor7fljrvorr7nva4t5bqU55So5byA5ZCv5a2Y5YKo5p2D6ZmQ44CCJyxcclxuXHRcdFx0XHRcdFx0XHRzdWNjZXN
|
||
|
|
|
||
|
|
/***/ })
|
||
|
|
],[[0,"app-config"]]]);
|