Commit fc6890a0 by 李伟康

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

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