fix:wifi页面密码查看图标引入

This commit is contained in:
2026-06-02 16:50:10 +08:00
parent e9cd9c8c9f
commit 37f4f0c019
3 changed files with 8 additions and 6 deletions

View File

@@ -48,13 +48,15 @@ const showWifiPermissionDeniedModal = () => {
wifiAuthDeniedVisible.value = true;
};
// 用户点击「重新授权」时,打开小程序权限设置页;无论授权结果如何,
// 返回后自动重新扫描,兼容微信层与系统层权限变更两种情况。
// 用户点击「重新授权」时,打开小程序权限设置页,引导用户开启位置权限后重新扫描。
const handleReauthorize = () => {
wifiAuthDeniedVisible.value = false;
uni.openSetting({
success() {
success(res) {
// 若用户在设置页开启了位置权限,则重新启动 WiFi 扫描
if (res.authSetting["scope.userLocation"]) {
startScanning();
}
},
});
};
@@ -506,7 +508,7 @@ onUnmounted(() => {
<!-- 密码显示/隐藏切换按钮 -->
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
<image
:src="showPassword ? '../static/like-on.png' : '../static/like-off.png'"
:src="showPassword ? '../static/sicon/eye-on.png' : '../static/sicon/eye-off.png'"
mode="aspectFit"
style="width: 40rpx; height: 40rpx;"
/>
@@ -568,7 +570,7 @@ onUnmounted(() => {
<!-- 密码显示/隐藏切换按钮 -->
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
<image
:src="showPassword ? '../static/like-on.png' : '../static/like-off.png'"
:src="showPassword ? '../static/sicon/eye-on.png' : '../static/sicon/eye-off.png'"
mode="aspectFit"
style="width: 40rpx; height: 40rpx;"
/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

BIN
src/static/sicon/eye-on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B