createList.vue 21 KB

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