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

/***/ 967:
/*!**************************************************************************************!*\
  !*** C:/Users/Admin/Desktop/商城/main.js?{"page":"pages%2Fapp_admin%2Findex%2Findex"} ***!
  \**************************************************************************************/
/*! 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 _index = _interopRequireDefault(__webpack_require__(/*! ./pages/app_admin/index/index.vue */ 968));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
createPage(_index.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 968:
/*!*****************************************************************!*\
  !*** C:/Users/Admin/Desktop/商城/pages/app_admin/index/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_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=76c7eb4e&scoped=true& */ 969);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 971);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_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 _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_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=76c7eb4e&scoped=true&lang=scss& */ 973);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10);

var renderjs





/* normalize component */

var component = Object(_D_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_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "76c7eb4e",
  null,
  false,
  _index_vue_vue_type_template_id_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "C:/Users/Admin/Desktop/商城/pages/app_admin/index/index.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 969:
/*!************************************************************************************************************!*\
  !*** C:/Users/Admin/Desktop/商城/pages/app_admin/index/index.vue?vue&type=template&id=76c7eb4e&scoped=true& ***!
  \************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--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!./index.vue?vue&type=template&id=76c7eb4e&scoped=true& */ 970);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_76c7eb4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

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

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

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



/***/ }),

/***/ 970:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!C:/Users/Admin/Desktop/商城/pages/app_admin/index/index.vue?vue&type=template&id=76c7eb4e&scoped=true& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ 971:
/*!******************************************************************************************!*\
  !*** C:/Users/Admin/Desktop/商城/pages/app_admin/index/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 _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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__(/*! -!./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!./index.vue?vue&type=script&lang=js& */ 972);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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(_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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 _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_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); 

/***/ }),

/***/ 972:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!C:/Users/Admin/Desktop/商城/pages/app_admin/index/index.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 _uChartsMin = _interopRequireDefault(__webpack_require__(/*! ../../../components/u-charts/u-charts.min.js */ 610));

var _vuex = __webpack_require__(/*! vuex */ 12);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (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 = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}

var _self;
var canvaColumn = null;var _default =

{
  data: function data() {
    return {
      info: {
        comment: 0,
        mch: 0,
        share: 0 },

      plugins_list: [],
      status: [{
        name: '支付金额',
        sign: 'total_pay_price' },
      {
        name: '支付订单数',
        sign: 'order_num' },
      {
        name: '支付人数',
        sign: 'user_num' },
      {
        name: '支付件数',
        sign: 'goods_num' }],

      plugins_active: {
        name: '全部',
        sign: 'all' },

      canvas_plugins: {
        name: '全部',
        sign: 'all' },

      pay_active: {
        name: '支付金额',
        sign: 'total_pay_price' },

      _num: '0',
      _date: '0',
      choose_list: [],
      new_msg_num: null,
      all_data: [],
      index: [0],
      newIndex: 0,
      dialog: false,
      today: '',
      yesterday: '',
      weekday: '',
      monthday: '',
      area: null,
      id: null,
      iphone_x: false,
      is_scan_code_pay: 0,
      cWidth: '',
      cHeight: '',
      pixelRatio: 1 };

  },
  computed: _objectSpread({},
  (0, _vuex.mapState)({
    theme: function theme(state) {return state.mallConfig.theme;},
    mall: function mall(state) {return state.mallConfig.mall;},
    adminImg: function adminImg(state) {return state.mallConfig.__wxapp_img.app_admin;},
    userInfo: function userInfo(state) {return state.user.info;} })),


  methods: {
    bindChange: function bindChange(e) {
      this.newIndex = e.detail.value[0];
    },
    // 切换
    toggle: function toggle(Bool, num) {
      var that = this;
      var status;
      if (Bool) {
        that.area = num;
      } else {
        status = num;
      }
      var day;
      var otherDay;
      switch (that._num) {
        case '0':
          day = '';
          break;
        case '1':
          day = that.today;
          break;
        case '2':
          day = that.yesterday;
          break;
        case '3':
          day = that.weekday;
          break;
        case '4':
          day = that.monthday;
          break;}

      switch (that._date) {
        case '0':
          otherDay = that.today;
          break;
        case '1':
          otherDay = that.yesterday;
          break;
        case '2':
          otherDay = that.weekday;
          break;
        case '3':
          otherDay = that.monthday;
          break;}

      var index;
      if (that.area == 3) {
        that.index = that.status.indexOf(that.pay_active);
        that.choose_list = that.status;
        that.dialog = !that.dialog;
      } else if (that.area < 3) {
        if (that.area == 1) {
          that.index = that.plugins_list.indexOf(that.plugins_active);
        } else if (that.area == 2) {
          that.index = that.plugins_list.indexOf(that.canvas_plugins);
        }
        that.choose_list = that.plugins_list;
        that.dialog = !that.dialog;
      }
      setTimeout(function () {
        if (status > 0) {
          if (status == 1) {
            if (that.area == 3) {
              console.log(that.status, that.newIndex);
              that.pay_active = that.status[that.newIndex];
              that.dialog = false;
              that.getCanvas(otherDay);
            } else if (that.area == 1) {
              that.plugins_active = that.plugins_list[that.newIndex];
              that.getInfo(day);
            } else if (that.area == 2) {
              that.canvas_plugins = that.plugins_list[that.newIndex];
              that.dialog = false;
              that.getCanvas(otherDay);
            } else {
              that.dialog = false;
            }
          } else {
            that.newIndex = 0;
            that.dialog = false;
          }
        }
      }, 500);
    },
    tablist: function tablist(e) {
      var that = this;
      that._date = e.toString();
      var day;
      switch (that._date) {
        case '0':
          that.getCanvas(that.today);
          break;
        case '1':
          that.getCanvas(that.yesterday);
          break;
        case '2':
          that.getCanvas(that.weekday);
          break;
        case '3':
          that.getCanvas(that.monthday);
          break;}

      that.$forceUpdate();
    },
    tab: function tab(e) {
      this._num = e.toString();
      switch (this._num) {
        case '0':
          this.getInfo();
          break;
        case '1':
          this.getInfo(this.today);
          break;
        case '2':
          this.getInfo(this.yesterday);
          break;
        case '3':
          this.getInfo(this.weekday);
          break;
        case '4':
          this.getInfo(this.monthday);
          break;}

      this.$forceUpdate();
    },
    toRedirect: function toRedirect(url) {
      uni.redirectTo({
        url: url });

    },
    toPayment: function toPayment() {
      uni.navigateTo({
        url: '/pages/app_admin/payment-code/payment-code' });

    },
    toMessage: function toMessage() {
      uni.navigateTo({
        url: '/pages/app_admin/order-message/order-message' });

    },
    toReview: function toReview() {
      uni.navigateTo({
        url: '/pages/app_admin/review-message/review-message?mch=' + this.info.mch + '&share=' + this.info.share + '&bonus=' + this.info.bonus + '&stock=' + this.info.stock });

    },
    toCash: function toCash() {
      uni.navigateTo({
        url: '/pages/app_admin/cash/cash?mch=' + this.info.mch + '&share=' + this.info.share + '&bonus=' + this.info.bonus + '&stock=' + this.info.stock });

    },
    toComment: function toComment() {
      uni.navigateTo({
        url: '/pages/app_admin/comment/comment' });

    },
    toUser: function toUser() {
      uni.navigateTo({
        url: '/pages/app_admin/user/user?share=' + this.info.share });

    },
    // 获取日期
    getDate: function getDate() {
      var myDate = new Date();
      // 今天
      var year = myDate.getFullYear();
      var month = myDate.getMonth() + 1;
      if (month >= 1 && month <= 9) {
        month = "0" + month;
      }
      var now = myDate.getDate();
      this.today = year + "-" + month + "-" + now;
      var timestamp = Date.parse(new Date());
      // 昨天
      var yesterTime = (timestamp / 1000 - 24 * 60 * 60) * 1000;
      var yesterDate = new Date(yesterTime);
      var yester_year = yesterDate.getFullYear();
      var yester_month = yesterDate.getMonth() + 1;
      if (yester_month >= 1 && yester_month <= 9) {
        yester_month = "0" + yester_month;
      }
      var yester_now = yesterDate.getDate();
      this.yesterday = yester_year + "-" + yester_month + "-" + yester_now;
      // 7天
      var weekTime = (timestamp / 1000 - 24 * 60 * 60 * 7) * 1000;
      var weekDate = new Date(weekTime);
      var week_year = weekDate.getFullYear();
      var week_month = weekDate.getMonth() + 1;
      if (week_month >= 1 && week_month <= 9) {
        week_month = "0" + week_month;
      }
      var week_now = weekDate.getDate();
      this.weekday = week_year + "-" + week_month + "-" + week_now;
      // 30天
      var monthTime = (timestamp / 1000 - 24 * 60 * 60 * 30) * 1000;
      var monthDate = new Date(monthTime);
      var month_year = monthDate.getFullYear();
      var month_month = monthDate.getMonth() + 1;
      if (month_month >= 1 && month_month <= 9) {
        month_month = "0" + month_month;
      }
      var month_now = monthDate.getDate();
      this.monthday = month_year + "-" + month_month + "-" + month_now;
    },
    getInfo: function getInfo(day) {
      var that = this;
      uni.showLoading({
        title: '加载中...' });

      var date_end = that.today;
      if (day == that.yesterday) {
        date_end = that.yesterday;
      }
      if (!day) {
        that._num = '0';
      }
      that.$request({
        url: that.$api.app_admin.index,
        data: {
          date_start: day ? day : '',
          date_end: date_end,
          sign: that.plugins_active.sign },

        method: 'post' }).
      then(function (response) {
        uni.hideLoading();
        that.$hideLoading();
        if (response.code == 0) {
          var plugins = [];
          that.info = response.data.admin_info;
          that.plugins_list = plugins.concat(response.data.plugins_list);
          that.new_msg_num = response.data.new_msg_num;
          that.all_data = response.data.all_data;
          that.is_scan_code_pay = response.data.is_scan_code_pay;
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      }).catch(function (e) {
        uni.hideLoading();
        that.$hideLoading();
      });
    },

    getCanvas: function getCanvas(day, status) {
      var that = this;
      var date_end = that.today;
      if (day == that.yesterday) {
        date_end = that.yesterday;
      }
      that.$request({
        url: that.$api.app_admin.table,
        data: {
          date_start: day,
          date_end: date_end,
          sign: that.canvas_plugins.sign },

        method: 'post' }).
      then(function (response) {
        that.$hideLoading();
        if (response.code == 0) {
          var list = response.data.list;
          var Column = { categories: [], series: [{ name: '', data: [] }] };
          if (that.pay_active.sign == 'total_pay_price') {
            Column.series[0].name = '支付金额';
            list.forEach(function (row, index) {
              var time = list[index].created_at;
              if (that._date < 2) {
                time = list[index].created_at + '时';
              }
              var data = {
                value: list[index].total_pay_price,
                index: list[index].created_at };

              Column.series[0].data.push(data);
              Column.categories.push(time);
            });
          } else if (that.pay_active.sign == 'order_num') {
            Column.series[0].name = '支付订单数';
            list.forEach(function (row, index) {
              var time = list[index].created_at;
              if (that._date < 2) {
                time = list[index].created_at + '时';
              }
              var data = {
                value: list[index].order_num,
                index: list[index].created_at };

              Column.series[0].data.push(data);
              Column.categories.push(time);
            });
          } else if (that.pay_active.sign == 'goods_num') {
            Column.series[0].name = '支付件数';
            list.forEach(function (row, index) {
              var time = list[index].created_at;
              if (that._date < 2) {
                time = list[index].created_at + '时';
              }
              var data = {
                value: list[index].goods_num,
                index: list[index].created_at };

              Column.series[0].data.push(data);
              Column.categories.push(time);
            });
          } else if (that.pay_active.sign == 'user_num') {
            Column.series[0].name = '支付人数';
            list.forEach(function (row, index) {
              var time = list[index].created_at;
              if (that._date < 2) {
                time = list[index].created_at + '时';
              }
              var data = {
                value: list[index].user_num,
                index: list[index].created_at };

              Column.series[0].data.push(data);
              Column.categories.push(time);
            });
          }
          var padding = [15, 15, 4, 0];
          switch (that._date) {
            case '0':
              Column.categories.forEach(function (row, index) {
                if (index % 4 == 0) {
                  Column.categories[index] = Column.categories[index];
                } else {
                  Column.categories[index] = '';
                }
              });
              Column.categories.push('24');
              padding = [15, 15, 4, -25];
              break;
            case '1':
              Column.categories.forEach(function (row, index) {
                if (index % 4 != 0) {
                  Column.categories[index] = '';
                }
              });
              Column.categories.push('24');
              padding = [15, 15, 4, -25];
              break;
            case '2':
              Column.categories.forEach(function (row, index) {
                Column.categories[index] = Column.categories[index].substring(5);
              });
              break;
            case '3':
              Column.categories.forEach(function (row, index) {
                Column.categories[index] = Column.categories[index].substring(5);
                if (index % 4 != 0) {
                  Column.categories[index] = '';
                }
              });
              break;}

          that.showColumn("canvasColumn", Column, padding);
        } else {
          uni.showToast({
            title: response.msg,
            icon: 'none',
            duration: 1000 });

        }
      });
    },
    touchIt: function touchIt(e) {
      var that = this;
      canvaColumn.showToolTip(e, {
        format: function format(item, category) {
          item.color = 'rgba(0,0,0,0)';
          if (that._date == 0) {
            category = that.today + ' ' + item.data.index + '时 ';
          } else if (that._date == 1) {
            category = that.yesterday + ' ' + item.data.index + '时 ';
          } else if (that._date == 2 || that._date == 3) {
            category = item.data.index;
          }
          if (item.name == '支付金额') {
            return category + ' ' + item.name + '￥' + item.data.value + '  ';
          } else {
            return category + ' ' + item.name + ' ' + item.data.value + '  ';
          }
        } });

    },
    showColumn: function showColumn(canvasId, chartData, padding) {
      canvaColumn = new _uChartsMin.default({
        $this: _self,
        canvasId: canvasId,
        type: 'area',
        legend: {
          show: false },

        fontSize: 9,
        background: '#FFFFFF',
        colors: ["#446DFD"],
        padding: padding,
        pixelRatio: this.pixelRatio,
        categories: chartData.categories,
        series: chartData.series,
        xAxis: {
          disableGrid: true },

        yAxis: {
          gridType: 'dash',
          data: {
            disabled: true } },


        dataLabel: false,
        dataPointShape: false,
        width: this.cWidth * this.pixelRatio,
        height: this.cHeight * this.pixelRatio,
        extra: {
          area: {
            type: 'curve',
            addLine: true },

          tooltip: {
            bgColor: '#000000',
            bgOpacity: 0.7 } } });



    } },


  onLoad: function onLoad(options) {
    var that = this;
    that.$store.dispatch('user/refreshInfo');
    that.getDate();
    that._date = '0';
    uni.getSystemInfo({
      success: function success(res) {
        if (res.model.indexOf('iPhone X') > -1 || res.model.indexOf('iPhone 11') > -1 || res.model.indexOf('iPhone11') > -1 || res.model.indexOf('iPhone12') > -1 || res.model.indexOf('Unknown Device') > -1) {
          that.iphone_x = true;
        }
      } });












    that.cWidth = uni.upx2px(640);
    that.cHeight = uni.upx2px(220);
  },
  onReady: function onReady() {
    var that = this;
    var getAdmin = setInterval(function () {
      if (that.userInfo) {
        that.$showLoading({
          type: 'global',
          text: '加载中...' });

        clearInterval(getAdmin);
        if (that.userInfo.identity.is_admin == 0) {
          that.$hideLoading();
          uni.showModal({
            title: '提示',
            content: '该帐号无管理员权限',
            showCancel: false,
            success: function success(res) {
              uni.redirectTo({
                url: '/pages/index/index' });

            } });

        } else {
          that.$request({
            url: that.$api.app_admin.index,
            data: {
              date_start: '',
              date_end: that.today,
              sign: 'all' },

            method: 'post' }).
          then(function (response) {
            if (response.code == 0) {
              var plugins = [];
              that.info = response.data.admin_info;
              that.plugins_list = plugins.concat(response.data.plugins_list);
              that.new_msg_num = response.data.new_msg_num;
              that.all_data = response.data.all_data;
              that.is_scan_code_pay = response.data.is_scan_code_pay;
              that.getCanvas(that.today);
            } else {
              uni.showToast({
                title: response.msg,
                icon: 'none',
                duration: 1000 });

            }
          }).catch(function (e) {
            that.$hideLoading();
            uni.showModal({
              title: '提示',
              content: '该帐号无管理员权限',
              showCancel: false,
              success: function success(res) {
                uni.redirectTo({
                  url: '/pages/index/index' });

              } });

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

/***/ }),

/***/ 973:
/*!***************************************************************************************************************************!*\
  !*** C:/Users/Admin/Desktop/商城/pages/app_admin/index/index.vue?vue&type=style&index=0&id=76c7eb4e&scoped=true&lang=scss& ***!
  \***************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&id=76c7eb4e&scoped=true&lang=scss& */ 974);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_id_76c7eb4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 974:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./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/Admin/Desktop/商城/pages/app_admin/index/index.vue?vue&type=style&index=0&id=76c7eb4e&scoped=true&lang=scss& ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

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

/***/ })

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