generateList.vue 24 KB

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