|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="carCkbox" v-if="show">
|
|
|
- <div class="brandsBox">
|
|
|
+ <div class="brandsBox" ref="brandsBox">
|
|
|
<div class="mainLeft" >
|
|
|
<div class="mainLeftTop">
|
|
|
<div class="sx"></div>
|
|
@@ -107,7 +107,9 @@ export default {
|
|
|
this.getModel()
|
|
|
},
|
|
|
goNextX(item,time,index){ //点击车辆配置
|
|
|
- console.log(time + '时间---index'+index)
|
|
|
+
|
|
|
+ console.log(time + '时间---index'+index +'宽度===')
|
|
|
+
|
|
|
this.combineCplist[index]=item.combine_cp;
|
|
|
this.combineCplist=this.combineCplist.splice(0,index+1)
|
|
|
console.log( this.combineCplist)
|
|
@@ -142,6 +144,12 @@ export default {
|
|
|
type: 'warning'
|
|
|
});
|
|
|
}
|
|
|
+ setTimeout(() => {
|
|
|
+ console.log(this.$refs.brandsBox.scrollWidth)
|
|
|
+ this.$refs.brandsBox.scrollLeft = this.$refs.brandsBox.scrollWidth
|
|
|
+ }, 500);
|
|
|
+
|
|
|
+
|
|
|
}).catch(err => {})
|
|
|
}else{
|
|
|
var data={
|