巡检点上传图片修正
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="setting-container">
|
||||
<view class="status_bar"></view>
|
||||
<view class="status_bar"></view>
|
||||
<!-- 顶部导航栏 -->
|
||||
<view class="nav-bar">
|
||||
<view class="nav-left" @tap="goBack">
|
||||
@@ -22,14 +22,16 @@
|
||||
<!-- 修改密码设置项 -->
|
||||
<view class="setting-item" @tap="goToModifyPassword">
|
||||
<view class="item-label">修改密码</view>
|
||||
<view class="item-value">{{passwordNumber}}</view>
|
||||
<view class="item-value">{{ passwordNumber }}</view>
|
||||
<uni-icons type="arrowright" size="20" color="#ccc"></uni-icons>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 退出登录按钮 -->
|
||||
<view class="logout-btn-wrap">
|
||||
<button class="logout-btn" :disabled="!phoneNumber || !passwordNumber" @tap="handleLogout">退出登录</button>
|
||||
<button class="logout-btn" :disabled="!phoneNumber || !passwordNumber" @tap="handleLogout">
|
||||
退出登录
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -43,11 +45,11 @@ const phoneNumber = ref('15699991212') // 绑定手机号
|
||||
const passwordNumber = ref('')
|
||||
|
||||
// 页面加载时可从接口获取用户信息
|
||||
onLoad((option) => {
|
||||
onLoad(option => {
|
||||
// console.log('option',option)
|
||||
passwordNumber.value = option.newPassword
|
||||
const userInfo = uni.getStorageSync('tempChangePwdParams')
|
||||
if(userInfo.phoneNumber){
|
||||
if (userInfo.phoneNumber) {
|
||||
phoneNumber.value = userInfo.phoneNumber
|
||||
}
|
||||
})
|
||||
@@ -55,7 +57,7 @@ onLoad((option) => {
|
||||
// 返回上一页
|
||||
const goBack = () => {
|
||||
uni.switchTab({
|
||||
url:"/pages/my/my"
|
||||
url: '/pages/my/my'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -80,7 +82,7 @@ const handleLogout = () => {
|
||||
content: '确定要退出当前账号吗?',
|
||||
confirmText: '确定',
|
||||
cancelText: '取消',
|
||||
success: (res) => {
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
confirmLogout() // 确认退出
|
||||
}
|
||||
@@ -96,7 +98,7 @@ const confirmLogout = () => {
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
// 清除本地存储的token等信息
|
||||
uni.clearStorageSync()
|
||||
uni.clearStorageSync()
|
||||
// uni.removeStorageSync('token')
|
||||
// uni.removeStorageSync('userInfo')
|
||||
// uni.removeStorageSync('tempChangePwdParams')
|
||||
@@ -123,9 +125,9 @@ const confirmLogout = () => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.status_bar{
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
.status_bar {
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
}
|
||||
/* 导航栏样式 */
|
||||
.nav-bar {
|
||||
@@ -201,7 +203,7 @@ const confirmLogout = () => {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
background-color: #4D5DFA;
|
||||
background-color: #4d5dfa;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
|
||||
Reference in New Issue
Block a user