feat: 配置clientId
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { loginAuth, bindPhone } from "@/manager/LoginManager";
|
||||
|
||||
// 引入base.js中的clientId
|
||||
import { clientId } from "@/constant/base";
|
||||
|
||||
// 跳转登录
|
||||
export const goLogin = () => uni.navigateTo({ url: "/pages/login/index" });
|
||||
|
||||
@@ -12,9 +14,9 @@ export const onLogin = async (e) => {
|
||||
await loginAuth().then(async () => {
|
||||
const { code } = e.detail;
|
||||
console.info("onLogin code: ", code);
|
||||
|
||||
|
||||
// 绑定手机号
|
||||
const params = { wechatPhoneCode: code, clientId: "2" };
|
||||
const params = { wechatPhoneCode: code, clientId: clientId };
|
||||
const res = await bindPhone(params);
|
||||
if (res.data) {
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user