createList.vue 24 KB

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