update: 修复部分页面显示不全
This commit is contained in:
parent
07097b173d
commit
37e2c5a641
|
@ -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"
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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({
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue