(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/app_admin/goods-attr-info/goods-attr-info"],{

/***/ 1026:
/*!********************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/main.js?{"page":"pages%2Fapp_admin%2Fgoods-attr-info%2Fgoods-attr-info"} ***!
  \********************************************************************************************************************/
/*! 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 _goodsAttrInfo = _interopRequireDefault(__webpack_require__(/*! ./pages/app_admin/goods-attr-info/goods-attr-info.vue */ 1027));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
createPage(_goodsAttrInfo.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 1027:
/*!***********************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.vue ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _goods_attr_info_vue_vue_type_template_id_5f584590_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./goods-attr-info.vue?vue&type=template&id=5f584590&scoped=true& */ 1028);
/* harmony import */ var _goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./goods-attr-info.vue?vue&type=script&lang=js& */ 1030);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _goods_attr_info_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 _goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./goods-attr-info.vue?vue&type=style&index=0&id=5f584590&scoped=true&lang=scss& */ 1032);
/* harmony import */ var _C_develop_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(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _goods_attr_info_vue_vue_type_template_id_5f584590_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _goods_attr_info_vue_vue_type_template_id_5f584590_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "5f584590",
  null,
  false,
  _goods_attr_info_vue_vue_type_template_id_5f584590_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/app_admin/goods-attr-info/goods-attr-info.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 1028:
/*!******************************************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.vue?vue&type=template&id=5f584590&scoped=true& ***!
  \******************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_template_id_5f584590_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!./goods-attr-info.vue?vue&type=template&id=5f584590&scoped=true& */ 1029);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_template_id_5f584590_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

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

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

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



/***/ }),

/***/ 1029:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.vue?vue&type=template&id=5f584590&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



/***/ }),

/***/ 1030:
/*!************************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_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!./goods-attr-info.vue?vue&type=script&lang=js& */ 1031);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 1031:
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.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 _default =

{
  data: function data() {
    return {
      iphone_x: false,
      attr_groups: [],
      attr_list: [],
      unit: '件',
      attr: [],
      select: false,
      chooseAttr: {},
      chooseGroup: {},
      chooseList: [],
      selectList: [],
      selectStatus: false,
      chooseIndex: -1,
      listLength: 0,
      showGroup: false,
      showSetting: false,
      inputName: false,
      inputStock: false,
      inputNo: false,
      inputWeight: false,
      startIndex: -10,
      endIndex: 90,
      setting: {
        price: '',
        stock: '',
        no: '',
        weight: '' },

      groupIndex: -1 };

  },
  methods: {
    settingValue: function settingValue(e, name) {
      var value = e.detail.value;
      switch (name) {
        case 'price':
          this.setting.price = value;
          break;
        case 'stock':
          this.setting.stock = value;
          break;
        case 'no':
          this.setting.no = value;
          break;
        case 'weight':
          this.setting.weight = value;
          break;}

    },
    nameBlur: function nameBlur(id, e) {
      if (!e) {
        this.inputName = true;
        this.inputStock = false;
        this.inputNo = false;
        this.inputWeight = false;
        this.chooseIndex = id;
      } else {
        this.inputName = false;
        this.attr[id].price = this.money(e.detail.value);
      }
    },
    stockBlur: function stockBlur(id, e) {
      if (!e) {
        this.inputStock = true;
        this.inputName = false;
        this.inputNo = false;
        this.inputWeight = false;
        this.chooseIndex = id;
      } else {
        this.inputStock = false;
        this.attr[id].stock = e.detail.value;
      }
    },
    noBlur: function noBlur(id, e) {
      if (!e) {
        this.inputNo = true;
        this.inputName = false;
        this.inputStock = false;
        this.inputWeight = false;
        this.chooseIndex = id;
      } else {
        this.inputNo = false;
        this.attr[id].no = e.detail.value;
      }
    },
    weightBlur: function weightBlur(id, e) {
      if (!e) {
        this.inputWeight = true;
        this.inputName = false;
        this.inputStock = false;
        this.inputNo = false;
        this.chooseIndex = id;
      } else {
        this.inputWeight = false;
        this.attr[id].weight = e.detail.value;
      }
    },
    money: function money(val) {
      var num = val.toString(); //先转换成字符串类型
      if (num.indexOf('.') === 0) {//第一位就是 .
        num = '0' + num;
      }
      num = num.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符
      num = num.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
      num = num.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
      num = num.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
      if (num.indexOf(".") < 0 && num != "") {
        num = parseFloat(num);
      }
      return num;
    },
    allSetting: function allSetting() {
      var select = false;
      for (var i in this.attr) {
        if (this.attr[i].select) {
          select = true;
        }
      }
      if (select) {
        this.showSetting = true;
      } else {
        uni.showToast({
          title: '请选择规格',
          icon: 'none',
          duration: 1000 });

      }
    },
    settingSubmit: function settingSubmit() {
      for (var i in this.attr) {
        if (this.attr[i].select) {
          if (this.setting.price) {
            this.attr[i].price = this.money(this.setting.price);
            this.$forceUpdate();
          }
          if (this.setting.stock) {
            this.attr[i].stock = this.setting.stock;
            this.$forceUpdate();
          }
          if (this.setting.no) {
            this.attr[i].no = this.setting.no;
            this.$forceUpdate();
          }
          if (this.setting.weight) {
            this.attr[i].weight = this.setting.weight;
            this.$forceUpdate();
          }
        }
      }
      this.close();
    },
    close: function close() {
      this.showSetting = false;
      this.setting.stock = '';
      this.setting.price = '';
      this.setting.no = '';
      this.setting.weight = '';
    },
    unSelect: function unSelect(item, index) {
      this.attr[index].select = !this.attr[index].select;
      var select = true;
      for (var i in this.attr) {
        if (!this.attr[i].select) {
          select = false;
        }
      }
      this.selectStatus = select;
      this.$forceUpdate();
    },
    allSelect: function allSelect() {
      this.selectStatus = !this.selectStatus;
      for (var i in this.attr) {
        this.attr[i].select = !this.selectStatus;
        if (this.attr[i].show == this.listLength) {
          this.attr[i].select = this.selectStatus;
        }
      }
    },
    save: function save() {
      var that = this;
      var pass = true;
      for (var i in that.attr) {
        if (!that.attr[i].price || !that.attr[i].stock) {
          pass = false;
          uni.showToast({
            title: '请填写规格信息',
            icon: 'none',
            duration: 1000 });

          return false;
        }
      }
      if (pass) {
        uni.showLoading({
          title: '保存中...' });

        uni.setStorage({
          key: "temp_attr_info",
          data: that.attr,
          success: function success() {
            uni.hideLoading();
            setTimeout(function () {
              uni.navigateBack();
            }, 500);
          },
          fail: function fail(res) {
            uni.hideLoading();
            uni.showToast({
              title: res.errMsg,
              icon: 'none',
              duration: 1000 });

          } });

      }
    },
    choose: function choose(item, index) {
      this.chooseGroup = item;
      if (this.groupIndex != index) {
        this.showGroup = true;
        this.groupIndex = index;
      } else {
        this.showGroup = !this.showGroup;
      }
    },
    confirm: function confirm(index, item) {
      this.showGroup = false;
      for (var i in this.attr_groups[this.groupIndex].attr_list) {
        this.attr_groups[this.groupIndex].attr_list[i].choose = false;
      }
      if (index > -1) {
        this.chooseAttr = item;
        item.attr_groups_id = this.attr_groups[this.groupIndex].attr_groups_id;
        this.attr_groups[this.groupIndex].attr_list[index].choose = true;
        this.attr_groups[this.groupIndex].choose = true;
        this.attr_groups[this.groupIndex].choose_attr = this.attr_groups[this.groupIndex].attr_list[index].attr_name;
      } else {
        this.chooseGroup = {};
        this.chooseAttr = {};
        this.attr_groups[this.groupIndex].choose = false;
        this.attr_groups[this.groupIndex].choose_attr = '';
      }
      this.chooseList = [];
      for (var _i in this.attr_groups) {
        if (this.attr_groups[_i].choose) {
          for (var j in this.attr_groups[_i].attr_list) {
            if (this.attr_groups[_i].attr_list[j].choose) {var _this$attr_groups$_i =
              this.attr_groups[_i],attr_group_id = _this$attr_groups$_i.attr_group_id,attr_group_name = _this$attr_groups$_i.attr_group_name,attr_list = _this$attr_groups$_i.attr_list;
              this.chooseList.push({
                attr_group_id: attr_group_id,
                attr_group_name: attr_group_name,
                attr_id: attr_list[j].attr_id,
                attr_name: attr_list[j].attr_name });

            }
          }
        }
      }
      this.listLength = this.chooseList.length;
      var select = false;
      var showIndex = -1;
      for (var x in this.attr) {
        this.attr[x].show = 0;
        this.attr[x].choose = [];
        this.attr[x].showIndex = -200;
        if (this.chooseList.length > 0) {
          for (var y in this.attr[x].attr_list) {
            for (var _i2 in this.chooseList) {var _this$attr$x$attr_lis =
              this.attr[x].attr_list[y],_attr_group_id = _this$attr$x$attr_lis.attr_group_id,attr_id = _this$attr$x$attr_lis.attr_id;
              if (_attr_group_id == this.chooseList[_i2].attr_group_id && attr_id == this.chooseList[_i2].attr_id) {
                this.attr[x].choose.push(this.chooseList[_i2].attr_name);
                this.attr[x].choose = Array.from(new Set(this.attr[x].choose));
                this.attr[x].show = this.attr[x].choose.length;
                this.attr[x].showIndex = showIndex;
                select = true;
                this.$forceUpdate();
              }
            }
          }
        } else {
          this.attr[x].showIndex = x;
        }
      }
      if (!select) {
        for (var _x in this.attr) {
          this.attr[_x].choose = [];
          this.attr[_x].show = this.attr[_x].choose.length;
        }
      } else {
        for (var _x2 in this.attr) {
          if (this.attr[_x2].show == this.listLength) {
            showIndex++;
            this.attr[_x2].showIndex = showIndex;
          }
        }
      }
      this.startIndex = -10;
      this.endIndex = 90;
      uni.pageScrollTo({
        scrollTop: 0,
        duration: 300 });

    },
    saveData: function saveData(obj1, obj2, obj3, obj4, obj5) {
      var obj = {};
      obj.attr_list = [];
      obj.stock = '';
      obj.price = '';
      obj.no = '';
      obj.weight = '';
      obj.pic_url = '';
      obj.shareLevelList = [];
      obj.member_price = {};
      obj.attr_list.push(obj1);
      if (obj2) {
        obj.attr_list.push(obj2);
      }
      if (obj3) {
        obj.attr_list.push(obj3);
      }
      if (obj4) {
        obj.attr_list.push(obj4);
      }
      if (obj5) {
        obj.attr_list.push(obj5);
      }
      this.attr.push(obj);
      this.$hideLoading();
    } },

  onPageScroll: function onPageScroll(e) {
    var that = this;
    that.startIndex = Math.floor((e.scrollTop - 50) / 250) - 150; // 取得可见区域的起始数据索引
    that.endIndex = that.startIndex + 300; // 取得可见区域的结束数据索引
  },
  onLoad: function onLoad() {
    var that = this;
    that.$showLoading({
      type: 'global',
      text: '加载中...' });

    uni.getStorage({
      key: 'goods_unit',
      success: function success(res) {
        that.unit = res.data;
      } });

    uni.getStorage({
      key: 'temp_attr_info',
      success: function success(res) {
        uni.getStorage({
          key: 'temp_attr',
          success: function success(res) {
            that.attr_groups = res.data;
          } });

        that.attr_list[0] = [];
        that.attr = res.data;
        for (var i in that.attr) {
          that.attr[i].show = 0;
          that.attr[i].choose = [];
          that.attr[i].id = i;
          that.attr[i].select = false;
          that.attr[i].showIndex = i;
        }
        that.$hideLoading();
      },
      fail: function fail() {
        uni.getStorage({
          key: 'temp_attr',
          success: function success(res) {
            that.attr_groups = res.data;
            that.attr = [];
            for (var i = 0; i < that.attr_groups[0].attr_list.length; i++) {
              var first = {
                attr_group_id: that.attr_groups[0].attr_group_id,
                attr_group_name: that.attr_groups[0].attr_group_name,
                attr_id: that.attr_groups[0].attr_list[i].attr_id,
                attr_name: that.attr_groups[0].attr_list[i].attr_name };

              if (that.attr_groups.length === 1) {
                that.saveData(first);
              } else {
                for (var j = 0; j < that.attr_groups[1].attr_list.length; j++) {
                  var second = {
                    attr_group_id: that.attr_groups[1].attr_group_id,
                    attr_group_name: that.attr_groups[1].attr_group_name,
                    attr_id: that.attr_groups[1].attr_list[j].attr_id,
                    attr_name: that.attr_groups[1].attr_list[j].attr_name };

                  if (that.attr_groups.length === 2) {
                    that.saveData(first, second);
                  } else {
                    for (var x = 0; x < that.attr_groups[2].attr_list.length; x++) {
                      var third = {
                        attr_group_id: that.attr_groups[2].attr_group_id,
                        attr_group_name: that.attr_groups[2].attr_group_name,
                        attr_id: that.attr_groups[2].attr_list[x].attr_id,
                        attr_name: that.attr_groups[2].attr_list[x].attr_name };

                      if (that.attr_groups.length === 3) {
                        that.saveData(first, second, third);
                      } else {
                        for (var y = 0; y < that.attr_groups[3].attr_list.length; y++) {

                          var fourth = {
                            attr_group_id: that.attr_groups[3].attr_group_id,
                            attr_group_name: that.attr_groups[3].attr_group_name,
                            attr_id: that.attr_groups[3].attr_list[y].attr_id,
                            attr_name: that.attr_groups[3].attr_list[y].attr_name };

                          if (that.attr_groups.length === 4) {
                            that.saveData(first, second, third, fourth);
                            that.$hideLoading();
                          } else {
                            for (var z = 0; z < that.attr_groups[4].attr_list.length; z++) {
                              var fifth = {
                                attr_group_id: that.attr_groups[4].attr_group_id,
                                attr_group_name: that.attr_groups[4].attr_group_name,
                                attr_id: that.attr_groups[4].attr_list[z].attr_id,
                                attr_name: that.attr_groups[4].attr_list[z].attr_name };

                              that.saveData(first, second, third, fourth, fifth);
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            for (var _i3 in that.attr) {
              that.attr[_i3].show = 0;
              that.attr[_i3].choose = [];
              that.attr[_i3].id = _i3;
              that.attr[_i3].showIndex = _i3;
            }
          } });

      } });

    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;
        }
      } });

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

/***/ }),

/***/ 1032:
/*!*********************************************************************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.vue?vue&type=style&index=0&id=5f584590&scoped=true&lang=scss& ***!
  \*********************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_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!./goods-attr-info.vue?vue&type=style&index=0&id=5f584590&scoped=true&lang=scss& */ 1033);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_goods_attr_info_vue_vue_type_style_index_0_id_5f584590_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 1033:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/app_admin/goods-attr-info/goods-attr-info.vue?vue&type=style&index=0&id=5f584590&scoped=true&lang=scss& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

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

/***/ })

},[[1026,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/app_admin/goods-attr-info/goods-attr-info.js.map