提交 f3445b75 作者: 毛细亚

style: 优化游戏预览和带教记录组件样式

上级 2e1bede3
...@@ -81,12 +81,12 @@ ...@@ -81,12 +81,12 @@
> >
</div> </div>
<!-- 左上角小眼睛图标 --> <!-- 左上角小眼睛图标 -->
<div class="eye-icon" @click.stop="showPreview(item, index)"> <div class="eye-icon" :class="{'eye-icon-checked': wxGameForm.selectedBackgroundIndex === index}" @click.stop="showPreview(item, index)">
<i class="el-icon-view"></i> <i class="el-icon-view"></i>
</div> </div>
<!-- 右上角选中/未选中图标 --> <!-- 右上角选中/未选中图标 -->
<div class="status-icon"> <div class="status-icon">
<i v-if="wxGameForm.selectedBackgroundIndex === index" class="el-icon-circle-check status-icon-checked"></i> <i v-if="wxGameForm.selectedBackgroundIndex === index" class="el-icon-success status-icon-checked"></i>
<svg-icon v-else icon-class="uncheck" class="status-icon-unchecked"></svg-icon> <svg-icon v-else icon-class="uncheck" class="status-icon-unchecked"></svg-icon>
</div> </div>
</div> </div>
...@@ -868,13 +868,16 @@ ...@@ -868,13 +868,16 @@
i { i {
font-size: 16px; font-size: 16px;
color: #00bf8a;
} }
&:hover { &:hover {
opacity: 0.8; opacity: 0.8;
color: #00bf8a;
} }
} }
.eye-icon-checked {
color: #00bf8a;
}
.status-icon { .status-icon {
position: absolute; position: absolute;
...@@ -922,8 +925,8 @@ ...@@ -922,8 +925,8 @@
.preview-wrapper { .preview-wrapper {
position: relative; position: relative;
width: 100%;
display: flex; display: flex;
justify-content: center;
} }
.preview-background { .preview-background {
......
...@@ -211,13 +211,11 @@ ...@@ -211,13 +211,11 @@
<el-drawer <el-drawer
:visible.sync="showMentorRecord" :visible.sync="showMentorRecord"
v-if="showMentorRecord" v-if="showMentorRecord"
title="带教记录" :title="`${currentRoleName}带教记录`"
size="320px"
:append-to-body="true" :append-to-body="true"
> >
<mentorRecord <mentorRecord
:role-id="currentRoleId" :role-id="currentRoleId"
:role-name="currentRoleName"
@refresh="handleMentorRecordRefresh" @refresh="handleMentorRecordRefresh"
/> />
</el-drawer> </el-drawer>
......
...@@ -2,17 +2,12 @@ ...@@ -2,17 +2,12 @@
* @Author: 金多虾 937667504@qq.com * @Author: 金多虾 937667504@qq.com
* @Date: 2025-12-11 11:01:15 * @Date: 2025-12-11 11:01:15
* @LastEditors: 金多虾 937667504@qq.com * @LastEditors: 金多虾 937667504@qq.com
* @LastEditTime: 2025-12-17 18:25:00 * @LastEditTime: 2025-12-20 11:25:56
* @FilePath: /company_wx_frontend/src/views/works/component/gameInfo/roleInfo/mentorRecord.vue * @FilePath: /company_wx_frontend/src/views/works/component/gameInfo/roleInfo/mentorRecord.vue
* @Description: 带教记录组件 * @Description: 带教记录组件
--> -->
<template> <template>
<div class="mentor-record-page"> <div class="mentor-record-page">
<!-- 标题栏 -->
<div class="mentor-record-page__header">
<p class="mentor-record-page__header-title">{{ roleName }}带教记录</p>
</div>
<!-- 提示信息和添加按钮区域 --> <!-- 提示信息和添加按钮区域 -->
<div class="mentor-record-page__toolbar"> <div class="mentor-record-page__toolbar">
<el-button <el-button
...@@ -35,8 +30,8 @@ ...@@ -35,8 +30,8 @@
class="mentor-record-page__add-form-input" class="mentor-record-page__add-form-input"
/> />
<div class="mentor-record-page__add-form-buttons"> <div class="mentor-record-page__add-form-buttons">
<el-button size="small" @click="handleCancelAdd">取消</el-button> <el-button size="mini" @click="handleCancelAdd">取消</el-button>
<el-button type="primary" size="small" :loading="submitLoading" @click="handleSubmitAdd">保存</el-button> <el-button type="primary" size="mini" :loading="submitLoading" @click="handleSubmitAdd">保存</el-button>
</div> </div>
</div> </div>
...@@ -73,10 +68,6 @@ export default { ...@@ -73,10 +68,6 @@ export default {
type: [String, Number], type: [String, Number],
required: true required: true
}, },
roleName: {
type: String,
default: ''
}
}, },
data() { data() {
return { return {
...@@ -228,10 +219,8 @@ export default { ...@@ -228,10 +219,8 @@ export default {
&__toolbar { &__toolbar {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: flex-end;
padding: 12px 0; margin-bottom: 20px;
margin-top: 12px;
&-tip { &-tip {
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-size: 12px; font-size: 12px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论