exports.ids = [89];
exports.modules = {

/***/ 302:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 376:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_code_vue_vue_type_style_index_0_id_04045eec_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(302);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_code_vue_vue_type_style_index_0_id_04045eec_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_code_vue_vue_type_style_index_0_id_04045eec_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_code_vue_vue_type_style_index_0_id_04045eec_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_code_vue_vue_type_style_index_0_id_04045eec_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 421:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/product-record/_code.vue?vue&type=template&id=04045eec&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.isPromocollection,
      expression: "isPromocollection"
    }],
    staticClass: "page-prodcut-record com-width-1400 com-minwidth-1024 com-margin-auto"
  }, [_vm._ssrNode("<div class=\"title\" data-v-04045eec>" + _vm._ssrEscape("\n    " + _vm._s(_vm.record.product_code) + " " + _vm._s(_vm.record.product_name) + " 价格 +\n    产品呈现\n  ") + "</div> <div class=\"author-wrap flex column center\" data-v-04045eec><div class=\"flex center\" data-v-04045eec><div class=\"time\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.create_time)) + "</div> <div class=\"author\" data-v-04045eec>" + _vm._ssrEscape("\n            " + _vm._s(_vm.record.admin_name) + "\n      ") + "</div></div> <div class=\"like-border\" data-v-04045eec></div></div> <div class=\"p-title\" data-v-04045eec>开发原因</div> <div class=\"content\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.record_reason)) + "</div> <div class=\"p-title\" data-v-04045eec>本次开发</div> <div class=\"content flex\" data-v-04045eec><div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.product_code)) + "</div> <span data-v-04045eec> - </span> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.product_name)) + "</div></div> " + (_vm.record.image && _vm.record.image.length ? "<div class=\"content\" data-v-04045eec>" + _vm._ssrList(_vm.record.image, function (img) {
    return "<img" + _vm._ssrAttr("src", img) + " alt=\"product_image\" data-v-04045eec>";
  }) + "</div>" : "<!---->") + " <div class=\"content product-info\" data-v-04045eec><div class=\"flex start\" data-v-04045eec><div data-v-04045eec>尺寸:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.product_size)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>材质:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.product_material)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>颜色:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.color)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>印刷:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.print)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>MOQ:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.moq)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>包装:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.packaging)) + "</div></div> <div class=\"flex start\" data-v-04045eec><div data-v-04045eec>货期:</div> <div data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.cycle)) + "</div></div></div> <div class=\"p-title\" data-v-04045eec>澳洲当地对手情况</div> <div class=\"content\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.competitor)) + "</div> " + (_vm.record.competitor_url ? "<div class=\"content\" data-v-04045eec><a target=\"_blank\"" + _vm._ssrAttr("href", _vm.record.competitor_url) + " class=\"content-link\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.competitor_url)) + "</a></div>" : "<!---->") + " " + (_vm.record.competitor_image && _vm.record.competitor_image.length ? "<div class=\"content\" data-v-04045eec>" + _vm._ssrList(_vm.record.competitor_image, function (img) {
    return "<img" + _vm._ssrAttr("src", img) + " alt=\"product_image\" data-v-04045eec>";
  }) + "</div>" : "<!---->") + " <div class=\"p-title\" data-v-04045eec>售价</div> <div class=\"content\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.express_freight)) + "</div> " + (_vm.record.express_image && _vm.record.express_image.length ? "<div class=\"content\" data-v-04045eec>" + _vm._ssrList(_vm.record.express_image, function (img) {
    return "<img" + _vm._ssrAttr("src", img) + " alt=\"product_image\" data-v-04045eec>";
  }) + "</div>" : "<!---->") + " <br data-v-04045eec> <br data-v-04045eec> <div class=\"content\" data-v-04045eec>" + _vm._ssrEscape(_vm._s(_vm.record.bag_freight)) + "</div> " + (_vm.record.bag_image && _vm.record.bag_image.length ? "<div class=\"content\" data-v-04045eec>" + _vm._ssrList(_vm.record.bag_image, function (img) {
    return "<img" + _vm._ssrAttr("src", img) + " alt=\"product_image\" data-v-04045eec>";
  }) + "</div>" : "<!---->"))]);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./pages/product-record/_code.vue?vue&type=template&id=04045eec&scoped=true

// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(5);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/product-record/_code.vue?vue&type=script&lang=js

/* harmony default export */ var _codevue_type_script_lang_js = ({
  name: 'ProductRecord',
  data() {
    return {
      record: {}
    };
  },
  computed: {
    ...Object(external_vuex_["mapState"])(['dialogVisible']),
    userInfo() {
      return this.$store.state.userInfo || {};
    },
    isLogin() {
      return !!this.userInfo.email;
    },
    isPromocollection() {
      return /\@promocollection.com.au/.test(this.userInfo.email);
    }
  },
  watch: {
    userInfo() {
      if (this.isLogin) {
        this.check();
      }
    }
  },
  mounted() {
    if (this.isLogin) {
      this.check();
    } else {
      setTimeout(() => {
        this.openDialog();
      }, 500);
    }
  },
  methods: {
    ...Object(external_vuex_["mapMutations"])(['openDialog']),
    check() {
      if (this.isPromocollection) {
        this.getData();
      } else {
        // Nuxt.js 2.x 版本中，this.$router.redirect 方法已经被废弃
        this.$router.replace('/');
      }
    },
    async getData() {
      const query = this.$route.query;
      let url = '/au/goods/record?product_code=' + this.$route.params.code;
      if (query.version && query.version.length) {
        url += `&version=${query.version}`;
      }
      const res = await this.$axios.get(url);
      this.record = res.result || {};
    }
  }
});
// CONCATENATED MODULE: ./pages/product-record/_code.vue?vue&type=script&lang=js
 /* harmony default export */ var product_record_codevue_type_script_lang_js = (_codevue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./pages/product-record/_code.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(376)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  product_record_codevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "04045eec",
  "8811c2dc"
  
)

/* harmony default export */ var _code = __webpack_exports__["default"] = (component.exports);

/***/ })

};;
//# sourceMappingURL=_code.js.map