createList.vue 23 KB

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