createList.vue 20 KB

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