update: 修复部分页面显示不全
This commit is contained in:
parent
07097b173d
commit
37e2c5a641
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view class="c-card">
|
||||
<view class="c-card app-container">
|
||||
<u-form
|
||||
labelPosition="left"
|
||||
:model="model1"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view class="c-card">
|
||||
<view class="c-card app-container">
|
||||
<view class="collapse-box box">
|
||||
<view v-for="(item, index) in pageList.list" :key="index">
|
||||
<view class="item">
|
||||
|
|
|
@ -250,9 +250,4 @@ const selectClick = (v: any) => {
|
|||
border-radius: 5px;
|
||||
margin: 0rpx 16rpx;
|
||||
}
|
||||
.app-container {
|
||||
height: calc(100vh - 70px);
|
||||
overflow: scroll;
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -140,7 +140,7 @@ const getCode = () => {
|
|||
(res: any) => {
|
||||
if (res.code === 200) {
|
||||
if (res.data.length > 0) {
|
||||
store.setMechanismCode(res.data[0].mechanismCode);
|
||||
store.setMechanism({mechanismCode: res.data[0].mechanismCode, mechanismName: res.data[0].mechanismName});
|
||||
sendMsg();
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
|
|
@ -38,7 +38,11 @@ body {
|
|||
max-height: 600rpx;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
height: calc(100vh - 70px);
|
||||
overflow: scroll;
|
||||
position: relative;
|
||||
}
|
||||
.btn-box-fix-btn {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
|
|
|
@ -24,7 +24,6 @@ export const useMemberStore = defineStore(
|
|||
profile.value.menusNameList = _.pluck(val.menusList, "name");
|
||||
};
|
||||
|
||||
|
||||
const setErr = (v: any) => {
|
||||
profile.value.err = v;
|
||||
};
|
||||
|
@ -42,9 +41,12 @@ export const useMemberStore = defineStore(
|
|||
};
|
||||
};
|
||||
|
||||
const mechanismCode = ref<string>();
|
||||
const setMechanismCode = (v:string) => {
|
||||
mechanismCode.value = v
|
||||
const mechanism = ref<any>({
|
||||
mechanismCode: "",
|
||||
mechanismName: "",
|
||||
});
|
||||
const setMechanism = (v: { mechanismCode: ""; mechanismName: "" }) => {
|
||||
mechanism.value = v;
|
||||
};
|
||||
|
||||
// 记得 return
|
||||
|
@ -53,8 +55,8 @@ export const useMemberStore = defineStore(
|
|||
setProfile,
|
||||
setErr,
|
||||
clearProfile,
|
||||
mechanismCode,
|
||||
setMechanismCode
|
||||
mechanism,
|
||||
setMechanism,
|
||||
};
|
||||
},
|
||||
{
|
||||
|
|
|
@ -30,7 +30,8 @@ const obj = {
|
|||
options.header["x-userToken"] = token;
|
||||
}
|
||||
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;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue