Commit f2d354d9 by 肖康

阿斯达

parent 4f809305
Showing with 66 additions and 59 deletions
......@@ -284,7 +284,7 @@
border-width: 4px;
margin-left: 5px;
}
.dataNo{display: none;}
//.dataNo{display: none;}
/*微信购物车-空*/
.shop-empty{ padding: 25% 3% 10% 3%; text-align: center; }
......@@ -293,3 +293,10 @@
.shop-empty dd{ padding-top: 5%; }
.shop-empty dd h4{ font-size: 16px; padding-bottom: 10%; font-weight: bold;}
.shop-empty dd p a{ font-size: 14px;color:#1080d0; }
.lyClass {
height: auto !important;
}
.lyMoreData {
height: 48px;
overflow: hidden;
}
\ No newline at end of file
......@@ -139,7 +139,9 @@ const mutations = {
list_[i].goods_amount_format=payload.data.goods_amount_format;
list_[i].goods_price=payload.data.goods_price;
list_[i].goods_price_format=payload.data.goods_price_format;
}
}
}else{
//自营
......@@ -151,6 +153,11 @@ const mutations = {
list_1[i].goods_amount_format=payload.data.goods_amount_format;
list_1[i].goods_price=payload.data.goods_price;
list_1[i].goods_price_format=payload.data.goods_price_format;
if(payload.data.sale_type==2){
var arrj=list_1[i];
list_1.splice(i,1);
state.zy2Data.push(arrj)
}
}
}
for(var j=0;j<list_2.length;j++){
......@@ -159,7 +166,11 @@ const mutations = {
list_2[j].goods_amount=payload.data.goods_amount;
list_2[j].goods_amount_format=payload.data.goods_amount_format;
list_2[j].goods_price=payload.data.goods_price;
list_2[j].goods_price_format=payload.data.goods_price_format;
if(payload.data.sale_type==1){
var arrj=list_2[j];
list_2.splice(j,1);
state.zy1Data.push(arrj)
}
}
}
}
......@@ -262,7 +273,9 @@ const actions = {
},
changenum({commit},payload){
//state.loading=true;
if(payload.types==1||payload.types==2){
state.loading=true;
}
var params = {
cart_id: payload.cart_id,
num: payload.num,
......@@ -270,7 +283,7 @@ const actions = {
}
state.totlaMState=false;
Services.changenum(qs.stringify(params)).then((res) => {
//state.loading=false;
state.loading=false;
let data = res.data;
if (data.err_code == 0) {
commit({
......
......@@ -54,13 +54,18 @@
<div class="mui-row">
<div class="mui-col-sm-7 mui-col-xs-7">
<div class="morePrice">
<div
:id="'priceContent'+item.cart_id"
:class="{'lyClass':item.tiered&&item.tiered.length<4,'lyMoreData':item.tiered&&item.tiered.length>3}"
>
<div class="mui-row act" v-for="(itemPrice,index) in item.tiered"
:class="{'dataNo':(index>2)&&!item.priceCheck}">
<p class="mui-col-sm-3 mui-col-xs-3"><font v-html="itemPrice.purchases"></font>+</p>
<p class="mui-col-sm-4 mui-col-xs-4 f-red">{{itemPrice.price_cn}}</p>
</div>
</div>
<div class="more-height" v-if="item.tiered&&item.tiered.length>3"
@click="priceRow(ly1Data,indexdata)"
@click="priceRow(ly1Data,indexdata,item.cart_id)"
v-html="item.checkBtn||defaultBtn">更多梯度价格<i class="iconfont icon-bot"></i></div>
</div>
</div>
......@@ -159,13 +164,18 @@
<div class="mui-row">
<div class="mui-col-sm-7 mui-col-xs-7">
<div class="morePrice">
<div
:id="'priceContent'+item.cart_id"
:class="{'lyClass':item.tiered&&item.tiered.length<4,'lyMoreData':item.tiered&&item.tiered.length>3}"
>
<div class="mui-row act" v-for="(itemPrice,index) in item.tiered"
:class="{'dataNo':(index>2)&&!item.priceCheck}">
<p class="mui-col-sm-3 mui-col-xs-3"><font v-html="itemPrice.purchases"></font>+</p>
<p class="mui-col-sm-4 mui-col-xs-4 f-red">${{itemPrice.price_us}}</p>
</div>
</div>
<div class="more-height" v-if="item.tiered&&item.tiered.length>3"
@click="priceRow(ly2Data,indexdata)"
@click="priceRow(ly2Data,indexdata,item.cart_id)"
v-html="item.checkBtn||defaultBtn">更多梯度价格<i class="iconfont icon-bot"></i></div>
</div>
</div>
......@@ -293,13 +303,18 @@
<div class="mui-row">
<div class="mui-col-sm-7 mui-col-xs-7">
<div class="morePrice">
<div
:id="'priceContent'+item.cart_id"
:class="{'lyClass':item.tiered&&item.tiered.length<4,'lyMoreData':item.tiered&&item.tiered.length>3}"
>
<div class="mui-row act" v-for="(itemPrice,index) in item.tiered"
:class="{'dataNo':(index>2)&&!item.priceCheck}">
<p class="mui-col-sm-6 mui-col-xs-6"><font v-html="itemPrice.purchases"></font>+</p>
<p class="mui-col-sm-6 mui-col-xs-6 f-red">{{itemPrice.price_cn}}</p>
</div>
</div>
<div class="more-height" v-if="item.tiered&&item.tiered.length>3"
@click="priceRow(zy1Data,indexdata)"
@click="priceRow(zy1Data,indexdata,item.cart_id)"
v-html="item.checkBtn||defaultBtn">更多梯度价格<i class="iconfont icon-bot"></i></div>
</div>
......@@ -371,13 +386,18 @@
<div class="mui-row">
<div class="mui-col-sm-7 mui-col-xs-7">
<div class="morePrice">
<div
:id="'priceContent'+item.cart_id"
:class="{'lyClass':item.tiered&&item.tiered.length<4,'lyMoreData':item.tiered&&item.tiered.length>3}"
>
<div class="mui-row act" v-for="(itemPrice,index) in item.tiered"
:class="{'dataNo':(index>2)&&!item.priceCheck}">
<p class="mui-col-sm-6 mui-col-xs-6"><font v-html="itemPrice.purchases"></font>+</p>
<p class="mui-col-sm-6 mui-col-xs-6 f-red">{{itemPrice.price_cn}}</p>
</div>
</div>
<div class="more-height" v-if="item.tiered&&item.tiered.length>3"
@click="priceRow(zy2Data,indexdata)"
@click="priceRow(zy2Data,indexdata,item.cart_id)"
v-html="item.checkBtn||defaultBtn">更多梯度价格<i class="iconfont icon-bot"></i></div>
</div>
......@@ -715,8 +735,12 @@
this.getData();
},
//阶梯价格处理
priceRow: function(dataList,index) {
priceRow: function(dataList,index,id) {
let dom = document.getElementById("priceContent" + id);
let arrLength = dataList[index].tiered.length;
if (dataList[index]["priceCheck"]) {
console.log(1)
dom.style.height = "48px";
this.$set(dataList[index], "priceCheck", false);
this.$set(
dataList[index],
......@@ -724,6 +748,11 @@
'更多梯度价格<i class="icon-bot"></i>'
);
} else {
console.log(2)
dom.style.height = 16 * arrLength + "px";
dom.style.transition = `height ${(arrLength - 3) * 0.125}s linear`;
dom.style.webkitTransition = `height ${(arrLength - 3) *
0.125}s linear`;
this.$set(dataList[index], "priceCheck", true);
this.$set(
dataList[index],
......@@ -1082,7 +1111,8 @@
type: 'changenum',
cart_id:cart_id,
num: summitNum,
delivery_place:(self.type==1)?self.delivery:""
delivery_place:(self.type==1)?self.delivery:"",
types:type
})
}
......
{"h":"7fb15bb051111764e57c","c":{"0":false}}
\ No newline at end of file
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":"1866a8997f22da98213a","c":{"1":false}}
\ No newline at end of file
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":"7fa00bd7d7c493057977","c":{"0":false}}
\ No newline at end of file
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":"905ec4c708f6af513a2d","c":{"1":false}}
\ No newline at end of file
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":"f2ef708f9b3d8e67ec7b","c":{"1":false}}
\ No newline at end of file
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":"114205e96b41d3603a55","c":{"19":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"01172c92e5c6872bbe8c","c":{"1":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"8ff69ad37b31d5dbe6e1","c":{"3":true,"4":true,"6":true}}
\ No newline at end of file
{"h":"3ed44cb413256de1ae08","c":{"19":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"69b191185bb31e583772","c":{"3":true,"4":true,"6":true,"11":false,"12":false,"app":true}}
\ No newline at end of file
{"h":"f8d7c3c341bb28269a74","c":{"19":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"7f6b2625078f94d9170b","c":{"3":true,"4":true,"6":true}}
\ No newline at end of file
{"h":"5eb8b79da6b50304a5f7","c":{"19":true}}
\ No newline at end of file
{"h":"62d345dd56cf45e8acb3","c":{"3":true}}
\ No newline at end of file
{"h":"a53fe800ddf2cfa3eb57","c":{"1":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"70c0095dc722b2565e08","c":{"3":true,"4":true,"6":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"12f02f86da291d316425","c":{"0":false}}
\ No newline at end of file
{"h":"272f29da7aa7676957e4","c":{"0":false}}
\ No newline at end of file
{"h":"1b3441389bb8f9222cbc","c":{"0":false}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"76e8c4ed6d3ce90448d5","c":{"19":true}}
\ No newline at end of file
{"h":"4ecbfb950b661f48a728","c":{"0":false}}
\ No newline at end of file
{"h":"de2ee0c92976e1e91d7c","c":{"19":true}}
\ No newline at end of file
......@@ -18,16 +18,16 @@
<meta name="x5-page-mode" content="app">
<meta name="description" content="猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。">
<meta name="keywords" content="猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,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">
<script type="text/javascript" src="/h5/view/get_time.php"></script>
<script type="text/javascript">
var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差
</script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.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>
<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/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.3ed44cb413256de1ae08.hot-update.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.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/5.js" rel="prefetch"><link href="//static.leixin.com/6.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>
<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>
<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/4.js" rel="prefetch"><link href="//szh5static.ichunt.com/5.js" rel="prefetch"><link href="//szh5static.ichunt.com/6.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>
......@@ -267,5 +267,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