createList.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <template>
  2. <view class="qbox adffc">
  3. <view class="list" v-if="list.length">
  4. <up-list @scrolltolower="scrolltolower" style="height: 100%">
  5. <up-list-item class="list-item" v-for="(item, index) in list" :key="index">
  6. <view @click.prevent="showDialog(item)">
  7. <image class="expand" :src="imgBase + 'questionnaire_icon_down.png'"></image>
  8. <view class="title">{{ item.title || '' }}</view>
  9. <view class="name">团队名称:{{ item.teamName || '' }}</view>
  10. <view class="progress adfacjb" @click.stop="showTeamUser(item)">
  11. <view class="progress-left adfac">
  12. <view class="progress-left-text">作答进度:</view>
  13. <view class="progress-left-box">
  14. <view class="progress-left-box-current" :style="{ width: (item.finishNum / item.userNum) * 100 + '%' }"></view>
  15. </view>
  16. </view>
  17. <view class="progress-right">
  18. <span>{{ item.finishNum }}/</span>
  19. {{ item.userNum }}
  20. </view>
  21. </view>
  22. <view class="bottom adfacjb">
  23. <view class="bottom-left">截止时间:{{ item.endTime }}</view>
  24. <view class="bottom-right" v-if="item.status === 0 && item.type == 1" @click.stop="handleAnswer(item)">立即作答</view>
  25. <view class="bottom-right" v-else-if="item.status === 1 && !item.fileUrl" @click.stop="createReport(item)">生成报告</view>
  26. </view>
  27. </view>
  28. </up-list-item>
  29. </up-list>
  30. </view>
  31. <view class="empty" v-else>
  32. <page-empty></page-empty>
  33. </view>
  34. <view class="dialog adffc" v-if="show">
  35. <view class="dialog-background" @click="show=false"></view>
  36. <view class="dbox">
  37. <view class="dbox-top adfacjb">
  38. <view class="dbox-top-title">{{ dto.title || '' }}</view>
  39. <image class="dbox-top-expand" :src="imgBase + 'questionnaire_icon_down.png'" @click="show = false"></image>
  40. </view>
  41. <view class="dbox-name">团队名称:{{ dto.teamName || '' }}</view>
  42. <view class="dbox-progress adfacjb">
  43. <view class="dbox-progress-left adfac">
  44. <view class="dbox-progress-left-text">作答进度:</view>
  45. <view class="dbox-progress-left-box">
  46. <view class="dbox-progress-left-box-current" :style="{ width: (dto.finishNum / dto.userNum) * 100 + '%' }"></view>
  47. </view>
  48. </view>
  49. <view class="dbox-progress-right">
  50. <span>{{ dto.finishNum }}/</span>
  51. {{ dto.userNum }}
  52. </view>
  53. </view>
  54. <view class="dbox-menu">
  55. <view class="dbox-menu-pre adffcac" v-for="(item, index) in menuListCopy" :key="index" @click="handleMenuClick(item, index)">
  56. <template v-if="item.text === '分享问卷'">
  57. <button class="share-btn" open-type="share">
  58. <image :src="item.img"></image>
  59. <text>{{ item.text }}</text>
  60. </button>
  61. </template>
  62. <template v-else>
  63. <image :src="item.img"></image>
  64. <text>{{ item.text }}</text>
  65. </template>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="dialog adffc" v-if="teamInfoShow" @click.self="teamInfoShow=false">
  71. <view class="dialog-background" @click="teamInfoShow=false"></view>
  72. <view class="dialog-box adffc">
  73. <view class="dialog-box-title">团队信息</view>
  74. <image class="dialog-box-close" :src="imgBase + 'remind_close.png'" @click="teamInfoShow = false"></image>
  75. <view class="dialog-box-teaminfo">
  76. <cus-team-info-fill ref="teamRef" confirmText="保存" @handleConfirm="handleConfirm"></cus-team-info-fill>
  77. </view>
  78. </view>
  79. </view>
  80. <div class="alert adffcacjc" v-if="alertShow">
  81. <div class="alert-box">
  82. <div class="alert-box-title">温馨提示</div>
  83. <image :src="imgBase + 'remind_close.png'" class="alert-box-close" @click="alertShow = false"></image>
  84. <div class="alert-box-text">
  85. 该问卷尚未生成报告
  86. <br />
  87. 请确认团队人员是否全部作答
  88. <br />
  89. 完成后点击生成报告
  90. </div>
  91. <div class="zt_btn" @click="alertShow = false">我知道了</div>
  92. </div>
  93. </div>
  94. <cus-team-user
  95. :deluser="true"
  96. :show="teamUserShow"
  97. :list="teamUserList"
  98. @close="teamUserShow = false"
  99. @addUser="addUser"
  100. @handleConfirm="userConfirm"
  101. @deleteUser="deleteUser"
  102. ></cus-team-user>
  103. </view>
  104. </template>
  105. <script>
  106. import PageEmpty from '@/components/pageEmpty/index.vue'
  107. import CusTeamUser from '@/components/CusTeamUser/index.vue'
  108. import CusTeamInfoFill from '@/components/CusTeamInfoFill/index.vue'
  109. export default {
  110. components:{ PageEmpty, CusTeamUser, CusTeamInfoFill },
  111. props:{
  112. list:{
  113. typeof:Array,
  114. default:[]
  115. }
  116. },
  117. data(){
  118. return {
  119. show:false,
  120. teamInfoShow:false,
  121. teamUserShow:false,
  122. alertShow:false,
  123. dto:null,
  124. menuList:[
  125. {
  126. img:this.$imgBase+'questionnaire_edit.png',
  127. text:'编辑问卷'
  128. },
  129. {
  130. img:this.$imgBase+'questionnaire_share.png',
  131. text:'分享问卷'
  132. },
  133. {
  134. img:this.$imgBase+'questionnaire_info.png',
  135. text:'团队信息'
  136. },
  137. {
  138. img:this.$imgBase+'questionnaire_copy.png',
  139. text:'复制链接'
  140. },
  141. {
  142. img:this.$imgBase+'questionnaire_users.png',
  143. text:'团队人员'
  144. },
  145. {
  146. img:this.$imgBase+'questionnaire_report.png',
  147. text:'生成报告'
  148. }
  149. ],
  150. menuListCopy:[],
  151. teamUserList:[],
  152. originTeamUserList:[],
  153. teamScaleData:[],
  154. teamLevelData:[],
  155. categoryData:[],
  156. delMemberIds:[],
  157. }
  158. },
  159. methods:{
  160. scrolltolower(){
  161. this.$emit('scrolltolower')
  162. },
  163. showDialog(item){
  164. this.dto = item;
  165. if(this.dto.type==1) this.menuListCopy = this.menuList.filter((_, index) => index !== 4);
  166. else this.menuListCopy = JSON.parse(JSON.stringify(this.menuList))
  167. this.show = true;
  168. this.$emit('showDialogFn',item);
  169. },
  170. async getTeamScaleData(){
  171. return new Promise((resolve,reject)=>{
  172. this.$api.get('/getListByType/team_scale').then(({data:res})=>{
  173. if(res.code!==0) return this.$showToast(res.msg)
  174. this.teamScaleData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
  175. resolve()
  176. })
  177. })
  178. },
  179. async getTeamHierarchyData(){
  180. return new Promise((resolve,reject)=>{
  181. this.$api.get('/getListByType/team_hierarchy').then(({data:res})=>{
  182. if(res.code!==0) return this.$showToast(res.msg)
  183. this.teamLevelData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
  184. resolve()
  185. })
  186. })
  187. },
  188. async getUserCategoryData(){
  189. return new Promise((resolve,reject)=>{
  190. this.$api.get('/getListByType/UserCategory').then(({data:res})=>{
  191. if(res.code!==0) return this.$showToast(res.msg)
  192. this.categoryData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
  193. resolve()
  194. })
  195. })
  196. },
  197. async handleMenuClick(item){
  198. if(item.text==='编辑问卷'){
  199. uni.navigateTo({
  200. url:`/pagesHome/questionnaireEdit?teamQuestionnaireId=${this.dto.teamQuestionnaireId}&type=${this.dto.type}&questionnaireName=${this.dto.title}&isEdit=true`
  201. })
  202. this.show = false;
  203. }else if(item.text==='分享问卷'){
  204. }else if(item.text==='团队信息'){
  205. this.teamInfoShow = true;
  206. await this.getTeamScaleData()
  207. await this.getTeamHierarchyData()
  208. this.$api.get(`/core/user/team/${this.dto.teamId}`).then(({data:res})=>{
  209. if(res.code!==0) return this.$showToast(res.msg)
  210. this.$refs.teamRef.setTeamInfo(res.data)
  211. this.$refs.teamRef.teamInfo.functionIds = res.data.functions.map(f=>f.id);
  212. this.$refs.teamRef.teamInfo.orgIds = res.data.organizations.map(o=>o.id);
  213. this.$refs.teamRef.areaText = res.data.provinceName+res.data.cityName;
  214. this.$refs.teamRef.industryText = res.data.industryName;
  215. this.$refs.teamRef.functionTypeText = res.data.functions.map(f=>f.functionName).join('、');
  216. this.$refs.teamRef.architectureTypeText = res.data.organizations.map(f=>f.orgName).join('、');
  217. this.$refs.teamRef.teamScaleText = this.teamScaleData.find(d=>d.id==res.data.scale).name;
  218. this.$refs.teamRef.teamLevelText = this.teamLevelData.find(d=>d.id==res.data.hierarchy).name;
  219. })
  220. }
  221. else if(item.text==='复制链接') {
  222. let shareUserId = JSON.parse(uni.getStorageSync('userInfo')).id;
  223. let res = await this.$api.post('/wx/genInviteLink',{
  224. 'path': '',
  225. 'query': `shareTQId=${this.dto.teamQuestionnaireId}&shareUserId=${shareUserId}&shareType=Questionnaire`,
  226. 'env_version': 'trial'//默认"release",正式版"release",体验版"trial",开发版"develop"
  227. });
  228. if(res.data.code!==0) return this.$showToast(res.data.msg)
  229. uni.setClipboardData({
  230. data:res.data.data.openlink,
  231. success: () => {
  232. this.$showToast('复制成功')
  233. },
  234. fail: () => {
  235. this.$showToast('复制失败')
  236. }
  237. })
  238. }
  239. else if(item.text==='团队人员'){
  240. this.showTeamUser(this.dto);
  241. }
  242. else if(item.text==='生成报告'){
  243. if(this.dto.status==0) return this.$showToast('问卷未完成,全部团队人员作答后才能生成报告')
  244. this.createReportConfirm(this.dto.teamQuestionnaireId)
  245. }
  246. },
  247. async showTeamUser(item){
  248. if(item.type==1) return
  249. this.dto = item;
  250. await this.getUserCategoryData()
  251. this.$api.get(`/core/member/listByQueTeamId/${this.dto.teamQuestionnaireId}`).then(({data:res})=>{
  252. if(res.code!==0) return this.$showToast(res.msg)
  253. this.teamUserList = res.data;
  254. this.originTeamUserList = res.data;
  255. this.teamUserList.forEach(l=>{
  256. l.emailTM = this.$reg.desensitizeContent(l.email);
  257. l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
  258. })
  259. this.teamUserShow = true
  260. })
  261. },
  262. handleConfirm(data){
  263. data.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
  264. this.$api.put('/core/user/team',data).then(({data:res})=>{
  265. if(res.code!==0) return this.$showToast(res.msg)
  266. this.$showToast('保存成功')
  267. this.teamInfoShow = false;
  268. })
  269. },
  270. handleAnswer(item){
  271. uni.navigateTo({
  272. url:'/pagesPublish/questionnaireFill?teamQuestionnaireId='+item.teamQuestionnaireId+'&teamId='+item.teamId+'&type='+item.type+'&title='+item.title
  273. })
  274. },
  275. createReport(item){
  276. this.dto = item;
  277. this.createReportConfirm(item.teamQuestionnaireId)
  278. },
  279. createReportConfirm(teamQuestionnaireId){
  280. this.$api.get(`/core/team/questionnaire/generateReportCheck/${teamQuestionnaireId}`).then(({data:res})=>{
  281. if(res.code===0&&res.data===0){
  282. this.createReportFn(teamQuestionnaireId);
  283. }else if(res.code===0&&res.data>0){
  284. uni.showModal({
  285. title:'生成报告',
  286. content:`该问卷已生成${res.data??0}份报告,是否再次生成新报告?`,
  287. confirmColor:'#199C9C',
  288. success: (res) => {
  289. if(res.confirm){
  290. this.createReportFn(teamQuestionnaireId);
  291. }
  292. }
  293. })
  294. }else if(res.code!==0){
  295. uni.showModal({
  296. title:'生成报告',
  297. content:res.msg,
  298. showCancel:false,
  299. confirmColor:'#199C9C'
  300. })
  301. }
  302. this.show = false;
  303. })
  304. },
  305. createReportFn(teamQuestionnaireId){
  306. this.$api.get(`/core/team/questionnaire/genReport/${teamQuestionnaireId}`).then(({data:res})=>{
  307. this.show = false;
  308. uni.navigateTo({
  309. url:'/pagesHome/reportResult?result='+res.code+'&info='+encodeURIComponent(JSON.stringify(this.dto))
  310. })
  311. })
  312. },
  313. sendReport(item){
  314. },
  315. addUser(){
  316. uni.navigateTo({
  317. url:'/pagesMy/teamUser?type=select',
  318. events:{
  319. selectUserConfirm: data => {
  320. data.forEach((d,i)=>(this.$set(data[i],'status',0)));
  321. let newUser = this.filterUsers(this.teamUserList,data)
  322. this.teamUserList = [...this.teamUserList,...newUser];
  323. }
  324. }
  325. })
  326. },
  327. filterUsers(originArr,selectArr){
  328. const aValuesToExclude = new Set(originArr.map(item => item.id));
  329. return selectArr.filter(item => {
  330. return !aValuesToExclude.has(item.id);
  331. });
  332. },
  333. userConfirm(){
  334. if(this.teamUserList.length===0) return this.$showToast('至少保留一位团队人员');
  335. this.$api.get('/core/team/questionnaire/'+this.dto.teamQuestionnaireId).then(({data:res})=>{
  336. if(res.code!==0) return this.$showToast(res.msg)
  337. let dto = res.data;
  338. dto.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
  339. dto.delMemberIds = [...new Set(this.delMemberIds)];
  340. dto.memberList = this.teamUserList;
  341. dto.type = 2;
  342. delete dto.memberInfos;
  343. this.$api.put('/core/team/questionnaire/updateMembers',dto).then(({data:resu})=>{
  344. if(resu.code!==0) return this.$showToast(resu.msg)
  345. this.$showToast('操作成功')
  346. this.teamUserShow = false;
  347. // this.show = false;
  348. })
  349. })
  350. },
  351. deleteUser(data){
  352. let u = this.originTeamUserList.find(u=>u.id===data.item.id);
  353. if(u) this.delMemberIds=[...this.delMemberIds,u.id]
  354. this.teamUserList.splice(data.index,1);
  355. }
  356. }
  357. }
  358. </script>
  359. <style scoped lang="scss">
  360. .share-btn {
  361. background-color: transparent;
  362. border: none;
  363. padding: 0;
  364. margin: 0;
  365. line-height: 1;
  366. display: flex;
  367. flex-direction: column;
  368. justify-content: center;
  369. align-items: center;
  370. &::after {
  371. border: none;
  372. }
  373. }
  374. .qbox {
  375. width: 100%;
  376. height: 100%;
  377. .list {
  378. flex: 1;
  379. margin-top: 20rpx;
  380. &-item {
  381. width: 100%;
  382. background: #ffffff;
  383. border-radius: 24rpx;
  384. margin-top: 20rpx;
  385. padding: 36rpx 24rpx 19rpx;
  386. box-sizing: border-box;
  387. position: relative;
  388. display: block;
  389. &:first-child{
  390. margin-top: 0;
  391. }
  392. .expand {
  393. width: 32rpx;
  394. height: 32rpx;
  395. position: absolute;
  396. top: 36rpx;
  397. right: 32rpx;
  398. }
  399. .title {
  400. width: calc(100% - 128rpx);
  401. font-family: PingFang-SC, PingFang-SC;
  402. font-weight: bold;
  403. font-size: 32rpx;
  404. color: #002846;
  405. line-height: 32rpx;
  406. }
  407. .name {
  408. font-family: PingFangSC, PingFang SC;
  409. font-weight: 400;
  410. font-size: 24rpx;
  411. color: #667e90;
  412. line-height: 24rpx;
  413. margin-top: 35rpx;
  414. }
  415. .progress {
  416. margin-top: 36rpx;
  417. &-left {
  418. width: calc(100% - 95rpx);
  419. &-text {
  420. font-family: PingFangSC, PingFang SC;
  421. font-weight: 400;
  422. font-size: 24rpx;
  423. color: #667e90;
  424. line-height: 24rpx;
  425. }
  426. &-box {
  427. flex: 1;
  428. position: relative;
  429. height: 12rpx;
  430. background: #f0f2f8;
  431. border-radius: 6rpx;
  432. &-current {
  433. height: 12rpx;
  434. background: #7cc5c5;
  435. border-radius: 6rpx;
  436. position: absolute;
  437. top: 0;
  438. left: 0;
  439. }
  440. }
  441. }
  442. &-right {
  443. font-size: 24rpx;
  444. line-height: 24rpx;
  445. color: #95a5b1;
  446. span {
  447. font-size: 24rpx;
  448. line-height: 24rpx;
  449. color: #002846;
  450. }
  451. }
  452. }
  453. .bottom {
  454. margin-top: 30rpx;
  455. border-top: 1rpx solid #efefef;
  456. padding-top: 20rpx;
  457. &-left {
  458. font-family: PingFangSC, PingFang SC;
  459. font-weight: 400;
  460. font-size: 24rpx;
  461. color: #667e90;
  462. line-height: 24rpx;
  463. }
  464. &-right {
  465. border-radius: 32rpx;
  466. background: linear-gradient(90deg, #33a7a7 0%, #4db2b2 100%);
  467. padding: 19rpx 22rpx;
  468. font-family: PingFangSC, PingFang SC;
  469. font-weight: 400;
  470. font-size: 26rpx;
  471. color: #ffffff;
  472. line-height: 26rpx;
  473. letter-spacing: 2rpx;
  474. }
  475. }
  476. }
  477. }
  478. .empty {
  479. flex: 1;
  480. }
  481. .dialog {
  482. position: fixed;
  483. left: 0;
  484. right: 0;
  485. top: 0;
  486. bottom: 0;
  487. // background: rgba(0, 0, 0, 0.4);
  488. z-index: 1001;
  489. justify-content: flex-end;
  490. .dialog-background {
  491. position: absolute; /* 相对于父级 dialog 定位 */
  492. top: 0;
  493. left: 0;
  494. right: 0;
  495. bottom: 0;
  496. background: rgba(0, 0, 0, 0.4); /* 背景颜色放在这里 */
  497. z-index: -1; /* 确保背景在 dbox 之下 */
  498. }
  499. .dbox {
  500. width: 100%;
  501. height: 738rpx;
  502. background: #ffffff;
  503. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0, 0, 0, 0.07);
  504. border-radius: 24rpx 24rpx 0rpx 0rpx;
  505. padding: 48rpx 30rpx 0;
  506. box-sizing: border-box;
  507. z-index: 0;
  508. &-top {
  509. &-title {
  510. width: calc(100% - 60rpx);
  511. font-family: PingFang-SC, PingFang-SC;
  512. font-weight: bold;
  513. font-size: 32rpx;
  514. color: #002846;
  515. line-height: 40rpx;
  516. }
  517. &-expand {
  518. width: 32rpx;
  519. height: 32rpx;
  520. transform: rotate(180deg);
  521. }
  522. }
  523. &-name {
  524. font-family: PingFangSC, PingFang SC;
  525. font-weight: 400;
  526. font-size: 24rpx;
  527. color: #667e90;
  528. line-height: 24rpx;
  529. margin-top: 24rpx;
  530. }
  531. &-progress {
  532. margin-top: 36rpx;
  533. &-left {
  534. width: calc(100% - 95rpx);
  535. &-text {
  536. font-family: PingFangSC, PingFang SC;
  537. font-weight: 400;
  538. font-size: 24rpx;
  539. color: #667e90;
  540. line-height: 24rpx;
  541. }
  542. &-box {
  543. flex: 1;
  544. position: relative;
  545. height: 12rpx;
  546. background: #f0f2f8;
  547. border-radius: 6rpx;
  548. &-current {
  549. height: 12rpx;
  550. background: #7cc5c5;
  551. border-radius: 6rpx;
  552. position: absolute;
  553. top: 0;
  554. left: 0;
  555. }
  556. }
  557. }
  558. &-right {
  559. font-size: 24rpx;
  560. line-height: 24rpx;
  561. color: #95a5b1;
  562. span {
  563. font-size: 24rpx;
  564. line-height: 24rpx;
  565. color: #002846;
  566. }
  567. }
  568. }
  569. &-menu {
  570. margin-top: 43rpx;
  571. overflow: hidden;
  572. margin-left: -30rpx;
  573. &-pre {
  574. width: calc(25% - 30rpx);
  575. background: #f7f8fa;
  576. border-radius: 24rpx;
  577. padding: 30rpx 20rpx;
  578. margin-top: 24rpx;
  579. margin-left: 30rpx;
  580. box-sizing: border-box;
  581. float: left;
  582. image {
  583. width: 42rpx;
  584. height: 42rpx;
  585. }
  586. text {
  587. font-family: PingFangSC, PingFang SC;
  588. font-weight: 400;
  589. font-size: 24rpx;
  590. color: #002846;
  591. line-height: 24rpx;
  592. text-align: center;
  593. margin-top: 24rpx;
  594. }
  595. }
  596. }
  597. }
  598. &-box {
  599. width: 100%;
  600. height: 1200rpx;
  601. background: #f7f7f7;
  602. padding-top: 38rpx;
  603. border-radius: 24rpx 24rpx 0rpx 0rpx;
  604. box-sizing: border-box;
  605. position: relative;
  606. z-index: 1;
  607. &-title {
  608. font-family: PingFang-SC, PingFang-SC;
  609. font-weight: bold;
  610. font-size: 32rpx;
  611. color: #002846;
  612. line-height: 32rpx;
  613. text-align: center;
  614. margin-bottom: 40rpx;
  615. }
  616. &-close {
  617. width: 48rpx;
  618. height: 48rpx;
  619. position: absolute;
  620. top: 30rpx;
  621. right: 30rpx;
  622. }
  623. &-teaminfo {
  624. flex: 1;
  625. overflow-y: auto;
  626. }
  627. }
  628. }
  629. .alert {
  630. position: fixed;
  631. left: 0;
  632. right: 0;
  633. top: 0;
  634. bottom: 0;
  635. z-index: 1002;
  636. background: rgba(0, 0, 0, 0.4);
  637. &-box {
  638. width: calc(100% - 100rpx);
  639. padding: 54rpx 99rpx 48rpx;
  640. box-sizing: border-box;
  641. position: relative;
  642. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/alert_bg.png') no-repeat;
  643. background-size: 100% 100%;
  644. &-title {
  645. font-family: PingFang-SC, PingFang-SC;
  646. font-weight: bold;
  647. font-size: 36rpx;
  648. color: #002846;
  649. line-height: 56rpx;
  650. text-align: center;
  651. }
  652. &-close {
  653. width: 48rpx;
  654. height: 48rpx;
  655. position: absolute;
  656. top: 40rpx;
  657. right: 30rpx;
  658. }
  659. &-text {
  660. font-family: PingFangSC, PingFang SC;
  661. font-weight: 400;
  662. font-size: 30rpx;
  663. color: #002846;
  664. line-height: 48rpx;
  665. text-align: center;
  666. margin-top: 32rpx;
  667. }
  668. .zt_btn {
  669. margin-top: 66rpx;
  670. }
  671. }
  672. }
  673. }
  674. </style>