|
@@ -22,7 +22,7 @@
|
22
|
22
|
{{$route.name}}
|
23
|
23
|
</div>
|
24
|
24
|
<div class="right">
|
25
|
|
- <div class="news"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/news.png"></div>
|
|
25
|
+ <div @click="onAppMessage" class="news"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/news.png"></div>
|
26
|
26
|
<div class="head-img"><img :src="userInfo.avatar_url"></div>
|
27
|
27
|
<el-dropdown trigger="click"
|
28
|
28
|
placement="top"
|
|
@@ -41,11 +41,20 @@
|
41
|
41
|
<router-view></router-view>
|
42
|
42
|
</div>
|
43
|
43
|
</div>
|
|
44
|
+ <minePupop :show="msgPupopVisible">
|
|
45
|
+ <div class="block">
|
|
46
|
+ <div class="delete-pupop" @click="msgPupopVisible=false">
|
|
47
|
+ <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png" alt />
|
|
48
|
+ </div>
|
|
49
|
+ </div>
|
|
50
|
+ </minePupop>
|
44
|
51
|
</div>
|
45
|
52
|
</template>
|
46
|
53
|
|
47
|
54
|
<script type="text/javascript">
|
|
55
|
+import { mapMutations } from 'vuex'
|
48
|
56
|
import leftMenu from './leftMenu'
|
|
57
|
+import minePupop from "../../../components/minePupop/index.vue";
|
49
|
58
|
import api from '@/server/home'
|
50
|
59
|
|
51
|
60
|
|
|
@@ -58,7 +67,8 @@ export default {
|
58
|
67
|
isback: false,
|
59
|
68
|
userInfo: {
|
60
|
69
|
name: '333'
|
61
|
|
- }
|
|
70
|
+ },
|
|
71
|
+ msgPupopVisible: false
|
62
|
72
|
}
|
63
|
73
|
},
|
64
|
74
|
created () {
|
|
@@ -66,8 +76,10 @@ export default {
|
66
|
76
|
},
|
67
|
77
|
components: {
|
68
|
78
|
leftMenu,
|
|
79
|
+ minePupop
|
69
|
80
|
},
|
70
|
81
|
methods: {
|
|
82
|
+ ...mapMutations(['SAVE_COMMON_VALUE']),
|
71
|
83
|
getUserInfo () {
|
72
|
84
|
let that = this
|
73
|
85
|
api.getUserInfo().then(res => {
|
|
@@ -78,7 +90,16 @@ export default {
|
78
|
90
|
})
|
79
|
91
|
},
|
80
|
92
|
loginOut () {
|
|
93
|
+ this.SAVE_COMMON_VALUE({
|
|
94
|
+ 'key': 'token',
|
|
95
|
+ 'value': null
|
|
96
|
+ })
|
|
97
|
+ this.SAVE_COMMON_VALUE({
|
|
98
|
+ 'key': 'isLogin',
|
|
99
|
+ 'value': false
|
|
100
|
+ })
|
81
|
101
|
localStorage.removeItem('token');
|
|
102
|
+
|
82
|
103
|
this.$router.replace('/login')
|
83
|
104
|
},
|
84
|
105
|
changeMenu (index) {
|
|
@@ -89,6 +110,9 @@ export default {
|
89
|
110
|
},
|
90
|
111
|
goBack () {
|
91
|
112
|
this.$router.back()
|
|
113
|
+ },
|
|
114
|
+ onAppMessage () {
|
|
115
|
+ this.msgPupopVisible = true
|
92
|
116
|
}
|
93
|
117
|
},
|
94
|
118
|
computed: {
|
|
@@ -217,4 +241,23 @@ export default {
|
217
|
241
|
background-color: #f7f8fa;
|
218
|
242
|
}
|
219
|
243
|
}
|
|
244
|
+.block {
|
|
245
|
+ width: 540px;
|
|
246
|
+ height: 550px;
|
|
247
|
+ background: #ffffff;
|
|
248
|
+ border-radius: 8px;
|
|
249
|
+ position: relative;
|
|
250
|
+ .delete-pupop {
|
|
251
|
+ position: absolute;
|
|
252
|
+ width: 32px;
|
|
253
|
+ height: 32px;
|
|
254
|
+ top: 5px;
|
|
255
|
+ right: 5px;
|
|
256
|
+ img {
|
|
257
|
+ width: 100%;
|
|
258
|
+ height: 100%;
|
|
259
|
+ display: block;
|
|
260
|
+ }
|
|
261
|
+ }
|
|
262
|
+}
|
220
|
263
|
</style>
|