uni.navigateTo传多个数据(跨页面)

一、Vue页面发送数据

<t-td align="left"><button type="default" size="mini" @click="classifyItemClick1(item)">详情</button></t-td>
			classifyItemClick1: function(item) {
				//打印出来获取到的参数
				console.log("打印SalesOrderOID",item)
				this.SalesOrderOID=item.SalesOrderOID;
				console.log("打印SalesOrderOID",this.SalesOrderOID)
				this.ProductID=item.ProductID
				console.log("打印ProductID",this.ProductID)
				uni.navigateTo({})
					url: "../sales_Medical_audit_details/sales_Medical_audit_details?data=" + this.SalesOrderOID+'&ProductID='+this.ProductID,
			},
			

二、Vue页面接收数据

onLoad(option) {
			console.log("测试");
			console.log(option);
			console.log(option.data);
			this.id = option.data;
	        this.ProductID=option.ProductID
			console.log("打印医疗审核传过来的ProductID",ProductID);
			let id = this.id;
			console.log("打印医疗审核传过来的salesorderoid");
			console.log(id)
Logo

前往低代码交流专区

更多推荐