Files
app-govern/pages/mine/setup.vue

130 lines
4.1 KiB
Vue
Raw Normal View History

2023-01-12 10:03:25 +08:00
<template>
<view :loading="loading">
<view class="mine">
2023-01-13 16:32:56 +08:00
<view class="mine-nav" @click="jump('changePhone')" style=" box-shadow: 0 4rpx 8rpx #e7e7e74c;">
<view class="mine-nav-label">更换手机号</view>
2023-01-12 10:03:25 +08:00
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
2023-01-13 16:32:56 +08:00
<view class="mine-nav" @click="jump('changePwd')" style="border-bottom: none; ">
2023-01-12 10:03:25 +08:00
<view class="mine-nav-label">修改密码</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
2023-01-13 16:32:56 +08:00
<view class="mine-nav" @click="jump('setupMessage')" style="margin-top:20rpx;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('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('system')">
<view class="mine-nav-label">系统介绍</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
<view class="mine-nav" @click="jump('company')">
<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-label">关于我们</view>
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
</view>
2023-01-12 10:03:25 +08:00
<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>
</template>
<script>
export default {
data () {
return {
loading: false
}
},
methods: {
init () {
},
jump (type) {
switch (type) {
case 'changePwd':
uni.navigateTo({
2023-01-13 16:32:56 +08:00
url: `/pages/user/changePwd`
})
break;
case 'changePhone':
uni.navigateTo({
url: `/pages/user/changePhone`
2023-01-12 10:03:25 +08:00
})
2023-01-13 16:32:56 +08:00
break;
case 'layout':
uni.navigateTo({
url: `/pages/user/login`
})
break;
2023-01-12 10:03:25 +08:00
default:
uni.navigateTo({
url: `/pages/mine/${type}`
})
break;
}
}
},
onLoad () {
this.init()
},
}
</script>
<style lang="scss">
.mine {
.mine-header {
padding: 200rpx 34rpx 34rpx;
display: flex;
align-items: center;
background: $uni-theme-white;
margin-bottom: 20rpx;
box-shadow: 0 4rpx 8rpx #e7e7e74c;
.mine-header-head {
margin-right: 30rpx;
height: 128rpx;
width: 128rpx;
border-radius: $uni-theme-radius;
overflow: hidden;
}
.mine-header-name {
margin-right: 30rpx;
flex: 1;
font-size: 36rpx;
color: #111;
font-weight: 700;
}
}
.mine-nav {
padding: 34rpx;
display: flex;
align-items: center;
background: $uni-theme-white;
border-bottom: 1rpx solid #e8e8e8;
&-icon {
margin-right: 30rpx;
height: 44rpx;
width: 44rpx;
border-radius: $uni-theme-radius;
overflow: hidden;
}
&-label {
margin-right: 30rpx;
flex: 1;
font-size: 28rpx;
color: #111;
}
}
}
</style>