diff --git a/.cursorrules b/.cursorrules
deleted file mode 100644
index 4f52b82..0000000
--- a/.cursorrules
+++ /dev/null
@@ -1,99 +0,0 @@
-## 样式(CSS/SCSS)与 UnoCSS 使用规范(Cursor Rules)
-
-目标:在不牺牲可读性的前提下最大化复用,减少冗余,保证小程序/H5 多端一致、整洁大方。
-
-### 1) 总原则
-- 优先使用 UnoCSS 工具类与已定义的 shortcuts,避免重复造轮子。
-- 同一工具类组合在同一页面或多个页面中出现 ≥ 2 次时,提取为“语义化类名”。
-- 禁止使用 `@apply`,禁止在 SCSS 中重复定义 UnoCSS 已提供的工具类或在 `unocss.config.ts` 中已存在的 shortcuts(如:`flex`、`flex-start`、`flex-between`、`flex-col-center` 等)。
-- 组件库样式覆盖和页面布局样式分离:页面/组件的布局与样式用普通类,覆盖 wot 组件样式用“外部样式类”。
-
-### 2) 目录与作用域
-- 页面私有样式:写在当前 `.vue` 的 `
diff --git a/src/pages/login/components/bind-mobile-popup.vue b/src/pages/login/components/bind-mobile-popup.vue
index 66ac9c2..132c450 100644
--- a/src/pages/login/components/bind-mobile-popup.vue
+++ b/src/pages/login/components/bind-mobile-popup.vue
@@ -6,7 +6,7 @@
custom-class="popup-bottom"
@close="handleClose"
>
-
+
绑定手机号
@@ -61,9 +61,9 @@ export default {
diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index d76bceb..3a27f9a 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -13,10 +13,10 @@
use-slot
@click="handleNavClick(child)"
>
-
+
- {{ child.title }}
+ {{ child.title }}
@@ -28,7 +28,7 @@
diff --git a/src/subPages/mine/scan-confirm/index.vue b/src/subPages/mine/scan-confirm/index.vue
index 80a6c0e..2dd61b6 100644
--- a/src/subPages/mine/scan-confirm/index.vue
+++ b/src/subPages/mine/scan-confirm/index.vue
@@ -32,9 +32,8 @@
diff --git a/src/subPages/mine/settings/index.vue b/src/subPages/mine/settings/index.vue
deleted file mode 100644
index d639324..0000000
--- a/src/subPages/mine/settings/index.vue
+++ /dev/null
@@ -1,211 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 退出登录
-
-
-
-
-
-
-
-
-
-
diff --git a/src/subPages/mine/settings/network/index.vue b/src/subPages/mine/settings/network/index.vue
index 83f3cd6..2db3a7a 100644
--- a/src/subPages/mine/settings/network/index.vue
+++ b/src/subPages/mine/settings/network/index.vue
@@ -1,12 +1,12 @@
-
+
温馨提示:点击下方「开始测试」按钮,即可自动检测当前网络延迟。
-
+
开始测试
@@ -15,16 +15,16 @@
正在测试中...
-
+
网络延迟
- {{ result }}ms
+ {{ result }}ms
网络状态
- {{ statusText }}
+ {{ statusText }}
@@ -36,7 +36,7 @@ import { onLoad } from "@dcloudio/uni-app";
definePage({
name: "network",
- style: { navigationBarTitleText: "网络测试" },
+ style: { navigationBarTitleText: "网络检测" },
});
const result = ref(null);
@@ -92,7 +92,7 @@ onLoad(() => {
diff --git a/src/subPages/mine/settings/privacy/index.vue b/src/subPages/mine/settings/privacy/index.vue
index 982a996..44fdc27 100644
--- a/src/subPages/mine/settings/privacy/index.vue
+++ b/src/subPages/mine/settings/privacy/index.vue
@@ -7,13 +7,13 @@
:title="section.title"
:name="String(index)"
>
-
+
{{ section.content }}
-
+
我已阅读并同意
@@ -86,18 +86,9 @@ const handleAgree = () => {
diff --git a/src/subPages/mine/settings/theme/index.vue b/src/subPages/mine/settings/theme/index.vue
index 58786f6..c3117ff 100644
--- a/src/subPages/mine/settings/theme/index.vue
+++ b/src/subPages/mine/settings/theme/index.vue
@@ -17,12 +17,12 @@
v-for="(color, index) in themeColorOptions"
:key="index"
class="color-option"
- :class="{ 'color-option--active': currentThemeColor === color.primary }"
+ :class="{ 'color-option--active': currentPrimaryColor === color.primary }"
:style="{ backgroundColor: color.primary }"
@click="handleSelectColor(color)"
>
-
- {{ currentThemeColor }}
+
+ {{ currentPrimaryColor }}
@@ -54,9 +57,9 @@
-
+
主要按钮
-
+
主题色文本
标签
@@ -87,10 +90,13 @@
请输入十六进制颜色值
-
+
@@ -117,13 +123,8 @@ definePage({
});
// 使用主题组合函数
-const {
- isDark,
- themeColorOptions,
- toggleTheme,
- setThemeColor,
- currentThemeColor: currentTheme,
-} = useTheme();
+const { isDark, themeColorOptions, toggleThemeMode, setThemeColor, selectedThemeColor } =
+ useTheme();
const toast = useToast();
const { confirm } = useDialog();
@@ -133,7 +134,7 @@ const customColor = ref("");
const showCustomColorInput = ref(false);
// 当前生效的主题色主色
-const currentThemeColor = computed(() => currentTheme.value.primary);
+const currentPrimaryColor = computed(() => selectedThemeColor.value.primary);
// 选择预设颜色
const handleSelectColor = (color: (typeof themeColorOptions)[0]) => {
@@ -145,7 +146,7 @@ const handleSelectColor = (color: (typeof themeColorOptions)[0]) => {
// 显示自定义颜色输入
const showCustomInput = () => {
showCustomColorInput.value = true;
- customColor.value = currentThemeColor.value;
+ customColor.value = currentPrimaryColor.value;
};
// 应用自定义颜色
@@ -182,13 +183,13 @@ const handleResetTheme = async () => {
// 切换暗黑模式
const handleToggleDarkMode = () => {
- toggleTheme();
+ toggleThemeMode();
toast.success(`已切换到${isDark.value ? "暗黑" : "浅色"}模式`);
};
// 页面显示时同步输入框回显(首次进入同样触发)
onShow(() => {
- customColor.value = currentThemeColor.value;
+ customColor.value = currentPrimaryColor.value;
});
@@ -208,19 +209,6 @@ onShow(() => {
}
}
-.color-dot {
- width: 32rpx;
- height: 32rpx;
- border-radius: 50%;
-}
-
-.color-dot-lg {
- flex-shrink: 0;
- width: 48rpx;
- height: 48rpx;
- border-radius: 8rpx;
-}
-
.popup-content {
padding-bottom: env(safe-area-inset-bottom);
}
@@ -246,8 +234,9 @@ onShow(() => {
border-top: 1rpx solid var(--color-border);
}
+// 自定义颜色输入框:跟随项目填充色与文字色(wot 默认 filled-oppo / text-main)
:deep(.theme-input) {
- color: var(--color-text) !important;
- background-color: var(--color-bg-secondary) !important;
+ --wot-input-bg: var(--color-fill-1);
+ --wot-input-inner-color: var(--color-text);
}
diff --git a/src/subPages/work/components/custom-tree.vue b/src/subPages/work/components/custom-tree.vue
index 28c1479..ae02a29 100644
--- a/src/subPages/work/components/custom-tree.vue
+++ b/src/subPages/work/components/custom-tree.vue
@@ -331,7 +331,7 @@ watch(
diff --git a/src/subPages/work/dict/index.vue b/src/subPages/work/dict/index.vue
index 52fb907..03f3eeb 100644
--- a/src/subPages/work/dict/index.vue
+++ b/src/subPages/work/dict/index.vue
@@ -10,12 +10,7 @@
-
+
@@ -40,8 +35,8 @@
-
-
+
+
-
- 新增
+
@@ -104,7 +98,7 @@
-
-
diff --git a/src/subPages/work/notice/index.vue b/src/subPages/work/notice/index.vue
index d83557e..760d49b 100644
--- a/src/subPages/work/notice/index.vue
+++ b/src/subPages/work/notice/index.vue
@@ -1,4 +1,4 @@
-
+
-
+
@@ -41,7 +36,7 @@
-
+
{{ getLevelText(item.level) }}
@@ -61,8 +56,8 @@
-
-
+
+
@@ -86,7 +81,7 @@
-
+