代码优化
This commit is contained in:
parent
689d9b0efd
commit
917a856046
|
|
@ -21,13 +21,15 @@
|
||||||
{
|
{
|
||||||
"path": "pages/opinion/index",
|
"path": "pages/opinion/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "意见收集"
|
"navigationBarTitleText": "custom",
|
||||||
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/error/index",
|
"path": "pages/error/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "意见收集"
|
"navigationBarTitleText": "custom",
|
||||||
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ const isCode = ref('203')
|
||||||
const startTime = ref('')
|
const startTime = ref('')
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
|
uni.setNavigationBarTitle({ title: '意见收集' })
|
||||||
|
document.title = '意见收集'
|
||||||
if (option.code) {
|
if (option.code) {
|
||||||
isCode.value = option.code
|
isCode.value = option.code
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
<view class="title"> 任务主题 </view>
|
||||||
<text class="text-box">   {{ taskDescribe }} </text>
|
<text class="text-box">   {{ taskDescribe }} </text>
|
||||||
|
|
||||||
<!-- 意见收集 -->
|
<!-- 意见收集 -->
|
||||||
|
|
@ -152,6 +153,9 @@ const opinionRules = ref({
|
||||||
const isRequired = ref(false)
|
const isRequired = ref(false)
|
||||||
|
|
||||||
onLoad(async (option) => {
|
onLoad(async (option) => {
|
||||||
|
uni.setNavigationBarTitle({ title: '意见收集' })
|
||||||
|
// 或直接修改 document.title
|
||||||
|
document.title = '意见收集'
|
||||||
if (option.taskId) {
|
if (option.taskId) {
|
||||||
opinionModel.value.taskId = option.taskId
|
opinionModel.value.taskId = option.taskId
|
||||||
|
|
||||||
|
|
@ -339,6 +343,13 @@ const afterRead = async (event) => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
padding: 18rpx 0 0 0;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
.text-box {
|
.text-box {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
line-height: 2.2;
|
line-height: 2.2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue