This commit is contained in:
Aiden 2024-10-21 10:44:55 +08:00
parent 09bfce6ef5
commit be84013ade
5 changed files with 23 additions and 26 deletions

View File

@ -12,43 +12,35 @@
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false //
}
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false //
}
"navigationBarTitleText": "添加画作",
"enablePullDownRefresh": false
}
},
{
"path": "pages/painting/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false //
}
"navigationBarTitleText": "入库",
"enablePullDownRefresh": false
}
},
{
"path": "pages/detail/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false //
}
"enablePullDownRefresh": false
}
},
}
],
"globalStyle": {
"navigationBarTextStyle": "black",

View File

@ -1,11 +1,11 @@
<template>
<view class="content">
<navBar v-if="state.boxRelBucketStatus == 1"> 出库 </navBar>
<!-- <navBar v-if="state.boxRelBucketStatus == 1"> 出库 </navBar>
<navBar
v-if="state.boxRelBucketStatus == 2 || state.boxRelBucketStatus == 4"
>
画筒详情
</navBar>
</navBar> -->
<view class="container-box">
<span
style="font-weight: bold; text-align: center"
@ -76,7 +76,7 @@
import { ref, reactive, onBeforeMount } from "vue";
import { closeWebview, hasPermission } from "../../../utils/index.js";
import { onLoad } from "@dcloudio/uni-app";
import { onLoad, onShow } from "@dcloudio/uni-app";
import useToast from "@/hooks/toast/useToast.js";
import { pbDetail, outbound, getRules } from "@/api/login.js";
const { showMessage } = useToast();
@ -95,6 +95,11 @@ const state = reactive({
locateAddress: "",
boxUid: "",
});
onShow(() => {
uni.setNavigationBarTitle({
title: state.boxRelBucketStatus == 1 ? "出库" : "画筒详情",
});
});
onLoad((options) => {
state.id = options.id;
state.pid = options.pid;

View File

@ -1,6 +1,6 @@
<template>
<view class="content">
<navBar> 添加画作 </navBar>
<!-- <navBar> 添加画作 </navBar> -->
<view class="container-box">
<span style="font-weight: bold"> 已扫画筒号{{ state.pid }} </span>
<view style="display: flex; align-items: center">

View File

@ -1,6 +1,6 @@
<template>
<view class="content">
<navBar> 登录 </navBar>
<!-- <navBar> 登录 </navBar> -->
<view class="container-box">
<view class="title">
<span>登录</span>

View File

@ -1,6 +1,6 @@
<template>
<view class="content">
<navBar> 入库 </navBar>
<!-- <navBar> 入库 </navBar> -->
<view class="container-box">
<span style="font-weight: bold"> 已扫画筒号{{ state.pid }} </span>
<span style="margin-top: 40rpx"> 请放入 </span>