Commit 0e1efce1 by 施宇

清库存

parent 8c4610c9
......@@ -1083,7 +1083,7 @@
});
return;
}else if(self.type == 2){
if(goodType == 6){
if(goodType == 6 && allowPresale == 1){
self.$toast("想要购买更多,请联系客服");
var inputVal = num||0;
......@@ -1120,7 +1120,7 @@
duration: 1500
});
}else if(self.type==2){
if(goodType == 6 ){
if(goodType == 6 && allowPresale == 1){
self.$toast("想要购买更多,请联系客服");
var inputVal = num||0;
if(inputVal!==0||inputVal!==mpq){
......
......@@ -313,7 +313,7 @@ export default {
this.isYushou=true;
this.tipText = "库存不足,下单后我们将帮您订货";
console.log(this.goodDetail)
if(this.goodDetail.ac_type == 6){
if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1){
this.$toast("想要购买更多,请联系客服");
var maxNum;
var inputVal;
......@@ -369,6 +369,14 @@ export default {
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png";
},
changeNav(i) {
if(this.navInit == i){
return
}
if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1 && this.aggregateNum>this.stockNum){
this.$toast("想要购买更多,请联系客服");
return
}
this.navInit = i;
if (i == 1) {
if (this.goodsNum % this.aggregateNum) {
......
<!DOCTYPE HTML><html lang=zh-CN><head><title>猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台</title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=keywords content=电子元器件,ic交易网,电子元件,元器件,电子元件商城,IC芯片,猎芯网><meta name=description content=猎芯网(www.Ichunt.com)是国内外知名的买电子元器件、电子元件、元器件采购商城平台,IC交易网站。为客户提供电子元器件现货批发采购,IC采购,进口报关,元器件寄售,供应链金融等一站式电子元器件采购服务><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.4.0.js charset=utf-8></script><script src=https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-0455f58c.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-05f567d8.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-06e5176e.3f03bf7c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-07bb2ad2.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0a69ed85.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b25da2a.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b443ae8.be20e716.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b49c9fb.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0ba7f290.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0ec10f76.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0fdf5892.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-116636b9.6b29a51b.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-13b538cc.db4e652e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-15bfe28c.5d3ce0db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-17e75682.dd5497c3.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1ed681f8.fb37b163.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f118148.3c8a89a1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-203923a6.614bd80c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3184ee2b.b11e5fdf.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-331edff5.450e05a6.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3496124e.b1cd8c5b.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-353edd02.079157bd.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-353fa5dc.7783f486.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-37e03490.737ad96c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3d557f58.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-43a68137.a86b5b21.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-49134d46.b2d544b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4e39f614.f81b02da.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5181b066.5106f9db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-519a4c4c.271480a7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-53503266.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-60eda620.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-6ffa70e4.89aeaffb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-70ab5e53.036eb04e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-72c4a5b4.73516033.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-799537ff.5c1dc4d6.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-799df5d2.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-79b021fb.0930351f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7ac4d8ac.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7b15670c.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7becce21.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-822cd7e8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-8c504092.093f2cac.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-8ff5d354.c17ac9f1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-935e7b56.aee9a026.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a6c2ea9e.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a818d724.2c3d307f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-aec0c2fa.ff0fdc85.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-b6f22368.988e49c1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e04e5fc2.fd90b228.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e93077d2.21c4acaa.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0455f58c.0af2ab2a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-05f567d8.42fcb5fc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-06e5176e.6770e4ae.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-07bb2ad2.7bcf8056.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0a69ed85.7a8e8c14.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b25da2a.19ac06ba.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b443ae8.c7d42248.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b49c9fb.20daec4e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0ba7f290.fab7538e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0ec10f76.ba1935b4.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0fdf5892.720bda92.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-116636b9.e339e233.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-13b538cc.f304fa77.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-15bfe28c.cec1be2d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-17e75682.ee53f2e9.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1eb39824.4c6d4a5f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1ed681f8.86875594.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f118148.dbaa0d7c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-203923a6.24b70db2.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-275fff86.123b17fa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3184ee2b.cf98e2f8.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-331edff5.706d2c78.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3496124e.39bc8505.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-353edd02.db2f718f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-353fa5dc.bfe93206.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-37e03490.c6c411e6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3d557f58.31f8094a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-43a68137.e29ebdd6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-49134d46.2191319a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4e39f614.2abbddfc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5181b066.e4706cc7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-519a4c4c.5b19f27c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-53503266.a66a18aa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-60eda620.b676aa0f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-6ffa70e4.91b9be98.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-70ab5e53.dce96bfc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-72c4a5b4.e5c8f2f5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-799537ff.78dd6dd0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-799df5d2.6b775248.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-79b021fb.e80f7f6b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7ac4d8ac.95443ea6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7b15670c.4e292b33.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7becce21.28caf3d3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-822cd7e8.d1b6ca55.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-8c504092.3e4a98cd.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-8ff5d354.8f3dcbc5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-935e7b56.8438f0ad.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a6c2ea9e.b4f3a33d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a818d724.91a342e3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-aec0c2fa.17a115ff.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-b6f22368.4aa05156.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e04e5fc2.d691bad3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e93077d2.e4ba2ede.js rel=prefetch><link href=//h5static.ichunt.com/css/app.eebcf7f8.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.97c56160.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.cff0d009.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.dd2ea64b.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.97c56160.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.eebcf7f8.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
<!DOCTYPE HTML><html lang=zh-CN><head><title>猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台</title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=keywords content=电子元器件,ic交易网,电子元件,元器件,电子元件商城,IC芯片,猎芯网><meta name=description content=猎芯网(www.Ichunt.com)是国内外知名的买电子元器件、电子元件、元器件采购商城平台,IC交易网站。为客户提供电子元器件现货批发采购,IC采购,进口报关,元器件寄售,供应链金融等一站式电子元器件采购服务><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.4.0.js charset=utf-8></script><script src=https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-0455f58c.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-05f567d8.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-06e5176e.3f03bf7c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-07bb2ad2.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0a69ed85.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b25da2a.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b443ae8.be20e716.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0b49c9fb.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0ba7f290.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0ec10f76.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0fdf5892.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-116636b9.6b29a51b.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-13b538cc.db4e652e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-15bfe28c.5d3ce0db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-17e75682.dd5497c3.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1ed681f8.fb37b163.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f118148.3c8a89a1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-203923a6.614bd80c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3184ee2b.b11e5fdf.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-331edff5.450e05a6.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3496124e.b1cd8c5b.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-353edd02.079157bd.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-353fa5dc.7783f486.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-37e03490.737ad96c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3d557f58.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-43a68137.a86b5b21.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-49134d46.b2d544b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4e39f614.f81b02da.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5181b066.5106f9db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-519a4c4c.271480a7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-53503266.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-60eda620.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-70ab5e53.036eb04e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-72c4a5b4.73516033.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-799537ff.5c1dc4d6.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-799df5d2.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-79b021fb.0930351f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7ac4d8ac.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7b15670c.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7becce21.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-822cd7e8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-8c504092.093f2cac.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-8ff5d354.c17ac9f1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-935e7b56.aee9a026.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a6c2ea9e.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a818d724.2c3d307f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-aec0c2fa.ff0fdc85.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-b6f22368.988e49c1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e04e5fc2.fd90b228.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e93077d2.21c4acaa.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ebdf6a62.89aeaffb.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0455f58c.0af2ab2a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-05f567d8.42fcb5fc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-06e5176e.6770e4ae.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-07bb2ad2.7bcf8056.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0a69ed85.7a8e8c14.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b25da2a.19ac06ba.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b443ae8.c7d42248.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0b49c9fb.20daec4e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0ba7f290.fab7538e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0ec10f76.ba1935b4.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0fdf5892.720bda92.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-116636b9.e339e233.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-13b538cc.f304fa77.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-15bfe28c.cec1be2d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-17e75682.ee53f2e9.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1eb39824.4c6d4a5f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1ed681f8.86875594.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f118148.dbaa0d7c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-203923a6.24b70db2.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-275fff86.123b17fa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3184ee2b.cf98e2f8.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-331edff5.706d2c78.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3496124e.39bc8505.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-353edd02.db2f718f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-353fa5dc.bfe93206.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-37e03490.c6c411e6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3d557f58.31f8094a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-43a68137.e29ebdd6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-49134d46.2191319a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4e39f614.2abbddfc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5181b066.e4706cc7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-519a4c4c.5b19f27c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-53503266.a66a18aa.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-60eda620.b676aa0f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-70ab5e53.dce96bfc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-72c4a5b4.e5c8f2f5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-799537ff.78dd6dd0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-799df5d2.6b775248.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-79b021fb.e80f7f6b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7ac4d8ac.95443ea6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7b15670c.8d794753.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7becce21.28caf3d3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-822cd7e8.d1b6ca55.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-8c504092.3e4a98cd.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-8ff5d354.8f3dcbc5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-935e7b56.8438f0ad.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a6c2ea9e.b4f3a33d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a818d724.91a342e3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-aec0c2fa.17a115ff.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-b6f22368.4aa05156.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e04e5fc2.d691bad3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e93077d2.e4ba2ede.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ebdf6a62.1af6fae8.js rel=prefetch><link href=//h5static.ichunt.com/css/app.eebcf7f8.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.97c56160.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.8cd2f5a1.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.dd2ea64b.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.97c56160.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.eebcf7f8.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
......@@ -233,4 +233,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.dd2ea64b.js></script><script src=//h5static.ichunt.com/js/app.cff0d009.js></script></body></html>
\ No newline at end of file
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.dd2ea64b.js></script><script src=//h5static.ichunt.com/js/app.8cd2f5a1.js></script></body></html>
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ffa70e4"],{"334b":function(t,i,s){"use strict";s.d(i,"a",(function(){return e}));var e={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},"34d2":function(t,i,s){"use strict";var e=s("c8ad"),a=s.n(e);a.a},"3ffa":function(t,i,s){"use strict";var e=s("b09f"),a=s("f26b"),n=Object(e["a"])("checkbox"),o=n[0],c=n[1];i["a"]=o({mixins:[Object(a["a"])({bem:c,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var i=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){i.checked=t}))},setParentValue:function(t){var i=this.parent,s=i.value.slice();if(t){if(i.max&&s.length>=i.max)return;-1===s.indexOf(this.name)&&(s.push(this.name),i.$emit("input",s))}else{var e=s.indexOf(this.name);-1!==e&&(s.splice(e,1),i.$emit("input",s))}}}})},"5bcd":function(t,i,s){"use strict";s.d(i,"a",(function(){return o})),s.d(i,"b",(function(){return c}));var e=s("0261");function a(t){var i=[];function s(t){t.forEach((function(t){i.push(t),t.componentInstance&&s(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&s(t.children)}))}return s(t),i}function n(t,i){var s=i.$vnode.componentOptions;if(s&&s.children){var e=a(s.children);t.sort((function(t,i){return e.indexOf(t.$vnode)-e.indexOf(i.$vnode)}))}}function o(t,i){var s,a;void 0===i&&(i={});var o=i.indexKey||"index";return e["a"].extend({inject:(s={},s[t]={default:null},s),computed:(a={parent:function(){return this.disableBindRelation?null:this[t]}},a[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},a),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(i){return i!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);n(t,this.parent),this.parent.children=t}}}})}function c(t){return{provide:function(){var i;return i={},i[t]=this,i},data:function(){return{children:[]}}}}},6288:function(t,i,s){"use strict";var e=s("e866"),a=s("0261"),n=s("b09f"),o=s("1a56"),c=s("6c7c"),l=s("a217"),r=s("23c4"),u=s.n(r),d=s("06d4"),m=s("36b5"),h=s("57e5"),p=s("d984"),f=Object(n["a"])("button"),v=f[0],_=f[1];function b(t,i,s,e){var a,n=i.tag,o=i.icon,l=i.type,r=i.color,f=i.plain,v=i.disabled,b=i.loading,y=i.hairline,C=i.loadingText,g={};function x(t){b||v||(Object(d["a"])(e,"click",t),Object(m["a"])(e))}function k(t){Object(d["a"])(e,"touchstart",t)}r&&(g.color=f?r:c["g"],f||(g.background=r),-1!==r.indexOf("gradient")?g.border=0:g.borderColor=r);var w=[_([l,i.size,{plain:f,loading:b,disabled:v,hairline:y,block:i.block,round:i.round,square:i.square}]),(a={},a[c["c"]]=y,a)];function D(){var e,a=[];return b?a.push(t(p["a"],{class:_("loading"),attrs:{size:i.loadingSize,type:i.loadingType,color:"currentColor"}})):o&&a.push(t(h["a"],{attrs:{name:o,classPrefix:i.iconPrefix},class:_("icon")})),e=b?C:s.default?s.default():i.text,e&&a.push(t("span",{class:_("text")},[e])),a}return t(n,u()([{style:g,class:w,attrs:{type:i.nativeType,disabled:v},on:{click:x,touchstart:k}},Object(d["b"])(e)]),[t("div",{class:_("content")},[D()])])}b.props=Object(e["a"])(Object(e["a"])({},m["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var y,C=v(b),g=Object(n["a"])("dialog"),x=g[0],k=g[1],w=g[2],D=x({mixins:[Object(l["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var i=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(s){!1!==s&&i.loading[t]&&i.onClose(t),i.loading.confirm=!1,i.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,i=this,s=this.$createElement,e=this.showCancelButton&&this.showConfirmButton;return s("div",{class:[c["d"],k("footer",{buttons:e})]},[this.showCancelButton&&s(C,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||w("cancel")},class:k("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){i.handleAction("cancel")}}}),this.showConfirmButton&&s(C,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||w("confirm")},class:[k("confirm"),(t={},t[c["b"]]=e,t)],style:{color:this.confirmButtonColor},on:{click:function(){i.handleAction("confirm")}}})])}},render:function(){var t,i=arguments[0];if(this.shouldRender){var s=this.message,e=this.messageAlign,a=this.slots(),n=this.slots("title")||this.title,c=n&&i("div",{class:k("header",{isolated:!s&&!a})},[n]),l=(a||s)&&i("div",{class:k("content")},[a||i("div",{domProps:{innerHTML:s},class:k("message",(t={"has-title":n},t[e]=e,t))})]);return i("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[i("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||s},class:[k(),this.className],style:{width:Object(o["a"])(this.width)}},[c,l,this.genButtons()])])}}}),z=s("ec86");function O(t){return document.body.contains(t)}function j(){y&&y.$destroy(),y=new(a["a"].extend(D))({el:document.createElement("div"),propsData:{lazyRender:!1}}),y.$on("input",(function(t){y.value=t}))}function N(t){return z["f"]?Promise.resolve():new Promise((function(i,s){y&&O(y.$el)||j(),Object(e["a"])(y,N.currentOptions,t,{resolve:i,reject:s})}))}N.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){y["confirm"===t?"resolve":"reject"](t)}},N.alert=N,N.confirm=function(t){return N(Object(e["a"])({showCancelButton:!0},t))},N.close=function(){y&&(y.value=!1)},N.setDefaultOptions=function(t){Object(e["a"])(N.currentOptions,t)},N.resetDefaultOptions=function(){N.currentOptions=Object(e["a"])({},N.defaultOptions)},N.resetDefaultOptions(),N.install=function(){a["a"].use(D)},N.Component=D,a["a"].prototype.$dialog=N;i["a"]=N},"6c7c":function(t,i,s){"use strict";s.d(i,"g",(function(){return e})),s.d(i,"d",(function(){return n})),s.d(i,"b",(function(){return o})),s.d(i,"a",(function(){return c})),s.d(i,"c",(function(){return l})),s.d(i,"e",(function(){return r})),s.d(i,"f",(function(){return u}));var e="#fff",a="van-hairline",n=a+"--top",o=a+"--left",c=a+"--bottom",l=a+"--surround",r=a+"--top-bottom",u=a+"-unset--top-bottom"},b365:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"car-page"},[s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.type,expression:"type==1"}],staticClass:"lxBox",style:{paddingTop:t.paddingTop+"px"}},[s("div",{staticClass:"lyNav clr lyfixed"},[s("span",{directives:[{name:"back-top-window",rawName:"v-back-top-window"}],staticClass:"fl",class:{act:1==t.delivery},on:{click:function(i){return t.deliveryTab(1)}}},[t._v("大陆交货("+t._s(t.ly1Length)+")"),s("font",{staticClass:"fr"},[t._v("|")])],1),s("span",{directives:[{name:"back-top-window",rawName:"v-back-top-window"}],staticClass:"fl",class:{act:2==t.delivery},on:{click:function(i){return t.deliveryTab(2)}}},[t._v("香港交货("+t._s(t.ly2Length)+")")])]),t.isLogingo?t._e():s("div",{staticClass:"logintip lyfixed"},[s("span",[t._v("登录后商品会同步到您账户中")]),s("a",{attrs:{href:t.loginUrl}},[t._v("登录")])]),s("div",{staticClass:"dataBox"},[t.isNoContent?t._e():s("div",{staticClass:"editBox clr lyfixed",style:{top:t.paddingTop+44+"px"}},[s("span",{staticClass:"remind fl",on:{click:t.tipLy}},[t._v("友情提醒"),s("i",{staticClass:"iconfont icon-tishi"})]),t.isEdit?s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("完成")]):t._e(),t.isEdit?t._e():s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("编辑")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.delivery,expression:"delivery==1"}],staticClass:"dlBox"},[t._l(t.ly1Data,(function(i,e){return s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/goods_"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-4 mui-col-xs-4 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.ly1Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])})),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(0)]):t._e(),t._l(t.ly1LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red ",attrs:{href:"/s/?k="+i.goods_name}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.delivery,expression:"delivery==2"}],staticClass:"hkBox"},[t._l(t.ly2Data,(function(i,e){return s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/goods_"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-4 mui-col-xs-4 f-red"},[t._v("$"+t._s(e.price_us))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.ly2Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])})),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(1)]):t._e(),t._l(t.ly2LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red muiclickbug",attrs:{href:"/s/?k="+i.goods_name,guid:"6436"}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2)])]),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.type,expression:"type==2"}],staticClass:"zyBox",style:{paddingTop:t.paddingTop-44+"px"}},[t.isLogingo?t._e():s("div",{staticClass:"logintip zyfixed"},[s("span",[t._v("登录后商品会同步到您账户中")]),s("a",{attrs:{href:t.loginUrl}},[t._v("登录")])]),s("div",{staticClass:"dataBox"},[t.isNoContent?t._e():s("div",{staticClass:"editBox clr zyfixed",style:{top:t.paddingTop+"px"}},[t.isEdit?s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("完成")]):t._e(),t.isEdit?t._e():s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("编辑")])]),s("div",{staticClass:"zyDataGp"},[s("div",{staticClass:"xianhuoData"},[t.zy1Data.length>0?s("div",{staticClass:"mui-row headxianhuoqihuo"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c zdychec1"},[s("van-checkbox",{on:{click:function(i){return t.checkWatchZy(1)}},model:{value:t.zy1DataIsCheck,callback:function(i){t.zy1DataIsCheck=i},expression:"zy1DataIsCheck"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("font",{staticClass:"zyqxtype"},[t._v("现货商品")])],1)]):t._e(),t._l(t.zy1Data,(function(i,e){return[s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/item/"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)",guid:"1991"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("\n 库存:"),s("font",{domProps:{innerHTML:t._s(i.stock)}})],1),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",{staticStyle:{width:"37px"}},[t._v("型号:")]),s("p",{staticStyle:{"padding-left":"0px"}},[t._v(t._s(i.goods_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 倍数:"),s("font",{domProps:{innerHTML:t._s(i.mpl)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("\n 单价:"+t._s(i.goods_price_format)+"\n ")])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.zy1Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])]}))],2),s("div",{staticClass:"qihuoData"},[t.zy2Data.length>0?s("div",{staticClass:"mui-row headxianhuoqihuo"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c zdychec1"},[s("van-checkbox",{on:{click:function(i){return t.checkWatchZy(2)}},model:{value:t.zy2DataIsCheck,callback:function(i){t.zy2DataIsCheck=i},expression:"zy2DataIsCheck"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("font",{staticClass:"zyqxtype"},[t._v("期货商品")])],1)]):t._e(),t._l(t.zy2Data,(function(i,e){return[s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/item/"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("\n 库存:"),s("font",{domProps:{innerHTML:t._s(i.stock)}})],1),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",{staticStyle:{width:"37px"}},[t._v("型号:")]),s("p",{staticStyle:{"padding-left":"0px"}},[t._v(t._s(i.goods_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 倍数:"),s("font",{domProps:{innerHTML:t._s(i.mpl)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("\n 单价:"+t._s(i.goods_price_format)+"\n ")])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.zy2Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])]}))],2),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(2)]):t._e(),t._l(t.zy1LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red muiclickbug",attrs:{href:"/s/?k="+i.goods_name,guid:"6436"}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2)])]),t.isNoContent?t._e():s("div",{staticClass:"mui-row shop-but"},[s("div",{staticClass:"mui-col-sm-3 mui-col-xs-3 checkallbox"},[s("van-checkbox",{on:{click:t.checkAll},model:{value:t.isAll,callback:function(i){t.isAll=i},expression:"isAll"}},[t._v("全选")])],1),t.isEdit?t._e():s("div",{staticClass:"mui-col-sm-6 mui-col-xs-6 sum"},[s("h4",{staticClass:"fw"},[t._v("总金额:"),s("span",{staticClass:"f-red "},[t._v(t._s(t.totalMoney))])]),s("p",{staticClass:"f-999"},[t._v("(不含运费)")])]),t.isEdit?t._e():s("div",{staticClass:"mui-col-sm-3 mui-col-xs-3 button",class:{dis:0==t.totalNum}},[s("a",{staticClass:"but-red",attrs:{href:"javascript:void('0')"},on:{click:t.goSubmit}},[t._v("去结算"),s("span",[t._v("("),s("span",{staticClass:"carNum"},[t._v(t._s(t.totalNum))]),t._v(")")])])]),t.isEdit?s("div",{staticClass:"mui-col-sm-9 mui-col-xs-9 button "},[s("a",{staticClass:"but-orange fr delbtn",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.deleteGoods(0)}}},[t._v("删除")]),s("span",{staticClass:"f-blue fr clearbtn",on:{click:function(i){return t.deleteGoods(0,1)}}},[t._v("清除失效商品")])]):t._e()]),s("Header",{attrs:{isCar:t.isCar,ly1Length:t.ly1Length,ly2Length:t.ly2Length,zy1Length:t.zy1Length,meaushow:t.meaushow,bgcolor:t.bgcolor},on:{listTab:t.listTab}}),t.loading?s("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e()],1)},a=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])}],n=(s("5ab2"),s("6d57"),s("e44b"),s("e10e"),s("163d"),s("70ea")),o=s("0261"),c=s("ae8c"),l=s("57af"),r=s("d984"),u=s("ac21"),d=s("3ffa"),m=s("6288"),h=s("4260");function p(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,e)}return s}function f(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?p(Object(s),!0).forEach((function(i){Object(n["a"])(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}o["a"].use(r["a"]).use(u["a"]).use(d["a"]).use(m["a"]);var v={name:"car",data:function(){return{isCar:!0,meaushow:!0,bgcolor:"#fff",defaultBtn:'更多梯度价格<i class="icon-bot"></i>',loginUrl:"/v3/login?referer="+encodeURIComponent(window.location.href),type:1,delivery:1,paddingTop:88,isEdit:!1,isLogingo:1==h["a"].isLogin(),zy1DataIsCheck:!0,zy2DataIsCheck:!1,isAll:!0,totalMoney:0,totalNum:0,isNoContent:!1}},computed:f({},Object(c["c"])({loading:function(t){return t.car.loading},loading1:function(t){return t.car.loading1},ly1:function(t){return t.car.ly1},ly2:function(t){return t.car.ly2},zy1:function(t){return t.car.zy1},ly1Data:function(t){return t.car.ly1Data},ly2Data:function(t){return t.car.ly2Data},zy1Data:function(t){return t.car.zy1Data},zy2Data:function(t){return t.car.zy2Data},ly1Length:function(t){return t.car.ly1Length},ly2Length:function(t){return t.car.ly2Length},zy1Length:function(t){return t.car.zy1Length},ly1LoseData:function(t){return t.car.ly1LoseData},ly2LoseData:function(t){return t.car.ly2LoseData},zy1LoseData:function(t){return t.car.zy1LoseData},totlaMState:function(t){return t.car.totlaMState}})),created:function(){this.loginTip(),this.getCarCount(),this.getData(),this.priceInit()},watch:{totlaMState:function(t){t&&this.priceInit()},loading1:function(t){this.isNoContent=!1,t||(this.priceInit(),this.isNOD())},isEdit:function(t){for(var i=this.ly1Data,s=this.ly2Data,e=this.zy1Data,a=this.zy2Data,n=0;n<i.length;n++)i[n].editState=t;for(n=0;n<s.length;n++)s[n].editState=t;for(n=0;n<e.length;n++)e[n].editState=t;for(n=0;n<a.length;n++)a[n].editState=t},ly1Data:function(t){this.priceInit(),0==t.length&&this.isNOD()},ly2Data:function(t){this.priceInit(),0==t.length&&this.isNOD()},zy1Data:function(t){this.priceInit(),this.checkWatch(),0==t.length&&this.isNOD()},zy2Data:function(t){this.priceInit(),this.checkWatch(),0==t.length&&this.isNOD()},ly1LoseData:function(t){0==t.length&&this.isNOD()},ly2LoseData:function(t){0==t.length&&this.isNOD()},zy1LoseData:function(t){0==t.length&&this.isNOD()}},methods:{isNOD:function(){1==this.type?1==this.delivery?0==this.ly1Data.length&&0==this.ly1LoseData.length?this.isNoContent=!0:this.isNoContent=!1:0==this.ly2Data.length&&0==this.ly2LoseData.length?this.isNoContent=!0:this.isNoContent=!1:0==this.zy1Data.length&&0==this.zy2Data.length&&0==this.zy1LoseData.length?this.isNoContent=!0:this.isNoContent=!1},loginTip:function(){this.isLogingo?this.paddingTop=44:this.paddingTop=88},tipLy:function(){m["a"].alert({messageAlign:"left",title:"友情提醒",message:'<div class="remind-content">\n1.国际运费补差情况<br>(1)由于部分型号(如风扇、线缆、模块等)采购数量较多、体积较大或重量较重等原因出现超重情况时,视供应商不同可能需要客户补交超出部分的运费;<br>(2)出现超重情况时,我们客服人员会第一时间与您取得联系,提醒您补交运费事项。<br><br>2.关税、商检、3C费用<br>(1)根据国家海关规定:集成电路(IC)类的进口免关税;<br>(2)非集成电路类的元器件(如继电器、带通滤波器、衰减器、各类模块、线缆等)可能需要额外增收3%-12%的关税;<br>(3)开关、保险丝、气体放电管等需要商检和3C认证费用;<br>(4)如果您所提交的订单中包含需要缴纳关税或其他报关费用的型号,我们客服人员会第一时间与您取得联系,并告知补款相关事宜。<br><br>\n3.关于禁运型号<br>(1)猎芯网严格遵守海外供应商的相关出口限制规定,但凡涉及出口限制/禁运的型号均不予下单采购,具体情况需根据供应商的出货情况而定;<br>(2)有时可能会发生在发货前临时被告知属于出口限制/禁运范围,需要撤单退款的情况。由此而产生的损失,猎芯网将不承担责任。给您带来不便我们深表歉意,敬请谅解。<br><br>\n4.订单审核机制<br>(1)由于货物可能存在的关税、禁运等情况,猎芯网设置订单审核机制。用户成功提交订单后,需要由猎芯网客服人员确认订单,没有问题后再进行付款。订单审核的具体状态可登陆会员中心查看,或者联系在线客服了解详情。<br><br>\n5.型号数据更新延迟问题<br>(1)猎芯网部分数据来源于供应商,基本保证实时更新。但是由于供应商库存数据对全球开放或者供应商网站本身数据存在少量更新不及时的情况,您在采购时所看到的现货价格和库存数等信息有可能存在些许误差;<br>(2)成功下单后,若订单状态更新为“已确认订单”,请尽快付款,以免价格和库存数量发生变动。如有特殊情况发生,我们客服人员会第一时间与您取得联系。<br><br>客服热线:0755-82560956<br>企业QQ:800158432\n</div>'}).then((function(){}))},listTab:function(t){if(this.type=t,this.checkWatch(),this.priceInit(),this.isNOD(),this.isEdit=!1,2!=t||!this.zy1){if(1==t){if(1==this.delivery&&this.ly1)return;if(2==this.delivery&&this.ly2)return}this.getData()}},getData:function(){this.$store.dispatch({type:"cartList",delivery_place:this.delivery,order_goods_type:this.type})},getCarCount:function(){this.$store.dispatch({type:"allcount"})},deliveryTab:function(t){this.delivery=t,this.checkWatch(),this.priceInit(),this.isNOD(),this.isEdit=!1,1==this.delivery&&this.ly1||2==this.delivery&&this.ly2||this.getData()},priceRow:function(t,i,s){var e=document.getElementById("priceContent"+s),a=t[i].tiered.length;t[i]["priceCheck"]?(e.style.height="54px",this.$set(t[i],"priceCheck",!1),this.$set(t[i],"checkBtn",'更多梯度价格<i class="icon-bot"></i>')):(e.style.height=18*a+"px",e.style.transition="height ".concat(.125*(a-3),"s linear"),e.style.webkitTransition="height ".concat(.125*(a-3),"s linear"),this.$set(t[i],"priceCheck",!0),this.$set(t[i],"checkBtn",'收起梯度价格<i class="icon-top"></i>'))},isEditf:function(){this.isEdit=!this.isEdit},checkWatch:function(){var t=this;if(1==t.type){var i=1==t.delivery?this.ly1Data:this.ly2Data;t.isAll=!0;for(var s=0;s<i.length;s++)i[s].check||(t.isAll=!1)}else{t.isAll=!0;var e=this.zy1Data;t.zy1DataIsCheck=!0;for(s=0;s<e.length;s++)e[s].check||(t.zy1DataIsCheck=!1,t.isAll=!1);var a=this.zy2Data;t.zy2DataIsCheck=!0;for(var n=0;n<a.length;n++)a[n].check||(t.zy2DataIsCheck=!1,t.isAll=!1)}this.priceInit()},checkWatchZy:function(t){var i=this,s=this.zy1Data,e=this.zy2Data;if(1==t)for(var a=0;a<s.length;a++)i.zy1DataIsCheck?s[a].check=!1:s[a].check=!0;else for(a=0;a<e.length;a++)i.zy2DataIsCheck?e[a].check=!1:e[a].check=!0;this.priceInit()},checkAll:function(){var t=this;if(1==t.type){var i=1==t.delivery?this.ly1Data:this.ly2Data;if(i.length<=0)return;for(var s=0;s<i.length;s++)t.isAll?i[s].check=!1:i[s].check=!0}else{var e=this.zy1Data,a=this.zy2Data;if(t.isAll){t.zy1DataIsCheck=!1,t.zy2DataIsCheck=!1;for(s=0;s<e.length;s++)e[s].check=!1;for(s=0;s<a.length;s++)a[s].check=!1}else{t.zy1DataIsCheck=!0,t.zy2DataIsCheck=!0;for(var s=0;s<e.length;s++)e[s].check=!0;for(var s=0;s<a.length;s++)a[s].check=!0}}this.priceInit()},priceInit:function(){if(1==this.type){for(var t=1==this.delivery?this.ly1Data:this.ly2Data,i=0,s=0,e=0;e<t.length;e++)t[e].check&&(i+=Number(Number(t[e].goods_amount_format.slice(1)).toFixed(4)),s++);this.totalNum=s,this.totalMoney=(1==this.delivery?"¥":"$")+i.toFixed(4)}else{var a=this.zy1Data,n=this.zy2Data;for(i=0,s=0,e=0;e<a.length;e++)a[e].check&&(i+=Number(Number(a[e].goods_amount_format.slice(1)).toFixed(4)),s++);for(e=0;e<n.length;e++)n[e].check&&(i+=Number(Number(n[e].goods_amount_format.slice(1)).toFixed(4)),s++);this.totalNum=s,this.totalMoney="¥"+i.toFixed(4)}},deleteGoods:function(t,i){var s,e=this;i=i?"faild":"normal";if("normal"==i){if(0==t){var a=this.getIDs();s=a.join(",")}else s=t;if(""==s)return void Object(u["a"])({message:"请选中至少一个商品",duration:1500})}else{a=[];if(1==e.type)for(var n=1==e.delivery?this.ly1LoseData:this.ly2LoseData,o=0;o<n.length;o++)a.push(n[o].cart_id);else for(n=this.zy1LoseData,o=0;o<n.length;o++)a.push(n[o].cart_id);if(s=a.join(","),""==s)return void Object(u["a"])({message:"当前没有要清除的商品",duration:1500})}m["a"].confirm({message:"您确定要"+(i?"清除":"删除")+"当前商品吗",cancelButtonText:"再看看"}).then((function(){e.$store.dispatch({type:"cartDelete",cart_id:s,act:i,types:e.type,delivery:e.delivery})})).catch((function(){}))},getIDs:function(){var t=this,i=[];if(1==this.type)for(var s=1==t.delivery?this.ly1Data:this.ly2Data,e=0;e<s.length;e++)s[e].check&&i.push(s[e].cart_id);else{var a=this.zy1Data,n=this.zy2Data;if(a.length>0)for(e=0;e<a.length;e++)a[e].check&&i.push(a[e].cart_id);if(n.length>0)for(var o=0;o<n.length;o++)n[o].check&&i.push(n[o].cart_id)}return i},goSubmit:function(){var t=this,i=t.getIDs();if(0!=i.length){if(2==t.type){for(var s=t.zy1Data,e=t.zy2Data,a=[],n=0;n<i.length;n++){for(var o=i[n],c=0;c<s.length;c++)o==s[c].cart_id&&a.push(s[c].sale_type);for(var l=0;l<e.length;l++)o==e[l].cart_id&&a.push(e[l].sale_type)}if(-1!=a.indexOf("1")&&-1!=a.indexOf("2"))return void Object(u["a"])({message:"请分开结算期货订单和现货订单",duration:1500})}var r=2==t.type?window.location.origin+"/v3/order/confirm?type=zy":window.location.origin+"/v3/order/confirm?type=other";window.sessionStorage.setItem("car_xk",i.join(",")),t.$store.dispatch({type:"confirmBehavior",url_:r})}else Object(u["a"])({message:"当前没有选中商品",duration:1500})},changeNumber:function(t,i,s,e,a,n,o,c){var l=this,r=h["a"].aggxde(s),d=(e=h["a"].aggxde(e),a=h["a"].aggxde(a),n=h["a"].aggxde(n),r);if(a>e?a%e&&(a=Math.ceil(a/e)*e):a=e,n%e&&(n=Math.floor(n/e)*e),1==c){if(d-=e,d<a)return d=a,void Object(u["a"])({message:"购买数量不能小于最小购买数量!",duration:1500})}else if(2==c){if(d+=e,d>n){if(1==l.type)return d=n,void Object(u["a"])({message:"购买数量不能大于最大购买数量!",duration:1500});if(2==l.type&&6==i){l.$toast("想要购买更多,请联系客服");var m=r||0;return void(d=0!==m||m!==e?Math.floor(n/e)*e:m)}}}else{var p=Number(document.getElementById("test"+o).value);if(d=Math.ceil(p/e)*e,document.getElementById("test"+o).value=d,d<a)return d=a,Object(u["a"])({message:"购买数量不能小于最小购买数量!",duration:1500}),void(document.getElementById("test"+o).value=d);if(d>n){if(1==l.type)d=n,Object(u["a"])({message:"购买数量不能大于最大购买数量!",duration:1500});else if(2==l.type&&6==i){l.$toast("想要购买更多,请联系客服");m=r||0;d=0!==m||m!==e?Math.floor(n/e)*e:m}return void(document.getElementById("test"+o).value=d)}}this.$store.dispatch({type:"changenum",cart_id:o,num:d,delivery_place:1==l.type?l.delivery:"",types:c})}},components:{Header:l["a"]}},_=v,b=(s("34d2"),s("4023")),y=Object(b["a"])(_,e,a,!1,null,"e5d97ce8",null);i["default"]=y.exports},c8ad:function(t,i,s){},f26b:function(t,i,s){"use strict";s.d(i,"a",(function(){return c}));var e=s("57e5"),a=s("334b"),n=s("5bcd"),o=s("1a56"),c=function(t){var i=t.parent,s=t.bem,c=t.role;return{mixins:[Object(n["a"])(i),a["a"]],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===c&&!this.checked?-1:0}},methods:{onClick:function(t){var i=this,s=t.target,e=this.$refs.icon,a=e===s||e.contains(s);this.isDisabled||!a&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){i.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,i=this.checked,a=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:s("icon",[this.shape,{disabled:this.isDisabled,checked:i}]),style:{fontSize:Object(o["a"])(a)}},[this.slots("icon",{checked:i})||t(e["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,i=this.slots();if(i)return t("span",{class:s("label",[this.labelPosition,{disabled:this.isDisabled}])},[i])}},render:function(){var t=arguments[0],i=[this.genIcon()];return"left"===this.labelPosition?i.unshift(this.genLabel()):i.push(this.genLabel()),t("div",{attrs:{role:c,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:s([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[i])}}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b15670c"],{a018:function(t,s,i){},c864:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"zl_Detail"},[i("div",{staticClass:"details-head"},[i("div",{staticClass:"head_top clr"},[i("div",{staticClass:"head_top_left fl"},[i("img",{attrs:{src:t.goodDetail.brand_logo||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"},on:{onerror:t.imgErr,click:t.showImagePreview}})]),i("div",{staticClass:"head_top_right"},[i("h4",[i("strong",[t._v(t._s(t.goodDetail.sku_name))])]),i("p",{staticClass:"icon-hint"})])]),i("ul",{staticClass:"head_bottom clr"},[i("li",{staticClass:"fl"},[i("b",[t._v("型号")]),i("span",[t._v(t._s(t.goodDetail.goods_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("供应商")]),i("span",[t._v(t._s(t.goodDetail.supplier_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("制造商")]),i("span",[t._v(t._s(t.goodDetail.brand_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("封装")]),i("span",[t._v(t._s(t.goodDetail.encap?t.goodDetail.encap:"--"))])]),i("li",{staticClass:"fl"},[i("b",[t._v("类别")]),i("span",[t._v(t._s(t.goodDetail.class2_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("起订量")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.min_buy?t.goodDetail.min_buy:"1")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",[t._v("倍数")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.mpl?t.goodDetail.mpl:"1")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",{domProps:{innerHTML:t._s("一"+t.goodDetail.mpq_unit_name)}}),i("span",{staticClass:"f-orange",domProps:{innerHTML:t._s((t.goodDetail.min_mpq?t.goodDetail.min_mpq:"0")+t.goodDetail.goods_unit_name)}})]),t.goodDetail.isLcKc0?i("li",{staticClass:"fl"},[i("b",{},[t._v("库存")]),i("span",[t._v("可订货")])]):i("li",{staticClass:"fl"},[i("b",{},[t._v("库存")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.goods_number?t.goodDetail.goods_number:"0")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",{directives:[{name:"show",rawName:"v-show",value:!t.isYushou,expression:"!isYushou"}],staticClass:"f-orange"},[t._v("国内现货,当天发货")]),i("b",{directives:[{name:"show",rawName:"v-show",value:t.isYushou,expression:"isYushou"}],staticClass:"f-orange"},[t._v(t._s(t.goodDetail.cn_delivery_time||"3-7个工作日"))])]),t.goodDetail.sku_name?i("li",{staticClass:"fl",staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",color:"#999"}},[t._v("描述:"+t._s(t.goodDetail.sku_name))]):t._e()])]),i("div",{staticClass:"details-cont",staticStyle:{top:"210px"}},[i("div",{staticClass:"gradient"},[i("table",[i("tbody",[i("tr",[1==t.goodDetail.ac_type?[i("th",{staticClass:"xs-3"},[t._v("数量")]),i("th",{staticClass:"xs-3"},[t._v("原价(含税)")]),i("th",{staticClass:"xs-3"},[t._v("抢购价(含税)")])]:t._e(),2==t.goodDetail.ac_type||3==t.goodDetail.ac_type?[i("th",{staticClass:"xs-3"},[t._v("数量")]),i("th",{staticClass:"xs-3"},[t._v("原价(含税)")]),i("th",{staticClass:"xs-3"},[t._v("优惠价(含税)")])]:[i("th",{staticClass:"xs-6"},[t._v("数量")]),i("th",{staticClass:"xs-6"},[t._v("人民币")])]],2)]),i("tbody",[t.goodDetail.tiered?t._l(t.goodDetail.tiered,(function(s,e){return e<3||t.isShowMore?i("tr",[1==t.goodDetail.ac_type||2==t.goodDetail.ac_type||3==t.goodDetail.ac_type?[i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s(s.purchases+"+")}})]),i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_cn)}})]),i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_ac)}})])]:[i("td",{staticClass:"xs-6"},[i("span",{domProps:{innerHTML:t._s("¥"+s.purchases)}})]),i("td",{staticClass:"xs-6"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_cn)}})])]],2):t._e()})):t._e()],2)]),t.goodDetail.tiered?[t.goodDetail.tiered.length>3&&!t.isShowMore?i("div",{staticClass:"zkxk",on:{click:function(s){t.isShowMore=!t.isShowMore}}},[t._v("\n 更多梯度价格\n "),i("i",{staticClass:"icon-bot"})]):t._e(),t.isShowMore?i("div",{staticClass:"zkxk",on:{click:function(s){t.isShowMore=!t.isShowMore}}},[t._v("\n 收起梯度价格\n "),i("i",{staticClass:"icon-top"})]):t._e()]:t._e()],2),i("div",{staticClass:"price"},[i("dl",{staticClass:"clr"},[i("dt",[t._v("购买形式")]),i("dd",{staticClass:"tab"},[i("span",{class:{act:0==t.navInit},domProps:{innerHTML:t._s("按"+t.goodDetail.goods_unit_name+"购买")},on:{click:function(s){return t.changeNav(0)}}}),i("span",{class:{act:1==t.navInit},domProps:{innerHTML:t._s("按"+t.goodDetail.mpq_unit_name+"购买")},on:{click:function(s){return t.changeNav(1)}}})])]),i("dl",{staticClass:"clr"},[t._m(0),i("dd",{staticClass:"details-num"},[i("div",{staticClass:"number"},[0==t.navInit?[i("i",{staticClass:"iconfont icon-jian",on:{click:t.reduceSingle}}),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.goodsNum,expression:"goodsNum",modifiers:{trim:!0}}],attrs:{type:"text"},domProps:{value:t.goodsNum},on:{blur:[t.blurSingle,function(s){return t.$forceUpdate()}],input:function(s){s.target.composing||(t.goodsNum=s.target.value.trim())}}}),i("i",{staticClass:"iconfont icon-jia",on:{click:t.addSingle}})]:[i("i",{staticClass:"iconfont icon-jian",on:{click:t.reduceZu}}),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.ypNum,expression:"ypNum",modifiers:{trim:!0}}],attrs:{type:"text"},domProps:{value:t.ypNum},on:{blur:[t.blurZu,function(s){return t.$forceUpdate()}],input:function(s){s.target.composing||(t.ypNum=s.target.value.trim())}}}),i("i",{staticClass:"iconfont icon-jia",on:{click:t.addZu}})],i("div",{staticClass:"zyqhcbox",staticStyle:{display:"block"}},[i("div",{staticClass:"zyqhc clr"},[i("div",{staticClass:"lfldiv fl"},[i("font",{staticClass:"icon iconfont icon-tishi fl"})],1),i("div",{staticClass:"lfrdiv fr"},[t._v(t._s(t.tipText))])]),i("b",{staticClass:"bbiu"}),i("b",{staticClass:"bbiu1"})])],2)])]),i("dl",{staticClass:"clr"},[t._m(1),i("dd",{staticClass:"onePrice"},[t._v("¥"+t._s(t.singlePrice))])]),i("dl",{staticClass:"clr"},[t._m(2),i("dd",{staticClass:"totalPrice"},[t._v("¥"+t._s(t.total))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isYushou,expression:"isYushou"}],staticClass:"f-orange"},[t._v("因下单客户较多,库存情况以订单最终确认为准")])])]),i("div",{staticClass:"details-foot"},[i("span",{staticClass:"but-blue",on:{click:function(s){return t.xdOrAdd("1")}}},[t._v(t._s(t.btnText))]),i("span",{staticClass:"but-red",on:{click:function(s){return t.xdOrAdd("2")}}},[t._v("加入购物车")])])])},a=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 数\n "),i("span",{staticClass:"em1"}),t._v("量\n ")])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 单\n "),i("span",{staticClass:"em1"}),t._v("价\n ")])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 合\n "),i("span",{staticClass:"em1"}),t._v("计\n ")])}],o=(i("163d"),i("f548"),i("4260")),n=i("0261"),l=i("8dc4");n["a"].use(l["a"]);var r={props:{goodDetail:{type:Object,default:function(){return{}}}},data:function(){return{images:[],isShowMore:!1,ypNum:0,singlePrice:0,tipText:"",btnText:"",navInit:0,startNum:0,multipleNum:0,aggregateNum:0,stockNum:0,zyladderArr:[],zySingleInit:0,goodsNum:0,isYushou:!1}},computed:{total:function(){return(this.goodsNum*this.singlePrice).toFixed(4)}},watch:{goodDetail:function(t){0==o["a"].aggxde(t.stock)&&2==t.self_supplier_type?t.isLcKc0=!0:t.isLcKc0=!1},ypNum:function(t){String(t).indexOf(".")>0&&(this.ypNum=""),this.ypNum=String(t).replace(/\D/g,""),this.goodsNum=t*this.aggregateNum},"goodDetail.goods_id":function(){var t=this.goodDetail;if("{}"!=JSON.stringify(t)&&(3==this.goodDetail.goods_type||4==this.goodDetail.goods_type)&&(t.min_buy&&(this.startNum=o["a"].aggxde(t.min_buy)),t.mpl&&(this.multipleNum=o["a"].aggxde(t.mpl)),t.min_mpq&&(this.aggregateNum=o["a"].aggxde(t.min_mpq)),t.goods_number&&(this.stockNum=o["a"].aggxde(t.goods_number)),this.startNum==this.multipleNum?this.zySingleInit=this.startNum:this.startNum>this.multipleNum?this.startNum%this.multipleNum?this.zySingleInit=Math.ceil(this.startNum/this.multipleNum)*this.multipleNum:this.zySingleInit=this.startNum:this.zySingleInit=this.multipleNum,t.tiered))for(var s=0;s<t.tiered.length;s++){var i=t.tiered[s];this.zyladderArr.push({price:Number(i.price_cn).toFixed(4),num:o["a"].aggxde(i.purchases)})}},goodsNum:function(t){var s,i;(String(t).indexOf(".")>0&&(this.goodsNum=""),this.goodsNum=String(t).replace(/\D/g,""),this.ladderComputer(t),Number(t)>this.stockNum)?(this.isYushou=!0,this.tipText="库存不足,下单后我们将帮您订货",6==this.goodDetail.ac_type?(this.$toast("想要购买更多,请联系客服"),1==this.navInit?(i=this.ypNum||0,s=0!==i||1!==i?i-1:i,this.ypNum=s):(i=this.goodsNum||0,s=0!==i||i!==(this.multipleNum||this.startNum)?Math.floor(this.stockNum/(this.multipleNum||this.startNum))*(this.multipleNum||this.startNum):i,this.goodsNum=s)):this.btnText="预售订货"):(this.isYushou=!1,this.tipText="想要购买更多?直接下单,我们帮您订货",this.btnText="立即购买")},zySingleInit:function(t){this.goodsNum=t}},methods:{showImagePreview:function(t,s){var i=[this.goodDetail.brand_logo||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"],e=Object(l["a"])({images:i,asyncClose:!!s,showIndex:!1});s&&setTimeout((function(){e.close()}),s)},imgErr:function(){this.goodDetail.brand_logo="https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"},changeNav:function(t){this.navInit=t,1==t&&(this.goodsNum%this.aggregateNum?this.ypNum=Math.ceil(this.goodsNum/this.aggregateNum):this.ypNum=Number(this.goodsNum)/this.aggregateNum)},ladderComputer:function(t){var s=this.zyladderArr.length;if(s)if(1!=s){if(t<=this.zyladderArr[0].num)this.singlePrice=this.zyladderArr[0].price;else if(t>=this.zyladderArr[s-1].num)this.singlePrice=this.zyladderArr[s-1].price;else for(var i=0;i<this.zyladderArr.length;i++)if(t>=this.zyladderArr[i].num&&t<this.zyladderArr[i+1].num){this.singlePrice=this.zyladderArr[i].price;break}}else this.singlePrice=this.zyladderArr[0].price;else this.singlePrice=0},blurSingle:function(){if(Number(this.goodsNum))if(Number(this.goodsNum)%this.multipleNum){var t=Math.ceil(Number(this.goodsNum)/this.multipleNum)*this.multipleNum;t<this.startNum?(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")),this.goodsNum=this.zySingleInit):(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍,我们已为您调整购买数量。")),this.goodsNum=t)}else Number(this.goodsNum)<this.zySingleInit&&(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")),this.goodsNum=this.zySingleInit);else this.$toast("购买数量不能少于起订量!"),this.goodsNum=this.zySingleInit},blurZu:function(){Number(this.goodsNum)*Number(this.aggregateNum)<this.startNum&&(this.$toast("购买数量不能少于起订量!"),this.ypNum=Math.ceil(this.startNum/this.aggregateNum))},reduceSingle:function(){Number(this.goodsNum)<=this.startNum?this.$toast("购买数量不能少于起订量!"):Number(this.goodsNum)-this.multipleNum<this.startNum?this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")):this.goodsNum=Number(this.goodsNum)-this.multipleNum},addSingle:function(){this.goodsNum=Number(this.goodsNum)+this.multipleNum},reduceZu:function(){Number(this.goodsNum)<=this.startNum||(this.ypNum=Number(this.ypNum)-1)},addZu:function(){this.ypNum=Number(this.ypNum)+1},xdOrAdd:function(t){var s={id:this.goodDetail.goods_id,num:this.goodsNum,buy:1==t?1:-1,searchModel:this.$route.query.k||"",module_name:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",click_ptag:o["a"].getCookie("ptag")||""};if(o["a"].setCookie("ptag","pop-"+window.location.href,1),1==t)try{sensors.track("brandList",{click_ptag:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",element_name:"立即购买",click_account:this.goodDetail.account_name||"",brand_id:this.goodDetail.brand_id||"",class_id:this.goodDetail.class_id||"",supplier_id:this.goodDetail.supplier_id||""})}catch(i){}else try{sensors.track("brandList",{click_ptag:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",element_name:"加入购物车",click_account:this.goodDetail.account_name||"",brand_id:this.goodDetail.brand_id||"",class_id:this.goodDetail.class_id||"",supplier_id:this.goodDetail.supplier_id||""})}catch(i){}this.$store.dispatch({type:"addGoods",data:{datax:s,type:1,k:this.$route.query.k||""}})}}},u=r,c=(i("e1b6"),i("4023")),d=Object(c["a"])(u,e,a,!1,null,null,null);s["default"]=d.exports},e1b6:function(t,s,i){"use strict";var e=i("a018"),a=i.n(e);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b15670c"],{a018:function(t,s,i){},c864:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"zl_Detail"},[i("div",{staticClass:"details-head"},[i("div",{staticClass:"head_top clr"},[i("div",{staticClass:"head_top_left fl"},[i("img",{attrs:{src:t.goodDetail.brand_logo||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"},on:{onerror:t.imgErr,click:t.showImagePreview}})]),i("div",{staticClass:"head_top_right"},[i("h4",[i("strong",[t._v(t._s(t.goodDetail.sku_name))])]),i("p",{staticClass:"icon-hint"})])]),i("ul",{staticClass:"head_bottom clr"},[i("li",{staticClass:"fl"},[i("b",[t._v("型号")]),i("span",[t._v(t._s(t.goodDetail.goods_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("供应商")]),i("span",[t._v(t._s(t.goodDetail.supplier_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("制造商")]),i("span",[t._v(t._s(t.goodDetail.brand_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("封装")]),i("span",[t._v(t._s(t.goodDetail.encap?t.goodDetail.encap:"--"))])]),i("li",{staticClass:"fl"},[i("b",[t._v("类别")]),i("span",[t._v(t._s(t.goodDetail.class2_name))])]),i("li",{staticClass:"fl"},[i("b",[t._v("起订量")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.min_buy?t.goodDetail.min_buy:"1")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",[t._v("倍数")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.mpl?t.goodDetail.mpl:"1")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",{domProps:{innerHTML:t._s("一"+t.goodDetail.mpq_unit_name)}}),i("span",{staticClass:"f-orange",domProps:{innerHTML:t._s((t.goodDetail.min_mpq?t.goodDetail.min_mpq:"0")+t.goodDetail.goods_unit_name)}})]),t.goodDetail.isLcKc0?i("li",{staticClass:"fl"},[i("b",{},[t._v("库存")]),i("span",[t._v("可订货")])]):i("li",{staticClass:"fl"},[i("b",{},[t._v("库存")]),i("font",{staticClass:"f-orange",domProps:{innerHTML:t._s(t.goodDetail.goods_number?t.goodDetail.goods_number:"0")}}),t._v("\n "+t._s(t.goodDetail.goods_unit_name)+"\n ")],1),i("li",{staticClass:"fl"},[i("b",{directives:[{name:"show",rawName:"v-show",value:!t.isYushou,expression:"!isYushou"}],staticClass:"f-orange"},[t._v("国内现货,当天发货")]),i("b",{directives:[{name:"show",rawName:"v-show",value:t.isYushou,expression:"isYushou"}],staticClass:"f-orange"},[t._v(t._s(t.goodDetail.cn_delivery_time||"3-7个工作日"))])]),t.goodDetail.sku_name?i("li",{staticClass:"fl",staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",color:"#999"}},[t._v("描述:"+t._s(t.goodDetail.sku_name))]):t._e()])]),i("div",{staticClass:"details-cont",staticStyle:{top:"210px"}},[i("div",{staticClass:"gradient"},[i("table",[i("tbody",[i("tr",[1==t.goodDetail.ac_type?[i("th",{staticClass:"xs-3"},[t._v("数量")]),i("th",{staticClass:"xs-3"},[t._v("原价(含税)")]),i("th",{staticClass:"xs-3"},[t._v("抢购价(含税)")])]:t._e(),2==t.goodDetail.ac_type||3==t.goodDetail.ac_type?[i("th",{staticClass:"xs-3"},[t._v("数量")]),i("th",{staticClass:"xs-3"},[t._v("原价(含税)")]),i("th",{staticClass:"xs-3"},[t._v("优惠价(含税)")])]:[i("th",{staticClass:"xs-6"},[t._v("数量")]),i("th",{staticClass:"xs-6"},[t._v("人民币")])]],2)]),i("tbody",[t.goodDetail.tiered?t._l(t.goodDetail.tiered,(function(s,e){return e<3||t.isShowMore?i("tr",[1==t.goodDetail.ac_type||2==t.goodDetail.ac_type||3==t.goodDetail.ac_type?[i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s(s.purchases+"+")}})]),i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_cn)}})]),i("td",{staticClass:"xs-3"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_ac)}})])]:[i("td",{staticClass:"xs-6"},[i("span",{domProps:{innerHTML:t._s("¥"+s.purchases)}})]),i("td",{staticClass:"xs-6"},[i("span",{domProps:{innerHTML:t._s("¥"+s.price_cn)}})])]],2):t._e()})):t._e()],2)]),t.goodDetail.tiered?[t.goodDetail.tiered.length>3&&!t.isShowMore?i("div",{staticClass:"zkxk",on:{click:function(s){t.isShowMore=!t.isShowMore}}},[t._v("\n 更多梯度价格\n "),i("i",{staticClass:"icon-bot"})]):t._e(),t.isShowMore?i("div",{staticClass:"zkxk",on:{click:function(s){t.isShowMore=!t.isShowMore}}},[t._v("\n 收起梯度价格\n "),i("i",{staticClass:"icon-top"})]):t._e()]:t._e()],2),i("div",{staticClass:"price"},[i("dl",{staticClass:"clr"},[i("dt",[t._v("购买形式")]),i("dd",{staticClass:"tab"},[i("span",{class:{act:0==t.navInit},domProps:{innerHTML:t._s("按"+t.goodDetail.goods_unit_name+"购买")},on:{click:function(s){return t.changeNav(0)}}}),i("span",{class:{act:1==t.navInit},domProps:{innerHTML:t._s("按"+t.goodDetail.mpq_unit_name+"购买")},on:{click:function(s){return t.changeNav(1)}}})])]),i("dl",{staticClass:"clr"},[t._m(0),i("dd",{staticClass:"details-num"},[i("div",{staticClass:"number"},[0==t.navInit?[i("i",{staticClass:"iconfont icon-jian",on:{click:t.reduceSingle}}),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.goodsNum,expression:"goodsNum",modifiers:{trim:!0}}],attrs:{type:"text"},domProps:{value:t.goodsNum},on:{blur:[t.blurSingle,function(s){return t.$forceUpdate()}],input:function(s){s.target.composing||(t.goodsNum=s.target.value.trim())}}}),i("i",{staticClass:"iconfont icon-jia",on:{click:t.addSingle}})]:[i("i",{staticClass:"iconfont icon-jian",on:{click:t.reduceZu}}),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.ypNum,expression:"ypNum",modifiers:{trim:!0}}],attrs:{type:"text"},domProps:{value:t.ypNum},on:{blur:[t.blurZu,function(s){return t.$forceUpdate()}],input:function(s){s.target.composing||(t.ypNum=s.target.value.trim())}}}),i("i",{staticClass:"iconfont icon-jia",on:{click:t.addZu}})],i("div",{staticClass:"zyqhcbox",staticStyle:{display:"block"}},[i("div",{staticClass:"zyqhc clr"},[i("div",{staticClass:"lfldiv fl"},[i("font",{staticClass:"icon iconfont icon-tishi fl"})],1),i("div",{staticClass:"lfrdiv fr"},[t._v(t._s(t.tipText))])]),i("b",{staticClass:"bbiu"}),i("b",{staticClass:"bbiu1"})])],2)])]),i("dl",{staticClass:"clr"},[t._m(1),i("dd",{staticClass:"onePrice"},[t._v("¥"+t._s(t.singlePrice))])]),i("dl",{staticClass:"clr"},[t._m(2),i("dd",{staticClass:"totalPrice"},[t._v("¥"+t._s(t.total))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isYushou,expression:"isYushou"}],staticClass:"f-orange"},[t._v("因下单客户较多,库存情况以订单最终确认为准")])])]),i("div",{staticClass:"details-foot"},[i("span",{staticClass:"but-blue",on:{click:function(s){return t.xdOrAdd("1")}}},[t._v(t._s(t.btnText))]),i("span",{staticClass:"but-red",on:{click:function(s){return t.xdOrAdd("2")}}},[t._v("加入购物车")])])])},a=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 数\n "),i("span",{staticClass:"em1"}),t._v("量\n ")])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 单\n "),i("span",{staticClass:"em1"}),t._v("价\n ")])},function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("dt",[t._v("\n 合\n "),i("span",{staticClass:"em1"}),t._v("计\n ")])}],o=(i("163d"),i("f548"),i("4260")),l=i("0261"),n=i("8dc4");l["a"].use(n["a"]);var r={props:{goodDetail:{type:Object,default:function(){return{}}}},data:function(){return{images:[],isShowMore:!1,ypNum:0,singlePrice:0,tipText:"",btnText:"",navInit:0,startNum:0,multipleNum:0,aggregateNum:0,stockNum:0,zyladderArr:[],zySingleInit:0,goodsNum:0,isYushou:!1}},computed:{total:function(){return(this.goodsNum*this.singlePrice).toFixed(4)}},watch:{goodDetail:function(t){0==o["a"].aggxde(t.stock)&&2==t.self_supplier_type?t.isLcKc0=!0:t.isLcKc0=!1},ypNum:function(t){String(t).indexOf(".")>0&&(this.ypNum=""),this.ypNum=String(t).replace(/\D/g,""),this.goodsNum=t*this.aggregateNum},"goodDetail.goods_id":function(){var t=this.goodDetail;if("{}"!=JSON.stringify(t)&&(3==this.goodDetail.goods_type||4==this.goodDetail.goods_type)&&(t.min_buy&&(this.startNum=o["a"].aggxde(t.min_buy)),t.mpl&&(this.multipleNum=o["a"].aggxde(t.mpl)),t.min_mpq&&(this.aggregateNum=o["a"].aggxde(t.min_mpq)),t.goods_number&&(this.stockNum=o["a"].aggxde(t.goods_number)),this.startNum==this.multipleNum?this.zySingleInit=this.startNum:this.startNum>this.multipleNum?this.startNum%this.multipleNum?this.zySingleInit=Math.ceil(this.startNum/this.multipleNum)*this.multipleNum:this.zySingleInit=this.startNum:this.zySingleInit=this.multipleNum,t.tiered))for(var s=0;s<t.tiered.length;s++){var i=t.tiered[s];this.zyladderArr.push({price:Number(i.price_cn).toFixed(4),num:o["a"].aggxde(i.purchases)})}},goodsNum:function(t){var s,i;(String(t).indexOf(".")>0&&(this.goodsNum=""),this.goodsNum=String(t).replace(/\D/g,""),this.ladderComputer(t),Number(t)>this.stockNum)?(this.isYushou=!0,this.tipText="库存不足,下单后我们将帮您订货",6==this.goodDetail.ac_type&&1==this.goodDetail.allow_presale?(this.$toast("想要购买更多,请联系客服"),1==this.navInit?(i=this.ypNum||0,s=0!==i||1!==i?i-1:i,this.ypNum=s):(i=this.goodsNum||0,s=0!==i||i!==(this.multipleNum||this.startNum)?Math.floor(this.stockNum/(this.multipleNum||this.startNum))*(this.multipleNum||this.startNum):i,this.goodsNum=s)):this.btnText="预售订货"):(this.isYushou=!1,this.tipText="想要购买更多?直接下单,我们帮您订货",this.btnText="立即购买")},zySingleInit:function(t){this.goodsNum=t}},methods:{showImagePreview:function(t,s){var i=[this.goodDetail.brand_logo||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"],e=Object(n["a"])({images:i,asyncClose:!!s,showIndex:!1});s&&setTimeout((function(){e.close()}),s)},imgErr:function(){this.goodDetail.brand_logo="https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"},changeNav:function(t){this.navInit!=t&&(6==this.goodDetail.ac_type&&1==this.goodDetail.allow_presale&&this.aggregateNum>this.stockNum?this.$toast("想要购买更多,请联系客服"):(this.navInit=t,1==t&&(this.goodsNum%this.aggregateNum?this.ypNum=Math.ceil(this.goodsNum/this.aggregateNum):this.ypNum=Number(this.goodsNum)/this.aggregateNum)))},ladderComputer:function(t){var s=this.zyladderArr.length;if(s)if(1!=s){if(t<=this.zyladderArr[0].num)this.singlePrice=this.zyladderArr[0].price;else if(t>=this.zyladderArr[s-1].num)this.singlePrice=this.zyladderArr[s-1].price;else for(var i=0;i<this.zyladderArr.length;i++)if(t>=this.zyladderArr[i].num&&t<this.zyladderArr[i+1].num){this.singlePrice=this.zyladderArr[i].price;break}}else this.singlePrice=this.zyladderArr[0].price;else this.singlePrice=0},blurSingle:function(){if(Number(this.goodsNum))if(Number(this.goodsNum)%this.multipleNum){var t=Math.ceil(Number(this.goodsNum)/this.multipleNum)*this.multipleNum;t<this.startNum?(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")),this.goodsNum=this.zySingleInit):(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍,我们已为您调整购买数量。")),this.goodsNum=t)}else Number(this.goodsNum)<this.zySingleInit&&(this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")),this.goodsNum=this.zySingleInit);else this.$toast("购买数量不能少于起订量!"),this.goodsNum=this.zySingleInit},blurZu:function(){Number(this.goodsNum)*Number(this.aggregateNum)<this.startNum&&(this.$toast("购买数量不能少于起订量!"),this.ypNum=Math.ceil(this.startNum/this.aggregateNum))},reduceSingle:function(){Number(this.goodsNum)<=this.startNum?this.$toast("购买数量不能少于起订量!"):Number(this.goodsNum)-this.multipleNum<this.startNum?this.$toast("购买数量必须为".concat(this.multipleNum,"的整数倍且不能少于起订量!")):this.goodsNum=Number(this.goodsNum)-this.multipleNum},addSingle:function(){this.goodsNum=Number(this.goodsNum)+this.multipleNum},reduceZu:function(){Number(this.goodsNum)<=this.startNum||(this.ypNum=Number(this.ypNum)-1)},addZu:function(){this.ypNum=Number(this.ypNum)+1},xdOrAdd:function(t){var s={id:this.goodDetail.goods_id,num:this.goodsNum,buy:1==t?1:-1,searchModel:this.$route.query.k||"",module_name:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",click_ptag:o["a"].getCookie("ptag")||""};if(o["a"].setCookie("ptag","pop-"+window.location.href,1),1==t)try{sensors.track("brandList",{click_ptag:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",element_name:"立即购买",click_account:this.goodDetail.account_name||"",brand_id:this.goodDetail.brand_id||"",class_id:this.goodDetail.class_id||"",supplier_id:this.goodDetail.supplier_id||""})}catch(i){}else try{sensors.track("brandList",{click_ptag:this.goodDetail.module_name||"",click_adtag:this.$route.query.adtag||this.$route.query.ptag||"",element_name:"加入购物车",click_account:this.goodDetail.account_name||"",brand_id:this.goodDetail.brand_id||"",class_id:this.goodDetail.class_id||"",supplier_id:this.goodDetail.supplier_id||""})}catch(i){}this.$store.dispatch({type:"addGoods",data:{datax:s,type:1,k:this.$route.query.k||""}})}}},u=r,d=(i("e1b6"),i("4023")),c=Object(d["a"])(u,e,a,!1,null,null,null);s["default"]=c.exports},e1b6:function(t,s,i){"use strict";var e=i("a018"),a=i.n(e);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ebdf6a62"],{"334b":function(t,i,s){"use strict";s.d(i,"a",(function(){return e}));var e={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},"3ffa":function(t,i,s){"use strict";var e=s("b09f"),a=s("f26b"),n=Object(e["a"])("checkbox"),o=n[0],c=n[1];i["a"]=o({mixins:[Object(a["a"])({bem:c,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var i=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){i.checked=t}))},setParentValue:function(t){var i=this.parent,s=i.value.slice();if(t){if(i.max&&s.length>=i.max)return;-1===s.indexOf(this.name)&&(s.push(this.name),i.$emit("input",s))}else{var e=s.indexOf(this.name);-1!==e&&(s.splice(e,1),i.$emit("input",s))}}}})},"5bcd":function(t,i,s){"use strict";s.d(i,"a",(function(){return o})),s.d(i,"b",(function(){return c}));var e=s("0261");function a(t){var i=[];function s(t){t.forEach((function(t){i.push(t),t.componentInstance&&s(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&s(t.children)}))}return s(t),i}function n(t,i){var s=i.$vnode.componentOptions;if(s&&s.children){var e=a(s.children);t.sort((function(t,i){return e.indexOf(t.$vnode)-e.indexOf(i.$vnode)}))}}function o(t,i){var s,a;void 0===i&&(i={});var o=i.indexKey||"index";return e["a"].extend({inject:(s={},s[t]={default:null},s),computed:(a={parent:function(){return this.disableBindRelation?null:this[t]}},a[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},a),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(i){return i!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);n(t,this.parent),this.parent.children=t}}}})}function c(t){return{provide:function(){var i;return i={},i[t]=this,i},data:function(){return{children:[]}}}}},6288:function(t,i,s){"use strict";var e=s("e866"),a=s("0261"),n=s("b09f"),o=s("1a56"),c=s("6c7c"),l=s("a217"),r=s("23c4"),u=s.n(r),d=s("06d4"),m=s("36b5"),h=s("57e5"),p=s("d984"),f=Object(n["a"])("button"),v=f[0],_=f[1];function b(t,i,s,e){var a,n=i.tag,o=i.icon,l=i.type,r=i.color,f=i.plain,v=i.disabled,b=i.loading,y=i.hairline,C=i.loadingText,g={};function x(t){b||v||(Object(d["a"])(e,"click",t),Object(m["a"])(e))}function k(t){Object(d["a"])(e,"touchstart",t)}r&&(g.color=f?r:c["g"],f||(g.background=r),-1!==r.indexOf("gradient")?g.border=0:g.borderColor=r);var w=[_([l,i.size,{plain:f,loading:b,disabled:v,hairline:y,block:i.block,round:i.round,square:i.square}]),(a={},a[c["c"]]=y,a)];function D(){var e,a=[];return b?a.push(t(p["a"],{class:_("loading"),attrs:{size:i.loadingSize,type:i.loadingType,color:"currentColor"}})):o&&a.push(t(h["a"],{attrs:{name:o,classPrefix:i.iconPrefix},class:_("icon")})),e=b?C:s.default?s.default():i.text,e&&a.push(t("span",{class:_("text")},[e])),a}return t(n,u()([{style:g,class:w,attrs:{type:i.nativeType,disabled:v},on:{click:x,touchstart:k}},Object(d["b"])(e)]),[t("div",{class:_("content")},[D()])])}b.props=Object(e["a"])(Object(e["a"])({},m["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var y,C=v(b),g=Object(n["a"])("dialog"),x=g[0],k=g[1],w=g[2],D=x({mixins:[Object(l["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var i=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(s){!1!==s&&i.loading[t]&&i.onClose(t),i.loading.confirm=!1,i.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,i=this,s=this.$createElement,e=this.showCancelButton&&this.showConfirmButton;return s("div",{class:[c["d"],k("footer",{buttons:e})]},[this.showCancelButton&&s(C,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||w("cancel")},class:k("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){i.handleAction("cancel")}}}),this.showConfirmButton&&s(C,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||w("confirm")},class:[k("confirm"),(t={},t[c["b"]]=e,t)],style:{color:this.confirmButtonColor},on:{click:function(){i.handleAction("confirm")}}})])}},render:function(){var t,i=arguments[0];if(this.shouldRender){var s=this.message,e=this.messageAlign,a=this.slots(),n=this.slots("title")||this.title,c=n&&i("div",{class:k("header",{isolated:!s&&!a})},[n]),l=(a||s)&&i("div",{class:k("content")},[a||i("div",{domProps:{innerHTML:s},class:k("message",(t={"has-title":n},t[e]=e,t))})]);return i("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[i("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||s},class:[k(),this.className],style:{width:Object(o["a"])(this.width)}},[c,l,this.genButtons()])])}}}),z=s("ec86");function O(t){return document.body.contains(t)}function j(){y&&y.$destroy(),y=new(a["a"].extend(D))({el:document.createElement("div"),propsData:{lazyRender:!1}}),y.$on("input",(function(t){y.value=t}))}function N(t){return z["f"]?Promise.resolve():new Promise((function(i,s){y&&O(y.$el)||j(),Object(e["a"])(y,N.currentOptions,t,{resolve:i,reject:s})}))}N.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){y["confirm"===t?"resolve":"reject"](t)}},N.alert=N,N.confirm=function(t){return N(Object(e["a"])({showCancelButton:!0},t))},N.close=function(){y&&(y.value=!1)},N.setDefaultOptions=function(t){Object(e["a"])(N.currentOptions,t)},N.resetDefaultOptions=function(){N.currentOptions=Object(e["a"])({},N.defaultOptions)},N.resetDefaultOptions(),N.install=function(){a["a"].use(D)},N.Component=D,a["a"].prototype.$dialog=N;i["a"]=N},"6c7c":function(t,i,s){"use strict";s.d(i,"g",(function(){return e})),s.d(i,"d",(function(){return n})),s.d(i,"b",(function(){return o})),s.d(i,"a",(function(){return c})),s.d(i,"c",(function(){return l})),s.d(i,"e",(function(){return r})),s.d(i,"f",(function(){return u}));var e="#fff",a="van-hairline",n=a+"--top",o=a+"--left",c=a+"--bottom",l=a+"--surround",r=a+"--top-bottom",u=a+"-unset--top-bottom"},b365:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"car-page"},[s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.type,expression:"type==1"}],staticClass:"lxBox",style:{paddingTop:t.paddingTop+"px"}},[s("div",{staticClass:"lyNav clr lyfixed"},[s("span",{directives:[{name:"back-top-window",rawName:"v-back-top-window"}],staticClass:"fl",class:{act:1==t.delivery},on:{click:function(i){return t.deliveryTab(1)}}},[t._v("大陆交货("+t._s(t.ly1Length)+")"),s("font",{staticClass:"fr"},[t._v("|")])],1),s("span",{directives:[{name:"back-top-window",rawName:"v-back-top-window"}],staticClass:"fl",class:{act:2==t.delivery},on:{click:function(i){return t.deliveryTab(2)}}},[t._v("香港交货("+t._s(t.ly2Length)+")")])]),t.isLogingo?t._e():s("div",{staticClass:"logintip lyfixed"},[s("span",[t._v("登录后商品会同步到您账户中")]),s("a",{attrs:{href:t.loginUrl}},[t._v("登录")])]),s("div",{staticClass:"dataBox"},[t.isNoContent?t._e():s("div",{staticClass:"editBox clr lyfixed",style:{top:t.paddingTop+44+"px"}},[s("span",{staticClass:"remind fl",on:{click:t.tipLy}},[t._v("友情提醒"),s("i",{staticClass:"iconfont icon-tishi"})]),t.isEdit?s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("完成")]):t._e(),t.isEdit?t._e():s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("编辑")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.delivery,expression:"delivery==1"}],staticClass:"dlBox"},[t._l(t.ly1Data,(function(i,e){return s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/goods_"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-4 mui-col-xs-4 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.ly1Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])})),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(0)]):t._e(),t._l(t.ly1LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red ",attrs:{href:"/s/?k="+i.goods_name}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.delivery,expression:"delivery==2"}],staticClass:"hkBox"},[t._l(t.ly2Data,(function(i,e){return s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/goods_"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-4 mui-col-xs-4 f-red"},[t._v("$"+t._s(e.price_us))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.ly2Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.multiple,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])})),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(1)]):t._e(),t._l(t.ly2LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red muiclickbug",attrs:{href:"/s/?k="+i.goods_name,guid:"6436"}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2)])]),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.type,expression:"type==2"}],staticClass:"zyBox",style:{paddingTop:t.paddingTop-44+"px"}},[t.isLogingo?t._e():s("div",{staticClass:"logintip zyfixed"},[s("span",[t._v("登录后商品会同步到您账户中")]),s("a",{attrs:{href:t.loginUrl}},[t._v("登录")])]),s("div",{staticClass:"dataBox"},[t.isNoContent?t._e():s("div",{staticClass:"editBox clr zyfixed",style:{top:t.paddingTop+"px"}},[t.isEdit?s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("完成")]):t._e(),t.isEdit?t._e():s("a",{staticClass:"edit-btn fr",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.isEditf()}}},[t._v("编辑")])]),s("div",{staticClass:"zyDataGp"},[s("div",{staticClass:"xianhuoData"},[t.zy1Data.length>0?s("div",{staticClass:"mui-row headxianhuoqihuo"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c zdychec1"},[s("van-checkbox",{on:{click:function(i){return t.checkWatchZy(1)}},model:{value:t.zy1DataIsCheck,callback:function(i){t.zy1DataIsCheck=i},expression:"zy1DataIsCheck"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("font",{staticClass:"zyqxtype"},[t._v("现货商品")])],1)]):t._e(),t._l(t.zy1Data,(function(i,e){return[s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/item/"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)",guid:"1991"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("\n 库存:"),s("font",{domProps:{innerHTML:t._s(i.stock)}})],1),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",{staticStyle:{width:"37px"}},[t._v("型号:")]),s("p",{staticStyle:{"padding-left":"0px"}},[t._v(t._s(i.goods_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 倍数:"),s("font",{domProps:{innerHTML:t._s(i.mpl)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("\n 单价:"+t._s(i.goods_price_format)+"\n ")])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.zy1Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])]}))],2),s("div",{staticClass:"qihuoData"},[t.zy2Data.length>0?s("div",{staticClass:"mui-row headxianhuoqihuo"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c zdychec1"},[s("van-checkbox",{on:{click:function(i){return t.checkWatchZy(2)}},model:{value:t.zy2DataIsCheck,callback:function(i){t.zy2DataIsCheck=i},expression:"zy2DataIsCheck"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("font",{staticClass:"zyqxtype"},[t._v("期货商品")])],1)]):t._e(),t._l(t.zy2Data,(function(i,e){return[s("div",{staticClass:"mui-row shop-block sale_type_data"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c mt-10 zdychec"},[s("van-checkbox",{on:{change:t.checkWatch},model:{value:i.check,callback:function(s){t.$set(i,"check",s)},expression:"item.check"}})],1),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{staticClass:"f-333",attrs:{href:"/item/"+i.goods_id+".html"}},[t._v(t._s(i.sku_name))])]),s("p",{staticClass:"mui-col-sm-1 mui-col-xs-1 ta-c"},[s("a",{directives:[{name:"show",rawName:"v-show",value:i.editState,expression:"item.editState"}],staticClass:"icon iconfont icon-shanchu delete-tier f-333",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.deleteGoods(i.cart_id)}}})])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r "},[t._v("\n 库存:"),s("font",{domProps:{innerHTML:t._s(i.stock)}})],1),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",{staticStyle:{width:"37px"}},[t._v("型号:")]),s("p",{staticStyle:{"padding-left":"0px"}},[t._v(t._s(i.goods_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 倍数:"),s("font",{domProps:{innerHTML:t._s(i.mpl)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("\n 单价:"+t._s(i.goods_price_format)+"\n ")])]),s("div",{staticClass:"mui-row"},[s("div",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[s("div",{staticClass:"morePrice"},[s("div",{class:{lyClass:i.tiered&&i.tiered.length<4,lyMoreData:i.tiered&&i.tiered.length>3},attrs:{id:"priceContent"+i.cart_id}},t._l(i.tiered,(function(e,a){return s("div",{staticClass:"mui-row act",class:{dataNo:a>2&&!i.priceCheck}},[s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[s("font",{domProps:{innerHTML:t._s(e.purchases)}}),t._v("+")],1),s("p",{staticClass:"mui-col-sm-6 mui-col-xs-6 f-red"},[t._v("¥"+t._s(6==i.ac_type?e.price_ac:e.price_cn))])])})),0),i.tiered&&i.tiered.length>3?s("div",{staticClass:"more-height",domProps:{innerHTML:t._s(i.checkBtn||t.defaultBtn)},on:{click:function(s){return t.priceRow(t.zy2Data,e,i.cart_id)}}},[t._v("更多梯度价格"),s("i",{staticClass:"iconfont icon-bot"})]):t._e()])]),s("div",{staticClass:"mui-col-sm-5 mui-col-xs-5"},[s("div",{staticClass:"clr add-num"},[s("div",{staticClass:"mui-numbox edit-input"},[s("button",{staticClass:"mui-btn mui-btn-numbox-minus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,1)}}},[s("i",{staticClass:"icon iconfont icon-jian"})]),s("input",{staticClass:"mui-input-numbox valuep",attrs:{type:"number",id:"test"+i.cart_id},domProps:{value:t._f("numberCode")(i.goods_number)},on:{blur:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,3)}}}),s("button",{staticClass:"mui-btn mui-btn-numbox-plus ",attrs:{type:"button"},on:{click:function(s){return t.changeNumber(i.allow_presale,i.ac_type,i.goods_number,i.mpl,i.min_buy,i.stock,i.cart_id,2)}}},[s("i",{staticClass:"icon iconfont icon-jia"})])])]),s("p",{staticClass:"subtotal f-999"},[t._v("\n 小计:"),s("b",{staticClass:"f-red rewTotal"},[t._v(t._s(i.goods_amount_format))])])])])])])]}))],2),t.isNoContent?s("div",{staticClass:"shopcart content-no"},[t._m(2)]):t._e(),t._l(t.zy1LoseData,(function(i){return s("div",{staticClass:"sxData"},[s("div",{staticClass:"mui-row shop-block shop-lose"},[s("div",{staticClass:"mui-col-sm-1 mui-col-xs-1"}),s("div",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("h4",{staticClass:"mui-row"},[s("p",{staticClass:"mui-col-sm-11 mui-col-xs-11"},[s("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(i.sku_name))])])]),s("ul",{staticClass:"mui-row"},[s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("制造商:")]),s("p",[t._v(t._s(i.brand_name))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r huoqi"},[t._v("货期:"+t._s(i.delivery_time||"- -"))]),s("li",{staticClass:"mui-col-sm-8 mui-col-xs-8"},[s("span",[t._v("供应商:")]),s("p",[t._v(t._s(i.supplier_name||"- -"))])]),s("li",{staticClass:"mui-col-sm-4 mui-col-xs-4 t-r"},[t._v("\n 最小起订量:"),s("font",{domProps:{innerHTML:t._s(i.min_buy)}})],1),s("li",{staticClass:"mui-col-sm-7 mui-col-xs-7"},[t._v("\n 标准包装量:"),s("font",{domProps:{innerHTML:t._s(i.min_mpq)}})],1),s("li",{staticClass:"mui-col-sm-5 mui-col-xs-5 danjia t-r"},[t._v("单价:"+t._s(i.goods_price_format))])]),s("p",{staticClass:"lose-but"},[s("a",{staticClass:"fr but-bor-red muiclickbug",attrs:{href:"/s/?k="+i.goods_name,guid:"6436"}},[t._v("去搜索")]),s("span",[t._v("已失效")])])])])])}))],2)])]),t.isNoContent?t._e():s("div",{staticClass:"mui-row shop-but"},[s("div",{staticClass:"mui-col-sm-3 mui-col-xs-3 checkallbox"},[s("van-checkbox",{on:{click:t.checkAll},model:{value:t.isAll,callback:function(i){t.isAll=i},expression:"isAll"}},[t._v("全选")])],1),t.isEdit?t._e():s("div",{staticClass:"mui-col-sm-6 mui-col-xs-6 sum"},[s("h4",{staticClass:"fw"},[t._v("总金额:"),s("span",{staticClass:"f-red "},[t._v(t._s(t.totalMoney))])]),s("p",{staticClass:"f-999"},[t._v("(不含运费)")])]),t.isEdit?t._e():s("div",{staticClass:"mui-col-sm-3 mui-col-xs-3 button",class:{dis:0==t.totalNum}},[s("a",{staticClass:"but-red",attrs:{href:"javascript:void('0')"},on:{click:t.goSubmit}},[t._v("去结算"),s("span",[t._v("("),s("span",{staticClass:"carNum"},[t._v(t._s(t.totalNum))]),t._v(")")])])]),t.isEdit?s("div",{staticClass:"mui-col-sm-9 mui-col-xs-9 button "},[s("a",{staticClass:"but-orange fr delbtn",attrs:{href:"javascript:void(0)"},on:{click:function(i){return t.deleteGoods(0)}}},[t._v("删除")]),s("span",{staticClass:"f-blue fr clearbtn",on:{click:function(i){return t.deleteGoods(0,1)}}},[t._v("清除失效商品")])]):t._e()]),s("Header",{attrs:{isCar:t.isCar,ly1Length:t.ly1Length,ly2Length:t.ly2Length,zy1Length:t.zy1Length,meaushow:t.meaushow,bgcolor:t.bgcolor},on:{listTab:t.listTab}}),t.loading?s("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e()],1)},a=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dl",{staticClass:"shop-empty"},[s("dt",[s("i",{staticClass:"iconfont icon-gouwuche1"})]),s("dd",[s("h4",[t._v("您的购物车空空如也")]),s("p",[s("a",{staticClass:"muiclickbug",attrs:{href:"/v3/search/search_index.html"}},[t._v("搜索型号 >>")])])])])}],n=(s("5ab2"),s("6d57"),s("e44b"),s("e10e"),s("163d"),s("70ea")),o=s("0261"),c=s("ae8c"),l=s("57af"),r=s("d984"),u=s("ac21"),d=s("3ffa"),m=s("6288"),h=s("4260");function p(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,e)}return s}function f(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?p(Object(s),!0).forEach((function(i){Object(n["a"])(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}o["a"].use(r["a"]).use(u["a"]).use(d["a"]).use(m["a"]);var v={name:"car",data:function(){return{isCar:!0,meaushow:!0,bgcolor:"#fff",defaultBtn:'更多梯度价格<i class="icon-bot"></i>',loginUrl:"/v3/login?referer="+encodeURIComponent(window.location.href),type:1,delivery:1,paddingTop:88,isEdit:!1,isLogingo:1==h["a"].isLogin(),zy1DataIsCheck:!0,zy2DataIsCheck:!1,isAll:!0,totalMoney:0,totalNum:0,isNoContent:!1}},computed:f({},Object(c["c"])({loading:function(t){return t.car.loading},loading1:function(t){return t.car.loading1},ly1:function(t){return t.car.ly1},ly2:function(t){return t.car.ly2},zy1:function(t){return t.car.zy1},ly1Data:function(t){return t.car.ly1Data},ly2Data:function(t){return t.car.ly2Data},zy1Data:function(t){return t.car.zy1Data},zy2Data:function(t){return t.car.zy2Data},ly1Length:function(t){return t.car.ly1Length},ly2Length:function(t){return t.car.ly2Length},zy1Length:function(t){return t.car.zy1Length},ly1LoseData:function(t){return t.car.ly1LoseData},ly2LoseData:function(t){return t.car.ly2LoseData},zy1LoseData:function(t){return t.car.zy1LoseData},totlaMState:function(t){return t.car.totlaMState}})),created:function(){this.loginTip(),this.getCarCount(),this.getData(),this.priceInit()},watch:{totlaMState:function(t){t&&this.priceInit()},loading1:function(t){this.isNoContent=!1,t||(this.priceInit(),this.isNOD())},isEdit:function(t){for(var i=this.ly1Data,s=this.ly2Data,e=this.zy1Data,a=this.zy2Data,n=0;n<i.length;n++)i[n].editState=t;for(n=0;n<s.length;n++)s[n].editState=t;for(n=0;n<e.length;n++)e[n].editState=t;for(n=0;n<a.length;n++)a[n].editState=t},ly1Data:function(t){this.priceInit(),0==t.length&&this.isNOD()},ly2Data:function(t){this.priceInit(),0==t.length&&this.isNOD()},zy1Data:function(t){this.priceInit(),this.checkWatch(),0==t.length&&this.isNOD()},zy2Data:function(t){this.priceInit(),this.checkWatch(),0==t.length&&this.isNOD()},ly1LoseData:function(t){0==t.length&&this.isNOD()},ly2LoseData:function(t){0==t.length&&this.isNOD()},zy1LoseData:function(t){0==t.length&&this.isNOD()}},methods:{isNOD:function(){1==this.type?1==this.delivery?0==this.ly1Data.length&&0==this.ly1LoseData.length?this.isNoContent=!0:this.isNoContent=!1:0==this.ly2Data.length&&0==this.ly2LoseData.length?this.isNoContent=!0:this.isNoContent=!1:0==this.zy1Data.length&&0==this.zy2Data.length&&0==this.zy1LoseData.length?this.isNoContent=!0:this.isNoContent=!1},loginTip:function(){this.isLogingo?this.paddingTop=44:this.paddingTop=88},tipLy:function(){m["a"].alert({messageAlign:"left",title:"友情提醒",message:'<div class="remind-content">\n1.国际运费补差情况<br>(1)由于部分型号(如风扇、线缆、模块等)采购数量较多、体积较大或重量较重等原因出现超重情况时,视供应商不同可能需要客户补交超出部分的运费;<br>(2)出现超重情况时,我们客服人员会第一时间与您取得联系,提醒您补交运费事项。<br><br>2.关税、商检、3C费用<br>(1)根据国家海关规定:集成电路(IC)类的进口免关税;<br>(2)非集成电路类的元器件(如继电器、带通滤波器、衰减器、各类模块、线缆等)可能需要额外增收3%-12%的关税;<br>(3)开关、保险丝、气体放电管等需要商检和3C认证费用;<br>(4)如果您所提交的订单中包含需要缴纳关税或其他报关费用的型号,我们客服人员会第一时间与您取得联系,并告知补款相关事宜。<br><br>\n3.关于禁运型号<br>(1)猎芯网严格遵守海外供应商的相关出口限制规定,但凡涉及出口限制/禁运的型号均不予下单采购,具体情况需根据供应商的出货情况而定;<br>(2)有时可能会发生在发货前临时被告知属于出口限制/禁运范围,需要撤单退款的情况。由此而产生的损失,猎芯网将不承担责任。给您带来不便我们深表歉意,敬请谅解。<br><br>\n4.订单审核机制<br>(1)由于货物可能存在的关税、禁运等情况,猎芯网设置订单审核机制。用户成功提交订单后,需要由猎芯网客服人员确认订单,没有问题后再进行付款。订单审核的具体状态可登陆会员中心查看,或者联系在线客服了解详情。<br><br>\n5.型号数据更新延迟问题<br>(1)猎芯网部分数据来源于供应商,基本保证实时更新。但是由于供应商库存数据对全球开放或者供应商网站本身数据存在少量更新不及时的情况,您在采购时所看到的现货价格和库存数等信息有可能存在些许误差;<br>(2)成功下单后,若订单状态更新为“已确认订单”,请尽快付款,以免价格和库存数量发生变动。如有特殊情况发生,我们客服人员会第一时间与您取得联系。<br><br>客服热线:0755-82560956<br>企业QQ:800158432\n</div>'}).then((function(){}))},listTab:function(t){if(this.type=t,this.checkWatch(),this.priceInit(),this.isNOD(),this.isEdit=!1,2!=t||!this.zy1){if(1==t){if(1==this.delivery&&this.ly1)return;if(2==this.delivery&&this.ly2)return}this.getData()}},getData:function(){this.$store.dispatch({type:"cartList",delivery_place:this.delivery,order_goods_type:this.type})},getCarCount:function(){this.$store.dispatch({type:"allcount"})},deliveryTab:function(t){this.delivery=t,this.checkWatch(),this.priceInit(),this.isNOD(),this.isEdit=!1,1==this.delivery&&this.ly1||2==this.delivery&&this.ly2||this.getData()},priceRow:function(t,i,s){var e=document.getElementById("priceContent"+s),a=t[i].tiered.length;t[i]["priceCheck"]?(e.style.height="54px",this.$set(t[i],"priceCheck",!1),this.$set(t[i],"checkBtn",'更多梯度价格<i class="icon-bot"></i>')):(e.style.height=18*a+"px",e.style.transition="height ".concat(.125*(a-3),"s linear"),e.style.webkitTransition="height ".concat(.125*(a-3),"s linear"),this.$set(t[i],"priceCheck",!0),this.$set(t[i],"checkBtn",'收起梯度价格<i class="icon-top"></i>'))},isEditf:function(){this.isEdit=!this.isEdit},checkWatch:function(){var t=this;if(1==t.type){var i=1==t.delivery?this.ly1Data:this.ly2Data;t.isAll=!0;for(var s=0;s<i.length;s++)i[s].check||(t.isAll=!1)}else{t.isAll=!0;var e=this.zy1Data;t.zy1DataIsCheck=!0;for(s=0;s<e.length;s++)e[s].check||(t.zy1DataIsCheck=!1,t.isAll=!1);var a=this.zy2Data;t.zy2DataIsCheck=!0;for(var n=0;n<a.length;n++)a[n].check||(t.zy2DataIsCheck=!1,t.isAll=!1)}this.priceInit()},checkWatchZy:function(t){var i=this,s=this.zy1Data,e=this.zy2Data;if(1==t)for(var a=0;a<s.length;a++)i.zy1DataIsCheck?s[a].check=!1:s[a].check=!0;else for(a=0;a<e.length;a++)i.zy2DataIsCheck?e[a].check=!1:e[a].check=!0;this.priceInit()},checkAll:function(){var t=this;if(1==t.type){var i=1==t.delivery?this.ly1Data:this.ly2Data;if(i.length<=0)return;for(var s=0;s<i.length;s++)t.isAll?i[s].check=!1:i[s].check=!0}else{var e=this.zy1Data,a=this.zy2Data;if(t.isAll){t.zy1DataIsCheck=!1,t.zy2DataIsCheck=!1;for(s=0;s<e.length;s++)e[s].check=!1;for(s=0;s<a.length;s++)a[s].check=!1}else{t.zy1DataIsCheck=!0,t.zy2DataIsCheck=!0;for(var s=0;s<e.length;s++)e[s].check=!0;for(var s=0;s<a.length;s++)a[s].check=!0}}this.priceInit()},priceInit:function(){if(1==this.type){for(var t=1==this.delivery?this.ly1Data:this.ly2Data,i=0,s=0,e=0;e<t.length;e++)t[e].check&&(i+=Number(Number(t[e].goods_amount_format.slice(1)).toFixed(4)),s++);this.totalNum=s,this.totalMoney=(1==this.delivery?"¥":"$")+i.toFixed(4)}else{var a=this.zy1Data,n=this.zy2Data;for(i=0,s=0,e=0;e<a.length;e++)a[e].check&&(i+=Number(Number(a[e].goods_amount_format.slice(1)).toFixed(4)),s++);for(e=0;e<n.length;e++)n[e].check&&(i+=Number(Number(n[e].goods_amount_format.slice(1)).toFixed(4)),s++);this.totalNum=s,this.totalMoney="¥"+i.toFixed(4)}},deleteGoods:function(t,i){var s,e=this;i=i?"faild":"normal";if("normal"==i){if(0==t){var a=this.getIDs();s=a.join(",")}else s=t;if(""==s)return void Object(u["a"])({message:"请选中至少一个商品",duration:1500})}else{a=[];if(1==e.type)for(var n=1==e.delivery?this.ly1LoseData:this.ly2LoseData,o=0;o<n.length;o++)a.push(n[o].cart_id);else for(n=this.zy1LoseData,o=0;o<n.length;o++)a.push(n[o].cart_id);if(s=a.join(","),""==s)return void Object(u["a"])({message:"当前没有要清除的商品",duration:1500})}m["a"].confirm({message:"您确定要"+(i?"清除":"删除")+"当前商品吗",cancelButtonText:"再看看"}).then((function(){e.$store.dispatch({type:"cartDelete",cart_id:s,act:i,types:e.type,delivery:e.delivery})})).catch((function(){}))},getIDs:function(){var t=this,i=[];if(1==this.type)for(var s=1==t.delivery?this.ly1Data:this.ly2Data,e=0;e<s.length;e++)s[e].check&&i.push(s[e].cart_id);else{var a=this.zy1Data,n=this.zy2Data;if(a.length>0)for(e=0;e<a.length;e++)a[e].check&&i.push(a[e].cart_id);if(n.length>0)for(var o=0;o<n.length;o++)n[o].check&&i.push(n[o].cart_id)}return i},goSubmit:function(){var t=this,i=t.getIDs();if(0!=i.length){if(2==t.type){for(var s=t.zy1Data,e=t.zy2Data,a=[],n=0;n<i.length;n++){for(var o=i[n],c=0;c<s.length;c++)o==s[c].cart_id&&a.push(s[c].sale_type);for(var l=0;l<e.length;l++)o==e[l].cart_id&&a.push(e[l].sale_type)}if(-1!=a.indexOf("1")&&-1!=a.indexOf("2"))return void Object(u["a"])({message:"请分开结算期货订单和现货订单",duration:1500})}var r=2==t.type?window.location.origin+"/v3/order/confirm?type=zy":window.location.origin+"/v3/order/confirm?type=other";window.sessionStorage.setItem("car_xk",i.join(",")),t.$store.dispatch({type:"confirmBehavior",url_:r})}else Object(u["a"])({message:"当前没有选中商品",duration:1500})},changeNumber:function(t,i,s,e,a,n,o,c){var l=this,r=h["a"].aggxde(s),d=(e=h["a"].aggxde(e),a=h["a"].aggxde(a),n=h["a"].aggxde(n),r);if(a>e?a%e&&(a=Math.ceil(a/e)*e):a=e,n%e&&(n=Math.floor(n/e)*e),1==c){if(d-=e,d<a)return d=a,void Object(u["a"])({message:"购买数量不能小于最小购买数量!",duration:1500})}else if(2==c){if(d+=e,d>n){if(1==l.type)return d=n,void Object(u["a"])({message:"购买数量不能大于最大购买数量!",duration:1500});if(2==l.type&&6==i&&1==t){l.$toast("想要购买更多,请联系客服");var m=r||0;return void(d=0!==m||m!==e?Math.floor(n/e)*e:m)}}}else{var p=Number(document.getElementById("test"+o).value);if(d=Math.ceil(p/e)*e,document.getElementById("test"+o).value=d,d<a)return d=a,Object(u["a"])({message:"购买数量不能小于最小购买数量!",duration:1500}),void(document.getElementById("test"+o).value=d);if(d>n){if(1==l.type)d=n,Object(u["a"])({message:"购买数量不能大于最大购买数量!",duration:1500});else if(2==l.type&&6==i&&1==t){l.$toast("想要购买更多,请联系客服");m=r||0;d=0!==m||m!==e?Math.floor(n/e)*e:m}return void(document.getElementById("test"+o).value=d)}}this.$store.dispatch({type:"changenum",cart_id:o,num:d,delivery_place:1==l.type?l.delivery:"",types:c})}},components:{Header:l["a"]}},_=v,b=(s("c9b5"),s("4023")),y=Object(b["a"])(_,e,a,!1,null,"653996ca",null);i["default"]=y.exports},c9b5:function(t,i,s){"use strict";var e=s("e2ae"),a=s.n(e);a.a},e2ae:function(t,i,s){},f26b:function(t,i,s){"use strict";s.d(i,"a",(function(){return c}));var e=s("57e5"),a=s("334b"),n=s("5bcd"),o=s("1a56"),c=function(t){var i=t.parent,s=t.bem,c=t.role;return{mixins:[Object(n["a"])(i),a["a"]],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===c&&!this.checked?-1:0}},methods:{onClick:function(t){var i=this,s=t.target,e=this.$refs.icon,a=e===s||e.contains(s);this.isDisabled||!a&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){i.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,i=this.checked,a=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:s("icon",[this.shape,{disabled:this.isDisabled,checked:i}]),style:{fontSize:Object(o["a"])(a)}},[this.slots("icon",{checked:i})||t(e["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,i=this.slots();if(i)return t("span",{class:s("label",[this.labelPosition,{disabled:this.isDisabled}])},[i])}},render:function(){var t=arguments[0],i=[this.genIcon()];return"left"===this.labelPosition?i.unshift(this.genLabel()):i.push(this.genLabel()),t("div",{attrs:{role:c,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:s([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[i])}}}}}]);
\ No newline at end of file
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