var a="整件委外,半成品委外";
var c = "后整,车缝,裁剪";
var ot='';
for(var t in a.split(',')){
switch(t){
case '整件委外': ot+= '整件委外';break;
case '半成品委外':
var parr = c.split(',');
if(parr.length>0){
ot+=',';
}
for(var pt in parr){
switch(pt){
case "后整" : ot+= '1'; break;
case "车缝" : ot+= '2'; break;
case "裁剪" : ot+= '3'; break;
}
}
break;
}
}
console.log(ot);
.warp{
margin: 10px;
}
.timeline{
height:66px;
width: 2px;
position: relative;
background-color:#bdbdbd;
margin:21px 0 ;
}
.circle{
position: absolute;
width:5px;
height:5px;
border: 2px solid #bdbdbd;
border-radius: 50%;
background-color: #fff;
z-index: 50;
}
.c1{
top:-4px;
left:-3px;
}
.c2{
top:27px;
left:-3px;
}
.c3{
bottom: 0px;
left:-3px;
}
.leftside{
float:left;
}
.content{
margin: 14px 14px 0px 14px;
}
.content-row{
margin-bottom: 14px;
font-size:12px;
font-weight: normal;
}
.greenfont{
color: #2e927d;
}
console