Commit 703d757b by 施宇

h5zyly

parent 73aeebc1
......@@ -93,6 +93,7 @@ const actions = {
}
}).catch(function (err) {
toast.clear();
Toast(err)
});
},
}
......
......@@ -3,7 +3,7 @@
<div class="block oneDataGoods" v-for="(itemchild,indexdata) in dataList">
<dl class="mui-row img-box">
<a
:href="isZy?('https://m.ichunt.com/item/'+itemchild.goods_id+'.html?ptag=selfshop'):('https://m.ichunt.com/goods_'+itemchild.goods_id+'.html?ptag=lxshop')"
:href="isZy?(hostName+'/item/'+itemchild.goods_id+'.html?ptag=selfshop'):(hostName+'/goods_'+itemchild.goods_id+'.html?ptag=lxshop')"
>
<dt v-lazy-container="{selector:'img'}">
<img
......@@ -132,6 +132,7 @@ export default {
},
data() {
return {
hostName:window.location.origin,
limitLength: 3,
defaultBtn: '更多梯度价格<i class="icon-bot"></i>'
};
......
......@@ -3,7 +3,7 @@
<div class="details-head">
<div class="head_top clr">
<div class="head_top_left fl">
<img :src="goodDetail.brand_logo" @error="imgErr" @click="showImagePreview">
<img :src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" @error="imgErr" @click="showImagePreview">
</div>
<div class="head_top_right">
<h4>
......@@ -87,13 +87,13 @@
<span v-html="v.purchases+'+'"></span>
</td>
<td class="xs-3">
<span v-html="v.price_cn+'¥'"></span>
<span v-html="'¥'+v.price_cn"></span>
</td>
<td class="xs-3">
<span v-html="v.price_ac+'¥'"></span>
<span v-html="'¥'+v.price_ac"></span>
</td>
<td class="xs-3">
<span v-html="v.price_us+'$'"></span>
<span v-html="'$'+v.price_us"></span>
</td>
</template>
<template v-else>
......@@ -101,10 +101,10 @@
<span v-html="v.purchases+'+'"></span>
</td>
<td class="xs-4">
<span v-html="v.price_cn+'¥'"></span>
<span v-html="'¥'+v.price_cn"></span>
</td>
<td class="xs-4">
<span v-html="v.price_us+'$'"></span>
<span v-html="'$'+v.price_us"></span>
</td>
</template>
</tr>
......@@ -286,7 +286,7 @@ export default {
},
methods: {
showImagePreview(position, timer) {
let images = [this.goodDetail.brand_logo];
let images = [this.goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'];
const instance = ImagePreview({
images,
asyncClose: !!timer,
......
......@@ -3,7 +3,7 @@
<div class="details-head">
<div class="head_top clr">
<div class="head_top_left fl">
<img :src="goodDetail.brand_logo" @onerror="imgErr" @click="showImagePreview">
<img :src="goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" @onerror="imgErr" @click="showImagePreview">
</div>
<div class="head_top_right">
<h4>
......@@ -96,18 +96,18 @@
<span v-html="v.purchases+'+'"></span>
</td>
<td class="xs-3">
<span v-html="v.price_cn+'¥'"></span>
<span v-html="'¥'+v.price_cn"></span>
</td>
<td class="xs-3">
<span v-html="v.price_ac+'¥'"></span>
<span v-html="'¥'+v.price_ac"></span>
</td>
</template>
<template v-else>
<td class="xs-6">
<span v-html="v.purchases+'+'"></span>
<span v-html="'¥'+v.purchases"></span>
</td>
<td class="xs-6">
<span v-html="v.price_cn+'¥'"></span>
<span v-html="'¥'+v.price_cn"></span>
</td>
</template>
</tr>
......@@ -307,7 +307,7 @@ export default {
},
methods: {
showImagePreview(position, timer) {
let images = [this.goodDetail.brand_logo]
let images = [this.goodDetail.brand_logo||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png']
const instance = ImagePreview({
images,
asyncClose: !!timer,
......
......@@ -19,7 +19,7 @@ eval("module.exports = __webpack_require__(/*! core-js/library/fn/json/stringify
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/json/stringify */ \"./node_modules/_@babel_runtime-corejs2@7.4.3@@babel/runtime-corejs2/core-js/json/stringify.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_4__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n goodDetail: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n isShowMore: false,\n singlePriceCn: 0,\n //国内单价\n singlePriceUs: 0,\n //香港单价\n navInit: 0,\n startNum: 0,\n //起订量\n multipleNum: 0,\n //倍数\n aggregateNum: 0,\n //一组的数量\n stockNum: 0,\n //库存,\n zyladderArr: [],\n //阶梯价\n zySingleInit: 0,\n //自营数量初始值\n goodsNum: 0 //商品数量\n\n };\n },\n computed: {\n total: function total() {\n if (this.navInit == 1) {\n //香港\n return \"$\" + (this.goodsNum * this.singlePriceUs).toFixed(4);\n } else {\n //国内\n return \"¥\" + (this.goodsNum * this.singlePriceCn).toFixed(4);\n }\n }\n },\n watch: {\n \"goodDetail.goods_id\": function goodDetailGoods_id() {\n var data = this.goodDetail;\n\n if (E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2___default()(data) != \"{}\") {\n if (this.goodDetail.goods_type == 1 || this.goodDetail.goods_type == 2) {\n if (data.min_buy) {\n this.startNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_buy);\n }\n\n if (data.multiple) {\n this.multipleNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.multiple);\n }\n\n if (data.min_mpq) {\n this.aggregateNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_mpq);\n }\n\n if (data.goods_number) {\n this.stockNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.goods_number);\n }\n\n if (this.startNum == this.multipleNum) {\n //倍数和起订量相等\n this.zySingleInit = this.startNum;\n } else if (this.startNum > this.multipleNum) {\n //起订量大于倍数\n if (this.startNum % this.multipleNum) {\n //起订量跟倍数的比值为小数\n this.zySingleInit = Math.ceil(this.startNum / this.multipleNum) * this.multipleNum;\n } else {\n //起订量跟倍数的比值为整数时取起订量\n this.zySingleInit = this.startNum;\n }\n } else {\n //起订量小于倍数\n this.zySingleInit = this.multipleNum;\n }\n\n if (data.tiered) {\n for (var i = 0; i < data.tiered.length; i++) {\n var singleData = data.tiered[i];\n this.zyladderArr.push({\n pricecn: Number(singleData.price_cn).toFixed(4),\n num: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(singleData.purchases),\n priceus: Number(singleData.price_us).toFixed(4)\n });\n }\n }\n }\n }\n },\n goodsNum: function goodsNum(now) {\n if (String(now).indexOf(\".\") > 0) this.goodsNum = \"\";\n this.goodsNum = String(now).replace(/\\D/g, \"\");\n this.ladderComputer(now);\n\n if (Number(now) > this.stockNum) {\n this.$toast(\"购买数量不能大于库存!\");\n this.goodsNum = this.stockNum;\n }\n },\n zySingleInit: function zySingleInit(now) {\n this.goodsNum = now;\n }\n },\n methods: {\n showImagePreview: function showImagePreview(position, timer) {\n var images = [this.goodDetail.brand_logo];\n var instance = Object(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"])({\n images: images,\n asyncClose: !!timer,\n showIndex: false\n });\n\n if (timer) {\n setTimeout(function () {\n instance.close();\n }, timer);\n }\n },\n imgErr: function imgErr() {\n this.goodDetail.brand_logo = \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\";\n },\n changeNav: function changeNav(i) {\n this.navInit = i;\n },\n ladderComputer: function ladderComputer(v) {\n var length = this.zyladderArr.length; //阶梯价计算价格v\n\n if (!length) {\n //阶梯价的数据为空\n this.singlePriceCn = 0;\n this.singlePriceUs = 0;\n return;\n } else {\n //阶梯价的数据不为空\n if (length == 1) {\n //阶梯价的数据为1\n this.singlePriceCn = this.zyladderArr[0].pricecn;\n this.singlePriceUs = this.zyladderArr[0].priceus;\n return;\n } else {\n //阶梯价的数据不为1\n if (v <= this.zyladderArr[0].num) {\n //输入数量小于等于最小值\n this.singlePriceCn = this.zyladderArr[0].pricecn;\n this.singlePriceUs = this.zyladderArr[0].priceus;\n return;\n } else if (v >= this.zyladderArr[length - 1].num) {\n //输入数量大于等于最大值\n this.singlePriceCn = this.zyladderArr[length - 1].pricecn;\n this.singlePriceUs = this.zyladderArr[length - 1].priceus;\n return;\n } else {\n for (var i = 0; i < this.zyladderArr.length; i++) {\n if (v >= this.zyladderArr[i].num && v < this.zyladderArr[i + 1].num) {\n this.singlePriceCn = this.zyladderArr[i].pricecn;\n this.singlePriceUs = this.zyladderArr[i].priceus;\n break;\n }\n }\n }\n }\n }\n },\n blurSingle: function blurSingle() {\n //购买数量为0\n if (!Number(this.goodsNum)) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.goodsNum = this.zySingleInit;\n } else {\n //购买数量不为0\n if (Number(this.goodsNum) % this.multipleNum) {\n //当购买数量不是倍数的整数倍\n var num = Math.ceil(Number(this.goodsNum) / this.multipleNum) * this.multipleNum;\n\n if (num < this.startNum) {\n //取倍数的整数后小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n } else {\n //取倍数的整数后不小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\uFF0C\\u6211\\u4EEC\\u5DF2\\u4E3A\\u60A8\\u8C03\\u6574\\u8D2D\\u4E70\\u6570\\u91CF\\u3002\"));\n this.goodsNum = num;\n }\n } else {\n if (Number(this.goodsNum) < this.zySingleInit) {\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n }\n }\n }\n },\n reduceSingle: function reduceSingle() {\n if (Number(this.goodsNum) <= this.startNum) {\n //购买数量小于等于起订量\n this.$toast(\"购买数量不能少于起订量!\");\n } else {\n //购买数量大于起订量\n if (Number(this.goodsNum) - this.multipleNum < this.startNum) {\n //购买数量减倍数小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n } else {\n this.goodsNum = Number(this.goodsNum) - this.multipleNum;\n }\n }\n },\n addSingle: function addSingle() {\n this.goodsNum = Number(this.goodsNum) + this.multipleNum;\n },\n xdOrAdd: function xdOrAdd(type) {\n //1购买 2加入购物车\n var datax = {\n id: this.goodDetail.goods_id,\n num: this.goodsNum,\n buy: type == 1 ? 1 : -1,\n delivery_place: this.navInit == 0 ? 1 : 2,\n searchModel: this.$route.query.k || \"\",\n module_name: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n click_ptag: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"ptag\") || \"\"\n };\n\n if (type == 1) {\n //立即购买\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"立即购买\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n } else {\n //加入购物车\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"加入购物车\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n }\n\n this.$store.dispatch({\n type: \"addGoods\",\n data: {\n datax: datax,\n type: 2,\n k: this.$route.query.k || \"\" //1表示自营 2表示联营\n\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/lyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/json/stringify */ \"./node_modules/_@babel_runtime-corejs2@7.4.3@@babel/runtime-corejs2/core-js/json/stringify.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_4__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n goodDetail: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n isShowMore: false,\n singlePriceCn: 0,\n //国内单价\n singlePriceUs: 0,\n //香港单价\n navInit: 0,\n startNum: 0,\n //起订量\n multipleNum: 0,\n //倍数\n aggregateNum: 0,\n //一组的数量\n stockNum: 0,\n //库存,\n zyladderArr: [],\n //阶梯价\n zySingleInit: 0,\n //自营数量初始值\n goodsNum: 0 //商品数量\n\n };\n },\n computed: {\n total: function total() {\n if (this.navInit == 1) {\n //香港\n return \"$\" + (this.goodsNum * this.singlePriceUs).toFixed(4);\n } else {\n //国内\n return \"¥\" + (this.goodsNum * this.singlePriceCn).toFixed(4);\n }\n }\n },\n watch: {\n \"goodDetail.goods_id\": function goodDetailGoods_id() {\n var data = this.goodDetail;\n\n if (E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_2___default()(data) != \"{}\") {\n if (this.goodDetail.goods_type == 1 || this.goodDetail.goods_type == 2) {\n if (data.min_buy) {\n this.startNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_buy);\n }\n\n if (data.multiple) {\n this.multipleNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.multiple);\n }\n\n if (data.min_mpq) {\n this.aggregateNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_mpq);\n }\n\n if (data.goods_number) {\n this.stockNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.goods_number);\n }\n\n if (this.startNum == this.multipleNum) {\n //倍数和起订量相等\n this.zySingleInit = this.startNum;\n } else if (this.startNum > this.multipleNum) {\n //起订量大于倍数\n if (this.startNum % this.multipleNum) {\n //起订量跟倍数的比值为小数\n this.zySingleInit = Math.ceil(this.startNum / this.multipleNum) * this.multipleNum;\n } else {\n //起订量跟倍数的比值为整数时取起订量\n this.zySingleInit = this.startNum;\n }\n } else {\n //起订量小于倍数\n this.zySingleInit = this.multipleNum;\n }\n\n if (data.tiered) {\n for (var i = 0; i < data.tiered.length; i++) {\n var singleData = data.tiered[i];\n this.zyladderArr.push({\n pricecn: Number(singleData.price_cn).toFixed(4),\n num: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(singleData.purchases),\n priceus: Number(singleData.price_us).toFixed(4)\n });\n }\n }\n }\n }\n },\n goodsNum: function goodsNum(now) {\n if (String(now).indexOf(\".\") > 0) this.goodsNum = \"\";\n this.goodsNum = String(now).replace(/\\D/g, \"\");\n this.ladderComputer(now);\n\n if (Number(now) > this.stockNum) {\n this.$toast(\"购买数量不能大于库存!\");\n this.goodsNum = this.stockNum;\n }\n },\n zySingleInit: function zySingleInit(now) {\n this.goodsNum = now;\n }\n },\n methods: {\n showImagePreview: function showImagePreview(position, timer) {\n var images = [this.goodDetail.brand_logo || 'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'];\n var instance = Object(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"])({\n images: images,\n asyncClose: !!timer,\n showIndex: false\n });\n\n if (timer) {\n setTimeout(function () {\n instance.close();\n }, timer);\n }\n },\n imgErr: function imgErr() {\n this.goodDetail.brand_logo = \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\";\n },\n changeNav: function changeNav(i) {\n this.navInit = i;\n },\n ladderComputer: function ladderComputer(v) {\n var length = this.zyladderArr.length; //阶梯价计算价格v\n\n if (!length) {\n //阶梯价的数据为空\n this.singlePriceCn = 0;\n this.singlePriceUs = 0;\n return;\n } else {\n //阶梯价的数据不为空\n if (length == 1) {\n //阶梯价的数据为1\n this.singlePriceCn = this.zyladderArr[0].pricecn;\n this.singlePriceUs = this.zyladderArr[0].priceus;\n return;\n } else {\n //阶梯价的数据不为1\n if (v <= this.zyladderArr[0].num) {\n //输入数量小于等于最小值\n this.singlePriceCn = this.zyladderArr[0].pricecn;\n this.singlePriceUs = this.zyladderArr[0].priceus;\n return;\n } else if (v >= this.zyladderArr[length - 1].num) {\n //输入数量大于等于最大值\n this.singlePriceCn = this.zyladderArr[length - 1].pricecn;\n this.singlePriceUs = this.zyladderArr[length - 1].priceus;\n return;\n } else {\n for (var i = 0; i < this.zyladderArr.length; i++) {\n if (v >= this.zyladderArr[i].num && v < this.zyladderArr[i + 1].num) {\n this.singlePriceCn = this.zyladderArr[i].pricecn;\n this.singlePriceUs = this.zyladderArr[i].priceus;\n break;\n }\n }\n }\n }\n }\n },\n blurSingle: function blurSingle() {\n //购买数量为0\n if (!Number(this.goodsNum)) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.goodsNum = this.zySingleInit;\n } else {\n //购买数量不为0\n if (Number(this.goodsNum) % this.multipleNum) {\n //当购买数量不是倍数的整数倍\n var num = Math.ceil(Number(this.goodsNum) / this.multipleNum) * this.multipleNum;\n\n if (num < this.startNum) {\n //取倍数的整数后小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n } else {\n //取倍数的整数后不小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\uFF0C\\u6211\\u4EEC\\u5DF2\\u4E3A\\u60A8\\u8C03\\u6574\\u8D2D\\u4E70\\u6570\\u91CF\\u3002\"));\n this.goodsNum = num;\n }\n } else {\n if (Number(this.goodsNum) < this.zySingleInit) {\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n }\n }\n }\n },\n reduceSingle: function reduceSingle() {\n if (Number(this.goodsNum) <= this.startNum) {\n //购买数量小于等于起订量\n this.$toast(\"购买数量不能少于起订量!\");\n } else {\n //购买数量大于起订量\n if (Number(this.goodsNum) - this.multipleNum < this.startNum) {\n //购买数量减倍数小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n } else {\n this.goodsNum = Number(this.goodsNum) - this.multipleNum;\n }\n }\n },\n addSingle: function addSingle() {\n this.goodsNum = Number(this.goodsNum) + this.multipleNum;\n },\n xdOrAdd: function xdOrAdd(type) {\n //1购买 2加入购物车\n var datax = {\n id: this.goodDetail.goods_id,\n num: this.goodsNum,\n buy: type == 1 ? 1 : -1,\n delivery_place: this.navInit == 0 ? 1 : 2,\n searchModel: this.$route.query.k || \"\",\n module_name: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n click_ptag: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"ptag\") || \"\"\n };\n\n if (type == 1) {\n //立即购买\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"立即购买\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n } else {\n //加入购物车\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"加入购物车\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n }\n\n this.$store.dispatch({\n type: \"addGoods\",\n data: {\n datax: datax,\n type: 2,\n k: this.$route.query.k || \"\" //1表示自营 2表示联营\n\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/lyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......@@ -31,7 +31,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"zl_Detail\" }, [\n _c(\"div\", { staticClass: \"details-head\" }, [\n _c(\"div\", { staticClass: \"head_top clr\" }, [\n _c(\"div\", { staticClass: \"head_top_left fl\" }, [\n _c(\"img\", {\n attrs: { src: _vm.goodDetail.brand_logo },\n on: { error: _vm.imgErr, click: _vm.showImagePreview }\n })\n ]),\n _c(\"div\", { staticClass: \"head_top_right\" }, [\n _c(\"h4\", [_c(\"strong\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])]),\n _c(\"p\", { staticClass: \"icon-hint\" })\n ])\n ]),\n _c(\"ul\", { staticClass: \"head_bottom clr\" }, [\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"型号\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"供应商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.supplier_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"制造商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.brand_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"封装\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.goodDetail.encap ? _vm.goodDetail.encap : \"--\"))\n ])\n ]),\n _vm.goodDetail.product_batch !== \"\"\n ? _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"批次\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.product_batch\n ? _vm.goodDetail.product_batch\n : \"--\"\n )\n )\n ])\n ])\n : _vm._e(),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"起订量\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_buy ? _vm.goodDetail.min_buy : \"1\"\n )\n }\n })\n ],\n 1\n ),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"倍数\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.multiple ? _vm.goodDetail.multiple : \"1\"\n )\n }\n })\n ],\n 1\n ),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"MPQ\")]),\n _c(\"span\", {\n staticClass: \"minMpqP\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_mpq ? _vm.goodDetail.min_mpq : \"1\"\n )\n }\n })\n ]),\n _vm.goodDetail.tariffRate !== \"\"\n ? _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"额外关税\")]),\n _c(\"span\", { staticClass: \"f-orange\" }, [\n _vm._v(\"'\" + _vm._s(_vm.goodDetail.tariffRate))\n ])\n ])\n : _vm._e(),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", {}, [_vm._v(\"库存\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.goods_number\n ? _vm.goodDetail.goods_number\n : \"0\"\n )\n }\n })\n ],\n 1\n ),\n _vm.goodDetail.sku_name\n ? _c(\n \"li\",\n {\n staticClass: \"fl\",\n staticStyle: {\n width: \"100%\",\n overflow: \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\",\n color: \"#999\"\n }\n },\n [_vm._v(\"描述:\" + _vm._s(_vm.goodDetail.goods_desc))]\n )\n : _vm._e()\n ])\n ]),\n _c(\"div\", { staticClass: \"details-cont\", staticStyle: { top: \"210px\" } }, [\n _c(\n \"div\",\n { staticClass: \"gradient\" },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 2 || _vm.goodDetail.ac_type == 3\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"优惠价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"美金\")])\n ]\n : [\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"人民币\")]),\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"美金\")])\n ]\n ],\n 2\n )\n ]),\n _c(\n \"tbody\",\n [\n _vm.goodDetail.tiered\n ? _vm._l(_vm.goodDetail.tiered, function(v, k) {\n return k < 3 || _vm.isShowMore\n ? _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 2 ||\n _vm.goodDetail.ac_type == 3\n ? [\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_cn + \"¥\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_ac + \"¥\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_us + \"$\")\n }\n })\n ])\n ]\n : [\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_cn + \"¥\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_us + \"$\")\n }\n })\n ])\n ]\n ],\n 2\n )\n : _vm._e()\n })\n : _vm._e()\n ],\n 2\n )\n ]),\n _vm.goodDetail.tiered\n ? [\n _vm.goodDetail.tiered.length > 3 && !_vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e(),\n _vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 收起梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-top\" })\n ]\n )\n : _vm._e()\n ]\n : _vm._e()\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"price\" }, [\n _c(\"dl\", { staticClass: \"clr\" }, [\n _c(\"dt\", [_vm._v(\"交货地\")]),\n _c(\"dd\", { staticClass: \"tab\" }, [\n _c(\n \"span\",\n {\n class: { \"act-blue\": _vm.navInit == 0 },\n on: {\n click: function($event) {\n return _vm.changeNav(0)\n }\n }\n },\n [_vm._v(\"国内交货\")]\n ),\n _c(\n \"span\",\n {\n class: { \"act-blue\": _vm.navInit == 1 },\n on: {\n click: function($event) {\n return _vm.changeNav(1)\n }\n }\n },\n [_vm._v(\"香港交货\")]\n )\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(0),\n _c(\"dd\", [\n _vm.navInit == 0\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.delivery_time &&\n _vm.goodDetail.delivery_time[1]\n )\n )\n ])\n : _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.delivery_time &&\n _vm.goodDetail.delivery_time[2]\n )\n )\n ])\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(1),\n _c(\"dd\", { staticClass: \"details-num\" }, [\n _c(\"div\", { staticClass: \"number\" }, [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceSingle }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.goodsNum,\n expression: \"goodsNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.goodsNum },\n on: {\n blur: [\n _vm.blurSingle,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.goodsNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addSingle }\n })\n ])\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(2),\n _vm.navInit == 0\n ? _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.singlePriceCn))\n ])\n : _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"$\" + _vm._s(_vm.singlePriceUs))\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(3),\n _c(\"dd\", { staticClass: \"totalPrice\" }, [_vm._v(_vm._s(_vm.total))])\n ])\n ])\n ]),\n _c(\"div\", { staticClass: \"details-foot\" }, [\n _c(\n \"span\",\n {\n staticClass: \"but-blue\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"1\")\n }\n }\n },\n [_vm._v(\"立即购买\")]\n ),\n _c(\n \"span\",\n {\n staticClass: \"but-red\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"2\")\n }\n }\n },\n [_vm._v(\"加入购物车\")]\n )\n ])\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 货\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"\\n 期\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 数\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"量\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 单\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"价\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 合\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"计\\n \")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/lyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"zl_Detail\" }, [\n _c(\"div\", { staticClass: \"details-head\" }, [\n _c(\"div\", { staticClass: \"head_top clr\" }, [\n _c(\"div\", { staticClass: \"head_top_left fl\" }, [\n _c(\"img\", {\n attrs: {\n src:\n _vm.goodDetail.brand_logo ||\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n },\n on: { error: _vm.imgErr, click: _vm.showImagePreview }\n })\n ]),\n _c(\"div\", { staticClass: \"head_top_right\" }, [\n _c(\"h4\", [_c(\"strong\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])]),\n _c(\"p\", { staticClass: \"icon-hint\" })\n ])\n ]),\n _c(\"ul\", { staticClass: \"head_bottom clr\" }, [\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"型号\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"供应商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.supplier_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"制造商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.brand_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"封装\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.goodDetail.encap ? _vm.goodDetail.encap : \"--\"))\n ])\n ]),\n _vm.goodDetail.product_batch !== \"\"\n ? _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"批次\")]),\n _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.product_batch\n ? _vm.goodDetail.product_batch\n : \"--\"\n )\n )\n ])\n ])\n : _vm._e(),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"起订量\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_buy ? _vm.goodDetail.min_buy : \"1\"\n )\n }\n })\n ],\n 1\n ),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"倍数\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.multiple ? _vm.goodDetail.multiple : \"1\"\n )\n }\n })\n ],\n 1\n ),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"MPQ\")]),\n _c(\"span\", {\n staticClass: \"minMpqP\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_mpq ? _vm.goodDetail.min_mpq : \"1\"\n )\n }\n })\n ]),\n _vm.goodDetail.tariffRate !== \"\"\n ? _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"额外关税\")]),\n _c(\"span\", { staticClass: \"f-orange\" }, [\n _vm._v(\"'\" + _vm._s(_vm.goodDetail.tariffRate))\n ])\n ])\n : _vm._e(),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", {}, [_vm._v(\"库存\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.goods_number\n ? _vm.goodDetail.goods_number\n : \"0\"\n )\n }\n })\n ],\n 1\n ),\n _vm.goodDetail.sku_name\n ? _c(\n \"li\",\n {\n staticClass: \"fl\",\n staticStyle: {\n width: \"100%\",\n overflow: \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\",\n color: \"#999\"\n }\n },\n [_vm._v(\"描述:\" + _vm._s(_vm.goodDetail.goods_desc))]\n )\n : _vm._e()\n ])\n ]),\n _c(\"div\", { staticClass: \"details-cont\", staticStyle: { top: \"210px\" } }, [\n _c(\n \"div\",\n { staticClass: \"gradient\" },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 2 || _vm.goodDetail.ac_type == 3\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"优惠价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"美金\")])\n ]\n : [\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"人民币\")]),\n _c(\"th\", { staticClass: \"xs-4\" }, [_vm._v(\"美金\")])\n ]\n ],\n 2\n )\n ]),\n _c(\n \"tbody\",\n [\n _vm.goodDetail.tiered\n ? _vm._l(_vm.goodDetail.tiered, function(v, k) {\n return k < 3 || _vm.isShowMore\n ? _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 2 ||\n _vm.goodDetail.ac_type == 3\n ? [\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_cn)\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_ac)\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"$\" + v.price_us)\n }\n })\n ])\n ]\n : [\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_cn)\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-4\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"$\" + v.price_us)\n }\n })\n ])\n ]\n ],\n 2\n )\n : _vm._e()\n })\n : _vm._e()\n ],\n 2\n )\n ]),\n _vm.goodDetail.tiered\n ? [\n _vm.goodDetail.tiered.length > 3 && !_vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e(),\n _vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 收起梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-top\" })\n ]\n )\n : _vm._e()\n ]\n : _vm._e()\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"price\" }, [\n _c(\"dl\", { staticClass: \"clr\" }, [\n _c(\"dt\", [_vm._v(\"交货地\")]),\n _c(\"dd\", { staticClass: \"tab\" }, [\n _c(\n \"span\",\n {\n class: { \"act-blue\": _vm.navInit == 0 },\n on: {\n click: function($event) {\n return _vm.changeNav(0)\n }\n }\n },\n [_vm._v(\"国内交货\")]\n ),\n _c(\n \"span\",\n {\n class: { \"act-blue\": _vm.navInit == 1 },\n on: {\n click: function($event) {\n return _vm.changeNav(1)\n }\n }\n },\n [_vm._v(\"香港交货\")]\n )\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(0),\n _c(\"dd\", [\n _vm.navInit == 0\n ? _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.delivery_time &&\n _vm.goodDetail.delivery_time[1]\n )\n )\n ])\n : _c(\"span\", [\n _vm._v(\n _vm._s(\n _vm.goodDetail.delivery_time &&\n _vm.goodDetail.delivery_time[2]\n )\n )\n ])\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(1),\n _c(\"dd\", { staticClass: \"details-num\" }, [\n _c(\"div\", { staticClass: \"number\" }, [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceSingle }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.goodsNum,\n expression: \"goodsNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.goodsNum },\n on: {\n blur: [\n _vm.blurSingle,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.goodsNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addSingle }\n })\n ])\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(2),\n _vm.navInit == 0\n ? _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.singlePriceCn))\n ])\n : _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"$\" + _vm._s(_vm.singlePriceUs))\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(3),\n _c(\"dd\", { staticClass: \"totalPrice\" }, [_vm._v(_vm._s(_vm.total))])\n ])\n ])\n ]),\n _c(\"div\", { staticClass: \"details-foot\" }, [\n _c(\n \"span\",\n {\n staticClass: \"but-blue\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"1\")\n }\n }\n },\n [_vm._v(\"立即购买\")]\n ),\n _c(\n \"span\",\n {\n staticClass: \"but-red\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"2\")\n }\n }\n },\n [_vm._v(\"加入购物车\")]\n )\n ])\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 货\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"\\n 期\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 数\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"量\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 单\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"价\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 合\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"计\\n \")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/lyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -19,7 +19,7 @@ eval("module.exports = __webpack_require__(/*! core-js/library/fn/json/stringify
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/json/stringify */ \"./node_modules/_@babel_runtime-corejs2@7.4.3@@babel/runtime-corejs2/core-js/json/stringify.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_4__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n goodDetail: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n images: [],\n isShowMore: false,\n ypNum: 0,\n //组\n singlePrice: 0,\n //单价\n tipText: \"\",\n btnText: \"\",\n navInit: 0,\n startNum: 0,\n //起订量\n multipleNum: 0,\n //倍数\n aggregateNum: 0,\n //一组的数量\n stockNum: 0,\n //库存,\n zyladderArr: [],\n //阶梯价\n zySingleInit: 0,\n //自营数量初始值\n goodsNum: 0 //商品数量\n\n };\n },\n computed: {\n total: function total() {\n return (this.goodsNum * this.singlePrice).toFixed(4);\n }\n },\n watch: {\n ypNum: function ypNum(now) {\n if (String(now).indexOf(\".\") > 0) this.ypNum = \"\";\n this.ypNum = String(now).replace(/\\D/g, \"\");\n this.goodsNum = now * this.aggregateNum;\n },\n \"goodDetail.goods_id\": function goodDetailGoods_id() {\n var data = this.goodDetail;\n\n if (E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(data) != \"{}\") {\n if (this.goodDetail.goods_type == 3 || this.goodDetail.goods_type == 4) {\n if (data.min_buy) {\n this.startNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_buy);\n }\n\n if (data.mpl) {\n this.multipleNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.mpl);\n }\n\n if (data.min_mpq) {\n this.aggregateNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_mpq);\n }\n\n if (data.goods_number) {\n this.stockNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.goods_number);\n }\n\n if (this.startNum == this.multipleNum) {\n //倍数和起订量相等\n this.zySingleInit = this.startNum;\n } else if (this.startNum > this.multipleNum) {\n //起订量大于倍数\n if (this.startNum % this.multipleNum) {\n //起订量跟倍数的比值为小数\n this.zySingleInit = Math.ceil(this.startNum / this.multipleNum) * this.multipleNum;\n } else {\n //起订量跟倍数的比值为整数时取起订量\n this.zySingleInit = this.startNum;\n }\n } else {\n //起订量小于倍数\n this.zySingleInit = this.multipleNum;\n }\n\n if (data.tiered) {\n for (var i = 0; i < data.tiered.length; i++) {\n var singleData = data.tiered[i];\n this.zyladderArr.push({\n price: Number(singleData.price_cn).toFixed(4),\n num: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(singleData.purchases)\n });\n }\n }\n }\n }\n },\n goodsNum: function goodsNum(now) {\n if (String(now).indexOf(\".\") > 0) this.goodsNum = \"\";\n this.goodsNum = String(now).replace(/\\D/g, \"\");\n this.ladderComputer(now);\n\n if (Number(now) > this.stockNum) {\n this.tipText = \"库存不足,下单后我们将帮您订货\";\n this.btnText = \"预售订货\";\n } else {\n this.tipText = \"想要购买更多?直接下单,我们帮您订货\";\n this.btnText = \"立即购买\";\n }\n },\n zySingleInit: function zySingleInit(now) {\n this.goodsNum = now;\n }\n },\n methods: {\n showImagePreview: function showImagePreview(position, timer) {\n var images = [this.goodDetail.brand_logo];\n var instance = Object(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"])({\n images: images,\n asyncClose: !!timer,\n showIndex: false\n });\n\n if (timer) {\n setTimeout(function () {\n instance.close();\n }, timer);\n }\n },\n imgErr: function imgErr() {\n this.goodDetail.brand_logo = \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\";\n },\n changeNav: function changeNav(i) {\n this.navInit = i;\n\n if (i == 1) {\n if (this.goodsNum % this.aggregateNum) {\n //如果商品数量除以组数不为整数\n this.ypNum = Math.ceil(this.goodsNum / this.aggregateNum);\n } else {\n //如果商品数量除以组数为整数\n this.ypNum = Number(this.goodsNum) / this.aggregateNum;\n }\n }\n },\n ladderComputer: function ladderComputer(v) {\n //阶梯价计算价格v\n var length = this.zyladderArr.length;\n\n if (!length) {\n //阶梯价的数据为空\n this.singlePrice = 0;\n return;\n } else {\n //阶梯价的数据不为空\n if (length == 1) {\n //阶梯价的数据为1\n this.singlePrice = this.zyladderArr[0].price;\n return;\n } else {\n //阶梯价的数据不为1\n if (v <= this.zyladderArr[0].num) {\n //输入数量小于等于最小值\n this.singlePrice = this.zyladderArr[0].price;\n return;\n } else if (v >= this.zyladderArr[length - 1].num) {\n //输入数量大于等于最大值\n this.singlePrice = this.zyladderArr[length - 1].price;\n return;\n } else {\n for (var i = 0; i < this.zyladderArr.length; i++) {\n if (v >= this.zyladderArr[i].num && v < this.zyladderArr[i + 1].num) {\n this.singlePrice = this.zyladderArr[i].price;\n break;\n }\n }\n }\n }\n }\n },\n blurSingle: function blurSingle() {\n //购买数量为0\n if (!Number(this.goodsNum)) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.goodsNum = this.zySingleInit;\n } else {\n //购买数量不为0\n if (Number(this.goodsNum) % this.multipleNum) {\n //当购买数量不是倍数的整数倍\n var num = Math.ceil(Number(this.goodsNum) / this.multipleNum) * this.multipleNum;\n\n if (num < this.startNum) {\n //取倍数的整数后小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n } else {\n //取倍数的整数后不小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\uFF0C\\u6211\\u4EEC\\u5DF2\\u4E3A\\u60A8\\u8C03\\u6574\\u8D2D\\u4E70\\u6570\\u91CF\\u3002\"));\n this.goodsNum = num;\n }\n } else {\n if (Number(this.goodsNum) < this.zySingleInit) {\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n }\n }\n }\n },\n blurZu: function blurZu() {\n if (Number(this.goodsNum) * Number(this.aggregateNum) < this.startNum) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.ypNum = Math.ceil(this.startNum / this.aggregateNum);\n }\n },\n reduceSingle: function reduceSingle() {\n if (Number(this.goodsNum) <= this.startNum) {\n //购买数量小于等于起订量\n this.$toast(\"购买数量不能少于起订量!\");\n } else {\n //购买数量大于起订量\n if (Number(this.goodsNum) - this.multipleNum < this.startNum) {\n //购买数量减倍数小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n } else {\n this.goodsNum = Number(this.goodsNum) - this.multipleNum;\n }\n }\n },\n addSingle: function addSingle() {\n this.goodsNum = Number(this.goodsNum) + this.multipleNum;\n },\n reduceZu: function reduceZu() {\n if (Number(this.goodsNum) <= this.startNum) {\n return;\n } else {\n this.ypNum = Number(this.ypNum) - 1;\n }\n },\n addZu: function addZu() {\n this.ypNum = Number(this.ypNum) + 1;\n },\n xdOrAdd: function xdOrAdd(type) {\n var datax = {\n id: this.goodDetail.goods_id,\n num: this.goodsNum,\n buy: type == 1 ? 1 : -1,\n searchModel: this.$route.query.k || \"\",\n module_name: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n click_ptag: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"ptag\") || \"\"\n };\n\n if (type == 1) {\n //立即购买\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"立即购买\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n } else {\n //加入购物车\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"加入购物车\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n }\n\n this.$store.dispatch({\n type: \"addGoods\",\n data: {\n datax: datax,\n type: 1,\n k: this.$route.query.k || \"\" //1表示自营 2表示联营\n\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/zyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/core-js/json/stringify */ \"./node_modules/_@babel_runtime-corejs2@7.4.3@@babel/runtime-corejs2/core-js/json/stringify.js\");\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.5@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_4__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n goodDetail: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n images: [],\n isShowMore: false,\n ypNum: 0,\n //组\n singlePrice: 0,\n //单价\n tipText: \"\",\n btnText: \"\",\n navInit: 0,\n startNum: 0,\n //起订量\n multipleNum: 0,\n //倍数\n aggregateNum: 0,\n //一组的数量\n stockNum: 0,\n //库存,\n zyladderArr: [],\n //阶梯价\n zySingleInit: 0,\n //自营数量初始值\n goodsNum: 0 //商品数量\n\n };\n },\n computed: {\n total: function total() {\n return (this.goodsNum * this.singlePrice).toFixed(4);\n }\n },\n watch: {\n ypNum: function ypNum(now) {\n if (String(now).indexOf(\".\") > 0) this.ypNum = \"\";\n this.ypNum = String(now).replace(/\\D/g, \"\");\n this.goodsNum = now * this.aggregateNum;\n },\n \"goodDetail.goods_id\": function goodDetailGoods_id() {\n var data = this.goodDetail;\n\n if (E_h5_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(data) != \"{}\") {\n if (this.goodDetail.goods_type == 3 || this.goodDetail.goods_type == 4) {\n if (data.min_buy) {\n this.startNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_buy);\n }\n\n if (data.mpl) {\n this.multipleNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.mpl);\n }\n\n if (data.min_mpq) {\n this.aggregateNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.min_mpq);\n }\n\n if (data.goods_number) {\n this.stockNum = _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(data.goods_number);\n }\n\n if (this.startNum == this.multipleNum) {\n //倍数和起订量相等\n this.zySingleInit = this.startNum;\n } else if (this.startNum > this.multipleNum) {\n //起订量大于倍数\n if (this.startNum % this.multipleNum) {\n //起订量跟倍数的比值为小数\n this.zySingleInit = Math.ceil(this.startNum / this.multipleNum) * this.multipleNum;\n } else {\n //起订量跟倍数的比值为整数时取起订量\n this.zySingleInit = this.startNum;\n }\n } else {\n //起订量小于倍数\n this.zySingleInit = this.multipleNum;\n }\n\n if (data.tiered) {\n for (var i = 0; i < data.tiered.length; i++) {\n var singleData = data.tiered[i];\n this.zyladderArr.push({\n price: Number(singleData.price_cn).toFixed(4),\n num: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].aggxde(singleData.purchases)\n });\n }\n }\n }\n }\n },\n goodsNum: function goodsNum(now) {\n if (String(now).indexOf(\".\") > 0) this.goodsNum = \"\";\n this.goodsNum = String(now).replace(/\\D/g, \"\");\n this.ladderComputer(now);\n\n if (Number(now) > this.stockNum) {\n this.tipText = \"库存不足,下单后我们将帮您订货\";\n this.btnText = \"预售订货\";\n } else {\n this.tipText = \"想要购买更多?直接下单,我们帮您订货\";\n this.btnText = \"立即购买\";\n }\n },\n zySingleInit: function zySingleInit(now) {\n this.goodsNum = now;\n }\n },\n methods: {\n showImagePreview: function showImagePreview(position, timer) {\n var images = [this.goodDetail.brand_logo || 'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'];\n var instance = Object(vant__WEBPACK_IMPORTED_MODULE_5__[\"ImagePreview\"])({\n images: images,\n asyncClose: !!timer,\n showIndex: false\n });\n\n if (timer) {\n setTimeout(function () {\n instance.close();\n }, timer);\n }\n },\n imgErr: function imgErr() {\n this.goodDetail.brand_logo = \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\";\n },\n changeNav: function changeNav(i) {\n this.navInit = i;\n\n if (i == 1) {\n if (this.goodsNum % this.aggregateNum) {\n //如果商品数量除以组数不为整数\n this.ypNum = Math.ceil(this.goodsNum / this.aggregateNum);\n } else {\n //如果商品数量除以组数为整数\n this.ypNum = Number(this.goodsNum) / this.aggregateNum;\n }\n }\n },\n ladderComputer: function ladderComputer(v) {\n //阶梯价计算价格v\n var length = this.zyladderArr.length;\n\n if (!length) {\n //阶梯价的数据为空\n this.singlePrice = 0;\n return;\n } else {\n //阶梯价的数据不为空\n if (length == 1) {\n //阶梯价的数据为1\n this.singlePrice = this.zyladderArr[0].price;\n return;\n } else {\n //阶梯价的数据不为1\n if (v <= this.zyladderArr[0].num) {\n //输入数量小于等于最小值\n this.singlePrice = this.zyladderArr[0].price;\n return;\n } else if (v >= this.zyladderArr[length - 1].num) {\n //输入数量大于等于最大值\n this.singlePrice = this.zyladderArr[length - 1].price;\n return;\n } else {\n for (var i = 0; i < this.zyladderArr.length; i++) {\n if (v >= this.zyladderArr[i].num && v < this.zyladderArr[i + 1].num) {\n this.singlePrice = this.zyladderArr[i].price;\n break;\n }\n }\n }\n }\n }\n },\n blurSingle: function blurSingle() {\n //购买数量为0\n if (!Number(this.goodsNum)) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.goodsNum = this.zySingleInit;\n } else {\n //购买数量不为0\n if (Number(this.goodsNum) % this.multipleNum) {\n //当购买数量不是倍数的整数倍\n var num = Math.ceil(Number(this.goodsNum) / this.multipleNum) * this.multipleNum;\n\n if (num < this.startNum) {\n //取倍数的整数后小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n } else {\n //取倍数的整数后不小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\uFF0C\\u6211\\u4EEC\\u5DF2\\u4E3A\\u60A8\\u8C03\\u6574\\u8D2D\\u4E70\\u6570\\u91CF\\u3002\"));\n this.goodsNum = num;\n }\n } else {\n if (Number(this.goodsNum) < this.zySingleInit) {\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n this.goodsNum = this.zySingleInit;\n }\n }\n }\n },\n blurZu: function blurZu() {\n if (Number(this.goodsNum) * Number(this.aggregateNum) < this.startNum) {\n this.$toast(\"购买数量不能少于起订量!\");\n this.ypNum = Math.ceil(this.startNum / this.aggregateNum);\n }\n },\n reduceSingle: function reduceSingle() {\n if (Number(this.goodsNum) <= this.startNum) {\n //购买数量小于等于起订量\n this.$toast(\"购买数量不能少于起订量!\");\n } else {\n //购买数量大于起订量\n if (Number(this.goodsNum) - this.multipleNum < this.startNum) {\n //购买数量减倍数小于起订量\n this.$toast(\"\\u8D2D\\u4E70\\u6570\\u91CF\\u5FC5\\u987B\\u4E3A\".concat(this.multipleNum, \"\\u7684\\u6574\\u6570\\u500D\\u4E14\\u4E0D\\u80FD\\u5C11\\u4E8E\\u8D77\\u8BA2\\u91CF\\uFF01\"));\n } else {\n this.goodsNum = Number(this.goodsNum) - this.multipleNum;\n }\n }\n },\n addSingle: function addSingle() {\n this.goodsNum = Number(this.goodsNum) + this.multipleNum;\n },\n reduceZu: function reduceZu() {\n if (Number(this.goodsNum) <= this.startNum) {\n return;\n } else {\n this.ypNum = Number(this.ypNum) - 1;\n }\n },\n addZu: function addZu() {\n this.ypNum = Number(this.ypNum) + 1;\n },\n xdOrAdd: function xdOrAdd(type) {\n var datax = {\n id: this.goodDetail.goods_id,\n num: this.goodsNum,\n buy: type == 1 ? 1 : -1,\n searchModel: this.$route.query.k || \"\",\n module_name: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n click_ptag: _util_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getCookie(\"ptag\") || \"\"\n };\n\n if (type == 1) {\n //立即购买\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"立即购买\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n } else {\n //加入购物车\n try {\n sensors.track(\"brandList\", {\n click_ptag: this.goodDetail.module_name || \"\",\n click_adtag: this.$route.query.adtag || this.$route.query.ptag || \"\",\n element_name: \"加入购物车\",\n click_account: this.goodDetail.account_name || \"\",\n brand_id: this.goodDetail.brand_id || \"\",\n class_id: this.goodDetail.class_id || \"\",\n supplier_id: this.goodDetail.supplier_id || \"\"\n });\n } catch (e) {}\n }\n\n this.$store.dispatch({\n type: \"addGoods\",\n data: {\n datax: datax,\n type: 1,\n k: this.$route.query.k || \"\" //1表示自营 2表示联营\n\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/common/zyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......@@ -31,7 +31,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"zl_Detail\" }, [\n _c(\"div\", { staticClass: \"details-head\" }, [\n _c(\"div\", { staticClass: \"head_top clr\" }, [\n _c(\"div\", { staticClass: \"head_top_left fl\" }, [\n _c(\"img\", {\n attrs: { src: _vm.goodDetail.brand_logo },\n on: { onerror: _vm.imgErr, click: _vm.showImagePreview }\n })\n ]),\n _c(\"div\", { staticClass: \"head_top_right\" }, [\n _c(\"h4\", [_c(\"strong\", [_vm._v(_vm._s(_vm.goodDetail.sku_name))])]),\n _c(\"p\", { staticClass: \"icon-hint\" })\n ])\n ]),\n _c(\"ul\", { staticClass: \"head_bottom clr\" }, [\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"型号\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"供应商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.supplier_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"制造商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.brand_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"封装\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.goodDetail.encap ? _vm.goodDetail.encap : \"--\"))\n ])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"类别\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.class2_name))])\n ]),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"起订量\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_buy ? _vm.goodDetail.min_buy : \"1\"\n )\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"倍数\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(_vm.goodDetail.mpl ? _vm.goodDetail.mpl : \"1\")\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", {\n domProps: { innerHTML: _vm._s(\"一\" + _vm.goodDetail.mpq_unit_name) }\n }),\n _c(\"span\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n (_vm.goodDetail.min_mpq ? _vm.goodDetail.min_mpq : \"0\") +\n _vm.goodDetail.goods_unit_name\n )\n }\n })\n ]),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", {}, [_vm._v(\"库存\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.goods_number\n ? _vm.goodDetail.goods_number\n : \"0\"\n )\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _vm._m(0),\n _vm.goodDetail.sku_name\n ? _c(\n \"li\",\n {\n staticClass: \"fl\",\n staticStyle: {\n width: \"100%\",\n overflow: \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\",\n color: \"#999\"\n }\n },\n [_vm._v(\"描述:\" + _vm._s(_vm.goodDetail.sku_name))]\n )\n : _vm._e()\n ])\n ]),\n _c(\"div\", { staticClass: \"details-cont\", staticStyle: { top: \"210px\" } }, [\n _c(\n \"div\",\n { staticClass: \"gradient\" },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 1\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"抢购价(含税)\")\n ])\n ]\n : _vm._e(),\n _vm.goodDetail.ac_type == 2 || _vm.goodDetail.ac_type == 3\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"优惠价(含税)\")\n ])\n ]\n : [\n _c(\"th\", { staticClass: \"xs-6\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-6\" }, [_vm._v(\"人民币\")])\n ]\n ],\n 2\n )\n ]),\n _c(\n \"tbody\",\n [\n _vm.goodDetail.tiered\n ? _vm._l(_vm.goodDetail.tiered, function(v, k) {\n return k < 3 || _vm.isShowMore\n ? _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 1 ||\n _vm.goodDetail.ac_type == 2 ||\n _vm.goodDetail.ac_type == 3\n ? [\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_cn + \"¥\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_ac + \"¥\")\n }\n })\n ])\n ]\n : [\n _c(\"td\", { staticClass: \"xs-6\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-6\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.price_cn + \"¥\")\n }\n })\n ])\n ]\n ],\n 2\n )\n : _vm._e()\n })\n : _vm._e()\n ],\n 2\n )\n ]),\n _vm.goodDetail.tiered\n ? [\n _vm.goodDetail.tiered.length > 3 && !_vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e(),\n _vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 收起梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-top\" })\n ]\n )\n : _vm._e()\n ]\n : _vm._e()\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"price\" }, [\n _c(\"dl\", { staticClass: \"clr\" }, [\n _c(\"dt\", [_vm._v(\"购买形式\")]),\n _c(\"dd\", { staticClass: \"tab\" }, [\n _c(\"span\", {\n class: { act: _vm.navInit == 0 },\n domProps: {\n innerHTML: _vm._s(\n \"按\" + _vm.goodDetail.goods_unit_name + \"购买\"\n )\n },\n on: {\n click: function($event) {\n return _vm.changeNav(0)\n }\n }\n }),\n _c(\"span\", {\n class: { act: _vm.navInit == 1 },\n domProps: {\n innerHTML: _vm._s(\"按\" + _vm.goodDetail.mpq_unit_name + \"购买\")\n },\n on: {\n click: function($event) {\n return _vm.changeNav(1)\n }\n }\n })\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(1),\n _c(\"dd\", { staticClass: \"details-num\" }, [\n _c(\n \"div\",\n { staticClass: \"number\" },\n [\n _vm.navInit == 0\n ? [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceSingle }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.goodsNum,\n expression: \"goodsNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.goodsNum },\n on: {\n blur: [\n _vm.blurSingle,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.goodsNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addSingle }\n })\n ]\n : [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceZu }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.ypNum,\n expression: \"ypNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.ypNum },\n on: {\n blur: [\n _vm.blurZu,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.ypNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addZu }\n })\n ],\n _c(\n \"div\",\n {\n staticClass: \"zyqhcbox\",\n staticStyle: { display: \"block\" }\n },\n [\n _c(\"div\", { staticClass: \"zyqhc clr\" }, [\n _c(\n \"div\",\n { staticClass: \"lfldiv fl\" },\n [\n _c(\"font\", {\n staticClass: \"icon iconfont icon-tishi fl\"\n })\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"lfrdiv fr\" }, [\n _vm._v(_vm._s(_vm.tipText))\n ])\n ]),\n _c(\"b\", { staticClass: \"bbiu\" }),\n _c(\"b\", { staticClass: \"bbiu1\" })\n ]\n )\n ],\n 2\n )\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(2),\n _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.singlePrice))\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(3),\n _c(\"dd\", { staticClass: \"totalPrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.total))\n ])\n ])\n ])\n ]),\n _c(\"div\", { staticClass: \"details-foot\" }, [\n _c(\n \"span\",\n {\n staticClass: \"but-blue\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"1\")\n }\n }\n },\n [_vm._v(_vm._s(_vm.btnText))]\n ),\n _c(\n \"span\",\n {\n staticClass: \"but-red\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"2\")\n }\n }\n },\n [_vm._v(\"加入购物车\")]\n )\n ])\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", { staticClass: \"f-orange\" }, [_vm._v(\"国内现货,当天发货\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 数\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"量\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 单\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"价\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 合\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"计\\n \")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/zyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"zl_Detail\" }, [\n _c(\"div\", { staticClass: \"details-head\" }, [\n _c(\"div\", { staticClass: \"head_top clr\" }, [\n _c(\"div\", { staticClass: \"head_top_left fl\" }, [\n _c(\"img\", {\n attrs: {\n src:\n _vm.goodDetail.brand_logo ||\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n },\n on: { onerror: _vm.imgErr, click: _vm.showImagePreview }\n })\n ]),\n _c(\"div\", { staticClass: \"head_top_right\" }, [\n _c(\"h4\", [_c(\"strong\", [_vm._v(_vm._s(_vm.goodDetail.sku_name))])]),\n _c(\"p\", { staticClass: \"icon-hint\" })\n ])\n ]),\n _c(\"ul\", { staticClass: \"head_bottom clr\" }, [\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"型号\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.goods_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"供应商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.supplier_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"制造商\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.brand_name))])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"封装\")]),\n _c(\"span\", [\n _vm._v(_vm._s(_vm.goodDetail.encap ? _vm.goodDetail.encap : \"--\"))\n ])\n ]),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", [_vm._v(\"类别\")]),\n _c(\"span\", [_vm._v(_vm._s(_vm.goodDetail.class2_name))])\n ]),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"起订量\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.min_buy ? _vm.goodDetail.min_buy : \"1\"\n )\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", [_vm._v(\"倍数\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(_vm.goodDetail.mpl ? _vm.goodDetail.mpl : \"1\")\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", {\n domProps: { innerHTML: _vm._s(\"一\" + _vm.goodDetail.mpq_unit_name) }\n }),\n _c(\"span\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n (_vm.goodDetail.min_mpq ? _vm.goodDetail.min_mpq : \"0\") +\n _vm.goodDetail.goods_unit_name\n )\n }\n })\n ]),\n _c(\n \"li\",\n { staticClass: \"fl\" },\n [\n _c(\"b\", {}, [_vm._v(\"库存\")]),\n _c(\"font\", {\n staticClass: \"f-orange\",\n domProps: {\n innerHTML: _vm._s(\n _vm.goodDetail.goods_number\n ? _vm.goodDetail.goods_number\n : \"0\"\n )\n }\n }),\n _vm._v(\n \"\\n \" + _vm._s(_vm.goodDetail.goods_unit_name) + \"\\n \"\n )\n ],\n 1\n ),\n _vm._m(0),\n _vm.goodDetail.sku_name\n ? _c(\n \"li\",\n {\n staticClass: \"fl\",\n staticStyle: {\n width: \"100%\",\n overflow: \"hidden\",\n \"text-overflow\": \"ellipsis\",\n \"white-space\": \"nowrap\",\n color: \"#999\"\n }\n },\n [_vm._v(\"描述:\" + _vm._s(_vm.goodDetail.sku_name))]\n )\n : _vm._e()\n ])\n ]),\n _c(\"div\", { staticClass: \"details-cont\", staticStyle: { top: \"210px\" } }, [\n _c(\n \"div\",\n { staticClass: \"gradient\" },\n [\n _c(\"table\", [\n _c(\"tbody\", [\n _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 1\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"抢购价(含税)\")\n ])\n ]\n : _vm._e(),\n _vm.goodDetail.ac_type == 2 || _vm.goodDetail.ac_type == 3\n ? [\n _c(\"th\", { staticClass: \"xs-3\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"原价(含税)\")\n ]),\n _c(\"th\", { staticClass: \"xs-3\" }, [\n _vm._v(\"优惠价(含税)\")\n ])\n ]\n : [\n _c(\"th\", { staticClass: \"xs-6\" }, [_vm._v(\"数量\")]),\n _c(\"th\", { staticClass: \"xs-6\" }, [_vm._v(\"人民币\")])\n ]\n ],\n 2\n )\n ]),\n _c(\n \"tbody\",\n [\n _vm.goodDetail.tiered\n ? _vm._l(_vm.goodDetail.tiered, function(v, k) {\n return k < 3 || _vm.isShowMore\n ? _c(\n \"tr\",\n [\n _vm.goodDetail.ac_type == 1 ||\n _vm.goodDetail.ac_type == 2 ||\n _vm.goodDetail.ac_type == 3\n ? [\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(v.purchases + \"+\")\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_cn)\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-3\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_ac)\n }\n })\n ])\n ]\n : [\n _c(\"td\", { staticClass: \"xs-6\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.purchases)\n }\n })\n ]),\n _c(\"td\", { staticClass: \"xs-6\" }, [\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(\"¥\" + v.price_cn)\n }\n })\n ])\n ]\n ],\n 2\n )\n : _vm._e()\n })\n : _vm._e()\n ],\n 2\n )\n ]),\n _vm.goodDetail.tiered\n ? [\n _vm.goodDetail.tiered.length > 3 && !_vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e(),\n _vm.isShowMore\n ? _c(\n \"div\",\n {\n staticClass: \"zkxk\",\n on: {\n click: function($event) {\n _vm.isShowMore = !_vm.isShowMore\n }\n }\n },\n [\n _vm._v(\"\\n 收起梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-top\" })\n ]\n )\n : _vm._e()\n ]\n : _vm._e()\n ],\n 2\n ),\n _c(\"div\", { staticClass: \"price\" }, [\n _c(\"dl\", { staticClass: \"clr\" }, [\n _c(\"dt\", [_vm._v(\"购买形式\")]),\n _c(\"dd\", { staticClass: \"tab\" }, [\n _c(\"span\", {\n class: { act: _vm.navInit == 0 },\n domProps: {\n innerHTML: _vm._s(\n \"按\" + _vm.goodDetail.goods_unit_name + \"购买\"\n )\n },\n on: {\n click: function($event) {\n return _vm.changeNav(0)\n }\n }\n }),\n _c(\"span\", {\n class: { act: _vm.navInit == 1 },\n domProps: {\n innerHTML: _vm._s(\"按\" + _vm.goodDetail.mpq_unit_name + \"购买\")\n },\n on: {\n click: function($event) {\n return _vm.changeNav(1)\n }\n }\n })\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(1),\n _c(\"dd\", { staticClass: \"details-num\" }, [\n _c(\n \"div\",\n { staticClass: \"number\" },\n [\n _vm.navInit == 0\n ? [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceSingle }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.goodsNum,\n expression: \"goodsNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.goodsNum },\n on: {\n blur: [\n _vm.blurSingle,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.goodsNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addSingle }\n })\n ]\n : [\n _c(\"i\", {\n staticClass: \"iconfont icon-jian\",\n on: { click: _vm.reduceZu }\n }),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model.trim\",\n value: _vm.ypNum,\n expression: \"ypNum\",\n modifiers: { trim: true }\n }\n ],\n attrs: { type: \"text\" },\n domProps: { value: _vm.ypNum },\n on: {\n blur: [\n _vm.blurZu,\n function($event) {\n return _vm.$forceUpdate()\n }\n ],\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.ypNum = $event.target.value.trim()\n }\n }\n }),\n _c(\"i\", {\n staticClass: \"iconfont icon-jia\",\n on: { click: _vm.addZu }\n })\n ],\n _c(\n \"div\",\n {\n staticClass: \"zyqhcbox\",\n staticStyle: { display: \"block\" }\n },\n [\n _c(\"div\", { staticClass: \"zyqhc clr\" }, [\n _c(\n \"div\",\n { staticClass: \"lfldiv fl\" },\n [\n _c(\"font\", {\n staticClass: \"icon iconfont icon-tishi fl\"\n })\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"lfrdiv fr\" }, [\n _vm._v(_vm._s(_vm.tipText))\n ])\n ]),\n _c(\"b\", { staticClass: \"bbiu\" }),\n _c(\"b\", { staticClass: \"bbiu1\" })\n ]\n )\n ],\n 2\n )\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(2),\n _c(\"dd\", { staticClass: \"onePrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.singlePrice))\n ])\n ]),\n _c(\"dl\", { staticClass: \"clr\" }, [\n _vm._m(3),\n _c(\"dd\", { staticClass: \"totalPrice\" }, [\n _vm._v(\"¥\" + _vm._s(_vm.total))\n ])\n ])\n ])\n ]),\n _c(\"div\", { staticClass: \"details-foot\" }, [\n _c(\n \"span\",\n {\n staticClass: \"but-blue\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"1\")\n }\n }\n },\n [_vm._v(_vm._s(_vm.btnText))]\n ),\n _c(\n \"span\",\n {\n staticClass: \"but-red\",\n on: {\n click: function($event) {\n return _vm.xdOrAdd(\"2\")\n }\n }\n },\n [_vm._v(\"加入购物车\")]\n )\n ])\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"li\", { staticClass: \"fl\" }, [\n _c(\"b\", { staticClass: \"f-orange\" }, [_vm._v(\"国内现货,当天发货\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 数\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"量\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 单\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"价\\n \")\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"dt\", [\n _vm._v(\"\\n 合\\n \"),\n _c(\"span\", { staticClass: \"em1\" }),\n _vm._v(\"计\\n \")\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/zyDetail.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -8,7 +8,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n/* harmony import */ var _util_bus_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/bus.js */ \"./src/util/bus.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Lazyload\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"GoodsOne\",\n props: {\n dataList: {\n //数组数据\n type: Array,\n default: []\n },\n isZy: {\n //是否自营\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n limitLength: 3,\n defaultBtn: '更多梯度价格<i class=\"icon-bot\"></i>'\n };\n },\n watch: {},\n mounted: function mounted() {},\n methods: {\n priceRow: function priceRow(index, id) {\n var dom = document.getElementById(\"priceContent\" + id);\n var arrLength = this.dataList[index].ladder_price.length;\n\n if (this.dataList[index][\"check\"]) {\n dom.style.height = \"57px\";\n this.$set(this.dataList[index], \"check\", false);\n this.$set(this.dataList[index], \"checkBtn\", '更多梯度价格<i class=\"icon-bot\"></i>');\n } else {\n dom.style.height = 19 * arrLength + \"px\";\n dom.style.transition = \"height \".concat((arrLength - 3) * 0.125, \"s linear\");\n dom.style.webkitTransition = \"height \".concat((arrLength - 3) * 0.125, \"s linear\");\n this.$set(this.dataList[index], \"check\", true);\n this.$set(this.dataList[index], \"checkBtn\", '收起梯度价格<i class=\"icon-top\"></i>');\n }\n },\n placeOrder: function placeOrder(id) {\n this.$emit(\"placeOrder\", id);\n },\n xunjia: function xunjia() {\n _util_bus_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].$emit(\"xunjia\");\n }\n },\n components: {}\n});\n\n//# sourceURL=webpack:///./src/views/common/GoodsOne.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n/* harmony import */ var _util_bus_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/bus.js */ \"./src/util/bus.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Lazyload\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"GoodsOne\",\n props: {\n dataList: {\n //数组数据\n type: Array,\n default: []\n },\n isZy: {\n //是否自营\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n hostName: window.location.origin,\n limitLength: 3,\n defaultBtn: '更多梯度价格<i class=\"icon-bot\"></i>'\n };\n },\n watch: {},\n mounted: function mounted() {},\n methods: {\n priceRow: function priceRow(index, id) {\n var dom = document.getElementById(\"priceContent\" + id);\n var arrLength = this.dataList[index].ladder_price.length;\n\n if (this.dataList[index][\"check\"]) {\n dom.style.height = \"57px\";\n this.$set(this.dataList[index], \"check\", false);\n this.$set(this.dataList[index], \"checkBtn\", '更多梯度价格<i class=\"icon-bot\"></i>');\n } else {\n dom.style.height = 19 * arrLength + \"px\";\n dom.style.transition = \"height \".concat((arrLength - 3) * 0.125, \"s linear\");\n dom.style.webkitTransition = \"height \".concat((arrLength - 3) * 0.125, \"s linear\");\n this.$set(this.dataList[index], \"check\", true);\n this.$set(this.dataList[index], \"checkBtn\", '收起梯度价格<i class=\"icon-top\"></i>');\n }\n },\n placeOrder: function placeOrder(id) {\n this.$emit(\"placeOrder\", id);\n },\n xunjia: function xunjia() {\n _util_bus_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].$emit(\"xunjia\");\n }\n },\n components: {}\n});\n\n//# sourceURL=webpack:///./src/views/common/GoodsOne.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......@@ -56,7 +56,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n _vm._l(_vm.dataList, function(itemchild, indexdata) {\n return _c(\"div\", { staticClass: \"block oneDataGoods\" }, [\n _c(\"dl\", { staticClass: \"mui-row img-box\" }, [\n _c(\n \"a\",\n {\n attrs: {\n href: _vm.isZy\n ? \"https://m.ichunt.com/item/\" +\n itemchild.goods_id +\n \".html?ptag=selfshop\"\n : \"https://m.ichunt.com/goods_\" +\n itemchild.goods_id +\n \".html?ptag=lxshop\"\n }\n },\n [\n _c(\n \"dt\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ]\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: itemchild.goods_name_temp,\n \"data-src\": _vm.isZy\n ? itemchild.goods_images\n : itemchild.goods_img,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\n \"dd\",\n [\n _vm.isZy\n ? [\n _c(\"h4\", [_vm._v(_vm._s(itemchild.sku_name))]),\n itemchild.class_name2\n ? _c(\"p\", [\n _vm._v(\"分类:\" + _vm._s(itemchild.class_name2))\n ])\n : _vm._e(),\n _c(\"p\", [\n _vm._v(\"制造商:\" + _vm._s(itemchild.brand_name))\n ]),\n itemchild.encap\n ? _c(\"p\", [\n _vm._v(\"封装:\" + _vm._s(itemchild.encap))\n ])\n : _vm._e(),\n _c(\"p\", [\n _vm._v(\"\\n 库存:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.stock) }\n }),\n _vm._v(\"\\n (\\n \"),\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(itemchild.purchase_info)\n }\n }),\n _vm._v(\")\\n \")\n ])\n ]\n : [\n _c(\"h4\", [_vm._v(_vm._s(itemchild.goods_name_temp))]),\n _c(\"p\", [\n _vm._v(\n \"制造商:\" + _vm._s(itemchild.brand_name || \"- -\")\n )\n ]),\n _c(\"p\", [\n _vm._v(\"\\n 库存:\\n \"),\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(itemchild.stock || 0)\n }\n })\n ]),\n _c(\"p\", [\n _vm._v(\"\\n 起订:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.moq || 1) }\n })\n ]),\n _c(\"p\", [\n _vm._v(\"\\n MPQ:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.mpq || 1) }\n })\n ])\n ]\n ],\n 2\n )\n ]\n )\n ]),\n _c(\"div\", { staticClass: \"mui-row block-but\" }, [\n _c(\n \"div\",\n { staticClass: \"morePrice\" },\n [\n _vm.isZy\n ? [\n _c(\n \"div\",\n {\n class: {\n zyClass:\n itemchild.ladder_price &&\n itemchild.ladder_price.length < 4,\n zyMoreData:\n itemchild.ladder_price &&\n itemchild.ladder_price.length > 3\n },\n attrs: { id: \"priceContent\" + itemchild.goods_id }\n },\n _vm._l(itemchild.ladder_price, function(\n itemPrice,\n index\n ) {\n return _c(\"div\", { staticClass: \"mui-row list_data\" }, [\n _c(\"p\", {\n staticClass: \"mui-col-sm-6 mui-col-xs-6\",\n domProps: {\n innerHTML: _vm._s(itemPrice.purchases + \"+\")\n }\n }),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"¥\" + _vm._s(itemPrice.price_cn))]\n )\n ])\n }),\n 0\n ),\n itemchild.ladder_price && itemchild.ladder_price.length == 0\n ? _c(\"div\", { staticClass: \"mui-row list_data f-fff\" }, [\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"- -\")]\n )\n ])\n : _vm._e()\n ]\n : [\n _c(\n \"div\",\n {\n class: {\n lyClass:\n itemchild.ladder_price &&\n itemchild.ladder_price.length < 4,\n lyMoreData:\n itemchild.ladder_price &&\n itemchild.ladder_price.length > 3\n },\n attrs: { id: \"priceContent\" + itemchild.goods_id }\n },\n _vm._l(itemchild.ladder_price, function(\n itemPrice,\n index\n ) {\n return _c(\"div\", { staticClass: \"mui-row list_data\" }, [\n _c(\"p\", {\n staticClass: \"mui-col-sm-4 mui-col-xs-4\",\n domProps: {\n innerHTML: _vm._s(itemPrice.purchases + \"+\")\n }\n }),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"¥\" + _vm._s(itemPrice.price_cn))]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"$\" + _vm._s(itemPrice.price_us))]\n )\n ])\n }),\n 0\n ),\n itemchild.ladder_price && itemchild.ladder_price.length == 0\n ? _c(\"div\", { staticClass: \"mui-row list_data f-fff\" }, [\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n )\n ])\n : _vm._e()\n ],\n itemchild.ladder_price &&\n itemchild.ladder_price.length > _vm.limitLength\n ? _c(\n \"div\",\n {\n staticClass: \"more-height\",\n domProps: {\n innerHTML: _vm._s(itemchild.checkBtn || _vm.defaultBtn)\n },\n on: {\n click: function($event) {\n return _vm.priceRow(indexdata, itemchild.goods_id)\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _c(\n \"div\",\n { staticClass: \"but-shop\" },\n [\n _vm.isZy\n ? [\n itemchild.is_buy == 1\n ? _c(\n \"a\",\n {\n staticClass: \"but\",\n on: {\n click: function($event) {\n return _vm.placeOrder(itemchild.goods_id)\n }\n }\n },\n [_vm._v(\"我要下单\")]\n )\n : _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"立即询价\")]\n )\n ]\n : [\n itemchild.is_buy == 1\n ? _c(\n \"a\",\n {\n staticClass: \"but\",\n on: {\n click: function($event) {\n return _vm.placeOrder(itemchild.goods_id)\n }\n }\n },\n [_vm._v(\"我要下单\")]\n )\n : itemchild.is_buy == 0\n ? _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"立即询价\")]\n )\n : itemchild.is_buy == 3\n ? _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"确认库存信息\")]\n )\n : _vm._e()\n ]\n ],\n 2\n )\n ])\n ])\n }),\n 0\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/GoodsOne.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n _vm._l(_vm.dataList, function(itemchild, indexdata) {\n return _c(\"div\", { staticClass: \"block oneDataGoods\" }, [\n _c(\"dl\", { staticClass: \"mui-row img-box\" }, [\n _c(\n \"a\",\n {\n attrs: {\n href: _vm.isZy\n ? _vm.hostName +\n \"/item/\" +\n itemchild.goods_id +\n \".html?ptag=selfshop\"\n : _vm.hostName +\n \"/goods_\" +\n itemchild.goods_id +\n \".html?ptag=lxshop\"\n }\n },\n [\n _c(\n \"dt\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ]\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: itemchild.goods_name_temp,\n \"data-src\": _vm.isZy\n ? itemchild.goods_images\n : itemchild.goods_img,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\n \"dd\",\n [\n _vm.isZy\n ? [\n _c(\"h4\", [_vm._v(_vm._s(itemchild.sku_name))]),\n itemchild.class_name2\n ? _c(\"p\", [\n _vm._v(\"分类:\" + _vm._s(itemchild.class_name2))\n ])\n : _vm._e(),\n _c(\"p\", [\n _vm._v(\"制造商:\" + _vm._s(itemchild.brand_name))\n ]),\n itemchild.encap\n ? _c(\"p\", [\n _vm._v(\"封装:\" + _vm._s(itemchild.encap))\n ])\n : _vm._e(),\n _c(\"p\", [\n _vm._v(\"\\n 库存:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.stock) }\n }),\n _vm._v(\"\\n (\\n \"),\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(itemchild.purchase_info)\n }\n }),\n _vm._v(\")\\n \")\n ])\n ]\n : [\n _c(\"h4\", [_vm._v(_vm._s(itemchild.goods_name_temp))]),\n _c(\"p\", [\n _vm._v(\n \"制造商:\" + _vm._s(itemchild.brand_name || \"- -\")\n )\n ]),\n _c(\"p\", [\n _vm._v(\"\\n 库存:\\n \"),\n _c(\"span\", {\n domProps: {\n innerHTML: _vm._s(itemchild.stock || 0)\n }\n })\n ]),\n _c(\"p\", [\n _vm._v(\"\\n 起订:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.moq || 1) }\n })\n ]),\n _c(\"p\", [\n _vm._v(\"\\n MPQ:\\n \"),\n _c(\"span\", {\n domProps: { innerHTML: _vm._s(itemchild.mpq || 1) }\n })\n ])\n ]\n ],\n 2\n )\n ]\n )\n ]),\n _c(\"div\", { staticClass: \"mui-row block-but\" }, [\n _c(\n \"div\",\n { staticClass: \"morePrice\" },\n [\n _vm.isZy\n ? [\n _c(\n \"div\",\n {\n class: {\n zyClass:\n itemchild.ladder_price &&\n itemchild.ladder_price.length < 4,\n zyMoreData:\n itemchild.ladder_price &&\n itemchild.ladder_price.length > 3\n },\n attrs: { id: \"priceContent\" + itemchild.goods_id }\n },\n _vm._l(itemchild.ladder_price, function(\n itemPrice,\n index\n ) {\n return _c(\"div\", { staticClass: \"mui-row list_data\" }, [\n _c(\"p\", {\n staticClass: \"mui-col-sm-6 mui-col-xs-6\",\n domProps: {\n innerHTML: _vm._s(itemPrice.purchases + \"+\")\n }\n }),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"¥\" + _vm._s(itemPrice.price_cn))]\n )\n ])\n }),\n 0\n ),\n itemchild.ladder_price && itemchild.ladder_price.length == 0\n ? _c(\"div\", { staticClass: \"mui-row list_data f-fff\" }, [\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-6 mui-col-xs-6\" },\n [_vm._v(\"- -\")]\n )\n ])\n : _vm._e()\n ]\n : [\n _c(\n \"div\",\n {\n class: {\n lyClass:\n itemchild.ladder_price &&\n itemchild.ladder_price.length < 4,\n lyMoreData:\n itemchild.ladder_price &&\n itemchild.ladder_price.length > 3\n },\n attrs: { id: \"priceContent\" + itemchild.goods_id }\n },\n _vm._l(itemchild.ladder_price, function(\n itemPrice,\n index\n ) {\n return _c(\"div\", { staticClass: \"mui-row list_data\" }, [\n _c(\"p\", {\n staticClass: \"mui-col-sm-4 mui-col-xs-4\",\n domProps: {\n innerHTML: _vm._s(itemPrice.purchases + \"+\")\n }\n }),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"¥\" + _vm._s(itemPrice.price_cn))]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"$\" + _vm._s(itemPrice.price_us))]\n )\n ])\n }),\n 0\n ),\n itemchild.ladder_price && itemchild.ladder_price.length == 0\n ? _c(\"div\", { staticClass: \"mui-row list_data f-fff\" }, [\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n ),\n _c(\n \"p\",\n { staticClass: \"mui-col-sm-4 mui-col-xs-4\" },\n [_vm._v(\"- -\")]\n )\n ])\n : _vm._e()\n ],\n itemchild.ladder_price &&\n itemchild.ladder_price.length > _vm.limitLength\n ? _c(\n \"div\",\n {\n staticClass: \"more-height\",\n domProps: {\n innerHTML: _vm._s(itemchild.checkBtn || _vm.defaultBtn)\n },\n on: {\n click: function($event) {\n return _vm.priceRow(indexdata, itemchild.goods_id)\n }\n }\n },\n [\n _vm._v(\"\\n 更多梯度价格\\n \"),\n _c(\"i\", { staticClass: \"icon-bot\" })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _c(\n \"div\",\n { staticClass: \"but-shop\" },\n [\n _vm.isZy\n ? [\n itemchild.is_buy == 1\n ? _c(\n \"a\",\n {\n staticClass: \"but\",\n on: {\n click: function($event) {\n return _vm.placeOrder(itemchild.goods_id)\n }\n }\n },\n [_vm._v(\"我要下单\")]\n )\n : _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"立即询价\")]\n )\n ]\n : [\n itemchild.is_buy == 1\n ? _c(\n \"a\",\n {\n staticClass: \"but\",\n on: {\n click: function($event) {\n return _vm.placeOrder(itemchild.goods_id)\n }\n }\n },\n [_vm._v(\"我要下单\")]\n )\n : itemchild.is_buy == 0\n ? _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"立即询价\")]\n )\n : itemchild.is_buy == 3\n ? _c(\n \"a\",\n {\n staticClass: \"but but-orange\",\n on: { click: _vm.xunjia }\n },\n [_vm._v(\"确认库存信息\")]\n )\n : _vm._e()\n ]\n ],\n 2\n )\n ])\n ])\n }),\n 0\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/common/GoodsOne.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2265b30cba-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -4782,7 +4782,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.7.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n zygoodDetail: {},\n lygoodDetail: {},\n isShowAlert: false,\n tipText: \"\"\n};\nvar mutations = {\n changeZyGoodDetail: function changeZyGoodDetail(state, payload) {\n var data = payload.data;\n state.zygoodDetail = data;\n },\n changeLyGoodDetail: function changeLyGoodDetail(state, payload) {\n var data = payload.data;\n state.lygoodDetail = data;\n },\n closeAlert: function closeAlert(state) {\n state.isShowAlert = false, state.tipText = \"\";\n }\n};\nvar actions = {\n getDetailData: function getDetailData(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n message: '加载中...',\n duration: 0,\n forbidClick: true,\n loadingType: 'spinner'\n });\n state.zygoodDetail = {};\n state.lygoodDetail = {};\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].goodDetail(qs.stringify(payload.data)).then(function (res) {\n toast.clear();\n var data = res.data;\n\n if (data.err_code == 0) {\n if (data.data.goods_type == 3 || data.data.goods_type == 4) {\n //自营\n commit('changeZyGoodDetail', {\n data: data.data\n });\n } else if (data.data.goods_type == 1 || data.data.goods_type == 2) {\n //联营\n commit(\"changeLyGoodDetail\", {\n //过滤数据\n data: data.data\n });\n }\n } else {}\n }).catch(function (err) {\n toast.clear();\n });\n },\n addGoods: function addGoods(_ref2, payload) {\n var commit = _ref2.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n message: '加载中...',\n duration: 0,\n forbidClick: true\n });\n state.isShowAlert = false;\n state.tipText = \"\";\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].addGood(qs.stringify(payload.data.datax)).then(function (res) {\n toast.clear();\n var data = res.data;\n\n if (data.err_code == 0) {\n if (payload.data.datax.buy == 1) {\n window.sessionStorage.setItem(\"car_xk\", data.data);\n\n if (payload.data.type == 1) {\n window.location.href = \"/v3/order/confirm?type=zy&k=\" + payload.data.k;\n } else {\n window.location.href = \"/v3/order/confirm?type=other&k=\" + payload.data.k;\n }\n } else {\n state.isShowAlert = true;\n state.tipText = data.err_msg;\n }\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n toast.clear();\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/gooddetail/gooddetail.js?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.6.15@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.7.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n zygoodDetail: {},\n lygoodDetail: {},\n isShowAlert: false,\n tipText: \"\"\n};\nvar mutations = {\n changeZyGoodDetail: function changeZyGoodDetail(state, payload) {\n var data = payload.data;\n state.zygoodDetail = data;\n },\n changeLyGoodDetail: function changeLyGoodDetail(state, payload) {\n var data = payload.data;\n state.lygoodDetail = data;\n },\n closeAlert: function closeAlert(state) {\n state.isShowAlert = false, state.tipText = \"\";\n }\n};\nvar actions = {\n getDetailData: function getDetailData(_ref, payload) {\n var commit = _ref.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n message: '加载中...',\n duration: 0,\n forbidClick: true,\n loadingType: 'spinner'\n });\n state.zygoodDetail = {};\n state.lygoodDetail = {};\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].goodDetail(qs.stringify(payload.data)).then(function (res) {\n toast.clear();\n var data = res.data;\n\n if (data.err_code == 0) {\n if (data.data.goods_type == 3 || data.data.goods_type == 4) {\n //自营\n commit('changeZyGoodDetail', {\n data: data.data\n });\n } else if (data.data.goods_type == 1 || data.data.goods_type == 2) {\n //联营\n commit(\"changeLyGoodDetail\", {\n //过滤数据\n data: data.data\n });\n }\n } else {}\n }).catch(function (err) {\n toast.clear();\n });\n },\n addGoods: function addGoods(_ref2, payload) {\n var commit = _ref2.commit;\n var toast = vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"].loading({\n message: '加载中...',\n duration: 0,\n forbidClick: true\n });\n state.isShowAlert = false;\n state.tipText = \"\";\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].addGood(qs.stringify(payload.data.datax)).then(function (res) {\n toast.clear();\n var data = res.data;\n\n if (data.err_code == 0) {\n if (payload.data.datax.buy == 1) {\n window.sessionStorage.setItem(\"car_xk\", data.data);\n\n if (payload.data.type == 1) {\n window.location.href = \"/v3/order/confirm?type=zy&k=\" + payload.data.k;\n } else {\n window.location.href = \"/v3/order/confirm?type=other&k=\" + payload.data.k;\n }\n } else {\n state.isShowAlert = true;\n state.tipText = data.err_msg;\n }\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n toast.clear();\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(err);\n });\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/gooddetail/gooddetail.js?");
/***/ }),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment