From b5aa1841cb539e97725dae90365d8503c1245326 Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Wed, 24 Jul 2024 17:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E9=93=B6=E8=A1=8C=E5=94=A4?= =?UTF-8?q?=E8=B5=B7=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reduce.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reduce.html b/reduce.html index d1fb6b2..c2167c6 100644 --- a/reduce.html +++ b/reduce.html @@ -274,9 +274,14 @@ if (ua.indexOf("Source/YOUBankApp/psbc") > -1) { this.loading = false; function upWXSmallProgramYouBank(){ + function objectToQueryString(path) { + const obj = JSON.parse(JSON.stringify(path)); + return Object.keys(obj).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])).join('&'); + } + let url = "pages/index/index?" + objectToQueryString(res.data); AlipayJSBridge.call('upWXSmallProgramYouBank', { id: 'gh_07fecf7a6d31', - url: res.data.redirect_url, + url: url, }, function(result) { console.log(result);