generateList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. <template>
  2. <view class="gbox">
  3. <u-list @scrolltolower="scrolltolower" height="100%">
  4. <u-list-item v-for="(item, index) in list" :key="index">
  5. <view class="gbox-item">
  6. <view class="gbox-item-top adf">
  7. <view class="gbox-item-top-type">{{typeCfg[item.type]||'个人版'}}</view>
  8. <view class="gbox-item-top-title">{{item.reportName||''}}</view>
  9. </view>
  10. <view class="gbox-item-ps">
  11. <view class="gbox-item-p adfac">
  12. <view class="gbox-item-p-left">团队名称:</view>
  13. <view class="gbox-item-p-right">{{item.teamName||''}}</view>
  14. </view>
  15. <view class="gbox-item-p adf">
  16. <view class="gbox-item-p-left">报告状态:</view>
  17. <view class="gbox-item-p-right" :style="{'color':stateColor[item.state]}">{{stateDict[item.state]}}</view>
  18. </view>
  19. <view class="gbox-item-p adf">
  20. <view class="gbox-item-p-left">创建时间:</view>
  21. <view class="gbox-item-p-right">{{item.createDate||''}}</view>
  22. </view>
  23. <!-- <image class="gbox-item-ask" :src="imgBase+'report_ask.png'" @click="askReport(item)" v-if="item.state==1&&item.fileUrl"></image> -->
  24. <image class="gbox-item-ask" :src="imgBase+'report_ask.png'" @click="testShow=true" v-if="item.state==1&&item.fileUrl"></image>
  25. </view>
  26. <view class="gbox-item-bottom adfacjb">
  27. <view class="gbox-item-bottom-rightbox adfac" v-if="item.type==1">
  28. <view class="gbox-item-bottom-right" @click="openEvaluation(item)" v-if="canEditEvaluation(item)">评估修改</view>
  29. <view class="gbox-item-bottom-right" @click="showReportSelector(item)" v-if="item.state==1">查看报告</view>
  30. <view class="gbox-item-bottom-right" @click="reSendReport(item)" v-if="item.state==-1">重新生成</view>
  31. </view>
  32. <view class="gbox-item-bottom-rightbox adfac" v-else-if="item.type==2">
  33. <view class="gbox-item-bottom-right" @click="openEvaluation(item)" v-if="canEditEvaluation(item)">评估修改</view>
  34. <view class="gbox-item-bottom-right" @click="showReportSelector(item)" v-if="item.state==1">查看报告</view>
  35. <view class="gbox-item-bottom-right" @click="forwardReport(item)" v-if="item.state==1&&item.fileUrl">发送邮件</view>
  36. <view class="gbox-item-bottom-right" @click="sendReport(item)" v-if="item.state!=-1">发送报告</view>
  37. <view class="gbox-item-bottom-right" @click="reSendReport(item)" v-if="item.state==-1">重新生成</view>
  38. </view>
  39. </view>
  40. <view class="gbox-item-generating-mask" v-if="isReportGenerating(item)" @click.stop="showGeneratingReminder"></view>
  41. </view>
  42. </u-list-item>
  43. </u-list>
  44. <view class="kind-reminder adffcacjc" v-if="testShow">
  45. <view class="kr-box adffcac">
  46. <view class="kr-title">温馨提示</view>
  47. <view class="kr-p" style="margin-top: 54rpx;">功能测试中,即将上线,敬请期待!</view>
  48. <view class="kr-btn" @click="testShow=false">确定</view>
  49. </view>
  50. </view>
  51. <view class="kind-reminder adffcacjc" v-if="reportSelectorShow">
  52. <view class="kr-box adffcac report-selector-box">
  53. <view class="kr-title">查看报告</view>
  54. <view class="report-selector-tip">请选择要查看的报告</view>
  55. <view class="report-selector-btn" :class="{disabled: reportSelectorUnavailable('background')}" @click="selectReportArtifact('background')">背景报告</view>
  56. <view class="report-selector-btn" :class="{disabled: reportSelectorUnavailable('professional')}" @click="selectReportArtifact('professional')">教练报告</view>
  57. <view class="report-selector-btn" @click="selectReportArtifact('public')">团队报告</view>
  58. <view class="report-selector-cancel" @click="closeReportSelector">取消</view>
  59. </view>
  60. </view>
  61. <view class="kind-reminder adffcacjc" v-if="reportReminderShow">
  62. <view class="kr-box adffcac">
  63. <view class="kr-title">温馨提示</view>
  64. <view class="kr-p" style="margin-top: 54rpx;">{{reportReminderMsg}}</view>
  65. <view class="kr-btn" @click="reportReminderShow=false">确定</view>
  66. </view>
  67. </view>
  68. <view class="evaluation-mask adffcacjc" v-if="evaluationVisible">
  69. <view class="evaluation-box evaluation-box-tall">
  70. <view class="kr-title">修改评估内容</view>
  71. <view class="evaluation-tabs">
  72. <view class="evaluation-tab" :class="{active:evaluationTab === 'overall'}" @click="evaluationTab='overall'">总体评估结果</view>
  73. <view class="evaluation-tab" :class="{active:evaluationTab === 'advice'}" @click="evaluationTab='advice'">团队发展建议</view>
  74. </view>
  75. <view class="evaluation-panel" v-if="evaluationTab === 'overall'">
  76. <view class="evaluation-label">总体评估结果</view>
  77. <textarea class="evaluation-textarea" maxlength="20000" v-model="evaluationForm.overallAssessment" placeholder="请输入总体评估结果"></textarea>
  78. </view>
  79. <view class="evaluation-panel" v-else>
  80. <view class="evaluation-label">团队发展建议</view>
  81. <textarea class="evaluation-textarea" maxlength="20000" v-model="evaluationForm.developmentAdvice" placeholder="请输入团队发展建议"></textarea>
  82. </view>
  83. <view class="evaluation-actions">
  84. <view class="evaluation-cancel" @click="closeEvaluation">取消</view>
  85. <view class="evaluation-submit" :class="{disabled:evaluationSubmitting}" @click="submitEvaluation">{{evaluationSubmitting?'提交中':'保存提交'}}</view>
  86. </view>
  87. </view>
  88. </view>
  89. <cus-select-team-user
  90. ref="selectTeamUser"
  91. :show="teamUserShow"
  92. :list="teamUserList"
  93. @close="handleClose"
  94. @changeAll="changeAll"
  95. @handleSelectUser="handleSelectUser"
  96. @handleConfirm="sendConfirm"
  97. ></cus-select-team-user>
  98. </view>
  99. </template>
  100. <script>
  101. import { getPlatformInfo } from '@/utils/platform.js';
  102. import { reportArtifactUrl, reportArtifactDownloadUrl } from '@/utils/reportArtifactLinks.js'
  103. import { canEditEvaluation, isReportGenerating, EVALUATION_PROCESSING_PROMPT, normalizeEvaluationForm } from '@/utils/reportEvaluationEdit.js'
  104. import CusSelectTeamUser from '@/components/CusSelectTeamUser/index.vue'
  105. export default {
  106. props:{
  107. list:{
  108. typeof:Array,
  109. default:[]
  110. }
  111. },
  112. components:{ CusSelectTeamUser },
  113. data(){
  114. return {
  115. typeCfg:{
  116. 1:'个人版',
  117. 2:'团队版',
  118. 0:'团队PRO版'
  119. },
  120. stateDict:{
  121. '0':'生成中',
  122. '1':'生成成功',
  123. '-1':'生成失败'
  124. },
  125. stateColor:{
  126. '0':'#FFD750',
  127. '1':'#33A7A7',
  128. '-1':'#F4657A'
  129. },
  130. teamUserShow:false,
  131. teamUserList:[],
  132. categoryData:[],
  133. sendType:1,
  134. selectItem:null,
  135. testShow:false,
  136. reportReminderShow:false,
  137. reportReminderMsg:'',
  138. reportSelectorShow:false,
  139. reportSelectorItem:null,
  140. evaluationVisible:false,
  141. evaluationSubmitting:false,
  142. evaluationReportId:'',
  143. evaluationTab:'overall',
  144. evaluationForm:{overallAssessment:'',developmentAdvice:''}
  145. }
  146. },
  147. methods:{
  148. isReportGenerating(item){
  149. return isReportGenerating(item);
  150. },
  151. showGeneratingReminder(){
  152. this.$showToast('报告正在生成中,暂不可操作,请稍候。');
  153. },
  154. guardReportOperation(item){
  155. if(!this.isReportGenerating(item)) return true;
  156. this.showGeneratingReminder();
  157. return false;
  158. },
  159. scrolltolower(){
  160. this.$emit('scrolltolower')
  161. },
  162. getUserCategoryData(){
  163. return new Promise((resolve,reject)=>{
  164. this.$api.get('/getListByType/UserCategory').then(({data:res})=>{
  165. if(res.code!==0) return this.$showToast(res.msg)
  166. this.categoryData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
  167. resolve()
  168. })
  169. })
  170. },
  171. async forwardReport(item){
  172. if(!this.guardReportOperation(item)) return;
  173. //发送给账号自己的邮箱
  174. if(!uni.getStorageSync('userInfo')||!JSON.parse(uni.getStorageSync('userInfo')).email) return this.$showModal('发送邮件前请先在我的-设置-用户信息中绑定邮箱')
  175. uni.showModal({
  176. title:'温馨提示',
  177. content:`是否确认将“${item.reportName||''}”下的PDF报告文件发送到账号绑定邮箱中?`,
  178. confirmText:'确认',
  179. success: (res) => {
  180. if(res.confirm){
  181. this.$api.get(`/core/report/sendToEmail/${item.reportId}`).then(({data:res})=>{
  182. if(res.code!==0) return this.$showToast(res.msg)
  183. this.$showModal('邮件发送成功,可在绑定的邮箱中查看详细内容。')
  184. })
  185. }
  186. }
  187. })
  188. // this.sendType = 1;
  189. // this.$refs.selectTeamUser.title = '发送邮件'
  190. // await this.getUserCategoryData()
  191. // this.$api.get(`/core/member/listByQueTeamId/${item.teamQueId}`).then(({data:res})=>{
  192. // if(res.code!==0) return this.$showToast(res.msg)
  193. // this.teamUserList = res.data;
  194. // this.teamUserList.forEach((l,i)=>{
  195. // l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
  196. // this.$set(this.teamUserList[i],'select',false);
  197. // })
  198. // this.teamUserShow = true;
  199. // })
  200. },
  201. handleSelectUser(index){
  202. this.$set(this.teamUserList[index],'select',!this.teamUserList[index].select);
  203. this.dealNumAndAll()
  204. },
  205. handleClose(){
  206. this.teamUserShow = false;
  207. this.initSelectUserComponent();
  208. },
  209. changeAll(selected){
  210. this.teamUserList.forEach((l,i)=>{
  211. this.$set(this.teamUserList[i],'select',selected);
  212. })
  213. this.$refs.selectTeamUser.selectNums = this.teamUserList.filter(l=>l.select).length;
  214. },
  215. dealNumAndAll(){
  216. const selectnum = this.teamUserList.filter(l=>l.select).length;
  217. this.$refs.selectTeamUser.selectNums = selectnum;
  218. this.$refs.selectTeamUser.selectAll = selectnum === this.teamUserList.length;
  219. },
  220. showReportUnavailable(kind){
  221. this.reportReminderMsg = kind === 'background'
  222. ? '背景报告需配合团队版评估数据生成'
  223. : '教练报告需要配合团队版评估数据生成';
  224. this.reportReminderShow = true;
  225. },
  226. showReportSelector(item){
  227. if(!this.guardReportOperation(item) || String(item.state) !== '1') return;
  228. this.reportSelectorItem = item;
  229. this.reportSelectorShow = true;
  230. },
  231. closeReportSelector(){
  232. this.reportSelectorShow = false;
  233. this.reportSelectorItem = null;
  234. },
  235. reportSelectorUnavailable(kind){
  236. return this.reportSelectorItem && String(this.reportSelectorItem.type) === '1'
  237. && ['background', 'professional'].indexOf(kind) !== -1;
  238. },
  239. selectReportArtifact(kind){
  240. const item = this.reportSelectorItem;
  241. this.closeReportSelector();
  242. if(!item || !this.guardReportOperation(item)) return;
  243. if(String(item.type) === '1' && ['background', 'professional'].indexOf(kind) !== -1) {
  244. return this.showReportUnavailable(kind);
  245. }
  246. this.reviewArtifact(item, kind);
  247. },
  248. canEditEvaluation(item){
  249. return canEditEvaluation(item);
  250. },
  251. openEvaluation(item){
  252. if(!this.guardReportOperation(item)) return;
  253. if(!this.canEditEvaluation(item)) return;
  254. this.evaluationReportId = item.reportId;
  255. this.evaluationSubmitting = false;
  256. this.evaluationTab = 'overall';
  257. this.evaluationVisible = true;
  258. this.$api.get('/core/report/evaluation/'+item.reportId).then(({data:res})=>{
  259. if(res.code!==0){ this.closeEvaluation(); return this.$showToast(res.msg); }
  260. if(res.data && res.data.processing){ this.closeEvaluation(); return this.$showToast('评估分析正在重新生成中,请稍候'); }
  261. this.evaluationForm = normalizeEvaluationForm(res.data || {});
  262. })
  263. },
  264. closeEvaluation(){
  265. if(this.evaluationSubmitting) return;
  266. this.evaluationVisible = false;
  267. this.evaluationReportId = '';
  268. },
  269. submitEvaluation(){
  270. if(this.evaluationSubmitting) return;
  271. if(!this.evaluationForm.overallAssessment.trim()) return this.$showToast('请输入总体评估结果');
  272. if(!this.evaluationForm.developmentAdvice.trim()) return this.$showToast('请输入团队发展建议');
  273. this.evaluationSubmitting = true;
  274. this.$api.post('/core/report/evaluation/'+this.evaluationReportId, this.evaluationForm).then(({data:res})=>{
  275. if(res.code!==0) return this.$showToast(res.msg);
  276. this.evaluationVisible = false;
  277. this.$emit('reSendReport');
  278. this.reportReminderMsg = EVALUATION_PROCESSING_PROMPT;
  279. this.reportReminderShow = true;
  280. }).finally(()=>{ this.evaluationSubmitting = false; });
  281. },
  282. sendConfirm(){
  283. if(!this.guardReportOperation(this.selectItem)) return;
  284. if(this.teamUserList.filter(t=>t.select).length===0) return this.$showToast('请选择要发送的用户')
  285. if(this.sendType===1&&(!uni.getStorageSync('userInfo')||!JSON.parse(uni.getStorageSync('userInfo')).email)) return this.$showModal('发送前请先在我的-设置-用户信息中绑定邮箱')
  286. if(this.sendType===1){
  287. this.handleClose();
  288. } else if(this.sendType===2){
  289. const item = JSON.parse(JSON.stringify(this.selectItem));
  290. uni.showModal({
  291. title:'发送报告',
  292. content:`是否确认将“${item.reportName||''}”发送给团队成员`,
  293. confirmText:'确认',
  294. success: (res) => {
  295. if(res.confirm){
  296. this.$api.post(`/core/report/sendReport`,{
  297. reportId:item.reportId,
  298. memberList:this.teamUserList.filter(t=>t.select).map(t=>({id:t.id,mobile:t.mobile,category:t.category}))
  299. }).then(({data:res})=>{
  300. if(res.code!==0) return this.$showToast(res.msg)
  301. this.handleClose();
  302. uni.navigateTo({
  303. url:'/pagesHome/sendResult?result='+res.code
  304. })
  305. })
  306. }
  307. }
  308. })
  309. }
  310. },
  311. initSelectUserComponent(){
  312. this.$refs.selectTeamUser.selectNums = 0;
  313. this.$refs.selectTeamUser.selectAll = false;
  314. },
  315. reviewArtifact(item, kind){
  316. if(!this.guardReportOperation(item)) return;
  317. const url = reportArtifactUrl(item, kind)
  318. if(!url) return this.$showToast('该报告尚未生成,请稍后再试。')
  319. const { isPC, isMobile, platform } = getPlatformInfo();
  320. console.log(platform,'platform');//android
  321. if (isPC) {
  322. this.$showModal('请在手机端该微信小程序中查看报告')
  323. } else if (isMobile||platform==='devtools') {
  324. this.openReportDocument(url)
  325. // uni.navigateTo({
  326. // url:'/pages/webView?src='+item.fileUrl
  327. // })
  328. }
  329. },
  330. async openReportDocument(fileUrl) {
  331. try {
  332. // 1. 显示加载提示
  333. uni.showLoading({ title: '加载中...' });
  334. // 2. 先下载PDF文件到本地(解决安卓直接预览网络文件慢的问题)
  335. const downloadRes = await uni.downloadFile({
  336. url: reportArtifactDownloadUrl(fileUrl),
  337. // 可选:设置超时时间,避免长时间等待
  338. timeout: 30000
  339. });
  340. const dres = downloadRes[1]||null;
  341. if (dres.statusCode !== 200) {
  342. uni.hideLoading();
  343. uni.showToast({ title: '文件下载失败', icon: 'none' });
  344. return;
  345. }
  346. // 3. 按实际扩展名使用微信原生文档预览
  347. const openRes = await uni.openDocument({
  348. filePath: dres.tempFilePath,
  349. fileType: this.documentType(fileUrl),
  350. showMenu: false
  351. });
  352. uni.hideLoading();
  353. } catch (error) {
  354. uni.hideLoading();
  355. uni.showToast({ title: '加载失败,请重试', icon: 'none' });
  356. }
  357. },
  358. documentType(fileUrl) {
  359. const path = (fileUrl || '').split('?')[0].toLowerCase()
  360. return path.endsWith('.docx') ? 'docx' : 'pdf'
  361. },
  362. askReport(item){
  363. if(!this.guardReportOperation(item)) return;
  364. uni.navigateTo({
  365. url:`/pages/reportAsk?pdfUrl=${item.fileUrl}&fileName=${this.typeCfg[item.type]||'个人版'}-${item.reportName}`
  366. })
  367. },
  368. async sendReport(item){
  369. if(!this.guardReportOperation(item)) return;
  370. if(!item.fileUrl) return this.$showModal('该报告尚未生成PDF文件,请等待生成后发送。')
  371. this.sendType = 2;
  372. this.$refs.selectTeamUser.title = '发送报告'
  373. this.selectItem = item;
  374. await this.getUserCategoryData()
  375. this.$api.get(`/core/member/listByQueTeamId/${item.teamQueId}`).then(({data:res})=>{
  376. if(res.code!==0) return this.$showToast(res.msg)
  377. this.teamUserList = res.data;
  378. this.teamUserList.forEach((l,i)=>{
  379. l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
  380. this.$set(this.teamUserList[i],'select',false);
  381. })
  382. this.teamUserShow = true;
  383. })
  384. },
  385. reSendReport(item){
  386. if(!this.guardReportOperation(item)) return;
  387. this.$api.get(`/core/report/regenerateReport/${item.reportId}`).then(({data:res})=>{
  388. if(res.code!==0) return this.$showToast(res.msg)
  389. this.$emit('reSendReport')
  390. })
  391. }
  392. }
  393. }
  394. </script>
  395. <style scoped lang="scss">
  396. @import '../../../static/_asset-config';
  397. .gbox{
  398. height: 100%;
  399. &-item{
  400. margin-top: 20rpx;
  401. background: #FFFFFF;
  402. border-radius: 24rpx;
  403. padding: 40rpx 20rpx 20rpx;
  404. position: relative;
  405. &-generating-mask{
  406. position: absolute;
  407. left: 0;
  408. right: 0;
  409. top: 0;
  410. bottom: 0;
  411. z-index: 10;
  412. border-radius: 24rpx;
  413. background: rgba(255, 255, 255, .35);
  414. }
  415. &-top{
  416. &-type{
  417. width: 98rpx;
  418. height: 36rpx;
  419. padding: 2rpx 13rpx;
  420. box-sizing: border-box;
  421. background: #FFF7DC;
  422. border-radius: 6rpx;
  423. font-family: PingFangSC, PingFang SC;
  424. font-weight: 400;
  425. font-size: 24rpx;
  426. color: #BA9B31;
  427. line-height: 33rpx;
  428. }
  429. &-title{
  430. width: calc(100% - 98rpx);
  431. font-family: PingFang-SC, PingFang-SC;
  432. font-weight: bold;
  433. font-size: 32rpx;
  434. color: #002846;
  435. line-height: 32rpx;
  436. text-indent: 17rpx;
  437. }
  438. }
  439. &-ps{
  440. margin-top: 20rpx;
  441. background: #F5F8FA;
  442. border-radius: 5px;
  443. padding: 20rpx 20rpx 30rpx;
  444. position: relative;
  445. }
  446. &-p{
  447. margin-top: 32rpx;
  448. &:first-child{
  449. margin-top: 0;
  450. }
  451. &>view{
  452. font-family: PingFangSC, PingFang SC;
  453. font-weight: 400;
  454. font-size: 24rpx;
  455. color: #667E90;
  456. line-height: 24rpx;
  457. }
  458. &-left{
  459. width: 134rpx;
  460. }
  461. &-right{
  462. width: calc(100% - 134rpx);
  463. }
  464. &-progress{
  465. width: calc(100% - 134rpx);
  466. &-l{
  467. width: 410rpx;
  468. height: 12rpx;
  469. background: #F0F2F8;
  470. border-radius: 6rpx;
  471. position: relative;
  472. &-current{
  473. height: 12rpx;
  474. background: #FFDF73;
  475. border-radius: 6rpx;
  476. position: absolute;
  477. left: 0;
  478. top: 0;
  479. }
  480. }
  481. &-r{
  482. width: calc(100% - 410rpx);
  483. font-family: PingFangSC, PingFang SC;
  484. font-weight: 400;
  485. font-size: 24rpx;
  486. color: #002846;
  487. line-height: 24rpx;
  488. text-align: right;
  489. }
  490. }
  491. }
  492. &-ask{
  493. width: 64rpx;
  494. height: 64rpx;
  495. position: absolute;
  496. right: 20rpx;
  497. bottom: 42rpx;
  498. }
  499. &-bottom{
  500. margin-top: 20rpx;
  501. overflow: hidden;
  502. &-rightbox{
  503. flex: 1;
  504. margin-left: -35rpx;
  505. justify-content: flex-end;
  506. }
  507. &-left{
  508. &>view{
  509. font-family: PingFangSC, PingFang SC;
  510. font-weight: 400;
  511. font-size: 24rpx;
  512. color: #667E90;
  513. line-height: 24rpx;
  514. }
  515. }
  516. &-right{
  517. flex: 1;
  518. width: 0;
  519. height: 64rpx;
  520. padding: 0 8rpx;
  521. text-align: center;
  522. box-sizing: border-box;
  523. line-height: 64rpx;
  524. white-space: nowrap;
  525. background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
  526. border-radius: 20rpx;
  527. font-family: PingFang-SC, PingFang-SC;
  528. font-size: 24rpx;
  529. color: #FFFFFF;
  530. margin-left: 35rpx;
  531. &.report-button-disabled{
  532. background: #D5DDE2;
  533. color: #FFFFFF;
  534. }
  535. }
  536. }
  537. }
  538. .kind-reminder{
  539. position: fixed;
  540. left: 0;
  541. right: 0;
  542. top: 0;
  543. bottom: 0;
  544. z-index: 1000;
  545. background: rgba(0, 0, 0, .6);
  546. .kr-box{
  547. width: calc(100% - 100rpx);
  548. padding: 54rpx 60rpx 48rpx;
  549. box-sizing: border-box;
  550. background: asset-image('remind_bg.png') no-repeat;
  551. background-size: 100% 100%;
  552. position: relative;
  553. image{
  554. width: 48rpx;
  555. height: 48rpx;
  556. position: absolute;
  557. top: 40rpx;
  558. right: 30rpx;
  559. }
  560. .kr-title{
  561. font-family: PingFang-SC, PingFang-SC;
  562. font-weight: bold;
  563. font-size: 36rpx;
  564. color: #002846;
  565. line-height: 56rpx;
  566. text-align: center;
  567. }
  568. .kr-p{
  569. font-family: PingFangSC, PingFang SC;
  570. font-weight: 400;
  571. font-size: 30rpx;
  572. color: #002846;
  573. line-height: 48rpx;
  574. text-align: center;
  575. span{
  576. font-weight: bold;
  577. margin: 0 10rpx;
  578. }
  579. }
  580. .kr-btn{
  581. width: calc(100% - 80rpx);
  582. height: 88rpx;
  583. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  584. border-radius: 44rpx;
  585. font-family: PingFang-SC, PingFang-SC;
  586. font-weight: bold;
  587. font-size: 32rpx;
  588. color: #FFFFFF;
  589. line-height: 88rpx;
  590. text-align: center;
  591. letter-spacing: 2rpx;
  592. margin-top: 66rpx;
  593. }
  594. }
  595. }
  596. }
  597. .report-selector-box{padding-bottom: 36rpx;}
  598. .report-selector-tip{margin-top: 20rpx;text-align:center;font-size:28rpx;color:#667E90;}
  599. .report-selector-btn{width:calc(100% - 40rpx);height:76rpx;margin:22rpx 20rpx 0;border-radius:38rpx;background:linear-gradient(90deg,#33A7A7 0%,#64BBBB 100%);color:#fff;text-align:center;line-height:76rpx;font-size:30rpx;}
  600. .report-selector-btn.disabled{background:#D5DDE2;}
  601. .report-selector-cancel{margin-top:24rpx;text-align:center;font-size:28rpx;line-height:48rpx;color:#667E90;}
  602. .evaluation-mask{position:fixed;left:0;right:0;top:0;bottom:0;z-index:30;background:rgba(0,0,0,.45);}
  603. .evaluation-box{width:650rpx;background:#fff;border-radius:16rpx;padding:34rpx 28rpx 26rpx;box-sizing:border-box;}
  604. .evaluation-box-tall{height:78vh;min-height:760rpx;display:flex;flex-direction:column;}
  605. .evaluation-tabs{display:flex;margin-top:24rpx;border-bottom:1rpx solid #E5EAED;}
  606. .evaluation-tab{flex:1;height:72rpx;text-align:center;font-size:28rpx;color:#667E90;line-height:72rpx;position:relative;}
  607. .evaluation-tab.active{font-weight:bold;color:#33A7A7;}
  608. .evaluation-tab.active::after{content:'';position:absolute;left:25%;right:25%;bottom:-1rpx;height:6rpx;border-radius:3rpx;background:#33A7A7;}
  609. .evaluation-panel{flex:1;display:flex;flex-direction:column;min-height:0;}
  610. .evaluation-label{font-size:28rpx;font-weight:bold;color:#333;margin:18rpx 0 12rpx;}
  611. .evaluation-textarea{width:100%;flex:1;min-height:300rpx;box-sizing:border-box;background:#f7f7f7;border-radius:8rpx;padding:18rpx;font-size:26rpx;color:#333;}
  612. .evaluation-actions{display:flex;justify-content:flex-end;gap:20rpx;margin-top:28rpx;}
  613. .evaluation-cancel,.evaluation-submit{padding:18rpx 28rpx;border-radius:10rpx;font-size:28rpx;}
  614. .evaluation-cancel{color:#666;background:#f2f2f2;}
  615. .evaluation-submit{color:#fff;background:linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);border-radius:44rpx;font-family:PingFang-SC, PingFang-SC;font-weight:bold;letter-spacing:2rpx;}
  616. .evaluation-submit.disabled{opacity:.5;}
  617. </style>