createList.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  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">
  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.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
  257. })
  258. this.teamUserShow = true
  259. })
  260. },
  261. handleConfirm(data){
  262. data.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
  263. this.$api.put('/core/user/team',data).then(({data:res})=>{
  264. if(res.code!==0) return this.$showToast(res.msg)
  265. this.$showToast('保存成功')
  266. this.teamInfoShow = false;
  267. })
  268. },
  269. handleAnswer(item){
  270. uni.navigateTo({
  271. url:'/pagesPublish/questionnaireFill?teamQuestionnaireId='+item.teamQuestionnaireId+'&teamId='+item.teamId+'&type='+item.type
  272. })
  273. },
  274. createReport(item){
  275. this.dto = item;
  276. this.createReportConfirm(item.teamQuestionnaireId)
  277. },
  278. createReportConfirm(teamQuestionnaireId){
  279. this.$api.get(`/core/team/questionnaire/generateReportCheck/${teamQuestionnaireId}`).then(({data:res})=>{
  280. if(res.code===0&&res.data===0){
  281. this.createReportFn(teamQuestionnaireId);
  282. }else if(res.code===0&&res.data>0){
  283. uni.showModal({
  284. title:'生成报告',
  285. content:`该问卷已生成${res.data??0}份报告,是否再次生成新报告?`,
  286. confirmColor:'#199C9C',
  287. success: (res) => {
  288. if(res.confirm){
  289. this.createReportFn(teamQuestionnaireId);
  290. }
  291. }
  292. })
  293. }else if(res.code!==0){
  294. uni.showModal({
  295. title:'生成报告',
  296. content:res.msg,
  297. showCancel:false,
  298. confirmColor:'#199C9C'
  299. })
  300. }
  301. this.show = false;
  302. })
  303. },
  304. createReportFn(teamQuestionnaireId){
  305. this.$api.get(`/core/team/questionnaire/genReport/${teamQuestionnaireId}`).then(({data:res})=>{
  306. this.show = false;
  307. uni.navigateTo({
  308. url:'/pagesHome/reportResult?result='+res.code+'&info='+encodeURIComponent(JSON.stringify(this.dto))
  309. })
  310. })
  311. },
  312. sendReport(item){
  313. },
  314. addUser(){
  315. uni.navigateTo({
  316. url:'/pagesMy/teamUser?type=select',
  317. events:{
  318. selectUserConfirm: data => {
  319. data.forEach((d,i)=>(this.$set(data[i],'status',0)));
  320. let newUser = this.filterUsers(this.teamUserList,data)
  321. this.teamUserList = [...this.teamUserList,...newUser];
  322. }
  323. }
  324. })
  325. },
  326. filterUsers(originArr,selectArr){
  327. const aValuesToExclude = new Set(originArr.map(item => item.id));
  328. return selectArr.filter(item => {
  329. return !aValuesToExclude.has(item.id);
  330. });
  331. },
  332. userConfirm(){
  333. if(this.teamUserList.length===0) return this.$showToast('至少保留一位团队人员');
  334. this.$api.get('/core/team/questionnaire/'+this.dto.teamQuestionnaireId).then(({data:res})=>{
  335. if(res.code!==0) return this.$showToast(res.msg)
  336. let dto = res.data;
  337. dto.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
  338. dto.delMemberIds = [...new Set(this.delMemberIds)];
  339. dto.memberList = this.teamUserList;
  340. dto.type = 2;
  341. delete dto.memberInfos;
  342. this.$api.put('/core/team/questionnaire/updateMembers',dto).then(({data:resu})=>{
  343. if(resu.code!==0) return this.$showToast(resu.msg)
  344. this.$showToast('操作成功')
  345. this.teamUserShow = false;
  346. // this.show = false;
  347. })
  348. })
  349. },
  350. deleteUser(data){
  351. let u = this.originTeamUserList.find(u=>u.id===data.item.id);
  352. if(u) this.delMemberIds=[...this.delMemberIds,u.id]
  353. this.teamUserList.splice(data.index,1);
  354. }
  355. }
  356. }
  357. </script>
  358. <style scoped lang="scss">
  359. .share-btn {
  360. background-color: transparent;
  361. border: none;
  362. padding: 0;
  363. margin: 0;
  364. line-height: 1;
  365. display: flex;
  366. flex-direction: column;
  367. justify-content: center;
  368. align-items: center;
  369. &::after {
  370. border: none;
  371. }
  372. }
  373. .qbox {
  374. width: 100%;
  375. height: 100%;
  376. .list {
  377. flex: 1;
  378. margin-top: 20rpx;
  379. &-item {
  380. width: 100%;
  381. background: #ffffff;
  382. border-radius: 24rpx;
  383. margin-top: 20rpx;
  384. padding: 36rpx 24rpx 19rpx;
  385. box-sizing: border-box;
  386. position: relative;
  387. display: block;
  388. &:first-child{
  389. margin-top: 0;
  390. }
  391. .expand {
  392. width: 32rpx;
  393. height: 32rpx;
  394. position: absolute;
  395. top: 36rpx;
  396. right: 32rpx;
  397. }
  398. .title {
  399. width: calc(100% - 128rpx);
  400. font-family: PingFang-SC, PingFang-SC;
  401. font-weight: bold;
  402. font-size: 32rpx;
  403. color: #002846;
  404. line-height: 32rpx;
  405. }
  406. .name {
  407. font-family: PingFangSC, PingFang SC;
  408. font-weight: 400;
  409. font-size: 24rpx;
  410. color: #667e90;
  411. line-height: 24rpx;
  412. margin-top: 35rpx;
  413. }
  414. .progress {
  415. margin-top: 36rpx;
  416. &-left {
  417. width: calc(100% - 95rpx);
  418. &-text {
  419. font-family: PingFangSC, PingFang SC;
  420. font-weight: 400;
  421. font-size: 24rpx;
  422. color: #667e90;
  423. line-height: 24rpx;
  424. }
  425. &-box {
  426. flex: 1;
  427. position: relative;
  428. height: 12rpx;
  429. background: #f0f2f8;
  430. border-radius: 6rpx;
  431. &-current {
  432. height: 12rpx;
  433. background: #7cc5c5;
  434. border-radius: 6rpx;
  435. position: absolute;
  436. top: 0;
  437. left: 0;
  438. }
  439. }
  440. }
  441. &-right {
  442. font-size: 24rpx;
  443. line-height: 24rpx;
  444. color: #95a5b1;
  445. span {
  446. font-size: 24rpx;
  447. line-height: 24rpx;
  448. color: #002846;
  449. }
  450. }
  451. }
  452. .bottom {
  453. margin-top: 30rpx;
  454. border-top: 1rpx solid #efefef;
  455. padding-top: 20rpx;
  456. &-left {
  457. font-family: PingFangSC, PingFang SC;
  458. font-weight: 400;
  459. font-size: 24rpx;
  460. color: #667e90;
  461. line-height: 24rpx;
  462. }
  463. &-right {
  464. border-radius: 32rpx;
  465. background: linear-gradient(90deg, #33a7a7 0%, #4db2b2 100%);
  466. padding: 19rpx 22rpx;
  467. font-family: PingFangSC, PingFang SC;
  468. font-weight: 400;
  469. font-size: 26rpx;
  470. color: #ffffff;
  471. line-height: 26rpx;
  472. letter-spacing: 2rpx;
  473. }
  474. }
  475. }
  476. }
  477. .empty {
  478. flex: 1;
  479. }
  480. .dialog {
  481. position: fixed;
  482. left: 0;
  483. right: 0;
  484. top: 0;
  485. bottom: 0;
  486. // background: rgba(0, 0, 0, 0.4);
  487. z-index: 1001;
  488. justify-content: flex-end;
  489. .dialog-background {
  490. position: absolute; /* 相对于父级 dialog 定位 */
  491. top: 0;
  492. left: 0;
  493. right: 0;
  494. bottom: 0;
  495. background: rgba(0, 0, 0, 0.4); /* 背景颜色放在这里 */
  496. z-index: -1; /* 确保背景在 dbox 之下 */
  497. }
  498. .dbox {
  499. width: 100%;
  500. height: 738rpx;
  501. background: #ffffff;
  502. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0, 0, 0, 0.07);
  503. border-radius: 24rpx 24rpx 0rpx 0rpx;
  504. padding: 48rpx 30rpx 0;
  505. box-sizing: border-box;
  506. z-index: 0;
  507. &-top {
  508. &-title {
  509. width: calc(100% - 60rpx);
  510. font-family: PingFang-SC, PingFang-SC;
  511. font-weight: bold;
  512. font-size: 32rpx;
  513. color: #002846;
  514. line-height: 40rpx;
  515. }
  516. &-expand {
  517. width: 32rpx;
  518. height: 32rpx;
  519. transform: rotate(180deg);
  520. }
  521. }
  522. &-name {
  523. font-family: PingFangSC, PingFang SC;
  524. font-weight: 400;
  525. font-size: 24rpx;
  526. color: #667e90;
  527. line-height: 24rpx;
  528. margin-top: 24rpx;
  529. }
  530. &-progress {
  531. margin-top: 36rpx;
  532. &-left {
  533. width: calc(100% - 95rpx);
  534. &-text {
  535. font-family: PingFangSC, PingFang SC;
  536. font-weight: 400;
  537. font-size: 24rpx;
  538. color: #667e90;
  539. line-height: 24rpx;
  540. }
  541. &-box {
  542. flex: 1;
  543. position: relative;
  544. height: 12rpx;
  545. background: #f0f2f8;
  546. border-radius: 6rpx;
  547. &-current {
  548. height: 12rpx;
  549. background: #7cc5c5;
  550. border-radius: 6rpx;
  551. position: absolute;
  552. top: 0;
  553. left: 0;
  554. }
  555. }
  556. }
  557. &-right {
  558. font-size: 24rpx;
  559. line-height: 24rpx;
  560. color: #95a5b1;
  561. span {
  562. font-size: 24rpx;
  563. line-height: 24rpx;
  564. color: #002846;
  565. }
  566. }
  567. }
  568. &-menu {
  569. margin-top: 43rpx;
  570. overflow: hidden;
  571. margin-left: -30rpx;
  572. &-pre {
  573. width: calc(25% - 30rpx);
  574. background: #f7f8fa;
  575. border-radius: 24rpx;
  576. padding: 30rpx 20rpx;
  577. margin-top: 24rpx;
  578. margin-left: 30rpx;
  579. box-sizing: border-box;
  580. float: left;
  581. image {
  582. width: 42rpx;
  583. height: 42rpx;
  584. }
  585. text {
  586. font-family: PingFangSC, PingFang SC;
  587. font-weight: 400;
  588. font-size: 24rpx;
  589. color: #002846;
  590. line-height: 24rpx;
  591. text-align: center;
  592. margin-top: 24rpx;
  593. }
  594. }
  595. }
  596. }
  597. &-box {
  598. width: 100%;
  599. height: 1200rpx;
  600. background: #f7f7f7;
  601. padding-top: 38rpx;
  602. border-radius: 24rpx 24rpx 0rpx 0rpx;
  603. box-sizing: border-box;
  604. position: relative;
  605. overflow-y: auto;
  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. }
  615. &-close {
  616. width: 48rpx;
  617. height: 48rpx;
  618. position: absolute;
  619. top: 30rpx;
  620. right: 30rpx;
  621. }
  622. &-teaminfo {
  623. margin-top: 40rpx;
  624. }
  625. }
  626. }
  627. .alert {
  628. position: fixed;
  629. left: 0;
  630. right: 0;
  631. top: 0;
  632. bottom: 0;
  633. z-index: 1002;
  634. background: rgba(0, 0, 0, 0.4);
  635. &-box {
  636. width: calc(100% - 100rpx);
  637. padding: 54rpx 99rpx 48rpx;
  638. box-sizing: border-box;
  639. position: relative;
  640. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/alert_bg.png') no-repeat;
  641. background-size: 100% 100%;
  642. &-title {
  643. font-family: PingFang-SC, PingFang-SC;
  644. font-weight: bold;
  645. font-size: 36rpx;
  646. color: #002846;
  647. line-height: 56rpx;
  648. text-align: center;
  649. }
  650. &-close {
  651. width: 48rpx;
  652. height: 48rpx;
  653. position: absolute;
  654. top: 40rpx;
  655. right: 30rpx;
  656. }
  657. &-text {
  658. font-family: PingFangSC, PingFang SC;
  659. font-weight: 400;
  660. font-size: 30rpx;
  661. color: #002846;
  662. line-height: 48rpx;
  663. text-align: center;
  664. margin-top: 32rpx;
  665. }
  666. .zt_btn {
  667. margin-top: 66rpx;
  668. }
  669. }
  670. }
  671. }
  672. </style>