146 lines
2.9 KiB
Vue
146 lines
2.9 KiB
Vue
<script setup>
|
|
import { ref } from "vue";
|
|
import { cartListApi, cartDeleteApi, cartChangeApi } from "@/api/store.js";
|
|
|
|
const list = ref([]);
|
|
const keyword = ref('')
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<div class="my-order">
|
|
<div class="header-nav">
|
|
<div class="nav-item">
|
|
订单列表
|
|
</div>
|
|
<div class="nav-item-clear" @click="clearAll">
|
|
<el-icon><Delete /></el-icon>清空
|
|
</div>
|
|
</div>
|
|
<div class="header-input">
|
|
<el-input v-model="keyword" placeholder="请输入付款"></el-input>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.my-order {
|
|
border-radius: 1.2rem;
|
|
height: 100%;
|
|
background-color: #fff;
|
|
width: 30rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
.header-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
height: 1.5rem;
|
|
|
|
span {
|
|
color: #ff4a00;
|
|
}
|
|
.nav-item-clear {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.header-input{
|
|
padding: 1rem;
|
|
padding-top: 0;
|
|
padding-bottom: 2rem;
|
|
height: 1.5rem;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
.order-list {
|
|
height: calc(100vh - 100px - 14rem);
|
|
overflow-y: auto;
|
|
.order-item {
|
|
display: flex;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #eee;
|
|
|
|
.order-item-img {
|
|
width: 5rem;
|
|
height: 5rem;
|
|
border-radius: 0.5rem;
|
|
}
|
|
.order-item-info {
|
|
flex: 1;
|
|
box-sizing: border-box;
|
|
padding-left: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
& > div {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.order-item-title {
|
|
.title {
|
|
width: 18rem;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.delete {
|
|
color: #1890ff;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
.order-item-sku {
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.order-footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
box-shadow: 0 -1px 10px #eee;
|
|
|
|
.order-total {
|
|
height: 2.5rem;
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #eee;
|
|
align-items: center;
|
|
.price {
|
|
display: flex;
|
|
align-items: center;
|
|
.total-item {
|
|
padding-right: 1.5rem;
|
|
span {
|
|
color: #f5222d;
|
|
}
|
|
}
|
|
}
|
|
.update-price {
|
|
.btn {
|
|
border-radius: 3rem;
|
|
}
|
|
}
|
|
}
|
|
.order-btn {
|
|
height: 3.2rem;
|
|
padding: 1rem 1.5rem;
|
|
.btn {
|
|
width: 100%;
|
|
height: 100%;
|
|
font-size: 1.2rem;
|
|
border-radius: 3rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|