StaffList.vue 23 KB

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