UserInfoCard.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. <!-- 用户信息卡片 -->
  2. <template>
  3. <div class="user-info-card">
  4. <div class="top-title-box">
  5. <p>用户信息</p>
  6. <p><span class="el-icon-coin"></span><span> {{userInfo.totalPoints?userInfo.totalPoints:0}} </span>积分</p>
  7. </div>
  8. <div class="user-info-max-box">
  9. <!--用户信息-->
  10. <div class="left-max-box">
  11. <div class="left-min-box">
  12. <p>姓名</p>
  13. <p>{{userInfo.userName}}</p>
  14. </div>
  15. <div class="left-min-box">
  16. <p>学工号</p>
  17. <p>{{userInfo.account}}</p>
  18. </div>
  19. <div class="left-min-box">
  20. <p>类型</p>
  21. <p>{{userInfo.userType == 2?userInfo.educationName:(userInfo.userType == 1?'教职工':'系统用户')}}</p>
  22. </div>
  23. <div class="left-min-box">
  24. <p>所属单位</p>
  25. <p>{{userInfo.deptName}}</p>
  26. </div>
  27. <div class="left-sub-min-box" v-if="userInfo.userType == 2">
  28. <p class="name-p">实验室信息</p>
  29. <p class="text-p" v-if="userInfo.bound">{{userInfo.labName}}</p>
  30. <p class="text-p" v-if="!userInfo.bound&&userInfo.educationType == 1">暂无绑定实验室</p>
  31. <p class="text-p" v-if="!userInfo.bound&&userInfo.educationType == 2">{{userInfo.isFinishExam?'暂无绑定实验室':'请先完成入学考试'}}</p>
  32. <p class="button-p" v-if="(!userInfo.bound&&userInfo.educationType == 1)||(!userInfo.bound&&userInfo.educationType == 2&&userInfo.isFinishExam)" @click="shadeButton(4)">去绑定</p>
  33. <p class="sub-name-p" v-if="userInfo.bound">{{userInfo.bindStatus}}</p>
  34. </div>
  35. </div>
  36. <!--进度-->
  37. <div class="center-max-box">
  38. <div class="center-title-box scrollbar-x-box">
  39. <p>{{userInfo.gradeRange}}</p>
  40. <p :style="'color:'+userInfo.levelColor+';'" v-if="userInfo.levelName">{{userInfo.levelName}}</p>
  41. <p v-if="userInfo.typeName">{{userInfo.typeName}}</p>
  42. </div>
  43. <div class="center-data-box">
  44. <div class="progress-max-box" v-if="userInfo.totalStudyHours>0">
  45. <el-progress
  46. :stroke-width="12" :format="format"
  47. :percentage="userInfo.studyHourRate">
  48. </el-progress>
  49. <div class="progress-min-box">
  50. <p>当前学年学时完成进度</p>
  51. <p>{{userInfo.completedStudyHours}} / {{userInfo.totalStudyHours}} 学时</p>
  52. </div>
  53. </div>
  54. <div class="center-bottom-box">
  55. <div class="center-bottom-min-box">
  56. <p>{{userInfo.totalStudyHours>0?'学时完成度':'学时要求'}}</p>
  57. <p>{{userInfo.totalStudyHours>0?userInfo.studyHourRate+'%':'无'}}</p>
  58. </div>
  59. <div class="center-bottom-min-box">
  60. <p>目标考试</p>
  61. <p>{{userInfo.targetExamName?userInfo.targetExamName:'无'}}</p>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <!--任务-->
  67. <div class="right-max-box">
  68. <p class="right-title-p">当前学年任务状态</p>
  69. <div class="right-big-box">
  70. <p>考试状态</p>
  71. <p :class="!userInfo.examPassStatus||userInfo.examPassStatus==1?'':(userInfo.examPassStatus==2?'color-a':(userInfo.examPassStatus==3||userInfo.examPassStatus==4?'color-b':''))">
  72. {{!userInfo.examPassStatus?'暂无':(userInfo.examPassStatus==1?'考试中':((userInfo.examPassStatus==2?'已通过':(userInfo.examPassStatus==3?'未通过':(userInfo.examPassStatus==4?'缺考':'')))))}}
  73. </p>
  74. </div>
  75. <div class="right-big-box">
  76. <p>证书状态</p>
  77. <p :class="!userInfo.certificateStatus?'':(userInfo.certificateStatus==1?'color-a':(userInfo.certificateStatus==2||userInfo.certificateStatus==3||userInfo.certificateStatus==4?'color-b':''))">
  78. {{!userInfo.certificateStatus?'暂无':(userInfo.certificateStatus==1?'已通过':(userInfo.certificateStatus==2?'失效':(userInfo.certificateStatus==3?'已撤销':(userInfo.certificateStatus==4?'未签发':''))))}}
  79. </p>
  80. </div>
  81. <div class="right-big-box" v-if="userInfo.approvalStatus!=3&&userInfo.userType == 2">
  82. <p>审批状态</p>
  83. <p :class="userInfo.approvalStatus==0?'':(userInfo.approvalStatus==1?'color-a':(userInfo.approvalStatus==2?'color-b':''))">
  84. {{userInfo.bound&&userInfo.approvalStatus==0?'待审批':(userInfo.approvalStatus==1?'已通过':(userInfo.approvalStatus==2?'未通过':'待绑定'))}}
  85. </p>
  86. </div>
  87. </div>
  88. </div>
  89. <!--绑定实验室弹窗-->
  90. <div class="shade-max-big-box" v-if="shadeType == 1 || shadeType == 2">
  91. <div class="shade-big-box" v-if="shadeType == 1">
  92. <div class="shade-title-box">
  93. <p>绑定实验室</p>
  94. <p class="el-icon-close" v-if="shadeFormData.offType" @click="shadeButton(6)"></p>
  95. </div>
  96. <div class="shade-content-box">
  97. <el-form :model="shadeFormData" class="form-box" ref="shadeForm"
  98. :inline="true" :rules="rules" style="width:100%;">
  99. <div v-if="!shadeFormData.isEnter">
  100. <el-form-item label="" prop="subId" label-width="0">
  101. <el-select
  102. style="width:760px;"
  103. v-model="shadeFormData.subId"
  104. filterable
  105. remote
  106. reserve-keyword
  107. @change="subChange"
  108. placeholder="输入实验室名称、房间或楼栋关键词进行搜索"
  109. :remote-method="subSelectList">
  110. <el-option
  111. v-for="item in subOptions"
  112. :key="item.subId"
  113. :label="item.deptName+' - '+item.subName+(item.roomNum?'('+item.roomNum+')':'')+'- '+item.buildName+item.floorName"
  114. :value="item.subId">
  115. </el-option>
  116. </el-select>
  117. </el-form-item>
  118. </div>
  119. <p v-if="!shadeFormData.isEnter" class="shade-text-p">此处请选择需要后续进入的科研实验室的名称,输入实验室名称、房间号或楼栋关键词,再从检索结果中选择目标实验室。</p>
  120. <!--实验室信息-->
  121. <div class="shade-sub-max-box" v-if="shadeFormData.subId&&subData.subName&&!shadeFormData.isEnter">
  122. <div class="shade-sub-big-box">
  123. <div class="shade-sub-box">
  124. <p>实验室名称</p>
  125. <p>{{subData.subName}}{{subData.roomNum?'('+subData.roomNum+')':''}}</p>
  126. </div>
  127. <div class="shade-sub-box-1">
  128. <p>实验室类型</p>
  129. <p>{{subData.moldName}}</p>
  130. </div>
  131. </div>
  132. <div class="shade-sub-big-box">
  133. <div class="shade-sub-box">
  134. <p>负责人</p>
  135. <p>{{subData.adminName}}</p>
  136. </div>
  137. <div class="shade-sub-box-1">
  138. <p>实验室分级</p>
  139. <p :style="'color:'+subData.classLevelColor+';'">{{subData.classLevelName}}</p>
  140. </div>
  141. </div>
  142. <div class="shade-sub-big-box">
  143. <div class="shade-sub-box">
  144. <p>所属学院</p>
  145. <p>{{subData.deptName}}</p>
  146. </div>
  147. <div class="shade-sub-box-1">
  148. <p>实验室分类</p>
  149. <p>{{subData.classTypeNames}}</p>
  150. </div>
  151. </div>
  152. <div class="shade-sub-big-box">
  153. <div class="shade-sub-box">
  154. <p>所在位置</p>
  155. <p>{{subData.buildName}}{{subData.floorName}}</p>
  156. </div>
  157. </div>
  158. </div>
  159. <!--本科生选项-->
  160. <div style="margin-top:20px;" v-if="userInfo.educationType == 2">
  161. <el-form-item label="" prop="reason" label-width="0">
  162. <el-input
  163. type="textarea"
  164. style="width:760px;"
  165. :autosize="{ minRows: 2, maxRows: 2}"
  166. placeholder="请填写进入实验室原因(必填)"
  167. maxLength="100"
  168. resize="none"
  169. v-model="shadeFormData.reason">
  170. </el-input>
  171. </el-form-item>
  172. <p class="shade-text-p">毕业论文或毕业设计,科创等相关需要在具体的实验室开展业务的情况可申请绑定实验室,绑定完毕后需要完成对应的分级考试。</p>
  173. </div>
  174. <!--研究生选项-->
  175. <div class="checkbox-box">
  176. <el-form-item label="" label-width="0">
  177. <el-checkbox v-model="shadeFormData.isEnter">无需进入实验室</el-checkbox>
  178. <p class="checkbox-text-p">人文、体育等相关学院无需进入实验室的新研究生可选择此项,选择后学时要求为4小时,需通过应知应会考试。</p>
  179. </el-form-item>
  180. </div>
  181. <div class="shade-check-box">
  182. <el-form-item label="" prop="checkType" label-width="0">
  183. <el-checkbox
  184. @click.native.prevent="shadeButton(2)"
  185. v-model="shadeFormData.checkType">我已阅读并同意</el-checkbox>
  186. <span style="color:#0183fa;font-size:14px;cursor: pointer" @click="shadeButton(2)">《新生绑定实验室须知及责任说明》</span>
  187. </el-form-item>
  188. </div>
  189. </el-form>
  190. </div>
  191. <div class="shade-button-box">
  192. <p></p>
  193. <p class="out-button" v-if="shadeFormData.offType" @click="shadeButton(6)">取消</p>
  194. <p class="submit-button" @click="shadeButton(1)">确认绑定</p>
  195. </div>
  196. </div>
  197. <div class="shade-big-box" v-if="shadeType == 2">
  198. <div class="shade-title-box">
  199. <p>新生绑定实验室须知及责任说明</p>
  200. </div>
  201. <div class="shade-content-box-2 scrollbar-box">
  202. <p>1. 保证进入的实验室为导师实际使用实验室或属于当前实验室所属课题组。</p>
  203. <p>2. 研究生期间涉及到操作实验室内重要危险源,必须绑定实验室。</p>
  204. <p></p>
  205. </div>
  206. <div class="shade-button-box-2">
  207. <p></p>
  208. <p @click="shadeButton(33)">取消</p>
  209. <p @click="shadeButton(3)">我已知晓</p>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </template>
  215. <script>
  216. import {
  217. examElLabEduRelationBindStatus,examElLabEduRelationLabLists,examElLabEduRelationBind,
  218. examElLabEduRelationLabDetail,
  219. } from "@/api/safetyEducationExaminationNew/index";
  220. export default {
  221. name: 'UserInfoCard',
  222. data() {
  223. const validateData5 = (rule, value, callback) => {
  224. console.log('value',value)
  225. if (!value) {
  226. callback(new Error('请阅读并确认勾选《新生绑定实验室须知及责任说明》'))
  227. } else {
  228. callback()
  229. }
  230. }
  231. return {
  232. textName:'测试测试测试,假数据记得改,记得问高部长要',
  233. userInfo: {
  234. userType:'',
  235. userName:'',
  236. account:'',
  237. educationName:'',
  238. deptName:'',
  239. labName:'',
  240. bound:'',
  241. approvalStatus:'',
  242. certificateStatus:'',
  243. examPassStatus:'',
  244. gradeRange:'',
  245. typeName:'',
  246. completedStudyHours:'',
  247. totalStudyHours:'',
  248. studyHourRate:'',
  249. targetExamName:'',
  250. },
  251. shadeFormData:{
  252. subId:null,
  253. reason:'',
  254. isEnter:false,
  255. checkType:false,
  256. },
  257. rules:{
  258. subId: [
  259. { required: true, message: "请选择实验室", trigger: "blur" },
  260. { required: true, message: "请选择实验室", validator: this.spaceJudgment, trigger: "blur" }
  261. ],
  262. reason: [
  263. { required: true, message: "请填写进入实验室原因", trigger: "blur" },
  264. { required: true, message: "请填写进入实验室原因", validator: this.spaceJudgment, trigger: "blur" }
  265. ],
  266. checkType: [
  267. { required: true, message: "请阅读并确认勾选《新生绑定实验室须知及责任说明》", trigger: "blur" },
  268. { validator: validateData5, trigger: 'blur' }
  269. ],
  270. },
  271. subData:{},
  272. subOptions:[],
  273. //弹层
  274. shadeType:null,
  275. textDetail:'',
  276. }
  277. },
  278. created() {
  279. },
  280. mounted() {
  281. this.examElLabEduRelationBindStatus();
  282. },
  283. methods: {
  284. //进度条去除描述
  285. format(percentage) {
  286. return '';
  287. },
  288. //用户信息卡
  289. examElLabEduRelationBindStatus(){
  290. examElLabEduRelationBindStatus({}).then(response => {
  291. this.$set(this, 'userInfo', response.data)
  292. // if(!response.data.bound&&response.data.educationType == 1){
  293. // this.shadeButton(5);
  294. // }
  295. if(response.data.isPopup){
  296. this.shadeButton(5);
  297. }
  298. })
  299. },
  300. //实验室懒加载
  301. subSelectList(query) {
  302. if (query !== '' && query.length>1) {
  303. examElLabEduRelationLabLists({searchValue:query}).then(response => {
  304. this.subOptions = response.data;
  305. });
  306. } else {
  307. this.subOptions = [];
  308. }
  309. },
  310. //关闭弹层
  311. shadeButton(type){
  312. let self = this;
  313. if(type == 1){
  314. //提交
  315. this.$refs["shadeForm"].validate(valid => {
  316. if (valid) {
  317. this.$confirm('确认提交?', "提示", {
  318. confirmButtonText: "确认",
  319. cancelButtonText: "取消",
  320. type: "warning"
  321. }).then(function() {
  322. }).then(() => {
  323. self.examElLabEduRelationBind();
  324. }).catch(() => {});
  325. }
  326. })
  327. }else if(type == 2){
  328. //查看通知
  329. this.$set(this,'shadeType',2);
  330. }else if(type == 3 || type == 33){
  331. if(type == 3){
  332. //关闭通知
  333. this.$set(this.shadeFormData,'checkType',true);
  334. this.$set(this,'shadeType',1);
  335. }else if(type == 33){
  336. //关闭通知
  337. this.$set(this.shadeFormData,'checkType',false);
  338. this.$set(this,'shadeType',1);
  339. }
  340. }else if(type == 4||type == 5){
  341. //开启
  342. this.$set(this,'shadeFormData',{
  343. subId:null,
  344. reason:'',
  345. isEnter:false,
  346. checkType:false,
  347. offType:type == 4?true:false,
  348. });
  349. this.$set(this,'shadeType',1);
  350. }else if(type == 6){
  351. //关闭
  352. this.$set(this,'shadeType',null);
  353. }
  354. },
  355. //选中实验室
  356. subChange(val){
  357. const selectedItem = this.subOptions.find(option => option.subId === val);
  358. this.$set(this,'subData',selectedItem);
  359. },
  360. examElLabEduRelationBind(){
  361. let obj = {
  362. subId:this.shadeFormData.subId?this.shadeFormData.subId:'',
  363. reason:this.shadeFormData.reason?this.shadeFormData.reason:'',
  364. isEnter:this.shadeFormData.isEnter?'0':'1'
  365. };
  366. examElLabEduRelationBind(obj).then(response => {
  367. this.msgSuccess(response.message);
  368. this.$set(this,'shadeType',null);
  369. this.examElLabEduRelationBindStatus();
  370. });
  371. },
  372. },
  373. }
  374. </script>
  375. <style scoped lang="scss">
  376. .user-info-card {
  377. background: #fff;
  378. /*border-radius: 6px;*/
  379. padding: 16px 20px;
  380. margin-bottom: 12px;
  381. /*box-shadow: 0 1px 4px rgba(0,0,0,0.06);*/
  382. background: rgba(255, 255, 255, 0.95);
  383. border: 1px solid #e8edf5;
  384. border-radius: 16px;
  385. box-shadow: 0 4px 20px rgba(37, 50, 74, 0.06);
  386. .top-title-box{
  387. display: flex;
  388. p{
  389. flex:1;
  390. line-height:20px;
  391. }
  392. p:nth-child(1){
  393. font-size:16px;
  394. font-weight:700;
  395. }
  396. p:nth-child(2){
  397. text-align: right;
  398. font-weight:700;
  399. color:#0183fa;
  400. margin-right: 10px;
  401. font-size:16px;
  402. span{
  403. font-size:18px;
  404. }
  405. }
  406. }
  407. .user-info-max-box{
  408. display: flex;
  409. margin-top:20px;
  410. .left-max-box{
  411. width:560px;
  412. height:260px;
  413. /*border-radius:6px;*/
  414. /*border:1px solid #dedede;*/
  415. /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  416. padding:20px 20px 0 20px;
  417. background: linear-gradient(180deg, #fff, #f7faff);
  418. border: 1px solid #eaf0f8;
  419. border-radius: 14px;
  420. .left-min-box:nth-child(odd){
  421. margin-right:20px;
  422. }
  423. .left-min-box{
  424. display: inline-block;
  425. overflow:hidden;
  426. width:248px;
  427. margin-bottom:10px;
  428. p{
  429. line-height:25px;
  430. }
  431. p:nth-child(1){
  432. font-size:12px;
  433. color:#666;
  434. }
  435. p:nth-child(2){
  436. font-size:14px;
  437. font-weight:700;
  438. display:block;
  439. overflow:hidden;
  440. text-overflow:ellipsis;
  441. white-space:nowrap;
  442. }
  443. p:nth-child(3){
  444. font-size:16px;
  445. font-weight:700;
  446. color: #0183fa;
  447. cursor: pointer;
  448. }
  449. }
  450. .left-sub-min-box{
  451. display: inline-block;
  452. overflow:hidden;
  453. width:248px;
  454. margin-bottom:15px;
  455. p{
  456. line-height:30px;
  457. }
  458. .name-p{
  459. font-size:14px;
  460. color:#666;
  461. }
  462. .text-p{
  463. font-size:14px;
  464. font-weight:700;
  465. display:block;
  466. overflow:hidden;
  467. text-overflow:ellipsis;
  468. white-space:nowrap;
  469. }
  470. .button-p{
  471. font-size:16px;
  472. font-weight:700;
  473. color: #0183fa;
  474. cursor: pointer;
  475. }
  476. .sub-name-p{
  477. font-size:16px;
  478. font-weight:700;
  479. color: #0183fa;
  480. }
  481. }
  482. }
  483. .center-max-box{
  484. width:430px;
  485. height:260px;
  486. /*border-radius:6px;*/
  487. /*border:1px solid #dedede;*/
  488. /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  489. padding:20px;
  490. margin:0 20px;
  491. background: linear-gradient(180deg, #fff, #f7faff);
  492. border: 1px solid #eaf0f8;
  493. border-radius: 14px;
  494. .center-title-box{
  495. height:50px;
  496. p{
  497. color: #3978e6;
  498. background: #eef4ff;
  499. display: inline-block;
  500. /*border:1px solid #999;*/
  501. /*color:#0183fa;*/
  502. /*border-radius:6px;*/
  503. border-radius:99px;
  504. padding: 0 15px;
  505. height:32px;
  506. line-height:32px;
  507. margin-right:10px;
  508. font-size:14px;
  509. font-weight:700;
  510. }
  511. .check-title-p{
  512. /*color:#fff;*/
  513. /*border:1px solid #0183fa;*/
  514. /*background-color: #0183fa;*/
  515. }
  516. }
  517. .center-data-box{
  518. .progress-max-box ::v-deep .el-progress-bar{
  519. padding:0;
  520. }
  521. .progress-max-box{
  522. height:70px;
  523. .progress-min-box{
  524. display: flex;
  525. p{
  526. font-size:14px;
  527. font-weight:700;
  528. line-height:50px;
  529. }
  530. p:nth-child(1){
  531. flex:1;
  532. }
  533. }
  534. }
  535. .center-bottom-box{
  536. display: flex;
  537. .center-bottom-min-box:nth-child(1){
  538. margin-right:10px;
  539. }
  540. .center-bottom-min-box{
  541. /*background-color: rgba(1,131,250,0.1);*/
  542. border: 1px solid #e5edf8;
  543. background-color: #f7faff;;
  544. padding:10px 20px;
  545. border-radius:6px;
  546. width:188px;
  547. p{
  548. line-height: 30px;
  549. }
  550. p:nth-child(1){
  551. font-size:14px;
  552. }
  553. p:nth-child(2){
  554. font-size:14px;
  555. line-height:20px;
  556. color:#60708a;
  557. }
  558. }
  559. }
  560. }
  561. }
  562. .right-max-box{
  563. flex:1;
  564. height:260px;
  565. /*border-radius:6px;*/
  566. /*border:1px solid #dedede;*/
  567. /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  568. padding:20px;
  569. background: linear-gradient(180deg, #fff, #f7faff);
  570. border: 1px solid #eaf0f8;
  571. border-radius: 14px;
  572. .right-title-p{
  573. font-size:14px;
  574. font-weight:700;
  575. line-height:30px;
  576. margin-bottom:10px;
  577. }
  578. .right-big-box{
  579. border-radius: 10px;
  580. background: #f7f9fd;
  581. border: 1px solid #e8eef9;
  582. /*background-color: #E9E9E9;*/
  583. /*border-radius:6px;*/
  584. margin-bottom:10px;
  585. display: flex;
  586. height: 40px;
  587. padding:0 20px;
  588. p:nth-child(1){
  589. flex:1;
  590. line-height:40px;
  591. font-size:14px;
  592. }
  593. p:nth-child(2){
  594. width:70px;
  595. height:24px;
  596. line-height:24px;
  597. margin:7px 0 0 0;
  598. text-align: center;
  599. font-size:14px;
  600. border-radius:15px;
  601. background-color: #EBF0F5;
  602. }
  603. .color-a{
  604. background-color: #E6F5F0 !important;;
  605. color:#4D9775 !important;
  606. }
  607. .color-b{
  608. background-color: #EBCACE !important;;
  609. color:#E15263 !important;;
  610. }
  611. }
  612. }
  613. .min-height-box{
  614. height:170px !important;
  615. }
  616. }
  617. .shade-max-big-box{
  618. z-index:100;
  619. position: fixed;
  620. top:0;
  621. left:0;
  622. width:100%;
  623. height:100%;
  624. background-color: rgba(0,0,0,0.4);
  625. display: flex; /* 开启 Flex 布局 */
  626. justify-content: center; /* 水平居中 */
  627. align-items: center; /* 垂直居中 */
  628. .shade-big-box{
  629. width:800px;
  630. min-height:400px;
  631. border-radius:6px;
  632. background-color: #fff;
  633. position: relative;
  634. .shade-title-box{
  635. display: flex;
  636. p{
  637. line-height: 60px;
  638. }
  639. p:nth-child(1){
  640. flex:1;
  641. padding:0 20px;
  642. }
  643. p:nth-child(2){
  644. font-size:24px;
  645. color:#666;
  646. padding:0 20px;
  647. cursor: pointer;
  648. }
  649. p:nth-child(2):hover{
  650. color: red;
  651. }
  652. }
  653. .shade-content-box{
  654. padding:20px;
  655. .shade-text-p{
  656. color:#9BA7BA;
  657. font-size:14px;
  658. line-height:20px;
  659. }
  660. .checkbox-box{
  661. margin-top:20px;
  662. padding:10px 15px;
  663. border-radius:6px;
  664. background-color:#F8F9FC ;
  665. .checkbox-text-p{
  666. color:#9BA7BA;
  667. }
  668. }
  669. .shade-check-box{
  670. margin-top:15px;
  671. }
  672. .shade-sub-max-box{
  673. margin:20px 0 0;
  674. .shade-sub-big-box:nth-child(1){
  675. border-top:1px solid #EDEFF5;
  676. }
  677. .shade-sub-big-box{
  678. display: flex;
  679. border-bottom:1px solid #EDEFF5;
  680. border-right:1px solid #EDEFF5;
  681. }
  682. .shade-sub-box-1{
  683. flex:2;
  684. display: flex;
  685. p{
  686. line-height:40px;
  687. font-size:14px;
  688. }
  689. p:nth-child(1){
  690. background-color: #FAFAFA;
  691. width:110px;
  692. padding:0 15px;
  693. border-left:1px solid #EDEFF5;
  694. border-right:1px solid #EDEFF5;
  695. }
  696. p:nth-child(2){
  697. flex:1;
  698. padding:0 15px;
  699. background-color: #fff;
  700. /*单行省略号*/
  701. display:block;
  702. overflow:hidden;
  703. text-overflow:ellipsis;
  704. white-space:nowrap;
  705. }
  706. }
  707. .shade-sub-box{
  708. flex:3;
  709. display: flex;
  710. p{
  711. line-height:40px;
  712. font-size:14px;
  713. }
  714. p:nth-child(1){
  715. background-color: #FAFAFA;
  716. width:110px;
  717. padding:0 15px;
  718. border-left:1px solid #EDEFF5;
  719. border-right:1px solid #EDEFF5;
  720. }
  721. p:nth-child(2){
  722. flex:1;
  723. padding:0 15px;
  724. background-color: #fff;
  725. /*单行省略号*/
  726. display:block;
  727. overflow:hidden;
  728. text-overflow:ellipsis;
  729. white-space:nowrap;
  730. }
  731. }
  732. }
  733. }
  734. .shade-content-box-2{
  735. padding: 0 40px;
  736. margin: 20px 0;
  737. height: 200px;
  738. p{
  739. line-height:40px;
  740. font-size:15px;
  741. }
  742. }
  743. .shade-button-box{
  744. display: flex;
  745. padding:20px;
  746. p:nth-child(1){
  747. flex:1;
  748. }
  749. .out-button{
  750. width:70px;
  751. line-height:40px;
  752. border-radius:4px;
  753. text-align: center;
  754. border:1px solid #dedede;
  755. margin-right:20px;
  756. cursor: pointer;
  757. }
  758. .out-button:hover{
  759. border:1px solid #999;
  760. background-color: #999;
  761. color:#fff;
  762. }
  763. .submit-button{
  764. background-color: #A0CFFE;
  765. color:#fff;
  766. width:100px;
  767. line-height:40px;
  768. border-radius:4px;
  769. text-align: center;
  770. border:1px solid #A0CFFE;
  771. cursor: pointer;
  772. }
  773. .submit-button:hover{
  774. border:1px solid #0183fa;
  775. background-color: #0183fa;
  776. }
  777. }
  778. .shade-button-box-2{
  779. display: flex;
  780. padding:20px;
  781. p:nth-child(1){
  782. flex:1;
  783. }
  784. p:nth-child(2){
  785. width:70px;
  786. line-height:40px;
  787. border-radius:4px;
  788. text-align: center;
  789. border:1px solid #dedede;
  790. margin-right:20px;
  791. cursor: pointer;
  792. }
  793. p:nth-child(2):hover{
  794. border:1px solid #999;
  795. background-color: #999;
  796. color:#fff;
  797. }
  798. p:nth-child(3){
  799. background-color: #A0CFFE;
  800. color:#fff;
  801. width:100px;
  802. line-height:40px;
  803. border-radius:4px;
  804. text-align: center;
  805. border:1px solid #A0CFFE;
  806. cursor: pointer;
  807. }
  808. p:nth-child(3):hover{
  809. border:1px solid #0183fa;
  810. background-color: #0183fa;
  811. }
  812. }
  813. }
  814. }
  815. }
  816. </style>