teacherHome.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  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. //安全检查
  295. uni.navigateTo({
  296. url: "/pages_safetyCheck/views/safetyCheck",
  297. });
  298. /* if(this.identityData){
  299. uni.navigateTo({
  300. url: "/pages_safetyCheck/views/safetyCheck",
  301. });
  302. }else{
  303. uni.showToast({
  304. mask: true,
  305. icon: "none",
  306. position: "center",
  307. title: '您不是校/院级管理员或督导组成员,无法使用该功能.',
  308. duration: 2000
  309. });
  310. } */
  311. } else if (type == 'securityExamination') {
  312. //安全考试
  313. uni.navigateTo({
  314. url: "/pages_basics/views/deviceCageSitePage?pageType=3",
  315. });
  316. } else if (type == 'securityAdmittance') {
  317. //安全准入
  318. uni.navigateTo({
  319. url: "/pages_manage/views/accessQualification/accessQualification",
  320. });
  321. } else if (type == 'hierarchicalControl') {
  322. //分级管控
  323. uni.navigateTo({
  324. url: "/pages_basics/views/gradingControl/gradingControl",
  325. });
  326. } else if (type == 'securityResponsibility') {
  327. //安全责任
  328. uni.navigateTo({
  329. url: "/pages_basics/views/deviceCageSitePage?pageType=4",
  330. });
  331. } else if (type == 'deviceManagement') {
  332. //设备管理
  333. uni.navigateTo({
  334. url: "/pages_basics/views/deviceCageSitePage?pageType=1",
  335. });
  336. } else if (type == 'emergencyDisposal') {
  337. //应急处置
  338. // uni.navigateTo({
  339. // url: "/pages_manage/views/emergencyEvacuationBig",
  340. // });
  341. uni.navigateTo({
  342. url: "/pages_manage/views/emergencyEvacuationSubList",
  343. });
  344. } else if (type == 'cageSiteManagement') {
  345. //笼位管理
  346. uni.navigateTo({
  347. url: "/pages_basics/views/deviceCageSitePage?pageType=2",
  348. });
  349. } else if (type == 'snapshot') {
  350. //随手拍
  351. uni.navigateTo({
  352. url: "/pages_safetyCheck/views/snapshotManage/snapshotList",
  353. });
  354. /* uni.navigateTo({
  355. url: "/pages_safetyExamine/views/snapshotManage/snapshotAdd",
  356. }); */
  357. } else if (type == 'remoteDoorOpening') {
  358. //远程开门
  359. uni.navigateTo({
  360. url: "/pages_manage/views/accessControl/remoteOpen",
  361. });
  362. } else if (type == 'leaveCheckPupilTeacher') {
  363. //离开检查
  364. uni.navigateTo({
  365. url: "/pages_basics/views/photoInspection",
  366. });
  367. } else if (type == 'chemicalsManagement') {
  368. //化学品管控
  369. } else if (type == 'entryAndExitRecord') {
  370. //进出记录
  371. uni.navigateTo({
  372. url: "/pages_basics/views/record/index",
  373. });
  374. } else if (type == 'accessControlAuthorization') {
  375. //门禁授权
  376. uni.navigateTo({
  377. url: "/pages_manage/views/accessControl/empowerOpen",
  378. });
  379. }else if (type == 'riskEarlyWarning') {
  380. //风险预警
  381. uni.navigateTo({
  382. url: "/pages_basics/views/earlyWarningManage/earlyWarningList",
  383. });
  384. }
  385. },
  386. /* 扫一扫*/
  387. saoCode() {
  388. scanCode('home');
  389. },
  390. //扫码查询-化学品基本信息
  391. async chemicalAppletSelectStockInfo(code) {
  392. const {
  393. data
  394. } = await chemicalAppletSelectStockInfo({tagCode:code});
  395. if (data.code == 200) {
  396. if(data.data){
  397. data.data.code = code;
  398. //化学品信息
  399. uni.navigateTo({
  400. url: "/pages_basics/views/chemicalsInfo/chemicalsInfo?item=" + encodeURIComponent(JSON.stringify(data.data)),
  401. });
  402. }else{
  403. uni.showToast({
  404. mask: true,
  405. icon: "none",
  406. position: "center",
  407. title: '未找到相关信息,请扫描正确的二维码',
  408. duration: 2000
  409. });
  410. }
  411. }
  412. },
  413. //查询是否是同位素实验并且有签退
  414. async laboratorySubPassOutIsotopeSubSign(subId,result) {
  415. const {
  416. data
  417. } = await laboratorySubPassOutIsotopeSubSign({subId:subId});
  418. if (data.code == 200) {
  419. if(data.data.isotope){
  420. let obj = {
  421. subId:subId,
  422. subName:data.data.subName,
  423. passOutId:data.data.passOutId,
  424. }
  425. uni.navigateTo({
  426. url: "/pages_basics/views/photoInspection?item=" + encodeURIComponent(JSON.stringify(obj)),
  427. });
  428. }else{
  429. uni.reLaunch({
  430. url: '/pages/views/saoCode/saoCode?q=' + encodeURIComponent(result)
  431. });
  432. }
  433. }
  434. },
  435. }
  436. }
  437. </script>
  438. <style lang="stylus" scoped>
  439. @import '@/api/request/imagesUrl.styl';
  440. .teacherHome {
  441. width:100%;
  442. height:100%;
  443. flex: 1;
  444. display: flex;
  445. flex-direction: column;
  446. overflow: hidden;
  447. position: relative;
  448. .data-board {
  449. flex: 1;
  450. display: flex;
  451. flex-direction: column;
  452. overflow: hidden;
  453. }
  454. .top-back-img {
  455. position: absolute;
  456. top: 0;
  457. left: 0;
  458. width: 750rpx;
  459. height: 539rpx;
  460. background: url($imagesUrl+'home/img_sy_bg@1x.png') no-repeat;
  461. background-size:100%;
  462. background-repeat: no-repeat;
  463. z-index:0;
  464. .position-img {
  465. z-index: 5;
  466. position: absolute;
  467. left: 16rpx;
  468. top: 16rpx;
  469. width: 400rpx;
  470. height: 88rpx;
  471. }
  472. .position-data-button {
  473. z-index: 5;
  474. position: fixed;
  475. right: 0;
  476. top: 180rpx;
  477. width: 130rpx;
  478. height: 109rpx;
  479. /* line-height: 50rpx;
  480. background-color: #0183fa;
  481. color: #fff;
  482. font-size: 28rpx;
  483. text-align: center;
  484. border-top-left-radius: 30rpx;
  485. border-bottom-left-radius: 30rpx; */
  486. }
  487. }
  488. .home-page {
  489. z-index:1;
  490. // flex: 1;
  491. // display: flex;
  492. // flex-direction: column;
  493. overflow-y: scroll;
  494. overflow-x: hidden;
  495. padding-bottom:120rpx;
  496. .top-page-title {
  497. text-align: center;
  498. font-size: 28rpx;
  499. background-color: #0183FA;
  500. color: #fff;
  501. }
  502. .user-max-box{
  503. z-index: 5;
  504. display: flex;
  505. background: #fff;
  506. width: 690rpx;
  507. height:150rpx;
  508. border-radius: 20rpx;
  509. overflow: hidden;
  510. margin: 370rpx 30rpx 0;
  511. .user-img-box{
  512. width:114rpx;
  513. height:114rpx;
  514. border-radius:50%;
  515. border:1rpx solid #0183fa;
  516. margin:18rpx 20rpx 18rpx 15rpx;
  517. .user-img{
  518. width:110rpx;
  519. height:110rpx;
  520. border-radius:50%;
  521. border:1rpx solid #fff;
  522. }
  523. }
  524. .user-name-box{
  525. width:220rpx;
  526. margin-right:20rpx;
  527. view:nth-child(1){
  528. margin-top:20rpx;
  529. line-height:50rpx;
  530. font-size:26rpx;
  531. font-weight:900;
  532. }
  533. view:nth-child(2){
  534. line-height:30rpx;
  535. font-size:26rpx;
  536. }
  537. }
  538. .user-button{
  539. padding:0 20rpx;
  540. font-size:28rpx;
  541. min-width:70rpx;
  542. height:50rpx;
  543. line-height:50rpx;
  544. background-color: #0183fa;
  545. color:#fff;
  546. border-radius:60rpx;
  547. text-align: center;
  548. margin:50rpx 20rpx 0 0;
  549. position: relative;
  550. }
  551. .user-button-a{
  552. padding:0 20rpx;
  553. font-size:28rpx;
  554. min-width:70rpx;
  555. height:50rpx;
  556. line-height:50rpx;
  557. // background-color: #0183fa;
  558. color:#0183fa;
  559. border-radius:60rpx;
  560. text-align: center;
  561. margin:50rpx 10rpx 0 0;
  562. position: relative;
  563. .position-img{
  564. position: absolute;
  565. top:10rpx;
  566. left:-20rpx;
  567. width:30rpx;
  568. height:30rpx;
  569. }
  570. }
  571. }
  572. .home-button-box-1{
  573. position: relative;
  574. display: flex;
  575. width: 690rpx;
  576. height: 120rpx;
  577. display: flex;
  578. margin: 20rpx 30rpx 0;
  579. border-radius: 20rpx;
  580. position: relative;
  581. .home-button-img{
  582. display: block;
  583. margin: 20rpx 31rpx 0 36rpx;
  584. height: 80rpx;
  585. width: 80rpx;
  586. }
  587. .home-button-name{
  588. width:230rpx;
  589. line-height: 120rpx;
  590. height: 32rpx;
  591. font-size: 30rpx;
  592. }
  593. .home-button-text{
  594. line-height: 120rpx;
  595. height: 32rpx;
  596. font-size: 30rpx;
  597. color: #999;
  598. }
  599. .home-button-mark{
  600. position: absolute;
  601. top:54rpx;
  602. left:345rpx;
  603. width:14rpx;
  604. height:14rpx;
  605. border-radius:50%;
  606. background-color: #FF3030;
  607. }
  608. }
  609. .home-button-box-2{
  610. display: flex;
  611. width: 690rpx;
  612. height: 120rpx;
  613. display: flex;
  614. margin: 20rpx 30rpx 0;
  615. .home-button-box-min{
  616. width: 335rpx;
  617. display: flex;
  618. border-radius: 20rpx;
  619. .home-button-img{
  620. display: block;
  621. margin: 20rpx 31rpx 0 36rpx;
  622. height: 80rpx;
  623. width: 80rpx;
  624. }
  625. .home-button-min{
  626. .home-button-min-name{
  627. line-height: 32rpx;
  628. height: 32rpx;
  629. font-size: 32rpx;
  630. color: #333;
  631. margin: 20rpx 0 18rpx;
  632. }
  633. .home-button-min-text{
  634. line-height: 28rpx;
  635. height: 28rpx;
  636. font-size: 28rpx;
  637. color: #999;
  638. }
  639. }
  640. }
  641. }
  642. .button-one-box {
  643. position: relative;
  644. z-index: 5;
  645. background: #fff;
  646. width: 690rpx;
  647. height:150rpx;
  648. border-radius: 20rpx;
  649. padding: 13px 0 20px;
  650. overflow: hidden;
  651. // margin: 400rpx 30rpx 0;
  652. margin: 20rpx 30rpx 0;
  653. .button-min {
  654. display: inline-block;
  655. overflow: hidden;
  656. width: 172rpx;
  657. height: 123rpx;
  658. margin-top: 23rpx;
  659. .button-img {
  660. display: block;
  661. width: 80rpx;
  662. height: 80rpx;
  663. margin: 0 auto;
  664. }
  665. .button-name {
  666. margin-top: 15rpx;
  667. height: 28rpx;
  668. line-height: 28rpx;
  669. font-size: 28rpx;
  670. text-align: center;
  671. color: #333;
  672. }
  673. .home-button-mark{
  674. position: absolute;
  675. top:48rpx;
  676. left:112rpx;
  677. width:14rpx;
  678. height:14rpx;
  679. border-radius:50%;
  680. background-color: #FF3030;
  681. }
  682. }
  683. }
  684. .button-two-box {
  685. z-index: 5;
  686. width: 690rpx;
  687. height: 120rpx;
  688. display: flex;
  689. margin: 20rpx 30rpx 0;
  690. .button-big-box {
  691. width: 335rpx;
  692. display: flex;
  693. border-radius: 20rpx;
  694. img {
  695. display: block;
  696. margin: 20rpx 31rpx 0 36rpx;
  697. height: 80rpx;
  698. width: 80rpx;
  699. }
  700. .button-min-box {
  701. view:nth-child(1) {
  702. line-height: 32rpx;
  703. height: 32rpx;
  704. font-size: 32rpx;
  705. color: #333;
  706. margin: 20rpx 0 18rpx;
  707. }
  708. view:nth-child(2) {
  709. line-height: 28rpx;
  710. height: 28rpx;
  711. font-size: 28rpx;
  712. color: #999;
  713. }
  714. }
  715. }
  716. }
  717. .button-three-box-1 {
  718. z-index: 5;
  719. width: 690rpx;
  720. height: 130rpx;
  721. margin: 20rpx 30rpx 0;
  722. .button-big-box {
  723. border-radius: 20rpx;
  724. background-color: #CDE7FF;
  725. display: flex;
  726. img {
  727. display: block;
  728. width: 134rpx;
  729. height: 104rpx;
  730. margin: 23rpx 34rpx 0 30rpx;
  731. }
  732. .button-min-box {
  733. view:nth-child(1) {
  734. line-height: 30rpx;
  735. height: 30rpx;
  736. font-size: 30rpx;
  737. color: #0183FA;
  738. margin: 27rpx 0 15rpx;
  739. }
  740. view:nth-child(2) {
  741. line-height: 26rpx;
  742. height: 26rpx;
  743. font-size: 26rpx;
  744. color: #666666;
  745. }
  746. }
  747. }
  748. }
  749. .button-three-box {
  750. z-index: 5;
  751. width: 690rpx;
  752. height: 130rpx;
  753. margin: 20rpx 30rpx 0;
  754. .button-big-box {
  755. border-radius: 20rpx;
  756. background-color: #FFF0DD;
  757. display: flex;
  758. img {
  759. display: block;
  760. width: 134rpx;
  761. height: 104rpx;
  762. margin: 23rpx 34rpx 0 30rpx;
  763. }
  764. .button-min-box {
  765. view:nth-child(1) {
  766. line-height: 30rpx;
  767. height: 30rpx;
  768. font-size: 30rpx;
  769. color: #FF8C00;
  770. margin: 27rpx 0 15rpx;
  771. }
  772. view:nth-child(2) {
  773. line-height: 26rpx;
  774. height: 26rpx;
  775. font-size: 26rpx;
  776. color: #666666;
  777. }
  778. }
  779. }
  780. }
  781. .scan_btn {
  782. z-index: 10;
  783. position: fixed;
  784. bottom: 210rpx;
  785. right: 0rpx;
  786. width: 140rpx;
  787. height: 140rpx;
  788. }
  789. }
  790. }
  791. </style>