forked from natuka/web.puabadge.com
修改:我的订单页面优化
This commit is contained in:
1 parent
7427056dfd
commit
018a3db13d
3 files changed
+19
-20
No files matched your search
Vendored
-2
@@ -16,7 +16,6 @@ declare module '@vue/runtime-core' {
|
|||||||
ElAlert: typeof import('element-plus/es')['ElAlert']
|
ElAlert: typeof import('element-plus/es')['ElAlert']
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
|
||||||
ElImage: typeof import('element-plus/es')['ElImage']
|
ElImage: typeof import('element-plus/es')['ElImage']
|
||||||
ElInput: typeof import('element-plus/es')['ElInput']
|
ElInput: typeof import('element-plus/es')['ElInput']
|
||||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||||
@@ -36,7 +35,6 @@ declare module '@vue/runtime-core' {
|
|||||||
VanIcon: typeof import('vant/es')['Icon']
|
VanIcon: typeof import('vant/es')['Icon']
|
||||||
VanList: typeof import('vant/es')['List']
|
VanList: typeof import('vant/es')['List']
|
||||||
VanLoading: typeof import('vant/es')['Loading']
|
VanLoading: typeof import('vant/es')['Loading']
|
||||||
VanOverlay: typeof import('vant/es')['Overlay']
|
|
||||||
VanPullRefresh: typeof import('vant/es')['PullRefresh']
|
VanPullRefresh: typeof import('vant/es')['PullRefresh']
|
||||||
VanStepper: typeof import('vant/es')['Stepper']
|
VanStepper: typeof import('vant/es')['Stepper']
|
||||||
VanUploader: typeof import('vant/es')['Uploader']
|
VanUploader: typeof import('vant/es')['Uploader']
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ export const cartoonConfig = {
|
|||||||
styles: {
|
styles: {
|
||||||
gap: 8, // 间距
|
gap: 8, // 间距
|
||||||
itemWidth: 'calc(50% - 4px)', // 订单项宽度
|
itemWidth: 'calc(50% - 4px)', // 订单项宽度
|
||||||
itemHeight: '43vw', // 订单项高度
|
itemHeight: 'calc(50vw - 4px)', // 订单项高度
|
||||||
borderRadius: 12, // 圆角
|
borderRadius: 12, // 圆角
|
||||||
padding: {
|
padding: {
|
||||||
horizontal: 16,
|
horizontal: 16,
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ function getStatus(status: number) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -98,47 +98,48 @@ function getStatus(status: number) {
|
|||||||
.order-list {
|
.order-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: v-bind('config.myOrder.styles.gap + "px"');
|
gap: 8px;
|
||||||
padding: v-bind('config.myOrder.styles.padding.vertical + "px"') v-bind('config.myOrder.styles.padding.horizontal + "px"');
|
padding: 24px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-item {
|
.order-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: v-bind('config.myOrder.styles.itemWidth');
|
width: calc(50vw - 4px);
|
||||||
height: v-bind('config.myOrder.styles.itemHeight');
|
height: calc(50vw - 4px);
|
||||||
box-shadow: v-bind('config.myOrder.styles.shadow');
|
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-img {
|
.order-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: v-bind('config.myOrder.styles.borderRadius + "px"');
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-status {
|
.order-status {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: v-bind('config.myOrder.styles.status.bottom + "px"');
|
bottom: 5px;
|
||||||
right: v-bind('config.myOrder.styles.status.right + "px"');
|
right: 5px;
|
||||||
padding: v-bind('config.myOrder.styles.status.padding.vertical + "px"') v-bind('config.myOrder.styles.status.padding.horizontal + "px"');
|
padding: 2px 12px;
|
||||||
border-radius: v-bind('config.myOrder.styles.status.borderRadius + "px"');
|
border-radius: 12px;
|
||||||
font-size: v-bind('config.myOrder.styles.status.fontSize + "px"');
|
font-size: 12px;
|
||||||
color: v-bind('config.myOrder.statusStyles.default.color');
|
color: #fff;
|
||||||
background: v-bind('config.myOrder.statusStyles.default.background');
|
background: #bdbdbd;
|
||||||
opacity: v-bind('config.myOrder.statusStyles.default.opacity');
|
opacity: 0.9;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-processing {
|
.status-processing {
|
||||||
background: v-bind('config.myOrder.statusStyles.processing.background');
|
background: #bdbdbd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-finished {
|
.status-finished {
|
||||||
background: v-bind('config.myOrder.statusStyles.finished.background');
|
background: #8bc34a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-image-item-null {
|
.record-image-item-null {
|
||||||
|
|||||||
Reference in new issue
Block a user