1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
| <template>
| <view class="content">
| <image class="logo" src="/static/logo.png"></image>
| <view class="text-area">
| <text class="title">{{title}}__{{userName}}1.4</text>
| <button type="default" @click="cc"></button>
| </view>
| <u-tabbar v-model="current" :list="list"></u-tabbar>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| title: 'Hello',
| current:0,
| list:[
| {
| iconPath: "home",
| selectedIconPath: "home-fill",
| text: '首页',
| count: 2,
| isDot: true,
|
| }
| ]
| }
| },
| onLoad() {
|
| },
| methods: {
| cc() {
| this.$store.commit('loginReset', this); //重置登录
| console.log('清空')
| }
| },
| computed: {
| userName() {
| return this.$store.state.message.useName;
| }
| },
|
| }
| </script>
|
| <style>
| .content {
| display: flex;
| flex-direction: column;
| align-items: center;
| justify-content: center;
| }
|
| .logo {
| height: 200rpx;
| width: 200rpx;
| margin-top: 200rpx;
| margin-left: auto;
| margin-right: auto;
| margin-bottom: 50rpx;
| }
|
| .text-area {
| display: flex;
| justify-content: center;
| }
|
| .title {
| font-size: 36rpx;
| color: #8f8f94;
| }
| </style>
|
|