teacherHome.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <!-- 教师首页 -->
  2. <template>
  3. <view class="teacherHome">
  4. <data-board v-if="pageType == 1" style="display: flex;flex-direction:column;flex:1;"></data-board>
  5. <view class="top-back-img" :style="{top:navHeight+'rpx'}">
  6. <!-- <img class="position-data-button" @click="goPage('dataBoard')" v-if="dataPageType" :src="imagesUrl('home/icon_sy_sjmb@1x.png')"> -->
  7. <img class="position-img" :src="rectangleLogo">
  8. </view>
  9. <view class="home-page" v-if="pageType == 2">
  10. <!-- <nav-bar :title="title" :background="background"></nav-bar> -->
  11. <view class="user-max-box">
  12. <view class="user-img-box">
  13. <img v-if="userData.avatar" class="user-img" :src="baseUrl+userData.avatar">
  14. <img v-else class="user-img" :src="imagesUrl('commonality/icon_01.png')">
  15. </view>
  16. <view class="user-name-box">
  17. <view>{{userData.userName}} {{userData.userType==1?'老师':(userData.userType==2?'学生':(userData.userType==3?'系统用户':''))}}</view>
  18. <view>{{userData.deptName}}</view>
  19. </view>
  20. <view class="user-button-a" @click="saoCode()">
  21. <img class="position-img" :src="imagesUrl('student/icon_dhli.png')">
  22. 积分兑换
  23. </view>
  24. <view class="user-button" @click="goMine()">设置</view>
  25. </view>
  26. <view class="button-one-box">
  27. <view class="button-min" @click="goPage('securityAdmittance')">
  28. <img class="button-img" :src="imagesUrl('home/icon_sy_aqzr@1x.png')">
  29. <view class="button-name">安全准入</view>
  30. <view class="home-button-mark" v-if="admittanceHint"></view>
  31. </view>
  32. <view class="button-min" @click="goPage('securityCheck')">
  33. <img class="button-img" :src="imagesUrl('home/icon_sy_aqjc@1x.png')">
  34. <view class="button-name">安全检查</view>
  35. </view>
  36. <view class="button-min" @click="goPage('deviceManagement')">
  37. <img class="button-img" :src="imagesUrl('home/icon_sy_sbgl@1x.png')">
  38. <view class="button-name">设备管理</view>
  39. </view>
  40. <view class="button-min" @click="saoCode()">
  41. <img class="button-img" :src="imagesUrl('home/icon_sy_aqks@1x.png')">
  42. <view class="button-name">设备登记</view>
  43. </view>
  44. <!-- <view class="button-min" @click="goPage('securityExamination')">
  45. <img class="button-img" :src="imagesUrl('home/icon_sy_aqks@1x.png')">
  46. <view class="button-name">安全考试</view>
  47. </view> -->
  48. <!-- <view class="button-min" @click="goPage('securityAdmittance')" style="margin:23rpx 0 0 20rpx;">
  49. <img class="button-img" :src="imagesUrl('home/icon_sy_aqzr@1x.png')">
  50. <view class="button-name">安全准入</view>
  51. </view>
  52. <view class="button-min" @click="goPage('hierarchicalControl')" style="margin:23rpx 65rpx 0;">
  53. <img class="button-img" :src="imagesUrl('home/icon_sy_fjgk@1x.png')">
  54. <view class="button-name">分级管控</view>
  55. </view> -->
  56. <!-- <view class="button-min" @click="goPage('securityResponsibility')">
  57. <img class="button-img" :src="imagesUrl('home/icon_sy_aqzrr@1x.png')">
  58. <view class="button-name">安全责任</view>
  59. </view> -->
  60. <!-- <view class="button-min" @click="goPage('deviceManagement')">
  61. <img class="button-img" :src="imagesUrl('home/icon_sy_sbgl@1x.png')">
  62. <view class="button-name">设备管理</view>
  63. </view> -->
  64. <!-- <view class="button-min" @click="goPage('emergencyDisposal')" style="margin:23rpx 20rpx 0 0;">
  65. <img class="button-img" :src="imagesUrl('home/icon_sy_yjcz@1x.png')">
  66. <view class="button-name">应急处置</view>
  67. </view> -->
  68. <!-- <view class="button-min" @click="goPage('cageSiteManagement')">
  69. <img class="button-img" :src="imagesUrl('home/icon_sy_lwgl@1x.png')">
  70. <view class="button-name">笼位管理</view>
  71. </view> -->
  72. </view>
  73. <top-warn></top-warn>
  74. <!-- <view class="home-button-box-1" style="background-color: #fff0dd;"
  75. @click="goPage('securityAdmittance')">
  76. <img class="home-button-img" :src="imagesUrl('home/icon_sy_aqzr@1x.png')"/>
  77. <view class="home-button-name" style="color: #ff8c00;">安全准入</view>
  78. <view class="home-button-text">实验室安全准入审核</view>
  79. <view class="home-button-mark" v-if="admittanceHint"></view>
  80. </view> -->
  81. <view class="home-button-box-1" style="background-color: #FFE4E1;"
  82. @click="goPage('emergencyDisposal')">
  83. <img class="home-button-img" :src="imagesUrl('home/icon_sy_yjcz@1x.png')"/>
  84. <view class="home-button-name" style="color: #ff6762;">应急预警</view>
  85. <view class="home-button-text">实验室安全风险处置</view>
  86. <!-- <view class="home-button-mark"></view> -->
  87. </view>
  88. <view class="home-button-box-2">
  89. <view class="home-button-box-min" @click="goPage('riskEarlyWarning')"
  90. style="background-color: #DFF0FF;margin-right:20rpx;">
  91. <img class="home-button-img" :src="imagesUrl('home/home_button_02.png')">
  92. <view class="home-button-min">
  93. <view class="home-button-min-name">预警记录</view>
  94. <view class="home-button-min-text">风险预警记录</view>
  95. </view>
  96. </view>
  97. <view class="home-button-box-min" @click="goPage('entryAndExitRecord')"
  98. style="background-color: #DFF0FF;">
  99. <img class="home-button-img" :src="imagesUrl('home/img_sy_lkjc@1x.png')">
  100. <view class="home-button-min">
  101. <view class="home-button-min-name">进出记录</view>
  102. <view class="home-button-min-text">实验室出入</view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="home-button-box-2">
  107. <view class="home-button-box-min" @click="goPage('remoteDoorOpening')"
  108. style="background-color: #DFF0FF;margin-right:20rpx;">
  109. <img class="home-button-img" :src="imagesUrl('home/img_sy_yckm@1x.png')">
  110. <view class="home-button-min">
  111. <view class="home-button-min-name">远程开门</view>
  112. <view class="home-button-min-text">打开门禁</view>
  113. </view>
  114. </view>
  115. <view class="home-button-box-min" @click="goPage('accessControlAuthorization')"
  116. style="background-color: #DFF0FF;">
  117. <img class="home-button-img" :src="imagesUrl('home/home_button_03.png')">
  118. <view class="home-button-min">
  119. <view class="home-button-min-name">授权开门</view>
  120. <view class="home-button-min-text">门禁权限</view>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="home-button-box-2">
  125. <view class="home-button-box-min" @click="goPage('leaveCheckPupilTeacher')"
  126. style="background-color: #DFF0FF;margin-right:20rpx;">
  127. <img class="home-button-img" :src="imagesUrl('home/home_button_04.png')">
  128. <view class="home-button-min">
  129. <view class="home-button-min-name">签退离开</view>
  130. <view class="home-button-min-text">检查拍照上传</view>
  131. </view>
  132. </view>
  133. <view class="home-button-box-min" @click="saoCode()"
  134. style="background-color: #DFF0FF;">
  135. <img class="home-button-img" :src="imagesUrl('home/icon_sy_ssp@1x.png')">
  136. <view class="home-button-min">
  137. <view class="home-button-min-name">扫一扫</view>
  138. <view class="home-button-min-text">扫描二维码</view>
  139. </view>
  140. </view>
  141. </view>
  142. <!-- <view class="button-two-box">
  143. <view class="button-big-box" @click="goPage('snapshot')"
  144. style="background-color: #DFF0FF;margin-right:20rpx;">
  145. <img :src="imagesUrl('home/icon_sy_ssp@1x.png')">
  146. <view class="button-min-box">
  147. <view>随手拍</view>
  148. <view>发现隐患</view>
  149. </view>
  150. </view>
  151. <view class="button-big-box" @click="goPage('remoteDoorOpening')" style="background-color: #D6EBDA;">
  152. <img :src="imagesUrl('home/img_sy_yckm@1x.png')">
  153. <view class="button-min-box">
  154. <view>远程开门</view>
  155. <view>立即开门</view>
  156. </view>
  157. </view>
  158. </view> -->
  159. <!-- <view class="button-three-box-1">
  160. <view class="button-big-box" @click="goPage('leaveCheckPupilTeacher')">
  161. <img :src="imagesUrl('home/img_lkjc@1x.png')">
  162. <view class="button-min-box">
  163. <view>离开检查</view>
  164. <view>拍照上传</view>
  165. </view>
  166. </view>
  167. </view>
  168. <view class="button-three-box">
  169. <view class="button-big-box" @click="goPage('remoteDoorOpening')">
  170. <img :src="imagesUrl('home/img_lwgl@1x.png')">
  171. <view class="button-min-box">
  172. <view>远程开门</view>
  173. <view>打开门禁</view>
  174. </view>
  175. </view>
  176. </view> -->
  177. <!-- <view class="button-three-box">
  178. <view class="button-big-box" @click="goPage()">
  179. <img :src="imagesUrl('home/img_bg_hxpgk@1x.png')">
  180. <view class="button-min-box">
  181. <view>化学品智能管控</view>
  182. <view>申购审批丨使用台账丨实验室库存</view>
  183. </view>
  184. </view>
  185. </view> -->
  186. <!-- <img class="scan_btn" @click.stop="saoCode" :src="imagesUrl('commonality/icon_xyxc_sm.png')"> -->
  187. <tab-bar></tab-bar>
  188. </view>
  189. </view>
  190. </template>
  191. <script>
  192. import {
  193. config
  194. } from '@/api/request/config.js'
  195. import {
  196. pageRestrictVerify
  197. } from '@/utils/index'
  198. import {
  199. chemicalAppletSelectStockInfo,
  200. laboratorySubPassOutIsotopeSubSign,
  201. systemUserProfile,
  202. laboratoryAppletCheckApplyPending
  203. } from '@/pages/api/index.js'
  204. import tabBar from '@/pages/component/tabBar.vue'
  205. import navBar from '@/pages/component/navbar.vue'
  206. import topWarn from '@/pages/component/topWarn.vue'
  207. import dataBoard from '@/pages/views/dataBoard/dataBoard.vue'
  208. import { scanCode } from '@/utils/scanTheCode'
  209. export default {
  210. name: "teacherHome",
  211. components: {
  212. tabBar,
  213. navBar,
  214. topWarn,
  215. dataBoard,
  216. },
  217. data() {
  218. return {
  219. baseUrl: config.base_url,
  220. pageType: 2,
  221. userData:{},
  222. navHeight: uni.getStorageSync('navHeight'),
  223. dataPageType: false,
  224. title: '实验室安全智慧化管控系统',
  225. background: '#0183FA',
  226. rectangleLogo: uni.getStorageSync('rectangleLogo'),
  227. identityData:uni.getStorageSync('identityData'),
  228. // 准入红点
  229. admittanceHint:false,
  230. }
  231. },
  232. created() {
  233. // if (pageRestrictVerify('dataBoard')) {
  234. // this.dataPageType = true;
  235. // if (!uni.getStorageSync('dataBoardType')) {
  236. // this.pageType = 1;
  237. // uni.setStorageSync('dataBoardType', true);
  238. // }
  239. // }
  240. },
  241. mounted() {
  242. this.systemUserProfile();
  243. this.laboratoryAppletCheckApplyPending();
  244. },
  245. methods: {
  246. //查询安全准入是否有-待审核
  247. async laboratoryAppletCheckApplyPending() {
  248. const {
  249. data
  250. } = await laboratoryAppletCheckApplyPending();
  251. if (data.code == 200) {
  252. this.$set(this,'admittanceHint',data.data);
  253. }
  254. },
  255. //获取个人信息
  256. async systemUserProfile() {
  257. const {
  258. data
  259. } = await systemUserProfile();
  260. if (data.code == 200) {
  261. this.$set(this, 'userData', data.data)
  262. uni.setStorageSync('userDeptId', data.data.deptId);
  263. uni.setStorageSync('userDeptName', data.data.deptName);
  264. }
  265. },
  266. goMine(){
  267. uni.navigateTo({
  268. url: "/pages/views/mine/mine",
  269. });
  270. },
  271. goPage(type) {
  272. if (!type) {
  273. uni.showToast({
  274. title: '暂未开放',
  275. icon: "none",
  276. mask: true,
  277. duration: 2000
  278. });
  279. return
  280. }
  281. if (!pageRestrictVerify(type)) {
  282. uni.showToast({
  283. title: '没有相关权限,请联系管理员',
  284. icon: "none",
  285. mask: true,
  286. duration: 2000
  287. });
  288. return
  289. }
  290. if (type == 'dataBoard') {
  291. //数据看板
  292. this.pageType = 1;
  293. } else if (type == 'securityCheck') {
  294. uni.showToast({
  295. title: '暂未开放',
  296. icon: "none",
  297. mask: true,
  298. duration: 2000
  299. });
  300. return
  301. //安全检查
  302. uni.navigateTo({
  303. url: "/pages_safetyCheck/views/safetyCheck",
  304. });
  305. /* if(this.identityData){
  306. uni.navigateTo({
  307. url: "/pages_safetyCheck/views/safetyCheck",
  308. });
  309. }else{
  310. uni.showToast({
  311. mask: true,
  312. icon: "none",
  313. position: "center",
  314. title: '您不是校/院级管理员或督导组成员,无法使用该功能.',
  315. duration: 2000
  316. });
  317. } */
  318. } else if (type == 'securityExamination') {
  319. //安全考试
  320. uni.navigateTo({
  321. url: "/pages_basics/views/deviceCageSitePage?pageType=3",
  322. });
  323. } else if (type == 'securityAdmittance') {
  324. //安全准入
  325. uni.navigateTo({
  326. url: "/pages_manage/views/accessQualification/accessQualification",
  327. });
  328. } else if (type == 'hierarchicalControl') {
  329. //分级管控
  330. uni.navigateTo({
  331. url: "/pages_basics/views/gradingControl/gradingControl",
  332. });
  333. } else if (type == 'securityResponsibility') {
  334. //安全责任
  335. uni.navigateTo({
  336. url: "/pages_basics/views/deviceCageSitePage?pageType=4",
  337. });
  338. } else if (type == 'deviceManagement') {
  339. //设备管理
  340. uni.navigateTo({
  341. url: "/pages_basics/views/deviceCageSitePage?pageType=1",
  342. });
  343. } else if (type == 'emergencyDisposal') {
  344. //应急处置
  345. // uni.navigateTo({
  346. // url: "/pages_manage/views/emergencyEvacuationBig",
  347. // });
  348. uni.navigateTo({
  349. url: "/pages_manage/views/emergencyEvacuationSubList",
  350. });
  351. } else if (type == 'cageSiteManagement') {
  352. //笼位管理
  353. uni.navigateTo({
  354. url: "/pages_basics/views/deviceCageSitePage?pageType=2",
  355. });
  356. } else if (type == 'snapshot') {
  357. //随手拍
  358. uni.navigateTo({
  359. url: "/pages_safetyCheck/views/snapshotManage/snapshotList",
  360. });
  361. /* uni.navigateTo({
  362. url: "/pages_safetyExamine/views/snapshotManage/snapshotAdd",
  363. }); */
  364. } else if (type == 'remoteDoorOpening') {
  365. //远程开门
  366. uni.navigateTo({
  367. url: "/pages_manage/views/accessControl/remoteOpen",
  368. });
  369. } else if (type == 'leaveCheckPupilTeacher') {
  370. //离开检查
  371. uni.navigateTo({
  372. url: "/pages_basics/views/photoInspection",
  373. });
  374. } else if (type == 'chemicalsManagement') {
  375. //化学品管控
  376. } else if (type == 'entryAndExitRecord') {
  377. //进出记录
  378. uni.navigateTo({
  379. url: "/pages_basics/views/record/index",
  380. });
  381. } else if (type == 'accessControlAuthorization') {
  382. //门禁授权
  383. uni.navigateTo({
  384. url: "/pages_manage/views/accessControl/empowerOpen",
  385. });
  386. }else if (type == 'riskEarlyWarning') {
  387. //风险预警
  388. uni.navigateTo({
  389. url: "/pages_basics/views/earlyWarningManage/earlyWarningList",
  390. });
  391. }
  392. },
  393. /* 扫一扫*/
  394. saoCode() {
  395. scanCode('home');
  396. },
  397. //扫码查询-化学品基本信息
  398. async chemicalAppletSelectStockInfo(code) {
  399. const {
  400. data
  401. } = await chemicalAppletSelectStockInfo({tagCode:code});
  402. if (data.code == 200) {
  403. if(data.data){
  404. data.data.code = code;
  405. //化学品信息
  406. uni.navigateTo({
  407. url: "/pages_basics/views/chemicalsInfo/chemicalsInfo?item=" + encodeURIComponent(JSON.stringify(data.data)),
  408. });
  409. }else{
  410. uni.showToast({
  411. mask: true,
  412. icon: "none",
  413. position: "center",
  414. title: '未找到相关信息,请扫描正确的二维码',
  415. duration: 2000
  416. });
  417. }
  418. }
  419. },
  420. //查询是否是同位素实验并且有签退
  421. async laboratorySubPassOutIsotopeSubSign(subId,result) {
  422. const {
  423. data
  424. } = await laboratorySubPassOutIsotopeSubSign({subId:subId});
  425. if (data.code == 200) {
  426. if(data.data.isotope){
  427. let obj = {
  428. subId:subId,
  429. subName:data.data.subName,
  430. passOutId:data.data.passOutId,
  431. }
  432. uni.navigateTo({
  433. url: "/pages_basics/views/photoInspection?item=" + encodeURIComponent(JSON.stringify(obj)),
  434. });
  435. }else{
  436. uni.reLaunch({
  437. url: '/pages/views/saoCode/saoCode?q=' + encodeURIComponent(result)
  438. });
  439. }
  440. }
  441. },
  442. }
  443. }
  444. </script>
  445. <style lang="stylus" scoped>
  446. @import '@/api/request/imagesUrl.styl';
  447. .teacherHome {
  448. width:100%;
  449. height:100%;
  450. flex: 1;
  451. display: flex;
  452. flex-direction: column;
  453. overflow: hidden;
  454. position: relative;
  455. .data-board {
  456. flex: 1;
  457. display: flex;
  458. flex-direction: column;
  459. overflow: hidden;
  460. }
  461. .top-back-img {
  462. position: absolute;
  463. top: 0;
  464. left: 0;
  465. width: 750rpx;
  466. height: 539rpx;
  467. background: url($imagesUrl+'home/img_sy_bg@1x.png') no-repeat;
  468. background-size:100%;
  469. background-repeat: no-repeat;
  470. z-index:0;
  471. .position-img {
  472. z-index: 5;
  473. position: absolute;
  474. left: 16rpx;
  475. top: 16rpx;
  476. width: 400rpx;
  477. height: 88rpx;
  478. }
  479. .position-data-button {
  480. z-index: 5;
  481. position: fixed;
  482. right: 0;
  483. top: 180rpx;
  484. width: 130rpx;
  485. height: 109rpx;
  486. /* line-height: 50rpx;
  487. background-color: #0183fa;
  488. color: #fff;
  489. font-size: 28rpx;
  490. text-align: center;
  491. border-top-left-radius: 30rpx;
  492. border-bottom-left-radius: 30rpx; */
  493. }
  494. }
  495. .home-page {
  496. z-index:1;
  497. // flex: 1;
  498. // display: flex;
  499. // flex-direction: column;
  500. overflow-y: scroll;
  501. overflow-x: hidden;
  502. padding-bottom:120rpx;
  503. .top-page-title {
  504. text-align: center;
  505. font-size: 28rpx;
  506. background-color: #0183FA;
  507. color: #fff;
  508. }
  509. .user-max-box{
  510. z-index: 5;
  511. display: flex;
  512. background: #fff;
  513. width: 690rpx;
  514. height:150rpx;
  515. border-radius: 20rpx;
  516. overflow: hidden;
  517. margin: 370rpx 30rpx 0;
  518. .user-img-box{
  519. width:114rpx;
  520. height:114rpx;
  521. border-radius:50%;
  522. border:1rpx solid #0183fa;
  523. margin:18rpx 20rpx 18rpx 15rpx;
  524. .user-img{
  525. width:110rpx;
  526. height:110rpx;
  527. border-radius:50%;
  528. border:1rpx solid #fff;
  529. }
  530. }
  531. .user-name-box{
  532. flex:1;
  533. view:nth-child(1){
  534. margin-top:20rpx;
  535. line-height:50rpx;
  536. font-size:26rpx;
  537. font-weight:900;
  538. }
  539. view:nth-child(2){
  540. line-height:50rpx;
  541. font-size:26rpx;
  542. }
  543. }
  544. .user-button{
  545. padding:0 20rpx;
  546. font-size:28rpx;
  547. min-width:70rpx;
  548. height:50rpx;
  549. line-height:50rpx;
  550. background-color: #0183fa;
  551. color:#fff;
  552. border-radius:60rpx;
  553. text-align: center;
  554. margin:50rpx 20rpx 0 0;
  555. position: relative;
  556. }
  557. .user-button-a{
  558. padding:0 20rpx;
  559. font-size:28rpx;
  560. min-width:70rpx;
  561. height:50rpx;
  562. line-height:50rpx;
  563. // background-color: #0183fa;
  564. color:#0183fa;
  565. border-radius:60rpx;
  566. text-align: center;
  567. margin:50rpx 10rpx 0 0;
  568. position: relative;
  569. .position-img{
  570. position: absolute;
  571. top:10rpx;
  572. left:-20rpx;
  573. width:30rpx;
  574. height:30rpx;
  575. }
  576. }
  577. }
  578. .home-button-box-1{
  579. position: relative;
  580. display: flex;
  581. width: 690rpx;
  582. height: 120rpx;
  583. display: flex;
  584. margin: 20rpx 30rpx 0;
  585. border-radius: 20rpx;
  586. position: relative;
  587. .home-button-img{
  588. display: block;
  589. margin: 20rpx 31rpx 0 36rpx;
  590. height: 80rpx;
  591. width: 80rpx;
  592. }
  593. .home-button-name{
  594. width:230rpx;
  595. line-height: 120rpx;
  596. height: 32rpx;
  597. font-size: 30rpx;
  598. }
  599. .home-button-text{
  600. line-height: 120rpx;
  601. height: 32rpx;
  602. font-size: 30rpx;
  603. color: #999;
  604. }
  605. .home-button-mark{
  606. position: absolute;
  607. top:54rpx;
  608. left:345rpx;
  609. width:14rpx;
  610. height:14rpx;
  611. border-radius:50%;
  612. background-color: #FF3030;
  613. }
  614. }
  615. .home-button-box-2{
  616. display: flex;
  617. width: 690rpx;
  618. height: 120rpx;
  619. display: flex;
  620. margin: 20rpx 30rpx 0;
  621. .home-button-box-min{
  622. width: 335rpx;
  623. display: flex;
  624. border-radius: 20rpx;
  625. .home-button-img{
  626. display: block;
  627. margin: 20rpx 31rpx 0 36rpx;
  628. height: 80rpx;
  629. width: 80rpx;
  630. }
  631. .home-button-min{
  632. .home-button-min-name{
  633. line-height: 32rpx;
  634. height: 32rpx;
  635. font-size: 32rpx;
  636. color: #333;
  637. margin: 20rpx 0 18rpx;
  638. }
  639. .home-button-min-text{
  640. line-height: 28rpx;
  641. height: 28rpx;
  642. font-size: 28rpx;
  643. color: #999;
  644. }
  645. }
  646. }
  647. }
  648. .button-one-box {
  649. position: relative;
  650. z-index: 5;
  651. background: #fff;
  652. width: 690rpx;
  653. height:150rpx;
  654. border-radius: 20rpx;
  655. padding: 13px 0 20px;
  656. overflow: hidden;
  657. // margin: 400rpx 30rpx 0;
  658. margin: 20rpx 30rpx 0;
  659. .button-min {
  660. display: inline-block;
  661. overflow: hidden;
  662. width: 172rpx;
  663. height: 123rpx;
  664. margin-top: 23rpx;
  665. .button-img {
  666. display: block;
  667. width: 80rpx;
  668. height: 80rpx;
  669. margin: 0 auto;
  670. }
  671. .button-name {
  672. margin-top: 15rpx;
  673. height: 28rpx;
  674. line-height: 28rpx;
  675. font-size: 28rpx;
  676. text-align: center;
  677. color: #333;
  678. }
  679. .home-button-mark{
  680. position: absolute;
  681. top:48rpx;
  682. left:112rpx;
  683. width:14rpx;
  684. height:14rpx;
  685. border-radius:50%;
  686. background-color: #FF3030;
  687. }
  688. }
  689. }
  690. .button-two-box {
  691. z-index: 5;
  692. width: 690rpx;
  693. height: 120rpx;
  694. display: flex;
  695. margin: 20rpx 30rpx 0;
  696. .button-big-box {
  697. width: 335rpx;
  698. display: flex;
  699. border-radius: 20rpx;
  700. img {
  701. display: block;
  702. margin: 20rpx 31rpx 0 36rpx;
  703. height: 80rpx;
  704. width: 80rpx;
  705. }
  706. .button-min-box {
  707. view:nth-child(1) {
  708. line-height: 32rpx;
  709. height: 32rpx;
  710. font-size: 32rpx;
  711. color: #333;
  712. margin: 20rpx 0 18rpx;
  713. }
  714. view:nth-child(2) {
  715. line-height: 28rpx;
  716. height: 28rpx;
  717. font-size: 28rpx;
  718. color: #999;
  719. }
  720. }
  721. }
  722. }
  723. .button-three-box-1 {
  724. z-index: 5;
  725. width: 690rpx;
  726. height: 130rpx;
  727. margin: 20rpx 30rpx 0;
  728. .button-big-box {
  729. border-radius: 20rpx;
  730. background-color: #CDE7FF;
  731. display: flex;
  732. img {
  733. display: block;
  734. width: 134rpx;
  735. height: 104rpx;
  736. margin: 23rpx 34rpx 0 30rpx;
  737. }
  738. .button-min-box {
  739. view:nth-child(1) {
  740. line-height: 30rpx;
  741. height: 30rpx;
  742. font-size: 30rpx;
  743. color: #0183FA;
  744. margin: 27rpx 0 15rpx;
  745. }
  746. view:nth-child(2) {
  747. line-height: 26rpx;
  748. height: 26rpx;
  749. font-size: 26rpx;
  750. color: #666666;
  751. }
  752. }
  753. }
  754. }
  755. .button-three-box {
  756. z-index: 5;
  757. width: 690rpx;
  758. height: 130rpx;
  759. margin: 20rpx 30rpx 0;
  760. .button-big-box {
  761. border-radius: 20rpx;
  762. background-color: #FFF0DD;
  763. display: flex;
  764. img {
  765. display: block;
  766. width: 134rpx;
  767. height: 104rpx;
  768. margin: 23rpx 34rpx 0 30rpx;
  769. }
  770. .button-min-box {
  771. view:nth-child(1) {
  772. line-height: 30rpx;
  773. height: 30rpx;
  774. font-size: 30rpx;
  775. color: #FF8C00;
  776. margin: 27rpx 0 15rpx;
  777. }
  778. view:nth-child(2) {
  779. line-height: 26rpx;
  780. height: 26rpx;
  781. font-size: 26rpx;
  782. color: #666666;
  783. }
  784. }
  785. }
  786. }
  787. .scan_btn {
  788. z-index: 10;
  789. position: fixed;
  790. bottom: 210rpx;
  791. right: 0rpx;
  792. width: 140rpx;
  793. height: 140rpx;
  794. }
  795. }
  796. }
  797. </style>