StaffList.vue 23 KB

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