This commit is contained in:
wangweidong 2026-01-16 14:33:01 +08:00
commit eee6afc03e
6 changed files with 1880 additions and 22 deletions

View File

@ -587,7 +587,7 @@
watch( watch(
() => props.isshow, () => props.isshow,
(newVal, oldVal) => { (newVal, oldVal) => {
console.log(1111) // console.log(1111)
// //
if (newVal !== oldVal) { if (newVal !== oldVal) {
bottomisShaking.value = false bottomisShaking.value = false
@ -1608,15 +1608,15 @@
}) })
} }
const routerPush = () => { const routerPush = () => {
uni.setStorage({ // uni.setStorage({
key: 'myArray', // key: 'myArray',
data: timearr.value, // data: timearr.value,
success: function () { // success: function () {
uni.navigateTo({ // uni.navigateTo({
url: `/pages/timeMatrix/indexnew` // url: `/pages/timeMatrix/indexnew`
}) // })
}, // },
}); // });
} }
// //
const saveRulerTime = ref({ const saveRulerTime = ref({
@ -1664,7 +1664,7 @@
const emotionTagList = ref([]); const emotionTagList = ref([]);
const bodyTagList = ref([]); const bodyTagList = ref([]);
const geteverything = () => { const geteverything = () => {
if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) { // console.log("",uni.getStorageSync('nuId'),uni.getStorageSync('elderId'))
getNclist(uni.getStorageSync('nuId'),uni.getStorageSync('elderId')).then((res : any) => { getNclist(uni.getStorageSync('nuId'),uni.getStorageSync('elderId')).then((res : any) => {
console.log("啥啊",res) console.log("啥啊",res)
timearr.value = Array.from({ length: 24 }, (_, hour) => ({ timearr.value = Array.from({ length: 24 }, (_, hour) => ({
@ -1694,12 +1694,47 @@
} }
}) })
}) })
} // if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
// getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
// console.log("",res)
// timearr.value = Array.from({ length: 24 }, (_, hour) => ({
// positioning: hour.toString(),
// children: minuteArr.map(time => ({
// tagName: time, // '00', '05'
// directiveName: '' // directiveName
// }))
// }))
// res.result.serviceList.forEach((res : any) => {
// timearr.value[res.positioning].children[res.positioningLong] = res;
// })
// bottomItems.value = res.result.instantList
// cansumit.value = true;
// emotionTagList.value = res.result.emotionTagList;
// emotionTagListLook.value = []
// bodyTagListLook.value = []
// res.result.emotionTagList.forEach((res : any) => {
// if (res.izSelected == 'Y') {
// emotionTagListLook.value.push(res.netPic)
// }
// })
// bodyTagList.value = res.result.bodyTagList
// res.result.bodyTagList.forEach((res : any) => {
// if (res.izSelected == 'Y') {
// bodyTagListLook.value.push(res.netPic)
// }
// })
// })
// }
} }
const savePackagelist = ref([]); const savePackagelist = ref([]);
onMounted(() => { onMounted(() => {
// if(uni.getStorageSync('elderId')===null){
// uni.setStorageSync('elderId', "");
// }
savePackagelist.value = uni.getStorageSync('Packagelist') || [] savePackagelist.value = uni.getStorageSync('Packagelist') || []
let res = uni.getStorageSync('saveTree2') let res = uni.getStorageSync('saveTree2')
console.log("啥啊啊啊啊",savePackagelist.value,res)
let goodArray = [] let goodArray = []
myArray.forEach((element : any) => { myArray.forEach((element : any) => {
element.children.forEach((element1 : any) => { element.children.forEach((element1 : any) => {

View File

@ -138,7 +138,7 @@
width: 100%; width: 100%;
height: 1350rpx; height: 1350rpx;
display: flex; display: flex;
margin-top: 62rpx; margin-top: 30rpx;
.doctorsay-container-container { .doctorsay-container-container {
width: 100%; width: 100%;
@ -469,8 +469,8 @@
.right-order { .right-order {
position: fixed; position: fixed;
right: 20rpx; right: 20rpx;
top: 62rpx; top: 30rpx;
height: 1220rpx; height: 1278rpx;
width: 454rpx; width: 454rpx;
background-color: #fff; background-color: #fff;
border-radius: 30rpx; border-radius: 30rpx;
@ -604,7 +604,7 @@
.history-items { .history-items {
width: 100%; width: 100%;
margin-top: 15rpx; margin-top: 15rpx;
height: 385rpx; height: 440rpx;
.history-item { .history-item {
/* margin-left: 1%; */ /* margin-left: 1%; */

View File

@ -29,7 +29,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;height: 1165rpx;position: relative;"> <view style="display: flex;height: 1225rpx;position: relative;">
<view class="xian-bian"></view> <view class="xian-bian"></view>
<scroll-view style="height: 100%;width:6960rpx;background-color: #fff;" <scroll-view style="height: 100%;width:6960rpx;background-color: #fff;"

File diff suppressed because it is too large Load Diff

View File

@ -3,10 +3,13 @@
<!-- 左侧菜单 --> <!-- 左侧菜单 -->
<leftcontent :list="arrlist" @navurl="navurl" :userInfo="userInfo"></leftcontent> <leftcontent :list="arrlist" @navurl="navurl" :userInfo="userInfo"></leftcontent>
<!-- 主页 --> <!-- 主页 -->
<!-- <index :isShow="menuIndex==0" v-if="swipedex==0&&!specialPage" @swip="swip" @gospecial="gospecial" /> -->
<index :isShow="menuIndex==0" v-if="swipedex==0&&!specialPage" @swip="swip" @gospecial="gospecial" /> <index :isShow="menuIndex==0" v-if="swipedex==0&&!specialPage" @swip="swip" @gospecial="gospecial" />
<!-- 新主页 -->
<bignurse :isshow="menuIndex==0" v-if="swipedex==0&&specialPage==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" /> <bignurse :isshow="menuIndex==0" v-if="swipedex==0&&specialPage==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<!-- 户嘱页 --> <!-- 户嘱页 -->
<nurse :isshow="menuIndex==1" v-if="swipedex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" /> <newnurse :isshow="menuIndex==1" v-if="swipedex==1&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<!-- 医嘱 --> <!-- 医嘱 -->
<doctorask v-if="swipedex==2&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" /> <doctorask v-if="swipedex==2&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
<logistics :isshow="menuIndex==3" v-if="swipedex==3&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" /> <logistics :isshow="menuIndex==3" v-if="swipedex==3&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')" />
@ -30,13 +33,14 @@
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'; import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
import { queryPadPageList ,getPermissionList } from '@/pages/watch/api/lunpan.js' import { queryPadPageList ,getPermissionList } from '@/pages/watch/api/lunpan.js'
import index from "./component/index.vue" import index from "./component/index.vue"
import newnurse from "./component/nurse/newindex.vue"
import equipment from "./component/equipment.vue" import equipment from "./component/equipment.vue"
import logistics from "./component/logistics/index.vue" import logistics from "./component/logistics/index.vue"
import invoicing from "./component/invoicing/index.vue" import invoicing from "./component/invoicing/index.vue"
import requestform from "./component/pleasetake/takehome.vue" import requestform from "./component/pleasetake/takehome.vue"
import doctorask from "./component/doctorask/doctorask.vue" import doctorask from "./component/doctorask/doctorask.vue"
import nurse from "./component/nurse/index.vue" // import nurse from "./component/nurse/index.vue"
import bignurse from "./component/nurse/bigindex.vue" import bignurse from "./component/nurse/bigindex.vue"
import { onBackPress,onShow } from '@dcloudio/uni-app'; import { onBackPress,onShow } from '@dcloudio/uni-app';
import { getNcPackagelist } from './component/nurse/api.js' import { getNcPackagelist } from './component/nurse/api.js'

View File

@ -173,7 +173,7 @@
return form.password && isLength11(form.username) return form.password && isLength11(form.username)
}) })
const showPopup = ref(true) const showPopup = ref(false)
function closebottom() { function closebottom() {
openbottom.value = false; openbottom.value = false;
isTarget.value = true; isTarget.value = true;
@ -182,6 +182,8 @@
function closePopup() { function closePopup() {
showPopup.value = false; showPopup.value = false;
}
onMounted(()=>{
uni.setStorageSync("appWgtVersion", uni.getSystemInfoSync().appWgtVersion) uni.setStorageSync("appWgtVersion", uni.getSystemInfoSync().appWgtVersion)
if (uni.getStorageSync('appWgtVersion') != uni.getSystemInfoSync().appWgtVersion) { if (uni.getStorageSync('appWgtVersion') != uni.getSystemInfoSync().appWgtVersion) {
showPopup.value = true; showPopup.value = true;
@ -196,7 +198,7 @@
} }
} }
init(); init();
} })
function closeapp() { function closeapp() {
plus.runtime.quit() plus.runtime.quit()
} }