💊 fix: 修复支付宝小程序解码问题
This commit is contained in:
parent
a5b7088d16
commit
53c82edf60
|
@ -134,7 +134,7 @@
|
||||||
/* 根据环境进行下一步操作 1 支付宝 2 微信 */
|
/* 根据环境进行下一步操作 1 支付宝 2 微信 */
|
||||||
judgeEnvironment (order_number, weiXinUrl) {
|
judgeEnvironment (order_number, weiXinUrl) {
|
||||||
if (this.goodsInfo.entity.channel === 1) {
|
if (this.goodsInfo.entity.channel === 1) {
|
||||||
const aliPaysUrl = `alipays://platformapi/startapp?appId=2021004100663111&page=pages/index/index?order_number=${encodeURIComponent(order_number)}`;
|
const aliPaysUrl = `alipays://platformapi/startapp?appId=2021004100663111&page=pages/index/index?order_number=${encodeURIComponent(window.btoa(order_number))}`;
|
||||||
var ua = window.navigator.userAgent.toLowerCase();
|
var ua = window.navigator.userAgent.toLowerCase();
|
||||||
/* 判断如果是微信/安卓百度浏览器 则复制链接 */
|
/* 判断如果是微信/安卓百度浏览器 则复制链接 */
|
||||||
if (isWx() || (ua.indexOf("android") > -1 && ua.indexOf("baiduboxapp") > -1) || ua.indexOf("windows") > -1) {
|
if (isWx() || (ua.indexOf("android") > -1 && ua.indexOf("baiduboxapp") > -1) || ua.indexOf("windows") > -1) {
|
||||||
|
|
Loading…
Reference in New Issue