createList.vue 24 KB

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