createList.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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. .share-btn {
  469. background-color: transparent;
  470. border: none;
  471. padding: 0;
  472. margin: 0;
  473. line-height: 1;
  474. display: flex;
  475. flex-direction: column;
  476. justify-content: center;
  477. align-items: center;
  478. &::after {
  479. border: none;
  480. }
  481. }
  482. .qbox {
  483. width: 100%;
  484. height: 100%;
  485. .list {
  486. flex: 1;
  487. margin-top: 20rpx;
  488. &-item {
  489. width: 100%;
  490. background: #ffffff;
  491. border-radius: 24rpx;
  492. margin-top: 20rpx;
  493. padding: 36rpx 24rpx 19rpx;
  494. box-sizing: border-box;
  495. position: relative;
  496. display: block;
  497. &:first-child{
  498. margin-top: 0;
  499. }
  500. .expand {
  501. width: 32rpx;
  502. height: 32rpx;
  503. position: absolute;
  504. top: 36rpx;
  505. right: 32rpx;
  506. }
  507. .title {
  508. width: calc(100% - 128rpx);
  509. font-family: PingFang-SC, PingFang-SC;
  510. font-weight: bold;
  511. font-size: 32rpx;
  512. color: #002846;
  513. line-height: 32rpx;
  514. }
  515. .name {
  516. font-family: PingFangSC, PingFang SC;
  517. font-weight: 400;
  518. font-size: 24rpx;
  519. color: #667e90;
  520. line-height: 24rpx;
  521. margin-top: 35rpx;
  522. }
  523. .progress {
  524. margin-top: 36rpx;
  525. &-left {
  526. width: calc(100% - 95rpx);
  527. &-text {
  528. font-family: PingFangSC, PingFang SC;
  529. font-weight: 400;
  530. font-size: 24rpx;
  531. color: #667e90;
  532. line-height: 24rpx;
  533. }
  534. &-box {
  535. flex: 1;
  536. position: relative;
  537. height: 12rpx;
  538. background: #f0f2f8;
  539. border-radius: 6rpx;
  540. &-current {
  541. height: 12rpx;
  542. background: linear-gradient( 90deg, #FFDF73 0%, #FFD750 100%);
  543. border-radius: 6rpx;
  544. position: absolute;
  545. top: 0;
  546. left: 0;
  547. }
  548. }
  549. }
  550. &-right {
  551. font-size: 24rpx;
  552. line-height: 24rpx;
  553. color: #95a5b1;
  554. span {
  555. font-size: 24rpx;
  556. line-height: 24rpx;
  557. color: #002846;
  558. }
  559. }
  560. }
  561. .bottom {
  562. margin-top: 30rpx;
  563. border-top: 1rpx solid #efefef;
  564. padding-top: 20rpx;
  565. &-left {
  566. font-family: PingFangSC, PingFang SC;
  567. font-weight: 400;
  568. font-size: 24rpx;
  569. color: #667e90;
  570. line-height: 24rpx;
  571. }
  572. &-right {
  573. border-radius: 32rpx;
  574. background: linear-gradient(90deg, #33a7a7 0%, #4db2b2 100%);
  575. padding: 19rpx 22rpx;
  576. font-family: PingFangSC, PingFang SC;
  577. font-weight: 400;
  578. font-size: 26rpx;
  579. color: #ffffff;
  580. line-height: 26rpx;
  581. letter-spacing: 2rpx;
  582. }
  583. }
  584. }
  585. }
  586. .empty {
  587. flex: 1;
  588. }
  589. .dialog {
  590. position: fixed;
  591. left: 0;
  592. right: 0;
  593. top: 0;
  594. bottom: 0;
  595. // background: rgba(0, 0, 0, 0.4);
  596. z-index: 1001;
  597. justify-content: flex-end;
  598. .dialog-background {
  599. position: absolute; /* 相对于父级 dialog 定位 */
  600. top: 0;
  601. left: 0;
  602. right: 0;
  603. bottom: 0;
  604. background: rgba(0, 0, 0, 0.4); /* 背景颜色放在这里 */
  605. z-index: -1; /* 确保背景在 dbox 之下 */
  606. }
  607. .dbox {
  608. width: 100%;
  609. height: 738rpx;
  610. background: #ffffff;
  611. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0, 0, 0, 0.07);
  612. border-radius: 24rpx 24rpx 0rpx 0rpx;
  613. padding: 48rpx 30rpx 0;
  614. box-sizing: border-box;
  615. z-index: 0;
  616. &-top {
  617. &-title {
  618. width: calc(100% - 60rpx);
  619. font-family: PingFang-SC, PingFang-SC;
  620. font-weight: bold;
  621. font-size: 32rpx;
  622. color: #002846;
  623. line-height: 40rpx;
  624. }
  625. &-expand {
  626. width: 32rpx;
  627. height: 32rpx;
  628. transform: rotate(180deg);
  629. }
  630. }
  631. &-name {
  632. font-family: PingFangSC, PingFang SC;
  633. font-weight: 400;
  634. font-size: 24rpx;
  635. color: #667e90;
  636. line-height: 24rpx;
  637. margin-top: 24rpx;
  638. }
  639. &-progress {
  640. margin-top: 36rpx;
  641. &-left {
  642. width: calc(100% - 95rpx);
  643. &-text {
  644. font-family: PingFangSC, PingFang SC;
  645. font-weight: 400;
  646. font-size: 24rpx;
  647. color: #667e90;
  648. line-height: 24rpx;
  649. }
  650. &-box {
  651. flex: 1;
  652. position: relative;
  653. height: 12rpx;
  654. background: #f0f2f8;
  655. border-radius: 6rpx;
  656. &-current {
  657. height: 12rpx;
  658. background: #7cc5c5;
  659. border-radius: 6rpx;
  660. position: absolute;
  661. top: 0;
  662. left: 0;
  663. }
  664. }
  665. }
  666. &-right {
  667. font-size: 24rpx;
  668. line-height: 24rpx;
  669. color: #95a5b1;
  670. span {
  671. font-size: 24rpx;
  672. line-height: 24rpx;
  673. color: #002846;
  674. }
  675. }
  676. }
  677. &-menu {
  678. margin-top: 43rpx;
  679. overflow: hidden;
  680. margin-left: -30rpx;
  681. &-pre {
  682. width: calc(25% - 30rpx);
  683. background: #f7f8fa;
  684. border-radius: 24rpx;
  685. padding: 30rpx 20rpx;
  686. margin-top: 24rpx;
  687. margin-left: 30rpx;
  688. box-sizing: border-box;
  689. float: left;
  690. image {
  691. width: 42rpx;
  692. height: 42rpx;
  693. }
  694. text {
  695. font-family: PingFangSC, PingFang SC;
  696. font-weight: 400;
  697. font-size: 24rpx;
  698. color: #002846;
  699. line-height: 24rpx;
  700. text-align: center;
  701. margin-top: 24rpx;
  702. }
  703. }
  704. }
  705. }
  706. &-box {
  707. width: 100%;
  708. height: 1200rpx;
  709. background: #f7f7f7;
  710. padding-top: 38rpx;
  711. border-radius: 24rpx 24rpx 0rpx 0rpx;
  712. box-sizing: border-box;
  713. position: relative;
  714. z-index: 1;
  715. &-title {
  716. font-family: PingFang-SC, PingFang-SC;
  717. font-weight: bold;
  718. font-size: 32rpx;
  719. color: #002846;
  720. line-height: 32rpx;
  721. text-align: center;
  722. margin-bottom: 40rpx;
  723. }
  724. &-close {
  725. width: 48rpx;
  726. height: 48rpx;
  727. position: absolute;
  728. top: 30rpx;
  729. right: 30rpx;
  730. }
  731. &-teaminfo {
  732. flex: 1;
  733. overflow-y: auto;
  734. }
  735. }
  736. }
  737. .alert {
  738. position: fixed;
  739. left: 0;
  740. right: 0;
  741. top: 0;
  742. bottom: 0;
  743. z-index: 1002;
  744. background: rgba(0, 0, 0, 0.4);
  745. &-box {
  746. width: calc(100% - 100rpx);
  747. padding: 54rpx 99rpx 48rpx;
  748. box-sizing: border-box;
  749. position: relative;
  750. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/alert_bg.png') no-repeat;
  751. background-size: 100% 100%;
  752. &-title {
  753. font-family: PingFang-SC, PingFang-SC;
  754. font-weight: bold;
  755. font-size: 36rpx;
  756. color: #002846;
  757. line-height: 56rpx;
  758. text-align: center;
  759. }
  760. &-close {
  761. width: 48rpx;
  762. height: 48rpx;
  763. position: absolute;
  764. top: 40rpx;
  765. right: 30rpx;
  766. }
  767. &-text {
  768. font-family: PingFangSC, PingFang SC;
  769. font-weight: 400;
  770. font-size: 30rpx;
  771. color: #002846;
  772. line-height: 48rpx;
  773. text-align: center;
  774. margin-top: 32rpx;
  775. }
  776. .zt_btn {
  777. margin-top: 66rpx;
  778. }
  779. }
  780. }
  781. .kind-reminder{
  782. position: fixed;
  783. left: 0;
  784. right: 0;
  785. top: 0;
  786. bottom: 0;
  787. z-index: 1000;
  788. background: rgba(0, 0, 0, .6);
  789. .kr-box{
  790. width: calc(100% - 100rpx);
  791. padding: 54rpx 30rpx 40rpx;
  792. box-sizing: border-box;
  793. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/remind_bg.png') no-repeat;
  794. background-size: 100% 100%;
  795. position: relative;
  796. image{
  797. width: 48rpx;
  798. height: 48rpx;
  799. position: absolute;
  800. top: 40rpx;
  801. right: 30rpx;
  802. }
  803. .kr-title{
  804. font-family: PingFang-SC, PingFang-SC;
  805. font-weight: bold;
  806. font-size: 36rpx;
  807. color: #002846;
  808. line-height: 56rpx;
  809. text-align: center;
  810. }
  811. .kr-p{
  812. font-family: PingFangSC, PingFang SC;
  813. font-weight: 400;
  814. font-size: 30rpx;
  815. color: #002846;
  816. line-height: 48rpx;
  817. text-align: center;
  818. span{
  819. font-weight: bold;
  820. margin: 0 10rpx;
  821. }
  822. }
  823. .kr-btn{
  824. width: calc(100% - 80rpx);
  825. height: 88rpx;
  826. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  827. border-radius: 44rpx;
  828. font-family: PingFang-SC, PingFang-SC;
  829. font-weight: bold;
  830. font-size: 32rpx;
  831. color: #FFFFFF;
  832. line-height: 88rpx;
  833. text-align: center;
  834. letter-spacing: 2rpx;
  835. margin-top: 66rpx;
  836. }
  837. }
  838. }
  839. }
  840. </style>