合并代码

This commit is contained in:
Teng 2026-01-08 13:55:19 +08:00
parent 8dff871122
commit a51c74e58a
2 changed files with 2156 additions and 1993 deletions

View File

@ -106,8 +106,10 @@
<text>{{v}}</text>
</view>
<view style="width: 13vw;height: 13vw;margin: 7vw 0 0 23.5vw;display: block;background: none;">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw"></image>
<view style="width: 100%;text-align: center; font-weight: 400; font-size: 1.2vw;color: #555555;margin-top: -3vw;text-align: center;white-space: nowrap;">
<image src="/static/index/card/zw.png" mode="aspectFill" style="width:13vw;height: 13vw">
</image>
<view
style="width: 100%;text-align: center; font-weight: 400; font-size: 1.2vw;color: #555555;margin-top: -3vw;text-align: center;white-space: nowrap;">
暂无服务指令
</view>
</view>
@ -121,7 +123,8 @@
</view>
<view class="mengban" v-if="jszlshow" @click="jszlshow = false"></view>
<view class="photo-father">
<view class="juzhong" style="margin-left: -30rpx;" :style="indexmessage?.startTime?{}:{filter: `grayscale(60%)`}">
<view class="juzhong" style="margin-left: -30rpx;"
:style="indexmessage?.startTime?{}:{filter: `grayscale(60%)`}">
<donghua :width="`1300rpx`" :height="`900rpx`" :links="blueArray" :playing="photoplay" :loop="true"
:interval="120" />
</view>
@ -146,7 +149,8 @@
</view>
</view>
<image class="big-img" v-if="topbuttontarget==0" :style="!indexmessage?.previewFile?'width: 450rpx':''"
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`" mode="aspectFill"/>
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`"
mode="aspectFill" />
<view style="display: flex;align-items: center;">
<view class="server-name" v-if="indexmessage?.startTime">
{{ indexmessage?.directiveName }}
@ -154,12 +158,15 @@
</view>
<view style="display: flex;margin-top: 40rpx;">
<view style="width: 240rpx;height: 90rpx;margin-right: 40rpx;">
<view :class="indexmessage?.izStart=='N'?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="start(indexmessage)">
<view :class="indexmessage?.izStart=='N'?'start-button':'end-button'"
v-show="indexmessage?.startTime" @click="start(indexmessage)">
开始服务
</view>
</view>
<view style="width: 240rpx;height: 90rpx;">
<view :class="(indexmessage?.izStart=='Y'&& indexmessage?.izFinish=='N')?'start-button':'end-button'" v-show="indexmessage?.startTime" @click="end(indexmessage)">
<view
:class="(indexmessage?.izStart=='Y'&& indexmessage?.izFinish=='N')?'start-button':'end-button'"
v-show="indexmessage?.startTime" @click="end(indexmessage)">
结束服务
</view>
</view>
@ -168,22 +175,26 @@
</view>
<view class="left-menu" v-show="indexmessage?.startTime">
<view style="margin: 30rpx 0;" @click="errmsgclk(0,1)">
<view class="left-ball" :style="indexmessage?.serviceContent!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball"
:style="indexmessage?.serviceContent!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+0+'.png'" />
</view>
</view>
<view style="margin: 30rpx 0;" @click="errmsgclk(1,1)">
<view class="left-ball" :style="indexmessage?.mp3File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball"
:style="indexmessage?.mp3File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+1+'.png'" />
</view>
</view>
<view style="margin: 30rpx 0;" @click="errmsgclk(2,1)">
<view class="left-ball" :style="indexmessage?.mp4File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball"
:style="indexmessage?.mp4File!=''?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+2+'.png'" />
</view>
</view>
<view v-for="(item,index) in [3,4]" :key="index" style="margin: 30rpx 0;" @click="errmsgclk(item,2)">
<view class="left-ball" :style="indexmessage?.izStart=='Y'?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<view class="left-ball"
:style="indexmessage?.izStart=='Y'?'background-color: #fff;':'background-color:RGBA(228, 229, 231, 1);'">
<image class="left-menu-img" :src="'/static/index/newindex/leftmenu/left'+item+'.png'" />
</view>
</view>
@ -271,13 +282,13 @@
</view>
</scroll-view>
</view>
<view class="mengban" v-if="zzbqshow" @click="zzbqshow = false"></view>
<view class="mengban" v-if="zzbqshow" @click="zzbqshow = false;tagtarget=-1"></view>
<view class="right-bottom">
<view class="bottom-title">
<image class="bottom-carmera" src="/static/index/newindex/leftmenu/carmera.png" @click="gotolook" />
<view class="blue-button" @click="geteverything()">
长者标签
<view class="jb" >
<view class="jb" v-show="zzbqshow">
<image src="/static/index/card/bj.png" mode="aspectFill"></image>
</view>
<view class="zzbq guodu" @click.stop :class="zzbqshow?'':'zzh0'">
@ -287,11 +298,13 @@
体重标签
</view>
<view class="tg" style="border-right: 1px solid rgba(238, 238, 238, 1);">
<view v-for="(v,i) in emotionTagList" :key='i'>
<view v-for="(v,i) in emotionTagList" :key='i' @click="clicktag(v,i)">
<image :src="v.netPic" mode="aspectFill"></image>
<text>{{v.tagName}}</text>
</view>
<image src="/static/index/card/zanw.png" mode="aspectFill" v-if="emotionTagList.length==0" style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
<image src="/static/index/card/zanw.png" mode="aspectFill"
v-if="emotionTagList.length==0"
style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
</view>
</view>
<view class="carfd" v-if="zzbqshow">
@ -300,14 +313,21 @@
情绪标签
</view>
<view class="tg">
<view v-for="(v,i) in bodyTagList" :key='i'>
<view v-for="(v,i) in bodyTagList" :key='i' @click="clicktag(v,i+2)">
<image :src="v.netPic" mode="aspectFill"></image>
<text>{{v.tagName}}</text>
</view>
<image src="/static/index/card/zanw.png" mode="aspectFill" v-if="bodyTagList.length==0" style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
<image src="/static/index/card/zanw.png" mode="aspectFill" v-if="bodyTagList.length==0"
style="width: 5.4vw;height: 5.4vw;margin-top: -0.7vw;"></image>
</view>
</view>
</view>
<view class="zzbqsmall guodu" @click.stop :class="tagtarget!=-1?'':'zzh0'">
<view class="jbsmall" v-show="tagtarget!=-1" :style="{left:`${leftnumber}vw`}">
<image src="/static/index/card/bj.png" mode="aspectFill"></image>
</view>
{{ tagtarget==-1?'':detail }}
</view>
</view>
</view>
@ -383,16 +403,17 @@
{{ topbuttontarget==1?`照片`:`录像` }}
</view>
</view>
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation enable-flex v-if="topbuttontarget>0">
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation enable-flex
v-if="topbuttontarget>0">
<view class="photowall-other">
<view class="photowall-other-one" v-for="(item,index) in ilanarr" :key="index"
@click="previewImage(item,index,ilanarr)">
<view v-if="topbuttontarget==1" style="width: 100%;height: 70%;border-radius: 30rpx;position: relative;">
<view v-if="topbuttontarget==1"
style="width: 100%;height: 70%;border-radius: 30rpx;position: relative;">
<image style="width: 100%;height: 100%;border-radius: 30rpx;"
:src="item?serverUrl + item:'/static/ceshiyaoshan.png'" mode="aspectFill"
:lazy-load="true" />
<view @click.stop="open=1;del(item,index)"
style="width: 1.6vw;
<view @click.stop="open=1;del(item,index)" style="width: 1.6vw;
height: 1.6vw;
z-index: 20;
position: absolute;
@ -402,20 +423,18 @@
display: flex;
justify-content: center;
border-radius: 50%;
align-items: center;"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill"
style="width: 1.4vw;
align-items: center;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" style="width: 1.4vw;
height: 1.4vw;"></image>
</view>
</view>
<view v-if="topbuttontarget==2" style="width: 100%;height: 70%;border-radius: 30rpx ;position: relative;" @click="clik(serverUrl + item)">
<view v-if="topbuttontarget==2"
style="width: 100%;height: 70%;border-radius: 30rpx ;position: relative;"
@click="clik(serverUrl + item)">
<video style="width: 100%;height: 100%;border-radius: 30rpx;" :id="'myVideo'+index"
:src="servervideoUrl+item"
mode="aspectFill" ></video>
:src="servervideoUrl+item" mode="aspectFill"></video>
<view @click.stop="ilanarr.splice(index,1)"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')"
style="width: 1.6vw;
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')" style="width: 1.6vw;
height: 1.6vw;
z-index: 20;
position: absolute;
@ -426,8 +445,7 @@
justify-content: center;
border-radius: 50%;
align-items: center;">
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill"
style="width: 1.4vw;
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" style="width: 1.4vw;
height: 1.4vw;"></image>
</view>
</view>
@ -448,7 +466,8 @@
</text>
</view> -->
</view>
<view class="photowall-other-one" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<view class="photowall-other-one"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<view style="width: 100%;height: 71%;display: flex;flex-direction: column;
justify-content: center;align-items: center;position: absolute;top:0vw;left: 0;
background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;" @click="uplod(1)">
@ -468,8 +487,10 @@
</view> -->
</view>
</scroll-view>
<view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;" v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<button type="primary" style="width: 9vw; position: absolute;right: 0vw;bottom: 0.vw;" @click="submit" >确定</button>
<view style="position: absolute;right: 2vw;bottom: 0.8vw;height: 4vw;"
v-if="topbuttontarget>0&&(listobj.izStart=='Y'&& listobj.izFinish=='N')">
<button type="primary" style="width: 9vw; position: absolute;right: 0vw;bottom: 0.vw;"
@click="submit">确定</button>
</view>
</view>
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang>
@ -765,7 +786,8 @@
} else {
}
})}
})
}
}
//
@ -964,6 +986,76 @@
})
}
}
function getStatusDesc(type) {
switch (type) {
case '稳定':
return '标准情绪';
case '标准':
return '标准体重女100-120120-150';
case '焦虑':
return '无法控制情绪(哭泣/大笑)';
case '超重':
return '女超过120男超过150';
case '抑郁':
return '有自杀倾向';
case '强直':
return '四肢承伸直且僵硬无法弯曲状(标识要区分为左右和手脚)';
case '暴力':
return '有攻击他人倾向';
case '偏瘫':
return '四肢无知觉且无法支配但是并无僵硬,可弯曲(标识要区分为左右和手脚)';
case '恐惧':
return '被害妄想';
case '佝偻':
return '四肢承弯曲且僵硬无法伸直状(标识要区分为左右和手脚)';
case '烦躁':
return '对服务和对话都不耐烦';
case '易怒':
return '骂人';
case '臆想':
return '骗人/说谎,胡言乱语';
default:
return '';
}
}
function getleft(index) {
switch (index) {
case 0:
return 2.2;
case 1:
return 6;
case 2:
return 9.8;
case 3:
return 13.4;
}
}
const tagtarget = ref(-1);
const detail = ref("")
const leftnumber = ref(2.2)
const clicktag = (item, index) => {
tagtarget.value = index;
detail.value = getStatusDesc(item.tagName)
leftnumber.value = getleft(index)
}
</script>
<style scoped lang="less">
@ -972,6 +1064,7 @@
margin-left: 2vw;
height: 100%;
transition: opacity 1s ease;
.right-time {
margin-top: 80rpx;
width: 100%;
@ -982,15 +1075,18 @@
flex-direction: column;
justify-content: center;
padding-left: 30rpx;
.time-top {
display: flex;
align-items: center;
font-size: 1.1vw;
.time-big {
font-size: 3.5vw;
font-weight: 600;
margin-right: 10rpx;
}
.time-week {
font-weight: 600;
}
@ -1703,6 +1799,7 @@
color: #888888;
font-size: 25rpx;
}
.mengban {
width: 100vw;
height: 100vh;
@ -1712,6 +1809,7 @@
z-index: 100;
background: RGBA(239, 240, 244, 0.55);
}
.photowall {
position: fixed;
top: 54%;
@ -1725,6 +1823,7 @@
z-index: 9990;
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
padding: 0 90rpx;
.photowall-title {
margin-top: 50rpx;
display: flex;
@ -1753,6 +1852,7 @@
display: flex;
margin-top: 20rpx;
flex-wrap: wrap;
.photowall-other-one {
width: 22vw;
height: 430rpx;
@ -1761,6 +1861,7 @@
border-radius: 30rpx;
display: flex;
position: relative;
video {
width: 100%;
height: 100%;
@ -1768,16 +1869,19 @@
}
}
}
.guodu {
transition: .4s;
-webkit-transform-style: preserve-3d;
-webkit-overflow-scrolling: touch;
}
.jsh0 {
height: 0vw !important;
padding: 0 2vw !important;
top: 9.4vw !important;
}
.jszl {
width: 64.5vw;
height: 44vw;
@ -1790,6 +1894,7 @@
z-index: 200;
padding: 2vw;
overflow: hidden;
.submit {
width: 100%;
height: 3.2vw;
@ -1797,10 +1902,12 @@
padding-right: 2vw;
display: flex;
justify-content: flex-end;
view {
display: flex;
justify-content: center;
align-items: center;
&:nth-child(1) {
width: 7.1vw;
height: 3.2vw;
@ -1811,6 +1918,7 @@
font-size: 1.4vw;
color: #555555;
}
&:nth-child(2) {
width: 7.1vw;
height: 3.2vw;
@ -1824,6 +1932,7 @@
}
}
}
.scrol {
width: 110%;
height: 30vw;
@ -1839,11 +1948,13 @@
display: inline-block;
border: 1px solid #F8F8F8;
text-align: center;
image {
width: 2vw;
height: 2vw;
margin: 1.4vw auto 0vw;
}
text {
display: block;
text-align: center;
@ -1853,20 +1964,24 @@
width: 100%;
}
}
.act {
background: #F2F8FF;
border: 1px solid rgba(1, 125, 233, 0.43);
text {
color: #017DE9;
}
}
}
.spiw {
width: 14vw;
height: 2vw;
display: flex;
justify-content: space-around;
margin-top: 2.5vw;
view {
font-weight: 400;
font-size: 1.3vw;
@ -1874,10 +1989,12 @@
position: relative;
line-height: 1.5vw;
}
.act {
color: #222222 !important;
font-weight: 500;
}
.act::after {
width: 50%;
height: 0.2vw;
@ -1889,6 +2006,7 @@
left: 25%;
}
}
.tittop {
height: 2vw;
font-weight: 400;
@ -1896,6 +2014,7 @@
color: #333333;
display: flex;
align-items: center;
view {
width: 0.4vw;
height: 1.2vw;
@ -1905,6 +2024,7 @@
}
}
}
.bianj {
position: absolute;
width: 2.2vw;
@ -1912,11 +2032,13 @@
top: 9.68vw;
right: 2.5vw;
z-index: 220;
image {
width: 100%;
height: 100%;
}
}
.jb {
position: absolute;
width: 2.2vw;
@ -1924,16 +2046,34 @@
top: 2.7vw;
right: 1.5vw;
z-index: 220;
image {
width: 100%;
height: 100%;
}
}
.jbsmall {
position: absolute;
width: 2.2vw;
height: 1.1vw;
top: -1vw;
left: 2.2vw;
z-index: 220;
transition: left 0.3s;
image {
width: 100%;
height: 100%;
}
}
.zzh0 {
height: 0vw !important;
padding: 0 1.6vw !important;
top: 2.7vw !important;
}
.zzbq {
width: 18vw;
height: 10vw;
@ -1946,20 +2086,25 @@
z-index: 200;
display: flex;
padding: 1.6vw 1.6vw 0;
.carfd {
width: 7.4vw;
height: 100%;
.tg {
width: 100%;
display: flex;
justify-content: space-around;
margin-top: 1vw;
view {
width: 1.8vw;
image {
width: 1.8vw;
height: 1.8vw;
}
text {
font-weight: 400;
font-size: 0.8vw;
@ -1976,6 +2121,7 @@
color: #333333;
display: flex;
align-items: center;
view {
width: 0.4vw;
height: 1.2vw;
@ -1986,4 +2132,21 @@
}
}
}
.zzbqsmall {
width: 18vw;
// height: 6vw;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
border-radius: 1.2vw;
right: -0.8vw;
top: 15vw;
position: absolute;
z-index: 200;
display: flex;
// padding: 1.6vw 1.6vw 0;
padding: 1vw 2vw;
color: black;
font-size: 1vw;
}
</style>

View File

@ -129,13 +129,13 @@
const leftMenuArray = ref([])
const exitshow = ref(false);
const morerule = ref(false)
const fontnumber = ref(uni.getStorageSync('orgListName'))
const fontnumber = ref("")
const fontSize = computed(() => {
const len = (fontnumber.value || '').length
if (len === 10) return '1.3vw' // 10
if (len < 10) return '1.4vw' // 10
if (len <= 15) return '1.2vw' // 11~15
return '1.1vw' // 15
if (len < 10) return '1.5vw' // 10
if (len <= 15) return '1.1vw' // 11~15
return '0.9vw' // 15
})
//
onShow(() => {
@ -144,7 +144,7 @@
leftMenuArray.value = res.result.records;
console.log("????", res)
}))
fontnumber.value = uni.getStorageSync('orgListName')
});
const filteredMenu = (index : number) => {
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 == index);