createList.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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.createReportConfirm(item.teamQuestionnaireId)
  279. },
  280. createReportConfirm(teamQuestionnaireId){
  281. this.$api.get(`/core/team/questionnaire/generateReportCheck/${teamQuestionnaireId}`).then(({data:res})=>{
  282. if(res.code===0&&res.data===0){
  283. this.createReportFn(teamQuestionnaireId);
  284. }else if(res.code===0&&res.data>0){
  285. uni.showModal({
  286. title:'生成报告',
  287. content:`该问卷已生成${res.data??0}份报告,是否再次生成新报告?`,
  288. confirmColor:'#199C9C',
  289. success: (res) => {
  290. if(res.confirm){
  291. this.createReportFn(teamQuestionnaireId);
  292. }
  293. }
  294. })
  295. }else if(res.code!==0){
  296. uni.showModal({
  297. title:'生成报告',
  298. content:res.msg,
  299. showCancel:false,
  300. confirmColor:'#199C9C'
  301. })
  302. }
  303. this.show = false;
  304. })
  305. },
  306. createReportFn(teamQuestionnaireId){
  307. this.$api.get(`/core/team/questionnaire/genReport/${teamQuestionnaireId}`).then(({data:res})=>{
  308. this.show = false;
  309. uni.navigateTo({
  310. url:'/pagesHome/reportResult?result='+res.code+'&info='+encodeURIComponent(JSON.stringify(this.dto))
  311. })
  312. })
  313. },
  314. sendReport(item){
  315. },
  316. addUser(){
  317. uni.navigateTo({
  318. url:'/pagesMy/teamUser?type=select',
  319. events:{
  320. selectUserConfirm: data => {
  321. data.forEach((d,i)=>(this.$set(data[i],'status',0)));
  322. let newUser = this.filterUsers(this.teamUserList,data)
  323. this.teamUserList = [...this.teamUserList,...newUser];
  324. }
  325. }
  326. })
  327. },
  328. filterUsers(originArr,selectArr){
  329. const aValuesToExclude = new Set(originArr.map(item => item.id));
  330. return selectArr.filter(item => {
  331. return !aValuesToExclude.has(item.id);
  332. });
  333. },
  334. userConfirm(){
  335. if(this.teamUserList.length===0) return this.$showToast('至少保留一位团队人员');
  336. this.$api.get('/core/team/questionnaire/'+this.dto.teamQuestionnaireId).then(({data:res})=>{
  337. if(res.code!==0) return this.$showToast(res.msg)
  338. let dto = res.data;
  339. dto.coachId = JSON.parse(uni.getStorageSync('userInfo')).id;
  340. dto.delMemberIds = [...new Set(this.delMemberIds)];
  341. dto.memberList = this.teamUserList;
  342. dto.type = 2;
  343. delete dto.memberInfos;
  344. this.$api.put('/core/team/questionnaire/updateMembers',dto).then(({data:resu})=>{
  345. if(resu.code!==0) return this.$showToast(resu.msg)
  346. this.$showToast('操作成功')
  347. this.teamUserShow = false;
  348. // this.show = false;
  349. })
  350. })
  351. },
  352. deleteUser(data){
  353. let u = this.originTeamUserList.find(u=>u.id===data.item.id);
  354. if(u) this.delMemberIds=[...this.delMemberIds,u.id]
  355. this.teamUserList.splice(data.index,1);
  356. }
  357. }
  358. }
  359. </script>
  360. <style scoped lang="scss">
  361. .share-btn {
  362. background-color: transparent;
  363. border: none;
  364. padding: 0;
  365. margin: 0;
  366. line-height: 1;
  367. display: flex;
  368. flex-direction: column;
  369. justify-content: center;
  370. align-items: center;
  371. &::after {
  372. border: none;
  373. }
  374. }
  375. .qbox {
  376. width: 100%;
  377. height: 100%;
  378. flex: 1;
  379. .list {
  380. flex: 1;
  381. margin-top: 20rpx;
  382. overflow: hidden;
  383. &-item {
  384. width: 100%;
  385. background: #ffffff;
  386. border-radius: 24rpx;
  387. margin-top: 20rpx;
  388. padding: 36rpx 24rpx 19rpx;
  389. box-sizing: border-box;
  390. position: relative;
  391. display: block;
  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. .dbox {
  491. width: 100%;
  492. height: 738rpx;
  493. background: #ffffff;
  494. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0, 0, 0, 0.07);
  495. border-radius: 24rpx 24rpx 0rpx 0rpx;
  496. padding: 48rpx 30rpx 0;
  497. box-sizing: border-box;
  498. &-top {
  499. &-title {
  500. width: calc(100% - 60rpx);
  501. font-family: PingFang-SC, PingFang-SC;
  502. font-weight: bold;
  503. font-size: 32rpx;
  504. color: #002846;
  505. line-height: 40rpx;
  506. }
  507. &-expand {
  508. width: 32rpx;
  509. height: 32rpx;
  510. transform: rotate(180deg);
  511. }
  512. }
  513. &-name {
  514. font-family: PingFangSC, PingFang SC;
  515. font-weight: 400;
  516. font-size: 24rpx;
  517. color: #667e90;
  518. line-height: 24rpx;
  519. margin-top: 24rpx;
  520. }
  521. &-progress {
  522. margin-top: 36rpx;
  523. &-left {
  524. width: calc(100% - 95rpx);
  525. &-text {
  526. font-family: PingFangSC, PingFang SC;
  527. font-weight: 400;
  528. font-size: 24rpx;
  529. color: #667e90;
  530. line-height: 24rpx;
  531. }
  532. &-box {
  533. flex: 1;
  534. position: relative;
  535. height: 12rpx;
  536. background: #f0f2f8;
  537. border-radius: 6rpx;
  538. &-current {
  539. height: 12rpx;
  540. background: #7cc5c5;
  541. border-radius: 6rpx;
  542. position: absolute;
  543. top: 0;
  544. left: 0;
  545. }
  546. }
  547. }
  548. &-right {
  549. font-size: 24rpx;
  550. line-height: 24rpx;
  551. color: #95a5b1;
  552. span {
  553. font-size: 24rpx;
  554. line-height: 24rpx;
  555. color: #002846;
  556. }
  557. }
  558. }
  559. &-menu {
  560. margin-top: 43rpx;
  561. overflow: hidden;
  562. margin-left: -30rpx;
  563. &-pre {
  564. width: calc(25% - 30rpx);
  565. background: #f7f8fa;
  566. border-radius: 24rpx;
  567. padding: 30rpx 20rpx;
  568. margin-top: 24rpx;
  569. margin-left: 30rpx;
  570. box-sizing: border-box;
  571. float: left;
  572. image {
  573. width: 42rpx;
  574. height: 42rpx;
  575. }
  576. text {
  577. font-family: PingFangSC, PingFang SC;
  578. font-weight: 400;
  579. font-size: 24rpx;
  580. color: #002846;
  581. line-height: 24rpx;
  582. text-align: center;
  583. margin-top: 24rpx;
  584. }
  585. }
  586. }
  587. }
  588. &-box {
  589. width: 100%;
  590. height: 1200rpx;
  591. background: #f7f7f7;
  592. padding-top: 38rpx;
  593. border-radius: 24rpx 24rpx 0rpx 0rpx;
  594. box-sizing: border-box;
  595. position: relative;
  596. overflow-y: auto;
  597. &-title {
  598. font-family: PingFang-SC, PingFang-SC;
  599. font-weight: bold;
  600. font-size: 32rpx;
  601. color: #002846;
  602. line-height: 32rpx;
  603. text-align: center;
  604. }
  605. &-close {
  606. width: 48rpx;
  607. height: 48rpx;
  608. position: absolute;
  609. top: 30rpx;
  610. right: 30rpx;
  611. }
  612. &-teaminfo {
  613. margin-top: 40rpx;
  614. }
  615. }
  616. }
  617. .alert {
  618. position: fixed;
  619. left: 0;
  620. right: 0;
  621. top: 0;
  622. bottom: 0;
  623. z-index: 1002;
  624. background: rgba(0, 0, 0, 0.4);
  625. &-box {
  626. width: calc(100% - 100rpx);
  627. padding: 54rpx 99rpx 48rpx;
  628. box-sizing: border-box;
  629. position: relative;
  630. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/alert_bg.png') no-repeat;
  631. background-size: 100% 100%;
  632. &-title {
  633. font-family: PingFang-SC, PingFang-SC;
  634. font-weight: bold;
  635. font-size: 36rpx;
  636. color: #002846;
  637. line-height: 56rpx;
  638. text-align: center;
  639. }
  640. &-close {
  641. width: 48rpx;
  642. height: 48rpx;
  643. position: absolute;
  644. top: 40rpx;
  645. right: 30rpx;
  646. }
  647. &-text {
  648. font-family: PingFangSC, PingFang SC;
  649. font-weight: 400;
  650. font-size: 30rpx;
  651. color: #002846;
  652. line-height: 48rpx;
  653. text-align: center;
  654. margin-top: 32rpx;
  655. }
  656. .zt_btn {
  657. margin-top: 66rpx;
  658. }
  659. }
  660. }
  661. }
  662. </style>