|
@@ -76,7 +76,7 @@ const _sfc_main = {
|
|
|
stockList.value = res.data;
|
|
stockList.value = res.data;
|
|
|
}
|
|
}
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
- console.error("加载股票池失败:", e);
|
|
|
|
|
|
|
+ console.error("加载标的池失败:", e);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
const loadAndStartRefresh = async () => {
|
|
const loadAndStartRefresh = async () => {
|
|
@@ -161,7 +161,7 @@ const _sfc_main = {
|
|
|
if (!utils_auth.isLoggedIn()) {
|
|
if (!utils_auth.isLoggedIn()) {
|
|
|
common_vendor.index.showModal({
|
|
common_vendor.index.showModal({
|
|
|
title: "登录提示",
|
|
title: "登录提示",
|
|
|
- content: "添加自选股票需要登录,是否前往登录?",
|
|
|
|
|
|
|
+ content: "添加自选需要登录,是否前往登录?",
|
|
|
confirmText: "去登录",
|
|
confirmText: "去登录",
|
|
|
cancelText: "取消",
|
|
cancelText: "取消",
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
@@ -194,13 +194,13 @@ const _sfc_main = {
|
|
|
if (addRes.code === 200 && addRes.data === true) {
|
|
if (addRes.code === 200 && addRes.data === true) {
|
|
|
common_vendor.index.showToast({ title: "添加成功", icon: "success" });
|
|
common_vendor.index.showToast({ title: "添加成功", icon: "success" });
|
|
|
} else if (addRes.code === 200 && addRes.data === false) {
|
|
} else if (addRes.code === 200 && addRes.data === false) {
|
|
|
- common_vendor.index.showToast({ title: "股票已存在", icon: "none" });
|
|
|
|
|
|
|
+ common_vendor.index.showToast({ title: "标的已存在", icon: "none" });
|
|
|
} else {
|
|
} else {
|
|
|
common_vendor.index.showToast({ title: addRes.message || "添加失败", icon: "none" });
|
|
common_vendor.index.showToast({ title: addRes.message || "添加失败", icon: "none" });
|
|
|
}
|
|
}
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
common_vendor.index.hideLoading();
|
|
common_vendor.index.hideLoading();
|
|
|
- console.error("添加股票失败:", e);
|
|
|
|
|
|
|
+ console.error("添加标的失败:", e);
|
|
|
common_vendor.index.showToast({ title: "添加失败", icon: "none" });
|
|
common_vendor.index.showToast({ title: "添加失败", icon: "none" });
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|