修改传参

This commit is contained in:
浅念 2025-06-09 11:00:46 +08:00
parent bba02edccc
commit 6c3f2225ce
6 changed files with 5 additions and 21 deletions

View File

@ -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
}
},
})

View File

@ -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

View File

@ -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);
});

View File

@ -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
},
},
})

View File

@ -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) {

View File

@ -1,7 +1,6 @@
$(function() {
// 轮播图
// var id = getQueryString("id")
// const id = sessionStorage.getItem('vehicledetailId');
var id =''
if(getQueryString("id")){
id = getQueryString("id");