|
1
|
|
-<script>
|
|
2
|
|
- import store from '@/store';
|
|
3
|
|
-
|
|
4
|
|
- export default {
|
|
5
|
|
- //设置全局变量,解绑时从这里取
|
|
6
|
|
- globalData: {
|
|
7
|
|
- openId: ''
|
|
8
|
|
- },
|
|
9
|
|
- onLaunch(e) {
|
|
10
|
|
- // #ifdef APP-PLUS
|
|
11
|
|
- uni.reLaunch({
|
|
12
|
|
- url: '/pages/index/splash'
|
|
13
|
|
- })
|
|
14
|
|
- // #endif
|
|
15
|
|
- },
|
|
16
|
|
- onShow() {},
|
|
17
|
|
- onHide() {}
|
|
18
|
|
- };
|
|
19
|
|
-</script>
|
|
20
|
|
-
|
|
21
|
|
-<style lang="scss">
|
|
22
|
|
- @import '@/uni_modules/uview-ui/index.scss';
|
|
23
|
|
- @import './style/iconfont.scss';
|
|
24
|
|
- @import './style/common.scss';
|
|
25
|
|
-
|
|
26
|
|
- page {
|
|
27
|
|
- background: #ffffff;
|
|
28
|
|
- }
|
|
29
|
|
-
|
|
30
|
|
- ::-webkit-scrollbar {
|
|
31
|
|
- display: none;
|
|
32
|
|
- width: 0 !important;
|
|
33
|
|
- height: 0 !important;
|
|
34
|
|
- -webkit-appearance: none;
|
|
35
|
|
- background: transparent;
|
|
36
|
|
- }
|
|
37
|
|
-</style> |
|
|
1
|
+<script>
|
|
|
2
|
+ import store from '@/store';
|
|
|
3
|
+ // import {
|
|
|
4
|
+ // scene
|
|
|
5
|
+ // } from '@/config/common';
|
|
|
6
|
+
|
|
|
7
|
+ export default {
|
|
|
8
|
+ //设置全局变量,解绑时从这里取
|
|
|
9
|
+ globalData: {
|
|
|
10
|
+ openId: ''
|
|
|
11
|
+ },
|
|
|
12
|
+ onLaunch(e) {
|
|
|
13
|
+ //取出缓存数据
|
|
|
14
|
+ // store.commit('setCacheData');
|
|
|
15
|
+ //获取二维码信息
|
|
|
16
|
+ // scene(e);
|
|
|
17
|
+ // #ifdef APP-PLUS
|
|
|
18
|
+ uni.reLaunch({
|
|
|
19
|
+ url: '/pages/index/splash'
|
|
|
20
|
+ })
|
|
|
21
|
+ // #endif
|
|
|
22
|
+ },
|
|
|
23
|
+ onShow(e) {
|
|
|
24
|
+ // #ifdef MP
|
|
|
25
|
+ // mpUpData(); //检测小程序更新
|
|
|
26
|
+ // #endif
|
|
|
27
|
+ // #ifdef APP-PLUS
|
|
|
28
|
+ // uni.reLaunch({
|
|
|
29
|
+ // url: '/pages/index/splash'
|
|
|
30
|
+ // })
|
|
|
31
|
+ // #endif
|
|
|
32
|
+ },
|
|
|
33
|
+ onHide() {},
|
|
|
34
|
+ onUnload(){
|
|
|
35
|
+ uni.setStorageSync('getConfiguration', {
|
|
|
36
|
+ isConfiguration: false
|
|
|
37
|
+ });
|
|
|
38
|
+ },
|
|
|
39
|
+ methods:{
|
|
|
40
|
+ // 判断是否是第三方登录没有绑定账号不请求数据
|
|
|
41
|
+ getBindNot(){
|
|
|
42
|
+ // #ifndef H5
|
|
|
43
|
+ const userInfo = uni.getStorageSync('userInfo');
|
|
|
44
|
+ // #endif
|
|
|
45
|
+ // #ifdef H5
|
|
|
46
|
+ const userInfo = JSON.parse(sessionStorage.getItem('userInfo') || localStorage.getItem('userInfo'));
|
|
|
47
|
+ // #endif
|
|
|
48
|
+ return userInfo.isThirdLogin
|
|
|
49
|
+ }
|
|
|
50
|
+ }
|
|
|
51
|
+ };
|
|
|
52
|
+</script>
|
|
|
53
|
+
|
|
|
54
|
+<style lang="scss">
|
|
|
55
|
+ @import '@/uni_modules/uview-ui/index.scss';
|
|
|
56
|
+ @import './style/iconfont.scss';
|
|
|
57
|
+ @import './style/common.scss';
|
|
|
58
|
+
|
|
|
59
|
+ page {
|
|
|
60
|
+ background: #ffffff;
|
|
|
61
|
+ }
|
|
|
62
|
+
|
|
|
63
|
+ ::-webkit-scrollbar {
|
|
|
64
|
+ display: none;
|
|
|
65
|
+ width: 0 !important;
|
|
|
66
|
+ height: 0 !important;
|
|
|
67
|
+ -webkit-appearance: none;
|
|
|
68
|
+ background: transparent;
|
|
|
69
|
+ }
|
|
|
70
|
+</style> |
...
|
...
|
|