|
@@ -36,7 +36,20 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- <picker-view v-if="visible" :indicator-style="indicatorStyle" @change="bindChange" class="picker-view">
|
|
|
+ <picker-view-column>
|
|
|
+ <view class="item" v-for="(item,index) in engineList" :key="index">{{item.engineModel}}</view>
|
|
|
+ </picker-view-column>
|
|
|
+
|
|
|
+ </picker-view> -->
|
|
|
+ <uni-popup ref="popup" type="bottom" background-color="#fff">
|
|
|
+ <view class="popupTitle">请选择发动机</view>
|
|
|
+ <view style="popupLineBox">
|
|
|
+ <view @click="ckengin(item)" class="popupLine" v-for="(item,index) in engineList">{{item.engineModel}}</view>
|
|
|
+
|
|
|
+ </view>
|
|
|
|
|
|
+ </uni-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -53,6 +66,9 @@
|
|
|
vin:'',
|
|
|
scarid:'',
|
|
|
iStatusBarHeight:'',
|
|
|
+ engineList:'',
|
|
|
+ visible:false,
|
|
|
+ indicatorStyle: `height: 50px;`
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -70,9 +86,21 @@
|
|
|
|
|
|
this.saveQueryHistory()
|
|
|
}
|
|
|
+ this.queryEnginemodel()
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ bindChange(){
|
|
|
+
|
|
|
+ },
|
|
|
+ queryEnginemodel(){
|
|
|
+ this.$http('matchingByOpen/queryEnginemodel', {
|
|
|
+ ids:this.optdata.id,
|
|
|
+
|
|
|
+ },'POST').then(res => {
|
|
|
+ this.engineList=res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
queryCarModelGroupInfo(){
|
|
|
uni.showLoading({ title: '加载中'});
|
|
|
this.$http('matchingByOpen/queryCarModelGroupInfo', {
|
|
@@ -103,11 +131,22 @@
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- goEngineOil(){
|
|
|
+ ckengin(item){
|
|
|
+ console.log(item)
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/index/engineOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
|
|
|
+ url:'/pages/index/engineOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+item.ids+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
|
|
|
})
|
|
|
},
|
|
|
+ goEngineOil(){
|
|
|
+ if(this.engineList.length>1){
|
|
|
+ this.$refs.popup.open()
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages/index/engineOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
goGearboxOil(){
|
|
|
uni.navigateTo({
|
|
|
url:'/pages/index/gearboxOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
|
|
@@ -198,5 +237,24 @@ padding: 0 24rpx;
|
|
|
font-size: 18rpx;
|
|
|
margin-top: 2rpx;
|
|
|
}
|
|
|
-
|
|
|
+.picker-view {
|
|
|
+ width: 750rpx;
|
|
|
+ height: 600rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ }
|
|
|
+ .popupLine {
|
|
|
+ line-height: 100rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 28rpx;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ .popupLineBox{
|
|
|
+ padding-bottom: env(safe-area-inset-bottom);
|
|
|
+ }
|
|
|
+ .popupTitle{
|
|
|
+ line-height: 100rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 30rpx;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
</style>
|