StaffList.vue 24 KB

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