createList.vue 18 KB

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