Commit 52506eac by 李伟康

feat(OrderPopup): 优化 Coupons 和 DateTime 组件

- 在 CouponList 组件中添加自动选择第一个优惠券的逻辑
- 调整 DateTime 组件中日期和时间选择器的样式,提高用户体验
1 parent ca19a6e0
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
(item.status == 1 && item.id == orderObj.customerCouponId) (item.status == 1 && item.id == orderObj.customerCouponId)
); );
}) })
if(this.customerCouponList.length) this.choose(this.customerCouponList[0],true)
} }
}, },
handleSearch (searchValue) { handleSearch (searchValue) {
......
...@@ -216,12 +216,16 @@ export default { ...@@ -216,12 +216,16 @@ export default {
.picker { .picker {
height: 100%; height: 100%;
text-align: center; text-align: center;
.uni-picker-view-content>*{ .view {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: toRpx(32); font-size: toRpx(32);
height: toRpx(72);
} }
} }
/deep/.indicator{
height: toRpx(72);
}
} }
</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!