feat(uploadClothes): 隐藏页面头部并更新标题配置

- 在页面挂载时隐藏 uni-app 默认头部导航栏- 更新 pages.json 中页面标题文本为 "1234"
- 配置 titleNView选项以关闭 H5 和 app 端的标题栏
- 添加关于换发型功能的文档链接到 README.md
This commit is contained in:
liguigong
2025-10-09 17:42:59 +08:00
parent 738f56caad
commit d0af1f8f8b
3 changed files with 14 additions and 2 deletions
+4
View File
@@ -48,3 +48,7 @@ PC的老版本地址: https://puton.meidaojia.com/
【腾讯文档】PUTON美搭小程序-验收文档
https://docs.qq.com/sheet/DS0pybm5Yc1ViakNj
改成所有人可编辑了
换发型: https://leops128e7.feishu.cn/docx/HVCHdCAV8ok4bkxcaXVc6q6enXb
+5 -1
View File
@@ -100,8 +100,12 @@
{
"path": "pages/uploadClothes/index",
"style": {
"navigationBarTitleText": "123",
"navigationBarTitleText": "1234",
"navigationStyle": "custom",
"titleNView": false,
"app-plus": {
"titleNView": false // 关闭 H5 端的标题栏
},
"h5": {
"titleNView": false // H5 端直接去掉浏览器默认标题栏
},
+5 -1
View File
@@ -57,7 +57,7 @@
</template>
<script setup>
import { computed, ref } from 'vue';
import { computed, ref, onMounted } from 'vue';
import { onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
import sheep from '@/sheep';
import SelectPic from '@/pages/uploadClothes/SelectPic.vue';
@@ -70,6 +70,10 @@
const imageUrl = ref('');
const clothesId = ref('');
const isEdit = ref(false);
onMounted(() => {
const header = document.querySelector('.uni-page-head-hd');
if (header) header.style.display = 'none';
});
function confirmClothes() {
fittingRoomStore