| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <template>
- <page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
- <view class="userV" >
- <view class="contentIncolumnC bg-img-mine bottomLine">
- <view v-if="user" class="contentIncolumnC">
- <image class="logoImg" :src="user.avatar" mode="scaleToFill"></image>
- <view class="text-xl text-center text-black" >
- {{ user.name }}
- </view>
- </view>
- </view>
- <view class="contentIncolumnC" style="margin-top:20rpx">
- <view class="contentInRowS itemView" @tap="userinfo">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/gerenxx.png" mode="scaleToFill"></image>
- <text class="titleText">个人信息</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" @tap="fontSizeSetting">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/gerenxx.png" mode="scaleToFill"></image>
- <text class="titleText">字体大小</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" @tap="handlePassword">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/xiugaimm.png" mode="scaleToFill"></image>
- <text class="titleText">修改密码</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" style="margin-top: 0rpx;" @tap="zhaohuiPassword">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/gerenxx.png" mode="scaleToFill"></image>
- <text class="titleText">重置密码</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" style="margin-top: 0rpx;" @tap="handlesavePassword">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/anquanmm.png" mode="scaleToFill"></image>
- <text class="titleText">安全密码</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" @tap="handleCollect">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/shoucjia.png" mode="scaleToFill"></image>
- <text class="titleText">收藏夹</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
-
- <view class="contentInRowS itemView" @tap="setting">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/shezhi.png" mode="scaleToFill"></image>
- <text class="titleText">聊天设置</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" @tap="yinsizhengc">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/gerenxx.png" mode="scaleToFill"></image>
- <text class="titleText">隐私政策</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentInRowS itemView" @tap="zhuxiaozhanghao">
- <view class="contentInRowL">
- <image style="width:40rpx;height:40rpx;" src="/static/mine/gerenxx.png" mode="scaleToFill"></image>
- <text class="titleText">注销账号</text>
- </view>
- <image style="width:40rpx;height:40rpx;" src="/static/mine/youjt.png" mode="scaleToFill"></image>
- </view>
- <view class="contentIncolumnC itemView" style="margin-top: 40rpx;" @tap="logout">
- <text class="titleText">退出登录</text>
- </view>
- </view>
-
- <view class="text-sm text-center text-grey" style="margin-top: 10rpx;">
- {{version}}
- </view>
-
- <view class="text-center text-black" style="margin-top: 10rpx;font-size: 10px;">
- Copyright © 2024 Amazeway TECH Inc. 保留所有权利。
- </view>
-
- <view style="height: 150upx;"></view>
- </view>
- </template>
- <script setup lang="ts">
- import {getCurrentInstance, ref} from "vue";
- import Auth from "@/api/Auth";
- import UserApi from "@/api/UserApi";
- import type User from "@/mode/User";
- import {onShow} from '@dcloudio/uni-app'
- const fontValue=ref(Auth.getfontSize());
- const user = ref<User>();
- const version = ref('');
- const {proxy} = getCurrentInstance();
- UserApi.currentUser()
- .then((res) => {
- user.value = res.data;
- getVersion();
- })
- onShow(() =>{
- fontValue.value=Auth.getfontSize();
- })
- const handlePassword = () => {
- uni.navigateTo({
- url: '/pages/mine/password'
- })
- }
- const zhaohuiPassword = () => {
- uni.navigateTo({
- url: '/pages/mine/zhpassword'
- })
- }
- const handlesavePassword = () => {
- uni.navigateTo({
- url: '/pages/mine/savepassword'
- })
- }
- const handleCollect = () => {
- uni.navigateTo({
- url: '/pages/collect/index'
- })
- }
- const systemInfo = () => {
- uni.navigateTo({
- url: '/pages/mine/system'
- })
- }
- if (!user) {
- uni.reLaunch({
- url: '/pages/login/login'
- })
- }
- const userinfo = () => {
- uni.navigateTo({
- url: '/pages/mine/info'
- })
- }
- const fontSizeSetting = () => {
- console.log('fontSizeSetting')
- uni.navigateTo({
- url: '/pages/mine/fontSizeSetting'
- })
- }
- const setting = () => {
- uni.navigateTo({
- url: '/pages/mine/setting'
- })
- }
- const yinsizhengc = () =>{
- uni.navigateTo({
- url: '/pages/mine/yinsizhngce'
- })
- }
- const zhuxiaozhanghao = () =>{
- uni.navigateTo({
- url: '/pages/mine/zhuxiaozhanghao'
- })
- }
- const logout = () => {
- uni.showModal({
- title: '提示',
- content: '是否退出登录?',
- cancelText: '取消',
- confirmText: '确定',
- success: res => {
- if (res.confirm) {
- Auth.logout();
- }
- }
- });
-
- }
- const getVersion=()=>{
- var info = uni.getSystemInfoSync();
- version.value='Version:'+info.appVersion+' VersionCode:'+info.appVersionCode;
- console.log(info);
- }
- </script>
- <style scoped>
- @import url('@/static/css/main.css');
- .logoImg{
- width: 170upx;
- height: 170upx;
- margin-top: 50upx;
- border-radius: 85upx;
- margin-bottom:16rpx;
- }
- .gif-wave {
- position: absolute;
- width: 100%;
- bottom: 0;
- left: 0;
- z-index: 99;
- mix-blend-mode: screen;
- height: 100upx;
- }
- .bg-img-mine {
- height: 400upx;
- }
- .menu-margin {
- margin-bottom: 51px;
- }
- .userV{
- width: 100%;
- height:100%;
- background-image: url("/static/wodeBG.png");
- /* background-image: url("/static/images/wodetop.jpg"); */
- background-size: cover;
- background-position: center bottom;
- }
- .itemView{
- padding: 16rpx;
- margin-top:20rpx;
- width:90%;
- height: 100rpx;
- border-radius: 8rpx;
- border: 1rpx solid lightgray;
- }
- .titleText{
- font-weight:600;
- font-size: 32upx;
- color:black;
- margin-left: 10rpx;
- }
- </style>
|