fix: 增强错误处理与组件逻辑优化

- 在 App.vue 中添加 JSON 解析错误处理,确保站点信息获取的稳定性。
- 更新多个 API 请求,添加 loading 状态管理,提升用户体验。
- 在 Search.vue 中优化热词列表的解析逻辑,增强容错性。
- 改进购物车、地址管理等 API 请求参数,确保一致性与可用性。
- 新增用户中心布局组件,提升用户界面的一致性与可读性。
This commit is contained in:
田香琪
2026-07-03 18:29:41 +08:00
parent 99de0d4722
commit bd9a5f75b0
79 changed files with 2382 additions and 1207 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="wrapper">
<card _Title="我的分销" />
<UserCenterLayout title="我的分销" :tabs="['我的分销']">
<!-- 分销申请 -->
<div v-if="status === 0">
@@ -103,7 +103,6 @@
:total="goodsData.total"
:page-size="params.pageSize"
@current-change="changePage"
small
layout="total, prev, pager, next, jumper"></el-pagination>
</div>
</el-tab-pane>
@@ -141,7 +140,6 @@
:total="goodsData.total"
:page-size="params.pageSize"
@current-change="changePage"
small
layout="total, prev, pager, next, jumper"></el-pagination>
</div>
</el-tab-pane>
@@ -178,7 +176,6 @@
:total="logData.total"
:page-size="logParams.pageSize"
@current-change="changePageLog"
small
layout="total, prev, pager, next, jumper"></el-pagination>
</div>
</el-tab-pane>
@@ -254,6 +251,7 @@
<div class="mt_10" style="margin-top: 100px;">
商品链接<el-input style="width: 600px" v-model="qrcode"></el-input>
</div></el-dialog>
</UserCenterLayout>
</div>
</template>
@@ -510,8 +508,9 @@ export default {
margin: 20px 0;
}
.page-size {
display: flex;
justify-content: flex-end;
margin: 15px 0px;
text-align: right;
}
.account-price {
font-weight: bold;