修改传参
This commit is contained in:
parent
bba02edccc
commit
6c3f2225ce
@ -108,9 +108,7 @@ $(function() {
|
||||
this.currentPage = page;
|
||||
},
|
||||
godetil(item) {
|
||||
sessionStorage.setItem('newcardetailId', item.id);
|
||||
// window.location.href = 'newcar-details.html?id=' + item.id
|
||||
window.location.href = 'newcar-details.html'
|
||||
window.location.href = 'newcar-details.html?id=' + item.id
|
||||
}
|
||||
},
|
||||
})
|
||||
|
@ -65,9 +65,7 @@ $(function() {
|
||||
window.location.href = 'rental-sidebar.html?type=' + item.id
|
||||
},
|
||||
godetil(item) {
|
||||
sessionStorage.setItem('vehicledetailId', item.id);
|
||||
// window.location.href = 'vehicle-details.html?id=' + item.id
|
||||
window.location.href = 'vehicle-details.html'
|
||||
window.location.href = 'vehicle-details.html?id=' + item.id
|
||||
},
|
||||
getbrand(brand_id) {
|
||||
var that = this
|
||||
|
@ -38,16 +38,9 @@ $(function() {
|
||||
var brandList = data.data;
|
||||
var html=''
|
||||
$.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 .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) {
|
||||
// console.error(error);
|
||||
});
|
||||
|
@ -180,9 +180,7 @@ $(function() {
|
||||
this.currentPage = page;
|
||||
},
|
||||
godetil(item) {
|
||||
sessionStorage.setItem('newcardetailId', item.id);
|
||||
// window.location.href = 'newcar-details.html?id=' + item.id
|
||||
window.location.href = 'newcar-details.html'
|
||||
window.location.href = 'newcar-details.html?id=' + item.id
|
||||
},
|
||||
},
|
||||
})
|
||||
|
@ -273,9 +273,7 @@ $(function() {
|
||||
this.currentPage = page;
|
||||
},
|
||||
godetil(item) {
|
||||
sessionStorage.setItem('vehicledetailId', item.id);
|
||||
// window.location.href = 'vehicle-details.html?id=' + item.id
|
||||
window.location.href = 'vehicle-details.html'
|
||||
window.location.href = 'vehicle-details.html?id=' + item.id
|
||||
},
|
||||
clearfn() {
|
||||
for (const key in this.select) {
|
||||
|
@ -1,7 +1,6 @@
|
||||
$(function() {
|
||||
// 轮播图
|
||||
// var id = getQueryString("id")
|
||||
// const id = sessionStorage.getItem('vehicledetailId');
|
||||
var id =''
|
||||
if(getQueryString("id")){
|
||||
id = getQueryString("id");
|
||||
|
Loading…
x
Reference in New Issue
Block a user