fix:wifi页面密码查看图标引入
This commit is contained in:
@@ -48,13 +48,15 @@ const showWifiPermissionDeniedModal = () => {
|
|||||||
wifiAuthDeniedVisible.value = true;
|
wifiAuthDeniedVisible.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 用户点击「重新授权」时,打开小程序权限设置页;无论授权结果如何,
|
// 用户点击「重新授权」时,打开小程序权限设置页,引导用户开启位置权限后重新扫描。
|
||||||
// 返回后自动重新扫描,兼容微信层与系统层权限变更两种情况。
|
|
||||||
const handleReauthorize = () => {
|
const handleReauthorize = () => {
|
||||||
wifiAuthDeniedVisible.value = false;
|
wifiAuthDeniedVisible.value = false;
|
||||||
uni.openSetting({
|
uni.openSetting({
|
||||||
success() {
|
success(res) {
|
||||||
startScanning();
|
// 若用户在设置页开启了位置权限,则重新启动 WiFi 扫描
|
||||||
|
if (res.authSetting["scope.userLocation"]) {
|
||||||
|
startScanning();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -506,7 +508,7 @@ onUnmounted(() => {
|
|||||||
<!-- 密码显示/隐藏切换按钮 -->
|
<!-- 密码显示/隐藏切换按钮 -->
|
||||||
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
|
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
|
||||||
<image
|
<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"
|
mode="aspectFit"
|
||||||
style="width: 40rpx; height: 40rpx;"
|
style="width: 40rpx; height: 40rpx;"
|
||||||
/>
|
/>
|
||||||
@@ -568,7 +570,7 @@ onUnmounted(() => {
|
|||||||
<!-- 密码显示/隐藏切换按钮 -->
|
<!-- 密码显示/隐藏切换按钮 -->
|
||||||
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
|
<view class="pwd-eye-btn" @click="showPassword = !showPassword">
|
||||||
<image
|
<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"
|
mode="aspectFit"
|
||||||
style="width: 40rpx; height: 40rpx;"
|
style="width: 40rpx; height: 40rpx;"
|
||||||
/>
|
/>
|
||||||
|
|||||||
BIN
src/static/sicon/eye-off.png
Normal file
BIN
src/static/sicon/eye-off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 395 B |
BIN
src/static/sicon/eye-on.png
Normal file
BIN
src/static/sicon/eye-on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 457 B |
Reference in New Issue
Block a user