uniapp 中要获取地址 http://xxxxxxx/#/pages/my/index?id=124 的参数
1:获取本页面的地址
let local = location.href;
2:获取参数
let payment_id = this.getParam(local, "payment_id");
//获取url中的参数
getParam(path, name) {
var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
if (reg.test(path))
return unescape(RegExp.$2.replace(/\+/g, " "));
return "";
}