people_fireStation.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <template>
  2. <view>
  3. <navInfo :title="'编辑人员'"></navInfo>
  4. <view class="bgTopImg" style="height:200rpx;position: fixed;z-index: 9;">
  5. <image slot="right" class="bgTopImg"></image>
  6. </view>
  7. <view class="uni-container">
  8. <view class=" flex flex-direction width100">
  9. <view class="cardBox">
  10. <uni-card v-for="item in tableList" style="border: 2rpx solid #4DB1B6;">
  11. <view style="display: flex;justify-content: space-between;align-items: center;">
  12. <view>
  13. <text>姓名:{{item.empName}}</text><br>
  14. <text>电话:{{ item.mobile }}</text><br>
  15. <text>身份证号:{{item.idcardno}}</text><br>
  16. <text>职务:{{getDuty(item.empType)}}</text>
  17. </view>
  18. <view style="display: flex;justify-content: space-around;align-items: center;">
  19. <button @click="delUser(item)" class="editBtn" style="background-color: red;"
  20. v-if="addIds">删除</button>
  21. <button @click="editUser(item)" class="editBtn" v-if="addIds">编辑</button>
  22. </view>
  23. </view>
  24. </uni-card>
  25. </view>
  26. <!-- 新增的人员表单项 -->
  27. <view v-for="(person, index) in membersList" :key="index" style="border-bottom: 1px solid #f8f8f8;">
  28. <u--form ref="forms" labelPosition="left" labelWidth="150" labelAlign="left">
  29. <u-form-item class="typeStyle" :prop="'name' + (index + 1)">
  30. <p style="width: 150rpx;margin-left: 20rpx;">姓名</p>
  31. <u-input v-model="person.name" id="nameId" @change="nameBlur" :placeholder="'请输入姓名'" />
  32. <span class="erroring" v-if="nameRules">请输入名称</span>
  33. </u-form-item>
  34. <u-form-item class="typeStyle" :prop="'age' + (index + 1)">
  35. <p style="width: 150rpx;margin-left: 20rpx;">身份证号</p>
  36. <u-input @change="userBlur" v-model="person.userNum" :placeholder="'请输入身份证号'" />
  37. <span class="erroring" v-if="userRules">身份证号有误</span>
  38. </u-form-item>
  39. <!-- 其他人员信息字段 -->
  40. <u-form-item class="typeStyle" :prop="'age' + (index + 1)">
  41. <p style="width: 150rpx;margin-left: 20rpx;">电话号</p>
  42. <u-input v-model="person.phone" @change="phoneBlur" :placeholder="'请输入电话号'" />
  43. <span class="erroring" v-if="phoneRules">电话号有误</span>
  44. </u-form-item>
  45. <!-- <u-form-item class="typeStyle" :prop="'age' + (index + 1)">
  46. <p style="width: 150rpx;margin-left: 20rpx;">人员类型</p>
  47. <u-input v-model="person.worker" :placeholder="'请输入人员类型'" />
  48. </u-form-item> -->
  49. <u-form-item class="antherStyle">
  50. <p style="width: 150rpx;">人员类型</p>
  51. <uni-data-select v-model="person.power" :localdata="selectType"
  52. @change="change"></uni-data-select>
  53. <!-- <uni-data-select v-model="person.worker" :localdata="range" @change="change"></uni-data-select> -->
  54. </u-form-item>
  55. <u-form-item>
  56. <u-button type="primary" @click="addSure" class="antherBtn">提交</u-button>
  57. <u-button type="primary" @click="cleanList" class="antherBtn">取消</u-button>
  58. </u-form-item>
  59. </u--form>
  60. </view>
  61. <view>
  62. <u-popup :show="showModal" mode="center" @close="closeModal" :round="10">
  63. <view class="modalBox">
  64. <u--form labelPosition="left" :model="formbox" ref="uForm" labelWidth="100"
  65. labelAlign="left">
  66. <u-form-item label="姓名" prop="formbox.fname" borderBottom ref="item1">
  67. <u--input class="insides" v-model="formbox.fname" border="none"></u--input>
  68. </u-form-item>
  69. <u-form-item label="电话号" prop="formbox.fphone" borderBottom ref="item1">
  70. <u--input class="insides" v-model="formbox.fphone" border="none"></u--input>
  71. </u-form-item>
  72. <u-form-item label="人员类型" prop="formbox.fpower" borderBottom ref="item1">
  73. <uni-data-select v-model="formbox.fpower" :localdata="selectType"
  74. @change="change1"></uni-data-select>
  75. </u-form-item>
  76. <u-form-item label="身份证号" prop="userInfo.fuserNum" borderBottom ref="item1">
  77. <u--input class="insides" v-model="formbox.fuserNum" border="none"></u--input>
  78. </u-form-item>
  79. <!-- <u-form-item style="width: 350rpx;" label="人员类型" prop="userInfo.fworker" borderBottom
  80. ref="item1">
  81. <u--input class="insides" v-model="formbox.fworker" border="none"></u--input>
  82. </u-form-item> -->
  83. </u--form>
  84. <view class="useBox">
  85. <button class="antherBtn" @click="makeSureEdit">确认修改</button>
  86. <button class="antherBtn" @click="showModal = false">取消</button>
  87. </view>
  88. </view>
  89. </u-popup>
  90. </view>
  91. <view>
  92. <u-popup :show="showDel" title="确认删除?" mode="center">
  93. <view style="width: 400rpx;height: 200rpx;margin: 20rpx 20rpx;">
  94. <p style="font-size: 35rpx;color: black;">是否删除该数据项?</p>
  95. <p style="font-size: 20rpx;color: gray;">确认删除?</p>
  96. <view
  97. style="display: flex;justify-content: space-around;align-items: center;margin-top: 40rpx;">
  98. <button class="antherBtn" @click="makeSureDel"
  99. style="background-color: red;">确认</button>
  100. <button class="antherBtn" @click="showDel = false">取消</button>
  101. </view>
  102. </view>
  103. </u-popup>
  104. </view>
  105. <view>
  106. <u-modal :show="show123" @confirm="confirm" @cancel="cancel" @close="close" asyncClose
  107. closeOnClickOverlay showCancelButton confirmColor="red" title="是否删除该数据项" content="确认删除?"
  108. ref="uModal"></u-modal>
  109. </view>
  110. <button @click="addNewPeople" class="circleBtn">+</button>
  111. </view>
  112. </view>
  113. </view>
  114. </template>
  115. <script>
  116. import {
  117. creatFirePeople,
  118. delFirePeople,
  119. outexcel,
  120. getMesbyid,
  121. getfirelist,
  122. getfirepage,
  123. editFirePeople,
  124. getuserfireid
  125. } from "../../../../api/peoplefire/index.js"
  126. import {
  127. getDict
  128. } from "../../../../api/dictName/index.js"
  129. import config from '@/config'
  130. const baseUrlImg = config.baseUrlImg
  131. import navInfo from '@/pagesA/components/my-nav/nav'
  132. export default {
  133. components: {
  134. navInfo
  135. },
  136. data() {
  137. return {
  138. membersList: [], //添加的人员数组
  139. resultId: '',
  140. value: 0,
  141. range: [{
  142. value: '2',
  143. text: "站长"
  144. },
  145. {
  146. value: '1',
  147. text: "值班人员"
  148. },
  149. {
  150. value: '0',
  151. text: "普通人员"
  152. },
  153. ],
  154. range1: [{
  155. value: '2',
  156. text: "站长"
  157. },
  158. {
  159. value: '1',
  160. text: "值班人员"
  161. },
  162. {
  163. value: '0',
  164. text: "普通人员"
  165. },
  166. ],
  167. tomole: "添加人员",
  168. tableList: [], //显示的人员数组
  169. userId: '', //用户id
  170. smallFireId: '',
  171. fireStationId: 0, //消防站id
  172. showModal: false, //模态框开关
  173. formbox: {
  174. fname: '',
  175. fphone: '',
  176. fworker: '',
  177. fuserNum: '',
  178. },
  179. editPeopleId: '', //需要修改人员的id
  180. nameRules: false, //对name的正则验证
  181. userRules: false, //对身份证的正则验证
  182. phoneRules: false, //对电话的正则验证
  183. showDel: false,
  184. delId: '',
  185. show123: false,
  186. selectType: [], //选项
  187. addIds: '',
  188. empList: null,
  189. type: ''
  190. }
  191. },
  192. methods: {
  193. getTypePeople() {
  194. getDict({
  195. pageNo: 1,
  196. pageSize: 10,
  197. dictType: "micro_emp_type"
  198. }).then(res => {
  199. this.selectType = res.data.list.map(item => {
  200. return {
  201. value: item.value,
  202. text: item.label
  203. }
  204. })
  205. })
  206. },
  207. addNewPeople() {
  208. if (this.addIds) {
  209. const MAX_LENGTH = 1; // 假设你想限制数组最大长度为6
  210. if (this.membersList.length < MAX_LENGTH) {
  211. const newPerson = {
  212. name: '',
  213. userNum: '',
  214. phone: '',
  215. worker: '',
  216. // 其他字段
  217. };
  218. this.membersList.push(newPerson);
  219. } else {
  220. // 达到最大数量,给出提示或执行其他操作
  221. uni.showToast({
  222. title: '只支持一位添加',
  223. icon: 'none', // 图标类型,可选值:'success', 'loading', 'none'
  224. duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
  225. mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
  226. success() {
  227. // console.log('toast消息提示显示成功');
  228. },
  229. fail(err) {
  230. // console.error('toast消息提示显示失败', err);
  231. }
  232. });
  233. }
  234. }
  235. },
  236. addSure() {
  237. if (this.addIds) {
  238. if (!this.userRules && !this.phoneRules && !this.nameRules) {
  239. // console.log(this.membersList[0].worker,'988');
  240. creatFirePeople({
  241. empName: this.membersList[0].name,
  242. empType: this.membersList[0].worker,
  243. idcardno: this.membersList[0].userNum,
  244. microstationid: this.fireStationId - 0,
  245. mobile: this.membersList[0].phone,
  246. }).then(res => {
  247. if (res.data) {
  248. this.getAllFire()
  249. uni.showToast({
  250. title: '添加成功',
  251. icon: 'success', // 图标类型,可选值:'success', 'loading', 'none'
  252. duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
  253. mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
  254. success() {
  255. // console.log('toast消息提示显示成功');
  256. },
  257. fail(err) {
  258. // console.error('toast消息提示显示失败', err);
  259. }
  260. });
  261. this.membersList = [{
  262. name: '',
  263. userNum: '',
  264. phone: '',
  265. worker: '',
  266. }]
  267. }
  268. })
  269. } else {
  270. uni.showToast({
  271. title: '请检查表单项',
  272. icon: 'none', // 图标类型,可选值:'success', 'loading', 'none'
  273. duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
  274. mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
  275. success() {
  276. // console.log('toast消息提示显示成功');
  277. },
  278. fail(err) {
  279. // console.error('toast消息提示显示失败', err);
  280. }
  281. });
  282. }
  283. } else {
  284. let ground = []
  285. if (localStorage.getItem('empList')) {
  286. this.empList = JSON.parse(localStorage.getItem('empList'))
  287. }
  288. if (this.empList != null) {
  289. ground = [...this.empList, ...this.membersList]
  290. this.tableList = [...ground]
  291. } else {
  292. this.tableList = [...this.membersList]
  293. }
  294. this.tableList.map(i => {
  295. i.empName = i.name
  296. i.mobile = i.phone
  297. i.idcardno = i.userNum
  298. i.empType = i.power
  299. })
  300. // localStorage.setItem('empList', JSON.stringify(ground))
  301. // } else {
  302. // localStorage.setItem("empList", JSON.stringify(this.membersList))
  303. // }
  304. localStorage.setItem("empList", JSON.stringify(this.tableList))
  305. uni.navigateBack({
  306. delta: 1
  307. })
  308. }
  309. this.nameRules = false //对name的正则验证
  310. this.userRules = false //对身份证的正则验证
  311. this.phoneRules = false
  312. },
  313. change(e) {
  314. this.membersList[0].worker = e
  315. // console.log("e:", e);
  316. },
  317. change1(e) {
  318. this.membersList[0].worker = e
  319. // console.log("e1:", e);
  320. },
  321. getbackid() {
  322. let x = localStorage.getItem('getUserInfo_key')
  323. x = JSON.parse(x)
  324. this.userId = x.data.userInfo.id
  325. getuserfireid({
  326. userId: this.userId
  327. }).then(res => {
  328. // console.log(res, 'userfire');
  329. })
  330. // console.log(x.data.userInfo.id, 'xxx');
  331. },
  332. getAllFire() {
  333. let num = 0
  334. if (this.addIds === '1') {
  335. num = '1'
  336. getfirepage({
  337. pageNo: 1,
  338. pageSize: 10,
  339. microstationid: this.fireStationId,
  340. empType: num
  341. }).then(res => {
  342. // console.log(res, '888');
  343. this.tableList = res.data.list
  344. })
  345. } else if (this.addIds === '2') {
  346. num = '2'
  347. getfirepage({
  348. pageNo: 1,
  349. pageSize: 10,
  350. microstationid: this.fireStationId,
  351. empType: num
  352. }).then(res => {
  353. // console.log(res, '888');
  354. this.tableList = res.data.list
  355. })
  356. } else if (this.addIds === '0') {
  357. num = '0'
  358. getfirepage({
  359. pageNo: 1,
  360. pageSize: 10,
  361. microstationid: this.fireStationId,
  362. empType: num
  363. }).then(res => {
  364. // console.log(res, '888');
  365. this.tableList = res.data.list
  366. })
  367. }
  368. },
  369. delUser(row) {
  370. this.delId = row.id
  371. this.show123 = true
  372. },
  373. makeSureDel() {
  374. },
  375. confirm() {
  376. delFirePeople(this.delId).then(res => {
  377. if (res.data) {
  378. uni.showToast({
  379. title: '删除成功',
  380. icon: 'success', // 图标类型,可选值:'success', 'loading', 'none'
  381. duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
  382. mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
  383. success() {
  384. // console.log('toast消息提示显示成功');
  385. },
  386. fail(err) {
  387. // console.error('toast消息提示显示失败', err);
  388. }
  389. });
  390. this.getAllFire()
  391. this.show123 = false
  392. }
  393. })
  394. },
  395. cancel() {
  396. this.show123 = false
  397. },
  398. close() {
  399. this.show123 = false
  400. },
  401. editUser(row) {
  402. this.editPeopleId = row.id
  403. getMesbyid({
  404. id: row.id
  405. }).then(res => {
  406. if (res.data) {
  407. this.formbox.fname = res.data.empName
  408. this.formbox.fphone = res.data.mobile
  409. this.formbox.fpower = res.data.empType
  410. // this.formbox.fworker = res.data.empType
  411. this.formbox.fuserNum = res.data.idcardno
  412. this.showModal = true
  413. }
  414. })
  415. },
  416. closeModal() {
  417. this.showModal = false
  418. },
  419. makeSureEdit() {
  420. editFirePeople({
  421. empType: this.formbox.fpower,
  422. empName: this.formbox.fname,
  423. // empType: this.formbox.fworker,
  424. id: this.editPeopleId,
  425. idcardno: this.formbox.fuserNum,
  426. microstationid: this.fireStationId - 0,
  427. mobile: this.formbox.fphone,
  428. }).then(res => {
  429. if (res.data) {
  430. this.showModal = false
  431. this.getAllFire()
  432. uni.showToast({
  433. title: '编辑成功',
  434. icon: 'success', // 图标类型,可选值:'success', 'loading', 'none'
  435. duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
  436. mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
  437. success() {
  438. // console.log('toast消息提示显示成功');
  439. },
  440. fail(err) {
  441. // console.error('toast消息提示显示失败', err);
  442. }
  443. });
  444. }
  445. // console.log(res, 'edit');
  446. })
  447. },
  448. // 对表单内name的正则判断
  449. nameBlur() {
  450. // console.log(this.membersList[0].name);
  451. if (this.membersList[0].name === '') {
  452. this.nameRules = true
  453. } else {
  454. this.nameRules = false
  455. }
  456. },
  457. userBlur() {
  458. const regex = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}[\dxX]$/;
  459. if (this.membersList[0].userNum&&regex.test(this.membersList[0].userNum)||!this.membersList[0].userNum) {
  460. this.userRules = false
  461. } else{
  462. this.userRules = true
  463. }
  464. },
  465. phoneBlur() {
  466. const regex = /^1[3-9]\d{9}$/;
  467. if (regex.test(this.membersList[0].phone)||!this.membersList[0].phone) {
  468. this.phoneRules = false
  469. } else {
  470. this.phoneRules = true
  471. }
  472. },
  473. cleanList() {
  474. this.membersList = []
  475. let list = localStorage.getItem("empList")
  476. list = JSON.parse(list)
  477. if (list) {
  478. localStorage.removeItem('empList')
  479. }
  480. },
  481. // 读取本地缓存
  482. getGround() {
  483. let list = localStorage.getItem("empList")
  484. list = JSON.parse(list)
  485. if (list) {
  486. this.membersList = list
  487. } else {
  488. this.membersList = []
  489. }
  490. }
  491. },
  492. onLoad(options) {
  493. let ids = localStorage.getItem("fireId")
  494. if (ids) {
  495. this.fireStationId = ids
  496. }
  497. this.addIds = options.addId ? options.addId : ''
  498. this.type = options.type ? options.type : ''
  499. },
  500. onShow() {
  501. this.getTypePeople()
  502. this.getGround()
  503. if (this.addIds) {
  504. this.getAllFire()
  505. this.getbackid()
  506. // console.log(options, 'options')
  507. this.resultId = this.addIds
  508. if (this.resultId === '2') {
  509. this.tomole = '添加负责人'
  510. } else if (this.resultId === '1') {
  511. this.tomole = '添加值班人'
  512. } else {
  513. this.tomole = '添加人员信息'
  514. }
  515. // console.log(this.$route.query, 'query'); // 输出传递的参数值
  516. } else {
  517. if (localStorage.getItem('empList')) {
  518. const lists = JSON.parse(localStorage.getItem('empList'))
  519. switch (this.type) {
  520. case "0":
  521. lists.map(i => {
  522. if (i.empType == "0") {
  523. this.tableList.push(i)
  524. }
  525. })
  526. console.log(this.tableList,'this.tableList')
  527. break;
  528. case "1":
  529. lists.map(i => {
  530. if (i.empType == "1") {
  531. this.tableList.push(i)
  532. }
  533. })
  534. console.log(this.tableList,'this.tableList')
  535. break;
  536. case "2":
  537. lists.map(i => {
  538. if (i.empType =="2") {
  539. this.tableList.push(i)
  540. }
  541. })
  542. console.log(this.tableList,'this.tableList')
  543. break;
  544. default:
  545. break;
  546. }
  547. this.tableList.map(i => {
  548. i.empName = i.name
  549. i.mobile = i.phone
  550. i.idcardno = i.userNum
  551. i.empType = i.power
  552. })
  553. }
  554. this.membersList = [{
  555. name: '',
  556. userNum: '',
  557. phone: '',
  558. worker: '',
  559. // 其他字段
  560. }]
  561. return
  562. }
  563. this.membersList = [{
  564. name: '',
  565. userNum: '',
  566. phone: '',
  567. worker: '',
  568. // 其他字段
  569. }]
  570. },
  571. computed: {
  572. getDuty() {
  573. return (num) => {
  574. if (num === '1') {
  575. return '值班人';
  576. } else if (num === '2') {
  577. return '站长';
  578. } else {
  579. return '普通人员';
  580. }
  581. };
  582. }
  583. }
  584. }
  585. </script>
  586. <style lang="scss" scoped>
  587. .uni-container {
  588. padding: 10px;
  589. background: #fff;
  590. // z-index: 9999999;
  591. position: relative;
  592. }
  593. /deep/ .typeStyle {
  594. width: 650rpx !important;
  595. }
  596. /deep/ .antherStyle {
  597. width: 630rpx;
  598. height: 100rpx;
  599. margin-left: 20rpx;
  600. }
  601. /deep/ .antherBtn {
  602. width: 200rpx;
  603. height: 80rpx;
  604. margin-bottom: 30rpx;
  605. background-color: #4DB1B6;
  606. color: white;
  607. text-align: center;
  608. line-height: 80rpx;
  609. font-size: 30rpx;
  610. border-radius: 20rpx;
  611. }
  612. .tableBox {
  613. width: 90%;
  614. height: auto;
  615. margin: 20rpx auto;
  616. margin-left: 40rpx;
  617. /* background-color: aqua; */
  618. }
  619. .custom-table {
  620. border-collapse: collapse;
  621. /* 合并边框 */
  622. }
  623. .custom-table th,
  624. .custom-table td {
  625. /* width: 39.5%; */
  626. border: 1px solid #4DB1B6;
  627. /* 添加边框样式 */
  628. padding: 8px;
  629. /* 设置单元格内边距 */
  630. }
  631. .aTd {
  632. /* width: 60%; */
  633. }
  634. .editBtn {
  635. width: 120rpx;
  636. height: 60rpx;
  637. background-color: #4DB1B6;
  638. color: white;
  639. text-align: center;
  640. line-height: 60rpx;
  641. border-radius: 10rpx;
  642. font-size: 20rpx;
  643. margin-bottom: 10rpx;
  644. margin-right: 10rpx;
  645. }
  646. .modalBox {
  647. width: 700rpx;
  648. height: 750rpx;
  649. /deep/.uni-select {
  650. width: 100%;
  651. height: 50px;
  652. border: 1px solid #4DB1B6;
  653. }
  654. /deep/ .u-line {
  655. border: none !important;
  656. }
  657. /deep/ .uni-input-input {
  658. padding: 0 10rpx;
  659. }
  660. /deep/ .u-form-item__body {
  661. width: 90%;
  662. }
  663. }
  664. .insides {
  665. width: 400rpx;
  666. height: 100rpx;
  667. border: 1px solid #4DB1B6;
  668. }
  669. .useBox {
  670. display: flex;
  671. justify-content: space-around;
  672. align-items: center;
  673. margin-top: 20rpx;
  674. }
  675. .erroring {
  676. color: red;
  677. font-size: 20rpx;
  678. }
  679. .circleBtn {
  680. width: 100rpx;
  681. height: 100rpx;
  682. border-radius: 50%;
  683. font-size: 90rpx;
  684. text-align: center;
  685. line-height: 100rpx;
  686. color: white;
  687. background-color: #4EB0B5;
  688. position: fixed;
  689. bottom: 20rpx;
  690. right: 20rpx;
  691. }
  692. .cardBox {
  693. width: 650rpx;
  694. margin: 100rpx auto 20rpx;
  695. border-radius: 30rpx;
  696. }
  697. .u-form-item__body__left {
  698. width: 100rpx;
  699. }
  700. /deep/.u-button--primary {
  701. border: none
  702. }
  703. </style>