From 9ab1cec1bb5f0714df448b62baf6970667f5106d Mon Sep 17 00:00:00 2001
From: Yer <17633066053@163.com>
Date: Mon, 14 Aug 2023 14:40:08 +0800
Subject: [PATCH 1/2] =?UTF-8?q?perf:=20:bug:=20=E4=BC=98=E5=8C=96QQ?=
=?UTF-8?q?=E7=99=BB=E5=BD=95=E5=92=8C=E5=BE=AE=E4=BF=A1=E7=99=BB=E5=BD=95?=
=?UTF-8?q?Bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/connect.js | 2 +-
pages/passport/login.vue | 5 ++--
pages/tabbar/cart/cartList.vue | 46 ++++++++++++++++--------------
pages/tabbar/screen/fullScreen.vue | 2 +-
pages/tabbar/user/my.vue | 2 +-
5 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/api/connect.js b/api/connect.js
index b5cf191..bc754f4 100644
--- a/api/connect.js
+++ b/api/connect.js
@@ -26,7 +26,7 @@ export function webConnect(code) {
export function openIdLogin(params, clientType) {
return http.request({
url: `passport/connect/connect/app/login`,
- method: Method.GET,
+ method: Method.POST,
needToken: true,
data: params,
header: {
diff --git a/pages/passport/login.vue b/pages/passport/login.vue
index fe297f3..aafb45f 100644
--- a/pages/passport/login.vue
+++ b/pages/passport/login.vue
@@ -453,13 +453,14 @@
uuid: uni.getStorageSync("openid"), //联合登陆id
source: uni.getStorageSync("type"), //联合登陆类型
nickname: uni.getStorageSync("nickname"), // 昵称
+ username: uni.getStorageSync("openid"), // 昵称
avatar: uni.getStorageSync("avatar"), // 头像
uniAccessToken: uni.getStorageSync("uni_access_token"), //第三方token
type:this.clientType,
- token:{unionId:""}
+ token:{unionId:"",openId:uni.getStorageSync("openid")}
};
uni.getStorageSync("unionId") ? (params.token.unionId = uni.getStorageSync("unionId")) : delete params.token;
-
+
openIdLogin(params, clientType).then((res) => {
if (!res.data.success) {
let errormessage = "第三方登录暂不可用";
diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue
index 0093444..d1b6f16 100644
--- a/pages/tabbar/cart/cartList.vue
+++ b/pages/tabbar/cart/cartList.vue
@@ -27,7 +27,7 @@
{{
- item.storeName
+ item.storeName
}}