luban-mall/unpackage/dist/dev/mp-weixin/pagesB/search/search.js

359 lines
26 KiB
JavaScript
Raw Normal View History

2022-07-08 08:15:29 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesB/search/search"],{
2022-08-03 04:00:49 +00:00
/***/ 149:
2022-07-08 08:15:29 +00:00
/*!*************************************************************************!*\
!*** D://luban-mall/main.js?{"page":"pagesB%2Fsearch%2Fsearch"} ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
2022-08-03 04:00:49 +00:00
var _search = _interopRequireDefault(__webpack_require__(/*! ./pagesB/search/search.vue */ 150));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
2022-07-08 08:15:29 +00:00
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_search.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 150:
2022-07-08 08:15:29 +00:00
/*!******************************************************!*\
!*** D://luban-mall/pagesB/search/search.vue ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +00:00
/* harmony import */ var _search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./search.vue?vue&type=template&id=23d62ba8& */ 151);
/* harmony import */ var _search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./search.vue?vue&type=script&lang=js& */ 153);
2022-07-08 08:15:29 +00:00
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
2022-07-27 03:12:29 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
2022-07-08 08:15:29 +00:00
var renderjs
/* normalize component */
var component = Object(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["render"],
_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pagesB/search/search.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 151:
2022-07-08 08:15:29 +00:00
/*!*************************************************************************************!*\
!*** D://luban-mall/pagesB/search/search.vue?vue&type=template&id=23d62ba8& ***!
\*************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./search.vue?vue&type=template&id=23d62ba8& */ 152);
2022-07-08 08:15:29 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_template_id_23d62ba8___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 152:
2022-07-08 08:15:29 +00:00
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D://luban-mall/pagesB/search/search.vue?vue&type=template&id=23d62ba8& ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
navTab: function() {
2022-08-03 04:00:49 +00:00
return __webpack_require__.e(/*! import() | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then(__webpack_require__.bind(null, /*! @/components/nav-tab/nav-tab.vue */ 182))
2022-07-08 08:15:29 +00:00
},
pullList: function() {
2022-08-03 04:00:49 +00:00
return __webpack_require__.e(/*! import() | components/pull-list/pull-list */ "components/pull-list/pull-list").then(__webpack_require__.bind(null, /*! @/components/pull-list/pull-list.vue */ 189))
2022-07-08 08:15:29 +00:00
}
}
} 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 recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 153:
2022-07-08 08:15:29 +00:00
/*!*******************************************************************************!*\
!*** D://luban-mall/pagesB/search/search.vue?vue&type=script&lang=js& ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./search.vue?vue&type=script&lang=js& */ 154);
2022-07-08 08:15:29 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 154:
2022-07-08 08:15:29 +00:00
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D://luban-mall/pagesB/search/search.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2022-08-03 04:00:49 +00:00
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 210));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var navTab = function navTab() {__webpack_require__.e(/*! require.ensure | components/nav-tab/nav-tab */ "components/nav-tab/nav-tab").then((function () {return resolve(__webpack_require__(/*! @/components/nav-tab/nav-tab.vue */ 182));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var pullList = function pullList() {__webpack_require__.e(/*! require.ensure | components/pull-list/pull-list */ "components/pull-list/pull-list").then((function () {return resolve(__webpack_require__(/*! @/components/pull-list/pull-list.vue */ 189));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
2022-07-08 08:15:29 +00:00
2022-07-11 10:35:14 +00:00
2022-07-08 08:15:29 +00:00
2022-07-12 10:07:08 +00:00
2022-07-08 08:15:29 +00:00
2022-07-25 03:18:38 +00:00
{
2022-07-08 08:15:29 +00:00
components: {
statusNav: statusNav,
navTab: navTab,
pullList: pullList },
data: function data() {
return {
newTop: uni.getSystemInfoSync().statusBarHeight + 50,
searchList: [], //解答&资讯列表
navTabList: [//导航列表
{ name: '产品' },
2022-07-23 01:04:40 +00:00
{ name: '套件' },
2022-07-08 08:15:29 +00:00
{ name: '资讯' }],
currentIndex: 0, //当前位置
page: 1, //第几页
size: 5, //查询条数
total: 0, //总数
isShop: true, //是否商品
2022-07-11 10:35:14 +00:00
totalAll: -1, //判断总数
historyData: [], //历史搜索列表
2022-07-12 10:07:08 +00:00
keyword: '', //搜索关键词
2022-07-23 01:04:40 +00:00
keywords: '', //历史关键词
isKit: false //是否套件
2022-07-08 08:15:29 +00:00
};
},
onLoad: function onLoad(op) {
2022-07-12 10:07:08 +00:00
this.keywords = op.keyword;
2022-07-23 01:04:40 +00:00
this.getSearchList(this.currentIndex);
this.getHistory(this.currentIndex);
2022-07-08 08:15:29 +00:00
},
onReachBottom: function onReachBottom(e) {
if (this.searchList.length < this.total) {
this.page++;
2022-07-23 01:04:40 +00:00
this.getSearchList(this.currentIndex);
2022-07-08 08:15:29 +00:00
}
},
methods: {
// 切换事件
chooseEv: function chooseEv(type) {
2022-07-23 01:04:40 +00:00
if (type == 2) {
2022-07-08 08:15:29 +00:00
this.isShop = false;
2022-07-23 01:04:40 +00:00
this.isKit = false;
} else if (type == 1) {
this.isShop = false;
this.isKit = true;
} else {
this.isShop = true;
this.isKit = false;
2022-07-08 08:15:29 +00:00
}
2022-07-23 01:04:40 +00:00
2022-07-08 08:15:29 +00:00
if (this.currentIndex !== type) {
this.page = 1;
this.currentIndex = type;
2022-07-23 01:04:40 +00:00
this.getSearchList(this.currentIndex);
this.getHistory(this.currentIndex);
2022-07-11 10:35:14 +00:00
}
},
// 获取历史搜索结果
2022-07-23 01:04:40 +00:00
getHistory: function getHistory(index) {var _this = this;
var historyType = ['spu', 'spu', 'article'];
this.$requst.get('/api/index/keyword-history', { type: historyType[index] }).then(function (res) {
if (res.code == 0) {
var newArr = [];
res.data.forEach(function (item) {
var obj = {
keyword: item.keyword };
newArr.push(obj);
});
_this.historyData = newArr;
}
});
2022-07-11 10:35:14 +00:00
},
2022-07-23 01:04:40 +00:00
2022-07-11 10:35:14 +00:00
//搜索
toSearch: function toSearch() {
if (this.keyword !== '') {
2022-07-12 10:07:08 +00:00
this.keywords = this.keyword;
2022-07-23 01:04:40 +00:00
this.getSearchList(this.currentIndex);
this.getHistory(this.currentIndex);
2022-07-08 08:15:29 +00:00
}
2022-07-11 10:35:14 +00:00
},
2022-07-23 01:04:40 +00:00
2022-07-11 10:35:14 +00:00
// 选择历史搜索
changeKeyword: function changeKeyword(keyword) {
2022-07-12 10:07:08 +00:00
this.keywords = keyword;
2022-07-23 01:04:40 +00:00
this.getSearchList(this.currentIndex);
this.getHistory(this.currentIndex);
2022-07-11 10:35:14 +00:00
},
2022-07-23 01:04:40 +00:00
2022-07-11 10:35:14 +00:00
// 清空历史搜索
2022-07-12 10:07:08 +00:00
clearHistory: function clearHistory() {var _this2 = this;
2022-07-23 01:04:40 +00:00
var historyType = ['spu', 'spu', 'article'];
this.$requst.get('/api/index/clear-keyword-history', { type: historyType[this.currentIndex] }).then(function (res) {
if (res.code == 0) {
_this2.historyData = [];
}
});
2022-07-08 08:15:29 +00:00
},
2022-07-12 10:07:08 +00:00
2022-07-08 08:15:29 +00:00
// 获取搜索结果
2022-07-23 01:04:40 +00:00
getSearchList: function getSearchList(index) {var _this3 = this;
2022-07-14 02:00:23 +00:00
uni.showLoading({
title: '加载中' });
2022-07-23 01:04:40 +00:00
var params = [
{ keyword: this.keywords, is_series: 0 },
{ keyword: this.keywords, is_series: 1 },
{ keyword: this.keywords }];
var searchApi = ['/api/spu/list', '/api/spu/series', '/api/archives/list'];
this.$requst.get(searchApi[index], params[index]).then(function (res) {
if (res.code == 0) {
_this3.total = res.data.total;
var newArr = [];
res.data.list.forEach(function (item) {
var obj = {
id: item.id,
src: item.cover,
title: item.name ? item.name : item.title,
subtitle: item.subtitle ? item.subtitle : '',
time: item.published_at ? _this3.dateFormat(item.published_at.replace(/-/g, '/')) : '',
series: item.series ? item.series : '' };
newArr.push(obj);
});
_this3.searchList = newArr;
_this3.keyword = '';
if (_this3.searchList.length == _this3.total) {
_this3.totalAll = _this3.total;
2022-07-08 08:15:29 +00:00
}
2022-07-23 01:04:40 +00:00
}
});
2022-07-14 02:00:23 +00:00
uni.hideLoading();
2022-07-08 08:15:29 +00:00
},
2022-07-23 01:04:40 +00:00
2022-07-08 08:15:29 +00:00
// 时间格式转换
dateFormat: function dateFormat(dateData) {
var date = new Date(dateData);
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = date.getDate();
d = d < 10 ? '0' + d : d;
var time = y + '.' + m + '.' + d;
return time;
},
2022-07-23 01:04:40 +00:00
2022-07-08 08:15:29 +00:00
// 跳转详情页
toDetail: function toDetail(id) {
2022-07-23 01:04:40 +00:00
var detailUrl = ["/pagesA/shop/detail?id=".concat(id.id, "&source=shop"), "/pages/tabbar/kit/detail?id=".concat(id.id), "/pages/tabbar/news/detail?id=".concat(id.id)];
uni.navigateTo({
url: detailUrl[this.currentIndex] });
2022-07-08 08:15:29 +00:00
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
2022-08-03 04:00:49 +00:00
},[[149,"common/runtime","common/vendor"]]]);
2022-07-08 08:15:29 +00:00
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesB/search/search.js.map