StaffList.vue 23 KB

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