update: 修复部分页面显示不全

This commit is contained in:
admin 2024-07-19 15:52:24 +08:00
parent 07097b173d
commit 37e2c5a641
7 changed files with 18 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="c-card"> <view class="c-card app-container">
<u-form <u-form
labelPosition="left" labelPosition="left"
:model="model1" :model="model1"

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="c-card"> <view class="c-card app-container">
<view class="collapse-box box"> <view class="collapse-box box">
<view v-for="(item, index) in pageList.list" :key="index"> <view v-for="(item, index) in pageList.list" :key="index">
<view class="item"> <view class="item">

View File

@ -250,9 +250,4 @@ const selectClick = (v: any) => {
border-radius: 5px; border-radius: 5px;
margin: 0rpx 16rpx; margin: 0rpx 16rpx;
} }
.app-container {
height: calc(100vh - 70px);
overflow: scroll;
position: relative;
}
</style> </style>

View File

@ -140,7 +140,7 @@ const getCode = () => {
(res: any) => { (res: any) => {
if (res.code === 200) { if (res.code === 200) {
if (res.data.length > 0) { if (res.data.length > 0) {
store.setMechanismCode(res.data[0].mechanismCode); store.setMechanism({mechanismCode: res.data[0].mechanismCode, mechanismName: res.data[0].mechanismName});
sendMsg(); sendMsg();
} else { } else {
uni.showToast({ uni.showToast({

View File

@ -38,7 +38,11 @@ body {
max-height: 600rpx; max-height: 600rpx;
overflow-y: auto; overflow-y: auto;
} }
.app-container {
height: calc(100vh - 70px);
overflow: scroll;
position: relative;
}
.btn-box-fix-btn { .btn-box-fix-btn {
margin-top: 60rpx; margin-top: 60rpx;
display: flex; display: flex;

View File

@ -24,7 +24,6 @@ export const useMemberStore = defineStore(
profile.value.menusNameList = _.pluck(val.menusList, "name"); profile.value.menusNameList = _.pluck(val.menusList, "name");
}; };
const setErr = (v: any) => { const setErr = (v: any) => {
profile.value.err = v; profile.value.err = v;
}; };
@ -42,9 +41,12 @@ export const useMemberStore = defineStore(
}; };
}; };
const mechanismCode = ref<string>(); const mechanism = ref<any>({
const setMechanismCode = (v:string) => { mechanismCode: "",
mechanismCode.value = v mechanismName: "",
});
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
mechanism.value = v;
}; };
// 记得 return // 记得 return
@ -53,8 +55,8 @@ export const useMemberStore = defineStore(
setProfile, setProfile,
setErr, setErr,
clearProfile, clearProfile,
mechanismCode, mechanism,
setMechanismCode setMechanism,
}; };
}, },
{ {

View File

@ -30,7 +30,8 @@ const obj = {
options.header["x-userToken"] = token; options.header["x-userToken"] = token;
} }
if (options.url.indexOf("/api/db/getCommonDbPhone") === -1) { if (options.url.indexOf("/api/db/getCommonDbPhone") === -1) {
options.header["mechanismCode"] = store.mechanismCode; options.header["mechanismCode"] = store.mechanism.mechanismCode;
options.header["mechanismName"] = store.mechanism.mechanismName;
} }
}, },
}; };