Commit 3f89f195f7f70eed9b0d2a7d30a86e4f89bd221c
1 parent
9dad8a6d
fix:修改摄像头组织管理捕获错误弹窗,修改摄像头边框10px,修改摄像头分页捕获错误弹窗
Showing
3 changed files
with
8 additions
and
26 deletions
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | <view class="u-flex org-contact"><text class="text">组织关系</text></view> |
8 | 8 | <view class="u-flex org-device"> |
9 | 9 | <image class="device-image" src="../../../static/org.png"></image> |
10 | - <text class="device-text">设备数:{{ deviceTotal }}</text> | |
10 | + <text class="device-text">摄像头数:{{ cameraTotal }}</text> | |
11 | 11 | </view> |
12 | 12 | </view> |
13 | 13 | <view class="org-item"><image class="image" src="../../../static/arrow-right.png"></image></view> |
... | ... | @@ -54,7 +54,7 @@ export default { |
54 | 54 | auto: false // 不自动加载 |
55 | 55 | }, |
56 | 56 | current: 0, |
57 | - deviceTotal: 0, | |
57 | + cameraTotal: 0, | |
58 | 58 | list: [], |
59 | 59 | ordId: '' |
60 | 60 | }; |
... | ... | @@ -72,7 +72,7 @@ export default { |
72 | 72 | onLoad() { |
73 | 73 | // 隐藏原生的tabbar |
74 | 74 | uni.hideTabBar(); |
75 | - this.getDeviceTotalData(); | |
75 | + this.getcameraTotalData(); | |
76 | 76 | }, |
77 | 77 | methods: { |
78 | 78 | /*下拉刷新的回调 */ |
... | ... | @@ -98,6 +98,7 @@ export default { |
98 | 98 | .then(res => { |
99 | 99 | uni.stopPullDownRefresh(); |
100 | 100 | this.mescroll.endByPage(res.items.length, res.total); |
101 | + this.cameraTotal = res.total; | |
101 | 102 | if (pageNo == 1) { |
102 | 103 | this.list = res.items; |
103 | 104 | } else { |
... | ... | @@ -105,7 +106,6 @@ export default { |
105 | 106 | } |
106 | 107 | }) |
107 | 108 | .catch(e => { |
108 | - uni.$u.toast(e.data?.message); | |
109 | 109 | //联网失败, 结束加载 |
110 | 110 | this.mescroll.endErr(); |
111 | 111 | }); |
... | ... | @@ -113,22 +113,6 @@ export default { |
113 | 113 | hideImageUrl(item, index) { |
114 | 114 | this.current = index; |
115 | 115 | }, |
116 | - getDeviceTotalData() { | |
117 | - let httpData = { | |
118 | - page: 1, | |
119 | - pageSize: 10 | |
120 | - }; | |
121 | - uni.$u.http | |
122 | - .get('/yt/device', { params: httpData, custom: { load: false } }) | |
123 | - .then(res => { | |
124 | - if (res) { | |
125 | - this.deviceTotal = res.total; | |
126 | - } | |
127 | - }) | |
128 | - .catch(e => { | |
129 | - uni.$u.toast(e.data?.message); | |
130 | - }); | |
131 | - }, | |
132 | 116 | openCameraDetail(e) { |
133 | 117 | console.log(e); |
134 | 118 | }, | ... | ... |
... | ... | @@ -67,11 +67,11 @@ |
67 | 67 | width: 330rpx; |
68 | 68 | height: 200rpx; |
69 | 69 | background-color: #fff; |
70 | - border-radius: 20px; | |
70 | + border-radius: 10px; | |
71 | 71 | margin-left: 25rpx; |
72 | 72 | margin-right: 21rpx; |
73 | 73 | .video { |
74 | - border-radius: 20px; | |
74 | + border-radius: 10px; | |
75 | 75 | width: 330rpx; |
76 | 76 | height: 200rpx; |
77 | 77 | } |
... | ... | @@ -92,7 +92,7 @@ |
92 | 92 | .image { |
93 | 93 | width: 330rpx; |
94 | 94 | height: 200rpx; |
95 | - border-radius: 20px; | |
95 | + border-radius: 10px; | |
96 | 96 | } |
97 | 97 | } |
98 | 98 | } | ... | ... |