Commit 6a870bdd by 肖康

x

parent a52552a5
......@@ -38,7 +38,7 @@ switch (window.location.hostname) {
url = 'http://m.liexin.com/v3/';
urlApi = 'http://api.liexin.com/';
urlPc = 'http://www.liexin.com/v3/';
zyApi = 'http://soso12.ichunt.com';
zyApi = 'http://soso12.liexin.com';
lyApi = 'http://soso12.ichunt.com';
break;
default:
......
......@@ -755,8 +755,8 @@
duration: 1500
});
} else {
if (goodType == 6 && allowPresale == 1) {
self.$toast("想要购买更多,请联系客服");
self.$toast("库存不足");
var inputVal = num || 0;
if (inputVal !== 0 || inputVal !== mpq) {
......@@ -766,7 +766,18 @@
summitNum = inputVal
}
return
}
// if (goodType == 6 && allowPresale == 1) {
// self.$toast("想要购买更多,请联系客服");
// var inputVal = num || 0;
// if (inputVal !== 0 || inputVal !== mpq) {
// summitNum = Math.floor(stock / mpq) * mpq
// } else {
// summitNum = inputVal
// }
// return
// }
}
}
......@@ -791,8 +802,7 @@
duration: 1500
});
} else {
if (goodType == 6 && allowPresale == 1) {
self.$toast("想要购买更多,请联系客服");
self.$toast("库存不足");
var inputVal = num || 0;
if (inputVal !== 0 || inputVal !== mpq) {
summitNum = Math.floor(stock / mpq) * mpq
......@@ -800,8 +810,17 @@
} else {
summitNum = inputVal
}
}
console.log(inputVal)
// if (goodType == 6 && allowPresale == 1) {
// self.$toast("想要购买更多,请联系客服");
// var inputVal = num || 0;
// if (inputVal !== 0 || inputVal !== mpq) {
// summitNum = Math.floor(stock / mpq) * mpq
// } else {
// summitNum = inputVal
// }
// }
// console.log(inputVal)
}
document.getElementById('test' + cart_id).value = summitNum;
}
......
......@@ -310,11 +310,36 @@ export default {
this.goodsNum = String(now).replace(/\D/g, "");
this.ladderComputer(now);
if (Number(now) > this.stockNum) {
this.isYushou=true;
this.tipText = "库存不足,下单后我们将帮您订货";
console.log(this.goodDetail)
if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1){
this.$toast("想要购买更多,请联系客服");
// this.isYushou=true;
// this.tipText = "库存不足,下单后我们将帮您订货";
// console.log(this.goodDetail)
// if(this.goodDetail.ac_type == 6 && this.goodDetail.allow_presale == 1){
// this.$toast("想要购买更多,请联系客服");
// var maxNum;
// var inputVal;
// if(this.navInit==1){
// inputVal = this.ypNum||0
// if(inputVal!==0||inputVal!==1){
// maxNum = inputVal-1;
// }else{
// maxNum = inputVal
// }
// this.ypNum = maxNum;
// }else{
// inputVal =this.goodsNum||0;
// if(inputVal!==0||inputVal!==(this.multipleNum||this.startNum)){
// maxNum = Math.floor(this.stockNum/(this.multipleNum||this.startNum))*(this.multipleNum||this.startNum)
// }else{
// maxNum = inputVal
// }
// this.goodsNum = maxNum;
// }
// }else{
// this.btnText = "预售订货";
// }
this.$toast("库存不足!");
var maxNum;
var inputVal;
if(this.navInit==1){
......@@ -336,10 +361,6 @@ export default {
}
this.goodsNum = maxNum;
}
}else{
this.btnText = "预售订货";
}
} else {
this.isYushou=false;
this.tipText = "想要购买更多?直接下单,我们帮您订货";
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"h":"242f62dce13ee4b2c5aa","c":{"3":true}}
\ No newline at end of file
......@@ -18,7 +18,7 @@
<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="//static.leixin.com/favicon.ico">
<link rel="icon" href="//szh5static.ichunt.com/favicon.ico">
<link rel="stylesheet" href="/v3/dist/res/m/css/font/iconfont.css">
<link rel="stylesheet" href="/v3/dist/res/m/css/font2/iconfont.css">
<script type="text/javascript" src="/h5/view/get_time.php"></script>
......@@ -27,8 +27,8 @@
</script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js" type="text/javascript" charset="utf-8"></script>
<script src="https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js" type="text/javascript" charset="utf-8"></script>
<script src="//static.leixin.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//static.leixin.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script>
<script>
var _hmt = _hmt || [];
(function() {
......@@ -38,7 +38,7 @@
s.parentNode.insertBefore(hm, s);
})();
</script>
<link href="//static.leixin.com/0.js" rel="prefetch"><link href="//static.leixin.com/1.js" rel="prefetch"><link href="//static.leixin.com/10.js" rel="prefetch"><link href="//static.leixin.com/11.js" rel="prefetch"><link href="//static.leixin.com/12.js" rel="prefetch"><link href="//static.leixin.com/13.js" rel="prefetch"><link href="//static.leixin.com/14.js" rel="prefetch"><link href="//static.leixin.com/15.js" rel="prefetch"><link href="//static.leixin.com/16.js" rel="prefetch"><link href="//static.leixin.com/17.js" rel="prefetch"><link href="//static.leixin.com/18.js" rel="prefetch"><link href="//static.leixin.com/19.js" rel="prefetch"><link href="//static.leixin.com/2.js" rel="prefetch"><link href="//static.leixin.com/20.js" rel="prefetch"><link href="//static.leixin.com/21.js" rel="prefetch"><link href="//static.leixin.com/22.js" rel="prefetch"><link href="//static.leixin.com/23.js" rel="prefetch"><link href="//static.leixin.com/24.js" rel="prefetch"><link href="//static.leixin.com/25.js" rel="prefetch"><link href="//static.leixin.com/26.js" rel="prefetch"><link href="//static.leixin.com/27.js" rel="prefetch"><link href="//static.leixin.com/28.js" rel="prefetch"><link href="//static.leixin.com/29.js" rel="prefetch"><link href="//static.leixin.com/3.bb3c93c1deae533800a4.hot-update.js" rel="prefetch"><link href="//static.leixin.com/3.js" rel="prefetch"><link href="//static.leixin.com/30.js" rel="prefetch"><link href="//static.leixin.com/31.js" rel="prefetch"><link href="//static.leixin.com/32.js" rel="prefetch"><link href="//static.leixin.com/33.js" rel="prefetch"><link href="//static.leixin.com/34.js" rel="prefetch"><link href="//static.leixin.com/35.js" rel="prefetch"><link href="//static.leixin.com/36.js" rel="prefetch"><link href="//static.leixin.com/37.js" rel="prefetch"><link href="//static.leixin.com/38.js" rel="prefetch"><link href="//static.leixin.com/39.js" rel="prefetch"><link href="//static.leixin.com/4.js" rel="prefetch"><link href="//static.leixin.com/40.js" rel="prefetch"><link href="//static.leixin.com/41.js" rel="prefetch"><link href="//static.leixin.com/42.js" rel="prefetch"><link href="//static.leixin.com/43.js" rel="prefetch"><link href="//static.leixin.com/44.js" rel="prefetch"><link href="//static.leixin.com/45.js" rel="prefetch"><link href="//static.leixin.com/46.js" rel="prefetch"><link href="//static.leixin.com/47.js" rel="prefetch"><link href="//static.leixin.com/48.js" rel="prefetch"><link href="//static.leixin.com/49.js" rel="prefetch"><link href="//static.leixin.com/5.js" rel="prefetch"><link href="//static.leixin.com/50.js" rel="prefetch"><link href="//static.leixin.com/51.js" rel="prefetch"><link href="//static.leixin.com/52.js" rel="prefetch"><link href="//static.leixin.com/53.js" rel="prefetch"><link href="//static.leixin.com/54.js" rel="prefetch"><link href="//static.leixin.com/55.js" rel="prefetch"><link href="//static.leixin.com/56.js" rel="prefetch"><link href="//static.leixin.com/57.js" rel="prefetch"><link href="//static.leixin.com/58.js" rel="prefetch"><link href="//static.leixin.com/59.js" rel="prefetch"><link href="//static.leixin.com/6.js" rel="prefetch"><link href="//static.leixin.com/60.js" rel="prefetch"><link href="//static.leixin.com/61.js" rel="prefetch"><link href="//static.leixin.com/62.js" rel="prefetch"><link href="//static.leixin.com/63.js" rel="prefetch"><link href="//static.leixin.com/64.js" rel="prefetch"><link href="//static.leixin.com/65.js" rel="prefetch"><link href="//static.leixin.com/66.js" rel="prefetch"><link href="//static.leixin.com/67.js" rel="prefetch"><link href="//static.leixin.com/7.js" rel="prefetch"><link href="//static.leixin.com/8.js" rel="prefetch"><link href="//static.leixin.com/9.js" rel="prefetch"><link href="//static.leixin.com/app.js" rel="preload" as="script"></head>
<link href="//szh5static.ichunt.com/0.js" rel="prefetch"><link href="//szh5static.ichunt.com/1.js" rel="prefetch"><link href="//szh5static.ichunt.com/10.js" rel="prefetch"><link href="//szh5static.ichunt.com/11.js" rel="prefetch"><link href="//szh5static.ichunt.com/12.js" rel="prefetch"><link href="//szh5static.ichunt.com/13.js" rel="prefetch"><link href="//szh5static.ichunt.com/14.js" rel="prefetch"><link href="//szh5static.ichunt.com/15.js" rel="prefetch"><link href="//szh5static.ichunt.com/16.js" rel="prefetch"><link href="//szh5static.ichunt.com/17.js" rel="prefetch"><link href="//szh5static.ichunt.com/18.js" rel="prefetch"><link href="//szh5static.ichunt.com/19.js" rel="prefetch"><link href="//szh5static.ichunt.com/2.js" rel="prefetch"><link href="//szh5static.ichunt.com/20.js" rel="prefetch"><link href="//szh5static.ichunt.com/21.js" rel="prefetch"><link href="//szh5static.ichunt.com/22.js" rel="prefetch"><link href="//szh5static.ichunt.com/23.js" rel="prefetch"><link href="//szh5static.ichunt.com/24.js" rel="prefetch"><link href="//szh5static.ichunt.com/25.js" rel="prefetch"><link href="//szh5static.ichunt.com/26.js" rel="prefetch"><link href="//szh5static.ichunt.com/27.js" rel="prefetch"><link href="//szh5static.ichunt.com/28.js" rel="prefetch"><link href="//szh5static.ichunt.com/29.js" rel="prefetch"><link href="//szh5static.ichunt.com/3.js" rel="prefetch"><link href="//szh5static.ichunt.com/30.js" rel="prefetch"><link href="//szh5static.ichunt.com/31.js" rel="prefetch"><link href="//szh5static.ichunt.com/32.js" rel="prefetch"><link href="//szh5static.ichunt.com/33.js" rel="prefetch"><link href="//szh5static.ichunt.com/34.js" rel="prefetch"><link href="//szh5static.ichunt.com/35.js" rel="prefetch"><link href="//szh5static.ichunt.com/36.js" rel="prefetch"><link href="//szh5static.ichunt.com/37.js" rel="prefetch"><link href="//szh5static.ichunt.com/38.js" rel="prefetch"><link href="//szh5static.ichunt.com/39.js" rel="prefetch"><link href="//szh5static.ichunt.com/4.js" rel="prefetch"><link href="//szh5static.ichunt.com/40.js" rel="prefetch"><link href="//szh5static.ichunt.com/41.js" rel="prefetch"><link href="//szh5static.ichunt.com/42.js" rel="prefetch"><link href="//szh5static.ichunt.com/43.js" rel="prefetch"><link href="//szh5static.ichunt.com/44.js" rel="prefetch"><link href="//szh5static.ichunt.com/45.js" rel="prefetch"><link href="//szh5static.ichunt.com/46.js" rel="prefetch"><link href="//szh5static.ichunt.com/47.js" rel="prefetch"><link href="//szh5static.ichunt.com/48.js" rel="prefetch"><link href="//szh5static.ichunt.com/49.js" rel="prefetch"><link href="//szh5static.ichunt.com/5.js" rel="prefetch"><link href="//szh5static.ichunt.com/50.js" rel="prefetch"><link href="//szh5static.ichunt.com/51.js" rel="prefetch"><link href="//szh5static.ichunt.com/52.js" rel="prefetch"><link href="//szh5static.ichunt.com/53.js" rel="prefetch"><link href="//szh5static.ichunt.com/54.js" rel="prefetch"><link href="//szh5static.ichunt.com/55.js" rel="prefetch"><link href="//szh5static.ichunt.com/56.js" rel="prefetch"><link href="//szh5static.ichunt.com/57.js" rel="prefetch"><link href="//szh5static.ichunt.com/58.js" rel="prefetch"><link href="//szh5static.ichunt.com/59.js" rel="prefetch"><link href="//szh5static.ichunt.com/6.js" rel="prefetch"><link href="//szh5static.ichunt.com/60.js" rel="prefetch"><link href="//szh5static.ichunt.com/61.js" rel="prefetch"><link href="//szh5static.ichunt.com/62.js" rel="prefetch"><link href="//szh5static.ichunt.com/63.js" rel="prefetch"><link href="//szh5static.ichunt.com/64.js" rel="prefetch"><link href="//szh5static.ichunt.com/65.js" rel="prefetch"><link href="//szh5static.ichunt.com/66.js" rel="prefetch"><link href="//szh5static.ichunt.com/67.js" rel="prefetch"><link href="//szh5static.ichunt.com/7.js" rel="prefetch"><link href="//szh5static.ichunt.com/8.js" rel="prefetch"><link href="//szh5static.ichunt.com/9.js" rel="prefetch"><link href="//szh5static.ichunt.com/app.js" rel="preload" as="script"></head>
<body class="boxsiz">
<noscript>
<strong>网站出现了一点小问题,正在紧急修复中.......</strong>
......@@ -282,5 +282,5 @@
sensors.quick('autoTrack');
}
</script>
<script type="text/javascript" src="//static.leixin.com/app.js"></script></body>
<script type="text/javascript" src="//szh5static.ichunt.com/app.js"></script></body>
</html>
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