This commit is contained in:
仲么了
2023-09-28 16:30:07 +08:00
parent 182195512a
commit 9c8dc2cd0a
9 changed files with 45 additions and 29 deletions

View File

@@ -1,11 +1,11 @@
<template>
<view :loading="loading">
<view class="mine">
<view class="mine-nav" @click="jump('changePhone')" style=" box-shadow: 0 4rpx 8rpx #e7e7e74c;">
<view class="mine-nav" @click="jump('changePhone')" style="box-shadow: 0 4rpx 8rpx #e7e7e74c">
<view class="mine-nav-label">更换手机号</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
<view class="mine-nav" @click="jump('changePwd')" style="border-bottom: none; ">
<view class="mine-nav" @click="jump('changePwd')" style="border-bottom: none">
<view class="mine-nav-label">修改密码</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
@@ -13,11 +13,11 @@
<view class="mine-nav-label">消息配置</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view> -->
<view class="mine-nav" @click="jump('agreement')" style="margin-top:20rpx;">
<view class="mine-nav" @click="jump('agreement')" style="margin-top: 20rpx">
<view class="mine-nav-label">用户协议</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
<view class="mine-nav" @click="jump('policy')" >
<view class="mine-nav" @click="jump('policy')">
<view class="mine-nav-label">个人信息保护政策</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
@@ -41,12 +41,12 @@
<view class="mine-nav-label">意见反馈</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view> -->
<view class="mine-nav" @click="jump('about')" style="border-bottom: none; ">
<view class="mine-nav" @click="jump('about')" style="border-bottom: none">
<view class="mine-nav-label">关于我们</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
<view class="mine-nav" @click="jump('layout')" style="margin-top:20rpx;border-bottom: none; ">
<view class="mine-nav-label" style="text-align:center">退出登录</view>
<view class="mine-nav" @click="jump('layout')" style="margin-top: 20rpx; border-bottom: none">
<view class="mine-nav-label" style="text-align: center">退出登录</view>
</view>
</view>
</view>
@@ -57,36 +57,43 @@ import { queryPersonSet } from '@/common/api/mine.js'
export default {
data() {
return {
loading: false
loading: false,
}
},
methods: {
async init() {
},
async init() {},
jump(type) {
switch (type) {
case 'changePwd':
uni.navigateTo({
url: `/pages/user/changePwd`
url: `/pages/user/changePwd`,
})
break;
break
case 'changePhone':
uni.navigateTo({
url: `/pages/user/changePhone`
url: `/pages/user/changePhone`,
})
break;
break
case 'layout':
uni.reLaunch({
url: `/pages/user/login`
uni.showModal({
title: '提示',
content: '确定退出登录吗?',
success: (res) => {
if (res.confirm) {
uni.reLaunch({
url: `/pages/user/login`,
})
}
},
})
break;
break
default:
uni.navigateTo({
url: `/pages/mine/${type}`
url: `/pages/mine/${type}`,
})
break;
break
}
}
},
},
onLoad() {
this.init()
@@ -146,4 +153,4 @@ export default {
}
}
}
</style>
</style>