feat: 微信支付宝登录对接
This commit is contained in:
+2
-1
@@ -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-商品规格图片
|
||||
|
||||
+3
-2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user