(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/title-upload/index"],{

/***/ 237:
/*!*********************************************************************************************!*\
  !*** C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=9839475c&scoped=true& */ 238);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 240);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_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 _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=9839475c&scoped=true&lang=css& */ 242);
/* harmony import */ var _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 37);

var renderjs





/* normalize component */

var component = Object(_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "9839475c",
  null,
  false,
  _index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/title-upload/index.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 238:
/*!****************************************************************************************************************************************!*\
  !*** C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue?vue&type=template&id=9839475c&scoped=true& ***!
  \****************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=9839475c&scoped=true& */ 239);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_9839475c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 239:
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue?vue&type=template&id=9839475c&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
try {
  components = {
    uPopup: function () {
      return Promise.all(/*! import() | uni_modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-popup/u-popup.vue */ 347))
    },
    uPicker: function () {
      return Promise.all(/*! import() | uni_modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-picker/u-picker.vue */ 355))
    },
  }
} catch (e) {
  if (
    e.message.indexOf("Cannot find module") !== -1 &&
    e.message.indexOf(".vue") !== -1
  ) {
    console.error(e.message)
    console.error("1. 排查组件名称拼写是否正确")
    console.error(
      "2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
    )
    console.error(
      "3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件"
    )
  } else {
    throw e
  }
}
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var g0 = _vm.currentTab === "title" ? _vm.searchResults.length : null
  if (!_vm._isMounted) {
    _vm.e0 = function ($event) {
      _vm.popupDialog.showPicker = true
    }
    _vm.e1 = function ($event) {
      _vm.popupDialog.showPicker = false
    }
  }
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        g0: g0,
      },
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 240:
/*!**********************************************************************************************************************!*\
  !*** C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.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 _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 241);
/* harmony import */ var _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_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 _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 241:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue?vue&type=script&lang=js& ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
var _typeof3 = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 32));
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 34));
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _vuex = __webpack_require__(/*! vuex */ 39);
var _cryptoJs = _interopRequireDefault(__webpack_require__(/*! crypto-js */ 164));
var selectBookImage = _interopRequireWildcard(__webpack_require__(/*! @/service/selectBookImage.js */ 232));
var bookRecords = _interopRequireWildcard(__webpack_require__(/*! @/service/bookRecords.js */ 233));
var _upload = __webpack_require__(/*! @/utils/upload.js */ 234);
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 CameraUpload = function CameraUpload() {
  Promise.all(/*! require.ensure | components/CameraUpload */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/CameraUpload")]).then((function () {
    return resolve(__webpack_require__(/*! @/components/CameraUpload.vue */ 363));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var TabBar = function TabBar() {
  __webpack_require__.e(/*! require.ensure | components/TabBar */ "components/TabBar").then((function () {
    return resolve(__webpack_require__(/*! @/components/TabBar.vue */ 370));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var bcodeCamera = function bcodeCamera() {
  __webpack_require__.e(/*! require.ensure | uni_modules/bcode-camera/components/bcode-camera/bcode-camera */ "uni_modules/bcode-camera/components/bcode-camera/bcode-camera").then((function () {
    return resolve(__webpack_require__(/*! @/uni_modules/bcode-camera/components/bcode-camera/bcode-camera.vue */ 377));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var PriceStockControl = function PriceStockControl() {
  __webpack_require__.e(/*! require.ensure | components/PriceStockControl */ "components/PriceStockControl").then((function () {
    return resolve(__webpack_require__(/*! @/components/PriceStockControl.vue */ 384));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var WarehouseSelector = function WarehouseSelector() {
  __webpack_require__.e(/*! require.ensure | components/WarehouserSelector */ "components/WarehouserSelector").then((function () {
    return resolve(__webpack_require__(/*! @/components/WarehouserSelector.vue */ 398));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var BookConditionSelect = function BookConditionSelect() {
  __webpack_require__.e(/*! require.ensure | components/BookConditionSelect */ "components/BookConditionSelect").then((function () {
    return resolve(__webpack_require__(/*! @/components/BookConditionSelect.vue */ 391));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var BookProductList = function BookProductList() {
  Promise.all(/*! require.ensure | components/BookProductList */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/BookProductList")]).then((function () {
    return resolve(__webpack_require__(/*! @/components/BookProductList.vue */ 405));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
// // 导入uni-popup组件
// import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue';
// import uniPopupDialog from '@dcloudio/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue';
var _default = {
  name: 'titleUpload',
  props: {
    selectedWarehouse: {
      type: Object,
      default: null
    }
  },
  computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['priceMode', 'priceType', 'averageRange', 'selectedPosition', 'freight', 'minValue'])), {}, {
    // 添加计算属性
    displayIsbn: {
      get: function get() {
        return this.isUnrecognized ? '' : this.formData2.isbn;
      },
      set: function set(value) {
        if (!this.isUnrecognized) {
          this.formData2.isbn = value;
        }
      }
    }
  }),
  components: {
    "tab-bar": TabBar,
    'bcode-camera': bcodeCamera,
    "price-stock-control": PriceStockControl,
    "camera-upload": CameraUpload,
    "warehouse-selector": WarehouseSelector,
    "on-sale-products": BookProductList,
    "book-condition-select": BookConditionSelect
  },
  // 将selectBookImage挂载到组件实例上
  created: function created() {
    this.$selectBookImage = selectBookImage;
  },
  data: function data() {
    var _ref;
    return _ref = {
      currentTab: 'title',
      // 默认为仅书名上传
      lowestBookPrice: 0,
      lowestTotalPrice: 0,
      retype: false,
      // 重输选项的状态
      scanResult: null,
      isSaving: false,
      saveSuccess: false,
      saveError: null,
      isScanning: false,
      // 扫码状态变量
      isSubmitting: false,
      // 防止重复提交的状态变量
      show: false,
      popupShow: false,
      isbn: '',
      value4: 1.00,
      value3: 1,
      fileList1: [],
      fileList: [],
      uploadedImages: [],
      // 存储上传成功的图片信息，用于提交表单时一并传递
      selectedStorage: '',
      warehouse: '',
      shelf: '',
      location: '',
      bookPicPath: null,
      // 新增变量用于存储图片路径
      searchResults: [],
      // 存储查询到的多条数据
      showSearchDropdown: false,
      // 控制下拉框显示
      selectedBookIndex: 0,
      // 当前选中的书籍结果索引
      selectedBookItem: null,
      // 当前选中的书籍结果对象
      bookResultOptions: [],
      // 用于显示在picker中的书籍结果选项
      selectedConditionName: '',
      // 选中的品相名称
      fixPrice: 1,
      cameraRatio: '1:1',
      // 默认相机比例为1:1
      showCameraRatioPopup: false,
      // 控制相机比例选择弹窗显示
      compareType: 'isbn',
      // 默认为ISBN比价
      titleCompareResults: [],
      // 存储书名比价结果示
      showCamera: false,
      // 控制bcode-camera组件的显示
      searchBoxRef: null,
      // 用于存储搜索框的引用
      onSaleProducts: [],
      // 存储所有在售商品信息用于筛选
      displayOnSaleProducts: [],
      // 存储按总价排序后的前十条在售商品信息用于展示
      soldProducts: [],
      // 存储已售商品信息
      // 筛选相关变量
      showSubmitButton: true,
      // 控制提交按钮显示状态
      publisherOptions: [],
      // 出版社选项
      formattedData: [],
      authorOptions: [],
      // 作者选项
      filteredOnSaleProducts: [],
      // 筛选后的在售商品
      filteredSoldProducts: [],
      // 筛选后的已售商品
      isFiltered: false,
      // 是否已应用筛选
      publisherAuthorMap: new Map(),
      // 出版社-作者关联映射
      authorPublisherMap: new Map(),
      // 作者-出版社关联映射
      title: 'uni-fab',
      directionStr: '水平',
      horizontal: 'right',
      vertical: 'bottom',
      direction: 'horizontal',
      pattern: {
        color: '#7A7E83',
        backgroundColor: '#fff',
        selectedColor: '#007AFF',
        buttonColor: '#007AFF',
        iconColor: '#fff'
      },
      is_color_type: false
    }, (0, _defineProperty2.default)(_ref, "selectedStorage", ''), (0, _defineProperty2.default)(_ref, "shelves", []), (0, _defineProperty2.default)(_ref, "locations", []), (0, _defineProperty2.default)(_ref, "LocalselectedWarehouse", this.selectedWarehouse), (0, _defineProperty2.default)(_ref, "selectedSheId", null), (0, _defineProperty2.default)(_ref, "selectedFreId", null), (0, _defineProperty2.default)(_ref, "formData2", {
      isbn: '',
      sku: '',
      title: '',
      art_no: '',
      more: '',
      bookName: ''
    }), (0, _defineProperty2.default)(_ref, "columns", [[],
    // 仓库列表
    [],
    // 货架列表
    [] // 货位列表
    ]), (0, _defineProperty2.default)(_ref, "warehouseShelvesData", {}), (0, _defineProperty2.default)(_ref, "shelfLocationsData", {}), (0, _defineProperty2.default)(_ref, "conditions", [{
      name: '六品',
      checked: false
    }, {
      name: '七品',
      checked: false
    }, {
      name: '八品',
      checked: false
    }, {
      name: '八五品',
      checked: false
    }, {
      name: '九品',
      checked: false
    }, {
      name: '九五品',
      checked: false
    }, {
      name: '全新',
      checked: false
    }]), (0, _defineProperty2.default)(_ref, "marketTags", [{
      label: '在售:',
      value: 0
    }, {
      label: '旧:',
      value: 0
    }, {
      label: '新:',
      value: 0
    }, {
      label: '已售:',
      value: 0
    }]), (0, _defineProperty2.default)(_ref, "popupDialog", {
      show: false,
      title: '',
      content: '',
      confirmText: '',
      cancelText: '',
      imgSrc: '',
      count: 0,
      subFormData: null,
      showPicker: false,
      selectedSeries: '',
      seriesOptions: ['B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N']
    }), (0, _defineProperty2.default)(_ref, "isUnrecognized", false), _ref;
  },
  watch: {
    displayOnSaleProducts: {
      handler: function handler(newProducts) {
        if (newProducts && newProducts.length > 0) {
          // 更新最低价格
          this.lowestBookPrice = Math.min.apply(Math, (0, _toConsumableArray2.default)(newProducts.map(function (p) {
            return parseFloat(p.bookPrice) || 0;
          })));
          this.lowestTotalPrice = Math.min.apply(Math, (0, _toConsumableArray2.default)(newProducts.map(function (p) {
            return parseFloat(p.totalPrice) || 0;
          })));

          // 调用计算参考价格的方法
          this.calculateReferencePrice();
        }
      },
      immediate: true
    },
    // 监听价格模式和类型变化，重新计算价格
    priceMode: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    priceType: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    averageRange: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    freight: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    minValue: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    selectedPosition: {
      handler: function handler() {
        this.calculateReferencePrice();
      }
    },
    // 添加监听isUnrecognized变化
    isUnrecognized: {
      handler: function handler(newVal) {
        if (newVal) {
          // 如果勾选了"不识别"，则设置ISBN为固定的13个0
          this.formData2.isbn = '0000000000000';
        } else {
          // 如果取消勾选，则清空ISBN
          this.formData2.isbn = '';
        }
      }
    }
  },
  onLoad: function onLoad() {
    var _this = this;
    return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
      var phoneNumber, warehouse, cookiesResponse;
      return _regenerator.default.wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              phoneNumber = uni.getStorageSync('phoneNumber');
              warehouse = uni.getStorageSync("selectedWarehouse");
              console.log('选择仓库11111:', warehouse);
              // 不再自动设置仓库、货架和货位
              // 用户需要手动选择完整的三级数据
              // 初始化仓库列，但不自动选择
              if (warehouse) {
                // 只初始化仓库列，但不设置selectedStorage
                _this.selectedWarehouse = warehouse;
                _this.columns[0] = [warehouse.name]; // 假设仓库对象有name字段
                // 不再自动设置selectedStorage
                // 不再自动加载和选择货架和货位
              }
              _context.next = 6;
              return _this.getCookies("18904056801", "Long6166@");
            case 6:
              cookiesResponse = _context.sent;
              console.log(cookiesResponse.cookies.PHPSESSID);
              uni.setStorageSync('cookies', cookiesResponse.cookies.PHPSESSID);
              console.log('Cookies已保存到本地存储', cookiesResponse.cookies.PHPSESSID);
            case 10:
            case "end":
              return _context.stop();
          }
        }
      }, _callee);
    }))();
  },
  // 添加onReady生命周期钩子（uni-app中相当于mounted）
  onReady: function onReady() {
    // 在uni-app中，我们可以使用页面级别的点击事件
    // 这里不需要添加全局事件监听器，我们将在模板中使用@click事件
  },
  // 添加onUnload生命周期钩子（uni-app中相当于beforeDestroy）
  onUnload: function onUnload() {
    // 在uni-app中，我们不需要手动移除事件监听器
  },
  onBackPress: function onBackPress() {
    if (this.$refs.fab.isShow) {
      this.$refs.fab.close();
      return true;
    }
    return false;
  },
  methods: {
    // 选择品相
    onConditionChange: function onConditionChange(index, conditionName) {
      console.log('品相已选择:', index);
      console.log('选中的品相名称:', conditionName);

      // 保存选中的品相名称，用于表单提交
      this.selectedConditionName = conditionName;
    },
    // 处理价格变化事件
    onPriceChange: function onPriceChange(value) {
      this.value4 = value;
    },
    // 处理筛选结果
    handleFiltersApplied: function handleFiltersApplied(filteredProducts) {
      this.filteredOnSaleProducts = filteredProducts;
      this.isFiltered = true;
    },
    // 处理产品数据更新
    handleProductsUpdated: function handleProductsUpdated(products) {
      this.displayOnSaleProducts = products;
      // 如果需要，可以在这里更新最低价格并重新计算参考价格
      this.calculateReferencePrice();
    },
    // 处理库存变化事件
    onStockChange: function onStockChange(value) {
      this.value3 = value;
    },
    handleTabChange: function handleTabChange(tab) {
      if (tab === this.currentTab) return;
      if (tab === 'isbn') {
        // 跳转到ISBN上传页面
        uni.navigateTo({
          url: '/pages/isbn-upload/index'
        });
      }
    },
    handleStorageSelected: function handleStorageSelected(data) {
      console.log('选择的货区数据:', data);
      this.selectedStorage = data.storage;
      this.warehouse = data.warehouse;
      this.shelf = data.shelf;
      this.location = data.location;
      this.selectedSheId = data.shelfId;
      this.selectedFreId = data.locationId;
    },
    handleFileChange: function handleFileChange(newFileList) {
      this.fileList1 = newFileList;
    },
    // 获取上书记录
    getBookRecords: function getBookRecords() {
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
        var phoneNumber, records;
        return _regenerator.default.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.prev = 0;
                // 从本地存储获取手机号
                phoneNumber = uni.getStorageSync('phoneNumber');
                if (phoneNumber) {
                  _context2.next = 5;
                  break;
                }
                uni.showToast({
                  title: '请先登录',
                  icon: 'none'
                });
                return _context2.abrupt("return");
              case 5:
                // 显示加载提示
                uni.showLoading({
                  title: '加载中...'
                });

                // 调用获取上书记录的方法
                _context2.next = 8;
                return bookRecords.fetchBookRecords(phoneNumber);
              case 8:
                records = _context2.sent;
                // 隐藏加载提示
                uni.hideLoading();
                if (!(records.length === 0)) {
                  _context2.next = 13;
                  break;
                }
                uni.showToast({
                  title: '暂无上书记录',
                  icon: 'none'
                });
                return _context2.abrupt("return");
              case 13:
                // 跳转到上书记录页面并传递数据
                uni.navigateTo({
                  url: '/pages/scan/book-records',
                  success: function success(res) {
                    // 向打开的页面传递数据
                    res.eventChannel.emit('bookRecordsData', {
                      records: records
                    });
                  }
                });
                _context2.next = 21;
                break;
              case 16:
                _context2.prev = 16;
                _context2.t0 = _context2["catch"](0);
                console.error('获取上书记录失败:', _context2.t0);
                uni.hideLoading();
                uni.showToast({
                  title: '获取上书记录失败',
                  icon: 'none'
                });
              case 21:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2, null, [[0, 16]]);
      }))();
    },
    cancel: function cancel() {
      this.show = false;
    },
    // 添加open和close方法
    open: function open() {
      // 打开弹出层时的处理逻辑
      console.log('弹出层打开');
      this.popupShow = true;
    },
    close: function close() {
      // 关闭弹出层时的处理逻辑
      this.popupShow = false;
      console.log('弹出层关闭');
    },
    // 处理字母选择确认事件
    onSeriesConfirm: function onSeriesConfirm(e) {
      this.popupDialog.selectedSeries = e.value[0];
      this.popupDialog.showPicker = false;
    },
    submitForm: function submitForm() {
      var _this2 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
        var warehouse, shelf, location, selectedCondition, i, file, result, formData;
        return _regenerator.default.wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                if (!_this2.isSubmitting) {
                  _context3.next = 2;
                  break;
                }
                return _context3.abrupt("return");
              case 2:
                // 设置提交状态为true
                _this2.isSubmitting = true;
                warehouse = _this2.warehouse;
                console.log("warehouse", warehouse);
                shelf = _this2.shelf;
                console.log("shelf", shelf);
                location = _this2.location;
                console.log("location", location);

                // 根据当前选项卡进行表单验证{
                // 仅书名上传模式验证
                // 验证书名
                if (_this2.formData2.bookName) {
                  _context3.next = 13;
                  break;
                }
                uni.showToast({
                  title: '请输入书名',
                  icon: 'none'
                });
                _this2.isSubmitting = false; // 重置提交状态
                return _context3.abrupt("return");
              case 13:
                if (warehouse) {
                  _context3.next = 17;
                  break;
                }
                uni.showToast({
                  title: '请选择仓库/货架/货位',
                  icon: 'none'
                });
                _this2.isSubmitting = false; // 重置提交状态
                return _context3.abrupt("return");
              case 17:
                if (shelf) {
                  _context3.next = 21;
                  break;
                }
                uni.showToast({
                  title: '请选择仓库/货架/货位',
                  icon: 'none'
                });
                _this2.isSubmitting = false; // 重置提交状态
                return _context3.abrupt("return");
              case 21:
                if (location) {
                  _context3.next = 25;
                  break;
                }
                uni.showToast({
                  title: '请选择仓库/货架/货位',
                  icon: 'none'
                });
                _this2.isSubmitting = false; // 重置提交状态
                return _context3.abrupt("return");
              case 25:
                // 检查是否选择了品相
                selectedCondition = _this2.$refs.conditionSelect.getSelectedCondition();
                if (selectedCondition) {
                  _context3.next = 30;
                  break;
                }
                uni.showToast({
                  title: '请选择品相',
                  icon: 'none'
                });
                _this2.isSubmitting = false; // 重置提交状态
                return _context3.abrupt("return");
              case 30:
                if (!(_this2.fileList1.length > 0)) {
                  _context3.next = 66;
                  break;
                }
                _context3.prev = 31;
                // 显示上传中提示
                uni.showLoading({
                  title: '正在上传图片...'
                });

                // 上传所有图片
                i = 0;
              case 34:
                if (!(i < _this2.fileList1.length)) {
                  _context3.next = 56;
                  break;
                }
                file = _this2.fileList1[i]; // 只上传状态为ready的图片
                if (!(file.status === "ready")) {
                  _context3.next = 53;
                  break;
                }
                // 更新状态为上传中
                _this2.fileList1.splice(i, 1, _objectSpread(_objectSpread({}, file), {}, {
                  status: "uploading",
                  message: "上传中"
                }));
                _context3.prev = 38;
                _context3.next = 41;
                return _this2.uploadFilePromise(file.url, i);
              case 41:
                result = _context3.sent;
                // 更新状态为上传成功
                _this2.fileList1.splice(i, 1, _objectSpread(_objectSpread({}, file), {}, {
                  status: "success",
                  message: "",
                  url: result,
                  num: (i + 1).toString()
                }));
                _context3.next = 53;
                break;
              case 45:
                _context3.prev = 45;
                _context3.t0 = _context3["catch"](38);
                console.error('图片上传失败:', _context3.t0);
                // 更新状态为上传失败
                _this2.fileList1.splice(i, 1, _objectSpread(_objectSpread({}, file), {}, {
                  status: "error",
                  message: "上传失败"
                }));

                // 显示错误提示
                uni.showToast({
                  title: '图片上传失败',
                  icon: 'none'
                });

                // 重置提交状态
                _this2.isSubmitting = false;
                uni.hideLoading();
                return _context3.abrupt("return");
              case 53:
                i++;
                _context3.next = 34;
                break;
              case 56:
                uni.hideLoading();
                _context3.next = 66;
                break;
              case 59:
                _context3.prev = 59;
                _context3.t1 = _context3["catch"](31);
                console.error('图片上传过程出错:', _context3.t1);
                uni.hideLoading();
                uni.showToast({
                  title: '图片上传失败',
                  icon: 'none'
                });
                _this2.isSubmitting = false;
                return _context3.abrupt("return");
              case 66:
                // 收集仅书名上传数据
                formData = {
                  barcode: _this2.formData2.isbn,
                  // 正确绑定扫码结果
                  name: _this2.formData2.bookName,
                  // 书名
                  recommendation: _this2.formData2.recommendation,
                  // 推荐语
                  conditionCode: selectedCondition.name,
                  // 品相名称
                  price: _this2.value4 * 100,
                  // 商品售价
                  inventory: _this2.value3 || 1,
                  // 库存
                  files: _this2.uploadedImages.length > 0 ? _this2.uploadedImages : _this2.fileList1.map(function (file) {
                    return _objectSpread(_objectSpread({}, file), {}, {
                      num: file.num || '1' // 确保每个文件都有num属性
                    });
                  }),

                  // 优先使用uploadedImages中的图片信息
                  fixPrice: _this2.fixPrice * 100,
                  marketTags: _this2.marketTags,
                  // 市场标签
                  selectedStorage: _this2.selectedStorage,
                  // 仓库ID
                  depotName: _this2.warehouse,
                  // 仓库名称（需与后端字段名一致）
                  shelvesName: _this2.shelf,
                  // 货架名称
                  freightName: _this2.location,
                  // 自由区名称
                  phoneNumber: uni.getStorageSync('phoneNumber'),
                  // 从本地存储获取用户
                  passWord: uni.getStorageSync('password'),
                  // 从本地存储获取用户
                  tenantId: uni.getStorageSync('tenantId'),
                  // 从本地存储获取租户ID
                  userName: uni.getStorageSync('userName') // 从本地存储获取手机号
                }; // 根据当前选项卡打印对应数据 
                // const formData = this.currentTab === 'isbn' ? isbnData : titleData;

                console.log('提交的表单数据：', formData);

                // 先检查是否重复书籍
                uni.request({
                  url: 'https://api.buzhiyushu.cn/zhishu/shopGoods/repeatBook',
                  method: 'POST',
                  data: formData,
                  header: {
                    'Content-Type': 'application/json'
                  },
                  success: function success(res) {
                    if (res.data.data && res.data.data.count != 0) {
                      // 如果是重复书籍，弹出确认框
                      var bookName = res.data.data && res.data.data.name ? res.data.data.name.trim() : ''; // 添加空值检查
                      // 1. MD5 32位加密（小写）
                      var md5Hash = _cryptoJs.default.MD5(bookName).toString(); // 输出 32 位小写十六进制字符串
                      // 2. 获取首字母并大写
                      var firstLetter = bookName ? md5Hash.charAt(0).toUpperCase() : '';
                      console.log('原始书名:', bookName);
                      console.log('MD5加密后（32位小写）:', md5Hash);
                      console.log('加密后字符串的首字母大写:', firstLetter);
                      var imagePath = res.data.data && res.data.data.image ? res.data.data.image : '';
                      console.log("图片", imagePath);
                      // 拼接图片地址
                      var fullImageUrl = "https://img.buzhiyushu.cn/zhishu1/".concat(firstLetter, "/").concat(imagePath);
                      console.log("fullImageUrl", fullImageUrl);
                      // 根据count值动态设置下拉框的起始字母
                      var count = res.data.data && res.data.data.count ? res.data.data.count : 0;
                      var allLetters = ['B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];
                      // 如果count为1，从B开始；count为2，从C开始；以此类推
                      var startIndex = count > 0 ? count - 1 : 0;
                      if (startIndex >= 0 && startIndex < allLetters.length) {
                        // 从对应位置截取字母数组
                        _this2.popupDialog.seriesOptions = allLetters.slice(startIndex);
                        // 默认选中第一个字母（即对应count的字母）
                        _this2.popupDialog.selectedSeries = _this2.popupDialog.seriesOptions[0];
                      }
                      _this2.popupDialog.title = '提示';
                      _this2.popupDialog.content = '请仔细核对此书是否为套装书,一号多书等情况？请选择(否:增加库存   是:新增书籍)';
                      _this2.popupDialog.confirmText = '是';
                      _this2.popupDialog.cancelText = '否';
                      _this2.popupDialog.imgSrc = fullImageUrl;
                      _this2.popupDialog.show = true;
                      _this2.popupDialog.count = count || 0; // 添加默认值防止count为null
                      _this2.popupDialog.subFormData = formData;
                    } else {
                      // 不是重复书籍，直接提交
                      _this2.submitToServer(formData);
                    }
                  },
                  fail: function fail(err) {
                    console.error('检查重复书籍失败:', err);
                    uni.showToast({
                      title: '网络错误，请稍后重试',
                      icon: 'none'
                    });
                    _this2.isSubmitting = false; // 重置提交状态
                  }
                });
              case 69:
              case "end":
                return _context3.stop();
            }
          }
        }, _callee3, null, [[31, 59], [38, 45]]);
      }))();
    },
    onPopupConfirm: function onPopupConfirm() {
      // 直接使用选择的字母作为series参数
      this.popupDialog.subFormData.series = this.popupDialog.selectedSeries;
      console.log("字母", this.popupDialog.subFormData.series);
      // 继续提交流程
      this.submitToServer(this.popupDialog.subFormData);
      this.popupDialog.show = false;
    },
    onPopupCancel: function onPopupCancel() {
      // 继续提交流程
      this.submitToServer(this.popupDialog.subFormData);
      this.popupDialog.show = false;
    },
    // 提交到服务器的方法
    submitToServer: function submitToServer(formData) {
      var _this3 = this;
      uni.request({
        url: 'https://api.buzhiyushu.cn/zhishu/shopGoods/submit',
        method: 'POST',
        data: formData,
        header: {
          'Content-Type': 'application/json'
        },
        complete: function complete() {
          // 无论成功或失败，都重置提交状态
          _this3.isSubmitting = false;
        },
        success: function success(res) {
          console.log('请求成功1111:', res);
          // 获取返回的id
          var goosId = res.data.msg;
          // console.log('返回的ID:', returnedId);
          // 将id保存到本地存储
          // uni.setStorageSync('lastSubmittedId', returnedId);
          // 保存最后选择的位置信息
          uni.setStorageSync('lastSelectedStorage', _this3.selectedStorage);
          uni.setStorageSync('lastSelectedWarehouse', _this3.warehouse);
          uni.setStorageSync('lastSelectedShelf', _this3.shelf);
          uni.setStorageSync('lastSelectedLocation', _this3.location);

          // 清空表单数据，但保留品相选择
          if (_this3.currentTab === 'isbn') {
            _this3.formData = {
              bookName: '',
              recommendation: ''
            };
            _this3.scanResult = '';
          } else {
            _this3.formData2 = {
              isbn: '',
              bookName: '',
              recommendation: ''
            };
          }

          // 保持价格、库存和品相为用户选择的值
          _this3.value4 = _this3.value4; // 保持价格
          _this3.value3 = _this3.value3; // 保持库存
          // 清空照片数据
          _this3.fileList1 = []; // 清空文件列表
          _this3.uploadedImages = []; // 清空上传图片数组
          _this3.marketTags = []; // 清空市场标签
          // 不重置品相选择，保留conditions数组中的checked状态

          // 显示提交成功提示
          uni.showToast({
            title: '提交成功',
            icon: 'success'
          });
          console.log('请求成功，表单已清空');
        },
        fail: function fail(err) {
          console.error('请求失败:', err);
          uni.showToast({
            title: '网络错误，请稍后重试',
            icon: 'none'
          });
        }
      });
      // uni.showToast({
      // 	title: '数据已打印到控制台',
      // 	icon: 'none'
      // });
    },
    // 图片上传到服务器
    uploadFilePromise: function uploadFilePromise(url, index) {
      var _this4 = this;
      return new Promise(function (resolve, reject) {
        // 获取当前选项卡下的书名和ISBN
        var bookName = _this4.currentTab === 'isbn' ? _this4.formData.bookName : _this4.formData2.bookName;
        console.log("bookName", bookName);
        var isbn = _this4.currentTab === 'isbn' ? _this4.scanResult : _this4.formData2.isbn;
        console.log("isbn", isbn);
        // 图片编号，从1开始
        var num = (index + 1).toString();
        uni.uploadFile({
          url: "https://api.buzhiyushu.cn/zhishu/shopGoods/uploadImages",
          // 后端接口地址
          filePath: url,
          name: "file",
          formData: {
            bookName: bookName,
            isbn: isbn,
            num: num
          },
          success: function success(res) {
            console.log('图片上传成功:', res);
            // 解析返回结果
            var data = JSON.parse(res.data);
            var imageUrl = data.url || url;

            // 将上传成功的图片信息存储到数组中
            _this4.uploadedImages.push({
              url: imageUrl,
              bookName: bookName,
              isbn: isbn,
              num: num,
              originalUrl: url
            });
            resolve(imageUrl); // 如果返回了URL则使用，否则使用原URL
          },

          fail: function fail(err) {
            console.error('图片上传失败:', err);
            reject(err);
          }
        });
      });
    },
    // 数据填充方法
    populateForm: function populateForm(data) {
      var _this5 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
        var sellCount, buyCount, hasSelectedCondition, fileName, suffix;
        return _regenerator.default.wrap(function _callee4$(_context4) {
          while (1) {
            switch (_context4.prev = _context4.next) {
              case 0:
                console.log("data2", data);
                _this5.formData.bookName = data.bookName;
                _this5.fixPrice = data.fixPrice;
                _this5.formData.recommendation = "权威认证 立即购买";
                _this5.value = data.price;
                _this5.value1 = data.stock;
                _this5.formData.isbn = data.isbn;
                // 解析响应数据中的在售和已售数量
                sellCount = parseInt(data.sellCount.replace('条', ''), 10);
                buyCount = parseInt(data.buyCount.replace('人买过', ''), 10); // 只有当没有选中任何品相时，才使用API返回的品相
                hasSelectedCondition = _this5.conditions.some(function (item) {
                  return item.checked;
                });
                if (!hasSelectedCondition) {
                  _this5.conditions = _this5.conditions.map(function (condition) {
                    return _objectSpread(_objectSpread({}, condition), {}, {
                      checked: condition.name === data.condition
                    });
                  });
                }

                // 更新 marketTags 数组
                _this5.marketTags = _this5.marketTags.map(function (item) {
                  if (item.label === '在售:') {
                    return _objectSpread(_objectSpread({}, item), {}, {
                      value: sellCount
                    });
                  } else if (item.label === '已售:') {
                    return _objectSpread(_objectSpread({}, item), {}, {
                      value: buyCount
                    });
                  }
                  return item;
                });
                // 获取图片路径
                if (data.bookPic) {
                  fileName = data.bookPic.split('.')[0];
                  suffix = data.bookPic.split('.')[1]; // this.getBookPicPath(fileName, suffix);
                }
              case 13:
              case "end":
                return _context4.stop();
            }
          }
        }, _callee4);
      }))();
    },
    populateForm2: function populateForm2(bookData) {
      console.log("选中的数据", bookData);
      this.formData2.isbn = bookData.isbn;
      this.formData2.bookName = bookData.bookName;
      this.formData2.recommendation = "权威认证 立即购买"; // 推荐语可从接口获取或固定
      this.value = bookData.fixPrice || 0; // 价格
      this.value1 = bookData.stock || 1; // 库存

      // 处理品相和市场标签
      var sellCount = bookData.sellCount ? parseInt(bookData.sellCount.replace('条', ''), 10) : 0;
      var buyCount = bookData.buyCount ? parseInt(bookData.buyCount.replace('人买过', ''), 10) : 0;
      this.conditions = this.conditions.map(function (condition) {
        return _objectSpread(_objectSpread({}, condition), {}, {
          checked: condition.name === bookData.condition // 假设接口返回 condition 字段
        });
      });

      this.marketTags = this.marketTags.map(function (item) {
        if (item.label === '在售:') return _objectSpread(_objectSpread({}, item), {}, {
          value: sellCount
        });
        if (item.label === '已售:') return _objectSpread(_objectSpread({}, item), {}, {
          value: buyCount
        });
        return item;
      });

      // 处理图片路径（假设 bookPic 是完整 URL 或需要拼接）
      this.bookPicPath = bookData.bookPic ? "https://your-image-domain/".concat(bookData.bookPic) : null;
    },
    selectBook: function selectBook(bookData) {
      this.showSearchDropdown = false; // 隐藏下拉框
      this.populateForm2(bookData); // 填充表单
      // 获取在售和已售商品信息
      // if (bookData.bookName) {
      // 	this.fetchOnSaleProducts(bookData.bookName);
      // }
    },
    // 切换比价类型
    switchCompareType: function switchCompareType(type) {
      this.compareType = type;
      if (type === 'title') {
        if (!this.formData.bookName) {
          console.log("比价书名", this.formData.bookName);
          uni.showToast({
            title: '请先输入书名',
            icon: 'none'
          });
          return;
        }
        this.fetchOnSaleProducts(this.formData.bookName, 'title');
      } else if (type === 'isbn') {
        if (!this.scanResult) {
          console.log("比价isbn", this.scanResult);
          uni.showToast({
            title: '请先扫码获取ISBN',
            icon: 'none'
          });
          return;
        }
        console.log("比价isbn", this.scanResult);
        this.fetchOnSaleProducts(this.scanResult);
      }
    },
    // 计算参考价格
    calculateReferencePrice: function calculateReferencePrice() {
      if (!this.displayOnSaleProducts || this.displayOnSaleProducts.length === 0) {
        this.value4 = 1.00;
        return;
      }
      var products = (0, _toConsumableArray2.default)(this.displayOnSaleProducts);
      // 永远使用总价
      var priceField = 'totalPrice';
      // 按总价排序
      products.sort(function (a, b) {
        return parseFloat(a[priceField]) - parseFloat(b[priceField]);
      });

      // 从Vuex store获取运费和最低值
      var shippingFee = this.freight;
      var minValue = this.minValue;
      switch (this.priceMode) {
        case 0:
          // 最低价
          // 获取选择的位置索引（从store中获取）
          var positionIndex = this.selectedPosition || 0;
          console.log("索引", positionIndex);
          // 确保索引在有效范围内
          var validIndex = Math.min(positionIndex, products.length - 1);
          console.log("索引1", positionIndex);
          console.log('使用第' + (validIndex + 1) + '条数据的价格');

          // 获取选中位置的总价
          var selectedTotal = parseFloat(products[validIndex].totalPrice);
          this.lowestTotalPrice = parseFloat(products[0].totalPrice);

          // 计算新价格：选中位置的总价 - 运费 - 最低值
          var lowestPrice = selectedTotal - shippingFee - 0.01;

          // 如果总价减去运费后的价格小于0，则使用最低值设置的值
          if (lowestPrice <= minValue) {
            this.value4 = minValue;
          } else {
            this.value4 = parseFloat(lowestPrice.toFixed(2));
          }
          break;
        case 1:
          // 均价
          // 获取最低的N个价格并计算平均值
          var count = Math.min(this.averageRange, products.length);
          console.log("count", count);
          var sum = 0;
          for (var i = 0; i < count; i++) {
            sum += parseFloat(products[i][priceField]);
          }

          // 计算平均总价后减去运费
          var averagePrice = sum / count - shippingFee - 0.01;

          // 如果计算结果小于等于0，则使用最低值
          if (averagePrice <= minValue) {
            this.value4 = minValue;
          } else {
            this.value4 = parseFloat(averagePrice.toFixed(2));
          }
          break;
        case 2:
          // 最新已售价
          // 使用最低总价
          this.value4 = parseFloat(products[0].totalPrice);
          break;
      }
    },
    switchCompareType1: function switchCompareType1(type) {
      this.compareType = type;
      if (type === 'title') {
        if (!this.formData2.bookName) {
          uni.showToast({
            title: '请先输入书名',
            icon: 'none'
          });
          return;
        }
        this.fetchOnSaleProducts(this.formData2.bookName, 'title');
      } else if (type === 'isbn') {
        if (!this.formData2.isbn) {
          uni.showToast({
            title: '请先扫码获取ISBN',
            icon: 'none'
          });
          return;
        }
        this.fetchOnSaleProducts(this.formData2.isbn, 'isbn');
      }
    },
    // 返回上一页并清除缓存
    navigateBack: function navigateBack() {
      // 清除相关缓存数据
      uni.removeStorageSync('lastSelectedStorage');
      uni.removeStorageSync('selectedWarehouse');
      uni.removeStorageSync('lastSelectedShelf');
      uni.removeStorageSync('lastSelectedLocation');

      // 重置相关数据
      this.selectedStorage = '';
      this.warehouse = '';
      this.shelf = '';
      this.location = '';
      uni.navigateTo({
        url: '/pages/warehouse/warehouse-select'
      });
    },
    // 关闭下拉框方法
    closeDropdown: function closeDropdown() {
      // 在uni-app中，我们可以直接设置状态来关闭下拉框
      if (this.showSearchDropdown) {
        this.showSearchDropdown = false;
      }
      if (this.popupShow) {
        this.popupShow = false;
      }
    },
    // 处理书名输入框点击事件，阻止冒泡
    handleSearchBoxClick: function handleSearchBoxClick(event) {
      // 阻止事件冒泡，防止触发全局点击事件
      event.stopPropagation();
    },
    // 处理下拉框点击事件，阻止冒泡
    handleDropdownClick: function handleDropdownClick(event) {
      // 阻止事件冒泡，防止触发全局点击事件
      event.stopPropagation();
    },
    // 获取在售商品信息
    fetchOnSaleProducts: function fetchOnSaleProducts(keyword) {
      var _this6 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
        var conditionValue, sortType, cookies, mockData, blockedShopsStr, blockedShops, filteredData;
        return _regenerator.default.wrap(function _callee5$(_context5) {
          while (1) {
            switch (_context5.prev = _context5.next) {
              case 0:
                _context5.prev = 0;
                console.log("keyword", keyword);
                conditionValue = uni.getStorageSync("conditionValue");
                sortType = 7;
                console.log("sortType", sortType);
                cookies = uni.getStorageSync('cookies'); // 调用封装在selectBookImage.js中的方法
                _context5.next = 8;
                return _this6.$selectBookImage.fetchOnSaleProducts(keyword, sortType, conditionValue, cookies);
              case 8:
                mockData = _context5.sent;
                // 获取屏蔽店铺列表
                blockedShopsStr = uni.getStorageSync('blockedShops') || '';
                blockedShops = blockedShopsStr.split(';').filter(function (shop) {
                  return shop.trim() !== '';
                }); // 过滤掉屏蔽的店铺
                filteredData = mockData.filter(function (product) {
                  return !blockedShops.some(function (shop) {
                    return product.shopName && product.shopName.includes(shop.trim());
                  });
                });
                console.log('(已过滤屏蔽店铺)', filteredData);
                // 保存所有数据用于筛选
                _this6.onSaleProducts = (0, _toConsumableArray2.default)(filteredData);

                // 通过组件引用更新数据 
                if (_this6.$refs.onSaleProductsComponent) {
                  _this6.$refs.onSaleProductsComponent.updateProducts(_this6.onSaleProducts);
                }
                console.log('获取在售商品信息成功(已过滤屏蔽店铺)');

                // 计算参考价格
                _this6.calculateReferencePrice();
                _context5.next = 23;
                break;
              case 19:
                _context5.prev = 19;
                _context5.t0 = _context5["catch"](0);
                console.error('获取在售商品信息失败:', _context5.t0);
                uni.showToast({
                  title: '获取在售商品信息失败',
                  icon: 'none'
                });
              case 23:
              case "end":
                return _context5.stop();
            }
          }
        }, _callee5, null, [[0, 19]]);
      }))();
    },
    //书名上传回调
    getBookName: function getBookName() {
      var _this7 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
        var bookName, res, responseData, resultData;
        return _regenerator.default.wrap(function _callee6$(_context6) {
          while (1) {
            switch (_context6.prev = _context6.next) {
              case 0:
                if (_this7.selectedStorage) {
                  _context6.next = 3;
                  break;
                }
                uni.showToast({
                  title: '请选择仓库',
                  icon: 'none'
                });
                return _context6.abrupt("return");
              case 3:
                bookName = _this7.formData2.bookName;
                if (bookName) {
                  _context6.next = 7;
                  break;
                }
                uni.showToast({
                  title: '请输入书名',
                  icon: 'none'
                });
                return _context6.abrupt("return");
              case 7:
                _context6.prev = 7;
                _context6.next = 10;
                return uni.request({
                  url: 'https://api.buzhiyushu.cn/zhishu/baseInfo/getBookByName',
                  method: 'POST',
                  headers: {
                    'Content-Type': 'application/json'
                  },
                  data: {
                    bookName: bookName
                  }
                });
              case 10:
                res = _context6.sent;
                responseData = Array.isArray(res) ? res[1] : res;
                resultData = responseData.data.data; // 处理不同数据情况
                if (Array.isArray(resultData)) {
                  if (resultData.length === 0) {
                    _this7.showEmptyTips();
                  } else if (resultData.length === 1) {
                    _this7.populateForm2(resultData[0]);
                  } else {
                    _this7.searchResults = resultData;
                  }
                } else if ((0, _typeof2.default)(resultData) === 'object') {
                  _this7.populateForm2(resultData);
                } else {
                  _this7.showEmptyTips();
                }
                if (responseData.data.code === 200) {
                  // 处理搜索结果
                  _this7.searchResults = responseData.data.data;

                  // 格式化用于picker显示的选项
                  _this7.bookResultOptions = _this7.searchResults.map(function (item) {
                    return {
                      text: "".concat(item.bookName || '未知书名', " (ISBN: ").concat(item.isbn || '无', ")"),
                      value: item.isbn || ''
                    };
                  });

                  // 默认选中第一项
                  if (_this7.bookResultOptions.length > 0) {
                    _this7.selectedBookIndex = 0;
                    _this7.selectedBookItem = _this7.bookResultOptions[0];
                    _this7.selectBook(_this7.searchResults[0]);
                  }
                  _this7.showSearchDropdown = false;
                } else {
                  uni.showToast({
                    title: "\u8BF7\u6C42\u5931\u8D25: ".concat(res.statusCode),
                    icon: 'none'
                  });
                }

                // 在所有数据处理完成后，只调用一次fetchOnSaleProducts
                _context6.next = 17;
                return _this7.fetchOnSaleProducts(bookName, 'title');
              case 17:
                _context6.next = 23;
                break;
              case 19:
                _context6.prev = 19;
                _context6.t0 = _context6["catch"](7);
                console.error('请求异常:', _context6.t0);
                uni.showToast({
                  title: '网络请求失败',
                  icon: 'none'
                });
              case 23:
              case "end":
                return _context6.stop();
            }
          }
        }, _callee6, null, [[7, 19]]);
      }))();
    },
    // 新增方法：显示空数据提示
    showEmptyTips: function showEmptyTips() {
      uni.showToast({
        title: '暂无相关书籍数据',
        icon: 'none',
        duration: 2000
      });
      this.clearForm();
    },
    // 新增方法：清空表单
    clearForm: function clearForm() {
      this.formData2 = {
        isbn: '',
        bookName: this.formData2.bookName,
        // 保留输入的书名
        recommendation: ''
      };
      this.value = 0;
      this.value1 = 1;
      this.fileList1 = [];
      this.marketTags = this.marketTags.map(function (item) {
        return _objectSpread(_objectSpread({}, item), {}, {
          value: 0
        });
      });
      // 不重置品相选择，保留用户之前的选择
      // this.conditions.forEach(item => item.checked = false);
      this.bookPicPath = null;
    },
    // 获取货架列表
    fetchShelves: function fetchShelves(depotId) {
      var _this8 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
        var _response$data, _yield$uni$request, _yield$uni$request2, err, response;
        return _regenerator.default.wrap(function _callee7$(_context7) {
          while (1) {
            switch (_context7.prev = _context7.next) {
              case 0:
                _context7.prev = 0;
                _context7.next = 3;
                return uni.request({
                  url: 'https://api.buzhiyushu.cn/shelves/shelves/sheNamelist',
                  data: {
                    depotId: depotId
                  }
                });
              case 3:
                _yield$uni$request = _context7.sent;
                _yield$uni$request2 = (0, _slicedToArray2.default)(_yield$uni$request, 2);
                err = _yield$uni$request2[0];
                response = _yield$uni$request2[1];
                if (response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && _response$data.rows) {
                  _context7.next = 9;
                  break;
                }
                return _context7.abrupt("return", []);
              case 9:
                _this8.shelves = response.data.rows; // 保存货架列表
                _this8.columns[1] = _this8.shelves.map(function (item) {
                  return item.code;
                });
                return _context7.abrupt("return", _this8.shelves);
              case 14:
                _context7.prev = 14;
                _context7.t0 = _context7["catch"](0);
                console.error('获取货架失败:', _context7.t0);
                return _context7.abrupt("return", []);
              case 18:
              case "end":
                return _context7.stop();
            }
          }
        }, _callee7, null, [[0, 14]]);
      }))();
    },
    // 获取货位列表
    fetchLocations: function fetchLocations(sheId) {
      var _this9 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
        var _yield$uni$request3, _yield$uni$request4, err, response, locations;
        return _regenerator.default.wrap(function _callee8$(_context8) {
          while (1) {
            switch (_context8.prev = _context8.next) {
              case 0:
                if (sheId) {
                  _context8.next = 3;
                  break;
                }
                console.error('获取货位列表失败：未提供货架ID');
                return _context8.abrupt("return", []);
              case 3:
                _context8.prev = 3;
                console.log('开始获取货位数据，货架ID:', sheId);
                _context8.next = 7;
                return uni.request({
                  url: 'https://api.buzhiyushu.cn/shelves/shelves/freNamelist',
                  method: 'GET',
                  data: {
                    sheId: sheId
                  }
                });
              case 7:
                _yield$uni$request3 = _context8.sent;
                _yield$uni$request4 = (0, _slicedToArray2.default)(_yield$uni$request3, 2);
                err = _yield$uni$request4[0];
                response = _yield$uni$request4[1];
                if (!err) {
                  _context8.next = 14;
                  break;
                }
                console.error('获取货位请求错误:', err);
                return _context8.abrupt("return", []);
              case 14:
                console.log('货位API响应:', response);
                if (!(!response || !response.data || !response.data.rows)) {
                  _context8.next = 18;
                  break;
                }
                console.error('货位响应数据格式不正确');
                return _context8.abrupt("return", []);
              case 18:
                locations = response.data.rows;
                console.log('解析后的货位数据:', locations);

                // 保存货位数据
                _this9.locations = locations;

                // 更新货位列
                _this9.columns[2] = locations.map(function (item) {
                  return item.code || '未知货位';
                });
                console.log('更新后的货位列:', _this9.columns[2]);
                return _context8.abrupt("return", locations);
              case 26:
                _context8.prev = 26;
                _context8.t0 = _context8["catch"](3);
                console.error('获取货位列表失败:', _context8.t0);
                return _context8.abrupt("return", []);
              case 30:
              case "end":
                return _context8.stop();
            }
          }
        }, _callee8, null, [[3, 26]]);
      }))();
    },
    // 处理picker列变化
    changeHandler: function changeHandler(e) {
      var _this10 = this;
      // 防御性检查，确保e和必要的属性存在
      if (!e) {
        console.warn('changeHandler: 事件对象为空');
        return;
      }
      console.log('changeHandler 事件:', JSON.stringify(e));

      // 获取列索引和选中的索引数组
      var columnIndex = e.columnIndex,
        index = e.index,
        _e$indexes = e.indexes,
        indexes = _e$indexes === void 0 ? [] : _e$indexes;
      console.log('列索引:', columnIndex, '选中索引:', index, 'indexes数组:', indexes);

      // 如果是选择了仓库（第0列）
      if (columnIndex === 0) {
        // 获取选中的仓库
        var warehouseName = this.columns[0][index];
        var warehouse = this.selectedWarehouse || {
          id: null,
          name: warehouseName
        };
        console.log('选中的仓库:', warehouseName, '仓库对象:', warehouse);

        // 如果有仓库ID，获取对应的货架
        if (warehouse.id) {
          console.log('开始获取货架数据，仓库ID:', warehouse.id);
          this.fetchShelves(warehouse.id).then(function (shelves) {
            console.log('获取到货架数据:', shelves);
            // 清空货位列
            _this10.columns[2] = [];
            // 更新UI
            _this10.$nextTick(function () {
              if (_this10.$refs.uPicker) {
                _this10.$refs.uPicker.setColumnValues(2, []);
              }
            });
          });
        }
      }

      // 如果是选择了货架（第1列）
      if (columnIndex === 1) {
        // 获取选中的货架索引
        var shelfIndex = index;
        console.log('选中的货架索引:', shelfIndex);

        // 确保货架数据有效
        if (Array.isArray(this.shelves) && this.shelves.length > 0 && shelfIndex >= 0 && shelfIndex < this.shelves.length) {
          var selectedShelf = this.shelves[shelfIndex];
          console.log("选中的货架对象:", selectedShelf);

          // 保存选中的货架ID
          this.selectedSheId = selectedShelf.id;

          // 如果货架有ID，获取对应的货位
          if (selectedShelf !== null && selectedShelf !== void 0 && selectedShelf.id) {
            console.log('开始获取货位数据，货架ID:', selectedShelf.id);
            this.fetchLocations(selectedShelf.id).then(function (locations) {
              console.log('获取到货位数据:', locations);

              // 确保locations是数组且有数据
              if (Array.isArray(locations) && locations.length > 0) {
                // 更新货位列
                _this10.columns[2] = locations.map(function (item) {
                  return item.code || '未知货位';
                });
                console.log('更新后的货位列:', _this10.columns[2]);

                // 更新UI
                _this10.$nextTick(function () {
                  if (_this10.$refs.uPicker) {
                    console.log('更新货位选择器UI');
                    _this10.$refs.uPicker.setColumnValues(2, _this10.columns[2]);
                  }
                });
              } else {
                console.warn('获取到的货位数据为空');
                // 清空货位列
                _this10.columns[2] = ['暂无货位'];
                _this10.$nextTick(function () {
                  if (_this10.$refs.uPicker) {
                    _this10.$refs.uPicker.setColumnValues(2, _this10.columns[2]);
                  }
                });
              }
            }).catch(function (error) {
              console.error('获取货位数据失败:', error);
              // 显示错误提示
              _this10.columns[2] = ['获取失败'];
              _this10.$nextTick(function () {
                if (_this10.$refs.uPicker) {
                  _this10.$refs.uPicker.setColumnValues(2, _this10.columns[2]);
                }
              });
            });
          } else {
            console.warn('货架ID无效');
          }
        } else {
          var _this$shelves;
          console.warn('无效的货架索引或数据未准备好', {
            shelfIndex: shelfIndex,
            shelvesLength: (_this$shelves = this.shelves) === null || _this$shelves === void 0 ? void 0 : _this$shelves.length
          });
          // 清空货位列
          this.columns[2] = ['请先选择有效货架'];
          this.$nextTick(function () {
            if (_this10.$refs.uPicker) {
              _this10.$refs.uPicker.setColumnValues(2, _this10.columns[2]);
            }
          });
        }
      }
    },
    // 确认选择
    confirm: function confirm(e) {
      var value = e.value;
      var _value = (0, _slicedToArray2.default)(value, 3),
        warehouse = _value[0],
        shelf = _value[1],
        location = _value[2];

      // 只有当三个值都存在时才保存选中的值
      if (warehouse && shelf && location) {
        this.warehouse = warehouse;
        this.shelf = shelf;
        this.location = location;

        // 更新显示文本
        this.selectedStorage = "".concat(warehouse, " / ").concat(shelf, " / ").concat(location);
      } else {
        // 如果不完整，提示用户
        uni.showToast({
          title: '请完整选择仓库、货架和货位',
          icon: 'none'
        });
      }
      this.show = false;

      // 获取选中的完整对象（根据实际数据结构调整）
      var selectedShelf = this.shelves.find(function (item) {
        return item.code === shelf;
      });
      var selectedLocation = this.locations.find(function (item) {
        return item.code === location;
      });

      // 保存选中ID等后续操作
      this.selectedSheId = selectedShelf === null || selectedShelf === void 0 ? void 0 : selectedShelf.id;
      this.selectedFreId = selectedLocation === null || selectedLocation === void 0 ? void 0 : selectedLocation.id;
      console.log('已选择:', {
        warehouse: this.warehouse,
        shelf: this.shelf,
        location: this.location,
        selectedSheId: this.selectedSheId,
        selectedFreId: this.selectedFreId
      });
    },
    // 书籍搜索结果选择变更
    onBookResultChange: function onBookResultChange(e) {
      var _this11 = this;
      return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
        var index, selectedBook;
        return _regenerator.default.wrap(function _callee9$(_context9) {
          while (1) {
            switch (_context9.prev = _context9.next) {
              case 0:
                index = e.detail.value;
                _this11.selectedBookIndex = index;
                _this11.selectedBookItem = _this11.bookResultOptions[index];

                // 选择对应的书籍数据并填充表单
                selectedBook = _this11.searchResults[index];
                _this11.selectBook(selectedBook);
                // 根据选中的书籍更新在售商品列表
                if (!selectedBook.bookName) {
                  _context9.next = 8;
                  break;
                }
                _context9.next = 8;
                return _this11.fetchOnSaleProducts(selectedBook.bookName, 'title');
              case 8:
              case "end":
                return _context9.stop();
            }
          }
        }, _callee9);
      }))();
    },
    toggleUnrecognized: function toggleUnrecognized() {
      this.isUnrecognized = !this.isUnrecognized;
      if (this.isUnrecognized) {
        // 勾选"不识别"时，内部设置ISBN为13个0，但界面显示为空
        this.formData2.isbn = '0000000000000';
        // uni.request({
        // 	url: 'https://api.buzhiyushu.cn/zhishu/statistic/isbn',
        // 	method: 'GET',
        // 	success: (res) => {
        // 		console.log("res-isbn", res)
        // 		this.formData2.isbn = res.data;
        // 	},
        // 	fail: (err) => {
        // 		uni.showToast({
        // 			title: '获取随机ISBN失败',
        // 			icon: 'none'
        // 		});
        // 	}
        // });
      } else {
        // 取消勾选时，清空ISBN
        this.formData2.isbn = '';
      }
    }
  },
  // 调用后端接口获取仓库列表
  fetchWarehouses: function fetchWarehouses(phoneNumber) {
    var _this12 = this;
    return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
      var _yield$uni$request5, _yield$uni$request6, err, response, warehouses;
      return _regenerator.default.wrap(function _callee10$(_context10) {
        while (1) {
          switch (_context10.prev = _context10.next) {
            case 0:
              _context10.prev = 0;
              console.log('开始获取仓库列表，手机号:', phoneNumber);
              _context10.next = 4;
              return uni.request({
                url: 'https://api.buzhiyushu.cn/shelves/shelves/namelist',
                method: 'GET',
                data: {
                  phoneNumber: phoneNumber
                }
              });
            case 4:
              _yield$uni$request5 = _context10.sent;
              _yield$uni$request6 = (0, _slicedToArray2.default)(_yield$uni$request5, 2);
              err = _yield$uni$request6[0];
              response = _yield$uni$request6[1];
              if (!err) {
                _context10.next = 11;
                break;
              }
              console.error('请求发生错误:', err);
              return _context10.abrupt("return", []);
            case 11:
              console.log('API响应完整数据:', response);
              if (!(!response || !response.data)) {
                _context10.next = 15;
                break;
              }
              console.error('响应数据为空');
              return _context10.abrupt("return", []);
            case 15:
              console.log('响应数据:', response.data);
              if (response.data.rows) {
                _context10.next = 19;
                break;
              }
              console.error('rows数据为空');
              return _context10.abrupt("return", []);
            case 19:
              warehouses = response.data.rows || [];
              console.log('解析后的仓库数据:', warehouses);
              _this12.columns[0] = warehouses.map(function (item) {
                return item.code || '未命名仓库';
              });
              console.log('更新后的仓库列表:', _this12.columns[0]);
              return _context10.abrupt("return", warehouses);
            case 26:
              _context10.prev = 26;
              _context10.t0 = _context10["catch"](0);
              console.error('获取仓库列表失败:', _context10.t0);
              return _context10.abrupt("return", []);
            case 30:
            case "end":
              return _context10.stop();
          }
        }
      }, _callee10, null, [[0, 26]]);
    }))();
  },
  // 根据仓库名称获取ID
  getWarehouseId: function getWarehouseId(warehouseName) {
    var warehouses = Object.values(this.warehouseShelvesData).flat();
    var warehouse = warehouses.find(function (w) {
      return w.code === warehouseName;
    });
    return warehouse ? warehouse.id : null;
  },
  // 根据货架名称获取ID
  getShelfId: function getShelfId(shelfName) {
    var shelves = Object.values(this.warehouseShelvesData).flat();
    var shelf = shelves.find(function (s) {
      return s.code === shelfName;
    });
    return shelf ? shelf.id : null;
  },
  // 页面显示时触发
  onShow: function onShow() {
    var _this13 = this;
    // 检查本地存储中是否有更新的仓库信息
    var warehouse = uni.getStorageSync("selectedWarehouse");
    if (warehouse) {
      // 只更新仓库列表，不自动选择
      this.selectedWarehouse = warehouse;
      this.columns[0] = [warehouse.name]; // 更新仓库列
      // 不再自动设置selectedStorage和warehouse
      // 不再自动设置shelf和location

      // 加载货架数据，但不自动选择
      this.fetchShelves(warehouse.id).then(function (shelves) {
        if (shelves.length > 0) {
          _this13.columns[1] = shelves.map(function (item) {
            return item.code;
          });
          // 加载货位数据，但不自动选择
          var firstSheId = shelves[0].id;
          _this13.fetchLocations(firstSheId).then(function (locations) {
            _this13.columns[2] = locations.map(function (item) {
              return item.code;
            });
            // 不再自动设置location
          });
        }
      });
    }
  },
  close: function close() {
    // 在这里编写关闭弹窗时要执行的逻辑
    this.show = false;
    console.log('弹窗已关闭');
  },
  open: function open() {
    // 在这里编写打开弹窗时要执行的逻辑
    this.show = true;
    console.log('弹窗已打开');
  },
  trigger: function trigger(e) {
    console.log(e);
    this.content[e.index].active = !e.item.active;
    uni.showModal({
      title: '提示',
      content: "\u60A8".concat(this.content[e.index].active ? '选中了' : '取消了').concat(e.item.text),
      success: function success(res) {
        if (res.confirm) {
          console.log('用户点击确定');
        } else if (res.cancel) {
          console.log('用户点击取消');
        }
      }
    });
  },
  fabClick: function fabClick() {
    uni.showToast({
      title: '点击了悬浮按钮',
      icon: 'none'
    });
  },
  switchBtn: function switchBtn(hor, ver) {
    if (hor === 0) {
      this.direction = this.direction === 'horizontal' ? 'vertical' : 'horizontal';
      this.directionStr = this.direction === 'horizontal' ? '垂直' : '水平';
    } else {
      this.horizontal = hor;
      this.vertical = ver;
    }
    this.$forceUpdate();
  },
  switchColor: function switchColor() {
    this.is_color_type = !this.is_color_type;
    if (this.is_color_type) {
      this.pattern.iconColor = '#aaa';
      this.pattern.buttonColor = '#fff';
    } else {
      this.pattern.iconColor = '#fff';
      this.pattern.buttonColor = '#007AFF';
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ }),

/***/ 242:
/*!******************************************************************************************************************************************************!*\
  !*** C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue?vue&type=style&index=0&id=9839475c&scoped=true&lang=css& ***!
  \******************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../uni-app/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=9839475c&scoped=true&lang=css& */ 243);
/* harmony import */ var _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_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 _uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_uni_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_9839475c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 243:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/pages/title-upload/index.vue?vue&type=style&index=0&id=9839475c&scoped=true&lang=css& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ }),

/***/ 279:
/*!****************************************************************************************************************!*\
  !*** C:/Users/Administrator/Documents/HBuilderProjects/zhizhu/main.js?{"page":"pages%2Ftitle-upload%2Findex"} ***!
  \****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(wx, createPage) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/title-upload/index.vue */ 237));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_index.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))

/***/ })

},[[279,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/title-upload/index.js.map