Commit 1c03567a by 李伟康

style(common): 调整日报页面按钮样式

- 修改按钮类名绑定方式以支持动态样式
- 添加w50类定义实现按钮宽度自适应布局
- 优化CSS样式计算逻辑提高界面显示效果
1 parent 4fd285ef
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
</view> </view>
<view class="footer"> <view class="footer">
<Footer> <Footer>
<view class="btn default-btn" @click="$emit('showNegotiationList')">查看洽谈明细表汇总</view> <view :class="['btn default-btn', { w50: !saveBtn }]" @click="$emit('showNegotiationList')">查看洽谈明细表汇总</view>
<view class="btn default-btn" @click="saveBtn = true" v-if="!saveBtn">编辑</view> <view :class="['btn default-btn',{w50:!saveBtn}]" @click="saveBtn = true" v-if="!saveBtn">编辑</view>
<template v-else> <template v-else>
<view class="btn default-btn" @click="$emit('saveReport', list)">保存</view> <view class="btn default-btn" @click="$emit('saveReport', list)">保存</view>
<view class="btn" @click="$emit('submitReport', list)">上报数据</view> <view class="btn" @click="$emit('submitReport', list)">上报数据</view>
...@@ -394,6 +394,9 @@ export default { ...@@ -394,6 +394,9 @@ export default {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
} }
.w50{
width: calc(100% / 2 - #{toRpx(32)});
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!