universalityAudit.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <template>
  2. <view style='margin-bottom:280rpx;'>
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="dataobj.status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="dataobj.status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <!-- v-if="status == '审核中' || status == '待决策人审核'" -->
  12. <image v-if='dataobj.approveStatus' src="../../../static/img/daishenhe.png" mode="" style="height: 40rpx;"></image>
  13. <!-- 待审核 -->
  14. </view>
  15. <!-- {{auditList.length > 0 ?auditList[auditList.length - 1].operatorMajorRoleName:""}} -->
  16. <view class="infoText">{{dataobj.approveStatus?dataobj.approveStatus:dataobj.status}}</view>
  17. </view>
  18. <view class="infoData">{{dataobj.updateDate}}</view>
  19. </view>
  20. </view>
  21. <view>
  22. <u-form :model="dataobj" ref="uForm">
  23. <u-form-item label="类型"><view style='text-align:right;width:100%;color:#AFB3BF;'>{{dataobj.businessType}}</view></u-form-item>
  24. <u-form-item :border-bottom='false' :label-position='"top"' label="备注">
  25. <view class="u-textarea-style">
  26. <view class="right-bottom">
  27. {{dataobj.remark?dataobj.remark.length:0}}/2000个字
  28. </view>
  29. <textarea style='font-size:12px;' disabled maxlength="2000" v-model='dataobj.remark' placeholder="请输入备注信息" name="" id="" cols="30" rows="11"></textarea>
  30. </view>
  31. </u-form-item>
  32. </u-form>
  33. <u-form :label-position='"top"' ref="uForm">
  34. <u-form-item :border-bottom='false' :label="'共'+imglist.length+'个附件'">
  35. <view style='width:100%;border-top:1px solid #EEEEEE;' v-if='imglist.length>0'>
  36. <view style="justify-content: space-between;" class='flex' v-for='item in imglist'>
  37. <view class="img_item">
  38. <view class="" style="width: 16%;">
  39. <image
  40. v-if="item.type == 'pdf'"
  41. class="imgsign" src="../../../static/img/oa_office/pdf3.png"
  42. mode=""></image>
  43. <image v-else-if="item.type == 'xls'||item.type == 'xlsx'"
  44. class="imgsign" src="../../../static/img/oa_office/excle3.png"
  45. mode=""></image>
  46. <image v-else-if="item.type == 'doc'||item.type == 'docx'"
  47. class="imgsign" src="../../../static/img/oa_office/word3.png"
  48. mode=""></image>
  49. <image v-else class="imgsign" :src="item.appendixPath" mode="">
  50. </image>
  51. </view>
  52. <view class="" style="width: 70%;">
  53. <view class="char_css">{{item.appendixName}}</view>
  54. <view class="img_size">{{item.appendixSize}}</view>
  55. </view>
  56. <view style="color: #22C572;" class="img_dowload" @click="openDocument(item)">
  57. 下载
  58. </view>
  59. </view>
  60. <!-- <u-icon name="attach" ></u-icon> -->
  61. <!-- <image style='width: 200rpx;height: 200rpx;' :src="item" mode=""></image> -->
  62. </view>
  63. </view>
  64. </u-form-item>
  65. </u-form>
  66. <u-form style='padding-bottom: 180rpx;' ref="uForm">
  67. <view class="form_top">审批流</view>
  68. <view class="content2">
  69. <view v-for="(item,index) in auditList" :key='index' class="audit">
  70. <view class="row" v-if='item.desc!="_PLACEHOLDER_"'>
  71. <view class="left">
  72. <view class="item1">
  73. <view class="item-content">{{item.operatorTitle}}</view>
  74. <view v-if="item.status=='success'" class='status success'>
  75. <u-icon name="checkmark" color="#2979ff" size="24"></u-icon>
  76. </view>
  77. <view v-if="item.status=='error'" class='status error'>
  78. <u-icon name="close" color="rgb(245, 108, 108)" size="24"></u-icon>
  79. </view>
  80. <view v-if="item.status=='question'" class='status question'>
  81. <u-icon name="question" color="#f9ae3d" size="24"></u-icon>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="right">
  86. <view class="right-item">
  87. <view class="item2">
  88. <view class="name">{{item.desc}}
  89. </view>
  90. <!-- <view class='time'>{{item.updateDate}}</view> -->
  91. <view v-if="item.status=='success'" class="status success">
  92. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  93. v-if='!item.commonStaffs1&&index!=0'>已审核</text></view>
  94. <view v-if="item.status=='error'" class="status error">
  95. {{item.commonStaffs1?item.staffscontent:item.operatorName}}<text
  96. v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已驳回":''}}</text>
  97. </view>
  98. <view v-if="item.status=='question'" class="status question">
  99. {{item.commonStaffs1?item.staffscontent:''}}<text
  100. v-if='!item.commonStaffs1'>未审核</text></view>
  101. <!-- <view class="status success">吕波(已审核)</view> -->
  102. </view>
  103. <view v-if='index==0||item.workflowHistoricTasks&&item.workflowHistoricTasks.length>0'
  104. class='time'>
  105. {{item.updateDate}}
  106. </view>
  107. </view>
  108. <view v-if='item.auditMind' class="right-content">
  109. {{item.auditMind}}
  110. </view>
  111. </view>
  112. <view v-if='item.commonStaffs1' class="right">
  113. <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28">
  114. </u-icon>
  115. </view>
  116. </view>
  117. <view v-if='item.showflow' style='padding:10px 0 0 50px;'>
  118. <view class='row2'>
  119. <view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
  120. <view class="item-content">
  121. <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
  122. <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
  123. </view>
  124. <view class="name">{{item1.staffName}}</view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="row-line" v-if="index!= auditList.length - 1&&item.desc!='_PLACEHOLDER_'"></view>
  129. </view>
  130. </view>
  131. </u-form>
  132. </view>
  133. <view v-if='show' class="shade">
  134. <view class="wrap">
  135. <view class="alert-top">
  136. <view class="title">
  137. {{title}}
  138. </view>
  139. <u-icon name="close" class="close" color="#8890B1" @click="close()"></u-icon>
  140. </view>
  141. <view class="u-textarea-style">
  142. <view class="right-bottom">
  143. {{auditMind.length}}/1000个字
  144. </view>
  145. <u-input class="" v-model='auditMind' placeholder="请在此输入审核意见" type="textarea" height="414"
  146. maxlength="1000" />
  147. </view>
  148. <view @click='close()' class="cancel">取消</view>
  149. <view @click='passSubmit()' class="confirm">确定</view>
  150. </view>
  151. </view>
  152. <view style='padding:10px;' class='flex bottom-btn'>
  153. <u-button v-if='dataobj.taskId' @click='reject' type="error" class="btn1" hover-class='none'>驳回</u-button>
  154. <u-button v-if='dataobj.taskId' @click='pass' type="success" class="btn2">通过</u-button>
  155. <u-button v-if='!dataobj.taskId' @click="fanHui" type="success" class="btn1" hover-class='none'>返回</u-button>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. export default {
  161. data() {
  162. return {
  163. id:'',
  164. dataobj:{},
  165. show:false,
  166. auditMind:'',
  167. title:'',
  168. imglist:[],
  169. auditList:[]
  170. }
  171. },
  172. onLoad(options){
  173. this.id=options.id
  174. console.log(options.id)
  175. },
  176. onShow(){
  177. // this.$nextTick(()=>{
  178. this.getList()
  179. // })
  180. },
  181. methods: {
  182. openDocument(src) {
  183. uni.downloadFile({
  184. url: src.appendixPath,
  185. success: function(res) {
  186. var filePath = res.tempFilePath;
  187. uni.openDocument({
  188. filePath: filePath,
  189. showMenu: true,
  190. success: function(res) {
  191. console.log('打开文档成功');
  192. }
  193. });
  194. }
  195. });
  196. },
  197. pass() {
  198. this.show = true
  199. this.title = '审核意见(通过)'
  200. },
  201. reject() {
  202. this.show = true
  203. this.title = '驳回原因(驳回)'
  204. },
  205. // 驳回
  206. rejectSubmit() {
  207. var that = this
  208. if (!this.auditMind) {
  209. this.$api.msg('驳回原因不能为空!')
  210. } else {
  211. this.show = false
  212. uni.showModal({
  213. content: "是否确定驳回?",
  214. showCancel: true,
  215. confirmText: '确定',
  216. success: function(res) {
  217. if (res.confirm) {
  218. that.audit(that.dataobj, 0, false, true, that.auditMind)
  219. }
  220. }
  221. })
  222. }
  223. },
  224. //通过
  225. passSubmit() {
  226. var that = this
  227. if (this.title == '驳回原因(驳回)') {
  228. this.rejectSubmit()
  229. } else {
  230. this.show = false
  231. uni.showModal({
  232. content: "是否确定通过?",
  233. showCancel: true,
  234. confirmText: '确定',
  235. success: function(res) {
  236. if (res.confirm) {
  237. that.audit(that.dataobj, 0, true, 2, that.auditMind)
  238. }
  239. }
  240. })
  241. }
  242. },
  243. //审核方法
  244. audit(list, index, status, status2, reason) {
  245. uni.showLoading({
  246. title: "审核中"
  247. })
  248. let that = this
  249. this.$api.doRequest('post', '/newWorkflow/api/handle', {
  250. taskId: list.taskId,
  251. approved: status,
  252. auditMind: this.auditMind ,
  253. needReapply: status2 != undefined ? true : false,
  254. }).then(res => {
  255. if (status == true) {
  256. this.$api.msg('通过成功')
  257. } else if (status == false) {
  258. this.$api.msg('驳回成功')
  259. }
  260. setTimeout(function() {
  261. uni.navigateBack()
  262. }, 1000);
  263. })
  264. },
  265. fanHui() {
  266. uni.navigateBack()
  267. },
  268. close() {
  269. this.show = false
  270. },
  271. getList(){
  272. var that =this
  273. this.$api.doRequest('get', '/generalAuditInfo/getGeneralAuditInfo', {
  274. id:this.id
  275. }).then(res => {
  276. this.dataobj=res.data.data
  277. this.$api.doRequest('get', '/appendix/query/getFileList', {
  278. appendixIds: that.dataobj.addressUrl
  279. }).then(res1 => {
  280. that.imglist = res1.data.data
  281. for (let i = 0; i < that.imglist.length; i++) {//获取后缀
  282. if (that.imglist[i].appendixName) {
  283. let index = that.imglist[i].appendixName.lastIndexOf(".")
  284. that.imglist[i].type = that.imglist[i].appendixName.substring(index+1)
  285. }
  286. }
  287. })
  288. // 查流程
  289. this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
  290. businessCode: 'GENERAL-AUDIT-APPROVE',
  291. tmpCompId: uni.getStorageSync('pcUserInfo').compId
  292. }).then(res1 => {
  293. this.$api.doRequest('get', '/commonUser/getHis', {
  294. workflowId: res1.data.data[0].id,
  295. businessKey: this.id,
  296. branch:that.dataobj.businessType?that.dataobj.businessType:'zt'
  297. }).then(response => {
  298. uni.hideLoading()
  299. for (let i = 0; i < response.data.data.length; i++) {
  300. this.$set(response.data.data[i], 'status', 'question')
  301. console.log(response.data.data[i].workflowHistoricTasks, i)
  302. if (response.data.data[i].commonStaffs) {
  303. response.data.data[i].showflow = false
  304. response.data.data[i].operatorTitle = response.data.data[i]
  305. .desc.substring(0, 2)
  306. response.data.data[i].operatorName = response.data.data[i]
  307. .desc
  308. response.data.data[i].staffscontent = '共' + response.data
  309. .data[i].commonStaffs.length + '人,当前审核' + response.data
  310. .data[i].workflowHistoricTasks.length + '人'
  311. if (response.data.data[i].workflowHistoricTasks && response
  312. .data.data[i].workflowHistoricTasks.length > 0) {
  313. if (response.data.data[i].workflowHistoricTasks
  314. .length != response.data.data[i].commonStaffs
  315. .length) {
  316. // response.data.data[i].status='question'
  317. this.$set(response.data.data[i], 'status',
  318. 'question')
  319. } else {
  320. this.$set(response.data.data[i], 'status',
  321. 'success')
  322. // response.data.data[i].status='success'
  323. }
  324. response.data.data[i].workflowlen = response.data.data[
  325. i].workflowHistoricTasks.length
  326. var workflowdata = response.data.data[i]
  327. .workflowHistoricTasks
  328. var staffsdata = response.data.data[i].commonStaffs
  329. for (let q = 0; q < staffsdata.length; q++) {
  330. staffsdata[q].status = false
  331. staffsdata[q].staffTitle = staffsdata[q].staffName
  332. for (let k = 0; k < workflowdata.length; k++) {
  333. if (staffsdata[q].staffId == workflowdata[k]
  334. .operatorId) {
  335. staffsdata[q].status = true
  336. }
  337. }
  338. }
  339. }
  340. response.data.data[i].commonStaffs1 = response.data.data[i]
  341. .commonStaffs
  342. } else {
  343. if (response.data.data[i].workflowHistoricTasks && response
  344. .data.data[i].workflowHistoricTasks.length > 0) {
  345. var len = response.data.data[i].workflowHistoricTasks
  346. .length - 1
  347. if (response.data.data[i].workflowHistoricTasks[len]
  348. .approved) {
  349. this.$set(response.data.data[i], 'status',
  350. 'success')
  351. } else {
  352. this.$set(response.data.data[i], 'status', 'error')
  353. }
  354. response.data.data[i].operatorTitle = response.data
  355. .data[i].workflowHistoricTasks[len].operatorName
  356. .substring(response.data.data[i]
  357. .workflowHistoricTasks[0].operatorName.length -
  358. 2)
  359. response.data.data[i].operatorName = response.data
  360. .data[i].workflowHistoricTasks[len].operatorName
  361. var time = new Date(response.data.data[i]
  362. .workflowHistoricTasks[len].claimTime)
  363. .getTime()
  364. response.data.data[i].updateDate = this.$u.timeFormat(
  365. time, 'mm.dd hh:MM')
  366. response.data.data[i].auditMind = response.data.data[i]
  367. .workflowHistoricTasks[len].auditMind
  368. } else {
  369. this.$set(response.data.data[i], 'status', 'question')
  370. // response.data.data[i].status='question'
  371. if (response.data.data[i].desc == '总经理助理审核') {
  372. response.data.data[i].operatorTitle = '总助'
  373. } else if (response.data.data[i].desc == '杜大光审核') {
  374. response.data.data[i].operatorTitle = '大光'
  375. } else {
  376. response.data.data[i].operatorTitle = response.data
  377. .data[i].desc.substring(0, 2)
  378. }
  379. response.data.data[i].operatorName = response.data
  380. .data[i].desc
  381. var time1 = new Date(response.data.data[i].updateDate)
  382. .getTime()
  383. response.data.data[i].updateDate = this.$u.timeFormat(
  384. time1, 'mm.dd hh:MM')
  385. response.data.data[i].auditMind = ''
  386. }
  387. }
  388. }
  389. console.log(response.data.data)
  390. for(let i = 0 ;i<response.data.data.length;i++){
  391. if(response.data.data[i].status == "error"){
  392. this.auditCheck = "error"
  393. break;
  394. }else if(response.data.data[i].status == "question"){
  395. this.auditCheck = "question"
  396. break;
  397. }else{
  398. this.auditCheck = "success"
  399. }
  400. }
  401. this.auditList = response.data.data
  402. var time2 = new Date(this.dataobj.createDate).getTime()
  403. var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
  404. this.auditList.unshift({
  405. operatorTitle: this.dataobj.creater.substring(0, 2),
  406. operatorName: this.dataobj.creater,
  407. updateDate: time3,
  408. auditMind: '',
  409. desc: '发起申请',
  410. showflow: false,
  411. commonStaffs1: null,
  412. commonStaffs: null,
  413. workflowHistoricTasks: [],
  414. status: 'success'
  415. })
  416. })
  417. })
  418. })
  419. }
  420. }
  421. }
  422. </script>
  423. <style lang="scss" scoped>
  424. .bottom-btn {
  425. width: 100%;
  426. position: fixed;
  427. bottom: 0;
  428. display: flex;
  429. z-index: 2;
  430. left: 0;
  431. background-color: #f8f8f8;
  432. flex-direction: column;
  433. .btn1,
  434. .btn2 {
  435. width: 100%;
  436. margin-bottom: 26rpx;
  437. border-radius: 90rpx;
  438. }
  439. .btn1 {
  440. background: white;
  441. color: #00C265;
  442. }
  443. }
  444. .content2 {
  445. background: white;
  446. margin: 20rpx 0;
  447. border-radius: 20rpx;
  448. padding: 20rpx;
  449. .row {
  450. display: flex;
  451. .left {
  452. display: flex;
  453. align-items: center;
  454. .item1 {
  455. position: relative;
  456. .item-content {
  457. background: #617AE0;
  458. width: 44px;
  459. height: 44px;
  460. border-radius: 22px;
  461. line-height: 44px;
  462. text-align: center;
  463. font-size: 15px;
  464. color: #fff;
  465. }
  466. .status {
  467. position: absolute;
  468. border-radius: 50%;
  469. padding: 0px 2px;
  470. right: -3px;
  471. bottom: -3px;
  472. background: #fff;
  473. }
  474. .status.success {
  475. border: 1px solid rgb(60, 156, 255);
  476. }
  477. .status.error {
  478. border: 1px solid rgb(245, 108, 108);
  479. }
  480. .status.question {
  481. border: 1px solid #f9ae3d;
  482. }
  483. }
  484. }
  485. .right {
  486. width: 80%;
  487. // color: #B0B1B5;
  488. margin-top: 10px;
  489. .right-content {
  490. background: #F2F3F7;
  491. margin-left: 10px;
  492. margin-top: 10px;
  493. padding: 10px;
  494. border-radius: 5px;
  495. color: #B0B1B5;
  496. }
  497. .right-item {
  498. display: flex;
  499. justify-content: space-between;
  500. .time {
  501. color: #999;
  502. }
  503. .item2 {
  504. margin-left: 20rpx;
  505. margin-top: -7px;
  506. .name {
  507. font-size: 28rpx;
  508. font-weight: 800;
  509. margin-bottom: 4px;
  510. }
  511. .status.success {
  512. color: #6CC48C;
  513. }
  514. .status.error {
  515. color: rgb(245, 108, 108);
  516. }
  517. .status.question {
  518. color: #f9ae3d;
  519. }
  520. }
  521. }
  522. }
  523. }
  524. .row2 {
  525. display: flex;
  526. .item-content {
  527. background: #22C572;
  528. width: 30px;
  529. height: 30px;
  530. border-radius: 50%;
  531. line-height: 30px;
  532. text-align: center;
  533. font-size: 12px;
  534. color: #fff;
  535. padding: 0 2px;
  536. margin: 0 auto;
  537. }
  538. .status {
  539. position: absolute;
  540. top: 0;
  541. right: 0;
  542. }
  543. }
  544. .row-line {
  545. width: 1px;
  546. height: 30px;
  547. background: #F2F2F2;
  548. margin: 10rpx 50rpx;
  549. }
  550. .audit {
  551. margin-top: 20rpx;
  552. }
  553. }
  554. .u-form {
  555. margin: 20rpx;
  556. background: #fff;
  557. border-radius: 10px;
  558. padding: 30rpx 10px;
  559. .u-form-item {
  560. line-height: 30px;
  561. padding: 0px 0;
  562. font-size: 26rpx;
  563. }
  564. }
  565. .u-textarea-style {
  566. margin: 20rpx;
  567. background: #F9F9FA;
  568. border-radius: 10px;
  569. border: 1px solid #EEEEEE;
  570. padding: 10rpx 20rpx;
  571. position: relative;
  572. height:240px;
  573. /deep/.uni-textarea-textarea{
  574. width: 80%;
  575. }
  576. .right-bottom {
  577. position: absolute;
  578. right: 20rpx;
  579. bottom: 20rpx;
  580. color: #AFB3BF;
  581. }
  582. }
  583. .form_top {
  584. border-bottom: 1px solid #F5F6FA;
  585. padding-bottom: 10px;
  586. margin-bottom: 18rpx;
  587. font-size: 30rpx;
  588. font-weight: 600;
  589. }
  590. .form_view{
  591. margin: 20rpx 0;
  592. border-radius: 20rpx;
  593. background: #F9F9FA;
  594. padding: 30rpx 20rpx;
  595. margin-top: 30rpx;
  596. }
  597. .label_css {
  598. font-size: 26rpx;
  599. color: #878C9C;
  600. }
  601. .input_css {
  602. font-size: 20rpx;
  603. }
  604. .img_item {
  605. display: flex;
  606. width: 100%;
  607. margin: 10px 0;
  608. padding: 0 10rpx;
  609. .imgsign{
  610. width: 25px;
  611. height: 25px;
  612. margin-top: 6px;
  613. }
  614. .char_css {
  615. font-size: 28rpx;
  616. font-weight: 600;
  617. display: -webkit-box;
  618. overflow: hidden;
  619. /*! autoprefixer: off; */
  620. -webkit-box-orient: vertical;
  621. -webkit-line-clamp: 1;
  622. -webkit-box-orient: vertical;
  623. text-overflow: ellipsis;
  624. word-break: break-all;
  625. }
  626. .img_size{
  627. color: #B0B3BF;
  628. font-size: 12px;
  629. margin-top: 5px;
  630. }
  631. .img_dowload {
  632. width: 14%;
  633. color: #22C572;
  634. text-align: right;
  635. }
  636. }
  637. .shade {
  638. position: fixed;
  639. top: 0;
  640. left: 0;
  641. height: 100%;
  642. width: 100%;
  643. background: rgba(0, 0, 0, 0.4);
  644. z-index: 3;
  645. .wrap {
  646. position: absolute;
  647. left: 0;
  648. top: 0;
  649. right: 0;
  650. bottom: 0;
  651. margin: auto;
  652. background: #fff;
  653. width: calc(100% - 198rpx);
  654. height: 700rpx;
  655. border-radius: 20rpx;
  656. .alert-top {
  657. padding: 33rpx;
  658. display: flex;
  659. justify-content: center;
  660. align-items: center;
  661. position: relative;
  662. }
  663. .title {
  664. font-size: 32rpx;
  665. font-weight: 600;
  666. color: #333333;
  667. }
  668. .close {
  669. position: absolute;
  670. right: 33rpx;
  671. }
  672. }
  673. }
  674. .cancel,
  675. .confirm {
  676. position: absolute;
  677. display: inline-block;
  678. width: 50%;
  679. text-align: center;
  680. bottom: 0;
  681. padding: 10px;
  682. border-top: 1px solid #eee;
  683. font-size: 34rpx;
  684. }
  685. .cancel {
  686. left: 0;
  687. border-right: 1px solid #eee;
  688. color: #AFB3BF;
  689. }
  690. .confirm {
  691. right: 0;
  692. color: #22C572;
  693. }
  694. .topInfo {
  695. height: 210rpx;
  696. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  697. padding: 30rpx;
  698. .topInfo-item {
  699. height: 150rpx;
  700. background-color: #FFFFFF;
  701. border-radius: 20rpx;
  702. padding: 40rpx;
  703. .logo {
  704. width: 40rpx;
  705. height: 40rpx;
  706. margin-top: 8rpx;
  707. }
  708. .infoText {
  709. font-size: 36rpx;
  710. font-weight: 600;
  711. margin-left: 20rpx;
  712. }
  713. .infoData {
  714. color: #878C9C;
  715. font-size: 26rpx;
  716. margin-top: 10rpx;
  717. }
  718. }
  719. }
  720. </style>