feat: 配置clientId

This commit is contained in:
zoujing
2025-09-16 17:04:50 +08:00
parent 191d2394c5
commit 8d0c93206b
3 changed files with 35 additions and 4 deletions

View File

@@ -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();