createList.vue 22 KB

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