|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
* @Author: dayan_hjm
|
|
3
|
3
|
* @Date: 2023-10-25 10:32:44
|
|
4
|
4
|
* @Last Modified by: dayan_hjm
|
|
5
|
|
- * @Last Modified time: 2023-10-25 10:45:33
|
|
|
5
|
+ * @Last Modified time: 2023-10-25 16:46:16
|
|
6
|
6
|
*/
|
|
7
|
7
|
/*
|
|
8
|
8
|
* @Author: dayan_hjm
|
|
|
@@ -52,7 +52,8 @@ import MoodSendView from "./component/moodSendView.jsx";
|
|
52
|
52
|
import LeftMenoyView from "./component/leftMenoyView.jsx";
|
|
53
|
53
|
import RightBottomView from "./component/rightBottomView.jsx";
|
|
54
|
54
|
import OneQualified from "./component/oneQualified.jsx";
|
|
55
|
|
-
|
|
|
55
|
+import MapView from "./component/mapView.jsx";
|
|
|
56
|
+import 'animate.css';
|
|
56
|
57
|
@withRouter
|
|
57
|
58
|
|
|
58
|
59
|
class Home extends Component {
|
|
|
@@ -72,7 +73,7 @@ class Home extends Component {
|
|
72
|
73
|
}, 200)
|
|
73
|
74
|
setTimeout(() => {
|
|
74
|
75
|
//替换gif
|
|
75
|
|
- this.setState({ changGif: true })
|
|
|
76
|
+ this.setState({ changGif: true });
|
|
76
|
77
|
}, 2000)
|
|
77
|
78
|
}
|
|
78
|
79
|
videoStart() {
|
|
|
@@ -87,7 +88,7 @@ class Home extends Component {
|
|
87
|
88
|
媒体参与度(Media Engagement)是指用户与媒体内容进行互动的程度,可以通过多个指标来衡量。这些指标主要包括观看时间、观看率、转化率、交互行为等。
|
|
88
|
89
|
可以通过:chrome://media-engagement/ 查看
|
|
89
|
90
|
*/
|
|
90
|
|
- const video = document.querySelector('video')
|
|
|
91
|
+ const video = document.querySelector('.video2');
|
|
91
|
92
|
console.log(video.play());
|
|
92
|
93
|
|
|
93
|
94
|
const model = document.querySelector('.model')
|
|
|
@@ -140,76 +141,76 @@ class Home extends Component {
|
|
140
|
141
|
return (
|
|
141
|
142
|
<div className={"home_box"}>
|
|
142
|
143
|
{/* 视频播放器 */}
|
|
|
144
|
+ <MapView></MapView>
|
|
143
|
145
|
<div className={"video_box"}>
|
|
144
|
|
- {/* controls 属性 : 值为 controls , 启用控制按钮 , 由于在不同的浏览器中表现不同 , 一般情况下 , 不显示控制按钮 ;
|
|
145
|
|
- autoplay 属性 : 值为 autoplay , 在 Chrome 浏览器中 禁用自动播放 , 其它浏览器不禁用自动播放 ;
|
|
146
|
|
- 如果为视频设置静音播放 , 则可以在 Chrom 浏览器中 设置 autoplay 实现自动播放 ;
|
|
147
|
|
- muted 属性 : 值为 muted , 将视频设置为静音播放 ;
|
|
148
|
|
- 如果为视频设置静音播放 , 则可以在 Chrom 浏览器中 设置 autoplay 实现自动播放 ;
|
|
149
|
|
- width 属性 : 值为像素值 , 设置播放器宽度 ; 播放器的宽高建议只设置一个 , 避免失真 ;
|
|
150
|
|
- height 属性 : 值为像素值 , 设置播放器高度 ; 播放器的宽高建议只设置一个 , 避免失真 ;
|
|
151
|
|
- loop 属性 : 值为 loop , 设置播放器循环播放 ;
|
|
152
|
|
- poster 属性 : 值为 图片 url 路径 , 设置视频位置等待加载时的图片 ;
|
|
153
|
|
- preload 属性 :
|
|
154
|
|
- 设置 auto , 表示 预先加载视频 ;
|
|
155
|
|
- 设置 none , 表示 不预先加载视频 ;
|
|
156
|
|
- */}
|
|
157
|
|
- {/* <video style={{display:!changGif ? 'block' : 'none'}} src={require("@assets/imgs/dataVImg/homeVideo.mp4").default} autoplay="autoplay"></video> */}
|
|
158
|
|
- <video src={require("@assets/imgs/dataVImg/homeVideo2.mp4").default} autoplay="autoplay" loop="loop"></video>
|
|
159
|
|
-
|
|
|
146
|
+ <video src={require("@assets/imgs/dataVImg/homeVideo2.mp4").default} autoplay="autoplay" loop="loop" class="video2 center_box2 animate__animated animate__fadeIn animate__delay-2s"></video>
|
|
160
|
147
|
</div>
|
|
161
|
148
|
<div className={[styles.home + " home cbHome"]}>
|
|
162
|
149
|
<div className="leftContent">
|
|
163
|
|
- <div className="topMsg">
|
|
164
|
|
- <p className="topMsg_title">总产值</p>
|
|
165
|
|
- <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
166
|
|
- <span className="topMsg_number" class="shu1">232425.23</span><span className="topMsg_number_2">万元</span>
|
|
|
150
|
+
|
|
|
151
|
+ <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
|
|
|
152
|
+ <div className="topMsg">
|
|
|
153
|
+ <p className="topMsg_title">总产值</p>
|
|
|
154
|
+ <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
|
155
|
+ <span className="topMsg_number" class="shu1">232425.23</span><span className="topMsg_number_2">万元</span>
|
|
|
156
|
+ </div>
|
|
167
|
157
|
</div>
|
|
168
|
158
|
</div>
|
|
169
|
|
- <div className="center_box">
|
|
170
|
|
- <p className="topMsg_title">库存金额</p>
|
|
171
|
|
- <div className="topMsg_content">
|
|
172
|
|
- <LeftMenoyView></LeftMenoyView>
|
|
|
159
|
+
|
|
|
160
|
+ <div class="center_box2 animate__animated animate__fadeInDown animate__slower">
|
|
|
161
|
+ <div className="center_box">
|
|
|
162
|
+ <p className="topMsg_title">库存金额</p>
|
|
|
163
|
+ <div className="topMsg_content">
|
|
|
164
|
+ <LeftMenoyView></LeftMenoyView>
|
|
|
165
|
+ </div>
|
|
173
|
166
|
</div>
|
|
174
|
167
|
</div>
|
|
175
|
|
- <div className="bottomContent bigDivPd">
|
|
176
|
|
- <p className="topMsg_title">月度产量/发货量</p>
|
|
177
|
|
- <div className="topMsg_content">
|
|
178
|
|
- <MoodSendView></MoodSendView>
|
|
|
168
|
+
|
|
|
169
|
+ <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
|
|
|
170
|
+ <div className="bottomContent bigDivPd">
|
|
|
171
|
+ <p className="topMsg_title">月度产量/发货量</p>
|
|
|
172
|
+ <div className="topMsg_content">
|
|
|
173
|
+ <MoodSendView></MoodSendView>
|
|
|
174
|
+ </div>
|
|
179
|
175
|
</div>
|
|
180
|
176
|
</div>
|
|
|
177
|
+
|
|
181
|
178
|
</div>
|
|
182
|
179
|
|
|
183
|
180
|
<div className="centerCon">
|
|
184
|
|
- <div className="topMsg">
|
|
185
|
|
- <div className="topMsg2">
|
|
186
|
|
- <div className="topMsg_content">
|
|
187
|
|
- <div className="center_li">
|
|
188
|
|
- <div className="right_li">
|
|
189
|
|
- <span className="topMsg_number" class="shu1">232425</span>
|
|
190
|
|
- <p className="topMsg_line"></p>
|
|
191
|
|
- <span className="topMsg_tip">年度产量/吨</span>
|
|
|
181
|
+ <div class="topMsg3 animate__animated animate__fadeInDown animate__slower">
|
|
|
182
|
+ <div className="topMsg">
|
|
|
183
|
+ <div className="topMsg2">
|
|
|
184
|
+ <div className="topMsg_content">
|
|
|
185
|
+ <div className="center_li">
|
|
|
186
|
+ <div className="right_li">
|
|
|
187
|
+ <span className="topMsg_number" class="shu1">232425</span>
|
|
|
188
|
+ <p className="topMsg_line"></p>
|
|
|
189
|
+ <span className="topMsg_tip">年度产量/吨</span>
|
|
|
190
|
+ </div>
|
|
192
|
191
|
</div>
|
|
193
|
|
- </div>
|
|
194
|
|
- <div className="center_li">
|
|
195
|
|
- <div className="right_li">
|
|
196
|
|
- <span className="topMsg_number" class="shu1">32425</span>
|
|
|
192
|
+ <div className="center_li">
|
|
|
193
|
+ <div className="right_li">
|
|
|
194
|
+ <span className="topMsg_number" class="shu1">32425</span>
|
|
|
195
|
+ <p className="topMsg_line"></p>
|
|
|
196
|
+ <span className="topMsg_tip">年度发货量/吨</span>
|
|
|
197
|
+ </div>
|
|
|
198
|
+ </div>
|
|
|
199
|
+ <div className="center_li">
|
|
|
200
|
+ <span className="topMsg_number" class="shu1">13456</span>
|
|
197
|
201
|
<p className="topMsg_line"></p>
|
|
198
|
|
- <span className="topMsg_tip">年度发货量/吨</span>
|
|
|
202
|
+ <span className="topMsg_tip">产品库存/吨</span>
|
|
199
|
203
|
</div>
|
|
200
|
204
|
</div>
|
|
201
|
|
- <div className="center_li">
|
|
202
|
|
- <span className="topMsg_number" class="shu1">13456</span>
|
|
203
|
|
- <p className="topMsg_line"></p>
|
|
204
|
|
- <span className="topMsg_tip">产品库存/吨</span>
|
|
205
|
|
- </div>
|
|
206
|
205
|
</div>
|
|
207
|
206
|
</div>
|
|
208
|
207
|
</div>
|
|
209
|
|
- <div className="bottomContent">
|
|
210
|
|
- <p className="topMsg_title">近30天产量</p>
|
|
211
|
|
- <div className="topMsg_content">
|
|
212
|
|
- <BottomLineForSend></BottomLineForSend>
|
|
|
208
|
+ <div class="bottomContent3 animate__animated animate__fadeInUp animate__slower">
|
|
|
209
|
+ <div className="bottomContent">
|
|
|
210
|
+ <p className="topMsg_title">近30天产量</p>
|
|
|
211
|
+ <div className="topMsg_content">
|
|
|
212
|
+ <BottomLineForSend></BottomLineForSend>
|
|
|
213
|
+ </div>
|
|
213
|
214
|
</div>
|
|
214
|
215
|
</div>
|
|
215
|
216
|
|
|
|
@@ -217,37 +218,45 @@ class Home extends Component {
|
|
217
|
218
|
|
|
218
|
219
|
{/* 右侧信息栏 */}
|
|
219
|
220
|
<div className="rightContent">
|
|
220
|
|
- <div className="topMsg bigDivPd">
|
|
221
|
|
- <p className="topMsg_title">百万工时损工率</p>
|
|
222
|
|
- <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
223
|
|
- <div className="topMsg_box">
|
|
224
|
|
- <span className="topMsg_number" class="shu1">232425.23</span><span className="topMsg_number_2">%</span>
|
|
225
|
|
- <p className="topMsg_number_p">谢洪</p>
|
|
|
221
|
+ <div class="topMsg2 animate__animated animate__fadeInDown animate__slower">
|
|
|
222
|
+ <div className="topMsg bigDivPd">
|
|
|
223
|
+ <p className="topMsg_title">百万工时损工率</p>
|
|
|
224
|
+ <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
|
225
|
+ <div className="topMsg_box">
|
|
|
226
|
+ <span className="topMsg_number" class="shu1">232425.23</span><span className="topMsg_number_2">%</span>
|
|
|
227
|
+ <p className="topMsg_number_p">谢洪</p>
|
|
|
228
|
+ </div>
|
|
226
|
229
|
</div>
|
|
227
|
230
|
</div>
|
|
228
|
231
|
</div>
|
|
229
|
232
|
|
|
230
|
|
- <div className="topMsg_2">
|
|
231
|
|
- <p className="topMsg_title">一次合格率</p>
|
|
232
|
|
- <div className="topMsg_content">
|
|
233
|
|
- <OneQualified></OneQualified>
|
|
|
233
|
+ <div class="topMsg_22 animate__animated animate__fadeInDown animate__slower">
|
|
|
234
|
+ <div className="topMsg_2">
|
|
|
235
|
+ <p className="topMsg_title">一次合格率</p>
|
|
|
236
|
+ <div className="topMsg_content">
|
|
|
237
|
+ <OneQualified></OneQualified>
|
|
|
238
|
+ </div>
|
|
234
|
239
|
</div>
|
|
235
|
240
|
</div>
|
|
236
|
241
|
|
|
237
|
|
- <div className="topMsg_3">
|
|
238
|
|
- <p className="topMsg_title">产量计划完成率</p>
|
|
239
|
|
- <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
240
|
|
- <div className="topMsg_box">
|
|
241
|
|
- <span className="topMsg_number" class="shu1">78.1</span><span className="topMsg_number_2">%</span>
|
|
242
|
|
- <p className="topMsg_number_p">谢洪</p>
|
|
|
242
|
+ <div class="topMsg_33 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
|
|
|
243
|
+ <div className="topMsg_3">
|
|
|
244
|
+ <p className="topMsg_title">产量计划完成率</p>
|
|
|
245
|
+ <div className={changGif ? "topMsg_content changBg_topMsg_content" : "topMsg_content"}>
|
|
|
246
|
+ <div className="topMsg_box">
|
|
|
247
|
+ <span className="topMsg_number" class="shu1">78.1</span><span className="topMsg_number_2">%</span>
|
|
|
248
|
+ <p className="topMsg_number_p">谢洪</p>
|
|
|
249
|
+ </div>
|
|
243
|
250
|
</div>
|
|
244
|
251
|
</div>
|
|
245
|
252
|
</div>
|
|
246
|
|
-
|
|
247
|
|
- <div className="bottomContent bigDivPd">
|
|
248
|
|
- <p className="topMsg_title">碳排放</p>
|
|
249
|
|
- <div className="topMsg_content">
|
|
250
|
|
- <RightBottomView></RightBottomView>
|
|
|
253
|
+
|
|
|
254
|
+ <div class="bottomContent2 animate__animated animate__fadeInDown animate__slower animate__delay-1s">
|
|
|
255
|
+ <div className="bottomContent bigDivPd">
|
|
|
256
|
+ <p className="topMsg_title">碳排放</p>
|
|
|
257
|
+ <div className="topMsg_content">
|
|
|
258
|
+ <RightBottomView></RightBottomView>
|
|
|
259
|
+ </div>
|
|
251
|
260
|
</div>
|
|
252
|
261
|
</div>
|
|
253
|
262
|
</div>
|