点击按钮抢购,实现页面跳转,将当前商品ID带入跳转的页面URL上
<a class='sui-btn btn-block btn-buy' href='seckill-item.html#?goodsId={{goods.goodsId}}' target='_blank'>立即抢购</a>
seckill-item.html页面的angularJ对URL上的参数的获取:
app.controller(“seckillOrderController”, function(
s
c
o
p
e
,
scope,
scope,location, seckillOrderService ) {
$scope.jump = function() {
var param=$location.search()["goodsId"]
}
});