From 83c4a4b74ab056ab447edadb3d06d8e9560c0aff Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 22 八月 2023 11:03:13 +0800
Subject: [PATCH] 大屏公司部门
---
screen_standard/src/views/index.vue | 937 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 900 insertions(+), 37 deletions(-)
diff --git a/screen_standard/src/views/index.vue b/screen_standard/src/views/index.vue
index 5b0d6f3..122010e 100644
--- a/screen_standard/src/views/index.vue
+++ b/screen_standard/src/views/index.vue
@@ -1,6 +1,7 @@
<template>
- <div class="content">
+ <div class="content1">
<div class="content_left">
+ <!-- 褰撴棩鍛樺伐浜ч噺TOP10 -->
<div class="content_left_item1">
<div class="content_left_item1_head">
<span>褰撴棩鍛樺伐浜ч噺TOP10</span>
@@ -21,60 +22,462 @@
</div>
</div>
</div>
+ <!-- 浠撳簱瀹炴椂浣欓噺缁熻 -->
<div class="content_left_item2">
<div class="content_left_item2_head">
<span>浠撳簱瀹炴椂浣欓噺缁熻</span>
</div>
<div class="content_left_item2_content">
- <div class="productProcess">
-
- <!-- 濡傛灉椤甸潰鍒锋柊鏁版嵁姣旇緝棰戠箒锛屽彲浠ュ皢loading銆乻howFlag鐨勭浉鍏充唬鐮佸垹闄わ紝闃叉杩囦簬棰戠箒鐨勫嚭鐜板姞杞藉姩鐢� -->
- <div class="loading_div" v-show="!showFlag">
- <div>Loading...</div> <!-- 杩欎釜loading鑷繁鍐欙紝浠g爜娌¤创鍑烘潵 -->
- </div>
-
- <div class="success_info_body" v-show="showFlag">
- <!-- 鍙傛暟鍚嶇О銆佸垪鏁版牴鎹疄闄呮儏鍐佃皟鏁� -->
- <div class="table_body">
- <div class="table_th">
- <div class="tr1 th_style">鎺掍骇缂栧彿</div>
- <div class="tr2 th_style">绫诲瀷</div>
- <div class="tr3 th_style">鏃ユ湡</div>
- <div class="tr4 th_style">杩涘害</div>
- </div>
- <div class="table_main_body">
- <div class="table_inner_body" :style="{top: tableTop + 'px'}">
- <div class="table_tr" v-for="(item,index) in tableList" :key="index">
- <div class="tr1 tr">{{item.planNo}}</div>
- <div class="tr2 tr">{{item.type}}</div>
- <div class="tr3 tr" v-if="item.startDate!='-'">{{item.startDate}} ~ {{item.endDate}}</div>
- <div class="tr3 tr" v-else>-</div>
- <div class="tr4 tr" v-if="item.process!='-'">{{Number(item.process).toFixed(2)}} %</div>
- <div class="tr4 tr" v-else>-</div>
- </div>
- </div>
- </div>
+ <div class="item2_content_head">
+ <div class="item2_content_head_item">鐗╂枡鍚嶇О / 宸ュ簭</div>
+ <div class="item2_content_head_item">浠撳簱</div>
+ <div class="item2_content_head_item">璐ф灦</div>
+ <div class="item2_content_head_item">鏁伴噺</div>
+ </div>
+ <div @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave" class="main_container">
+ <div ref="scrollContainer" class="scroll_container">
+ <div v-for="(item, index) in 10" :key="item.id" :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
+ <div class="scroll_item_row">鐢靛悏浠� / 鏈ㄥ伐</div>
+ <div class="scroll_item_row">鎴愬搧搴�</div>
+ <div class="scroll_item_row">C323</div>
+ <div class="scroll_item_row">3000鎶�</div>
</div>
</div>
</div>
</div>
</div>
</div>
- <div class="content_center">2</div>
- <div class="content_right">3</div>
+ <div class="content_center">
+ <!-- 鎴愬搧璁″垝杩涘害/宸ュ簭杩涘害 -->
+ <div class="content_center_top">
+ <div class="content_center_top_list">
+ <div @click="clickCate(index)" :class="item.active ? 'content_center_top_list_item bg4' : 'content_center_top_list_item bg3'" v-for="(item, index) in cate" :key="index">
+ {{ item.name }}
+ </div>
+ </div>
+ <div class="content_center_top_form" v-if="cate[0].active">
+ <div class="content_center_top_form_head">
+ <div class="content_center_top_form_head_item">璁″垝缂栫爜</div>
+ <div class="content_center_top_form_head_item">鐗╂枡鍚嶇О</div>
+ <div class="content_center_top_form_head_item">鐗╂枡缂栫爜</div>
+ <div class="content_center_top_form_head_item">璁″垝鏁伴噺</div>
+ <div class="content_center_top_form_head_item">鍚勫伐搴忓畬鎴愭儏鍐�</div>
+ <div class="content_center_top_form_head_item">鑹搧鏁�/瀹屽伐鏁�</div>
+ </div>
+ <div @mouseenter="handleMouseEnter1" @mouseleave="handleMouseLeave1" class="main_container">
+ <div ref="scrollContainer1" class="scroll_container">
+ <div v-for="(item, index) in 10" :key="item.id" :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
+ <div class="scroll_item_row">323444112</div>
+ <div class="scroll_item_row">鐢靛悏浠�</div>
+ <div class="scroll_item_row">CP003</div>
+ <div class="scroll_item_row">1000</div>
+ <div class="scroll_item_row">
+ <el-tooltip
+ v-for="(child, i) in 6" :key="i"
+ effect="dark"
+ content="宸叉姤宸ヨ壇鍝佹暟1000锛涘伐搴忚鍒掓暟500"
+ placement="top">
+ <div class="scroll_item_row_item">
+ <div class="scroll_item_row_item_x"></div>
+ <img v-if="i == 0 || i == 1" src="@/assets/img/ic_complete@2x.png" alt="" />
+ <span v-else>98%</span>
+ </div>
+ </el-tooltip>
+ </div>
+ <div class="scroll_item_row">498/500</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="content_center_top_form1" v-if="cate[1].active">
+ <div class="content_center_top_form_head">
+ <div class="content_center_top_form_head_item">宸ュ簭鍚嶇О</div>
+ <div class="content_center_top_form_head_item">璁″垝涓暟</div>
+ <div class="content_center_top_form_head_item">璁″垝鏁伴噺</div>
+ <div class="content_center_top_form_head_item">鑹搧鏁�</div>
+ <div class="content_center_top_form_head_item">涓嶈壇鍝佹暟</div>
+ <div class="content_center_top_form_head_item">鏈畬宸ユ暟閲�</div>
+ <div class="content_center_top_form_head_item">涓嶈壇鐜�</div>
+ </div>
+ <div @mouseenter="handleMouseEnter2" @mouseleave="handleMouseLeave2" class="main_container">
+ <div ref="scrollContainer2" class="scroll_container">
+ <div v-for="(item, index) in 15" :key="item.id" :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
+ <div class="scroll_item_row">鏈ㄥ伐</div>
+ <div class="scroll_item_row">3</div>
+ <div class="scroll_item_row">1000</div>
+ <div class="scroll_item_row">959</div>
+ <div class="scroll_item_row">30</div>
+ <div class="scroll_item_row">11</div>
+ <div class="scroll_item_row">3.12%</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- 鎶ュ伐鏃ュ織 -->
+ <div class="content_center_bottom">
+ <div class="content_center_bottom_head">
+ <span>鎶ュ伐鏃ュ織</span>
+ </div>
+ <div class="content_center_bottom_b">
+ <div class="content_center_top_form_head">
+ <div class="content_center_top_form_head_item">鍛樺伐鍚嶇О</div>
+ <div class="content_center_top_form_head_item">鐗╂枡鍚嶇О</div>
+ <div class="content_center_top_form_head_item">鐗╂枡缂栫爜</div>
+ <div class="content_center_top_form_head_item">鎶ュ伐鏃堕棿</div>
+ <div class="content_center_top_form_head_item">鑹搧鏁�</div>
+ <div class="content_center_top_form_head_item">涓嶈壇鍝佹暟</div>
+ <div class="content_center_top_form_head_item">涓嶈壇鐜�</div>
+ </div>
+ <div @mouseenter="handleMouseEnter3" @mouseleave="handleMouseLeave3" class="main_container">
+ <div ref="scrollContainer3" class="scroll_container">
+ <div v-for="(item, index) in 6" :key="item.id" :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
+ <div class="scroll_item_row">闊╀紵</div>
+ <div class="scroll_item_row">鐢靛悏浠�</div>
+ <div class="scroll_item_row">CP003</div>
+ <div class="scroll_item_row">2023/08/12 10:12:22</div>
+ <div class="scroll_item_row">459</div>
+ <div class="scroll_item_row">2</div>
+ <div class="scroll_item_row">2.12%</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="content_right">
+ <!-- 杩�7澶╀笉鑹搧鍒嗗竷 -->
+ <div class="content_right_top">
+ <div class="content_right_top_head">
+ <span>杩�7澶╀笉鑹搧鍒嗗竷</span>
+ </div>
+ <div class="content_right_top_nr">
+ <div class="content_right_top_nr_top"></div>
+ <div class="content_right_top_nr_bottom"></div>
+ </div>
+ </div>
+ <!-- 璁惧宸℃璁板綍 -->
+ <div class="content_right_bottom">
+ <div class="content_right_bottom_head">
+ <span>璁惧宸℃璁板綍</span>
+ </div>
+ <div class="content_right_bottom_nr">
+ <div class="item2_content_head">
+ <div class="item2_content_head_item">宸℃鏃堕棿</div>
+ <div class="item2_content_head_item">宸℃璁惧</div>
+ <div class="item2_content_head_item">宸℃缁撴灉</div>
+ <div class="item2_content_head_item">宸℃浜哄憳</div>
+ </div>
+ <div @mouseenter="handleMouseEnter4" @mouseleave="handleMouseLeave4" class="main_container">
+ <div ref="scrollContainer4" class="scroll_container">
+ <div v-for="(item, index) in 10" :key="item.id" :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
+ <div class="scroll_item_row">2023-10-12 02:00:23</div>
+ <div class="scroll_item_row">鏈ㄥ伐璁惧</div>
+ <div class="scroll_item_row">鍚堟牸</div>
+ <div class="scroll_item_row">浣曞瓙鏄�</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
</template>
<script setup>
+ import { reactive, ref, onMounted, onBeforeUnmount, onUnmounted, nextTick, computed } from 'vue'
+ import { getTop } from '@/utils/api.js'
+ import { useCounterStore } from '@/stores/counter.js'
+ let timer = ref(null)
+ let timer1 = ref(null)
+ let timer2 = ref(null)
+ let timer3 = ref(null)
+ let timer4 = ref(null)
+ let scrollContainer = ref(null)
+ let scrollContainer1 = ref(null)
+ let scrollContainer2 = ref(null)
+ let scrollContainer3 = ref(null)
+ let scrollContainer4 = ref(null)
+ let cate = ref([
+ {
+ name: '鎴愬搧璁″垝杩涘害',
+ id: 1,
+ active: true,
+ background: 'tab_select_grey@2x.png',
+ activeBackground: 'tab_select@2x.png'
+ },
+ {
+ name: '宸ュ簭杩涘害',
+ id: 2,
+ active: false,
+ background: 'tab_select_grey@2x.png',
+ activeBackground: 'tab_select@2x.png'
+ }
+ ])
+
+ const enterprise = useCounterStore()
+
+ const companyId = computed(() => {
+ return enterprise.companyId
+ })
+ const departId = computed(() => {
+ return enterprise.departId
+ })
+
+ start()
+ start1()
+ // start2()
+ start3()
+ start4()
+ // 娉細绀轰緥涓殑 listData 鍐欑殑鏄潤鎬佹暟鎹紝鍙互鐩存帴璋冪敤 start()
+ // 濡傛灉鏄帴鍙h幏鍙� listData 鍒楄〃鏃讹紝闇�瑕佸湪 nextTick 涓皟鐢� start()
+ // 鍚﹀垯锛岃繘鍏ラ〉闈笉浼氭粴鍔ㄣ�傚繀椤婚紶鏍囩Щ鍏ョЩ鍑烘墠浼氭粴鍔�
+ // 鐢� nextTick 鐨勫師鍥犳槸闇�瑕佺瓑 dom 鍏冪礌鍔犺浇瀹屾瘯鍚庡啀鎵ц鏂规硶
+
+ // let chartData = reactive({
+ // data: []
+ // })
+ // function getSensorData() {
+ // GetSensorData().then(res=> {
+ // chartData.data = res.data.data
+ // nextTick(()=>{
+ // start()
+ // })
+ // })
+ // }
+
+ onMounted(()=> {
+ // getSensorData()
+ // getTop(8, 36)
+ // .then(res => {
+ // console.log(res)
+ // })
+ })
+
+ onBeforeUnmount(()=>{
+ clearTimeout(timer.value)
+ clearTimeout(timer1.value)
+ clearTimeout(timer2.value)
+ clearTimeout(timer3.value)
+ clearTimeout(timer4.value)
+ })
+ onUnmounted(()=>{
+ clearTimeout(timer.value)
+ clearTimeout(timer1.value)
+ clearTimeout(timer2.value)
+ clearTimeout(timer3.value)
+ clearTimeout(timer4.value)
+ })
+ const clickCate = (index) => {
+ clearTimeout(timer1.value)
+ clearTimeout(timer2.value)
+ cate.value.forEach((item, i) => {
+ if (i === index) {
+ if (i == 0) {
+ start1()
+ } else {
+ start2()
+ }
+ item.active = true
+ } else {
+ item.active = false
+ }
+ })
+ }
+ function handleMouseEnter() {
+ clearTimeout(timer.value)
+ }
+ function handleMouseEnter1() {
+ clearTimeout(timer1.value)
+ }
+ function handleMouseEnter2() {
+ clearTimeout(timer2.value)
+ }
+ function handleMouseEnter3() {
+ clearTimeout(timer3.value)
+ }
+ function handleMouseEnter4() {
+ clearTimeout(timer4.value)
+ }
+ function handleMouseLeave() {
+ start()
+ }
+ function handleMouseLeave1() {
+ start1()
+ }
+ function handleMouseLeave2() {
+ start2()
+ }
+ function handleMouseLeave3() {
+ start3()
+ }
+ function handleMouseLeave4() {
+ start4()
+ }
+ // 寮�鍚畾鏃跺櫒
+ function start() {
+ clearTimeout(timer.value)
+ // 瀹氭椂鍣ㄨЕ鍙戝懆鏈�
+ let speed = ref(25)
+ timer.value = setInterval(ListScroll, speed.value)
+ }
+ // 寮�鍚畾鏃跺櫒
+ function start1() {
+ clearTimeout(timer1.value)
+ // 瀹氭椂鍣ㄨЕ鍙戝懆鏈�
+ let speed1 = ref(25)
+ timer1.value = setInterval(ListScroll1, speed1.value)
+ }
+ // 寮�鍚畾鏃跺櫒
+ function start2() {
+ clearTimeout(timer2.value)
+ // 瀹氭椂鍣ㄨЕ鍙戝懆鏈�
+ let speed2 = ref(25)
+ timer2.value = setInterval(ListScroll2, speed2.value)
+ }
+ // 寮�鍚畾鏃跺櫒
+ function start3() {
+ clearTimeout(timer3.value)
+ // 瀹氭椂鍣ㄨЕ鍙戝懆鏈�
+ let speed3 = ref(25)
+ timer3.value = setInterval(ListScroll3, speed3.value)
+ }
+ // 寮�鍚畾鏃跺櫒
+ function start4() {
+ clearTimeout(timer4.value)
+ // 瀹氭椂鍣ㄨЕ鍙戝懆鏈�
+ let speed4 = ref(25)
+ timer4.value = setInterval(ListScroll4, speed4.value)
+ }
+ function ListScroll() {
+ let scrollDom = scrollContainer.value
+ // 鍒よ缁勪欢鏄惁娓叉煋瀹屾垚
+ if(scrollDom.offsetHeight == 0) {
+ scrollDom = scrollContainer.value
+ }else {
+ // 濡傛灉鍒楄〃鏁伴噺杩囧皯涓嶈繘琛屾粴鍔�
+ if(scrollDom.children.length < 8) {
+ clearTimeout(timer.value)
+ return
+ }
+ // 缁勪欢杩涜婊氬姩
+ scrollDom.scrollTop += 1
+ // 鍒ゆ柇鏄惁婊氬姩鍒板簳閮�
+ if(scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
+ // 鑾峰彇缁勪欢绗竴涓妭鐐�
+ let first = scrollDom.children[0]
+ // 鍒犻櫎鑺傜偣
+ scrollDom.removeChild(first)
+ // 灏嗚鑺傜偣鎷兼帴鍒扮粍浠舵渶鍚�
+ scrollDom.append(first)
+ }
+ }
+ }
+ function ListScroll1() {
+ let scrollDom = scrollContainer1.value
+ // 鍒よ缁勪欢鏄惁娓叉煋瀹屾垚
+ if(scrollDom.offsetHeight == 0) {
+ scrollDom = scrollContainer1.value
+ }else {
+ // 濡傛灉鍒楄〃鏁伴噺杩囧皯涓嶈繘琛屾粴鍔�
+ if(scrollDom.children.length < 7) {
+ clearTimeout(timer1.value)
+ return
+ }
+ // 缁勪欢杩涜婊氬姩
+ scrollDom.scrollTop += 1
+ // 鍒ゆ柇鏄惁婊氬姩鍒板簳閮�
+ if(scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
+ // 鑾峰彇缁勪欢绗竴涓妭鐐�
+ let first = scrollDom.children[0]
+ // 鍒犻櫎鑺傜偣
+ scrollDom.removeChild(first)
+ // 灏嗚鑺傜偣鎷兼帴鍒扮粍浠舵渶鍚�
+ scrollDom.append(first)
+ }
+ }
+ }
+ function ListScroll2() {
+ let scrollDom = scrollContainer2.value
+ // 鍒よ缁勪欢鏄惁娓叉煋瀹屾垚
+ if(scrollDom.offsetHeight == 0) {
+ scrollDom = scrollContainer2.value
+ }else {
+ // 濡傛灉鍒楄〃鏁伴噺杩囧皯涓嶈繘琛屾粴鍔�
+ if(scrollDom.children.length < 7) {
+ clearTimeout(timer2.value)
+ return
+ }
+ // 缁勪欢杩涜婊氬姩
+ scrollDom.scrollTop += 1
+ // 鍒ゆ柇鏄惁婊氬姩鍒板簳閮�
+ if(scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
+ // 鑾峰彇缁勪欢绗竴涓妭鐐�
+ let first = scrollDom.children[0]
+ // 鍒犻櫎鑺傜偣
+ scrollDom.removeChild(first)
+ // 灏嗚鑺傜偣鎷兼帴鍒扮粍浠舵渶鍚�
+ scrollDom.append(first)
+ }
+ }
+ }
+ function ListScroll3() {
+ let scrollDom = scrollContainer3.value
+ // 鍒よ缁勪欢鏄惁娓叉煋瀹屾垚
+ if(scrollDom.offsetHeight == 0) {
+ scrollDom = scrollContainer3.value
+ }else {
+ // 濡傛灉鍒楄〃鏁伴噺杩囧皯涓嶈繘琛屾粴鍔�
+ if(scrollDom.children.length < 6) {
+ clearTimeout(timer3.value)
+ return
+ }
+ // 缁勪欢杩涜婊氬姩
+ scrollDom.scrollTop += 1
+ // 鍒ゆ柇鏄惁婊氬姩鍒板簳閮�
+ if(scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
+ // 鑾峰彇缁勪欢绗竴涓妭鐐�
+ let first = scrollDom.children[0]
+ // 鍒犻櫎鑺傜偣
+ scrollDom.removeChild(first)
+ // 灏嗚鑺傜偣鎷兼帴鍒扮粍浠舵渶鍚�
+ scrollDom.append(first)
+ }
+ }
+ }
+ function ListScroll4() {
+ let scrollDom = scrollContainer4.value
+ // 鍒よ缁勪欢鏄惁娓叉煋瀹屾垚
+ if(scrollDom.offsetHeight == 0) {
+ scrollDom = scrollContainer4.value
+ }else {
+ // 濡傛灉鍒楄〃鏁伴噺杩囧皯涓嶈繘琛屾粴鍔�
+ if(scrollDom.children.length < 7) {
+ clearTimeout(timer4.value)
+ return
+ }
+ // 缁勪欢杩涜婊氬姩
+ scrollDom.scrollTop += 1
+ // 鍒ゆ柇鏄惁婊氬姩鍒板簳閮�
+ if(scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) {
+ // 鑾峰彇缁勪欢绗竴涓妭鐐�
+ let first = scrollDom.children[0]
+ // 鍒犻櫎鑺傜偣
+ scrollDom.removeChild(first)
+ // 灏嗚鑺傜偣鎷兼帴鍒扮粍浠舵渶鍚�
+ scrollDom.append(first)
+ }
+ }
+ }
</script>
<style lang="scss" scoped>
- .content {
+ .content1 {
width: 100%;
height: auto;
display: flex;
- align-items: center;
+ align-items: start;
justify-content: space-between;
.content_left {
flex: 1;
@@ -190,19 +593,479 @@
.content_left_item2_content {
width: 100%;
height: 361px;
+ padding: 20px;
+ box-sizing: border-box;
background: linear-gradient(180deg, rgba(52,88,159,0) 0%, rgba(0,86,255,0.4) 100%);
-
+ .item2_content_head {
+ width: 100%;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ background: rgba(52,88,159,0.5);
+ .item2_content_head_item {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #01D9FE;
+ &:first-child {
+ flex: 1.5;
+ }
+ }
+ }
+ .main_container {
+ width: 100%;
+ height: calc(100% - 36px);
+ .scroll_container {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ .scroll_item_bg1 {
+ background: rgba(52,88,159,0.2);
+ }
+ .scroll_item_bg2 {
+ background: rgba(52,88,159,0.5);
+ }
+ .scroll_item {
+ width: 100%;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ .scroll_item_row {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #FFFFFF;
+ &:first-child {
+ flex: 1.5;
+ }
+ }
+ }
+ }
+ }
}
}
}
.content_center {
flex: 2;
- margin: 0 40px;
- background-color: aquamarine;
+ margin: 0 20px;
+ display: flex;
+ flex-direction: column;
+ .content_center_top {
+ width: 100%;
+ height: 509px;
+ margin-bottom: 20px;
+ background: linear-gradient(180deg, rgba(52,88,159,0) 0%, rgba(0,86,255,0.4) 100%);
+ .content_center_top_list {
+ width: 100%;
+ height: 38px;
+ display: flex;
+ align-items: center;
+ .bg3 {
+ background: url('@/assets/img/tab_select_grey@2x.png');
+ background-size: 100% 100%;
+ }
+ .bg4 {
+ background: url('@/assets/img/tab_select@2x.png');
+ background-size: 100% 100%;
+ }
+ .content_center_top_list_item {
+ width: 200px;
+ height: 38px;
+ cursor: pointer;
+ line-height: 38px;
+ padding-left: 34px;
+ box-sizing: border-box;
+ font-size: 16px;
+ font-family: SourceHanSansSC-Bold, SourceHanSansSC;
+ font-weight: bold;
+ color: #FFFFFF;
+ margin-right: 20px;
+ text-shadow: 0px 0px 10px rgba(0,24,72,0.75);
+ &:last-child {
+ margin-right: 0;
+ }
+ }
+ }
+ .content_center_top_form {
+ width: 100%;
+ padding: 20px;
+ box-sizing: border-box;
+ height: calc(100% - 38px);
+ .content_center_top_form_head {
+ width: 100%;
+ height: 34px;
+ background: rgba(52,88,159,0.5);
+ display: flex;
+ align-items: center;
+ .content_center_top_form_head_item {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #01D9FE;
+ &:nth-child(5) {
+ flex: 2.7;
+ }
+ }
+ }
+ .main_container {
+ width: 100%;
+ height: calc(100% - 34px);
+ .scroll_container {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ .scroll_item_bg1 {
+ background: rgba(52,88,159,0.2);
+ }
+ .scroll_item_bg2 {
+ background: rgba(52,88,159,0.5);
+ }
+ .scroll_item {
+ width: 100%;
+ height: 58px;
+ display: flex;
+ align-items: center;
+ .scroll_item_row {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #FFFFFF;
+ &:nth-child(5) {
+ flex: 3;
+ }
+ .scroll_item_row_item {
+ width: 29px;
+ height: 29px;
+ border-radius: 50%;
+ margin-right: 19px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 2px solid #01D9FE;
+ cursor: pointer;
+ position: relative;
+ &:last-child {
+ margin-right: 0;
+ .scroll_item_row_item_x {
+ display: none;
+ }
+ }
+ &:nth-child(1) {
+ border: 2px solid #03D2B5;
+ .scroll_item_row_item_x {
+ background-color: #03D2B5;
+ }
+ }
+ &:nth-child(2) {
+ border: 2px solid #03D2B5;
+ }
+ img {
+ width: 17px;
+ height: 13px;
+ }
+ span {
+ font-size: 12px;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #01D9FE;
+ }
+ .scroll_item_row_item_x {
+ position: absolute;
+ right: -85%;
+ top: 50%;
+ transform: translate(0, -50%);
+ width: 19px;
+ height: 2px;
+ background-color: #01D9FE;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ .content_center_top_form1 {
+ width: 100%;
+ padding: 20px;
+ box-sizing: border-box;
+ height: calc(100% - 38px);
+ .content_center_top_form_head {
+ width: 100%;
+ height: 34px;
+ background: rgba(52,88,159,0.5);
+ display: flex;
+ align-items: center;
+ .content_center_top_form_head_item {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #01D9FE;
+ }
+ }
+ .main_container {
+ width: 100%;
+ height: calc(100% - 34px);
+ .scroll_container {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ .scroll_item_bg1 {
+ background: rgba(52,88,159,0.2);
+ }
+ .scroll_item_bg2 {
+ background: rgba(52,88,159,0.5);
+ }
+ .scroll_item {
+ width: 100%;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ .scroll_item_row {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #FFFFFF;
+ .scroll_item_row_item {
+ width: 29px;
+ height: 29px;
+ border-radius: 50%;
+ margin-right: 19px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border: 2px solid #01D9FE;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ .content_center_bottom {
+ width: 100%;
+ height: 286px;
+ .content_center_bottom_head {
+ width: 100%;
+ height: 38px;
+ line-height: 38px;
+ padding-left: 34px;
+ box-sizing: border-box;
+ background: linear-gradient(270deg, rgba(21,103,255,0) 0%, rgba(21,103,255,0.61) 100%);
+ border-radius: 10px 0px 0px 0px;
+ background: url('@/assets/img/gongxu_title@2x.png');
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ span {
+ font-size: 16px;
+ font-family: SourceHanSansSC-Bold, SourceHanSansSC;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-shadow: 0px 0px 10px rgba(0,24,72,0.75);
+ }
+ }
+ .content_center_bottom_b {
+ width: 100%;
+ height: calc(100% - 38px);
+ padding: 20px;
+ box-sizing: border-box;
+ background: linear-gradient(180deg, rgba(52,88,159,0) 0%, rgba(0,86,255,0.4) 100%);
+ .content_center_top_form_head {
+ width: 100%;
+ height: 34px;
+ background: rgba(52,88,159,0.5);
+ display: flex;
+ align-items: center;
+ .content_center_top_form_head_item {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #01D9FE;
+ &:nth-child(4) {
+ flex: 2;
+ }
+ }
+ }
+ .main_container {
+ width: 100%;
+ height: calc(100% - 33px);
+ .scroll_container {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ .scroll_item_bg1 {
+ background: rgba(52,88,159,0.2);
+ }
+ .scroll_item_bg2 {
+ background: rgba(52,88,159,0.5);
+ }
+ .scroll_item {
+ width: 100%;
+ height: 37px;
+ display: flex;
+ align-items: center;
+ .scroll_item_row {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #FFFFFF;
+ &:nth-child(4) {
+ flex: 2;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
.content_right {
flex: 1;
- background-color: aquamarine;
+ .content_right_top {
+ width: 100%;
+ height: 511px;
+ margin-bottom: 20px;
+ .content_right_top_head {
+ width: 100%;
+ height: 38px;
+ line-height: 38px;
+ padding-left: 34px;
+ box-sizing: border-box;
+ background: url('@/assets/img/home_title_short@2x.png');
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ span {
+ font-size: 16px;
+ font-family: SourceHanSansSC-Bold, SourceHanSansSC;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-shadow: 0px 0px 10px rgba(0,24,72,0.75);
+ }
+ }
+ .content_right_top_nr {
+ width: 100%;
+ height: calc(100% - 38px);
+ background: linear-gradient(180deg, rgba(52,88,159,0) 0%, rgba(0,86,255,0.4) 100%);
+ .content_right_top_nr_top {
+ width: 100%;
+ height: 50%;
+ background-color: #00B0FF;
+ }
+ .content_right_top_nr_bottom {
+ width: 100%;
+ height: 50%;
+ background-color: #5900ff;
+ }
+ }
+ }
+ .content_right_bottom {
+ width: 100%;
+ height: 284px;
+ .content_right_bottom_head {
+ width: 100%;
+ height: 38px;
+ line-height: 38px;
+ padding-left: 34px;
+ box-sizing: border-box;
+ background: url('@/assets/img/home_title_short@2x.png');
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ span {
+ font-size: 16px;
+ font-family: SourceHanSansSC-Bold, SourceHanSansSC;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-shadow: 0px 0px 10px rgba(0,24,72,0.75);
+ }
+ }
+ .content_right_bottom_nr {
+ width: 100%;
+ height: calc(100% - 38px);
+ padding: 20px;
+ box-sizing: border-box;
+ background: linear-gradient(180deg, rgba(52,88,159,0) 0%, rgba(0,86,255,0.4) 100%);
+ .item2_content_head {
+ width: 100%;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ background: rgba(52,88,159,0.5);
+ .item2_content_head_item {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 13px;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 500;
+ color: #01D9FE;
+ &:first-child {
+ flex: 2;
+ }
+ }
+ }
+ .main_container {
+ width: 100%;
+ height: calc(100% - 36px);
+ .scroll_container {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ .scroll_item_bg1 {
+ background: rgba(52,88,159,0.2);
+ }
+ .scroll_item_bg2 {
+ background: rgba(52,88,159,0.5);
+ }
+ .scroll_item {
+ width: 100%;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ .scroll_item_row {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #FFFFFF;
+ &:first-child {
+ flex: 2;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
}
</style>
--
Gitblit v1.9.3