修改传参
This commit is contained in:
parent
bba02edccc
commit
6c3f2225ce
@ -108,9 +108,7 @@ $(function() {
|
|||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
},
|
},
|
||||||
godetil(item) {
|
godetil(item) {
|
||||||
sessionStorage.setItem('newcardetailId', item.id);
|
window.location.href = 'newcar-details.html?id=' + item.id
|
||||||
// window.location.href = 'newcar-details.html?id=' + item.id
|
|
||||||
window.location.href = 'newcar-details.html'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -65,9 +65,7 @@ $(function() {
|
|||||||
window.location.href = 'rental-sidebar.html?type=' + item.id
|
window.location.href = 'rental-sidebar.html?type=' + item.id
|
||||||
},
|
},
|
||||||
godetil(item) {
|
godetil(item) {
|
||||||
sessionStorage.setItem('vehicledetailId', item.id);
|
window.location.href = 'vehicle-details.html?id=' + item.id
|
||||||
// window.location.href = 'vehicle-details.html?id=' + item.id
|
|
||||||
window.location.href = 'vehicle-details.html'
|
|
||||||
},
|
},
|
||||||
getbrand(brand_id) {
|
getbrand(brand_id) {
|
||||||
var that = this
|
var that = this
|
||||||
|
@ -38,16 +38,9 @@ $(function() {
|
|||||||
var brandList = data.data;
|
var brandList = data.data;
|
||||||
var html=''
|
var html=''
|
||||||
$.each(brandList,function(){
|
$.each(brandList,function(){
|
||||||
html+='<li id="menu-item-'+this.id+'" class="menu-item"><a href="javascript:void(0)" data-id="'+this.id+'"><img src="'+this.logo_full+'" alt="" />'+this.name+'</a></li>'
|
html+='<li id="menu-item-'+this.id+'" class="menu-item"><a href="brand.html?id='+this.id+'"><img src="'+this.logo_full+'" alt="" />'+this.name+'</a></li>'
|
||||||
});
|
});
|
||||||
$(".has_lv3 .flex-layout").html(html)
|
$(".has_lv3 .flex-layout").html(html)
|
||||||
|
|
||||||
$(".has_lv3 .flex-layout .menu-item a").click(function() {
|
|
||||||
var brandId = $(this).data('id');
|
|
||||||
sessionStorage.setItem('brandsId', brandId);
|
|
||||||
// window.location.href = 'brand.html?id=' + brandId;
|
|
||||||
window.location.href = 'brand.html';
|
|
||||||
});
|
|
||||||
}).fail(function(error) {
|
}).fail(function(error) {
|
||||||
// console.error(error);
|
// console.error(error);
|
||||||
});
|
});
|
||||||
|
@ -180,9 +180,7 @@ $(function() {
|
|||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
},
|
},
|
||||||
godetil(item) {
|
godetil(item) {
|
||||||
sessionStorage.setItem('newcardetailId', item.id);
|
window.location.href = 'newcar-details.html?id=' + item.id
|
||||||
// window.location.href = 'newcar-details.html?id=' + item.id
|
|
||||||
window.location.href = 'newcar-details.html'
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -273,9 +273,7 @@ $(function() {
|
|||||||
this.currentPage = page;
|
this.currentPage = page;
|
||||||
},
|
},
|
||||||
godetil(item) {
|
godetil(item) {
|
||||||
sessionStorage.setItem('vehicledetailId', item.id);
|
window.location.href = 'vehicle-details.html?id=' + item.id
|
||||||
// window.location.href = 'vehicle-details.html?id=' + item.id
|
|
||||||
window.location.href = 'vehicle-details.html'
|
|
||||||
},
|
},
|
||||||
clearfn() {
|
clearfn() {
|
||||||
for (const key in this.select) {
|
for (const key in this.select) {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
// 轮播图
|
// 轮播图
|
||||||
// var id = getQueryString("id")
|
// var id = getQueryString("id")
|
||||||
// const id = sessionStorage.getItem('vehicledetailId');
|
|
||||||
var id =''
|
var id =''
|
||||||
if(getQueryString("id")){
|
if(getQueryString("id")){
|
||||||
id = getQueryString("id");
|
id = getQueryString("id");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user