老师:商店管理界面点击商铺信息为什么进入了注册页面
来源:6-8 店铺列表展示前端开发
philip_I
2018-11-09
在商店管理界面(路由是http://localhost:8080/o2o/shopadmin/shopmanagement?shopId=1),点击商铺信息为什么进入了注册页面(路由是http://localhost:8080/o2o/shopadmin/shopoperation)
shopmanagement.js是:
$(function(){
var shopId = getQueryString(‘shopId’);
var shopInfoUrl = ‘/o2o/shopadmin/getshopmanagementinfo?shopId=’ + shopId;
$.getJSON(shopInfoUrl, function(data){
if(data.redirect){
window.location.href=data.url;
} else{
if(data.shopId != undefined && data.shopId != null){
shopId = data.shopId;
}
$('#shopInfo').attr('href','/o2o/shopadmin/shopoperation?shopId=' + shopId);
}
});
});
写回答
1回答
-
耿直的杨耿直
2018-11-09
可能是common.js没引对,没获取到shopId,看看shoplist.html里面引入common.js写对了没
112018-11-09
相似问题