Browse Source

前台右上角添加退出登录

master
1747191978@qq.com 4 months ago
parent
commit
76e6273e3e
  1. 24
      大唐会议前台1/App.vue
  2. BIN
      大唐会议前台1/imgs/out.png
  3. BIN
      大唐会议前台1/imgs/tx.png
  4. 2
      大唐会议前台1/manifest.json
  5. 14
      大唐会议前台1/pages/index/details.vue
  6. 15
      大唐会议前台1/pages/index/index.vue

24
大唐会议前台1/App.vue

@ -30,6 +30,30 @@
font-size: 16px; font-size: 16px;
} }
.avatarobx {
top: 20px;
right: 20px;
position: fixed;
display: flex;
align-items: center;
color: #fff;
.view-out {
margin-right: 10px;
}
.avatar {
border-radius: 6px;
width: 30px;
height: 30px
}
.out {
width: 30px;
height: 30px
}
}
.view-backimg { .view-backimg {
position: fixed; position: fixed;
top: 0; top: 0;

BIN
大唐会议前台1/imgs/out.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
大唐会议前台1/imgs/tx.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

2
大唐会议前台1/manifest.json

@ -140,7 +140,7 @@
"enable" : false "enable" : false
} }
}, },
"title" : "认知训练", "title" : "神头发电会议系统",
"sdkConfigs" : { "sdkConfigs" : {
"maps" : { "maps" : {
"qqmap" : { "qqmap" : {

14
大唐会议前台1/pages/index/details.vue

@ -19,9 +19,10 @@
<view class="view-backimg-bottom"></view> <view class="view-backimg-bottom"></view>
</view> </view>
<!-- 头像 - 头像 --> <!-- 头像 - 头像 -->
<!-- <view class="avatar"> <view class="avatarobx">
<u-avatar></u-avatar> <view class="view-out" @click="handleOut">退出登录</view>
</view> --> <image class="avatar" src='../../imgs/tx.png' mode="widthFix" ></image>
</view>
</view> </view>
</template> </template>
@ -53,6 +54,13 @@
this.getMeetingDetails(curParam.id) // this.getMeetingDetails(curParam.id) //
}, },
methods: { methods: {
// 退
handleOut(){
uni.clearStorage();
uni.reLaunch({
url: '/pages/user/login',
});
},
// logo // logo
handleLogo() { handleLogo() {
// uni.navigateTo({ // uni.navigateTo({

15
大唐会议前台1/pages/index/index.vue

@ -22,7 +22,11 @@
<view class="view-backimg-top"></view> <view class="view-backimg-top"></view>
<view class="view-backimg-bottom"></view> <view class="view-backimg-bottom"></view>
</view> </view>
<!-- 头像 - 头像 -->
<view class="avatarobx">
<view class="view-out" @click="handleOut">退出登录</view>
<image class="avatar" src='../../imgs/tx.png' mode="widthFix" ></image>
</view>
</view> </view>
</template> </template>
@ -44,6 +48,13 @@
this.getQueryMeeting() // this.getQueryMeeting() //
}, },
methods: { methods: {
// 退
handleOut(){
uni.clearStorage();
uni.reLaunch({
url: '/pages/user/login',
});
},
// logo // logo
handleLogo(){ handleLogo(){
uni.navigateTo({ uni.navigateTo({
@ -79,6 +90,8 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.view-box{ .view-box{
margin-top:50px ; margin-top:50px ;
} }

Loading…
Cancel
Save