uniapp跳转页面携带id
<view class=" vipName-clz" style="width: 13.5%;" @click="getInfo(item.customerId)"> {{item.customerName}} </view>//跳转到基本信息页面getInfo(customerId) {wx.navigateTo({url: '/pages/baseInfo?custom
·
<view class=" vipName-clz" style="width: 13.5%;" @click="getInfo(item.customerId)"> {{item.customerName}} </view>
//跳转到基本信息页面
getInfo(customerId) {
wx.navigateTo({
url: '/pages/baseInfo?customerId=' + customerId
})
}
//跳转的页面接收
onLoad(option) {
console.log("列表携带的值", option)
this.setCurrentPage(this);
this.customerId = option.customerId;
this.getInfoList();
if (option) {
this.setData({
globalOption: option,
});
}
}
更多推荐
已为社区贡献8条内容
所有评论(0)