App.vue
770 Bytes
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
<script>
import base from '@/config/baseUrl';
import store from '@/store';
import { mpUpData, scene } from '@/config/common';
export default {
//设置全局变量,解绑时从这里取
globalData: {
openId: ''
},
onLaunch(e) {
//取出缓存数据
store.commit('setCacheData');
//获取二维码信息
scene(e);
},
onShow(e) {
// #ifdef MP
mpUpData(); //检测小程序更新
// #endif
},
onHide() {
console.log('App Hide');
}
};
</script>
<style lang="scss">
/* #ifndef APP-NVUE */
@import '@/uni_modules/uview-ui/index.scss';
@import './style/iconfont.scss';
@import './style/common.scss';
page {
background-color: #f5f5f5;
}
// 隐藏滚动条
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
/* #endif */
</style>