xiabin修改购物车

This commit is contained in:
13713575202 2025-06-12 16:03:12 +08:00
parent 836ddc9f0e
commit 014aa8e02b

View File

@ -86,6 +86,10 @@
<el-button :disabled="data.length == 0" :type="data.length != 0 ? 'primary' : 'info'" @click="toSettlement">结算</el-button> <el-button :disabled="data.length == 0" :type="data.length != 0 ? 'primary' : 'info'" @click="toSettlement">结算</el-button>
</div> </div>
</div> </div>
<!-- <div class="pagination">
<div style="color: #999999; font-size: 15px">{{ data.total }}</div>
<el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="data.total" />
</div> -->
</div> </div>
</div> </div>
</template> </template>
@ -152,7 +156,6 @@ let datalist = reactive([
onMounted(() => { onMounted(() => {
shoppingCart(page).then((res) => { shoppingCart(page).then((res) => {
console.log(res.data.records);
data.value = res.data.records; data.value = res.data.records;
addIsCheckProperty(data); addIsCheckProperty(data);
}); });
@ -446,7 +449,19 @@ function removeCheckedItems(data) {
} }
} }
} }
.pagination {
padding-left: 20px;
align-items: center;
display: flex;
z-index: 999;
width: 65%;
height: 40px;
background-color: #fff;
position: fixed;
bottom: 38px;
}
.fix-bottom { .fix-bottom {
// bottom: 30px;
bottom: 0; bottom: 0;
display: inline-flex; display: inline-flex;
justify-content: space-between; justify-content: space-between;