This commit is contained in:
李志鹏
2026-05-28 11:31:37 +08:00
parent 8f23b4c387
commit 5ada85d05c
5 changed files with 68 additions and 10 deletions

50
src/views/pay/index.vue Normal file
View File

@@ -0,0 +1,50 @@
<template>
<div class="pay">
<div class="content">
<sc-list title="Order Summary" is-view is-mini :list="list" />
</div>
<my-footer />
</div>
</template>
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue'
import scList from '../shoppingCart/sc-list.vue'
import myFooter from '@/components/Footer.vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const list = ref([])
try {
let str = route.query.list as string
list.value = JSON.parse(decodeURIComponent(atob(str)))
} catch (error) {}
</script>
<style lang="less" scoped>
.pay {
width: 100%;
height: 100%;
overflow: hidden;
overflow-y: auto;
--content-top: 4.8rem;
> .content {
max-width: 126rem;
padding-top: var(--content-top);
margin: 0 auto;
min-height: var(--app-view-height);
display: flex;
align-items: flex-start;
> .sc-list {
flex: 1;
margin-right: 7.5rem;
margin-bottom: 8rem;
--sc-list-header-top: var(--content-top);
}
> .order-summary {
position: sticky;
top: var(--content-top);
max-height: var(--app-view-height);
}
}
}
</style>