diff --git a/src/component/Account/account.vue b/src/component/Account/account.vue index 6a9280e5..cb654938 100644 --- a/src/component/Account/account.vue +++ b/src/component/Account/account.vue @@ -266,9 +266,11 @@ export default defineComponent({ .account_page{ height: 100%; // overflow-y: auto; - padding: 0 26rem; + // padding: 0 26rem; // padding: 0 7rem; padding-top: 4rem; + max-width: 100rem; + margin: 0 auto; display: flex; overflow: hidden; .account_page_titleImg{ diff --git a/src/views/SellerDashboard/MyOrders/index.vue b/src/views/SellerDashboard/MyOrders/index.vue index f73e2fa8..019c7e65 100644 --- a/src/views/SellerDashboard/MyOrders/index.vue +++ b/src/views/SellerDashboard/MyOrders/index.vue @@ -93,7 +93,7 @@ const maxItemNum = ref(2) const loading = ref(false) const finish = ref(false) - const total = ref(30) + const total = ref(0) const page = ref(1) const size = ref(10) const nameOrId = ref("") @@ -107,9 +107,9 @@ } const data = { page: page.value, - size: size.value, - nameOrId: nameOrId.value + size: size.value } + if (nameOrId.value) data.nameOrId = nameOrId.value console.log(data) setTimeout(() => { for (let i = 0; i < size.value; i++) { @@ -134,6 +134,7 @@ ] }) } + total.value = 30 page.value++ finish.value = page.value > total.value / 10 loading.value = false