代码优化

This commit is contained in:
BianLzhaoMin 2025-04-10 16:24:52 +08:00
parent 689d9b0efd
commit 917a856046
3 changed files with 17 additions and 2 deletions

View File

@ -21,13 +21,15 @@
{
"path": "pages/opinion/index",
"style": {
"navigationBarTitleText": "意见收集"
"navigationBarTitleText": "custom",
"navigationStyle": "custom"
}
},
{
"path": "pages/error/index",
"style": {
"navigationBarTitleText": "意见收集"
"navigationBarTitleText": "custom",
"navigationStyle": "custom"
}
}
],

View File

@ -19,6 +19,8 @@ const isCode = ref('203')
const startTime = ref('')
onLoad((option) => {
uni.setNavigationBarTitle({ title: '意见收集' })
document.title = '意见收集'
if (option.code) {
isCode.value = option.code
}

View File

@ -1,5 +1,6 @@
<template>
<view class="content">
<view class="title"> 任务主题 </view>
<text class="text-box"> &emsp;&emsp;{{ taskDescribe }} </text>
<!-- 意见收集 -->
@ -152,6 +153,9 @@ const opinionRules = ref({
const isRequired = ref(false)
onLoad(async (option) => {
uni.setNavigationBarTitle({ title: '意见收集' })
// document.title
document.title = '意见收集'
if (option.taskId) {
opinionModel.value.taskId = option.taskId
@ -339,6 +343,13 @@ const afterRead = async (event) => {
align-items: center;
background-color: #f5f5f5;
overflow-y: auto;
.title {
padding: 18rpx 0 0 0;
font-size: 18px;
font-weight: bold;
text-align: center;
}
.text-box {
padding: 20px;
line-height: 2.2;