代码优化
This commit is contained in:
parent
689d9b0efd
commit
917a856046
|
|
@ -21,13 +21,15 @@
|
|||
{
|
||||
"path": "pages/opinion/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "意见收集"
|
||||
"navigationBarTitleText": "custom",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/error/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "意见收集"
|
||||
"navigationBarTitleText": "custom",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="title"> 任务主题 </view>
|
||||
<text class="text-box">   {{ 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue