添加设置页面

This commit is contained in:
WindowBird 2025-10-16 14:23:11 +08:00
parent 99e553008d
commit 992459f4f2
5 changed files with 77 additions and 4 deletions

View File

@ -243,6 +243,12 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path" : "pages/personalCenter/set",
"style": {
"navigationStyle": "custom"
}
}
],
"subPackages": [

View File

@ -303,10 +303,10 @@ export default {
async handleSearchMemorial() {
if (!this.ensureUnitSelected()) return;
try {
const { type } = await this.promptSearchParams();
// const { type } = await this.promptSearchParams();
const payload = {
memorialId: String(this.selectedUnitId),
type,
type: "3",
timeout: "11",
};
await this.performPut(

View File

@ -93,6 +93,12 @@ export default {
//
path: "/pages/memorial/adminMemorial",
},
{
title: "设置",
icon: "https://api.ccttiot.com/7ee81e0f35cde641f80887485f287e0c-1760513960519.png",
//
path: "/pages/personalCenter/set",
},
{
title: "退出登录",
icon: "https://api.ccttiot.com/0f4e09531ddffda3aff94a5fd2b5d7d4-1760514133937.png",

View File

@ -0,0 +1,61 @@
<template>
<view class="page">
<custom-navbar ref="customNavbar" title="设置" />
<tile-grid />
<view :style="{ backgroundColor: CommonEnum.BASE_COLOR }" class="header">
<!-- 状态展示 -->
<status-display v-if="loading" loading-text="加载中..." type="loading" />
<!-- 页面内容将在这里添加 -->
</view>
</view>
</template>
<script>
import CommonEnum from "../../enum/common";
export default {
components: {},
data() {
return {
CommonEnum,
loading: false,
};
},
onLoad() {
//
this.loadPageData();
},
methods: {
//
async loadPageData() {
this.loading = true;
try {
// TODO: API
// const response = await getPageData()
//
setTimeout(() => {
this.loading = false;
}, 1000);
} catch (error) {
console.error("获取页面数据失败:", error);
this.loading = false;
}
},
},
};
</script>
<style lang="scss" scoped>
.page {
background: #f5f0e7;
}
.header {
width: 100%;
//min-height: 100vh;//
display: flex;
align-items: flex-start;
flex-direction: column;
padding: 0 15rpx 40rpx;
}
</style>

View File

@ -6,9 +6,9 @@ import debounce from "uview-ui/libs/function/debounce";
const ENV_CONFIG = {
release: {
// 正式版
// baseUrl: "http://192.168.2.158:4501",
baseUrl: "http://192.168.1.3:4501",
// baseUrl: "https://tech-ape.top/prod-api",
// baseUrl: "https://tech-ape.top/prod-api",
baseUrl: "https://tech-ape.top/prod-api",
appId: 1,
},
};