项目添加页面导航栏修改

This commit is contained in:
WindowBird 2025-11-18 17:19:03 +08:00
parent 762bdaf71e
commit 49900f16ed
2 changed files with 15 additions and 15 deletions

View File

@ -141,8 +141,8 @@
{ {
"path": "pages/project/form/index", "path": "pages/project/form/index",
"style": { "style": {
"navigationBarTitleText": "项目编辑", "navigationBarTitleText": "项目编辑"
"navigationStyle": "custom"
} }
}, },
{ {

View File

@ -1,18 +1,18 @@
<template> <template>
<view class="project-form-page"> <view class="project-form-page">
<view class="custom-navbar"> <!-- <view class="custom-navbar">-->
<view class="navbar-content"> <!-- <view class="navbar-content">-->
<text class="nav-btn" @click="handleBack">取消</text> <!-- <text class="nav-btn" @click="handleBack">取消</text>-->
<text class="nav-title">{{ pageTitle }}</text> <!-- <text class="nav-title">{{ pageTitle }}</text>-->
<text <!-- <text-->
class="nav-btn" <!-- class="nav-btn"-->
:class="{ disabled: !canSubmit || submitting }" <!-- :class="{ disabled: !canSubmit || submitting }"-->
@click="handleSubmit" <!-- @click="handleSubmit"-->
> <!-- >-->
{{ mode === 'edit' ? '保存' : '创建' }} <!-- {{ mode === 'edit' ? '保存' : '创建' }}-->
</text> <!-- </text>-->
</view> <!-- </view>-->
</view> <!-- </view>-->
<view class="loading-box" v-if="pageLoading"> <view class="loading-box" v-if="pageLoading">
<text class="loading-text">加载中...</text> <text class="loading-text">加载中...</text>