微信小程序 navigator跳转url参数传递

使用方法说明

传值:在navigator的属性url后拼接?id(参数名字)=要传递的值 (如果多个参数用&分开 &name=value&…….)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<view class="good-nav">
<navigator class="good-nav-item" url="/pages/index/good/good?type=1">
<image src="http://www.leheavengame.com/wxImages/good-nav01.png"></image>
护肤系列
</navigator>
<navigator class="good-nav-item" url="/pages/index/good/good?type=2">
<image src="http://www.leheavengame.com/wxImages/good-nav02.png"></image>
面膜系列
</navigator>
<navigator class="good-nav-item" url="/pages/index/good/good?type=3">
<image src="http://www.leheavengame.com/wxImages/good-nav03.png"></image>
彩妆系列
</navigator>
<navigator class="good-nav-item" url="/pages/index/good/good?type=4">
<image src="http://www.leheavengame.com/wxImages/good-nav04.png"></image>
小样旅行装</navigator>
<navigator class="good-nav-item" url="/pages/index/good/good?type=5">
<image src="http://www.leheavengame.com/wxImages/good-nav05.png"></image>
赠品专区</navigator>
</view>

:D 一言句子获取中...