Commit 7e120aed189a08d565b937e8a26b5cff218a43db
Merge branch 'ft-dev' into 'main'
fix:app端tabbar配置图片 See merge request huang/thingskit-app!58
Showing
9 changed files
with
113 additions
and
28 deletions
... | ... | @@ -81,6 +81,7 @@ export default { |
81 | 81 | systemInfo: base.systemInfo, |
82 | 82 | tabIndex: 0, |
83 | 83 | path: '', //当前路径 |
84 | + //#ifdef MP | |
84 | 85 | list: [ |
85 | 86 | { |
86 | 87 | name: '首页', |
... | ... | @@ -107,7 +108,37 @@ export default { |
107 | 108 | icon: '../../../static/my-un.png', |
108 | 109 | iconFill: '../../../static/my-yes.png' |
109 | 110 | } |
111 | + ], | |
112 | + //#endif | |
113 | + //#ifdef APP-PLUS | |
114 | + list: [ | |
115 | + { | |
116 | + name: '首页', | |
117 | + url: 'pages/index/index', | |
118 | + icon: '/static/home-un.png', | |
119 | + iconFill: '/static/home-yes.png' | |
120 | + }, | |
121 | + { | |
122 | + name: '设备', | |
123 | + url: 'pages/device/device', | |
124 | + icon: '/static/device-un.png', | |
125 | + iconFill: '/static/device-yes.png' | |
126 | + }, | |
127 | + { | |
128 | + name: '告警', | |
129 | + url: 'pages/alarm/alarm', | |
130 | + icon: '/static/alert-un.png', | |
131 | + iconFill: '/static/alert-yes.png', | |
132 | + badge: this.$store.state.badgeInfo | |
133 | + }, | |
134 | + { | |
135 | + name: '我的', | |
136 | + url: 'pages/personal/personal', | |
137 | + icon: '/static/my-un.png', | |
138 | + iconFill: '/static/my-yes.png' | |
139 | + } | |
110 | 140 | ] |
141 | + //#endif | |
111 | 142 | }; |
112 | 143 | }, |
113 | 144 | created() { |
... | ... | @@ -125,7 +156,7 @@ export default { |
125 | 156 | }, |
126 | 157 | methods: { |
127 | 158 | onTabbar(index) { |
128 | - this.list[2].badge =this.$store.state.badgeInfo | |
159 | + this.list[2].badge = this.$store.state.badgeInfo; | |
129 | 160 | |
130 | 161 | if (this.list[index].url) { |
131 | 162 | if (this.path !== this.list[index].url) { |
... | ... | @@ -147,4 +178,4 @@ export default { |
147 | 178 | right: 0; |
148 | 179 | z-index: 1000; |
149 | 180 | } |
150 | -</style> | |
181 | +</style> | ... | ... |
1 | 1 | { |
2 | 2 | "name": "yun-teng-app", |
3 | - "appid": "__UNI__C873643", | |
4 | - "description": "thingskit小程序", | |
3 | + "appid": "__UNI__AD0D64F", | |
4 | + "description": "thingskit", | |
5 | 5 | "versionName": "1.0.0", |
6 | 6 | "versionCode": 100, |
7 | 7 | "transformPx": false, |
... | ... | @@ -15,7 +15,13 @@ |
15 | 15 | "autoclose": true, |
16 | 16 | "delay": 0 |
17 | 17 | }, |
18 | - "modules": {}, | |
18 | + "modules": { | |
19 | + "VideoPlayer": {}, | |
20 | + "Contacts": {}, | |
21 | + "OAuth": {}, | |
22 | + "Messaging": {}, | |
23 | + "FaceID": {} | |
24 | + }, | |
19 | 25 | "distribute": { |
20 | 26 | "android": { |
21 | 27 | "permissions": [ |
... | ... | @@ -29,13 +35,19 @@ |
29 | 35 | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
30 | 36 | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
31 | 37 | "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>", |
38 | + "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", | |
32 | 39 | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
40 | + "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", | |
33 | 41 | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
34 | 42 | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
43 | + "<uses-permission android:name=\"android.permission.READ_SMS\"/>", | |
35 | 44 | "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>", |
45 | + "<uses-permission android:name=\"android.permission.SEND_SMS\"/>", | |
36 | 46 | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
37 | 47 | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
38 | - "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" | |
48 | + "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", | |
49 | + "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", | |
50 | + "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>" | |
39 | 51 | ] |
40 | 52 | }, |
41 | 53 | "ios": {}, |
... | ... | @@ -51,7 +63,16 @@ |
51 | 63 | "appkey_android": "" |
52 | 64 | } |
53 | 65 | }, |
54 | - "maps": {} | |
66 | + "maps": {}, | |
67 | + "oauth": {} | |
68 | + }, | |
69 | + "splashscreen": { | |
70 | + "androidStyle": "default", | |
71 | + "android": { | |
72 | + "hdpi": "C:/Users/YunTeng/Pictures/logo.png", | |
73 | + "xhdpi": "C:/Users/YunTeng/Pictures/logo.png", | |
74 | + "xxhdpi": "C:/Users/YunTeng/Pictures/logo.png" | |
75 | + } | |
55 | 76 | } |
56 | 77 | } |
57 | 78 | }, | ... | ... |
... | ... | @@ -152,34 +152,34 @@ |
152 | 152 | "backgroundColorTop": "#FFFFFF" |
153 | 153 | }, |
154 | 154 | "tabBar": { |
155 | - "color": "#ffffff", | |
156 | - "selectedColor": "#ffffff", | |
155 | + "color": "#000000", | |
156 | + "selectedColor": "#377dff", | |
157 | 157 | "borderStyle": "black", |
158 | - "backgroundColor": "#ffffff", | |
158 | + "backgroundColor": "#606266", | |
159 | 159 | "list": [{ |
160 | 160 | "pagePath": "pages/index/index", |
161 | - "iconPath": "static/basics.png", | |
162 | - "selectedIconPath": "static/basics.png", | |
161 | + "iconPath": "static/home-un.png", | |
162 | + "selectedIconPath": "static/home-yes.png", | |
163 | 163 | "text": "首页" |
164 | 164 | }, |
165 | 165 | { |
166 | 166 | "pagePath": "pages/device/device", |
167 | - "iconPath": "static/basics.png", | |
168 | - "selectedIconPath": "static/basics.png", | |
167 | + "iconPath": "static/device-un.png", | |
168 | + "selectedIconPath": "static/device-yes.png", | |
169 | 169 | "text": "设备" |
170 | 170 | }, |
171 | 171 | { |
172 | 172 | "pagePath": "pages/alarm/alarm", |
173 | - "iconPath": "static/basics.png", | |
174 | - "selectedIconPath": "static/basics.png", | |
173 | + "iconPath": "static/alert-un.png", | |
174 | + "selectedIconPath": "static/alert-yes.png", | |
175 | 175 | "text": "告警" |
176 | 176 | }, |
177 | 177 | { |
178 | 178 | "pagePath": "pages/personal/personal", |
179 | - "iconPath": "static/basics.png", | |
180 | - "selectedIconPath": "static/basics.png", | |
179 | + "iconPath": "static/my-un.png", | |
180 | + "selectedIconPath": "static/my-yes.png", | |
181 | 181 | "text": "我的" |
182 | 182 | } |
183 | 183 | ] |
184 | 184 | } |
185 | -} | |
185 | +} | ... | ... |
... | ... | @@ -14,13 +14,14 @@ |
14 | 14 | <image src="../../static/shaixuan.png" /> |
15 | 15 | </view> |
16 | 16 | </view> |
17 | + <u-line /> | |
17 | 18 | <view class="org"> |
18 | 19 | <u-cell @click="openOrg" isLink title="组织关系" :border="false"> |
19 | 20 | <view slot="label" class="label" style="display: flex; align-items: center;margin-top: 20rpx;"> |
20 | - <image src="../../static/org.png" style="width: 24rpx;height: 28rpx;top: -30rpx;"></image> | |
21 | + <image src="../../static/org.png" style="width: 24rpx;height: 28rpx;"></image> | |
21 | 22 | <view style="margin-left: 10rpx; color: #666;"> |
22 | 23 | 告警数: |
23 | - <text class="text-org-total" style="margin-left: 20rpx;">{{ alertTotal }}</text> | |
24 | + <text style="margin-left: 20rpx;">{{ alertTotal }}</text> | |
24 | 25 | </view> |
25 | 26 | </view> |
26 | 27 | </u-cell> |
... | ... | @@ -523,4 +524,30 @@ export default { |
523 | 524 | height: 100%; |
524 | 525 | width: 100%; |
525 | 526 | } |
527 | +.device-top { | |
528 | + padding: 10rpx 30rpx; | |
529 | + background-color: #fff; | |
530 | + .search { | |
531 | + display: flex; | |
532 | + justify-content: space-between; | |
533 | + padding-bottom: 10rpx; | |
534 | + .search-left { | |
535 | + width: 580rpx; | |
536 | + background-color: #f8f9fa; | |
537 | + border-radius: 200rpx; | |
538 | + } | |
539 | + .search-right { | |
540 | + display: flex; | |
541 | + align-items: center; | |
542 | + text { | |
543 | + color: #333; | |
544 | + font-size: 14px; | |
545 | + } | |
546 | + image { | |
547 | + width: 40rpx; | |
548 | + height: 40rpx; | |
549 | + } | |
550 | + } | |
551 | + } | |
552 | +} | |
526 | 553 | </style> | ... | ... |
... | ... | @@ -127,11 +127,12 @@ export default { |
127 | 127 | uni.showToast({ |
128 | 128 | title: '第三方账号登录成功~', |
129 | 129 | icon: 'none' |
130 | - }); | |
131 | - this.saveUserInfo(); | |
132 | - this.getAlarmTotalData(); | |
133 | - uni.reLaunch({ | |
134 | - url: '../../pages/personal/personal' | |
130 | + }).then(async res => { | |
131 | + this.saveUserInfo(); | |
132 | + await this.getAlarmTotalData(); | |
133 | + uni.reLaunch({ | |
134 | + url: '/pages/personal/personal' | |
135 | + }); | |
135 | 136 | }); |
136 | 137 | } |
137 | 138 | }) | ... | ... |