diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 8ae452a..1b8d0f6 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -2,7 +2,7 @@
"version" : "1.0",
"configurations" : [
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/api/auth.js b/api/auth.js
index dc5fef4..bcf7f51 100644
--- a/api/auth.js
+++ b/api/auth.js
@@ -149,16 +149,19 @@ export function bindInvitationCode(params) {
// 微信一键登录
export function wechatLogin(params) {
return request({
- url: `/auth/loginByWechat?wechatCode=${params.wechatCode}&isValid=${params.isValid}`,
- method: "post"
+ url: `/auth/loginByWechat`,
+ method: "post",
+ data: params,
+ cha:1
});
}
// 支付宝一键登录
export function alipayLogin(params) {
return request({
- url: "/auth/loginByAlipay",
+ url: "/auth/loginByAlipayNew",
method: "post",
data: params,
+ cha:1
});
}
diff --git a/manifest.json b/manifest.json
index b468157..0d64746 100644
--- a/manifest.json
+++ b/manifest.json
@@ -82,7 +82,8 @@
"weixin" : {
"appid" : "wx7a5902cd556d9396",
"UniversalLinks" : "https://app.tbmall.xin/uni-universallinks/__UNI__4910728/"
- }
+ },
+ "apple" : {}
}
},
"icons" : {
diff --git a/pages/login_package/bind-phone/bind-phone.vue b/pages/login_package/bind-phone/bind-phone.vue
index 84774f6..19400c8 100644
--- a/pages/login_package/bind-phone/bind-phone.vue
+++ b/pages/login_package/bind-phone/bind-phone.vue
@@ -52,7 +52,7 @@
@click="registerFun"
:loading="butLoading"
>
- 登录
+ 登录
@@ -62,7 +62,7 @@
+ .cut_way_warp {
+ display: flex;
+ justify-content: space-between;
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #999999;
+ margin-top: 20rpx;
+ }
+
+ .other_login {
+ font-size: 28rpx;
+ text-align: center;
+ margin-top: 80rpx;
+ margin-bottom: 32rpx;
+ color: #999999;
+ }
+
+ .login_other_icon {
+ display: flex;
+ padding: 0 100rpx;
+ justify-content: center;
+
+ .login_other_item {
+ display: flex;
+ flex: 50%;
+ font-size: 28rpx;
+ flex-direction: column;
+ align-items: center;
+ margin-bottom: 80rpx;
+ }
+ }
+
\ No newline at end of file
diff --git a/utils/enumUtils.js b/utils/enumUtils.js
index debfe8f..818413d 100644
--- a/utils/enumUtils.js
+++ b/utils/enumUtils.js
@@ -23,7 +23,8 @@ export const SMS_TYPE = {
"PASSWD": "passwd",
"LOGIN": "login",
"REGISTER": "register",
- "WECHAT": "wechatValid"
+ "WECHAT": "wechatValid",
+ "ALIPAY": "alipayValid"
}
// 图片类型 图片分类:COMMON-公共,CATEGORY-商品类目图标,BRAND-品牌LOGO,SHOP-店铺LOGO,GOODS-商品图片,SPECS-商品规格图片
diff --git a/utils/request.js b/utils/request.js
index e818328..823c119 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -45,7 +45,8 @@ function request(options) {
...defaultHeaders,
...headers, // 使用展开运算符合并默认头和自定义头
},
- success: (res) => {
+ success: (res) => {
+ console.log('--success-',res)
if (isShowLoading) {
// 请求之前做一些事
uni.hideToast();
@@ -65,7 +66,7 @@ function request(options) {
return;
}
// 601 微信登录没注册
- if (data.bizcode === 100 || data.bizcode === 601) {
+ if (data.bizcode === 100 ) {
resolve(data); // 成功时返回数据
} else if (data.bizcode === 201) {
if ([201, 200].includes(data.errcode)) {