From 53b3a109e4a59beb2cb2c00244aa69faed436f10 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期一, 09 九月 2024 09:28:44 +0800
Subject: [PATCH] feat(支付): 1、未输入金额时不加载优惠券 2、金额变动时,取消选定的优惠券
---
common/http.interceptor.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 9bef48b..364454d 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -33,8 +33,8 @@
}
const plat = getPlat()
if (plat == 2) { //寰俊
- const OPENID = uni.getStorageSync('OPENID' + plat) || null
- const UNIONID = uni.getStorageSync('UNIONID' + plat) || null
+ const OPENID = uni.getStorageSync('OPENID') || null
+ const UNIONID = uni.getStorageSync('UNIONID') || null
if (OPENID) {
x.header['Openid'] = OPENID;
}
@@ -43,13 +43,13 @@
}
}
if (plat == 5) { //鏀粯瀹�
- const ALIUSERID = uni.getStorageSync('ALIUSERID' + plat) || null
+ const ALIUSERID = uni.getStorageSync('ALIUSERID') || null
if (ALIUSERID) {
x.header['Aliuserid'] = ALIUSERID;
}
}
if (plat == 15) { //浜戦棯浠�
- const UNIONPAYID = uni.getStorageSync('UNIONPAYID ' + plat) || null
+ const UNIONPAYID = uni.getStorageSync('UNIONPAYID') || null
if (UNIONPAYID) {
x.header['Unionpayid '] = UNIONPAYID;
}
--
Gitblit v1.9.1