| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632 |
- <template>
- <view class="gbox">
- <u-list @scrolltolower="scrolltolower" height="100%">
- <u-list-item v-for="(item, index) in list" :key="index">
- <view class="gbox-item">
- <view class="gbox-item-top adf">
- <view class="gbox-item-top-type">{{typeCfg[item.type]||'个人版'}}</view>
- <view class="gbox-item-top-title">{{item.reportName||''}}</view>
- </view>
- <view class="gbox-item-ps">
- <view class="gbox-item-p adfac">
- <view class="gbox-item-p-left">团队名称:</view>
- <view class="gbox-item-p-right">{{item.teamName||''}}</view>
- </view>
- <view class="gbox-item-p adf">
- <view class="gbox-item-p-left">报告状态:</view>
- <view class="gbox-item-p-right" :style="{'color':stateColor[item.state]}">{{stateDict[item.state]}}</view>
- </view>
- <view class="gbox-item-p adf">
- <view class="gbox-item-p-left">创建时间:</view>
- <view class="gbox-item-p-right">{{item.createDate||''}}</view>
- </view>
- <!-- <image class="gbox-item-ask" :src="imgBase+'report_ask.png'" @click="askReport(item)" v-if="item.state==1&&item.fileUrl"></image> -->
- <image class="gbox-item-ask" :src="imgBase+'report_ask.png'" @click="testShow=true" v-if="item.state==1&&item.fileUrl"></image>
- </view>
- <view class="gbox-item-bottom adfacjb">
- <view class="gbox-item-bottom-rightbox adfac" v-if="item.type==1">
- <view class="gbox-item-bottom-right" @click="openEvaluation(item)" v-if="canEditEvaluation(item)">评估修改</view>
- <view class="gbox-item-bottom-right" @click="showReportSelector(item)" v-if="item.state==1">查看报告</view>
- <view class="gbox-item-bottom-right" @click="reSendReport(item)" v-if="item.state==-1">重新生成</view>
- </view>
- <view class="gbox-item-bottom-rightbox adfac" v-else-if="item.type==2">
- <view class="gbox-item-bottom-right" @click="openEvaluation(item)" v-if="canEditEvaluation(item)">评估修改</view>
- <view class="gbox-item-bottom-right" @click="showReportSelector(item)" v-if="item.state==1">查看报告</view>
- <view class="gbox-item-bottom-right" @click="forwardReport(item)" v-if="item.state==1&&item.fileUrl">发送邮件</view>
- <view class="gbox-item-bottom-right" @click="sendReport(item)" v-if="item.state!=-1">发送报告</view>
- <view class="gbox-item-bottom-right" @click="reSendReport(item)" v-if="item.state==-1">重新生成</view>
- </view>
- </view>
- <view class="gbox-item-generating-mask" v-if="isReportGenerating(item)" @click.stop="showGeneratingReminder"></view>
- </view>
- </u-list-item>
- </u-list>
- <view class="kind-reminder adffcacjc" v-if="testShow">
- <view class="kr-box adffcac">
- <view class="kr-title">温馨提示</view>
- <view class="kr-p" style="margin-top: 54rpx;">功能测试中,即将上线,敬请期待!</view>
- <view class="kr-btn" @click="testShow=false">确定</view>
- </view>
- </view>
- <view class="kind-reminder adffcacjc" v-if="reportSelectorShow">
- <view class="kr-box adffcac report-selector-box">
- <view class="kr-title">查看报告</view>
- <view class="report-selector-tip">请选择要查看的报告</view>
- <view class="report-selector-btn" :class="{disabled: reportSelectorUnavailable('background')}" @click="selectReportArtifact('background')">背景报告</view>
- <view class="report-selector-btn" :class="{disabled: reportSelectorUnavailable('professional')}" @click="selectReportArtifact('professional')">教练报告</view>
- <view class="report-selector-btn" @click="selectReportArtifact('public')">团队报告</view>
- <view class="report-selector-cancel" @click="closeReportSelector">取消</view>
- </view>
- </view>
- <view class="kind-reminder adffcacjc" v-if="reportReminderShow">
- <view class="kr-box adffcac">
- <view class="kr-title">温馨提示</view>
- <view class="kr-p" style="margin-top: 54rpx;">{{reportReminderMsg}}</view>
- <view class="kr-btn" @click="reportReminderShow=false">确定</view>
- </view>
- </view>
- <view class="evaluation-mask adffcacjc" v-if="evaluationVisible">
- <view class="evaluation-box evaluation-box-tall">
- <view class="kr-title">修改评估内容</view>
- <view class="evaluation-tabs">
- <view class="evaluation-tab" :class="{active:evaluationTab === 'overall'}" @click="evaluationTab='overall'">总体评估结果</view>
- <view class="evaluation-tab" :class="{active:evaluationTab === 'advice'}" @click="evaluationTab='advice'">团队发展建议</view>
- </view>
- <view class="evaluation-panel" v-if="evaluationTab === 'overall'">
- <view class="evaluation-label">总体评估结果</view>
- <textarea class="evaluation-textarea" maxlength="20000" v-model="evaluationForm.overallAssessment" placeholder="请输入总体评估结果"></textarea>
- </view>
- <view class="evaluation-panel" v-else>
- <view class="evaluation-label">团队发展建议</view>
- <textarea class="evaluation-textarea" maxlength="20000" v-model="evaluationForm.developmentAdvice" placeholder="请输入团队发展建议"></textarea>
- </view>
- <view class="evaluation-actions">
- <view class="evaluation-cancel" @click="closeEvaluation">取消</view>
- <view class="evaluation-submit" :class="{disabled:evaluationSubmitting}" @click="submitEvaluation">{{evaluationSubmitting?'提交中':'保存提交'}}</view>
- </view>
- </view>
- </view>
- <cus-select-team-user
- ref="selectTeamUser"
- :show="teamUserShow"
- :list="teamUserList"
- @close="handleClose"
- @changeAll="changeAll"
- @handleSelectUser="handleSelectUser"
- @handleConfirm="sendConfirm"
- ></cus-select-team-user>
- </view>
- </template>
- <script>
- import { getPlatformInfo } from '@/utils/platform.js';
- import { reportArtifactUrl, reportArtifactDownloadUrl } from '@/utils/reportArtifactLinks.js'
- import { canEditEvaluation, isReportGenerating, EVALUATION_PROCESSING_PROMPT, normalizeEvaluationForm } from '@/utils/reportEvaluationEdit.js'
- import CusSelectTeamUser from '@/components/CusSelectTeamUser/index.vue'
- export default {
- props:{
- list:{
- typeof:Array,
- default:[]
- }
- },
- components:{ CusSelectTeamUser },
- data(){
- return {
- typeCfg:{
- 1:'个人版',
- 2:'团队版',
- 0:'团队PRO版'
- },
- stateDict:{
- '0':'生成中',
- '1':'生成成功',
- '-1':'生成失败'
- },
- stateColor:{
- '0':'#FFD750',
- '1':'#33A7A7',
- '-1':'#F4657A'
- },
- teamUserShow:false,
- teamUserList:[],
- categoryData:[],
- sendType:1,
- selectItem:null,
- testShow:false,
- reportReminderShow:false,
- reportReminderMsg:'',
- reportSelectorShow:false,
- reportSelectorItem:null,
- evaluationVisible:false,
- evaluationSubmitting:false,
- evaluationReportId:'',
- evaluationTab:'overall',
- evaluationForm:{overallAssessment:'',developmentAdvice:''}
- }
- },
- methods:{
- isReportGenerating(item){
- return isReportGenerating(item);
- },
- showGeneratingReminder(){
- this.$showToast('报告正在生成中,暂不可操作,请稍候。');
- },
- guardReportOperation(item){
- if(!this.isReportGenerating(item)) return true;
- this.showGeneratingReminder();
- return false;
- },
- scrolltolower(){
- this.$emit('scrolltolower')
- },
- getUserCategoryData(){
- return new Promise((resolve,reject)=>{
- this.$api.get('/getListByType/UserCategory').then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg)
- this.categoryData = res.data.map(d=>({name:d.dictLabel,id:d.dictValue}))
- resolve()
- })
- })
- },
- async forwardReport(item){
- if(!this.guardReportOperation(item)) return;
- //发送给账号自己的邮箱
- if(!uni.getStorageSync('userInfo')||!JSON.parse(uni.getStorageSync('userInfo')).email) return this.$showModal('发送邮件前请先在我的-设置-用户信息中绑定邮箱')
- uni.showModal({
- title:'温馨提示',
- content:`是否确认将“${item.reportName||''}”下的PDF报告文件发送到账号绑定邮箱中?`,
- confirmText:'确认',
- success: (res) => {
- if(res.confirm){
- this.$api.get(`/core/report/sendToEmail/${item.reportId}`).then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg)
- this.$showModal('邮件发送成功,可在绑定的邮箱中查看详细内容。')
- })
- }
- }
- })
-
- // this.sendType = 1;
- // this.$refs.selectTeamUser.title = '发送邮件'
- // await this.getUserCategoryData()
- // this.$api.get(`/core/member/listByQueTeamId/${item.teamQueId}`).then(({data:res})=>{
- // if(res.code!==0) return this.$showToast(res.msg)
- // this.teamUserList = res.data;
- // this.teamUserList.forEach((l,i)=>{
- // l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
- // this.$set(this.teamUserList[i],'select',false);
- // })
- // this.teamUserShow = true;
- // })
- },
- handleSelectUser(index){
- this.$set(this.teamUserList[index],'select',!this.teamUserList[index].select);
- this.dealNumAndAll()
- },
- handleClose(){
- this.teamUserShow = false;
- this.initSelectUserComponent();
- },
- changeAll(selected){
- this.teamUserList.forEach((l,i)=>{
- this.$set(this.teamUserList[i],'select',selected);
- })
- this.$refs.selectTeamUser.selectNums = this.teamUserList.filter(l=>l.select).length;
- },
- dealNumAndAll(){
- const selectnum = this.teamUserList.filter(l=>l.select).length;
- this.$refs.selectTeamUser.selectNums = selectnum;
- this.$refs.selectTeamUser.selectAll = selectnum === this.teamUserList.length;
- },
- showReportUnavailable(kind){
- this.reportReminderMsg = kind === 'background'
- ? '背景报告需配合团队版评估数据生成'
- : '教练报告需要配合团队版评估数据生成';
- this.reportReminderShow = true;
- },
- showReportSelector(item){
- if(!this.guardReportOperation(item) || String(item.state) !== '1') return;
- this.reportSelectorItem = item;
- this.reportSelectorShow = true;
- },
- closeReportSelector(){
- this.reportSelectorShow = false;
- this.reportSelectorItem = null;
- },
- reportSelectorUnavailable(kind){
- return this.reportSelectorItem && String(this.reportSelectorItem.type) === '1'
- && ['background', 'professional'].indexOf(kind) !== -1;
- },
- selectReportArtifact(kind){
- const item = this.reportSelectorItem;
- this.closeReportSelector();
- if(!item || !this.guardReportOperation(item)) return;
- if(String(item.type) === '1' && ['background', 'professional'].indexOf(kind) !== -1) {
- return this.showReportUnavailable(kind);
- }
- this.reviewArtifact(item, kind);
- },
- canEditEvaluation(item){
- return canEditEvaluation(item);
- },
- openEvaluation(item){
- if(!this.guardReportOperation(item)) return;
- if(!this.canEditEvaluation(item)) return;
- this.evaluationReportId = item.reportId;
- this.evaluationSubmitting = false;
- this.evaluationTab = 'overall';
- this.evaluationVisible = true;
- this.$api.get('/core/report/evaluation/'+item.reportId).then(({data:res})=>{
- if(res.code!==0){ this.closeEvaluation(); return this.$showToast(res.msg); }
- if(res.data && res.data.processing){ this.closeEvaluation(); return this.$showToast('评估分析正在重新生成中,请稍候'); }
- this.evaluationForm = normalizeEvaluationForm(res.data || {});
- })
- },
- closeEvaluation(){
- if(this.evaluationSubmitting) return;
- this.evaluationVisible = false;
- this.evaluationReportId = '';
- },
- submitEvaluation(){
- if(this.evaluationSubmitting) return;
- if(!this.evaluationForm.overallAssessment.trim()) return this.$showToast('请输入总体评估结果');
- if(!this.evaluationForm.developmentAdvice.trim()) return this.$showToast('请输入团队发展建议');
- this.evaluationSubmitting = true;
- this.$api.post('/core/report/evaluation/'+this.evaluationReportId, this.evaluationForm).then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg);
- this.evaluationVisible = false;
- this.$emit('reSendReport');
- this.reportReminderMsg = EVALUATION_PROCESSING_PROMPT;
- this.reportReminderShow = true;
- }).finally(()=>{ this.evaluationSubmitting = false; });
- },
- sendConfirm(){
- if(!this.guardReportOperation(this.selectItem)) return;
- if(this.teamUserList.filter(t=>t.select).length===0) return this.$showToast('请选择要发送的用户')
- if(this.sendType===1&&(!uni.getStorageSync('userInfo')||!JSON.parse(uni.getStorageSync('userInfo')).email)) return this.$showModal('发送前请先在我的-设置-用户信息中绑定邮箱')
-
- if(this.sendType===1){
- this.handleClose();
- } else if(this.sendType===2){
- const item = JSON.parse(JSON.stringify(this.selectItem));
- uni.showModal({
- title:'发送报告',
- content:`是否确认将“${item.reportName||''}”发送给团队成员`,
- confirmText:'确认',
- success: (res) => {
- if(res.confirm){
- this.$api.post(`/core/report/sendReport`,{
- reportId:item.reportId,
- memberList:this.teamUserList.filter(t=>t.select).map(t=>({id:t.id,mobile:t.mobile,category:t.category}))
- }).then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg)
- this.handleClose();
- uni.navigateTo({
- url:'/pagesHome/sendResult?result='+res.code
- })
- })
- }
- }
- })
- }
- },
- initSelectUserComponent(){
- this.$refs.selectTeamUser.selectNums = 0;
- this.$refs.selectTeamUser.selectAll = false;
- },
- reviewArtifact(item, kind){
- if(!this.guardReportOperation(item)) return;
- const url = reportArtifactUrl(item, kind)
- if(!url) return this.$showToast('该报告尚未生成,请稍后再试。')
- const { isPC, isMobile, platform } = getPlatformInfo();
- console.log(platform,'platform');//android
- if (isPC) {
- this.$showModal('请在手机端该微信小程序中查看报告')
- } else if (isMobile||platform==='devtools') {
- this.openReportDocument(url)
- // uni.navigateTo({
- // url:'/pages/webView?src='+item.fileUrl
- // })
- }
- },
- async openReportDocument(fileUrl) {
- try {
- // 1. 显示加载提示
- uni.showLoading({ title: '加载中...' });
- // 2. 先下载PDF文件到本地(解决安卓直接预览网络文件慢的问题)
- const downloadRes = await uni.downloadFile({
- url: reportArtifactDownloadUrl(fileUrl),
- // 可选:设置超时时间,避免长时间等待
- timeout: 30000
- });
-
- const dres = downloadRes[1]||null;
-
- if (dres.statusCode !== 200) {
- uni.hideLoading();
- uni.showToast({ title: '文件下载失败', icon: 'none' });
- return;
- }
-
- // 3. 按实际扩展名使用微信原生文档预览
- const openRes = await uni.openDocument({
- filePath: dres.tempFilePath,
- fileType: this.documentType(fileUrl),
- showMenu: false
- });
-
- uni.hideLoading();
- } catch (error) {
- uni.hideLoading();
- uni.showToast({ title: '加载失败,请重试', icon: 'none' });
- }
- },
- documentType(fileUrl) {
- const path = (fileUrl || '').split('?')[0].toLowerCase()
- return path.endsWith('.docx') ? 'docx' : 'pdf'
- },
- askReport(item){
- if(!this.guardReportOperation(item)) return;
- uni.navigateTo({
- url:`/pages/reportAsk?pdfUrl=${item.fileUrl}&fileName=${this.typeCfg[item.type]||'个人版'}-${item.reportName}`
- })
- },
- async sendReport(item){
- if(!this.guardReportOperation(item)) return;
- if(!item.fileUrl) return this.$showModal('该报告尚未生成PDF文件,请等待生成后发送。')
-
- this.sendType = 2;
- this.$refs.selectTeamUser.title = '发送报告'
- this.selectItem = item;
- await this.getUserCategoryData()
- this.$api.get(`/core/member/listByQueTeamId/${item.teamQueId}`).then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg)
- this.teamUserList = res.data;
- this.teamUserList.forEach((l,i)=>{
- l.categoryName = this.categoryData.find(c=>c.id==l.category)?.name;
- this.$set(this.teamUserList[i],'select',false);
- })
- this.teamUserShow = true;
- })
- },
- reSendReport(item){
- if(!this.guardReportOperation(item)) return;
- this.$api.get(`/core/report/regenerateReport/${item.reportId}`).then(({data:res})=>{
- if(res.code!==0) return this.$showToast(res.msg)
- this.$emit('reSendReport')
- })
- }
- }
- }
- </script>
- <style scoped lang="scss">
- @import '../../../static/_asset-config';
- .gbox{
- height: 100%;
- &-item{
- margin-top: 20rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- padding: 40rpx 20rpx 20rpx;
- position: relative;
- &-generating-mask{
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 10;
- border-radius: 24rpx;
- background: rgba(255, 255, 255, .35);
- }
- &-top{
- &-type{
- width: 98rpx;
- height: 36rpx;
- padding: 2rpx 13rpx;
- box-sizing: border-box;
- background: #FFF7DC;
- border-radius: 6rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #BA9B31;
- line-height: 33rpx;
- }
- &-title{
- width: calc(100% - 98rpx);
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 32rpx;
- color: #002846;
- line-height: 32rpx;
- text-indent: 17rpx;
- }
- }
-
- &-ps{
- margin-top: 20rpx;
- background: #F5F8FA;
- border-radius: 5px;
- padding: 20rpx 20rpx 30rpx;
- position: relative;
- }
-
- &-p{
- margin-top: 32rpx;
- &:first-child{
- margin-top: 0;
- }
- &>view{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #667E90;
- line-height: 24rpx;
- }
- &-left{
- width: 134rpx;
- }
- &-right{
- width: calc(100% - 134rpx);
- }
- &-progress{
- width: calc(100% - 134rpx);
- &-l{
- width: 410rpx;
- height: 12rpx;
- background: #F0F2F8;
- border-radius: 6rpx;
- position: relative;
- &-current{
- height: 12rpx;
- background: #FFDF73;
- border-radius: 6rpx;
- position: absolute;
- left: 0;
- top: 0;
- }
- }
- &-r{
- width: calc(100% - 410rpx);
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #002846;
- line-height: 24rpx;
- text-align: right;
- }
- }
- }
-
- &-ask{
- width: 64rpx;
- height: 64rpx;
- position: absolute;
- right: 20rpx;
- bottom: 42rpx;
- }
-
- &-bottom{
- margin-top: 20rpx;
- overflow: hidden;
- &-rightbox{
- flex: 1;
- margin-left: -35rpx;
- justify-content: flex-end;
- }
- &-left{
- &>view{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #667E90;
- line-height: 24rpx;
- }
- }
- &-right{
- flex: 1;
- width: 0;
- height: 64rpx;
- padding: 0 8rpx;
- text-align: center;
- box-sizing: border-box;
- line-height: 64rpx;
- white-space: nowrap;
- background: linear-gradient( 90deg, #33A7A7 0%, #4DB2B2 100%);
- border-radius: 20rpx;
- font-family: PingFang-SC, PingFang-SC;
- font-size: 24rpx;
- color: #FFFFFF;
- margin-left: 35rpx;
- &.report-button-disabled{
- background: #D5DDE2;
- color: #FFFFFF;
- }
- }
- }
- }
-
- .kind-reminder{
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 1000;
- background: rgba(0, 0, 0, .6);
- .kr-box{
- width: calc(100% - 100rpx);
- padding: 54rpx 60rpx 48rpx;
- box-sizing: border-box;
- background: asset-image('remind_bg.png') no-repeat;
- background-size: 100% 100%;
- position: relative;
- image{
- width: 48rpx;
- height: 48rpx;
- position: absolute;
- top: 40rpx;
- right: 30rpx;
- }
- .kr-title{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 36rpx;
- color: #002846;
- line-height: 56rpx;
- text-align: center;
- }
- .kr-p{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 30rpx;
- color: #002846;
- line-height: 48rpx;
- text-align: center;
- span{
- font-weight: bold;
- margin: 0 10rpx;
- }
- }
- .kr-btn{
- width: calc(100% - 80rpx);
- height: 88rpx;
- background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
- border-radius: 44rpx;
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 32rpx;
- color: #FFFFFF;
- line-height: 88rpx;
- text-align: center;
- letter-spacing: 2rpx;
- margin-top: 66rpx;
- }
- }
- }
- }
- .report-selector-box{padding-bottom: 36rpx;}
- .report-selector-tip{margin-top: 20rpx;text-align:center;font-size:28rpx;color:#667E90;}
- .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;}
- .report-selector-btn.disabled{background:#D5DDE2;}
- .report-selector-cancel{margin-top:24rpx;text-align:center;font-size:28rpx;line-height:48rpx;color:#667E90;}
- .evaluation-mask{position:fixed;left:0;right:0;top:0;bottom:0;z-index:30;background:rgba(0,0,0,.45);}
- .evaluation-box{width:650rpx;background:#fff;border-radius:16rpx;padding:34rpx 28rpx 26rpx;box-sizing:border-box;}
- .evaluation-box-tall{height:78vh;min-height:760rpx;display:flex;flex-direction:column;}
- .evaluation-tabs{display:flex;margin-top:24rpx;border-bottom:1rpx solid #E5EAED;}
- .evaluation-tab{flex:1;height:72rpx;text-align:center;font-size:28rpx;color:#667E90;line-height:72rpx;position:relative;}
- .evaluation-tab.active{font-weight:bold;color:#33A7A7;}
- .evaluation-tab.active::after{content:'';position:absolute;left:25%;right:25%;bottom:-1rpx;height:6rpx;border-radius:3rpx;background:#33A7A7;}
- .evaluation-panel{flex:1;display:flex;flex-direction:column;min-height:0;}
- .evaluation-label{font-size:28rpx;font-weight:bold;color:#333;margin:18rpx 0 12rpx;}
- .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;}
- .evaluation-actions{display:flex;justify-content:flex-end;gap:20rpx;margin-top:28rpx;}
- .evaluation-cancel,.evaluation-submit{padding:18rpx 28rpx;border-radius:10rpx;font-size:28rpx;}
- .evaluation-cancel{color:#666;background:#f2f2f2;}
- .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;}
- .evaluation-submit.disabled{opacity:.5;}
- </style>
|