|
@@ -20,12 +20,6 @@ const _sfc_main = {
|
|
|
const regCodeCountdown = common_vendor.ref(0);
|
|
|
let loginCodeTimer = null;
|
|
|
let regCodeTimer = null;
|
|
|
- function handleLogin() {
|
|
|
- if (!agreed.value) {
|
|
|
- common_vendor.index.showToast({ title: "请先同意协议", icon: "none" });
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
function openProtocol(type) {
|
|
|
const urls = {
|
|
|
service: "/pages/protocol/service",
|
|
@@ -34,6 +28,106 @@ const _sfc_main = {
|
|
|
common_vendor.index.navigateTo({ url: urls[type] });
|
|
|
}
|
|
|
function socialLogin(type) {
|
|
|
+ if (!agreed.value) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "请先同意服务协议和隐私政策",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (type === "wechat") {
|
|
|
+ common_vendor.index.login({
|
|
|
+ provider: "weixin",
|
|
|
+ success: async (loginRes) => {
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:148", "uni.login result:", loginRes);
|
|
|
+ if (loginRes.code) {
|
|
|
+ try {
|
|
|
+ const userInfoRes = await common_vendor.index.getUserProfile({
|
|
|
+ desc: "用于完善用户资料"
|
|
|
+ }).catch((err) => {
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:154", "getUserProfile error:", err);
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "已取消授权",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ throw err;
|
|
|
+ });
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:162", "userInfoRes:", userInfoRes);
|
|
|
+ if (!userInfoRes || !userInfoRes.userInfo) {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "未获取到用户信息",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const wxLoginDto = {
|
|
|
+ avatarUrl: userInfoRes.userInfo.avatarUrl,
|
|
|
+ gender: userInfoRes.userInfo.gender,
|
|
|
+ nickName: userInfoRes.userInfo.nickName
|
|
|
+ };
|
|
|
+ const requestData = {
|
|
|
+ code: loginRes.code,
|
|
|
+ wxLoginDto
|
|
|
+ };
|
|
|
+ if (userInfoRes.encryptedData)
|
|
|
+ requestData.encryptedData = userInfoRes.encryptedData;
|
|
|
+ if (userInfoRes.iv)
|
|
|
+ requestData.iv = userInfoRes.iv;
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:186", "requestData:", requestData);
|
|
|
+ common_vendor.index.request({
|
|
|
+ url: "http://localhost:9500/wechat/login",
|
|
|
+ method: "POST",
|
|
|
+ data: requestData,
|
|
|
+ success: (res) => {
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:193", "后端返回:", res);
|
|
|
+ if (res.statusCode === 200 && res.data.code === 200) {
|
|
|
+ if (res.data.token) {
|
|
|
+ common_vendor.index.setStorageSync("token", res.data.token);
|
|
|
+ }
|
|
|
+ common_vendor.index.setStorageSync("isLoggedIn", true);
|
|
|
+ common_vendor.index.setStorageSync("userInfo", wxLoginDto);
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "登录成功",
|
|
|
+ icon: "success",
|
|
|
+ duration: 1500
|
|
|
+ });
|
|
|
+ common_vendor.index.reLaunch({
|
|
|
+ url: "/pages/index/index"
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: res.data.msg || "登录失败,请重试",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:218", "uni.request error:", err);
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "网络错误,请稍后重试",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch (err) {
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:227", "catch error:", err);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "微信登录失败",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:237", "uni.login error:", err);
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "微信登录失败,请重试",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
function openRegister() {
|
|
|
showLoginPopup.value = false;
|
|
@@ -55,13 +149,13 @@ const _sfc_main = {
|
|
|
loginCodeTimer = null;
|
|
|
}
|
|
|
}, 1e3);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:159", "开始获取验证码...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:268", "开始获取验证码...");
|
|
|
common_vendor.index.request({
|
|
|
url: "http://localhost:9500/user/code",
|
|
|
method: "POST",
|
|
|
data: { phone: loginPhone.value },
|
|
|
success(res) {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:165", "验证码响应:", res.data);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:274", "验证码响应:", res.data);
|
|
|
if (res.statusCode === 200) {
|
|
|
common_vendor.index.showToast({ title: "验证码已发送", icon: "none" });
|
|
|
} else {
|
|
@@ -69,7 +163,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:173", "获取验证码失败:", err);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:282", "获取验证码失败:", err);
|
|
|
common_vendor.index.showToast({ title: "网络错误", icon: "none" });
|
|
|
}
|
|
|
});
|
|
@@ -90,13 +184,13 @@ const _sfc_main = {
|
|
|
regCodeTimer = null;
|
|
|
}
|
|
|
}, 1e3);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:196", "开始获取注册验证码...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:305", "开始获取注册验证码...");
|
|
|
common_vendor.index.request({
|
|
|
url: "http://localhost:9500/user/code",
|
|
|
method: "POST",
|
|
|
data: { phone: regPhone.value },
|
|
|
success(res) {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:202", "验证码响应:", res.data);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:311", "验证码响应:", res.data);
|
|
|
if (res.statusCode === 200) {
|
|
|
common_vendor.index.showToast({ title: "验证码已发送", icon: "none" });
|
|
|
} else {
|
|
@@ -104,7 +198,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:210", "获取验证码失败:", err);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:319", "获取验证码失败:", err);
|
|
|
common_vendor.index.showToast({ title: "网络错误", icon: "none" });
|
|
|
}
|
|
|
});
|
|
@@ -119,7 +213,7 @@ const _sfc_main = {
|
|
|
common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
|
|
|
return;
|
|
|
}
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:226", "开始登录请求...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:335", "开始登录请求...");
|
|
|
common_vendor.index.request({
|
|
|
url: "http://localhost:9500/user/login",
|
|
|
method: "POST",
|
|
@@ -128,8 +222,8 @@ const _sfc_main = {
|
|
|
code: loginCode.value
|
|
|
},
|
|
|
success(res) {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:235", "登录响应数据:", res.data);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:236", "响应状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:344", "登录响应数据:", res.data);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:345", "响应状态码:", res.statusCode);
|
|
|
if (res.statusCode === 200) {
|
|
|
common_vendor.index.setStorageSync("userPhone", loginPhone.value);
|
|
|
common_vendor.index.setStorageSync("isLoggedIn", true);
|
|
@@ -139,22 +233,22 @@ const _sfc_main = {
|
|
|
icon: "success",
|
|
|
duration: 1500
|
|
|
});
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:255", "开始跳转到首页...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:364", "开始跳转到首页...");
|
|
|
common_vendor.index.reLaunch({
|
|
|
url: "/pages/index/index",
|
|
|
success: () => {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:259", "跳转成功");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:368", "跳转成功");
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:262", "reLaunch 跳转失败:", err);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:264", "尝试使用 switchTab 跳转...");
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:371", "reLaunch 跳转失败:", err);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:373", "尝试使用 switchTab 跳转...");
|
|
|
common_vendor.index.switchTab({
|
|
|
url: "/pages/index/index",
|
|
|
success: () => {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:268", "switchTab 跳转成功");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:377", "switchTab 跳转成功");
|
|
|
},
|
|
|
fail: (err2) => {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:271", "switchTab 跳转失败:", err2);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:380", "switchTab 跳转失败:", err2);
|
|
|
common_vendor.index.showToast({
|
|
|
title: "页面跳转失败,请重试",
|
|
|
icon: "none"
|
|
@@ -164,7 +258,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:281", "登录失败,状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:390", "登录失败,状态码:", res.statusCode);
|
|
|
common_vendor.index.showToast({
|
|
|
title: res.data.msg || "登录失败,请重试",
|
|
|
icon: "none"
|
|
@@ -172,7 +266,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:289", "登录请求失败:", err);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:398", "登录请求失败:", err);
|
|
|
common_vendor.index.showToast({ title: "网络错误", icon: "none" });
|
|
|
}
|
|
|
});
|
|
@@ -185,7 +279,7 @@ const _sfc_main = {
|
|
|
common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
|
|
|
return;
|
|
|
}
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:303", "开始登录请求...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:412", "开始登录请求...");
|
|
|
common_vendor.index.request({
|
|
|
url: "http://localhost:9500/user/loginup",
|
|
|
method: "POST",
|
|
@@ -194,8 +288,8 @@ const _sfc_main = {
|
|
|
password: loginPassword.value
|
|
|
},
|
|
|
success(res) {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:312", "登录响应数据:", res.data);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:313", "响应状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:421", "登录响应数据:", res.data);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:422", "响应状态码:", res.statusCode);
|
|
|
if (res.statusCode === 200 && res.data.code === 200) {
|
|
|
common_vendor.index.setStorageSync("userPhone", loginAccount.value);
|
|
|
common_vendor.index.setStorageSync("isLoggedIn", true);
|
|
@@ -205,22 +299,22 @@ const _sfc_main = {
|
|
|
icon: "success",
|
|
|
duration: 1500
|
|
|
});
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:332", "开始跳转到首页...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:441", "开始跳转到首页...");
|
|
|
common_vendor.index.reLaunch({
|
|
|
url: "/pages/index/index",
|
|
|
success: () => {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:336", "跳转成功");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:445", "跳转成功");
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:339", "reLaunch 跳转失败:", err);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:341", "尝试使用 switchTab 跳转...");
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:448", "reLaunch 跳转失败:", err);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:450", "尝试使用 switchTab 跳转...");
|
|
|
common_vendor.index.switchTab({
|
|
|
url: "/pages/index/index",
|
|
|
success: () => {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:345", "switchTab 跳转成功");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:454", "switchTab 跳转成功");
|
|
|
},
|
|
|
fail: (err2) => {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:348", "switchTab 跳转失败:", err2);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:457", "switchTab 跳转失败:", err2);
|
|
|
common_vendor.index.showToast({
|
|
|
title: "页面跳转失败,请重试",
|
|
|
icon: "none"
|
|
@@ -230,8 +324,8 @@ const _sfc_main = {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:358", "登录失败,状态码:", res.statusCode);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:359", "登录失败,错误信息:", res.data.msg);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:467", "登录失败,状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:468", "登录失败,错误信息:", res.data.msg);
|
|
|
common_vendor.index.showToast({
|
|
|
title: res.data.msg || "账号或密码错误",
|
|
|
icon: "none",
|
|
@@ -240,7 +334,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:368", "登录请求失败:", err);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:477", "登录请求失败:", err);
|
|
|
common_vendor.index.showToast({
|
|
|
title: "网络错误,请稍后重试",
|
|
|
icon: "none",
|
|
@@ -267,7 +361,7 @@ const _sfc_main = {
|
|
|
common_vendor.index.showToast({ title: "请输入密码", icon: "none" });
|
|
|
return;
|
|
|
}
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:396", "开始注册请求...");
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:505", "开始注册请求...");
|
|
|
common_vendor.index.request({
|
|
|
url: "http://localhost:9500/user/register",
|
|
|
method: "POST",
|
|
@@ -278,8 +372,8 @@ const _sfc_main = {
|
|
|
password: regPassword.value
|
|
|
},
|
|
|
success(res) {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:407", "注册响应数据:", res.data);
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:408", "响应状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:516", "注册响应数据:", res.data);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:517", "响应状态码:", res.statusCode);
|
|
|
if (res.statusCode === 200) {
|
|
|
common_vendor.index.showToast({
|
|
|
title: "注册成功",
|
|
@@ -293,7 +387,7 @@ const _sfc_main = {
|
|
|
loginPhone.value = regPhone.value;
|
|
|
}, 1500);
|
|
|
} else {
|
|
|
- common_vendor.index.__f__("log", "at pages/login/index.vue:429", "注册失败,状态码:", res.statusCode);
|
|
|
+ common_vendor.index.__f__("log", "at pages/login/index.vue:538", "注册失败,状态码:", res.statusCode);
|
|
|
common_vendor.index.showToast({
|
|
|
title: res.data.msg || "注册失败,请重试",
|
|
|
icon: "none"
|
|
@@ -301,7 +395,7 @@ const _sfc_main = {
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|
|
|
- common_vendor.index.__f__("error", "at pages/login/index.vue:437", "注册请求失败:", err);
|
|
|
+ common_vendor.index.__f__("error", "at pages/login/index.vue:546", "注册请求失败:", err);
|
|
|
common_vendor.index.showToast({ title: "网络错误", icon: "none" });
|
|
|
}
|
|
|
});
|
|
@@ -314,58 +408,56 @@ const _sfc_main = {
|
|
|
});
|
|
|
return (_ctx, _cache) => {
|
|
|
return common_vendor.e({
|
|
|
- a: common_assets._imports_0,
|
|
|
- b: !agreed.value,
|
|
|
- c: common_vendor.o(handleLogin),
|
|
|
- d: common_assets._imports_1,
|
|
|
- e: !agreed.value,
|
|
|
- f: common_vendor.o(($event) => socialLogin()),
|
|
|
- g: agreed.value,
|
|
|
- h: common_vendor.o(($event) => agreed.value = !agreed.value),
|
|
|
- i: common_vendor.o(($event) => openProtocol("service")),
|
|
|
- j: common_vendor.o(($event) => openProtocol("privacy")),
|
|
|
- k: common_assets._imports_2,
|
|
|
- l: common_vendor.o(($event) => showLoginPopup.value = true),
|
|
|
- m: common_assets._imports_3,
|
|
|
- n: showLoginPopup.value
|
|
|
+ a: common_assets._imports_1,
|
|
|
+ b: common_assets._imports_1$1,
|
|
|
+ c: !agreed.value,
|
|
|
+ d: common_vendor.o(($event) => socialLogin("wechat")),
|
|
|
+ e: agreed.value,
|
|
|
+ f: common_vendor.o(($event) => agreed.value = !agreed.value),
|
|
|
+ g: common_vendor.o(($event) => openProtocol("service")),
|
|
|
+ h: common_vendor.o(($event) => openProtocol("privacy")),
|
|
|
+ i: common_assets._imports_2,
|
|
|
+ j: common_vendor.o(($event) => showLoginPopup.value = true),
|
|
|
+ k: common_assets._imports_3,
|
|
|
+ l: showLoginPopup.value
|
|
|
}, showLoginPopup.value ? common_vendor.e({
|
|
|
- o: common_vendor.o(($event) => showLoginPopup.value = false),
|
|
|
- p: loginTab.value === "phone" ? 1 : "",
|
|
|
- q: common_vendor.o(($event) => loginTab.value = "phone"),
|
|
|
- r: loginTab.value === "account" ? 1 : "",
|
|
|
- s: common_vendor.o(($event) => loginTab.value = "account"),
|
|
|
- t: loginTab.value === "phone"
|
|
|
+ m: common_vendor.o(($event) => showLoginPopup.value = false),
|
|
|
+ n: loginTab.value === "phone" ? 1 : "",
|
|
|
+ o: common_vendor.o(($event) => loginTab.value = "phone"),
|
|
|
+ p: loginTab.value === "account" ? 1 : "",
|
|
|
+ q: common_vendor.o(($event) => loginTab.value = "account"),
|
|
|
+ r: loginTab.value === "phone"
|
|
|
}, loginTab.value === "phone" ? {
|
|
|
- v: loginPhone.value,
|
|
|
- w: common_vendor.o(($event) => loginPhone.value = $event.detail.value),
|
|
|
- x: loginCode.value,
|
|
|
- y: common_vendor.o(($event) => loginCode.value = $event.detail.value),
|
|
|
- z: common_vendor.t(loginCodeCountdown.value > 0 ? loginCodeCountdown.value + "s" : "获取验证码"),
|
|
|
- A: loginCodeCountdown.value > 0,
|
|
|
- B: common_vendor.o(getLoginCode)
|
|
|
+ s: loginPhone.value,
|
|
|
+ t: common_vendor.o(($event) => loginPhone.value = $event.detail.value),
|
|
|
+ v: loginCode.value,
|
|
|
+ w: common_vendor.o(($event) => loginCode.value = $event.detail.value),
|
|
|
+ x: common_vendor.t(loginCodeCountdown.value > 0 ? loginCodeCountdown.value + "s" : "获取验证码"),
|
|
|
+ y: loginCodeCountdown.value > 0,
|
|
|
+ z: common_vendor.o(getLoginCode)
|
|
|
} : {
|
|
|
- C: loginAccount.value,
|
|
|
- D: common_vendor.o(($event) => loginAccount.value = $event.detail.value),
|
|
|
- E: loginPassword.value,
|
|
|
- F: common_vendor.o(($event) => loginPassword.value = $event.detail.value)
|
|
|
+ A: loginAccount.value,
|
|
|
+ B: common_vendor.o(($event) => loginAccount.value = $event.detail.value),
|
|
|
+ C: loginPassword.value,
|
|
|
+ D: common_vendor.o(($event) => loginPassword.value = $event.detail.value)
|
|
|
}, {
|
|
|
- G: common_vendor.o(handlePopupLogin),
|
|
|
- H: common_vendor.o(openRegister)
|
|
|
+ E: common_vendor.o(handlePopupLogin),
|
|
|
+ F: common_vendor.o(openRegister)
|
|
|
}) : {}, {
|
|
|
- I: showRegisterPopup.value
|
|
|
+ G: showRegisterPopup.value
|
|
|
}, showRegisterPopup.value ? {
|
|
|
- J: common_vendor.o(($event) => showRegisterPopup.value = false),
|
|
|
- K: regPhone.value,
|
|
|
- L: common_vendor.o(($event) => regPhone.value = $event.detail.value),
|
|
|
- M: regCode.value,
|
|
|
- N: common_vendor.o(($event) => regCode.value = $event.detail.value),
|
|
|
- O: common_vendor.t(regCodeCountdown.value > 0 ? regCodeCountdown.value + "s" : "获取验证码"),
|
|
|
- P: common_vendor.o(getRegCode),
|
|
|
- Q: regAccount.value,
|
|
|
- R: common_vendor.o(($event) => regAccount.value = $event.detail.value),
|
|
|
- S: regPassword.value,
|
|
|
- T: common_vendor.o(($event) => regPassword.value = $event.detail.value),
|
|
|
- U: common_vendor.o(handleRegister)
|
|
|
+ H: common_vendor.o(($event) => showRegisterPopup.value = false),
|
|
|
+ I: regPhone.value,
|
|
|
+ J: common_vendor.o(($event) => regPhone.value = $event.detail.value),
|
|
|
+ K: regCode.value,
|
|
|
+ L: common_vendor.o(($event) => regCode.value = $event.detail.value),
|
|
|
+ M: common_vendor.t(regCodeCountdown.value > 0 ? regCodeCountdown.value + "s" : "获取验证码"),
|
|
|
+ N: common_vendor.o(getRegCode),
|
|
|
+ O: regAccount.value,
|
|
|
+ P: common_vendor.o(($event) => regAccount.value = $event.detail.value),
|
|
|
+ Q: regPassword.value,
|
|
|
+ R: common_vendor.o(($event) => regPassword.value = $event.detail.value),
|
|
|
+ S: common_vendor.o(handleRegister)
|
|
|
} : {});
|
|
|
};
|
|
|
}
|