StaffList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <template>
  2. <div class="seek">
  3. <div class="com-mobile-header mobile-center-header">
  4. <a @click="goLastPage"><i class="iconfont icon-fanhui"></i></a>
  5. <p>员工管理</p>
  6. <p class="en-name"><img :src="`/images/mobile/center/${user.data.enterprise.uu ? 'en' : 'self'}.png`" alt="">{{currentEnName}}</p>
  7. </div>
  8. <!--列表-->
  9. <div class="mobile-fix-content mobile-centerfix-content" id="mobile-staff-center">
  10. <!--列表-->
  11. <div v-if="activeTab === 0">
  12. <div class="staff-head" v-show="isAdmin">
  13. <span class="inline-block" :class="{'active': switchType === 'info'}" @click="setSwitchType('info')">员工信息</span>
  14. <span class="inline-block" :class="{'active': switchType === 'Audit'}" @click="setSwitchType('Audit')">审核绑定</span>
  15. </div>
  16. <div class="staff-record" v-if="switchType === 'info'">
  17. <div class="search-content clearfix">
  18. <div class="search">
  19. <input type="text" placeholder="人员姓名、电话号码、邮箱" v-model="staffSearch" class="staff-search" @keyup.13="staffRecord()">
  20. <span @click="staffRecord()"><i class="iconfont icon-sousuo"></i></span>
  21. </div>
  22. <div class="search-filter">
  23. <div class="select-wrap" @click="showRoleEvent($event)"><strong v-text="role"></strong><i class="iconfont icon-arrow-down"></i></div>
  24. <ul class="select-list" v-if="showRole">
  25. <li @click="rolesEvent()">全部角色</li>
  26. <li v-for="item in rolesList" v-text="item.desc" @click="rolesEvent(item)">全部角色</li>
  27. </ul>
  28. </div>
  29. </div>
  30. <div class="list-content" v-if="staffDataList && staffDataList.length">
  31. <div class="bg" v-for="item in staffDataList">
  32. <div class="staff-list">
  33. <!--<div class="list-item"><span>UU账号:</span><span v-text="item.userUU">100000721</span></div>-->
  34. <div class="list-item"><span>姓名:</span><span v-text="item.userName">张洪别</span></div>
  35. <div class="list-item"><span>性别:</span><span v-text="item.userSex === 'F' ? '女' : item.userSex === 'M' ? '男' : '-'">男</span></div>
  36. <div class="list-item"><span>手机号:</span><span v-text="item.userTel">12345678901</span></div>
  37. <div class="list-item"><span>邮箱:</span><span v-text="item.userEmail">12345678901</span></div>
  38. <div class="list-item"><span>角色:</span><span class="role" v-for="role in item.roles" v-text="role.desc ? role.desc.slice(0,2) : ''" v-bind:class="'bg' + role.color">普通</span></div>
  39. </div>
  40. <div class="list-footer">
  41. <div @click="goEdit(item)" class="edit handle"><i class="iconfont icon-edit"></i><span>编辑</span></div>
  42. <div @click="openDelete(item)" class="delete handle"><i class="iconfont icon-lajitong"></i><span>删除</span></div>
  43. </div>
  44. </div>
  45. </div>
  46. <empty-status :type="'collect'" :showLink="true" :text="'抱歉,没有相关信息'" v-else></empty-status>
  47. <pull-up :fixId="'mobile-staff-center'" :isValid="activeTab == 0 && switchType === 'info'" :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="onPullUpAction"></pull-up>
  48. <nuxt-link class="staff-add" :to="'/mobile/user/staff/add'"><i class="iconfont icon-add"></i>新增用户</nuxt-link>
  49. </div>
  50. <div class="staff-record" v-if="switchType === 'Audit'">
  51. <div class="search-content">
  52. <input type="text" placeholder="人员姓名、电话号码、邮箱" v-model="auditSearch" @keyup.13="searchAudit()">
  53. <span @click="searchAudit()"><i class="iconfont icon-sousuo"></i></span>
  54. </div>
  55. <div class="list-content" v-if="AuditList && AuditList.length">
  56. <div class="bg" v-for="item in AuditList">
  57. <div class="staff-list">
  58. <div class="list-item"><span>用户名:</span><span v-text="item.user.vipName"></span></div>
  59. <!--<div class="list-item"><span>UU账号:</span><span v-text="item.user.userUU">100000721</span></div>-->
  60. <div class="list-item"><span>手机号:</span><span v-text="item.user.mobile">12345678901</span></div>
  61. <div class="list-item"><span>邮箱:</span><span v-text="item.user.email">12345678901</span></div>
  62. </div>
  63. <div class="list-footer">
  64. <div class="edit handle" @click="agreeEvent(item, '1')"><i class="iconfont icon-check-circle"></i><span>同意</span></div>
  65. <div class="handle delete" @click="agreeEvent(item, '0')"><i class="iconfont icon-close-circle"></i><span>拒绝</span></div>
  66. </div>
  67. </div>
  68. </div>
  69. <empty-status :type="'collect'" :showLink="true" :text="'抱歉,没有相关信息'" v-else></empty-status>
  70. <pull-up :fixId="'mobile-staff-center'" :isValid="switchType === 'Audit'" :searchMore="fetch" :allPage="allPageAudit" :page="page" @pullUpAction="onPullUpAudit"></pull-up>
  71. </div>
  72. </div>
  73. <!--编辑角色-->
  74. <div v-if="activeTab === 1">
  75. <div v-for="(role, index) in rolesList">
  76. <div class="staff-role">
  77. <div class="staff-header"><span :class="'active_0' + role.color"><b></b>{{role.desc}}</span></div>
  78. <div class="staff-content">
  79. <label class="radio-label clearfix" >
  80. <input type="checkbox" :id="role.id" :checked="role.checked" @change="checkRole(role, index)"/>
  81. <label :for="role.id" v-bind:class="{'margin0': role.color === '4' || role.color === '2'}"></label>
  82. <p class="staff-des">{{role.duty}}</p>
  83. </label>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="staff-footer" v-if="rolesList || rolesList.length > 0">
  88. <div class="cancel handle" @click="cancelBind">取消</div>
  89. <div class="agree handle" @click="sureEdit">确定</div>
  90. </div>
  91. </div>
  92. </div>
  93. <!--删除员工弹框-->
  94. <div class="deleteKuang" v-if="showDelete">
  95. <div class="kuangContent">
  96. <div class="title">温馨提示</div>
  97. <div class="titleinfo">确定删除该用户吗?</div>
  98. <div class="K_btn">
  99. <div class="cancelBtn" @click="showDelete = false">取消</div>
  100. <div class="answerBtn" @click="sureDelete()">确定</div>
  101. </div>
  102. </div>
  103. </div>
  104. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  105. </div>
  106. </template>
  107. <script>
  108. import { RemindBox, PullUp, EmptyStatus } from '~components/mobile/common'
  109. import { BaseFilter } from '~components/mobile/base'
  110. export default {
  111. layout: 'mobile',
  112. data () {
  113. return {
  114. remindText: '',
  115. timeoutCount: 0,
  116. page: 1,
  117. count: 10,
  118. staffSearch: '',
  119. staffDataList: [],
  120. auditSearch: '',
  121. AuditList: [],
  122. isChange: false,
  123. hasChange: false,
  124. switchType: 'info',
  125. showDelete: false,
  126. currentObject: '',
  127. activeTab: 0,
  128. checked: false,
  129. rolesList: [],
  130. currentStaff: [],
  131. role: '全部角色',
  132. showRole: false
  133. }
  134. },
  135. components: {
  136. RemindBox,
  137. PullUp,
  138. EmptyStatus,
  139. BaseFilter
  140. },
  141. mounted () {
  142. // 获取角色
  143. this.$nextTick(() => {
  144. this.getRoles()
  145. })
  146. let _this = this
  147. _this.$nextTick(function () {
  148. window.addEventListener('scroll', function () {
  149. _this.scroll()
  150. }, false)
  151. document.body.onclick = () => {
  152. this.showRole = false
  153. }
  154. })
  155. },
  156. watch: {
  157. 'staffData': {
  158. handler: function (val) {
  159. if (this.isChange) {
  160. this.staffDataList = []
  161. this.isChange = false
  162. }
  163. if (val && val.content) {
  164. this.staffDataList = [...this.staffDataList, ...val.content]
  165. }
  166. },
  167. immediate: true
  168. },
  169. 'auditBind': {
  170. handler: function (val) {
  171. if (this.hasChange) {
  172. this.AuditList = []
  173. this.hasChange = false
  174. }
  175. if (val && val.content) {
  176. this.AuditList = [...this.AuditList, ...val.content]
  177. }
  178. },
  179. immediate: true
  180. }
  181. },
  182. computed: {
  183. staffData () {
  184. return this.$store.state.staff.infoList.info.data
  185. },
  186. fetching () {
  187. return this.$store.state.staff.infoList.info.fetching
  188. },
  189. allPage () {
  190. return Math.floor(this.staffData.totalElements / this.staffData.size) + Math.floor(this.staffData.totalElements % this.staffData.size > 0 ? 1 : 0)
  191. },
  192. auditBind () {
  193. return this.$store.state.staff.infoList.audit.data
  194. },
  195. fetch () {
  196. return this.$store.state.staff.infoList.audit.fetching
  197. },
  198. allPageAudit () {
  199. return Math.floor(this.auditBind.totalElements / this.auditBind.size) + Math.floor(this.auditBind.totalElements % this.auditBind.size > 0 ? 1 : 0)
  200. },
  201. userInfo () {
  202. return this.$store.state.option.user.data
  203. }
  204. },
  205. methods: {
  206. onRemind: function (str) {
  207. this.remindText = str
  208. this.timeoutCount++
  209. },
  210. setSwitchType (type) {
  211. this.staffSearch = ''
  212. this.auditSearch = ''
  213. this.switchType = type
  214. this.page = 1
  215. if ( type === 'info') {
  216. this.isChange = true
  217. this.staffRecord()
  218. } else {
  219. this.hasChange = true
  220. this.auditRecord()
  221. }
  222. },
  223. staffList () {
  224. this.$store.dispatch('staff/loadStaffList', {count: this.count, page: this.page, enuu: this.userInfo.enterprise.uu})
  225. },
  226. // 员工列表下拉加载更多
  227. onPullUpAction: function () {
  228. this.page++
  229. this.staffList()
  230. },
  231. // 员工列表搜索
  232. staffRecord () {
  233. this.showRole = false
  234. this.rolesEvent()
  235. },
  236. // 员工列表删除员工
  237. openDelete (item) {
  238. if (this.isAdmin) {
  239. if (item.userUU === this.userInfo.userUU) {
  240. this.onRemind('自己不可修改自己')
  241. } else {
  242. this.currentObject = item
  243. this.showDelete = true
  244. }
  245. } else {
  246. this.onRemind('您不是管理员不可修改')
  247. }
  248. },
  249. // 员工列表确认删除
  250. sureDelete () {
  251. this.$http.delete('/basic/user/' + this.currentObject.userUU)
  252. .then(response => {
  253. // console.log(response)
  254. this.showDelete = false
  255. this.onRemind('用户' + this.currentObject.userUU + '删除成功')
  256. this.page = 1
  257. this.isChange = true
  258. this.staffList()
  259. }).catch(data => {
  260. this.showDelete = false
  261. this.onRemind(data.response.data)
  262. })
  263. },
  264. // 打开选择
  265. showRoleEvent (e) {
  266. if (e) {
  267. e.stopPropagation()
  268. }
  269. this.showRole = !this.showRole
  270. },
  271. // 选择性搜索
  272. rolesEvent (type) {
  273. this.isChange = true
  274. this.showRole = false
  275. this.role = type ? type.desc : '全部角色'
  276. this.page = 1
  277. if (!type && !this.staffSearch) {
  278. this.$store.dispatch('staff/loadStaffList', {count: this.count, page: this.page, enuu: this.user.data.enterprise.uu, keyword: this.staffSearch})
  279. } else {
  280. let params = {
  281. count: this.count,
  282. page: this.page,
  283. enuu: this.user.data.enterprise.uu,
  284. keyword: this.staffSearch,
  285. roleId: type ? type.id : null
  286. }
  287. this.isChange = true
  288. this.$store.commit('staff/infoList/REQUEST_INFO_LIST')
  289. this.$http.get('/basic/user/enterprise/keywordinfo', {params})
  290. .then(response => {
  291. this.$store.commit('staff/infoList/GET_INFO_LIST_SUCCESS', response.data ? response.data : {})
  292. }, err => {
  293. this.$store.commit('staff/infoList/GET_INFO_LIST_FAILURE', err)
  294. })
  295. }
  296. },
  297. // 获取角色
  298. getRoles () {
  299. this.$http.get('/account/role')
  300. .then(response => {
  301. if (response.data) {
  302. this.rolesList = response.data
  303. }
  304. })
  305. },
  306. // 员工列表当前选中对象
  307. goEdit (item) {
  308. if (this.isAdmin) {
  309. if (item.userUU === this.userInfo.userUU) {
  310. this.onRemind('自己不可修改自己')
  311. } else {
  312. let currentData = item
  313. this.currentStaff = this.baseUtils.deepCopy(currentData)
  314. this.activeTab = 1
  315. for (let j = 0; j < this.rolesList.length; j++) {
  316. for (let i = 0; i < this.currentStaff.roles.length; i++) {
  317. //判断已绑定角色
  318. if (this.currentStaff.roles[i].id === this.rolesList[j].id) {
  319. this.rolesList[j].checked = true
  320. break
  321. } else {
  322. this.rolesList[j].checked = false
  323. }
  324. }
  325. }
  326. }
  327. } else {
  328. this.onRemind('您不是管理员不可修改')
  329. }
  330. },
  331. // 员工列表选择角色
  332. checkRole (role) {
  333. role.checked = !role.checked
  334. },
  335. // 员工列表取消编辑
  336. cancelBind () {
  337. this.activeTab = 0
  338. },
  339. // 员工列表确定编辑
  340. sureEdit () {
  341. this.currentStaff.roles = []
  342. for (var i = 0 ; i< this.rolesList.length; i++) {
  343. if (this.rolesList[i].checked) {
  344. this.currentStaff.roles.push(this.rolesList[i])
  345. }
  346. }
  347. this.$http.put(`/basic/user/updaterole`, this.currentStaff)
  348. .then(() => {
  349. this.onRemind('角色编辑成功')
  350. this.activeTab = 0
  351. this.page = 1
  352. this.isChange = true
  353. this.staffList()
  354. })
  355. },
  356. // 申请绑定搜索
  357. auditRecord () {
  358. this.$store.dispatch('staff/loadBindAudit', {count: this.count, page: this.page, speaceUU: this.user.data.enterprise.uu, status: 311, keyword: this.auditSearch})
  359. },
  360. searchAudit () {
  361. this.hasChange = true
  362. this.page = 1
  363. this.auditRecord()
  364. },
  365. // 绑定下拉
  366. onPullUpAudit () {
  367. this.page++
  368. this.auditRecord()
  369. },
  370. // 申请绑定操作事件 (同意和拒绝)
  371. agreeEvent (type, flag) {
  372. this.$http.get(`/basic/enterprise/auditApply?id=${type.id}&status=${Number(flag)}&userUU=${type.userUU}`)
  373. .then(() => {
  374. this.onRemind('操作成功!')
  375. this.auditSearch = ''
  376. this.page = 1
  377. this.searchAudit()
  378. })
  379. }
  380. }
  381. }
  382. </script>
  383. <style lang="scss">
  384. $base-color: #3f84f6;
  385. #mobile-staff-center {
  386. padding-bottom: .5rem;
  387. margin: 0 auto;
  388. .staff-head {
  389. height: .82rem;
  390. line-height: .82rem;
  391. text-align: center;
  392. background: #fff;
  393. span {
  394. font-size: .29rem;
  395. &:last-child {
  396. margin-left: 2.6rem;
  397. }
  398. &.active {
  399. color: $base-color;
  400. border-bottom: 1px solid $base-color;
  401. }
  402. }
  403. }
  404. .staff-record {
  405. .search-content {
  406. padding: .25rem 0;
  407. text-align: center;
  408. input {
  409. width: 6.9rem;
  410. border: 1px solid #376ff3;
  411. }
  412. .staff-search {
  413. width: 5.31rem;
  414. }
  415. .search {
  416. float: left;
  417. }
  418. .search-filter {
  419. float: left;
  420. margin-left: .35rem;
  421. position: relative;
  422. .select-wrap {
  423. width: 1.45rem;
  424. height: .58rem;
  425. line-height: .58rem;
  426. background-color: #ffffff;
  427. border-radius: .06rem;
  428. border: solid 1px #b4b4b4;
  429. strong{
  430. font-weight: normal;
  431. }
  432. i{
  433. float:right;
  434. display:inline-block;
  435. font-size: .1rem;
  436. font-weight: bold;
  437. color: $base-color;
  438. }
  439. }
  440. ul.select-list{
  441. width: 1.45rem;
  442. position: absolute;
  443. left: 0rem;
  444. top: .59rem;
  445. border: solid 1px #b4b4b4;
  446. border-top: none;
  447. -webkit-box-shadow: 0 1px 5px 0 #aaa;
  448. box-shadow: 0 1px 5px 0 #aaa;
  449. border-radius: .04rem;
  450. li{
  451. background: #fff;
  452. text-align: left;
  453. padding: 0 .13rem;
  454. font-size: .28rem;
  455. height: .53rem;
  456. line-height: .53rem;
  457. }
  458. }
  459. }
  460. }
  461. .list-content{
  462. margin: 0 auto;
  463. padding: 0 .20rem;
  464. margin-bottom:1.2rem;
  465. div.bg{
  466. padding: .32rem .24rem 0 .24rem;
  467. margin-bottom: .25rem;
  468. width: 7.1rem;
  469. background: #fff;
  470. border-radius: .05rem;
  471. &:last-child {
  472. margin-bottom: 1.5rem;
  473. }
  474. }
  475. .staff-list {
  476. width: 100%;
  477. .list-item {
  478. margin-bottom: .14rem;
  479. &:last-child{
  480. padding-bottom: 0;
  481. }
  482. span {
  483. display: inline-block;
  484. font-size: .28rem;
  485. &:first-child {
  486. width: 1.3rem;
  487. text-align: right;
  488. color: #3f84f6;
  489. }
  490. &:last-child {
  491. color: #666;
  492. }
  493. }
  494. span.role{
  495. display: inline-block;
  496. margin-right: .1rem;
  497. padding: 0 .05rem;
  498. height: .25rem;
  499. line-height: .25rem;
  500. text-align: center;
  501. font-size: .24rem;
  502. color: #fff;
  503. border-radius: .04rem;
  504. }
  505. span.role.bg1{
  506. background-color: #89aefa;
  507. }
  508. span.role.bg2{
  509. background-color: #01d9ce;
  510. }
  511. span.role.bg3{
  512. background-color: #01d9ce;
  513. }
  514. span.role.bg4{
  515. background-color: #ff6769;
  516. }
  517. span.role.bg5{
  518. background-color: #ff8050;
  519. }
  520. }
  521. }
  522. .list-footer {
  523. width: 100%;
  524. height: .8rem;
  525. line-height: .8rem;
  526. background: #fff;
  527. border-top: 1px solid #d9d9d9;
  528. div.handle{
  529. float: left;
  530. width: 50%;
  531. margin: 0 auto;
  532. text-align: center;
  533. span{
  534. font-size: .26rem;
  535. color: #333;
  536. }
  537. i.iconfont {
  538. margin-right: .06rem;
  539. font-size: .36rem;
  540. color: #333;
  541. }
  542. }
  543. div.edit{
  544. border-right: 1px solid #d9d9d9;
  545. }
  546. div.no-allow {
  547. color: #606168;
  548. cursor: not-allowed;
  549. }
  550. }
  551. }
  552. .staff-add {
  553. display: inline-block;
  554. position: fixed;
  555. bottom: 1.2rem;
  556. left: 50%;
  557. margin-left: -3.29rem;
  558. width: 6.59rem;
  559. height: .77rem;
  560. line-height: .77rem;
  561. text-align: center;
  562. font-size: .32rem;
  563. color: #fff;
  564. background-color: #3f84f6;
  565. border-radius: 0.08rem;
  566. i{
  567. margin-right: .1rem;
  568. font-size: .32rem;
  569. color: #fff;
  570. }
  571. }
  572. }
  573. /*编辑角色*/
  574. .staff-role{
  575. margin: .2rem auto 0;
  576. padding: 0 .24rem;
  577. width: 7.1rem;
  578. height: 1.72rem;
  579. background-color: #fff;
  580. border-radius: .05rem;
  581. .staff-header {
  582. height: .5rem;
  583. line-height: .5rem;
  584. text-align: left;
  585. border-bottom: 1px solid #d9d9d9;
  586. span {
  587. font-size: .28rem;
  588. color: #333;
  589. b{
  590. display: inline-block;
  591. margin-right: .05rem;
  592. width: .05rem;
  593. height: .18rem;
  594. background-color: #3f84f6;
  595. }
  596. }
  597. span.active_02 b{
  598. background-color: #8aaefc;
  599. }
  600. span.active_03 b{
  601. background-color: #09d7cd;
  602. }
  603. span.active_04 b{
  604. background-color: #ff676a;
  605. }
  606. span.active_05 b{
  607. background-color: #fc9b68;
  608. }
  609. }
  610. .staff-content {
  611. padding-top: .25rem;
  612. .radio-label {
  613. background-size: contain;
  614. vertical-align: middle;
  615. input{
  616. float: left;
  617. display: none;
  618. margin: .18rem .1rem 0 0;
  619. width: .36rem;
  620. height: .36rem;
  621. border: solid 2px #999999;
  622. }
  623. label {
  624. float: left;
  625. margin: .18rem .1rem 0 0;
  626. width: .36rem;
  627. height: .36rem;
  628. border-radius: 50%;
  629. background: url(/images/mobile/center/user/car-noChecked.png) no-repeat;
  630. background-size: contain;
  631. vertical-align: middle;
  632. }
  633. label.margin0 {
  634. margin: 0.05rem .1rem 0 0;
  635. }
  636. input:checked + label {
  637. background-image: url(/images/mobile/center/user/car-checked.png);
  638. }
  639. input.checked + label {
  640. background-image: url(/images/mobile/center/user/car-checked.png);
  641. }
  642. }
  643. .staff-des{
  644. float: left;
  645. width: 6rem;
  646. line-height: .42rem;
  647. font-weight: normal;
  648. font-size: .28rem;
  649. color: #666666;
  650. }
  651. }
  652. }
  653. .staff-footer{
  654. overflow: hidden;
  655. margin-top: .6rem;
  656. div.handle{
  657. float: left;
  658. width: 3.24rem;
  659. height: .77rem;
  660. line-height: .77rem;
  661. font-size: .32rem;
  662. color: #fff;
  663. text-align: center;
  664. border-radius: .08rem;
  665. &:first-child{
  666. margin: 0 .28rem 0 .35rem;
  667. background-color: #acaaab;
  668. }
  669. &:last-child{
  670. background-color: #3f84f6;
  671. }
  672. }
  673. }
  674. }
  675. /*删除弹框*/
  676. .deleteKuang {
  677. position: fixed;
  678. background: rgba(0,0,0,0.5);
  679. top: 0;
  680. left: 0;
  681. right: 0;
  682. bottom: 0;
  683. z-index: 9999;
  684. .kuangContent {
  685. border-radius: 5px;
  686. background: #fff;
  687. width: 5rem;
  688. position: absolute;
  689. left: 50%;
  690. top: 50%;
  691. transform: translate3d(-50%, -50%, 0);
  692. overflow: hidden;
  693. .titleinfo {
  694. font-size: .3rem;
  695. color: #666;
  696. text-align: center;
  697. margin-top: 0.5rem;
  698. margin-bottom: 0.1rem;
  699. }
  700. .title {
  701. background: #5078cb;
  702. height: .7rem;
  703. line-height: .7rem;
  704. font-size: .3rem;
  705. color: #fff;
  706. text-align: center;
  707. }
  708. .info {
  709. color: #f00;
  710. text-align: center;
  711. }
  712. .K_btn {
  713. margin-top: 0.4rem;
  714. line-height: 0.7rem;
  715. height: 0.7rem;
  716. &::after{
  717. clear: both;
  718. display: block;
  719. content: ' ';
  720. visibility: hidden;
  721. zoom: 1;
  722. }
  723. div {
  724. float: left;
  725. width: 50%;
  726. font-size: 0.3rem;
  727. text-align: center;
  728. &.cancelBtn {
  729. background: #b4b5b9;
  730. color: #333;
  731. }
  732. &.answerBtn {
  733. background: #5078cb;
  734. color: #fff;
  735. }
  736. }
  737. }
  738. }
  739. }
  740. </style>