App.vue
1.23 KB
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
<script>
export default {
onLaunch: function() {
console.log('App Launch');
// const host = 'https://zhld.028wlkj.com:49008/cdwlMall'
// let c1 = host.split('cdwlMall')[0];
// console.error(c1);
let info = {
// phone:uni.getStorageSync('user').phone,
phone:'18121815598',
}
let that = this
// setInterval(() => {
// that.$http.sendRequest('/cereMessage/getMessageNum', 'GET',{...info},1).then(res => {
// console.error(res)
// getApp().globalData.MessageNum = res.data
// that.$forceUpdate()
// })
// }, 6000)
},
onShow: function() {
},
onHide: function() {
console.log('App Hide');
},
globalData: {
MessageNum:0
}
};
</script>
<style lang="scss">
@import "uview-ui/index.scss";
/*每个页面公共css */
@import 'colorui/main.css';
body{
-webkit-text-size-adjust:none;
}
/* 超出一行省略号 */
.one-omit {
white-space: nowrap; /*规定段落中的文本不进行换行*/
overflow: hidden; /*内容会被修剪,并且其余内容是不可见的。*/
text-overflow: ellipsis; /*显示省略号来代表被修剪的文本*/
}
.two-omit {
display: -webkit-box;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
img{
width: 100%;
}
</style>