uni.getSystemInfo({
	success(res) {
		if (res.platform == 'android') {
			var orderInfo =
				`alipays://platformapi/startapp?appId=${appId}&page=pages/orderDetail/orderDetail&thirdPartSchema=&allinpaysdk%3A%2F%2Fsdk%2F&query=${data}`
			//data; //从服务器获取的订单
			plus.runtime.openURL(orderInfo);
		} else {
			var orderInfo =
				`alipay://platformapi/startapp?appId=${appId}&page=pages/orderDetail/orderDetail&thirdPartSchema=&allinpaysdk%3A%2F%2Fsdk%2F&query=${data};
			//data; //从服务器获取的订单
			plus.runtime.openURL(orderInfo);
		}
	}
})
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐