vm.gCode = (function(){ var adminApi = location.origin + '/api-admin/application/qr'; var params = { device : "web", version : "1.0.0", sessionId : vm.seid, text: vm.getinfo.name, url: "https://front.bestfood" + (location.origin.indexOf("517") != -1 && "517" || "520") + ".com/easyPay/" + vm.getinfo.id }; return adminApi + '?' + makeParams(params); function makeParams(paramObj) { var result = ''; for (var key in paramObj) { result += (result && '&' || '') + key + '=' + paramObj[key]; } return(result); }})();
至今让我回味无穷的代码,我要没事回味回味
最新推荐文章于 2024-01-07 00:21:49 发布