会员权益
This commit is contained in:
968
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.js
vendored
Normal file
968
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.js
vendored
Normal file
@@ -0,0 +1,968 @@
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode"],{
|
||||
|
||||
/***/ 1628:
|
||||
/*!****************************************************************************************************!*\
|
||||
!*** D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue ***!
|
||||
\****************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uqrcode.vue?vue&type=template&id=b7042062&scoped=true& */ 1629);
|
||||
/* harmony import */ var _uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uqrcode.vue?vue&type=script&lang=js& */ 1631);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var _uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uqrcode.vue?vue&type=style&index=0&id=b7042062&scoped=true&lang=css& */ 1636);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
|
||||
|
||||
var renderjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"b7042062",
|
||||
null,
|
||||
false,
|
||||
_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
||||
renderjs
|
||||
)
|
||||
|
||||
component.options.__file = "uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1629:
|
||||
/*!***********************************************************************************************************************************************!*\
|
||||
!*** D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=template&id=b7042062&scoped=true& ***!
|
||||
\***********************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uqrcode.vue?vue&type=template&id=b7042062&scoped=true& */ 1630);
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_template_id_b7042062_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1630:
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./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--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/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!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=template&id=b7042062&scoped=true& ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! 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
|
||||
_vm.$initSSP()
|
||||
if (_vm.$scope.data.scopedSlotsCompiler === "augmented") {
|
||||
_vm.$setSSP("error", {
|
||||
error: _vm.error,
|
||||
})
|
||||
}
|
||||
_vm.$callSSP()
|
||||
}
|
||||
var recyclableRender = false
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1631:
|
||||
/*!*****************************************************************************************************************************!*\
|
||||
!*** D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=script&lang=js& ***!
|
||||
\*****************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uqrcode.vue?vue&type=script&lang=js& */ 1632);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_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 _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1632:
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* WEBPACK VAR INJECTION */(function(uni, wx) {
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 39));
|
||||
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
||||
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 41));
|
||||
var _uqrcode = _interopRequireDefault(__webpack_require__(/*! ../../js_sdk/uqrcode/uqrcode */ 1633));
|
||||
var _queue = __webpack_require__(/*! ../../common/queue */ 1634);
|
||||
var _cache = __webpack_require__(/*! ../../common/cache */ 1635);
|
||||
function 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; }
|
||||
function _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; }
|
||||
var instance = null;
|
||||
var _default2 = {
|
||||
name: 'uqrcode',
|
||||
props: {
|
||||
/**
|
||||
* canvas组件id
|
||||
*/
|
||||
canvasId: {
|
||||
type: String,
|
||||
required: true // canvasId在微信小程序初始值不能为空,created中赋值也不行,必须给一个值,否则挂载组件后无法绘制。不考虑用随机id,uuid
|
||||
},
|
||||
|
||||
/**
|
||||
* 二维码内容
|
||||
*/
|
||||
value: {
|
||||
type: [String, Number]
|
||||
},
|
||||
/**
|
||||
* 选项
|
||||
*/
|
||||
options: {
|
||||
type: Object,
|
||||
default: function _default() {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 二维码大小
|
||||
*/
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: 100
|
||||
},
|
||||
/**
|
||||
* 二维码尺寸单位
|
||||
*/
|
||||
sizeUnit: {
|
||||
type: String,
|
||||
default: 'px'
|
||||
},
|
||||
/**
|
||||
* 导出的文件类型
|
||||
*/
|
||||
fileType: {
|
||||
type: String,
|
||||
default: 'png'
|
||||
},
|
||||
/**
|
||||
* 是否初始化组件后就开始生成
|
||||
*/
|
||||
start: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* 是否数据发生改变自动重绘
|
||||
*/
|
||||
auto: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* 隐藏组件
|
||||
*/
|
||||
hide: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
/**
|
||||
* canvas 类型,微信小程序默认使用2d,非2d微信官方已放弃维护,问题比较多
|
||||
* 注意:微信小程序type2d手机上正常,PC上微信内打开小程序toDataURL报错,看后期微信官方团队会不会做兼容,不兼容的话只能在自行判断在PC使用非2d,或者直接提示用户请在手机上操作,微信团队的海报中心小程序就是这么做的
|
||||
*/
|
||||
type: {
|
||||
type: String,
|
||||
default: function _default() {
|
||||
return '2d';
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 队列绘制,主要针对NVue端
|
||||
*/
|
||||
queue: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
/**
|
||||
* 是否队列加载图片,可减少canvas发起的网络资源请求,节省服务器资源
|
||||
*/
|
||||
isQueueLoadImage: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
/**
|
||||
* loading态
|
||||
*/
|
||||
loading: {
|
||||
type: Boolean,
|
||||
default: undefined
|
||||
},
|
||||
/**
|
||||
* H5保存即自动下载(在支持的环境下),默认false为仅弹层提示用户需要长按图片保存,不会自动下载
|
||||
*/
|
||||
h5SaveIsDownload: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
/**
|
||||
* H5下载名称
|
||||
*/
|
||||
h5DownloadName: {
|
||||
type: String,
|
||||
default: 'uQRCode'
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
canvas: undefined,
|
||||
canvasType: undefined,
|
||||
canvasContext: undefined,
|
||||
makeDelegate: undefined,
|
||||
drawDelegate: undefined,
|
||||
toTempFilePathDelegate: undefined,
|
||||
makeExecuted: false,
|
||||
makeing: false,
|
||||
drawing: false,
|
||||
isError: false,
|
||||
error: undefined,
|
||||
isH5Save: false,
|
||||
tempFilePath: '',
|
||||
templateOptions: {
|
||||
size: 0,
|
||||
width: 0,
|
||||
// 组件宽度
|
||||
height: 0,
|
||||
canvasWidth: 0,
|
||||
// canvas宽度
|
||||
canvasHeight: 0,
|
||||
canvasTransform: '',
|
||||
canvasDisplay: false
|
||||
},
|
||||
uqrcodeOptions: {
|
||||
data: ''
|
||||
},
|
||||
plugins: [],
|
||||
makeingPattern: [[[true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true]], [[true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, false, false, false], [true, true, true, true, true, true, false, true, true, true], [true, true, true, true, true, true, false, true, true, true], [true, true, true, true, true, true, false, true, true, true]], [[true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true], [true, true, true, true, true, true, true, false, false, false], [true, true, true, true, true, true, true, false, false, false], [true, true, true, true, true, true, true, false, false, false], [true, true, true, false, false, false, false, true, true, true], [true, true, true, false, false, false, false, true, true, true]], [[true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, false, false, false, false, false, false, false], [true, true, true, false, false, false, false, false, false, false], [true, true, true, false, false, false, false, false, false, false], [true, true, true, false, false, false, false, false, false, false], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true], [true, true, true, true, true, true, true, true, true, true]]]
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
type: {
|
||||
handler: function handler(val) {
|
||||
var types = ['2d'];
|
||||
if (types.includes(val)) {
|
||||
this.canvasType = val;
|
||||
} else {
|
||||
this.canvasType = undefined;
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
value: {
|
||||
handler: function handler() {
|
||||
if (this.auto) {
|
||||
this.remake();
|
||||
}
|
||||
}
|
||||
},
|
||||
size: {
|
||||
handler: function handler() {
|
||||
if (this.auto) {
|
||||
this.remake();
|
||||
}
|
||||
}
|
||||
},
|
||||
options: {
|
||||
handler: function handler() {
|
||||
if (this.auto) {
|
||||
this.remake();
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
makeing: {
|
||||
handler: function handler(val) {
|
||||
if (!val) {
|
||||
if (typeof this.toTempFilePathDelegate === 'function') {
|
||||
this.toTempFilePathDelegate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.templateOptions.size = this.sizeUnit == 'rpx' ? uni.upx2px(this.size) : this.size;
|
||||
this.templateOptions.width = this.templateOptions.size;
|
||||
this.templateOptions.height = this.templateOptions.size;
|
||||
this.templateOptions.canvasWidth = this.templateOptions.size;
|
||||
this.templateOptions.canvasHeight = this.templateOptions.size;
|
||||
if (this.canvasType == '2d') {} else {
|
||||
this.templateOptions.canvasTransform = "scale(".concat(this.templateOptions.size / this.templateOptions.canvasWidth, ", ").concat(this.templateOptions.size / this.templateOptions.canvasHeight, ")");
|
||||
}
|
||||
if (this.start) {
|
||||
this.make();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取模板选项
|
||||
*/
|
||||
getTemplateOptions: function getTemplateOptions() {
|
||||
var size = this.sizeUnit == 'rpx' ? uni.upx2px(this.size) : this.size;
|
||||
return deepReplace(this.templateOptions, {
|
||||
size: size,
|
||||
width: size,
|
||||
height: size
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取插件选项
|
||||
*/
|
||||
getUqrcodeOptions: function getUqrcodeOptions() {
|
||||
return deepReplace(this.options, {
|
||||
data: String(this.value),
|
||||
size: Number(this.templateOptions.size)
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 重置画布
|
||||
*/
|
||||
resetCanvas: function resetCanvas(callback) {
|
||||
var _this = this;
|
||||
this.templateOptions.canvasDisplay = false;
|
||||
this.$nextTick(function () {
|
||||
_this.templateOptions.canvasDisplay = true;
|
||||
_this.$nextTick(function () {
|
||||
callback && callback();
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 绘制二维码
|
||||
*/
|
||||
draw: function draw() {
|
||||
var _arguments = arguments,
|
||||
_this2 = this;
|
||||
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
||||
var callback, isDrawDelegate, qr, canvasContext, canvas, dpr;
|
||||
return _regenerator.default.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
callback = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : {};
|
||||
isDrawDelegate = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : false;
|
||||
if (typeof callback.success != 'function') {
|
||||
callback.success = function () {};
|
||||
}
|
||||
if (typeof callback.fail != 'function') {
|
||||
callback.fail = function () {};
|
||||
}
|
||||
if (typeof callback.complete != 'function') {
|
||||
callback.complete = function () {};
|
||||
}
|
||||
if (!_this2.drawing) {
|
||||
_context.next = 11;
|
||||
break;
|
||||
}
|
||||
if (isDrawDelegate) {
|
||||
_context.next = 9;
|
||||
break;
|
||||
}
|
||||
_this2.drawDelegate = function () {
|
||||
_this2.draw(callback, true);
|
||||
};
|
||||
return _context.abrupt("return");
|
||||
case 9:
|
||||
_context.next = 12;
|
||||
break;
|
||||
case 11:
|
||||
_this2.drawing = true;
|
||||
case 12:
|
||||
if (_this2.canvasId) {
|
||||
_context.next = 19;
|
||||
break;
|
||||
}
|
||||
console.error('[uQRCode]: canvasId must be set!');
|
||||
_this2.isError = true;
|
||||
_this2.drawing = false;
|
||||
callback.fail({
|
||||
errMsg: '[uQRCode]: canvasId must be set!'
|
||||
});
|
||||
callback.complete({
|
||||
errMsg: '[uQRCode]: canvasId must be set!'
|
||||
});
|
||||
return _context.abrupt("return");
|
||||
case 19:
|
||||
if (_this2.value) {
|
||||
_context.next = 26;
|
||||
break;
|
||||
}
|
||||
console.error('[uQRCode]: value must be set!');
|
||||
_this2.isError = true;
|
||||
_this2.drawing = false;
|
||||
callback.fail({
|
||||
errMsg: '[uQRCode]: value must be set!'
|
||||
});
|
||||
callback.complete({
|
||||
errMsg: '[uQRCode]: value must be set!'
|
||||
});
|
||||
return _context.abrupt("return");
|
||||
case 26:
|
||||
/* 组件数据 */
|
||||
_this2.templateOptions = _this2.getTemplateOptions();
|
||||
/* uQRCode选项 */
|
||||
_this2.uqrcodeOptions = _this2.getUqrcodeOptions();
|
||||
/* 纠错等级兼容字母写法 */
|
||||
if (typeof _this2.uqrcodeOptions.errorCorrectLevel === 'string') {
|
||||
_this2.uqrcodeOptions.errorCorrectLevel = _uqrcode.default.errorCorrectLevel[_this2.uqrcodeOptions.errorCorrectLevel];
|
||||
}
|
||||
/* nvue不支持动态修改gcanvas尺寸,除nvue外,默认使用useDynamicSize */
|
||||
|
||||
if (typeof _this2.options.useDynamicSize === 'undefined') {
|
||||
_this2.uqrcodeOptions.useDynamicSize = true;
|
||||
}
|
||||
|
||||
/* 获取uQRCode实例 */
|
||||
qr = instance = new _uqrcode.default();
|
||||
/* 注册扩展 */
|
||||
_this2.plugins.forEach(function (p) {
|
||||
return qr.register(p.plugin);
|
||||
});
|
||||
/* 设置uQRCode选项 */
|
||||
qr.setOptions(_this2.uqrcodeOptions);
|
||||
/* 调用制作二维码方法 */
|
||||
qr.make();
|
||||
|
||||
/* 获取canvas上下文 */
|
||||
canvasContext = null;
|
||||
if (!(_this2.canvasType === '2d')) {
|
||||
_context.next = 50;
|
||||
break;
|
||||
}
|
||||
_context.next = 38;
|
||||
return new Promise(function (resolve) {
|
||||
uni.createSelectorQuery().in(_this2) // 在组件内使用需要
|
||||
.select("#".concat(_this2.canvasId)).fields({
|
||||
node: true,
|
||||
size: true
|
||||
}).exec(function (res) {
|
||||
resolve(res[0].node);
|
||||
});
|
||||
});
|
||||
case 38:
|
||||
canvas = _this2.canvas = _context.sent;
|
||||
canvasContext = _this2.canvasContext = canvas.getContext('2d');
|
||||
/* 2d的组件设置宽高与实际canvas绘制宽高不是一个,打个比方,组件size=200,canvas.width设置为100,那么绘制出来就是100=200,组件size=400,canvas.width设置为800,绘制大小还是800=400,所以无需理会下方返回的dynamicSize是多少,按dpr重新赋值给canvas即可 */
|
||||
_this2.templateOptions.canvasWidth = qr.size;
|
||||
_this2.templateOptions.canvasHeight = qr.size;
|
||||
_this2.templateOptions.canvasTransform = '';
|
||||
/* 使用dynamicSize+scale,可以解决小块间出现白线问题,dpr可以解决模糊问题 */
|
||||
dpr = uni.getSystemInfoSync().pixelRatio;
|
||||
canvas.width = qr.dynamicSize * dpr;
|
||||
canvas.height = qr.dynamicSize * dpr;
|
||||
canvasContext.scale(dpr, dpr);
|
||||
/* 微信小程序获取图像方式 */
|
||||
qr.loadImage = _this2.getLoadImage(function (src) {
|
||||
/* 小程序下获取网络图片信息需先配置download域名白名单才能生效 */
|
||||
return new Promise(function (resolve, reject) {
|
||||
var img = canvas.createImage();
|
||||
img.src = src;
|
||||
img.onload = function () {
|
||||
resolve(img);
|
||||
};
|
||||
img.onerror = function (err) {
|
||||
reject(err);
|
||||
};
|
||||
});
|
||||
});
|
||||
_context.next = 55;
|
||||
break;
|
||||
case 50:
|
||||
/* uniapp获取canvas上下文方式 */
|
||||
canvasContext = _this2.canvasContext = uni.createCanvasContext(_this2.canvasId, _this2);
|
||||
/* 使用dynamicSize,可以解决小块间出现白线问题,再通过scale缩放至size,使其达到所设尺寸 */
|
||||
_this2.templateOptions.canvasWidth = qr.dynamicSize;
|
||||
_this2.templateOptions.canvasHeight = qr.dynamicSize;
|
||||
_this2.templateOptions.canvasTransform = "scale(".concat(_this2.templateOptions.size / _this2.templateOptions.canvasWidth, ", ").concat(_this2.templateOptions.size / _this2.templateOptions.canvasHeight, ")");
|
||||
/* uniapp获取图像方式 */
|
||||
qr.loadImage = _this2.getLoadImage(function (src) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
/* getImageInfo在微信小程序的bug:本地路径返回路径会把开头的/或../移除,导致路径错误,解决方法:限制只能使用绝对路径 */
|
||||
if (src.startsWith('http')) {
|
||||
uni.getImageInfo({
|
||||
src: src,
|
||||
success: function success(res) {
|
||||
resolve(res.path);
|
||||
},
|
||||
fail: function fail(err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (src.startsWith('.')) {
|
||||
console.error('[uQRCode]: 本地图片路径仅支持绝对路径!');
|
||||
throw new Error('[uQRCode]: local image path only supports absolute path!');
|
||||
} else {
|
||||
resolve(src);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
case 55:
|
||||
/* 设置uQRCode实例的canvas上下文 */
|
||||
qr.canvasContext = canvasContext;
|
||||
/* 延时等待页面重新绘制完毕 */
|
||||
setTimeout(function () {
|
||||
/* 从插件获取具体要调用哪一个扩展函数 */
|
||||
var plugin = _this2.plugins.find(function (p) {
|
||||
return p.name == qr.style;
|
||||
});
|
||||
var drawCanvasName = plugin ? plugin.drawCanvas : 'drawCanvas';
|
||||
/* 虽然qr[drawCanvasName]是直接返回Promise的,但由于js内部this指向问题,故不能直接exec(qr[drawCanvasName])此方式执行,需要改成exec(() => qr[drawCanvasName]())才能正确获取this */
|
||||
var drawCanvas;
|
||||
if (_this2.queue) {
|
||||
drawCanvas = function drawCanvas() {
|
||||
return _queue.queueDraw.exec(function () {
|
||||
return qr[drawCanvasName]();
|
||||
});
|
||||
};
|
||||
// drawCanvas = () => queueDraw.exec(() => new Promise((resolve, reject) => {
|
||||
// setTimeout(() => {
|
||||
// qr[drawCanvasName]().then(resolve).catch(reject);
|
||||
// }, 1000);
|
||||
// }));
|
||||
} else {
|
||||
drawCanvas = function drawCanvas() {
|
||||
return qr[drawCanvasName]();
|
||||
};
|
||||
}
|
||||
/* 调用绘制方法将二维码图案绘制到canvas上 */
|
||||
drawCanvas().then(function () {
|
||||
if (_this2.drawDelegate) {
|
||||
/* 高频重绘纠正 */
|
||||
var delegate = _this2.drawDelegate;
|
||||
_this2.drawDelegate = undefined;
|
||||
delegate();
|
||||
} else {
|
||||
_this2.drawing = false;
|
||||
callback.success();
|
||||
}
|
||||
}).catch(function (err) {
|
||||
console.log(err);
|
||||
if (_this2.drawDelegate) {
|
||||
/* 高频重绘纠正 */
|
||||
var delegate = _this2.drawDelegate;
|
||||
_this2.drawDelegate = undefined;
|
||||
delegate();
|
||||
} else {
|
||||
_this2.drawing = false;
|
||||
_this2.isError = true;
|
||||
callback.fail(err);
|
||||
}
|
||||
}).finally(function () {
|
||||
callback.complete();
|
||||
});
|
||||
}, 300);
|
||||
case 57:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
},
|
||||
/**
|
||||
* 生成二维码
|
||||
*/
|
||||
make: function make() {
|
||||
var _this3 = this;
|
||||
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
this.makeExecuted = true;
|
||||
this.makeing = true;
|
||||
this.isError = false;
|
||||
if (typeof callback.success != 'function') {
|
||||
callback.success = function () {};
|
||||
}
|
||||
if (typeof callback.fail != 'function') {
|
||||
callback.fail = function () {};
|
||||
}
|
||||
if (typeof callback.complete != 'function') {
|
||||
callback.complete = function () {};
|
||||
}
|
||||
this.resetCanvas(function () {
|
||||
clearTimeout(_this3.makeDelegate);
|
||||
_this3.makeDelegate = setTimeout(function () {
|
||||
_this3.draw({
|
||||
success: function success() {
|
||||
setTimeout(function () {
|
||||
callback.success();
|
||||
_this3.complete(true);
|
||||
}, 300);
|
||||
},
|
||||
fail: function fail(err) {
|
||||
callback.fail(err);
|
||||
_this3.error = err;
|
||||
_this3.complete(false, err.errMsg);
|
||||
},
|
||||
complete: function complete() {
|
||||
callback.complete();
|
||||
_this3.makeing = false;
|
||||
}
|
||||
});
|
||||
}, 300);
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 重新生成
|
||||
*/
|
||||
remake: function remake(callback) {
|
||||
this.$emit('change');
|
||||
this.make(callback);
|
||||
},
|
||||
/**
|
||||
* 生成完成
|
||||
*/
|
||||
complete: function complete() {
|
||||
var success = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
||||
var errMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
||||
if (success) {
|
||||
this.$emit('complete', {
|
||||
success: success
|
||||
});
|
||||
} else {
|
||||
this.$emit('complete', {
|
||||
success: success,
|
||||
errMsg: errMsg
|
||||
});
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 导出临时路径
|
||||
*/
|
||||
toTempFilePath: function toTempFilePath() {
|
||||
var _this4 = this;
|
||||
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
if (typeof callback.success != 'function') {
|
||||
callback.success = function () {};
|
||||
}
|
||||
if (typeof callback.fail != 'function') {
|
||||
callback.fail = function () {};
|
||||
}
|
||||
if (typeof callback.complete != 'function') {
|
||||
callback.complete = function () {};
|
||||
}
|
||||
if (!this.makeExecuted) {
|
||||
console.error('[uQRCode]: make() 方法从未调用!请先成功调用 make() 后再进行操作。');
|
||||
var err = {
|
||||
errMsg: '[uQRCode]: make() method has never been executed! please execute make() successfully before operating.'
|
||||
};
|
||||
callback.fail(err);
|
||||
callback.complete(err);
|
||||
return;
|
||||
}
|
||||
if (this.isError) {
|
||||
callback.fail(this.error);
|
||||
callback.complete(this.error);
|
||||
return;
|
||||
}
|
||||
if (this.makeing) {
|
||||
/* 如果还在生成状态,那当前操作将托管到委托,监听生成完成后再通过委托复调当前方法 */
|
||||
this.toTempFilePathDelegate = function () {
|
||||
_this4.toTempFilePath(callback);
|
||||
};
|
||||
return;
|
||||
} else {
|
||||
this.toTempFilePathDelegate = null;
|
||||
}
|
||||
if (this.canvasType === '2d') {
|
||||
try {
|
||||
var dataURL = null;
|
||||
dataURL = this.canvas.toDataURL();
|
||||
callback.success({
|
||||
tempFilePath: dataURL
|
||||
});
|
||||
callback.complete({
|
||||
tempFilePath: dataURL
|
||||
});
|
||||
} catch (e) {
|
||||
callback.fail(e);
|
||||
callback.complete(e);
|
||||
}
|
||||
} else {
|
||||
uni.canvasToTempFilePath({
|
||||
canvasId: this.canvasId,
|
||||
fileType: this.fileType,
|
||||
width: Number(this.templateOptions.canvasWidth),
|
||||
height: Number(this.templateOptions.canvasHeight),
|
||||
destWidth: Number(this.templateOptions.size),
|
||||
destHeight: Number(this.templateOptions.size),
|
||||
success: function success(res) {
|
||||
callback.success(res);
|
||||
},
|
||||
fail: function fail(err) {
|
||||
callback.fail(err);
|
||||
},
|
||||
complete: function complete() {
|
||||
callback.complete();
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
save: function save() {
|
||||
var _this5 = this;
|
||||
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
if (typeof callback.success != 'function') {
|
||||
callback.success = function () {};
|
||||
}
|
||||
if (typeof callback.fail != 'function') {
|
||||
callback.fail = function () {};
|
||||
}
|
||||
if (typeof callback.complete != 'function') {
|
||||
callback.complete = function () {};
|
||||
}
|
||||
this.toTempFilePath({
|
||||
success: function success(res) {
|
||||
if (_this5.canvasType === '2d') {
|
||||
/* 需要将 data:image/png;base64, 这段去除 writeFile 才能正常打开文件,否则是损坏文件,无法打开 */
|
||||
var reg = new RegExp('^data:image/png;base64,', 'g');
|
||||
var dataURL = res.tempFilePath.replace(reg, '');
|
||||
var fs = wx.getFileSystemManager();
|
||||
var tempFilePath = "".concat(wx.env.USER_DATA_PATH, "/").concat(new Date().getTime()).concat(Math.random().toString().split('.')[1], ".png");
|
||||
fs.writeFile({
|
||||
filePath: tempFilePath,
|
||||
// 要写入的文件路径 (本地路径)
|
||||
data: dataURL,
|
||||
// base64图片
|
||||
encoding: 'base64',
|
||||
success: function success(res1) {
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: tempFilePath,
|
||||
success: function success(res2) {
|
||||
callback.success(res2);
|
||||
},
|
||||
fail: function fail(err2) {
|
||||
callback.fail(err2);
|
||||
},
|
||||
complete: function complete() {
|
||||
callback.complete();
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: function fail(err) {
|
||||
callback.fail(err);
|
||||
},
|
||||
complete: function complete() {
|
||||
callback.complete();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: res.tempFilePath,
|
||||
success: function success(res1) {
|
||||
callback.success(res1);
|
||||
},
|
||||
fail: function fail(err1) {
|
||||
callback.fail(err1);
|
||||
},
|
||||
complete: function complete() {
|
||||
callback.complete();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: function fail(err) {
|
||||
callback.fail(err);
|
||||
callback.complete(err);
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 注册click事件
|
||||
*/
|
||||
onClick: function onClick(e) {
|
||||
this.$emit('click', e);
|
||||
},
|
||||
/**
|
||||
* 获取实例
|
||||
*/
|
||||
getInstance: function getInstance() {
|
||||
return instance;
|
||||
},
|
||||
/**
|
||||
* 注册扩展,组件仅支持注册type为style的drawCanvas扩展
|
||||
* @param {Object} plugin
|
||||
*/
|
||||
registerStyle: function registerStyle(plugin) {
|
||||
if (plugin.Type != 'style') {
|
||||
console.warn('[uQRCode]: registerStyle 仅支持注册 style 类型的扩展!');
|
||||
return {
|
||||
errMsg: 'registerStyle 仅支持注册 style 类型的扩展!'
|
||||
};
|
||||
}
|
||||
if (typeof plugin === 'function') {
|
||||
this.plugins.push({
|
||||
plugin: plugin,
|
||||
name: plugin.Name,
|
||||
drawCanvas: plugin.DrawCanvas
|
||||
});
|
||||
}
|
||||
},
|
||||
getLoadImage: function getLoadImage(loadImage) {
|
||||
var that = this;
|
||||
if (typeof loadImage == 'function') {
|
||||
return function (src) {
|
||||
/* 判断是否是队列加载图片的 */
|
||||
if (that.isQueueLoadImage) {
|
||||
/* 解决iOS APP||NVUE同时绘制多个二维码导致图片丢失需使用队列 */
|
||||
return _queue.queueLoadImage.exec(function () {
|
||||
return new Promise(function (resolve, reject) {
|
||||
setTimeout(function () {
|
||||
var cache = _cache.cacheImageList.find(function (x) {
|
||||
return x.src == src;
|
||||
});
|
||||
if (cache) {
|
||||
resolve(cache.img);
|
||||
} else {
|
||||
loadImage(src).then(function (img) {
|
||||
_cache.cacheImageList.push({
|
||||
src: src,
|
||||
img: img
|
||||
});
|
||||
resolve(img);
|
||||
}).catch(function (err) {
|
||||
reject(err);
|
||||
});
|
||||
}
|
||||
}, 10);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
return loadImage(src);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return function (src) {
|
||||
return Promise.resolve(src);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
/**
|
||||
* 对象属性深度替换
|
||||
* @param {Object} o 原始对象/默认对象/被替换的对象
|
||||
* @param {Object} r 从这个对象里取值替换到o对象里
|
||||
* @return {Object} 替换后的新对象
|
||||
*/
|
||||
exports.default = _default2;
|
||||
function deepReplace() {
|
||||
var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||
var obj;
|
||||
if (c) {
|
||||
// 从源替换
|
||||
obj = o;
|
||||
} else {
|
||||
// 不替换源,copy一份备份来替换
|
||||
obj = _objectSpread({}, o);
|
||||
}
|
||||
for (var k in r) {
|
||||
var vr = r[k];
|
||||
if (vr != undefined) {
|
||||
if (vr.constructor == Object) {
|
||||
obj[k] = this.deepReplace(obj[k], vr);
|
||||
} else if (vr.constructor == String && !vr) {
|
||||
obj[k] = obj[k];
|
||||
} else {
|
||||
obj[k] = vr;
|
||||
}
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1636:
|
||||
/*!*************************************************************************************************************************************************************!*\
|
||||
!*** D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=style&index=0&id=b7042062&scoped=true&lang=css& ***!
|
||||
\*************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../hbx/HBuilderX.4.08.2024040127/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uqrcode.vue?vue&type=style&index=0&id=b7042062&scoped=true&lang=css& */ 1637);
|
||||
/* harmony import */ var _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_hbx_HBuilderX_4_08_2024040127_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uqrcode_vue_vue_type_style_index_0_id_b7042062_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1637:
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Users/15570887941/Desktop/wdsxh/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.vue?vue&type=style&index=0&id=b7042062&scoped=true&lang=css& ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
if(false) { var cssReload; }
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode-create-component',
|
||||
{
|
||||
'uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1628))
|
||||
})
|
||||
},
|
||||
[['uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode-create-component']]
|
||||
]);
|
||||
7
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"componentGenerics": {
|
||||
"scoped-slots-error": true
|
||||
},
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
111
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.wxss
vendored
Normal file
111
unpackage/dist/dev/mp-weixin/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode.wxss
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
|
||||
.uqrcode.data-v-b7042062 {
|
||||
position: relative;
|
||||
}
|
||||
.uqrcode-hide.data-v-b7042062 {
|
||||
position: fixed;
|
||||
left: 7500rpx;
|
||||
}
|
||||
.uqrcode-canvas.data-v-b7042062 {
|
||||
-webkit-transform-origin: top left;
|
||||
transform-origin: top left;
|
||||
}
|
||||
.uqrcode-makeing.data-v-b7042062 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.uqrcode-makeing-image.data-v-b7042062 {
|
||||
|
||||
display: block;
|
||||
max-width: 120px;
|
||||
max-height: 120px;
|
||||
}
|
||||
.uqrcode-error.data-v-b7042062 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.uqrcode-error-message.data-v-b7042062 {
|
||||
font-size: 12px;
|
||||
color: #939291;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user