Admin.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <!--管理界面-->
  2. <template>
  3. <div class="containers">
  4. <!--主页-->
  5. <div
  6. :style="{
  7. position: 'relative',
  8. left:windowJson[0].Left+'px',
  9. top:windowJson[0].Top+'px',
  10. width:windowJson[0].Width + 'px',
  11. height:windowJson[0].Height + 'px',
  12. zIndex:windowJson[0].ZIndex,
  13. display:windowJson[0].IsVisibility ? 'block' : 'none',
  14. backgroundImage:windowJson[0].BackIcon ? 'url('+require(`../../../static/images/${windowJson[0].BackIcon}`)+')' : null,
  15. backgroundRepeat:'no-repeat',
  16. backgroundSize:'100% 100%',
  17. backgroundColor:`#${windowJson[0].BrackgroupStr.slice(3)}`,
  18. margin:'0 auto',
  19. }"
  20. >
  21. <!--按钮-->
  22. <div v-for="item in buttonJson"
  23. :style="{
  24. position:'absolute',
  25. left:item.Left+'px',
  26. top:item.Top+'px',
  27. width:item.Width + 'px',
  28. height:item.Height + 'px',
  29. zIndex:item.ZIndex,
  30. display:item.IsVisibility ? 'block' : 'none',
  31. fontSize:item.FontSize + 'px',
  32. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  33. backgroundSize:'100% 100%',
  34. backgroundRepeat:'no-repeat',
  35. color:`#${item.ForegroundStr.slice(3)}`,
  36. textAlign:'center',
  37. lineHeight:item.Height + 'px',
  38. cursor:'default'
  39. }"
  40. :ref="item.ID"
  41. @click="clickBtn(item)"
  42. @mousedown="mouseDown(item)"
  43. @mouseup="mouseUp(item)"
  44. >
  45. {{item.Text}}
  46. </div>
  47. <!--大屏显示-->
  48. <draggable
  49. :class="['split_screen', splitScreenStatus === 0 ? 'split_screen_one' : splitScreenStatus === 1 ? 'split_screen_four' : splitScreenStatus === 2 ? 'split_screen_nine' : 'split_screen_sixteen']"
  50. v-for="item in bigScreenJson"
  51. element="div"
  52. v-model="signalPreList"
  53. :options="dragOptions2"
  54. :move="onMove"
  55. @start="isDragging=true"
  56. @end="isDragging=false"
  57. :style="{
  58. left:item.Left+'px',
  59. top:item.Top+'px',
  60. width:item.Width + 'px',
  61. height:item.Height + 'px',
  62. zIndex:item.ZIndex,
  63. display:item.IsVisibility ? 'black' : 'none',
  64. }"
  65. >
  66. <div v-for="(item,key) in signalPreList" :key="key" class="item">
  67. {{item.ShowName}}
  68. </div>
  69. </draggable>
  70. <!--label标签-->
  71. <label v-for="item in labelJson"
  72. :style="{
  73. fontSize:item.FontSize + 'px',
  74. position:'absolute',
  75. left:item.Left+'px',
  76. top:item.Top+'px',
  77. width:item.Width + 'px',
  78. height:item.Height + 'px',
  79. zIndex:item.ZIndex,
  80. display:item.IsVisibility ? 'block' : 'none',
  81. color:`#${item.ForegroundStr.slice(3)}`,
  82. textAlign:'center',
  83. lineHeight:item.Height + 'px',
  84. }">
  85. {{item.Text}}
  86. </label>
  87. <!--图片-->
  88. <div v-for="item in imageJson"
  89. :style="{
  90. position:'absolute',
  91. left:item.Left+'px',
  92. top:item.Top+'px',
  93. width:item.Width + 'px',
  94. height:item.Height + 'px',
  95. zIndex:item.ZIndex,
  96. display:item.IsVisibility ? 'block' : 'none',
  97. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  98. backgroundRepeat:'no-repeat',
  99. backgroundSize:'100% 100%',
  100. }"
  101. >
  102. </div>
  103. <!--信号源列表-->
  104. <draggable
  105. :style="{
  106. left:signalList[0].Left+'px',
  107. top:signalList[0].Top+'px',
  108. width:signalList[0].Width + 'px',
  109. height:signalList[0].Height + 'px',
  110. zIndex:signalList[0].ZIndex,
  111. display:signalList[0].IsVisibility ? 'block' : 'none',
  112. fontSize:signalList[0].FontSize + 'px',
  113. color:`#${signalList[0].ForegroundStr.slice(3)}`,
  114. position:'absolute',
  115. overflow:'auto',
  116. }"
  117. class="signal_body"
  118. element="div"
  119. v-model="signalList[0].PreviewList"
  120. :options="dragOptions1"
  121. :move="onMove"
  122. @start="isDragging=true"
  123. @end="isDragging=false"
  124. >
  125. <!--列表项-->
  126. <div class="signal_item" v-for="item in signalList[0].PreviewList" :key="item.ID">
  127. <div class="signal_item_bg">
  128. <div class="signal_item_bg_body">
  129. <div class="signal_item_bg_body_space"></div>
  130. <div class="signal_item_bg_body_font">{{item.ShowName}}</div>
  131. </div>
  132. </div>
  133. </div>
  134. </draggable>
  135. <!--滑块-->
  136. <div v-for="item in sliderJson"
  137. :style="{
  138. position:'absolute',
  139. left:item.Left+'px',
  140. top:item.Top+'px',
  141. width:item.Width + 'px',
  142. height:item.Height + 'px',
  143. zIndex:item.ZIndex,
  144. display:item.IsVisibility ? 'block' : 'none',
  145. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  146. backgroundRepeat:'no-repeat',
  147. }"
  148. >
  149. <div
  150. :style="{
  151. width:item.imgBgWidth + 'px',
  152. height:item.imgBgHeight + 'px',
  153. }"
  154. >
  155. <div
  156. :style="{
  157. width:item.imgSliderWidth + 'px',
  158. height:item.imgSliderHeight + 'px',
  159. backgroundImage:'url('+require(`../../../static/images/${item.SliderIcon}`)+')',
  160. backgroundRepeat:'no-repeat',
  161. marginLeft:'22px',
  162. }"
  163. @click="clickBtn(item)"
  164. >
  165. </div>
  166. </div>
  167. </div>
  168. <!--其他页面-->
  169. <!--<div v-for="item in windowJson"
  170. :style="{
  171. left:item.Left+'px',
  172. top:item.Top+'px',
  173. width:item.Width + 'px',
  174. height:item.Height + 'px',
  175. zIndex:item.ZIndex,
  176. display:item.IsVisibility ? 'block' : 'none',
  177. backgroundColor:`#${item.BrackgroupStr.slice(3)}`,
  178. backgroundImage:item.BackIcon ? 'url('+require(`../../../static/images/${item.BackIcon}`)+')' : null,
  179. backgroundRepeat:'no-repeat',
  180. backgroundSize:'100% 100%',
  181. margin:'0 auto',
  182. }"
  183. >
  184. </div>-->
  185. </div>
  186. </div>
  187. </template>
  188. <script>
  189. import '../assets/less/splitscreen.less'
  190. import {mapState} from 'vuex'
  191. import draggable from 'vuedraggable'
  192. import labelJson from '../../../static/EnityLable'
  193. import bigScreenJson from '../../../static/EnityBigScreen'
  194. import buttonJson from '../../../static/EnityButton'
  195. import signalList from '../../../static/EnitySignalPreviewList'
  196. import sliderJson from '../../../static/EnitySlider'
  197. import imageJson from '../../../static/EnityImage'
  198. import windowJson from '../../../static/EnityWindow'
  199. import storageUtils from "../../utils/storageUtils"
  200. export default {
  201. components: {
  202. draggable
  203. },
  204. data() {
  205. return {
  206. user: storageUtils.getUser(), // 本地存储的用户
  207. signalPreList: [], // 被拖到大屏中的信号源列表
  208. isDragging: false, // 是否可拖动标志
  209. splitScreenStatus: 0,// 分屏状态(默认0: 自由屏,1: 4分屏 2:9分屏 3: 16分屏)
  210. labelJson, // label标签配置
  211. bigScreenJson,// 大屏显示配置
  212. buttonJson, // button按钮配置
  213. signalList, // 信号源列表配置
  214. sliderJson, // 滑块配置
  215. imageJson, // 图片配置
  216. windowJson, // 主要页面配置
  217. count: 0, // 音量计数器
  218. count2: 0, // 预案管理模块计数器
  219. count3: 0, // 管理控制按钮计数器
  220. count4: 0, // 3个视频按钮计数器
  221. count5: 0, // 安卓分布式按钮
  222. count6: 0, // 其他按钮
  223. }
  224. },
  225. mounted() {
  226. // 获取分屏按钮数组(将分屏按钮和其他按钮区分开)
  227. const arr = this.buttonJson.filter(item => (item.WindowID === '9a0dff23-8633-4e7f-89bf-cc4f68ec88e1' || item.WindowID === '08208721-41cc-4f1e-937b-3a1627389049' || item.WindowID === 'ab842585-0c91-4e65-bfed-a219bcaaeb43'))
  228. this.arr = arr
  229. // 获取功能按钮涉及到的按钮和label
  230. // 1.电源管理 2.音频管理 3.视频管理 4.环境控制 5.电脑控制
  231. const funcBtnArr = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
  232. const funcLabArr = this.labelJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
  233. this.funcObj = {
  234. funcBtnArr,
  235. funcLabArr,
  236. funSliderArr:this.sliderJson
  237. }
  238. // 获取电源管理和电脑控制按钮
  239. const powerAndCompBtns = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5') && item.ID !== '19554440-98bc-4644-83a0-d9cefd69153e')
  240. this.powerAndCompBtns = powerAndCompBtns
  241. },
  242. methods: {
  243. // 移动信号源
  244. onMove({relatedContext, draggedContext}) {
  245. const relatedElement = relatedContext.element
  246. const draggedElement = draggedContext.element
  247. return (
  248. (!relatedElement || !relatedElement.fixed) && !draggedElement.fixed
  249. )
  250. },
  251. // 分屏操作
  252. spliceScreen(value) {
  253. this.splitScreenStatus = value
  254. },
  255. // 点击按钮
  256. clickBtn(e) {
  257. console.log(e)
  258. // 预案管理声音开关
  259. if (e.ID === '355d3c32-1502-40b4-9ddd-663d5b8469e7') {
  260. if (this.count % 2 === 0) {
  261. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  262. ++this.count
  263. } else {
  264. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  265. ++this.count
  266. }
  267. return
  268. }
  269. // 切换屏幕
  270. if (e.Text === 'LCD屏' || e.Text === 'LED屏' || e.Text === '投影机') {
  271. if (this.count4 === 0) {
  272. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  273. ++this.count4
  274. } else if(e !== this.lastData4) {
  275. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  276. this.lastBtn4.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData4.BackIcon}`) + ')'
  277. }
  278. // 保存点过的这个按钮和按钮数据
  279. this.lastBtn4 = this.$refs[e.ID][0]
  280. this.lastData4 = e
  281. // 首先清屏
  282. this.signalPreList = []
  283. this.arr.forEach(item => {
  284. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  285. item.IsVisibility = true
  286. } else {
  287. item.IsVisibility = false
  288. }
  289. })
  290. return
  291. }
  292. // 预案管理按钮处理
  293. if (e.Name.includes('V0') && e.Name.slice(7) * 1 > 62 && e.Name.slice(7) * 1 < 72) {
  294. if (this.count2 === 0) {
  295. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  296. ++this.count2
  297. } else if(e !== this.lastData) {
  298. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  299. this.lastBtn.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData.BackIcon}`) + ')'
  300. }
  301. // 保存点过的按钮和按钮数据
  302. this.lastBtn = this.$refs[e.ID][0]
  303. this.lastData = e
  304. return
  305. }
  306. // 5个管理控制按钮处理
  307. if (e.Name.includes('V0--Btn6') || e.Name.includes('V0--Btn61') || e.Name.includes('V0--Btn12') || e.Name.includes('V0--Btn58') || e.Name.includes('V0--Btn77')) {
  308. // (1)背景切换
  309. if (this.count3 === 0) {
  310. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  311. ++this.count3
  312. } else if(e !== this.lastData3) {
  313. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  314. this.lastBtn3.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData3.BackIcon}`) + ')'
  315. }
  316. // 保存点过的这个按钮和按钮数据
  317. this.lastBtn3 = this.$refs[e.ID][0]
  318. this.lastData3 = e
  319. // (2)界面切换
  320. // 按钮
  321. this.funcObj.funcBtnArr.forEach((item, index) => {
  322. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  323. item.IsVisibility = true
  324. } else {
  325. item.IsVisibility = false
  326. }
  327. })
  328. // 标签
  329. this.funcObj.funcLabArr.forEach((item, index) => {
  330. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  331. item.IsVisibility = true
  332. } else {
  333. item.IsVisibility = false
  334. }
  335. })
  336. // 滑块
  337. this.funcObj.funSliderArr.forEach((item, index) => {
  338. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  339. item.IsVisibility = true
  340. } else {
  341. item.IsVisibility = false
  342. }
  343. })
  344. return
  345. }
  346. // 分屏和清屏操作
  347. if (e.ID === '7775e508-c6a5-4044-8264-24772a24fa97' || e.ID === '95c5d676-46a5-4c46-b550-9bc013a59937' || e.ID === 'f47e84bb-c878-4b22-a9d6-eb2e307283bc') {
  348. // 清屏
  349. this.signalPreList = []
  350. return
  351. } else if (e.ID === '49653a62-99cb-40e1-a513-60e42893adb7' || e.ID === 'd55c81a8-54d7-4d90-aad7-4f34c3ba3950' || e.ID === '4142ab5b-ce52-4655-a28d-724bfabb24f0') {
  352. // 自由屏
  353. this.spliceScreen(0)
  354. return
  355. } else if (e.ID === '52de9a2e-d171-423d-860f-3fe2750ec757' || e.ID === '0cabb1ba-bcae-45d9-b019-2b45486f98e3' || e.ID === '9bb5b3e3-9e21-4716-8059-f5b35b24e3fa') {
  356. // 四分屏
  357. this.spliceScreen(1)
  358. return
  359. } else if (e.ID === 'ac0cc31c-a9b8-4bdf-88cf-928964b93ac5' || e.ID === '201e4bb0-c039-46c7-a55a-049d00de4769') {
  360. // 九分屏
  361. this.spliceScreen(2)
  362. return
  363. } else if (e.ID === '2d4c49bc-905b-4f96-a65c-9b0a3e057b3f') {
  364. // 16分屏
  365. this.spliceScreen(3)
  366. return
  367. }
  368. // 安卓和分布式按钮
  369. if (e.Text === '安卓' || e.Text === '分布式') {
  370. if (this.count5 === 0) {
  371. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  372. ++this.count5
  373. } else if(e !== this.lastData5){
  374. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  375. this.lastBtn5.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData5.BackIcon}`) + ')'
  376. }
  377. // 保存点过的这个按钮和按钮数据
  378. this.lastBtn5 = this.$refs[e.ID][0]
  379. this.lastData5 = e
  380. return
  381. }
  382. // 电源管理和电脑管理
  383. if(this.powerAndCompBtns.some(item => item.ID === e.ID)){
  384. if(e.ActionType === 2){
  385. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  386. e.ActionType = -2
  387. }else {
  388. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  389. e.ActionType = 2
  390. }
  391. }
  392. // 系统开关按钮
  393. /*if (e.ID === 'aea34c76-4216-469b-9610-9889a2d42d06') {
  394. this.systemStatus = !this.systemStatus
  395. if (this.systemStatus) { // 开启,同时开启LCD屏和坐席电源
  396. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  397. this.$refs['f5361d60-6868-4c59-806b-22b85e7c9e3e'][0].style.backgroundImage = 'url(' + require(`../../../static/images/73.png`) + ')'
  398. this.$refs['4d3266e8-64b5-4765-a36d-7e271eb3c8e8'][0].style.backgroundImage = 'url(' + require(`../../../static/images/73.png`) + ')'
  399. } else { // 关闭
  400. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  401. this.$refs['f5361d60-6868-4c59-806b-22b85e7c9e3e'][0].style.backgroundImage = 'url(' + require(`../../../static/images/75.png`) + ')'
  402. this.$refs['4d3266e8-64b5-4765-a36d-7e271eb3c8e8'][0].style.backgroundImage = 'url(' + require(`../../../static/images/75.png`) + ')'
  403. }
  404. return false
  405. }*/
  406. return
  407. },
  408. // 鼠标按下事件
  409. mouseDown(e) {
  410. if (this.arr.some(item => e === item) && e.Text !== '安卓' && e.Text !== '分布式') { // 分屏控制按钮
  411. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  412. }else if(e.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b') { // 视频控制按钮
  413. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  414. }else if(e.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d') { // 环境控制按钮
  415. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  416. }else if(e.ID === '19554440-98bc-4644-83a0-d9cefd69153e'){ // 电脑控制All按钮
  417. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  418. }
  419. return
  420. },
  421. // 鼠标松开事件
  422. mouseUp(e) {
  423. if (this.arr.some(item => e === item) && e.Text !== '安卓' && e.Text !== '分布式') { // 分屏控制按钮
  424. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  425. }else if(e.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b') { // 视频控制按钮
  426. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  427. }else if(e.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d') { // 环境控制按钮
  428. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  429. }if(e.ID === '19554440-98bc-4644-83a0-d9cefd69153e'){ // 电脑控制All按钮
  430. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  431. }
  432. return
  433. },
  434. },
  435. computed: {
  436. ...mapState(['deviceList']),
  437. dragOptions1() {
  438. return {
  439. animation: 0,
  440. group: {
  441. name: "description",
  442. pull: 'clone',
  443. put: false
  444. },
  445. ghostClass: "ghost",
  446. }
  447. },
  448. dragOptions2() {
  449. return {
  450. animation: 0,
  451. group: "description",
  452. }
  453. },
  454. }
  455. }
  456. </script>
  457. <style lang="less">
  458. // 容器样式
  459. .containers {
  460. width: 100%;
  461. height: 981px;
  462. background-color: #333;
  463. // 列表项样式
  464. .signal_item {
  465. width: 100%;
  466. height: 132px;
  467. display: flex;
  468. justify-content: center;
  469. align-items: center;
  470. /*背景*/
  471. .signal_item_bg {
  472. width: 90%;
  473. height: 130px;
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. &:hover {
  478. background-color: rgba(113, 113, 113, 0.3);
  479. }
  480. /*主体*/
  481. .signal_item_bg_body {
  482. width: 96%;
  483. height: 96%;
  484. background-color: rgba(127, 127, 127, 0.5);
  485. border-radius: 2px;
  486. /*空间*/
  487. .signal_item_bg_body_space {
  488. width: 94%;
  489. height: 80%;
  490. background-color: green;
  491. margin: 6px auto 2px;
  492. }
  493. /*文字*/
  494. .signal_item_bg_body_font {
  495. width: 100%;
  496. height: 15%;
  497. text-align: center;
  498. margin: 0 auto;
  499. font-size: 16px;
  500. color: #fff;
  501. font-family: "Gill Sans", sans-serif;
  502. }
  503. }
  504. }
  505. }
  506. // 滚动条样式
  507. /*定义滚动条高宽及背景高宽:分别对应横竖滚动条的尺寸*/
  508. ::-webkit-scrollbar {
  509. width: 4px;
  510. background-color: rgba(10, 66, 125, 0.65);
  511. }
  512. /*定义滚动条轨道:内阴影+圆角*/
  513. ::-webkit-scrollbar-track {
  514. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, 0.3);
  515. border-radius: 10px;
  516. background-color: rgba(10, 66, 125, 0.65);
  517. }
  518. /*定义滑块:内阴影+圆角*/
  519. ::-webkit-scrollbar-thumb {
  520. border-radius: 10px;
  521. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, .3);
  522. background-color: #666;
  523. }
  524. }
  525. </style>