Commit fc6890a0 by 李伟康

style(components): 优化订单弹窗和日历组件的样式

- 修改 CouponList 组件中禁用状态的样式,使其看起来更美观
- 调整 UniCalendar 组件中选中日期的样式,提高视觉效果
- 为 UniCalendar 组件添加标题属性,增强用户体验
1 parent f0b929a7
...@@ -221,7 +221,8 @@ export default { ...@@ -221,7 +221,8 @@ export default {
} }
} }
.disabled { .disabled {
opacity: 0.5; border: 2rpx solid #dce0e666;
color: #3333331a;
} }
.active { .active {
border-color: #2c66f7; border-color: #2c66f7;
......
...@@ -190,20 +190,24 @@ $uni-primary: #4673ff !default; ...@@ -190,20 +190,24 @@ $uni-primary: #4673ff !default;
.uni-calendar-item--checked { .uni-calendar-item--checked {
background-color: $uni-primary; background-color: $uni-primary;
color: #fff; color: #fff;
opacity: 0.8; // opacity: 0.8;
} }
.uni-calendar-item--multiple { .uni-calendar-item--multiple {
background-color: $uni-primary; background-color: rgba($color: $uni-primary, $alpha: 0.8);
color: #fff; color: #fff;
opacity: 0.8; .uni-calendar-item--multiple{
background: none;
}
// opacity: 0.8;
} }
.uni-calendar-item--before-checked { .uni-calendar-item--before-checked {
background-color: #ff5a5f; background-color: #4673FF;
color: #fff; color: #fff;
} }
.uni-calendar-item--after-checked { .uni-calendar-item--after-checked {
background-color: #ff5a5f; background-color: #4673FF;
color: #fff; color: #fff;
border-radius: inherit;
} }
</style> </style>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
> >
<text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text> <text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text>
</view> </view>
<viw class="uni-calendar__header-title">{{title}}</viw>
<view <view
class="uni-calendar__header-btn-box" class="uni-calendar__header-btn-box"
@click="confirm" @click="confirm"
...@@ -184,9 +185,13 @@ export default { ...@@ -184,9 +185,13 @@ export default {
type: Object, type: Object,
default: () => { { } } default: () => { { } }
}, },
backgroundColor:{ backgroundColor: {
type: String, type: String,
default: '#fff' default: '#fff'
},
title:{
type: String,
default: '选择日期'
} }
}, },
data () { data () {
...@@ -308,7 +313,7 @@ export default { ...@@ -308,7 +313,7 @@ export default {
} }
this.choiceDate(before) this.choiceDate(before)
setTimeout(() => { setTimeout(() => {
uni.hideLoading() uni.hideLoading()
this.choiceDate(after) this.choiceDate(after)
}, 100) }, 100)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!