-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.vue
62 lines (49 loc) · 1.16 KB
/
App.vue
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
<script>
import {UniWebSocket} from "./models/uniwebsocket";
import {UserData} from "./models/userData";
import {ChatMsgLog} from "./models/chatMsgLog";
import {ChatMsg} from "./models/chatMsg";
import {DataContent} from "./models/datacontent";
import {DataContentAction} from "./models/dataContentAction";
export default {
onLaunch: function() {
console.log('App Launch');
// uni.removeStorage({
// key:"chatonMessageList"
// })
// //#ifdef APP-PLUS
// plus.removeStorage("chatonMessageList");
// //#endif
},
created() {
//设置重连回调
// uni.$on("setUniWebSocket",(event)=>{
// this.setUniWebSocket();
// })
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
},
methods:{
}
};
</script>
<style>
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: uniicons;
src: url('/static/uni.ttf');
}
/* #endif */
.block-color{
background-color: #FF9090;
}
</style>
<style lang="scss">
@import 'uview-ui/index.scss';
@import '@/mypUI/base.scss';
</style>