2023-01-12 10:03:25 +08:00
|
|
|
<template>
|
|
|
|
|
<view :loading="loading">
|
|
|
|
|
<view class="mine">
|
2023-09-28 16:30:07 +08:00
|
|
|
<view class="mine-nav" @click="jump('changePhone')" style="box-shadow: 0 4rpx 8rpx #e7e7e74c">
|
2023-01-13 16:32:56 +08:00
|
|
|
<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-10-27 16:09:09 +08:00
|
|
|
<view class="mine-nav" @click="jump('changePwd')">
|
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-10-26 09:03:16 +08:00
|
|
|
<view class="mine-nav" @click="jump('deleteUser')" style="border-bottom: none">
|
|
|
|
|
<view class="mine-nav-label">账号注销</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
|
|
|
|
</view>
|
2023-02-22 08:43:52 +08:00
|
|
|
<!-- <view class="mine-nav" @click="jump('setupMessage')" style="margin-top:20rpx;border-bottom: none; ">
|
2023-01-13 16:32:56 +08:00
|
|
|
<view class="mine-nav-label">消息配置</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
2023-02-22 08:43:52 +08:00
|
|
|
</view> -->
|
2023-09-28 16:30:07 +08:00
|
|
|
<view class="mine-nav" @click="jump('agreement')" style="margin-top: 20rpx">
|
2023-01-13 16:32:56 +08:00
|
|
|
<view class="mine-nav-label">用户协议</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
|
|
|
|
</view>
|
2023-09-28 16:30:07 +08:00
|
|
|
<view class="mine-nav" @click="jump('policy')">
|
2024-09-02 09:50:59 +08:00
|
|
|
<view class="mine-nav-label">隐私政策</view>
|
2023-08-10 09:18:17 +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('system')">
|
|
|
|
|
<view class="mine-nav-label">系统介绍</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
|
|
|
|
</view>
|
2023-03-09 13:50:45 +08:00
|
|
|
<view class="mine-nav" @click="jump('book')">
|
|
|
|
|
<view class="mine-nav-label">使用手册</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
|
|
|
|
</view>
|
2023-10-27 16:09:09 +08:00
|
|
|
<!-- <view class="mine-nav" @click="jump('database')">
|
2023-03-09 13:50:45 +08:00
|
|
|
<view class="mine-nav-label">资料库</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
2023-10-27 16:09:09 +08:00
|
|
|
</view> -->
|
2023-01-13 16:32:56 +08:00
|
|
|
<view class="mine-nav" @click="jump('company')">
|
|
|
|
|
<view class="mine-nav-label">公司介绍</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
|
|
|
|
</view>
|
2023-08-17 09:24:59 +08:00
|
|
|
<!-- <view class="mine-nav" @click="jump('feedback')">
|
2023-02-09 16:37:53 +08:00
|
|
|
<view class="mine-nav-label">意见反馈</view>
|
|
|
|
|
<uni-icons type="forward" color="#aaa" size="20"></uni-icons>
|
2023-08-17 09:24:59 +08:00
|
|
|
</view> -->
|
2024-09-04 09:45:49 +08:00
|
|
|
<!-- @click="jump('about')" -->
|
|
|
|
|
<view class="mine-nav" style="border-bottom: none">
|
|
|
|
|
<view class="mine-nav-label">版本信息</view>
|
|
|
|
|
<view style="color: #828282;font-size: 14rpx;">当前版本V1.1.1</view>
|
|
|
|
|
<!-- <uni-icons type="forward" color="#aaa" size="20"></uni-icons> -->
|
2023-01-13 16:32:56 +08:00
|
|
|
</view>
|
2023-09-28 16:30:07 +08:00
|
|
|
<view class="mine-nav" @click="jump('layout')" style="margin-top: 20rpx; border-bottom: none">
|
2023-10-26 09:03:16 +08:00
|
|
|
<view class="mine-nav-label" style="text-align: center">退出登录</view>
|
2023-01-12 10:03:25 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-04-07 08:50:21 +08:00
|
|
|
import { queryPersonSet } from '@/common/api/mine.js'
|
2023-01-12 10:03:25 +08:00
|
|
|
export default {
|
2023-04-07 08:50:21 +08:00
|
|
|
data() {
|
2023-01-12 10:03:25 +08:00
|
|
|
return {
|
2023-09-28 16:30:07 +08:00
|
|
|
loading: false,
|
2023-01-12 10:03:25 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-09-28 16:30:07 +08:00
|
|
|
async init() {},
|
2023-04-07 08:50:21 +08:00
|
|
|
jump(type) {
|
2023-01-12 10:03:25 +08:00
|
|
|
switch (type) {
|
|
|
|
|
case 'changePwd':
|
|
|
|
|
uni.navigateTo({
|
2023-09-28 16:30:07 +08:00
|
|
|
url: `/pages/user/changePwd`,
|
2023-01-13 16:32:56 +08:00
|
|
|
})
|
2023-09-28 16:30:07 +08:00
|
|
|
break
|
2023-01-13 16:32:56 +08:00
|
|
|
case 'changePhone':
|
|
|
|
|
uni.navigateTo({
|
2023-09-28 16:30:07 +08:00
|
|
|
url: `/pages/user/changePhone`,
|
2023-01-12 10:03:25 +08:00
|
|
|
})
|
2023-09-28 16:30:07 +08:00
|
|
|
break
|
2023-10-27 16:09:09 +08:00
|
|
|
case 'book':
|
|
|
|
|
uni.openDocument({
|
2023-11-03 16:33:16 +08:00
|
|
|
filePath: '/static/user_manual.docx',
|
2023-10-27 16:09:09 +08:00
|
|
|
success: function (res) {
|
|
|
|
|
console.log('打开文档成功')
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
break
|
2023-01-13 16:32:56 +08:00
|
|
|
case 'layout':
|
2023-09-28 16:30:07 +08:00
|
|
|
uni.showModal({
|
|
|
|
|
title: '提示',
|
2023-10-26 09:03:16 +08:00
|
|
|
content: '是否确认退出登录?',
|
2023-09-28 16:30:07 +08:00
|
|
|
success: (res) => {
|
|
|
|
|
if (res.confirm) {
|
2023-11-03 16:33:16 +08:00
|
|
|
uni.removeStorageSync(this.$cacheKey.messageCount)
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
|
|
plus.runtime.setBadgeNumber(0)
|
|
|
|
|
// #endif
|
2023-09-28 16:30:07 +08:00
|
|
|
uni.reLaunch({
|
|
|
|
|
url: `/pages/user/login`,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-01-13 16:32:56 +08:00
|
|
|
})
|
2023-09-28 16:30:07 +08:00
|
|
|
break
|
2023-01-12 10:03:25 +08:00
|
|
|
default:
|
|
|
|
|
uni.navigateTo({
|
2023-09-28 16:30:07 +08:00
|
|
|
url: `/pages/mine/${type}`,
|
2023-01-12 10:03:25 +08:00
|
|
|
})
|
2023-09-28 16:30:07 +08:00
|
|
|
break
|
2023-01-12 10:03:25 +08:00
|
|
|
}
|
2023-09-28 16:30:07 +08:00
|
|
|
},
|
2023-01-12 10:03:25 +08:00
|
|
|
},
|
2023-04-07 08:50:21 +08:00
|
|
|
onLoad() {
|
2023-01-12 10:03:25 +08:00
|
|
|
this.init()
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.mine {
|
2023-02-20 14:19:28 +08:00
|
|
|
padding-top: 20rpx;
|
2023-04-07 08:50:21 +08:00
|
|
|
|
2023-01-12 10:03:25 +08:00
|
|
|
.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 {
|
2023-04-07 08:50:21 +08:00
|
|
|
padding: 34rpx;
|
2023-01-12 10:03:25 +08:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-28 16:30:07 +08:00
|
|
|
</style>
|