|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<view class="mine-area">
|
|
|
+ <image style="width: 100%;" mode="aspectFill" :src="require('@/static/images/微信图片_20230411112151.png')"></image>
|
|
|
<view class="big-circle"></view>
|
|
|
<view class="avatar-area z10" >
|
|
|
<u-avatar :src="src" size="80" shape="circle"></u-avatar>
|
|
@@ -18,12 +19,12 @@
|
|
|
<text>我的信息</text>
|
|
|
</view>
|
|
|
</u-list-item>
|
|
|
- <u-list-item>
|
|
|
+ <!-- <u-list-item>
|
|
|
<view class="menu-list" @click="toBorrowRecord">
|
|
|
<i class="iconfont icon-qianbao"></i>
|
|
|
<text>借用记录</text>
|
|
|
</view>
|
|
|
- </u-list-item>
|
|
|
+ </u-list-item> -->
|
|
|
<u-list-item>
|
|
|
<view class="menu-list" @click="toRepeat">
|
|
|
<i class="iconfont icon-a-shezhi2"></i>
|
|
@@ -36,7 +37,7 @@
|
|
|
<text>故障处理</text>
|
|
|
</view>
|
|
|
</u-list-item>
|
|
|
- <u-list-item>
|
|
|
+ <!-- <u-list-item>
|
|
|
<view class="menu-list">
|
|
|
<i class="iconfont icon-dangewenjian"></i>
|
|
|
<text>使用指南</text>
|
|
@@ -47,7 +48,7 @@
|
|
|
<i class="iconfont icon-bangzhu"></i>
|
|
|
<text>关于我们</text>
|
|
|
</view>
|
|
|
- </u-list-item>
|
|
|
+ </u-list-item> -->
|
|
|
<u-list-item>
|
|
|
<view class="menu-list" @click="toLogout">
|
|
|
<i class="iconfont icon-tuichu"></i>
|
|
@@ -67,9 +68,9 @@
|
|
|
data() {
|
|
|
return {
|
|
|
src: 'https://tupian.qqw21.com/article/UploadPic/2021-1/20211722215735941.jpg',
|
|
|
- name: cache.session.getJSON('nickName'),
|
|
|
+ name: "",
|
|
|
amount:null,
|
|
|
- role:cache.session.getJSON('role')
|
|
|
+ role:""
|
|
|
};
|
|
|
},
|
|
|
methods:{
|
|
@@ -79,7 +80,7 @@
|
|
|
})
|
|
|
},
|
|
|
toBorrowRecord(){
|
|
|
- uni.navigateTo({
|
|
|
+ uni.switchTab({
|
|
|
url:'/pages/menus/borrow-record/borrow-record'
|
|
|
})
|
|
|
},
|
|
@@ -119,7 +120,7 @@
|
|
|
logout().then(res=>{
|
|
|
if(res.data.code===200&&res.data.msg==="退出成功"){
|
|
|
uni.hideLoading()
|
|
|
- uni.reLaunch({
|
|
|
+ uni.switchTab({
|
|
|
url:'/pages/home/home'
|
|
|
})
|
|
|
}
|
|
@@ -151,7 +152,7 @@
|
|
|
logout().then(res=>{
|
|
|
if(res.data.code===200&&res.data.msg==="退出成功"){
|
|
|
uni.hideLoading()
|
|
|
- uni.reLaunch({
|
|
|
+ uni.switchTab({
|
|
|
url:'/pages/home/home'
|
|
|
})
|
|
|
}
|
|
@@ -172,13 +173,18 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.init()
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ this.name = cache.session.getJSON('nickName')
|
|
|
+ this.role = cache.session.getJSON('role')
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
.mine-area{
|
|
|
- background-color: #000;
|
|
|
+ // background-color: #225f15;
|
|
|
+ // background-image: url('@/static/images/tsg02 (1).jpg');
|
|
|
height: 100vh;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
@@ -192,7 +198,7 @@
|
|
|
top: 25%;
|
|
|
left: 50%;
|
|
|
transform: translate(-50%, 0);
|
|
|
- z-index: 1;
|
|
|
+ z-index: 5;
|
|
|
}
|
|
|
.avatar-area{
|
|
|
position: absolute;
|