添加设置页面
This commit is contained in:
parent
99e553008d
commit
992459f4f2
|
|
@ -243,6 +243,12 @@
|
||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/personalCenter/set",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
|
|
|
||||||
|
|
@ -303,10 +303,10 @@ export default {
|
||||||
async handleSearchMemorial() {
|
async handleSearchMemorial() {
|
||||||
if (!this.ensureUnitSelected()) return;
|
if (!this.ensureUnitSelected()) return;
|
||||||
try {
|
try {
|
||||||
const { type } = await this.promptSearchParams();
|
// const { type } = await this.promptSearchParams();
|
||||||
const payload = {
|
const payload = {
|
||||||
memorialId: String(this.selectedUnitId),
|
memorialId: String(this.selectedUnitId),
|
||||||
type,
|
type: "3",
|
||||||
timeout: "11",
|
timeout: "11",
|
||||||
};
|
};
|
||||||
await this.performPut(
|
await this.performPut(
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,12 @@ export default {
|
||||||
// 无图标,仅管理员可见
|
// 无图标,仅管理员可见
|
||||||
path: "/pages/memorial/adminMemorial",
|
path: "/pages/memorial/adminMemorial",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "设置",
|
||||||
|
icon: "https://api.ccttiot.com/7ee81e0f35cde641f80887485f287e0c-1760513960519.png",
|
||||||
|
// 无图标,仅管理员可见
|
||||||
|
path: "/pages/personalCenter/set",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "退出登录",
|
title: "退出登录",
|
||||||
icon: "https://api.ccttiot.com/0f4e09531ddffda3aff94a5fd2b5d7d4-1760514133937.png",
|
icon: "https://api.ccttiot.com/0f4e09531ddffda3aff94a5fd2b5d7d4-1760514133937.png",
|
||||||
|
|
|
||||||
61
pages/personalCenter/set.vue
Normal file
61
pages/personalCenter/set.vue
Normal 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>
|
||||||
|
|
@ -6,9 +6,9 @@ import debounce from "uview-ui/libs/function/debounce";
|
||||||
const ENV_CONFIG = {
|
const ENV_CONFIG = {
|
||||||
release: {
|
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",
|
||||||
baseUrl: "https://tech-ape.top/prod-api",
|
|
||||||
appId: 1,
|
appId: 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user