合并代码
This commit is contained in:
parent
8dff871122
commit
a51c74e58a
|
|
@ -50,7 +50,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="title-card" @click="nusing">
|
||||
<view class="card-top" >
|
||||
<view class="card-top">
|
||||
<view class="card-top-left">
|
||||
65
|
||||
</view>
|
||||
|
|
@ -106,13 +106,15 @@
|
|||
<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>
|
||||
</scroll-view>
|
||||
<view class="submit" >
|
||||
<view class="submit">
|
||||
<view @click.stop="jszlshow = false">取消</view>
|
||||
<view @click="subitshowing">确定</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>
|
||||
|
|
@ -215,7 +226,7 @@
|
|||
@click="scrollTop > (55* rightMenu.length) ? scrollTop = (55* rightMenu.length) : scrollTop += 115 " />
|
||||
</view>
|
||||
</view>
|
||||
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" :icons="false" style="left: 44%;"/>
|
||||
<errorshow :show="openerror" :font="errmsg" @close="openerror=false" :icons="false" style="left: 44%;" />
|
||||
<view class="index-content-right" :style="transition?{opacity: `1`}:{opacity: `0`}">
|
||||
<view class="right-time">
|
||||
<view class="time-top">
|
||||
|
|
@ -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>
|
||||
|
|
@ -331,10 +351,10 @@
|
|||
<view class="bottom-tags">
|
||||
{{ uni.getStorageSync('NUall').elderInfo?.yblxName }}
|
||||
</view>
|
||||
<view class="bottom-tags" v-show="uni.getStorageSync('NUall').elderInfo?.sndjName" >
|
||||
<view class="bottom-tags" v-show="uni.getStorageSync('NUall').elderInfo?.sndjName">
|
||||
{{ uni.getStorageSync('NUall').elderInfo?.sndjName }}
|
||||
</view>
|
||||
<view class="bottom-tags" >
|
||||
<view class="bottom-tags">
|
||||
{{ uni.getStorageSync('NUall').elderInfo?.jfztName }}
|
||||
</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">
|
||||
<view class="photowall-other" >
|
||||
<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;
|
||||
:lazy-load="true" />
|
||||
<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>
|
||||
|
|
@ -479,18 +500,18 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch ,reactive} from 'vue';
|
||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, reactive } from 'vue';
|
||||
import { queryPadPageList } from '@/pages/watch/api/lunpan.js'
|
||||
import { queryWorkOrderList } from './api.js'
|
||||
// import {startOrder,endOrder} from './doctorask/api/api.js'
|
||||
import {queryOrderList,queryOrderInfoList,startOrder,endOrder,editSubPicPath,editSubMp4} from '../component/doctorask/api/api.js'
|
||||
import { queryOrderList, queryOrderInfoList, startOrder, endOrder, editSubPicPath, editSubMp4 } from '../component/doctorask/api/api.js'
|
||||
import { getNclist } from "./nurse/api.js";
|
||||
|
||||
const form = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
employeeId:uni.getStorageSync('userInfo').employessId,
|
||||
nuId:uni.getStorageSync('nuId')
|
||||
employeeId: uni.getStorageSync('userInfo').employessId,
|
||||
nuId: uni.getStorageSync('nuId')
|
||||
|
||||
})
|
||||
const plsbuy = ref([])
|
||||
|
|
@ -500,9 +521,9 @@
|
|||
queryOrderList(form).then(res => {
|
||||
console.log(res)
|
||||
// plsbuy.value.push(...res.result.records);
|
||||
if(res.result.records.length>0){
|
||||
clickLeftMenu(0,res.result.records[0])
|
||||
}else{
|
||||
if (res.result.records.length > 0) {
|
||||
clickLeftMenu(0, res.result.records[0])
|
||||
} else {
|
||||
indexmessage.value = [];
|
||||
}
|
||||
})
|
||||
|
|
@ -510,9 +531,9 @@
|
|||
const clickLeftMenu = (index : any, item : object) => {
|
||||
queryOrderInfoList({ mainId: item.id }).then(res => {
|
||||
console.log(res)
|
||||
if(res.result.length>0){
|
||||
if (res.result.length > 0) {
|
||||
indexmessage.value = res.result[0]
|
||||
}else{
|
||||
} else {
|
||||
indexmessage.value = [];
|
||||
}
|
||||
})
|
||||
|
|
@ -523,19 +544,19 @@
|
|||
const ilanarr = ref([]);
|
||||
const listobj = ref({});
|
||||
|
||||
const ysptp = (v,i,r) =>{
|
||||
const ysptp = (v, i, r) => {
|
||||
// v.manuallyPicPath
|
||||
if(r == 1&&v.manuallyPicPath){
|
||||
if (r == 1 && v.manuallyPicPath) {
|
||||
ilanarr.value = v.manuallyPicPath.split(",");
|
||||
ilanarr.value = ilanarr.value.filter(item => item !== '');
|
||||
}else if(r == 2&&v.manuallyMp4Path){
|
||||
} else if (r == 2 && v.manuallyMp4Path) {
|
||||
ilanarr.value = v.manuallyMp4Path.split(",");
|
||||
ilanarr.value = ilanarr.value.filter(item => item !== '');
|
||||
}else if(r == 3&&v.tplinkPath){
|
||||
} else if (r == 3 && v.tplinkPath) {
|
||||
ilanarr.value = v.tplinkPath.split(",");
|
||||
ilanarr.value = ilanarr.value.filter(item => item !== '');
|
||||
}
|
||||
else{
|
||||
else {
|
||||
ilanarr.value = [];
|
||||
}
|
||||
|
||||
|
|
@ -544,7 +565,7 @@
|
|||
donghuaopo.value = true;
|
||||
}
|
||||
const uplod = (v) => {
|
||||
if(topbuttontarget.value==1){
|
||||
if (topbuttontarget.value == 1) {
|
||||
uni.chooseImage({
|
||||
count: 1, //默认9
|
||||
sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||
|
|
@ -562,10 +583,10 @@
|
|||
})
|
||||
}
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
uni.chooseVideo({
|
||||
sourceType: ['camera' ],
|
||||
success: (e)=> {
|
||||
sourceType: ['camera'],
|
||||
success: (e) => {
|
||||
uni.compressVideo({
|
||||
src: e.tempFilePath,
|
||||
quality: 60,
|
||||
|
|
@ -589,9 +610,9 @@
|
|||
url: uni.getStorageSync('serverUrl') + '/sys/common/upload',
|
||||
filePath: e,
|
||||
name: 'file',
|
||||
fileType:topbuttontarget.value==2?'video':'image',
|
||||
fileType: topbuttontarget.value == 2 ? 'video' : 'image',
|
||||
formData: {
|
||||
biz: year + '/' + month + (topbuttontarget.value==1?'/fwxm/manuallyPicPath':'/fwxm/manuallyMp4Path')
|
||||
biz: year + '/' + month + (topbuttontarget.value == 1 ? '/fwxm/manuallyPicPath' : '/fwxm/manuallyMp4Path')
|
||||
},
|
||||
header: {
|
||||
'X-Access-Token': uni.getStorageSync('token')
|
||||
|
|
@ -606,31 +627,31 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
const submit = ()=>{
|
||||
const submit = () => {
|
||||
let sub = "";
|
||||
ilanarr.value.forEach(item=>{
|
||||
sub+=item+','
|
||||
ilanarr.value.forEach(item => {
|
||||
sub += item + ','
|
||||
})
|
||||
if(topbuttontarget.value == 1){
|
||||
editSubPicPath({id:listobj.value.id,manuallyPicPath:sub}).then(res=>{
|
||||
if(res.success){
|
||||
if (topbuttontarget.value == 1) {
|
||||
editSubPicPath({ id: listobj.value.id, manuallyPicPath: sub }).then(res => {
|
||||
if (res.success) {
|
||||
topbuttontarget.value = 0;
|
||||
donghuaopo.value = false;
|
||||
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value])
|
||||
clickLeftMenu(lefttarget.value, plsbuy.value[lefttarget.value])
|
||||
}
|
||||
})
|
||||
}else{
|
||||
editSubMp4({id:listobj.value.id,manuallyMp4Path:sub}).then(res=>{
|
||||
if(res.success){
|
||||
} else {
|
||||
editSubMp4({ id: listobj.value.id, manuallyMp4Path: sub }).then(res => {
|
||||
if (res.success) {
|
||||
topbuttontarget.value = 0;
|
||||
donghuaopo.value = false;
|
||||
clickLeftMenu(lefttarget.value,plsbuy.value[lefttarget.value])
|
||||
clickLeftMenu(lefttarget.value, plsbuy.value[lefttarget.value])
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
const previewImage = (v, i, arr) => {
|
||||
if(topbuttontarget.value == 1){
|
||||
if (topbuttontarget.value == 1) {
|
||||
let u = []
|
||||
arr.forEach(e => {
|
||||
u.push(serverUrl.value + e)
|
||||
|
|
@ -647,16 +668,16 @@
|
|||
}
|
||||
}
|
||||
const videoContext = ref(null)
|
||||
const play = (e,i)=>{
|
||||
videoContext.value = uni.createVideoContext('myVideo'+i);
|
||||
const play = (e, i) => {
|
||||
videoContext.value = uni.createVideoContext('myVideo' + i);
|
||||
videoContext.value.play()
|
||||
}
|
||||
const pici = ref(0);
|
||||
const del = (v,i) =>{
|
||||
const del = (v, i) => {
|
||||
pici.value = i;
|
||||
}
|
||||
const del1=()=>{
|
||||
ilanarr.value.splice(pici.value,1);
|
||||
const del1 = () => {
|
||||
ilanarr.value.splice(pici.value, 1);
|
||||
open.value = 0
|
||||
}
|
||||
//
|
||||
|
|
@ -670,21 +691,21 @@
|
|||
},
|
||||
|
||||
});
|
||||
const errmsgclk = (e,k)=>{
|
||||
console.log(indexmessage.value,k)
|
||||
if(k==1){
|
||||
if(indexmessage.value?.izStart=='Y'){
|
||||
switch (e){
|
||||
const errmsgclk = (e, k) => {
|
||||
console.log(indexmessage.value, k)
|
||||
if (k == 1) {
|
||||
if (indexmessage.value?.izStart == 'Y') {
|
||||
switch (e) {
|
||||
case 0:
|
||||
if(indexmessage.value?.serviceContent==''){return}
|
||||
if (indexmessage.value?.serviceContent == '') { return }
|
||||
errmsg.value = indexmessage.value?.serviceContent
|
||||
break;
|
||||
case 1:
|
||||
if(indexmessage.value?.mp3File==''){return}
|
||||
if (indexmessage.value?.mp3File == '') { return }
|
||||
errmsg.value = indexmessage.value?.mp3File
|
||||
break;
|
||||
case 2:
|
||||
if(indexmessage.value?.mp4File==''){return}
|
||||
if (indexmessage.value?.mp4File == '') { return }
|
||||
errmsg.value = indexmessage.value?.mp4File
|
||||
break;
|
||||
|
||||
|
|
@ -693,15 +714,15 @@
|
|||
}
|
||||
openerror.value = true;
|
||||
}
|
||||
}else{
|
||||
if(indexmessage.value?.izStart=='Y'){
|
||||
} else {
|
||||
if (indexmessage.value?.izStart == 'Y') {
|
||||
|
||||
switch (e){
|
||||
switch (e) {
|
||||
case 3:
|
||||
ysptp(indexmessage.value,0,1)
|
||||
ysptp(indexmessage.value, 0, 1)
|
||||
break;
|
||||
case 4:
|
||||
ysptp(indexmessage.value,0,2)
|
||||
ysptp(indexmessage.value, 0, 2)
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -742,30 +763,31 @@
|
|||
// e.detail.scrollTop 就是当前滚动距离
|
||||
scrollTop.value = e.detail.scrollTop
|
||||
}
|
||||
const start = (v) =>{
|
||||
if(v.izStart!='N'){return}
|
||||
const start = (v) => {
|
||||
if (v.izStart != 'N') { return }
|
||||
console.log(v)
|
||||
startOrder({id:v.id}).then(res=>{
|
||||
startOrder({ id: v.id }).then(res => {
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
if (res.success) {
|
||||
v.izStart = "Y";
|
||||
}else{
|
||||
} else {
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
const end = (v)=>{
|
||||
const end = (v) => {
|
||||
console.log(v)
|
||||
if(v.izStart=='Y'&& v.izFinish=='N'){
|
||||
endOrder({id:v.id}).then(res=>{
|
||||
if (v.izStart == 'Y' && v.izFinish == 'N') {
|
||||
endOrder({ id: v.id }).then(res => {
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
if (res.success) {
|
||||
firstgetqueryCgdList(uni.getStorageSync('nuId'))
|
||||
}else{
|
||||
} else {
|
||||
|
||||
}
|
||||
})}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
// 通用的生成函数
|
||||
|
|
@ -885,7 +907,7 @@
|
|||
}
|
||||
const getmenu = () => {
|
||||
queryPadPageList().then((res => {
|
||||
console.log("看看数据",res.result.records)
|
||||
console.log("看看数据", res.result.records)
|
||||
leftMenuArray.value = res.result.records;
|
||||
filteredMenu(0).forEach((element : any, index : number) => {
|
||||
if (element.nuId === uni.getStorageSync('NUall').nuId) {
|
||||
|
|
@ -902,7 +924,7 @@
|
|||
employeeId: uni.getStorageSync('userInfo').employessId,
|
||||
workType: 5
|
||||
}
|
||||
console.log("看看图",data)
|
||||
console.log("看看图", data)
|
||||
// queryWorkOrderList(data).then((res : any) => {
|
||||
// console.log("看看图",res)
|
||||
// indexmessage.value = res.result.records[0];
|
||||
|
|
@ -925,7 +947,7 @@
|
|||
}))
|
||||
}))
|
||||
)
|
||||
const nusing = ()=>{
|
||||
const nusing = () => {
|
||||
uni.setStorage({
|
||||
key: 'myArray',
|
||||
data: timearr.value,
|
||||
|
|
@ -947,13 +969,13 @@
|
|||
emotionTagList.value = [];
|
||||
bodyTagList.value = [];
|
||||
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
|
||||
res.result.emotionTagList.forEach(item=>{
|
||||
if(item.izSelected == 'Y'){
|
||||
res.result.emotionTagList.forEach(item => {
|
||||
if (item.izSelected == 'Y') {
|
||||
emotionTagList.value.push(item)
|
||||
}
|
||||
})
|
||||
res.result.bodyTagList.forEach(item=>{
|
||||
if(item.izSelected == 'Y'){
|
||||
res.result.bodyTagList.forEach(item => {
|
||||
if (item.izSelected == 'Y') {
|
||||
bodyTagList.value.push(item)
|
||||
}
|
||||
})
|
||||
|
|
@ -964,6 +986,76 @@
|
|||
})
|
||||
}
|
||||
}
|
||||
function getStatusDesc(type) {
|
||||
switch (type) {
|
||||
case '稳定':
|
||||
return '标准情绪';
|
||||
|
||||
case '标准':
|
||||
return '标准体重;女100-120,男:120-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,7 +1064,8 @@
|
|||
margin-left: 2vw;
|
||||
height: 100%;
|
||||
transition: opacity 1s ease;
|
||||
.right-time{
|
||||
|
||||
.right-time {
|
||||
margin-top: 80rpx;
|
||||
width: 100%;
|
||||
height: 15vh;
|
||||
|
|
@ -982,16 +1075,19 @@
|
|||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding-left: 30rpx;
|
||||
.time-top{
|
||||
|
||||
.time-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.1vw;
|
||||
.time-big{
|
||||
|
||||
.time-big {
|
||||
font-size: 3.5vw;
|
||||
font-weight: 600;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.time-week{
|
||||
|
||||
.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,36 +1852,41 @@
|
|||
display: flex;
|
||||
margin-top: 20rpx;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.photowall-other-one {
|
||||
width: 22vw;
|
||||
height: 430rpx;
|
||||
margin-right: 3vw;
|
||||
margin-bottom: 0%;
|
||||
border-radius: 30rpx;
|
||||
display:flex;
|
||||
display: flex;
|
||||
position: relative;
|
||||
video{
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.guodu {
|
||||
transition: .4s;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.jsh0{
|
||||
|
||||
.jsh0 {
|
||||
height: 0vw !important;
|
||||
padding: 0 2vw !important;
|
||||
top: 9.4vw !important;
|
||||
}
|
||||
.jszl{
|
||||
|
||||
.jszl {
|
||||
width: 64.5vw;
|
||||
height: 44vw;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136,148,167,0.19);
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
|
||||
border-radius: 2.2vw;
|
||||
position: absolute;
|
||||
top: 11vw;
|
||||
|
|
@ -1790,18 +1894,21 @@
|
|||
z-index: 200;
|
||||
padding: 2vw;
|
||||
overflow: hidden;
|
||||
.submit{
|
||||
|
||||
.submit {
|
||||
width: 100%;
|
||||
height: 3.2vw;
|
||||
margin-top: 0.4vw;
|
||||
padding-right: 2vw;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
view{
|
||||
|
||||
view {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
&:nth-child(1){
|
||||
|
||||
&:nth-child(1) {
|
||||
width: 7.1vw;
|
||||
height: 3.2vw;
|
||||
background: #F8F8F8;
|
||||
|
|
@ -1811,12 +1918,13 @@
|
|||
font-size: 1.4vw;
|
||||
color: #555555;
|
||||
}
|
||||
&:nth-child(2){
|
||||
|
||||
&:nth-child(2) {
|
||||
width: 7.1vw;
|
||||
height: 3.2vw;
|
||||
background: linear-gradient(0deg, #CAE0F9, #E9F4FF);
|
||||
border-radius: 1.6vw;
|
||||
border: 1px solid rgba(3,133,250,0.34);
|
||||
border: 1px solid rgba(3, 133, 250, 0.34);
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
color: #1083F8;
|
||||
|
|
@ -1824,13 +1932,14 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.scrol{
|
||||
|
||||
.scrol {
|
||||
width: 110%;
|
||||
height: 30vw;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.cdk{
|
||||
.cdk {
|
||||
width: 6.1vw;
|
||||
height: 6.1vw;
|
||||
background: #F8F8F8;
|
||||
|
|
@ -1839,12 +1948,14 @@
|
|||
display: inline-block;
|
||||
border: 1px solid #F8F8F8;
|
||||
text-align: center;
|
||||
image{
|
||||
|
||||
image {
|
||||
width: 2vw;
|
||||
height: 2vw;
|
||||
margin: 1.4vw auto 0vw;
|
||||
}
|
||||
text{
|
||||
|
||||
text {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
|
|
@ -1853,32 +1964,38 @@
|
|||
width: 100%;
|
||||
}
|
||||
}
|
||||
.act{
|
||||
|
||||
.act {
|
||||
background: #F2F8FF;
|
||||
border: 1px solid rgba(1,125,233,0.43);
|
||||
text{
|
||||
border: 1px solid rgba(1, 125, 233, 0.43);
|
||||
|
||||
text {
|
||||
color: #017DE9;
|
||||
}
|
||||
}
|
||||
}
|
||||
.spiw{
|
||||
|
||||
.spiw {
|
||||
width: 14vw;
|
||||
height: 2vw;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: 2.5vw;
|
||||
view{
|
||||
|
||||
view {
|
||||
font-weight: 400;
|
||||
font-size: 1.3vw;
|
||||
color: #555555;
|
||||
position: relative;
|
||||
line-height: 1.5vw;
|
||||
}
|
||||
.act{
|
||||
|
||||
.act {
|
||||
color: #222222 !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
.act::after{
|
||||
|
||||
.act::after {
|
||||
width: 50%;
|
||||
height: 0.2vw;
|
||||
background: #0089FE;
|
||||
|
|
@ -1889,14 +2006,16 @@
|
|||
left: 25%;
|
||||
}
|
||||
}
|
||||
.tittop{
|
||||
|
||||
.tittop {
|
||||
height: 2vw;
|
||||
font-weight: 400;
|
||||
font-size: 1.4vw;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
view{
|
||||
|
||||
view {
|
||||
width: 0.4vw;
|
||||
height: 1.2vw;
|
||||
background: #017DE9;
|
||||
|
|
@ -1905,40 +2024,61 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.bianj{
|
||||
|
||||
.bianj {
|
||||
position: absolute;
|
||||
width: 2.2vw;
|
||||
height: 1.1vw;
|
||||
top: 9.68vw;
|
||||
right: 2.5vw;
|
||||
z-index: 220;
|
||||
image{
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.jb{
|
||||
|
||||
.jb {
|
||||
position: absolute;
|
||||
width: 2.2vw;
|
||||
height: 1.1vw;
|
||||
top: 2.7vw;
|
||||
right: 1.5vw;
|
||||
z-index: 220;
|
||||
image{
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.zzh0{
|
||||
|
||||
.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{
|
||||
|
||||
.zzbq {
|
||||
width: 18vw;
|
||||
height: 10vw;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136,148,167,0.19);
|
||||
box-shadow: 0rpx 0rpx 0.5vw 0rpx rgba(136, 148, 167, 0.19);
|
||||
border-radius: 1.6vw;
|
||||
right: -0.8vw;
|
||||
top: 4vw;
|
||||
|
|
@ -1946,21 +2086,26 @@
|
|||
z-index: 200;
|
||||
display: flex;
|
||||
padding: 1.6vw 1.6vw 0;
|
||||
.carfd{
|
||||
|
||||
.carfd {
|
||||
width: 7.4vw;
|
||||
height: 100%;
|
||||
.tg{
|
||||
|
||||
.tg {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
margin-top: 1vw;
|
||||
view{
|
||||
|
||||
view {
|
||||
width: 1.8vw;
|
||||
image{
|
||||
|
||||
image {
|
||||
width: 1.8vw;
|
||||
height: 1.8vw;
|
||||
}
|
||||
text{
|
||||
|
||||
text {
|
||||
font-weight: 400;
|
||||
font-size: 0.8vw;
|
||||
color: #666666;
|
||||
|
|
@ -1969,14 +2114,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
.tittop{
|
||||
.tittop {
|
||||
height: 2vw;
|
||||
font-weight: 400;
|
||||
font-size: 1.1vw;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
view{
|
||||
|
||||
view {
|
||||
width: 0.4vw;
|
||||
height: 1.2vw;
|
||||
background: #017DE9;
|
||||
|
|
@ -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>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue