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,6 +81,7 @@ export default { | ||
81 | systemInfo: base.systemInfo, | 81 | systemInfo: base.systemInfo, |
82 | tabIndex: 0, | 82 | tabIndex: 0, |
83 | path: '', //当前路径 | 83 | path: '', //当前路径 |
84 | + //#ifdef MP | ||
84 | list: [ | 85 | list: [ |
85 | { | 86 | { |
86 | name: '首页', | 87 | name: '首页', |
@@ -107,7 +108,37 @@ export default { | @@ -107,7 +108,37 @@ export default { | ||
107 | icon: '../../../static/my-un.png', | 108 | icon: '../../../static/my-un.png', |
108 | iconFill: '../../../static/my-yes.png' | 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 | created() { | 144 | created() { |
@@ -125,7 +156,7 @@ export default { | @@ -125,7 +156,7 @@ export default { | ||
125 | }, | 156 | }, |
126 | methods: { | 157 | methods: { |
127 | onTabbar(index) { | 158 | onTabbar(index) { |
128 | - this.list[2].badge =this.$store.state.badgeInfo | 159 | + this.list[2].badge = this.$store.state.badgeInfo; |
129 | 160 | ||
130 | if (this.list[index].url) { | 161 | if (this.list[index].url) { |
131 | if (this.path !== this.list[index].url) { | 162 | if (this.path !== this.list[index].url) { |
@@ -147,4 +178,4 @@ export default { | @@ -147,4 +178,4 @@ export default { | ||
147 | right: 0; | 178 | right: 0; |
148 | z-index: 1000; | 179 | z-index: 1000; |
149 | } | 180 | } |
150 | -</style> | 181 | +</style> |
@@ -10,6 +10,7 @@ if (process.env.NODE_ENV === 'development') { | @@ -10,6 +10,7 @@ if (process.env.NODE_ENV === 'development') { | ||
10 | } else if (process.env.NODE_ENV === 'production') { | 10 | } else if (process.env.NODE_ENV === 'production') { |
11 | // 生产环境 | 11 | // 生产环境 |
12 | // baseUrl = 'http://47.99.141.212:8080/api' | 12 | // baseUrl = 'http://47.99.141.212:8080/api' |
13 | + baseUrl = 'https://dev.thingskit.com/api' | ||
13 | } | 14 | } |
14 | 15 | ||
15 | let systemInfo = { | 16 | let systemInfo = { |
@@ -84,6 +84,8 @@ export default { | @@ -84,6 +84,8 @@ export default { | ||
84 | <style lang="scss" scoped> | 84 | <style lang="scss" scoped> |
85 | .command-detail { | 85 | .command-detail { |
86 | padding: 0 30rpx; | 86 | padding: 0 30rpx; |
87 | + height: 100vh; | ||
88 | + background-color: #f8f9fa; | ||
87 | .detail-top { | 89 | .detail-top { |
88 | height: 118rpx; | 90 | height: 118rpx; |
89 | width: 690rpx; | 91 | width: 690rpx; |
1 | { | 1 | { |
2 | "name": "yun-teng-app", | 2 | "name": "yun-teng-app", |
3 | - "appid": "__UNI__C873643", | ||
4 | - "description": "thingskit小程序", | 3 | + "appid": "__UNI__AD0D64F", |
4 | + "description": "thingskit", | ||
5 | "versionName": "1.0.0", | 5 | "versionName": "1.0.0", |
6 | "versionCode": 100, | 6 | "versionCode": 100, |
7 | "transformPx": false, | 7 | "transformPx": false, |
@@ -15,7 +15,13 @@ | @@ -15,7 +15,13 @@ | ||
15 | "autoclose": true, | 15 | "autoclose": true, |
16 | "delay": 0 | 16 | "delay": 0 |
17 | }, | 17 | }, |
18 | - "modules": {}, | 18 | + "modules": { |
19 | + "VideoPlayer": {}, | ||
20 | + "Contacts": {}, | ||
21 | + "OAuth": {}, | ||
22 | + "Messaging": {}, | ||
23 | + "FaceID": {} | ||
24 | + }, | ||
19 | "distribute": { | 25 | "distribute": { |
20 | "android": { | 26 | "android": { |
21 | "permissions": [ | 27 | "permissions": [ |
@@ -29,13 +35,19 @@ | @@ -29,13 +35,19 @@ | ||
29 | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", | 35 | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
30 | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", | 36 | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
31 | "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>", | 37 | "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>", |
38 | + "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", | ||
32 | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", | 39 | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
40 | + "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", | ||
33 | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", | 41 | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
34 | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", | 42 | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
43 | + "<uses-permission android:name=\"android.permission.READ_SMS\"/>", | ||
35 | "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>", | 44 | "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>", |
45 | + "<uses-permission android:name=\"android.permission.SEND_SMS\"/>", | ||
36 | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", | 46 | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
37 | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", | 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 | "ios": {}, | 53 | "ios": {}, |
@@ -51,7 +63,16 @@ | @@ -51,7 +63,16 @@ | ||
51 | "appkey_android": "" | 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,34 +152,34 @@ | ||
152 | "backgroundColorTop": "#FFFFFF" | 152 | "backgroundColorTop": "#FFFFFF" |
153 | }, | 153 | }, |
154 | "tabBar": { | 154 | "tabBar": { |
155 | - "color": "#ffffff", | ||
156 | - "selectedColor": "#ffffff", | 155 | + "color": "#000000", |
156 | + "selectedColor": "#377dff", | ||
157 | "borderStyle": "black", | 157 | "borderStyle": "black", |
158 | - "backgroundColor": "#ffffff", | 158 | + "backgroundColor": "#606266", |
159 | "list": [{ | 159 | "list": [{ |
160 | "pagePath": "pages/index/index", | 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 | "text": "首页" | 163 | "text": "首页" |
164 | }, | 164 | }, |
165 | { | 165 | { |
166 | "pagePath": "pages/device/device", | 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 | "text": "设备" | 169 | "text": "设备" |
170 | }, | 170 | }, |
171 | { | 171 | { |
172 | "pagePath": "pages/alarm/alarm", | 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 | "text": "告警" | 175 | "text": "告警" |
176 | }, | 176 | }, |
177 | { | 177 | { |
178 | "pagePath": "pages/personal/personal", | 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 | "text": "我的" | 181 | "text": "我的" |
182 | } | 182 | } |
183 | ] | 183 | ] |
184 | } | 184 | } |
185 | -} | 185 | +} |
@@ -14,13 +14,14 @@ | @@ -14,13 +14,14 @@ | ||
14 | <image src="../../static/shaixuan.png" /> | 14 | <image src="../../static/shaixuan.png" /> |
15 | </view> | 15 | </view> |
16 | </view> | 16 | </view> |
17 | + <u-line /> | ||
17 | <view class="org"> | 18 | <view class="org"> |
18 | <u-cell @click="openOrg" isLink title="组织关系" :border="false"> | 19 | <u-cell @click="openOrg" isLink title="组织关系" :border="false"> |
19 | <view slot="label" class="label" style="display: flex; align-items: center;margin-top: 20rpx;"> | 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 | <view style="margin-left: 10rpx; color: #666;"> | 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 | </view> | 25 | </view> |
25 | </view> | 26 | </view> |
26 | </u-cell> | 27 | </u-cell> |
@@ -523,4 +524,30 @@ export default { | @@ -523,4 +524,30 @@ export default { | ||
523 | height: 100%; | 524 | height: 100%; |
524 | width: 100%; | 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 | </style> | 553 | </style> |
@@ -127,11 +127,12 @@ export default { | @@ -127,11 +127,12 @@ export default { | ||
127 | uni.showToast({ | 127 | uni.showToast({ |
128 | title: '第三方账号登录成功~', | 128 | title: '第三方账号登录成功~', |
129 | icon: 'none' | 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 | }) |