(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/tabbar/homePage/homePage"],[
/* 0 */,
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */,
/* 10 */,
/* 11 */,
/* 12 */,
/* 13 */,
/* 14 */
/*!**************************************************************************************************!*\
  !*** D:/chenq/chen/uniapp(兼小程序)/dengrui/main.js?{"page":"pages%2Ftabbar%2FhomePage%2FhomePage"} ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 4);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));
var _homePage = _interopRequireDefault(__webpack_require__(/*! ./pages/tabbar/homePage/homePage.vue */ 15));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
createPage(_homePage.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),
/* 15 */
/*!*****************************************************************************!*\
  !*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pages/tabbar/homePage/homePage.vue ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _homePage_vue_vue_type_template_id_613d2df7___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./homePage.vue?vue&type=template&id=613d2df7& */ 16);
/* harmony import */ var _homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./homePage.vue?vue&type=script&lang=js& */ 18);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _homePage_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 _homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _HbuilderX_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/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);

var renderjs




/* normalize component */

var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _homePage_vue_vue_type_template_id_613d2df7___WEBPACK_IMPORTED_MODULE_0__["render"],
  _homePage_vue_vue_type_template_id_613d2df7___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _homePage_vue_vue_type_template_id_613d2df7___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/tabbar/homePage/homePage.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),
/* 16 */
/*!************************************************************************************************************!*\
  !*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pages/tabbar/homePage/homePage.vue?vue&type=template&id=613d2df7& ***!
  \************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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

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

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



/***/ }),
/* 17 */
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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:/chenq/chen/uniapp(兼小程序)/dengrui/pages/tabbar/homePage/homePage.vue?vue&type=template&id=613d2df7& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),
/* 18 */
/*!******************************************************************************************************!*\
  !*** D:/chenq/chen/uniapp(兼小程序)/dengrui/pages/tabbar/homePage/homePage.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 _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./homePage.vue?vue&type=script&lang=js& */ 19);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_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_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_homePage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),
/* 19 */
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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:/chenq/chen/uniapp(兼小程序)/dengrui/pages/tabbar/homePage/homePage.vue?vue&type=script&lang=js& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var twocoluList = function twocoluList() {__webpack_require__.e(/*! require.ensure | components/twocoluList */ "components/twocoluList").then((function () {return resolve(__webpack_require__(/*! @/components/twocoluList.vue */ 208));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var backTop = function backTop() {__webpack_require__.e(/*! require.ensure | components/backTop */ "components/backTop").then((function () {return resolve(__webpack_require__(/*! @/components/backTop.vue */ 213));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var lwNotice = function lwNotice() {__webpack_require__.e(/*! require.ensure | components/lw-notice/lw-notice */ "components/lw-notice/lw-notice").then((function () {return resolve(__webpack_require__(/*! @/components/lw-notice/lw-notice.vue */ 218));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/footTab */ "components/footTab").then((function () {return resolve(__webpack_require__(/*! @/components/footTab.vue */ 225));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =









































































































{
  components: {
    twocoluList: twocoluList,
    backTop: backTop,
    lwNotice: lwNotice,
    footTab: footTab },

  data: function data() {
    return {
      statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
      bannerList: [],
      // cateList:['轮胎轮毂','车载电器','雨刮器','机油养护','汽车配件'],
      cateList: [{
        id: '',
        name: '全部',
        pid: '',
        hasChildren: '' }],

      current: 0,
      dataList: [],
      gcontent: '暂无更多', //更多文本
      gisok: false, //判断更多是否出现
      showTop: false,
      advanceListTwo: [], //公告内容列表
      advanceListInfo: [], //公告所有信息
      // reArr:[
      // 	{src:'/static/img/pageh/reone.jpg',title:'/凌度BLACKVIEW/',miaoone:'行车记录仪前后双录',miaotwo:'全屏流媒体后视镜倒车影像',price:'459'},
      // 	{src:'/static/img/pageh/retwo.jpg',title:'/凌度BLACKVIEW/',miaoone:'行车记录仪前后双录',miaotwo:'全屏流媒体后视镜倒车影像',price:'459'},
      // ],
      zanReArrImg: [],
      cid: 0,
      page: 1,
      size: 10,
      total: '',
      isZanw: true,
      statusHNH: uni.getStorageSync('statusHNH'),
      pageShow: false };

  },
  onReachBottom: function onReachBottom() {
    if (this.dataList.length != 0) {
      if (this.total != this.dataList.length) {
        this.page++;
        this.checkList(); //调用自主预约列表事件
      } else {
        if (this.isZanw) this.$toolAll.tools.showToast('暂无更多商品列表', 'none', 1000);
        this.isZanw = false;
      }
    }
  },
  onPageScroll: function onPageScroll(e) {
    e.scrollTop > 360 ? this.showTop = true : this.showTop = false;
  },
  onShow: function onShow() {var _this2 = this;
    uni.showTabBar();
    uni.login({
      provider: 'weixin',
      success: function success(res) {
        if (res.code) {
          var params = { code: res.code };
          _this2.$requst.post('user/wxAppletsLogin', params).then(function (res) {
            if (res.code == 0) {
              if (res.data.token != '') {
                uni.setStorageSync('token', res.data.token); //缓存token
                uni.setStorageSync('openid', res.data.openid); //缓存Openid
                uni.setStorageSync('expire', res.data.expire); //缓存失效时间（时间戳格式）
                uni.setStorageSync('is_active', res.data.is_active); //是否第一次授权
                uni.setStorageSync('user_type', res.data.user_type); //权限
                _this2.checkList(); //商品列表查询事件
              }
            } else {
              _this2.$toolAll.tools.showToast(res.msg);
            }
          }, function (error) {});
        }
      } });

  },
  onLoad: function onLoad(options) {var _this3 = this;
    var query = wx.createSelectorQuery().in(this);
    query.select('.statusHNH').boundingClientRect(function (rect) {
      // console.log('rect.height',rect)
      uni.setStorageSync('statusHNH', rect.height);
      _this3.statusHNH = rect.height;
    }).exec();
    var _this = this;
    // 微信扫码后会自动编码,所以需要解码
    if (options && options.q) {
      var arr = decodeURIComponent(options.q).split('?')[1].split('&');
      var obj = {};
      arr.forEach(function (item) {
        var brr = item.split('=');
        obj[brr[0]] = brr[1];
      });
      // console.log(obj) //得到参数组成的对象
      uni.setStorageSync('invite_code', obj.invite_code);
    }
    this.title = this.dengrui;
    this.bannerEv(); //查询轮播
    this.requestGao(); //查询公告
    this.reMen(); //查询热门产品
    this.shaiEv(); //查询商品分类
  },
  methods: {
    shaiEv: function shaiEv() {var _this4 = this; //商品分类查询事件
      this.$requst.post('product/spu/category').then(function (res) {
        // console.log('筛选',res);
        if (res.data.length != 0) {
          res.data.forEach(function (item) {
            var obj = {
              id: item.id,
              name: item.name,
              pid: item.pid,
              hasChildren: item.hasChildren };

            _this4.cateList.push(obj);
          });
        }
      }, function (error) {});
    },
    bannerEv: function bannerEv() {var _this5 = this; // 查询轮播图片事件
      var paramsBanner = {
        position: 'home_banner' };

      this.$requst.post('slide/index', paramsBanner).then(function (res) {
        // console.log('轮播图===>',res);
        if (res.data.length != 0) {
          _this5.pageShow = true;
          res.data.forEach(function (item) {
            var obj = {
              src: _this5.$http + item.src,
              alt: item.alt,
              link: item.link,
              time: item.time };

            _this5.bannerList.push(obj);
          });
        }
      }, function (error) {});
    },
    goReDetail: function goReDetail(urlre) {// 去热门详情
      uni.navigateTo({
        url: urlre });

    },
    reMen: function reMen() {var _this6 = this; //查询热门
      this.$requst.post('slide/index', { position: 'home_promote' }).then(function (res) {
        // console.log('热门===>',res);
        if (res.data.length != 0) {
          res.data.forEach(function (item) {
            var zanObj = {
              alt: item.alt,
              desc: item.desc,
              link: item.link,
              src: _this6.$http + item.src,
              time: item.time };

            _this6.zanReArrImg.push(zanObj);
            // let obj = {
            // 	src:this.$http+item.src,
            // 	title:item.alt,
            // 	miaoone:item.link,
            // 	miaotwo:item.time,
            // 	price:item.price
            // }
            // this.reArr.push(obj)
          });
        }
      }, function (error) {});
    },
    requestGao: function requestGao() {var _this7 = this; //查询公告列表
      var paramsGao = {
        size: 0 };

      this.$requst.post('article/announcement/topList', paramsGao).then(function (res) {
        // console.log(res);
        if (res.data.list.length != 0) {
          res.data.list.forEach(function (item) {
            _this7.advanceListTwo.push(item.title);
          });
          _this7.advanceListInfo = res.data.list;
        }
      }, function (error) {});
    },
    backTop: function backTop() {
      uni.pageScrollTo({
        scrollTop: 0,
        duration: 300 });

    },
    chooseCate: function chooseCate(id, e) {
      this.current = e;
      if (id == '') this.cid = 0;else
      this.cid = id;
      this.page = 1;
      this.isZanw = true;
      this.checkList();
    },
    checkList: function checkList() {var _this8 = this;
      var paramCate = {
        category_id: this.cid,
        page: this.page,
        size: this.size,
        sort_filed: 'synthetical', //排序字段。“synthetical”综合推荐
        sort_direction: 'down' //排序方向。【down 由大到小|up 由小到大】
      };
      this.$requst.post('product/spu/list', paramCate).then(function (res) {
        // console.log('产品',res);
        if (_this8.page == 1) _this8.dataList = [];
        if (res.data.list.length != 0) {
          _this8.total = res.data.total;
          // this.cid = res.data.list[0].cid//获取分类ID，以便加载更多使用
          _this8.zanList = res.data.list;
          res.data.list.forEach(function (item) {
            var cateObj = {
              id: item.main_sku.id, //商品ID
              spu_id: item.id,
              src: _this8.$http + item.main_sku.main_image, //商品图片
              title: item.name, //商品名称
              content: item.sub_title, //商品标题
              cate: item.tag_list, //标签列表
              price: item.main_sku.cur_price / 100 //商品原价
            };
            _this8.dataList.push(cateObj);
          });
        } else {
          // this.$toolAll.tools.showToast('没找到相关产品o(╥﹏╥)o')
        }
      }, function (error) {});
    },
    // addChe(e){//加入购物车事件
    //     console.log('加入购物车：'+e)
    // },
    dangGao: function dangGao(e) {//跳转到公告详情
      uni.setStorageSync('noticeInfo', this.advanceListInfo[e]);
      uni.navigateTo({
        url: '/pagesB/noticesDetail/noticesDetail?index=2' });

    },
    goNotices: function goNotices() {//跳转到公告列表
      uni.navigateTo({
        url: '/pagesB/notices/notices' });

    },
    inputFocus: function inputFocus() {//搜索框获取焦点跳转产品页
      wx.hideKeyboard();
      uni.navigateTo({
        url: '/pagesB/keySearch/keySearch' });

    } } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ })
],[[14,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/tabbar/homePage/homePage.js.map