9999999999999999999999
This commit is contained in:
parent
a23e943c4e
commit
b7ec5faf2b
|
|
@ -6,14 +6,14 @@ import request from '@/request/index.js'
|
|||
// 查询服务类型
|
||||
export const getServiceTree = () => {
|
||||
return request({
|
||||
url: '/nuIpadApi/nuConfigServiceCategory/getServiceTree',
|
||||
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 查询表格
|
||||
export const getNclist = () => {
|
||||
return request({
|
||||
url: '/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1',
|
||||
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ export const addNuCustomerServer = (params) => {
|
|||
// 移动表格
|
||||
export const editNuCustomerServer = (params) => {
|
||||
return request({
|
||||
url: '/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer',
|
||||
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -595,9 +595,9 @@
|
|||
const isMove = ref(false);
|
||||
|
||||
onMounted(() => {
|
||||
// getServiceTree().then(res=>{
|
||||
// console.log("res",res)
|
||||
// })
|
||||
getServiceTree().then(res=>{
|
||||
console.log("res111",res.result)
|
||||
})
|
||||
})
|
||||
// 上次点击时间
|
||||
const lastTap = ref(0)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ export const getServiceTree = () => {
|
|||
})
|
||||
}
|
||||
// 查询表格
|
||||
export const getNclist = () => {
|
||||
export const getNclist = (nuId,customerId) => {
|
||||
return request({
|
||||
url: '/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1',
|
||||
url: `/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=${nuId}&customerId=${customerId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,8 +271,9 @@
|
|||
<scroll-view scroll-y style="height: 100%;width:100%;" :show-scrollbar="false"
|
||||
:scroll-top="firsttop" v-show="!iszhouqi">
|
||||
<view
|
||||
v-for="(item,index) in bigArray[upmenuIndex].children[downmenuIndex].children"
|
||||
v-for="(item,index) in bigArray[upmenuIndex]?.children[downmenuIndex]?.children"
|
||||
:key="index" @click="onTap(index)">
|
||||
|
||||
<view class="right-box-item"
|
||||
:style="thirdmenuIndex==index?{border: `2rpx solid rgb(229, 233, 249)`,backgroundColor:`#fff`}:{border: `2rpx solid rgb(229, 233, 249)`}">
|
||||
<view class="title-time-button-font" v-show="item.cycleType ==='周期护理'">
|
||||
|
|
@ -290,18 +291,6 @@
|
|||
:style="thirdmenuIndex==index?{color:`rgb(54, 159, 239)`}:{}">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<!-- <view class="right-box-items" style="margin-top: 10rpx;">
|
||||
<image class="right-box-items-button"
|
||||
src="/static/index/newruler/m1.png" />
|
||||
<image class="right-box-items-button"
|
||||
style="width: 30rpx;height: 30rpx;"
|
||||
src="/static/index/tagNames/0.png" />
|
||||
<image class="right-box-items-button"
|
||||
style="width: 30rpx;height: 30rpx;"
|
||||
src="/static/index/tagNames/1.png" />
|
||||
<image class="right-box-items-button"
|
||||
src="/static/index/newruler/m2.png" />
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20rpx;"></view>
|
||||
|
|
@ -313,8 +302,7 @@
|
|||
<view v-for="(item,index) in downList" :key="index">
|
||||
<view :class="downdonghua==index? `downList-box-target` : `downList-box`"
|
||||
@click="secondContant(index)">
|
||||
<!-- <image class="downList-box-img" style="width: 70rpx;height: 70rpx;"
|
||||
src="/static/index/tu.png" /> -->
|
||||
|
||||
<donghua :width="`55rpx`" :height="`55rpx`" :links="item.url"
|
||||
:playing="downdonghua==index" :interval="120" />
|
||||
<view class="downList-box-text">
|
||||
|
|
@ -323,7 +311,7 @@
|
|||
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 20rpx;"></view> <!-- 空白元素 -->
|
||||
<view style="height: 20rpx;"></view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -926,9 +914,7 @@
|
|||
|
||||
onMounted(() => {
|
||||
downdonghua.value = 0;
|
||||
getServiceTree().then((res:any)=>{
|
||||
console.log("res",res)
|
||||
})
|
||||
|
||||
})
|
||||
// 上次点击时间
|
||||
const lastTap = ref(0)
|
||||
|
|
@ -1010,7 +996,7 @@
|
|||
})
|
||||
downmenuIndex.value = 0;
|
||||
upmenuIndex.value = index
|
||||
downList.value = bigArray.value[index].children
|
||||
downList.value = bigArray.value[index]?.children
|
||||
thirdmenuIndex.value = 0;
|
||||
}
|
||||
const changecard = () => {
|
||||
|
|
@ -1853,8 +1839,23 @@
|
|||
}))
|
||||
)
|
||||
onShow(() => {
|
||||
bigArray.value = myArray
|
||||
downList.value = bigArray.value[0].children
|
||||
getServiceTree().then((res:any)=>{
|
||||
res.result.forEach((element:any) =>{
|
||||
element.children.forEach(res=>{
|
||||
res.url = [`/static/index/diet/medicine_1.png`,`/static/index/diet/medicine_2.png`,`/static/index/diet/medicine_3.png`,`/static/index/diet/medicine_4.png`,`/static/index/diet/medicine_5.png`,`/static/index/diet/medicine_6.png`,`/static/index/diet/medicine_7.png`]
|
||||
})
|
||||
})
|
||||
bigArray.value = [res.result[0]];
|
||||
downList.value = bigArray.value[0].children
|
||||
})
|
||||
// getNclist()
|
||||
// console.log(`6`,uni.getStorageSync('nuId'))
|
||||
// console.log(`7`,uni.getStorageSync('customerId'))
|
||||
if(uni.getStorageSync('nuId')&&uni.getStorageSync('customerId')){
|
||||
getNclist(uni.getStorageSync('nuId'),uni.getStorageSync('customerId')).then((res:any)=>{
|
||||
console.log("any",res)
|
||||
})
|
||||
}
|
||||
uni.$on('where', findback);
|
||||
})
|
||||
onHide(() => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="center-column" :style="{ height: isshow ? '510px' : '0px' }">
|
||||
<!-- 视频播放组件 -->
|
||||
<MonitorView ref="monitor" init="5" style="width: 650px;height: 510px;" @onTel="handleTelEvent"
|
||||
<MonitorView ref="monitor" :init="initnumber" style="width: 650px;height: 510px;" @onTel="handleTelEvent"
|
||||
@onSnapShot="handleSnapShotEvent" @onRecord="handleRecordEvent" @onTalkStatus="handleTalkEvent" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
data() {
|
||||
return {
|
||||
phoneNumber: "1234567890",
|
||||
initnumber: 5,
|
||||
isAlarming: false,
|
||||
isRecording: false, // 录屏状态
|
||||
isTalking: false, // 对讲状态
|
||||
|
|
@ -23,7 +24,7 @@
|
|||
talk: []
|
||||
},
|
||||
suo: true,
|
||||
isshow:true
|
||||
isshow: true
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
|
|
@ -55,8 +56,40 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
uni.setStorageSync('saveinit', 5);
|
||||
// this.doStopRecord()
|
||||
uni.$on('monitor:isshow', (bool) => this.isshow=bool );
|
||||
uni.$on('monitor:changeinit', (number) => {
|
||||
this.initnumber = number;
|
||||
uni.setStorageSync('saveinit', number);
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
console.log(e)
|
||||
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: '录屏成功',
|
||||
icon: 'success', // 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
if (e.snapShotUrl) {
|
||||
uni.showToast({
|
||||
title: '截屏成功',
|
||||
icon: 'success', // 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
})
|
||||
}
|
||||
if (this.suo && e.onVolumeChange) {
|
||||
if (e.onVolumeChange) {
|
||||
this.toggleVolume();
|
||||
}
|
||||
this.suo = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
uni.$on('monitor:isshow', (bool) => this.isshow = bool);
|
||||
// 在页面生命周期注册 uni.$on 事件,暴露给其他页面调用
|
||||
uni.$on('monitor:doSnapshot', this.doSnapshot);
|
||||
uni.$on('monitor:startRecord', this.doStartRecord);
|
||||
|
|
@ -75,7 +108,8 @@
|
|||
},
|
||||
onUnload() {
|
||||
// 页面卸载时一定要解绑
|
||||
uni.$off('monitor:isshow', (bool) => this.isshow=bool );
|
||||
uni.$off('monitor:changeinit', (number) => this.initnumber = number);
|
||||
uni.$off('monitor:isshow', (bool) => this.isshow = bool);
|
||||
uni.$off('monitor:doSnapshot', this.doSnapshot);
|
||||
uni.$off('monitor:startRecord', this.doStartRecord);
|
||||
uni.$off('monitor:stopRecord', this.doStopRecord);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
<view class="input-father-blue" v-show="fullName&&canclick" @click="login()">
|
||||
验证并登录
|
||||
</view>
|
||||
<!-- <demo style="z-index: 999;" /> -->
|
||||
<view class="under-container-title">
|
||||
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'" @click="isTarget = !isTarget"></view>
|
||||
<view style="margin-left: 17rpx;" class="radio-circle-font" @click="isTarget = !isTarget">我已阅读并同意</view>
|
||||
|
|
@ -126,6 +125,23 @@
|
|||
<view class="bg-mask" v-if="huakuaiOpen" @click="huakuaiOpen=false">
|
||||
<huakuai @click.stop @success="huakuaisuccess" />
|
||||
</view>
|
||||
|
||||
<view class="bg-mask" v-if="selectserve">
|
||||
<view @click.stop class="white-select">
|
||||
<view class="big-font">
|
||||
请选择您的机构
|
||||
</view>
|
||||
<view class="small-father">
|
||||
<view class="small-select" v-for="(item,index) in allserve" @click="changeServe(item.serverUrl)">
|
||||
{{ item.orgCode }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
|
@ -136,7 +152,7 @@
|
|||
import twoseven from '@/pages/login/twoseven.vue'
|
||||
import { isRel, getLoginCode, loginApp } from './api.js'
|
||||
import huakuai from '@/component/public/huakuai.vue'
|
||||
import demo from '@/component/public/game/demo.vue';
|
||||
|
||||
|
||||
const zyupgrade = ref(null);
|
||||
const isTarget = ref(false);
|
||||
|
|
@ -164,8 +180,6 @@
|
|||
openbottom.value = false;
|
||||
isTarget.value = true;
|
||||
login()
|
||||
|
||||
|
||||
}
|
||||
|
||||
function closePopup() {
|
||||
|
|
@ -187,13 +201,15 @@
|
|||
|
||||
const canclick = ref(false)
|
||||
const time = ref(0);
|
||||
const allserve = ref([])
|
||||
const getImg = () => {
|
||||
if (/^\d{11}$/.test(form.username)) {
|
||||
isRel(form.username).then((res : any) => {
|
||||
console.log("^^^^^^^^^^6",res)
|
||||
if (res.result !== null && res.result.serverUrl) {
|
||||
uni.setStorageSync('serverUrl', res.result.serverUrl);
|
||||
console.log("url",res.result.serverUrl)
|
||||
if (res.result.code === '0') {
|
||||
|
||||
uni.setStorageSync('serverUrl', res.result.data.serverUrl);
|
||||
console.log("9999",res.result.orgList)
|
||||
allserve.value = res.result.orgList
|
||||
time.value = Date.now();
|
||||
|
||||
getLoginCode(time.value).then((res : any) => {
|
||||
|
|
@ -202,8 +218,9 @@
|
|||
})
|
||||
} else {
|
||||
uni.setStorageSync('serverUrl', "");
|
||||
allserve.value = [];
|
||||
uni.showToast({
|
||||
title: '该手机号未绑定机构',
|
||||
title: res.result.msg,
|
||||
icon: 'none', // 可选值:'success'、'loading'、'none'
|
||||
duration: 2000 // 持续时间,单位ms
|
||||
})
|
||||
|
|
@ -235,7 +252,7 @@
|
|||
}
|
||||
const jumpFirst = ref(false);
|
||||
const canJump = () => {
|
||||
if(!jumpFirst.value){
|
||||
if (!jumpFirst.value) {
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`)
|
||||
|
|
@ -245,13 +262,34 @@
|
|||
}
|
||||
jumpFirst.value = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
const loading = ref(0)
|
||||
|
||||
const selectserve = ref(false);
|
||||
const huakuaiOK = () => {
|
||||
if (allserve.value.length > 1) {
|
||||
// console.log("aaaaaa");
|
||||
huakuaiOpen.value = false;
|
||||
selectserve.value = true;
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`)
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
const changeServe = (url : string) => {
|
||||
uni.setStorageSync('serverUrl', url);
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`)
|
||||
}, 500)
|
||||
|
||||
}
|
||||
const huakuaisuccess = () => {
|
||||
form.checkKey = time.value
|
||||
huakuaiOpen.value = false
|
||||
loginApp(form).then(res => {
|
||||
console.log("info",res)
|
||||
if (res.success) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
|
@ -261,17 +299,8 @@
|
|||
uni.setStorageSync('token', res.result.token);
|
||||
uni.setStorageSync('username', form.username);
|
||||
uni.setStorageSync('realname', res.result.userInfo.realname);
|
||||
// if (!loading.value) {
|
||||
// loading.value = true
|
||||
// } else {
|
||||
// setTimeout(() => {
|
||||
// jumpTo(`/pages/watch/index`)
|
||||
// }, 500)
|
||||
// }
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`)
|
||||
}, 500)
|
||||
huakuaiOK()
|
||||
} else {
|
||||
loading.value++
|
||||
}
|
||||
|
|
@ -303,7 +332,7 @@
|
|||
// 生命周期钩子
|
||||
onShow(() => {
|
||||
zyupgrade.value?.check_update();
|
||||
|
||||
|
||||
});
|
||||
|
||||
function init() {
|
||||
|
|
@ -320,7 +349,6 @@
|
|||
port: 8888,
|
||||
}
|
||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||
console.log("?????", r)
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`)
|
||||
|
|
@ -676,4 +704,38 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.white-select {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
width: 1200rpx;
|
||||
height: 1200rpx;
|
||||
border-radius: 30rpx;
|
||||
|
||||
flex-direction: column;
|
||||
|
||||
.big-font {
|
||||
font-size: 35rpx;
|
||||
}
|
||||
|
||||
.small-father {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.small-select {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
margin: 200rpx;
|
||||
border-radius: 30rpx;
|
||||
border: 2rpx solid;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -5,7 +5,7 @@ import request from '@/request/guanli.js'
|
|||
|
||||
// 用你给的四个固定值
|
||||
export const movedirection = (direction,startOrNot) => {
|
||||
const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=5&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
|
||||
const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${uni.getStorageSync('saveinit') || 5}&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
|
||||
return request({ url, method: 'get' });
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
:class="{warning: item.izWarning == '1',target: index === leftTargetIndex}" :style="[
|
||||
index === menuIndex ? { backgroundColor: '#fff' } : {},
|
||||
leftTargetIndex === index ? { backgroundColor: '#ddf0ff' } : {}
|
||||
]" @click="menuIndex=index;changeLeftMenu(item,index)">
|
||||
]" @click="menuIndex=index;cleanandopen();leftTargetIndex = index;changeLeftMenu(item,index)">
|
||||
<view class="menu-img">
|
||||
<donghua :width="`55rpx`" :height="`55rpx`" :links="item.url" :playing="menuIndex===index" />
|
||||
</view>
|
||||
|
|
@ -86,9 +86,10 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="picture">
|
||||
<view class="picture-card" v-for="(item,index) in downpicture" :key="index" :class="{target: index === bottomTargetIndex}"
|
||||
<view class="picture-card" v-for="(item,index) in downpicture" :key="index"
|
||||
:style="{color:downtarget===index?'#1486EB':''}" @click="clickDownCard(index)">
|
||||
<view class="bgc-card" :style="{background:downtarget===index?'#E2EDFC':''}">
|
||||
<view class="bgc-card" :style="{background:downtarget===index?'#E2EDFC':''}"
|
||||
:class="{target: index === bottomTargetIndex}">
|
||||
<image style="width: 90rpx;height: 90rpx;"
|
||||
:src="`/static/index/picture/${index}${downtarget===index?1:0}.png`" />
|
||||
</view>
|
||||
|
|
@ -172,10 +173,11 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="juzhong" style="z-index: 2;margin-top: 130rpx;">
|
||||
<image style="width: 100rpx;height: 100rpx;" :src="`https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.immediateFile}`" />
|
||||
</view>
|
||||
<image style="width: 100rpx;height: 100rpx;"
|
||||
:src="`https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.immediateFile}`" />
|
||||
</view>
|
||||
<view style="height: 200rpx;">
|
||||
|
||||
|
||||
</view>
|
||||
<!-- <view class="juzhong" style="top: -120rpx;">
|
||||
<donghua :width="`600rpx`" :height="`500rpx`" :links="blueArray" :playing="photoplay"
|
||||
|
|
@ -236,7 +238,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, onBeforeUnmount, computed,reactive } from 'vue';
|
||||
import { ref, onMounted, onBeforeUnmount, computed, reactive } from 'vue';
|
||||
import { onShow, onLoad, onHide } from "@dcloudio/uni-app"
|
||||
// import specialDrawerVue from '../../component/public/specialDrawer.vue';
|
||||
// import bigroll from './drawer/index.vue';
|
||||
|
|
@ -319,6 +321,9 @@
|
|||
})
|
||||
}
|
||||
const clickDownCard = (index : number) => {
|
||||
cleanandopen()
|
||||
bottomTargetIndex.value = index;
|
||||
// clickDownCard(0)
|
||||
downtarget.value = index;
|
||||
switch (index) {
|
||||
case 0:
|
||||
|
|
@ -372,34 +377,35 @@
|
|||
return closest
|
||||
}
|
||||
const serveritem = ref({
|
||||
startTime:"",
|
||||
endTime:"",
|
||||
typeName:"",
|
||||
immediateFile:""
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
typeName: "",
|
||||
immediateFile: ""
|
||||
})
|
||||
const changeLeftMenu = (item : any,index:number) => {
|
||||
cleanandopen();
|
||||
leftTargetIndex.value = index;
|
||||
if(item.elderServerEntityList){
|
||||
const changeLeftMenu = (item : any, index : number) => {
|
||||
|
||||
if (item.elderServerEntityList) {
|
||||
//给屏幕右侧数据用的
|
||||
const nearest = findClosestItem(item.elderServerEntityList, time.value)
|
||||
serveritem.value = nearest
|
||||
// console.log("zzzzaaa", nearest)
|
||||
}else{
|
||||
} else {
|
||||
serveritem.value = {
|
||||
startTime:"",
|
||||
endTime:"",
|
||||
typeName:"",
|
||||
immediateFile:""
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
typeName: "",
|
||||
immediateFile: ""
|
||||
}
|
||||
}
|
||||
// console.log("<<<<", filteredMenu[menuIndex.value])
|
||||
if (item.cameraInfo !== null && item.cameraInfo[0].deviceName) {
|
||||
uni.$emit('monitor:isshow', true)
|
||||
uni.$emit('monitor:isshow', true);
|
||||
uni.$emit('monitor:changeinit', item.cameraInfo[0].deviceIndex);
|
||||
} else {
|
||||
uni.$emit('monitor:isshow', false)
|
||||
}
|
||||
}
|
||||
const clickTopMenu = (index:number) => {
|
||||
const clickTopMenu = (index : number) => {
|
||||
cleanandopen();
|
||||
topTargetIndex.value = index;
|
||||
}
|
||||
|
|
@ -644,11 +650,12 @@
|
|||
topTargetIndex.value = -1;
|
||||
bottomTargetIndex.value = -1;
|
||||
shezhi.value = false;
|
||||
|
||||
|
||||
}
|
||||
const movecamera = (type : number) => {
|
||||
handleKey(type)
|
||||
}
|
||||
const savetypeNow = ref(0);
|
||||
const movecard = (type : number) => {
|
||||
|
||||
if (leftTargetIndex.value !== -1) {
|
||||
|
|
@ -656,9 +663,10 @@
|
|||
case 0:
|
||||
if (menuIndex.value > 0) {
|
||||
leftTargetIndex.value--
|
||||
typeNow.value = 0
|
||||
menuIndex.value = leftTargetIndex.value
|
||||
ensureVisible(menuIndex.value)
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value)
|
||||
|
||||
} else {
|
||||
topTargetIndex.value = typeNow.value
|
||||
leftTargetIndex.value = -1
|
||||
|
|
@ -674,9 +682,9 @@
|
|||
case 2:
|
||||
if (menuIndex.value < filteredMenu.value.length - 1) {
|
||||
menuIndex.value++
|
||||
typeNow.value = 0
|
||||
leftTargetIndex.value = menuIndex.value
|
||||
ensureVisible(menuIndex.value)
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value)
|
||||
}
|
||||
|
||||
break
|
||||
|
|
@ -684,6 +692,12 @@
|
|||
|
||||
break
|
||||
case 4:
|
||||
savetypeNow.value = leftTargetIndex.value
|
||||
uni.setStorageSync('nuId', filteredMenu.value[savetypeNow.value].nuId);
|
||||
uni.setStorageSync('customerId', filteredMenu.value[savetypeNow.value].customerId);
|
||||
// console.log("ceshi",filteredMenu.value[savetypeNow.value])
|
||||
// return
|
||||
|
||||
if (!typeNow.value) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/NursingNew/index'
|
||||
|
|
@ -693,6 +707,7 @@
|
|||
url: '/pages/Warehousing/index'
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
} else if (topTargetIndex.value !== -1) {
|
||||
|
|
@ -705,6 +720,7 @@
|
|||
// console.log("???", typeArray.value.length)
|
||||
typeNow.value++
|
||||
topTargetIndex.value = typeNow.value
|
||||
changeLeftMenu(filteredMenu.value[0], 0)
|
||||
|
||||
} else {
|
||||
shezhi.value = true
|
||||
|
|
@ -725,12 +741,13 @@
|
|||
// }
|
||||
cleanandopen()
|
||||
bottomTargetIndex.value = 0;
|
||||
|
||||
clickDownCard(0)
|
||||
break
|
||||
case 3:
|
||||
if (typeNow.value) {
|
||||
typeNow.value--
|
||||
topTargetIndex.value = typeNow.value
|
||||
changeLeftMenu(filteredMenu.value[0], 0)
|
||||
|
||||
} else {
|
||||
topTargetIndex.value = -1
|
||||
|
|
@ -760,6 +777,7 @@
|
|||
case 2:
|
||||
cleanandopen()
|
||||
bottomTargetIndex.value = 0;
|
||||
clickDownCard(0)
|
||||
|
||||
break
|
||||
case 3:
|
||||
|
|
@ -779,8 +797,46 @@
|
|||
break
|
||||
}
|
||||
|
||||
}else if(bottomTargetIndex.value !== -1){
|
||||
|
||||
} else if (bottomTargetIndex.value !== -1) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
cleanandopen()
|
||||
topTargetIndex.value = typeNow.value;
|
||||
break
|
||||
case 1:
|
||||
if (bottomTargetIndex.value < 4) {
|
||||
bottomTargetIndex.value++
|
||||
clickDownCard(bottomTargetIndex.value)
|
||||
}
|
||||
|
||||
break
|
||||
case 2:
|
||||
|
||||
break
|
||||
case 3:
|
||||
|
||||
if (bottomTargetIndex.value) {
|
||||
bottomTargetIndex.value--
|
||||
clickDownCard(bottomTargetIndex.value)
|
||||
} else {
|
||||
let menunumber = menuIndex.value
|
||||
cleanandopen()
|
||||
menuIndex.value = menunumber;
|
||||
leftTargetIndex.value = menunumber;
|
||||
changeLeftMenu(filteredMenu.value[menuIndex.value], menuIndex.value)
|
||||
}
|
||||
break
|
||||
case 4:
|
||||
goback()
|
||||
break
|
||||
case 5:
|
||||
// topTargetIndex.value = -1
|
||||
// menuIndex.value = 0
|
||||
// leftTargetIndex.value = menuIndex.value
|
||||
// ensureVisible(menuIndex.value)
|
||||
// shezhi.value = false;
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -799,7 +855,7 @@
|
|||
}
|
||||
const jumpopen = ref(false);
|
||||
const clickcamera = (index : number) => {
|
||||
uni.$emit('monitor:isshow', false)
|
||||
// uni.$emit('monitor:isshow', false)
|
||||
switch (index) {
|
||||
case 0:
|
||||
// 触发快照事件
|
||||
|
|
@ -999,7 +1055,9 @@
|
|||
}
|
||||
const filteredMenu = computed(() => {
|
||||
menuIndex.value = -1
|
||||
setTimeout(() => menuIndex.value = 0, 50)
|
||||
setTimeout(() => {
|
||||
menuIndex.value = 0;
|
||||
}, 50)
|
||||
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 === typeNow.value);
|
||||
});
|
||||
const goback = () => {
|
||||
|
|
@ -1028,9 +1086,10 @@
|
|||
updateClock()
|
||||
// 立即更新一次,然后每秒更新
|
||||
timerId0 = setInterval(updateClock, 1000)
|
||||
// console.log("!!!!!!!!!",menuIndex.value,leftTargetIndex.value)
|
||||
queryPadPageList().then((res => {
|
||||
leftMenuArray.value = res.result.records;
|
||||
console.log("????", leftMenuArray.value)
|
||||
// console.log("????", leftMenuArray.value)
|
||||
leftMenuArray.value.forEach((res : any) => {
|
||||
switch (res.areaFlag) {
|
||||
case '1':
|
||||
|
|
@ -1075,6 +1134,14 @@
|
|||
break
|
||||
}
|
||||
})
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value)
|
||||
setTimeout(() => {
|
||||
menuIndex.value = savetypeNow.value;
|
||||
leftTargetIndex.value = savetypeNow.value
|
||||
savetypeNow.value = 0;
|
||||
}, 100)
|
||||
|
||||
// console.log("?????????",menuIndex.value,leftTargetIndex.value)
|
||||
}))
|
||||
});
|
||||
onHide(() => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// 全局请求封装
|
||||
const base_url = 'https://www.focusnu.com/devopsapi'
|
||||
// const base_url = 'http://192.168.2.28:8081/devopsapi'
|
||||
// 请求超出时间
|
||||
const timeout = 5000
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// 全局请求封装
|
||||
const base_url = 'https://www.focusnu.com/opeapi'
|
||||
// const base_url = 'http://192.168.2.28:8081/opeapi'
|
||||
// 请求超出时间
|
||||
const timeout = 5000
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -21,6 +21,7 @@ const _sfc_main = {
|
|||
data() {
|
||||
return {
|
||||
phoneNumber: "1234567890",
|
||||
initnumber: 5,
|
||||
isAlarming: false,
|
||||
isRecording: false,
|
||||
// 录屏状态
|
||||
|
|
@ -42,7 +43,7 @@ const _sfc_main = {
|
|||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
||||
formatAppLog("log", "at pages/camera.nvue:35", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "录屏成功",
|
||||
|
|
@ -67,6 +68,41 @@ const _sfc_main = {
|
|||
}
|
||||
});
|
||||
}
|
||||
uni.setStorageSync("saveinit", 5);
|
||||
uni.$on(
|
||||
"monitor:changeinit",
|
||||
(number) => {
|
||||
this.initnumber = number;
|
||||
uni.setStorageSync("saveinit", number);
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:66", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "录屏成功",
|
||||
icon: "success",
|
||||
// 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
if (e.snapShotUrl) {
|
||||
uni.showToast({
|
||||
title: "截屏成功",
|
||||
icon: "success",
|
||||
// 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
if (this.suo && e.onVolumeChange) {
|
||||
if (e.onVolumeChange) {
|
||||
this.toggleVolume();
|
||||
}
|
||||
this.suo = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
uni.$on("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||
|
|
@ -83,6 +119,7 @@ const _sfc_main = {
|
|||
uni.$on("monitor:test", this.test);
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off("monitor:changeinit", (number) => this.initnumber = number);
|
||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||
|
|
@ -101,27 +138,27 @@ const _sfc_main = {
|
|||
methods: {
|
||||
/* ------------------ 原有功能 ------------------ */
|
||||
handleTelEvent(event) {
|
||||
formatAppLog("log", "at pages/camera.nvue:97", "Tel event detail:", event.detail);
|
||||
formatAppLog("log", "at pages/camera.nvue:131", "Tel event detail:", event.detail);
|
||||
},
|
||||
switchDisplay(mode) {
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "zzzzz", mode);
|
||||
formatAppLog("log", "at pages/camera.nvue:136", "zzzzz", mode);
|
||||
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||
},
|
||||
startAlarm() {
|
||||
this.isAlarming = true;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:109", "startAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:143", "startAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
stopAlarm() {
|
||||
this.isAlarming = false;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:115", "stopAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:149", "stopAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
flipImage(type) {
|
||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:121", "flipImage callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:155", "flipImage callback:", res);
|
||||
});
|
||||
},
|
||||
resumeOrPause() {
|
||||
|
|
@ -158,7 +195,7 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.snapShot((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:167", "snapShot callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:201", "snapShot callback:", res);
|
||||
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||
});
|
||||
uni.showToast({
|
||||
|
|
@ -167,7 +204,7 @@ const _sfc_main = {
|
|||
duration: 800
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:176", "snapShot 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:210", "snapShot 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "snapShot 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -199,7 +236,7 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.startRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:209", "startRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:243", "startRecord callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -213,7 +250,7 @@ const _sfc_main = {
|
|||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:224", "startRecord 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:258", "startRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "startRecord 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -248,11 +285,11 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:263", "stopRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:297", "stopRecord callback:", res);
|
||||
this._handleRecordResultFromNative(res, payload.reqId);
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:268", "stopRecord 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:302", "stopRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopRecord 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -287,7 +324,7 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:305", "openTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:339", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -301,7 +338,7 @@ const _sfc_main = {
|
|||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:320", "openTalk 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:354", "openTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "openTalk 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -333,7 +370,7 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:353", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:387", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -343,7 +380,7 @@ const _sfc_main = {
|
|||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:363", "stopTalk 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:397", "stopTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -361,19 +398,19 @@ const _sfc_main = {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:383", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:417", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:391", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:425", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:398", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:432", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
|
|
@ -441,7 +478,7 @@ const _sfc_main = {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:475", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:509", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
|
|
@ -477,7 +514,7 @@ const _sfc_main = {
|
|||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:518", "snapshot failed reason:", err, payload);
|
||||
formatAppLog("warn", "at pages/camera.nvue:552", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
|
|
@ -498,7 +535,7 @@ const _sfc_main = {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:540", "record payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:574", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
|
|
@ -522,7 +559,7 @@ const _sfc_main = {
|
|||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:571", "录屏地址:", payload.recordUrl);
|
||||
formatAppLog("log", "at pages/camera.nvue:605", "录屏地址:", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({
|
||||
title: "录屏失败: " + payload.recordFailedReason,
|
||||
|
|
@ -530,7 +567,7 @@ const _sfc_main = {
|
|||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:579", "record failed reason:", payload.recordFailedReason);
|
||||
formatAppLog("warn", "at pages/camera.nvue:613", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({
|
||||
|
|
@ -562,13 +599,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||
createCommentVNode(" 视频播放组件 "),
|
||||
createVNode(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
init: $data.initnumber,
|
||||
style: { "width": "650px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
}, null, 8, ["init", "onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
],
|
||||
4
|
||||
/* STYLE */
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/component/rightItemssecondrelnew/api.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/component/rightItemssecondrelnew/api.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"api.js","sources":["component/rightItemssecondrelnew/api.js"],"sourcesContent":["// 引入 request 文件\r\nimport request from '@/request/index.js'\r\n\r\n// 以下 api 为博主项目示例,实际与项目相匹配\r\n\r\n// 查询服务类型\r\nexport const getServiceTree = () => {\r\n\treturn request({\r\n\t\turl: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,\r\n\t\tmethod: 'get',\r\n\t})\r\n}\r\n// 查询表格\r\nexport const getNclist = () => {\r\n\treturn request({\r\n\t\turl: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1`,\r\n\t\tmethod: 'get',\r\n\t})\r\n}\r\n// 新增表格\r\nexport const addNuCustomerServer = (params) => {\r\n\treturn request({\r\n\t\turl: '/nuIpadApi/nuBizNuCustomerServer/addNuCustomerServer',\r\n\t\tmethod: 'post',\r\n\t\tdata: params,\r\n\t})\r\n}\r\n// 移动表格\r\nexport const editNuCustomerServer = (params) => {\r\n\treturn request({\r\n\t\turl: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer`,\r\n\t\tmethod: 'post',\r\n\t\tdata: params,\r\n\t})\r\n}\r\nexport const deleteNuCustomerServer = (params) => {\n\treturn request({\n\t\turl: `/nuIpadApi/nuBizNuCustomerServer/deleteNuCustomerServer?id=${params.id}`,\n\t\tmethod: 'delete',\n\t})\n}\r\n// 移动表格\r\nexport const addBatch = (params) => {\r\n\treturn request({\r\n\t\turl: '/nuIpadApi/nuBizNuCustomerServer/addBatch',\r\n\t\tmethod: 'post',\r\n\t\tdata: params,\r\n\t})\r\n}"],"names":["request","uni"],"mappings":";;;AAMY,MAAC,iBAAiB,MAAM;AACnC,SAAOA,sBAAQ;AAAA,IACd,KAAK,GAAGC,cAAG,MAAC,eAAe,WAAW,CAAC;AAAA,IACvC,QAAQ;AAAA,EACV,CAAE;AACF;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"lunpan.js","sources":["pages/watch/api/lunpan.js"],"sourcesContent":["// 引入 request 文件\r\nimport request from '@/request/guanli.js'\r\n\r\n// 以下 api 为博主项目示例,实际与项目相匹配\r\n\r\n// 用你给的四个固定值\nexport const movedirection = (direction,startOrNot) => {\n const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=5&direction=${direction}&startOrNot=${startOrNot}&speed=1`;\n return request({ url, method: 'get' });\n}\r\n\r\n\r\n// 获取护理单元\r\nexport const queryPadPageList = () => {\r\n\treturn request({\r\n\t\turl: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,\r\n\t\tmethod: 'get'\r\n\t})\r\n}"],"names":["request","uni"],"mappings":";;;AAMY,MAAC,gBAAgB,CAAC,WAAU,eAAe;AACrD,QAAM,MAAM,6DAA6D,SAAS,eAAe,UAAU;AAC3G,SAAOA,eAAO,QAAC,EAAE,KAAK,QAAQ,MAAO,CAAA;AACvC;AAIY,MAAC,mBAAmB,MAAM;AACrC,SAAOA,uBAAQ;AAAA,IACd,KAAK,GAAGC,cAAG,MAAC,eAAe,WAAW,CAAC;AAAA,IACvC,QAAQ;AAAA,EACV,CAAE;AACF;;;"}
|
||||
{"version":3,"file":"lunpan.js","sources":["pages/watch/api/lunpan.js"],"sourcesContent":["// 引入 request 文件\r\nimport request from '@/request/guanli.js'\r\n\r\n// 以下 api 为博主项目示例,实际与项目相匹配\r\n\r\n// 用你给的四个固定值\nexport const movedirection = (direction,startOrNot) => {\n const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${uni.getStorageSync('saveinit') || 5}&direction=${direction}&startOrNot=${startOrNot}&speed=1`;\n return request({ url, method: 'get' });\n}\r\n\r\n\r\n// 获取护理单元\r\nexport const queryPadPageList = () => {\r\n\treturn request({\r\n\t\turl: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,\r\n\t\tmethod: 'get'\r\n\t})\r\n}"],"names":["uni","request"],"mappings":";;;AAMY,MAAC,gBAAgB,CAAC,WAAU,eAAe;AACrD,QAAM,MAAM,iDAAiDA,cAAG,MAAC,eAAe,UAAU,KAAK,CAAC,cAAc,SAAS,eAAe,UAAU;AAChJ,SAAOC,eAAO,QAAC,EAAE,KAAK,QAAQ,MAAO,CAAA;AACvC;AAIY,MAAC,mBAAmB,MAAM;AACrC,SAAOA,uBAAQ;AAAA,IACd,KAAK,GAAGD,cAAG,MAAC,eAAe,WAAW,CAAC;AAAA,IACvC,QAAQ;AAAA,EACV,CAAE;AACF;;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
|
@ -87,6 +87,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
data() {
|
||||
return {
|
||||
phoneNumber: "1234567890",
|
||||
initnumber: 5,
|
||||
isAlarming: false,
|
||||
isRecording: false,
|
||||
// 录屏状态
|
||||
|
|
@ -108,7 +109,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
||||
formatAppLog("log", "at pages/camera.nvue:35", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u6210\u529F",
|
||||
|
|
@ -133,6 +134,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
});
|
||||
}
|
||||
uni.setStorageSync("saveinit", 5);
|
||||
uni.$on(
|
||||
"monitor:changeinit",
|
||||
(number) => {
|
||||
this.initnumber = number;
|
||||
uni.setStorageSync("saveinit", number);
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:66", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u6210\u529F",
|
||||
icon: "success",
|
||||
// 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
if (e.snapShotUrl) {
|
||||
uni.showToast({
|
||||
title: "\u622A\u5C4F\u6210\u529F",
|
||||
icon: "success",
|
||||
// 'success' | 'loading' | 'none'
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
if (this.suo && e.onVolumeChange) {
|
||||
if (e.onVolumeChange) {
|
||||
this.toggleVolume();
|
||||
}
|
||||
this.suo = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
uni.$on("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||
|
|
@ -149,6 +185,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
uni.$on("monitor:test", this.test);
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off("monitor:changeinit", (number) => this.initnumber = number);
|
||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||
|
|
@ -167,27 +204,27 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
methods: {
|
||||
/* ------------------ 原有功能 ------------------ */
|
||||
handleTelEvent(event) {
|
||||
formatAppLog("log", "at pages/camera.nvue:97", "Tel event detail:", event.detail);
|
||||
formatAppLog("log", "at pages/camera.nvue:131", "Tel event detail:", event.detail);
|
||||
},
|
||||
switchDisplay(mode) {
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "zzzzz", mode);
|
||||
formatAppLog("log", "at pages/camera.nvue:136", "zzzzz", mode);
|
||||
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||
},
|
||||
startAlarm() {
|
||||
this.isAlarming = true;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:109", "startAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:143", "startAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
stopAlarm() {
|
||||
this.isAlarming = false;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:115", "stopAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:149", "stopAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
flipImage(type) {
|
||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:121", "flipImage callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:155", "flipImage callback:", res);
|
||||
});
|
||||
},
|
||||
resumeOrPause() {
|
||||
|
|
@ -224,7 +261,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.snapShot((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:167", "snapShot callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:201", "snapShot callback:", res);
|
||||
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||
});
|
||||
uni.showToast({
|
||||
|
|
@ -233,7 +270,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
duration: 800
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:176", "snapShot \u8C03\u7528\u5931\u8D25", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:210", "snapShot \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "snapShot \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
|
|
@ -265,7 +302,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.startRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:209", "startRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:243", "startRecord callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -279,7 +316,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:224", "startRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:258", "startRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "startRecord \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
|
|
@ -314,11 +351,11 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:263", "stopRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:297", "stopRecord callback:", res);
|
||||
this._handleRecordResultFromNative(res, payload.reqId);
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:268", "stopRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:302", "stopRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "stopRecord \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
|
|
@ -353,7 +390,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:305", "openTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:339", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -367,7 +404,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:320", "openTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:354", "openTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "openTalk \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
|
|
@ -399,7 +436,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:353", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:387", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -409,7 +446,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:363", "stopTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:397", "stopTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
|
|
@ -427,19 +464,19 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:383", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:417", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:391", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:425", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:398", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:432", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
|
|
@ -507,7 +544,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:475", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:509", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
|
|
@ -543,7 +580,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:518", "snapshot failed reason:", err, payload);
|
||||
formatAppLog("warn", "at pages/camera.nvue:552", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
|
|
@ -564,7 +601,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:540", "record payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:574", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
|
|
@ -588,7 +625,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:571", "\u5F55\u5C4F\u5730\u5740\uFF1A", payload.recordUrl);
|
||||
formatAppLog("log", "at pages/camera.nvue:605", "\u5F55\u5C4F\u5730\u5740\uFF1A", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u5931\u8D25: " + payload.recordFailedReason,
|
||||
|
|
@ -596,7 +633,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:579", "record failed reason:", payload.recordFailedReason);
|
||||
formatAppLog("warn", "at pages/camera.nvue:613", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({
|
||||
|
|
@ -628,13 +665,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
(0, import_vue.createCommentVNode)(" \u89C6\u9891\u64AD\u653E\u7EC4\u4EF6 "),
|
||||
(0, import_vue.createVNode)(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
init: $data.initnumber,
|
||||
style: { "width": "650px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
}, null, 8, ["init", "onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
],
|
||||
4
|
||||
/* STYLE */
|
||||
|
|
|
|||
|
|
@ -1890,3 +1890,32 @@ to {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.white-select[data-v-e4e4508d] {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
width: 37.5rem;
|
||||
height: 37.5rem;
|
||||
border-radius: 0.9375rem;
|
||||
flex-direction: column;
|
||||
}
|
||||
.white-select .big-font[data-v-e4e4508d] {
|
||||
font-size: 1.09375rem;
|
||||
}
|
||||
.white-select .small-father[data-v-e4e4508d] {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.white-select .small-select[data-v-e4e4508d] {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 6.25rem;
|
||||
height: 6.25rem;
|
||||
margin: 6.25rem;
|
||||
border-radius: 0.9375rem;
|
||||
border: 0.0625rem solid;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -12,8 +12,7 @@ const _imports_6$2 = "/static/index/watch/phonebgc.png";
|
|||
const _imports_7$3 = "/static/index/watch/phone.png";
|
||||
const _imports_8$3 = "/static/index/watch/phoneball.png";
|
||||
const _imports_9$3 = "/static/index/watch/pao.png";
|
||||
const _imports_10$2 = "/static/index/newindex/wendu/2.png";
|
||||
const _imports_11$2 = "/static/index/camera/back.png";
|
||||
const _imports_10$2 = "/static/index/camera/back.png";
|
||||
const _imports_0$k = "/static/click.png";
|
||||
const _imports_1$j = "/static/x.png";
|
||||
const _imports_2$d = "/static/bgc.png";
|
||||
|
|
@ -157,9 +156,8 @@ exports._imports_1$9 = _imports_1$b;
|
|||
exports._imports_10 = _imports_10$2;
|
||||
exports._imports_10$1 = _imports_10$1;
|
||||
exports._imports_10$2 = _imports_10;
|
||||
exports._imports_11 = _imports_11$2;
|
||||
exports._imports_11$1 = _imports_11$1;
|
||||
exports._imports_11$2 = _imports_11;
|
||||
exports._imports_11 = _imports_11$1;
|
||||
exports._imports_11$1 = _imports_11;
|
||||
exports._imports_12 = _imports_12;
|
||||
exports._imports_2 = _imports_2$e;
|
||||
exports._imports_2$1 = _imports_2$d;
|
||||
|
|
|
|||
|
|
@ -7055,9 +7055,9 @@ function isConsoleWritable() {
|
|||
return isWritable;
|
||||
}
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.2.22,127.0.0.1";
|
||||
const hosts = "192.168.2.27,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_YcQ5TG";
|
||||
const id = "mp-weixin_XL3mmF";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}) : {}, {
|
||||
A: item0.cardtype
|
||||
}, item0.cardtype ? common_vendor.e({
|
||||
B: common_assets._imports_11$2,
|
||||
B: common_assets._imports_11$1,
|
||||
C: common_vendor.f(kufangarray.value, (item, index2, i1) => {
|
||||
return {
|
||||
a: item0.movestates === index2 ? item.targeturl : item.url,
|
||||
|
|
|
|||
|
|
@ -1223,8 +1223,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
aI: deletedownisopen.value,
|
||||
aJ: common_vendor.o(($event) => deletedownisopen.value = false),
|
||||
aK: common_assets._imports_11$1,
|
||||
aL: common_assets._imports_11$1,
|
||||
aK: common_assets._imports_11,
|
||||
aL: common_assets._imports_11,
|
||||
aM: common_vendor.o(clickshare),
|
||||
aN: deletedownisopacity.value ? 1 : 0,
|
||||
aO: common_vendor.o(() => {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const request_index = require("../../request/index.js");
|
||||
const getServiceTree = () => {
|
||||
return request_index.request({
|
||||
url: `${common_vendor.index.getStorageSync("serverUrl")}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,
|
||||
method: "get"
|
||||
});
|
||||
};
|
||||
exports.getServiceTree = getServiceTree;
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/rightItemssecondrelnew/api.js.map
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const component_rightItemssecondrelnew_api = require("./api.js");
|
||||
const component_rightItemssecondrelnew_yaoshandiao = require("./yaoshandiao.js");
|
||||
if (!Math) {
|
||||
joystick();
|
||||
|
|
@ -178,6 +179,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
common_vendor.ref(3);
|
||||
const isMove = common_vendor.ref(false);
|
||||
common_vendor.onMounted(() => {
|
||||
component_rightItemssecondrelnew_api.getServiceTree().then((res) => {
|
||||
common_vendor.index.__f__("log", "at component/rightItemssecondrelnew/index.vue:599", "res111", res.result);
|
||||
});
|
||||
});
|
||||
const lastTap = common_vendor.ref(0);
|
||||
function onTap(e) {
|
||||
|
|
@ -1057,8 +1061,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
ax: sayisopen.value,
|
||||
ay: common_vendor.o(($event) => sayisopen.value = false),
|
||||
az: common_assets._imports_11$1,
|
||||
aA: common_assets._imports_11$1,
|
||||
az: common_assets._imports_11,
|
||||
aA: common_assets._imports_11,
|
||||
aB: common_vendor.o(clickshare),
|
||||
aC: deletedownisopacity.value ? 1 : 0,
|
||||
aD: common_vendor.o(() => {
|
||||
|
|
|
|||
|
|
@ -389,9 +389,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
common_vendor.onMounted(() => {
|
||||
downdonghua.value = 0;
|
||||
pages_NursingNew_component_nurse_api.getServiceTree().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/NursingNew/component/nurse/index.vue:930", "res", res);
|
||||
});
|
||||
});
|
||||
const lastTap = common_vendor.ref(0);
|
||||
function onTap(e) {
|
||||
|
|
@ -1123,6 +1120,17 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
common_vendor.onShow(() => {
|
||||
bigArray.value = pages_NursingNew_component_nurse_yaoshandiao.myArray;
|
||||
downList.value = bigArray.value[0].children;
|
||||
pages_NursingNew_component_nurse_api.getServiceTree().then((res) => {
|
||||
res.result.forEach((element) => {
|
||||
element.children.forEach((res2) => {
|
||||
res2.url = [`/static/index/diet/medicine_1`, `/static/index/diet/medicine_2`, `/static/index/diet/medicine_3`, `/static/index/diet/medicine_4`, `/static/index/diet/medicine_5`, `/static/index/diet/medicine_6`, `/static/index/diet/medicine_7`];
|
||||
});
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/NursingNew/component/nurse/index.vue:1865", "999999", pages_NursingNew_component_nurse_yaoshandiao.myArray);
|
||||
common_vendor.index.__f__("log", "at pages/NursingNew/component/nurse/index.vue:1866", "??????", res.result);
|
||||
bigArray.value = res.result[0];
|
||||
downList.value = bigArray.value[0].children;
|
||||
});
|
||||
common_vendor.index.$on("where", findback);
|
||||
});
|
||||
common_vendor.onHide(() => {
|
||||
|
|
|
|||
|
|
@ -178,7 +178,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
port: 8888
|
||||
};
|
||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:323", "?????", r);
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
const common_vendor = require("../../../common/vendor.js");
|
||||
const request_guanli = require("../../../request/guanli.js");
|
||||
const movedirection = (direction, startOrNot) => {
|
||||
const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=5&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
|
||||
const url = `/iot/tplink/cameraInfo/motionCtrl?deviceIndex=${common_vendor.index.getStorageSync("saveinit") || 5}&direction=${direction}&startOrNot=${startOrNot}&speed=1`;
|
||||
return request_guanli.request({ url, method: "get" });
|
||||
};
|
||||
const queryPadPageList = () => {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
const typeNow = common_vendor.ref(-1);
|
||||
const photoplay = common_vendor.ref(false);
|
||||
const getblue = common_vendor.ref(false);
|
||||
const gobackdrawer = common_vendor.ref(null);
|
||||
common_vendor.ref(null);
|
||||
const wheelRef = common_vendor.ref(null);
|
||||
const topnum = common_vendor.ref(0);
|
||||
const wheretarget = common_vendor.ref(3);
|
||||
|
|
@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
"对讲",
|
||||
"静音",
|
||||
"预警",
|
||||
"更多",
|
||||
"关闭",
|
||||
"图片",
|
||||
"视频",
|
||||
"清晰度",
|
||||
|
|
@ -77,10 +77,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
"对讲",
|
||||
"静音",
|
||||
"预警",
|
||||
"更多"
|
||||
"展开"
|
||||
];
|
||||
const downtarget = common_vendor.ref(0);
|
||||
const clickDownCard = (index) => {
|
||||
cleanandopen();
|
||||
bottomTargetIndex.value = index;
|
||||
downtarget.value = index;
|
||||
switch (index) {
|
||||
case 0:
|
||||
|
|
@ -102,11 +104,55 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
};
|
||||
const first = common_vendor.ref(5);
|
||||
const second = common_vendor.ref(0);
|
||||
const changeLeftMenu = (item) => {
|
||||
common_vendor.index.__f__("log", "at pages/watch/index.vue:429", "????aaa", item);
|
||||
function parseToMinutes(t) {
|
||||
const [h, m] = t.split(":").map(Number);
|
||||
return h * 60 + m;
|
||||
}
|
||||
function findClosestItem(list, nowStr) {
|
||||
const now = parseToMinutes(nowStr);
|
||||
let closest = null;
|
||||
let minDiff = Infinity;
|
||||
list.forEach((element) => {
|
||||
const val = parseToMinutes(element.startTime);
|
||||
let diff = Math.abs(val - now);
|
||||
if (diff > 720)
|
||||
diff = 1440 - diff;
|
||||
if (diff < minDiff) {
|
||||
minDiff = diff;
|
||||
closest = element;
|
||||
}
|
||||
});
|
||||
return closest;
|
||||
}
|
||||
const serveritem = common_vendor.ref({
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
typeName: "",
|
||||
immediateFile: ""
|
||||
});
|
||||
const changeLeftMenu = (item, index) => {
|
||||
if (item.elderServerEntityList) {
|
||||
const nearest = findClosestItem(item.elderServerEntityList, time.value);
|
||||
serveritem.value = nearest;
|
||||
} else {
|
||||
serveritem.value = {
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
typeName: "",
|
||||
immediateFile: ""
|
||||
};
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/watch/index.vue:400", "<<<<", filteredMenu[menuIndex.value]);
|
||||
if (item.cameraInfo !== null && item.cameraInfo[0].deviceName) {
|
||||
common_vendor.index.$emit("monitor:isshow", true);
|
||||
common_vendor.index.$emit("monitor:changeinit", item.cameraInfo[0].deviceIndex);
|
||||
} else {
|
||||
common_vendor.index.$emit("monitor:isshow", false);
|
||||
}
|
||||
};
|
||||
const opendrawer = () => {
|
||||
gobackdrawer.value.openDrawer();
|
||||
const clickTopMenu = (index) => {
|
||||
cleanandopen();
|
||||
topTargetIndex.value = index;
|
||||
};
|
||||
function clamp(v, a, b) {
|
||||
return Math.max(a, Math.min(b, v));
|
||||
|
|
@ -122,9 +168,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
topnum.value = clamp(needTop, 0, filteredMenu.value.length * itemHeight - containerHeight);
|
||||
}
|
||||
}
|
||||
function genPaths(base2, prefix, count, ext = "png", startIndex = 0, pad = false) {
|
||||
function genPaths(base2, prefix, count, ext = "png", startIndex = 0, pad2 = false) {
|
||||
return Array.from({ length: count }, (_, i) => {
|
||||
const idx = pad ? String(i + startIndex).padStart(2, "0") : i + startIndex;
|
||||
const idx = pad2 ? String(i + startIndex).padStart(2, "0") : i + startIndex;
|
||||
return `${base2}/${prefix}${idx}.${ext}`;
|
||||
});
|
||||
}
|
||||
|
|
@ -136,7 +182,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
1,
|
||||
false
|
||||
);
|
||||
const blueArray = common_vendor.ref([
|
||||
common_vendor.ref([
|
||||
...base,
|
||||
...[...base].reverse()
|
||||
// 先拷贝一份再反转,避免修改原 base
|
||||
|
|
@ -149,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
1,
|
||||
false
|
||||
);
|
||||
const bluesmallArray = common_vendor.ref([
|
||||
common_vendor.ref([
|
||||
...basesmall,
|
||||
...[...basesmall].reverse()
|
||||
// 先拷贝一份再反转,避免修改原 base
|
||||
|
|
@ -183,17 +229,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
]);
|
||||
const typeArray = common_vendor.ref(
|
||||
[
|
||||
// {
|
||||
// name: '全部',
|
||||
// url: genPaths(
|
||||
// '/static/index/watch',
|
||||
// 'all_',
|
||||
// 8, // 张数
|
||||
// 'png',
|
||||
// 1, // 起始索引为 1
|
||||
// false // 不补零
|
||||
// )
|
||||
// },
|
||||
{
|
||||
name: "护理单元",
|
||||
url: genPaths(
|
||||
|
|
@ -254,22 +289,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
name: "",
|
||||
url: ""
|
||||
}
|
||||
// {
|
||||
// name: '全部',
|
||||
// url: "/static/index/newindex/curve/home_1.png"
|
||||
// },
|
||||
// {
|
||||
// name: '全部',
|
||||
// url: "/static/index/newindex/curve/home_1.png"
|
||||
// },
|
||||
// {
|
||||
// name: '全部',
|
||||
// url: "/static/index/newindex/curve/home_1.png"
|
||||
// },
|
||||
// {
|
||||
// name: '全部',
|
||||
// url: "/static/index/newindex/curve/home_1.png"
|
||||
// },
|
||||
]
|
||||
);
|
||||
const leftMenuArray = common_vendor.ref([
|
||||
|
|
@ -384,22 +403,27 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
const leftTargetIndex = common_vendor.ref(0);
|
||||
const topTargetIndex = common_vendor.ref(-1);
|
||||
const bottomTargetIndex = common_vendor.ref(-1);
|
||||
const shezhi = common_vendor.ref(false);
|
||||
const openright = common_vendor.ref(false);
|
||||
const openfirstmenu = common_vendor.ref(false);
|
||||
const opensecondmenu = common_vendor.ref(false);
|
||||
const cleanandopen = () => {
|
||||
leftTargetIndex.value = -1;
|
||||
topTargetIndex.value = -1;
|
||||
bottomTargetIndex.value = -1;
|
||||
shezhi.value = false;
|
||||
};
|
||||
const movecamera = (type) => {
|
||||
handleKey(type);
|
||||
};
|
||||
const savetypeNow = common_vendor.ref(0);
|
||||
const movecard = (type) => {
|
||||
if (leftTargetIndex.value !== -1) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
if (menuIndex.value > 0) {
|
||||
menuIndex.value--;
|
||||
typeNow.value = 0;
|
||||
leftTargetIndex.value = menuIndex.value;
|
||||
leftTargetIndex.value--;
|
||||
menuIndex.value = leftTargetIndex.value;
|
||||
ensureVisible(menuIndex.value);
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
|
||||
} else {
|
||||
topTargetIndex.value = typeNow.value;
|
||||
leftTargetIndex.value = -1;
|
||||
|
|
@ -412,14 +436,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
case 2:
|
||||
if (menuIndex.value < filteredMenu.value.length - 1) {
|
||||
menuIndex.value++;
|
||||
typeNow.value = 0;
|
||||
leftTargetIndex.value = menuIndex.value;
|
||||
ensureVisible(menuIndex.value);
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
break;
|
||||
case 4:
|
||||
savetypeNow.value = leftTargetIndex.value;
|
||||
if (!typeNow.value) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/NursingNew/index"
|
||||
|
|
@ -439,21 +464,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
if (typeNow.value < typeArray.value.length - 2) {
|
||||
typeNow.value++;
|
||||
topTargetIndex.value = typeNow.value;
|
||||
changeLeftMenu(filteredMenu.value[0]);
|
||||
} else {
|
||||
shezhi.value = true;
|
||||
topTargetIndex.value = -1;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
topTargetIndex.value = -1;
|
||||
menuIndex.value = 0;
|
||||
leftTargetIndex.value = menuIndex.value;
|
||||
ensureVisible(menuIndex.value);
|
||||
cleanandopen();
|
||||
bottomTargetIndex.value = 0;
|
||||
clickDownCard(0);
|
||||
break;
|
||||
case 3:
|
||||
if (typeNow.value) {
|
||||
typeNow.value--;
|
||||
topTargetIndex.value = typeNow.value;
|
||||
changeLeftMenu(filteredMenu.value[0]);
|
||||
} else {
|
||||
topTargetIndex.value = -1;
|
||||
menuIndex.value = 0;
|
||||
|
|
@ -476,8 +502,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
case 1:
|
||||
break;
|
||||
case 2:
|
||||
shezhi.value = false;
|
||||
openright.value = true;
|
||||
cleanandopen();
|
||||
bottomTargetIndex.value = 0;
|
||||
clickDownCard(0);
|
||||
break;
|
||||
case 3:
|
||||
typeNow.value = 3;
|
||||
|
|
@ -495,85 +522,34 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
shezhi.value = false;
|
||||
break;
|
||||
}
|
||||
} else if (openright.value) {
|
||||
} else if (bottomTargetIndex.value !== -1) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
shezhi.value = true;
|
||||
openright.value = false;
|
||||
cleanandopen();
|
||||
topTargetIndex.value = typeNow.value;
|
||||
break;
|
||||
case 1:
|
||||
opendrawer();
|
||||
openfirstmenu.value = true;
|
||||
openright.value = false;
|
||||
if (bottomTargetIndex.value < 4) {
|
||||
bottomTargetIndex.value++;
|
||||
clickDownCard(bottomTargetIndex.value);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
case 3:
|
||||
topTargetIndex.value = -1;
|
||||
menuIndex.value = 0;
|
||||
leftTargetIndex.value = menuIndex.value;
|
||||
ensureVisible(menuIndex.value);
|
||||
openright.value = false;
|
||||
if (bottomTargetIndex.value) {
|
||||
bottomTargetIndex.value--;
|
||||
clickDownCard(bottomTargetIndex.value);
|
||||
} else {
|
||||
let menunumber = menuIndex.value;
|
||||
cleanandopen();
|
||||
menuIndex.value = menunumber;
|
||||
leftTargetIndex.value = menunumber;
|
||||
changeLeftMenu(filteredMenu.value[menuIndex.value], menuIndex.value);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
opendrawer();
|
||||
openfirstmenu.value = true;
|
||||
openright.value = false;
|
||||
break;
|
||||
case 5:
|
||||
topTargetIndex.value = -1;
|
||||
menuIndex.value = 0;
|
||||
leftTargetIndex.value = menuIndex.value;
|
||||
ensureVisible(menuIndex.value);
|
||||
openright.value = false;
|
||||
break;
|
||||
}
|
||||
} else if (openfirstmenu.value) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
moveDownDebounced();
|
||||
break;
|
||||
case 1:
|
||||
break;
|
||||
case 2:
|
||||
moveUpDebounced();
|
||||
break;
|
||||
case 3:
|
||||
openfirstmenu.value = false;
|
||||
opensecondmenu.value = true;
|
||||
break;
|
||||
case 4:
|
||||
openfirstmenu.value = false;
|
||||
opensecondmenu.value = true;
|
||||
break;
|
||||
case 5:
|
||||
gobackdrawer.value.closeDrawer();
|
||||
openfirstmenu.value = false;
|
||||
openright.value = true;
|
||||
break;
|
||||
}
|
||||
} else if (yuntai.value) {
|
||||
handleKey(type);
|
||||
} else if (opensecondmenu.value) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
moveDownsecond();
|
||||
break;
|
||||
case 1:
|
||||
opensecondmenu.value = false;
|
||||
openfirstmenu.value = true;
|
||||
break;
|
||||
case 2:
|
||||
moveUpsecond();
|
||||
break;
|
||||
case 3:
|
||||
break;
|
||||
case 4:
|
||||
clickDownsecond();
|
||||
break;
|
||||
case 5:
|
||||
opensecondmenu.value = false;
|
||||
openfirstmenu.value = true;
|
||||
goback();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -593,7 +569,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
};
|
||||
const jumpopen = common_vendor.ref(false);
|
||||
const clickcamera = (index) => {
|
||||
common_vendor.index.$emit("monitor:isshow", false);
|
||||
switch (index) {
|
||||
case 0:
|
||||
common_vendor.index.$emit("monitor:doSnapshot");
|
||||
|
|
@ -696,22 +671,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
cameratarget.value.push(9);
|
||||
}
|
||||
};
|
||||
const moveUpDebounced = useThrottle(() => {
|
||||
var _a;
|
||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveFirstUp();
|
||||
}, 400);
|
||||
const moveDownDebounced = useThrottle(() => {
|
||||
var _a;
|
||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveFirstDown();
|
||||
}, 400);
|
||||
const moveUpsecond = useThrottle(() => {
|
||||
var _a;
|
||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondUp();
|
||||
}, 400);
|
||||
const moveDownsecond = useThrottle(() => {
|
||||
var _a;
|
||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondDown();
|
||||
}, 400);
|
||||
const clickDownsecond = useThrottle(() => doSomething(), 700);
|
||||
const gaoqing = common_vendor.ref(0);
|
||||
const yuntai = common_vendor.ref(false);
|
||||
|
|
@ -788,7 +751,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}
|
||||
const filteredMenu = common_vendor.computed(() => {
|
||||
menuIndex.value = -1;
|
||||
setTimeout(() => menuIndex.value = 0, 50);
|
||||
setTimeout(() => {
|
||||
menuIndex.value = 0;
|
||||
}, 50);
|
||||
return leftMenuArray.value.filter((item) => Number(item.areaFlag) - 1 === typeNow.value);
|
||||
});
|
||||
const goback = () => {
|
||||
|
|
@ -796,7 +761,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
url: "/pages/watch/settings/settings"
|
||||
});
|
||||
};
|
||||
const time = common_vendor.ref("");
|
||||
const date = common_vendor.ref("");
|
||||
const week = common_vendor.ref("");
|
||||
let timerId0 = null;
|
||||
const pad = (n) => String(n).padStart(2, "0");
|
||||
const weekdays = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
|
||||
function updateClock() {
|
||||
const d = /* @__PURE__ */ new Date();
|
||||
time.value = `${pad(d.getHours())}:${pad(d.getMinutes())}`;
|
||||
date.value = `${d.getMonth() + 1}-${d.getDate()}`;
|
||||
week.value = weekdays[d.getDay()];
|
||||
}
|
||||
common_vendor.onShow(() => {
|
||||
updateClock();
|
||||
timerId0 = setInterval(updateClock, 1e3);
|
||||
pages_watch_api_lunpan.queryPadPageList().then((res) => {
|
||||
leftMenuArray.value = res.result.records;
|
||||
leftMenuArray.value.forEach((res2) => {
|
||||
|
|
@ -855,9 +834,20 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
break;
|
||||
}
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/watch/index.vue:1219", ">>>>", leftMenuArray.value);
|
||||
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
|
||||
setTimeout(() => {
|
||||
menuIndex.value = savetypeNow.value;
|
||||
leftTargetIndex.value = savetypeNow.value;
|
||||
savetypeNow.value = 0;
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
common_vendor.onHide(() => {
|
||||
if (timerId0) {
|
||||
clearInterval(timerId0);
|
||||
timerId0 = null;
|
||||
}
|
||||
});
|
||||
let activeDir = -1;
|
||||
const stopTimers = {};
|
||||
function handleKey(type) {
|
||||
|
|
@ -927,7 +917,27 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
if (activeDir === type)
|
||||
activeDir = -1;
|
||||
}
|
||||
function getAgeYears(birth) {
|
||||
const b = birth instanceof Date ? birth : parseDateFlexible(birth);
|
||||
const now = /* @__PURE__ */ new Date();
|
||||
let years = now.getFullYear() - b.getFullYear();
|
||||
if (now.getMonth() < b.getMonth() || now.getMonth() === b.getMonth() && now.getDate() < b.getDate()) {
|
||||
years -= 1;
|
||||
}
|
||||
return years;
|
||||
}
|
||||
function parseDateFlexible(s) {
|
||||
if (s instanceof Date)
|
||||
return s;
|
||||
if (typeof s !== "string")
|
||||
throw new Error("birth must be string or Date");
|
||||
const m = s.match(/(\d{4})\D+(\d{1,2})\D+(\d{1,2})/);
|
||||
if (!m)
|
||||
throw new Error("无法解析的日期格式");
|
||||
return new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3]));
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$3,
|
||||
b: common_vendor.f(filteredMenu.value, (item, index, i0) => {
|
||||
|
|
@ -954,6 +964,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
} : {}),
|
||||
j: common_vendor.o(($event) => {
|
||||
menuIndex.value = index;
|
||||
cleanandopen();
|
||||
leftTargetIndex.value = index;
|
||||
changeLeftMenu(item);
|
||||
}, index)
|
||||
};
|
||||
|
|
@ -988,35 +1000,58 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
l: index === topTargetIndex.value ? 1 : "",
|
||||
m: common_vendor.o(($event) => {
|
||||
typeNow.value = index;
|
||||
clickTopMenu(index);
|
||||
}, index)
|
||||
});
|
||||
}),
|
||||
e: common_assets._imports_2,
|
||||
f: common_vendor.o(goback),
|
||||
g: common_vendor.o(goback),
|
||||
h: shezhi.value ? 1 : "",
|
||||
i: common_assets._imports_3,
|
||||
j: common_vendor.f(downpicture, (item, index, i0) => {
|
||||
e: common_vendor.t(time.value),
|
||||
f: common_vendor.t(date.value),
|
||||
g: common_vendor.t(week.value),
|
||||
h: common_assets._imports_2,
|
||||
i: common_vendor.o(goback),
|
||||
j: common_vendor.o(goback),
|
||||
k: shezhi.value ? 1 : "",
|
||||
l: common_assets._imports_3,
|
||||
m: common_vendor.f(downpicture, (item, index, i0) => {
|
||||
return {
|
||||
a: `/static/index/picture/${index}${downtarget.value === index ? 1 : 0}.png`,
|
||||
b: downtarget.value === index ? "#E2EDFC" : "",
|
||||
c: common_vendor.t(item),
|
||||
d: index,
|
||||
e: downtarget.value === index ? "#1486EB" : "",
|
||||
f: common_vendor.o(($event) => clickDownCard(index), index)
|
||||
c: index === bottomTargetIndex.value ? 1 : "",
|
||||
d: common_vendor.t(item),
|
||||
e: index,
|
||||
f: downtarget.value === index ? "#1486EB" : "",
|
||||
g: common_vendor.o(($event) => clickDownCard(index), index)
|
||||
};
|
||||
}),
|
||||
k: typeNow.value === 0
|
||||
}, typeNow.value === 0 ? {
|
||||
l: common_assets._imports_4
|
||||
n: typeNow.value === 0
|
||||
}, typeNow.value === 0 ? common_vendor.e({
|
||||
o: (_a = filteredMenu.value[menuIndex.value]) == null ? void 0 : _a.elderInfo
|
||||
}, ((_b = filteredMenu.value[menuIndex.value]) == null ? void 0 : _b.elderInfo) ? {
|
||||
p: common_assets._imports_4
|
||||
} : {}, {
|
||||
m: typeNow.value === 1
|
||||
}, typeNow.value === 1 ? {
|
||||
n: common_assets._imports_5
|
||||
q: (_c = filteredMenu.value[menuIndex.value]) == null ? void 0 : _c.elderInfo
|
||||
}, ((_d = filteredMenu.value[menuIndex.value]) == null ? void 0 : _d.elderInfo) ? {
|
||||
r: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.name : ""),
|
||||
s: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.sex : ""),
|
||||
t: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? getAgeYears(filteredMenu.value[menuIndex.value].elderInfo.dateOfBirth) : ""),
|
||||
v: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.createTime.slice(0, 10) : "")
|
||||
} : {}) : {}, {
|
||||
w: typeNow.value === 1
|
||||
}, typeNow.value === 1 ? common_vendor.e({
|
||||
x: (_e = filteredMenu.value[menuIndex.value]) == null ? void 0 : _e.elderInfo
|
||||
}, ((_f = filteredMenu.value[menuIndex.value]) == null ? void 0 : _f.elderInfo) ? {
|
||||
y: common_assets._imports_5
|
||||
} : {}, {
|
||||
o: typeNow.value === 0
|
||||
z: (_g = filteredMenu.value[menuIndex.value]) == null ? void 0 : _g.elderInfo
|
||||
}, ((_h = filteredMenu.value[menuIndex.value]) == null ? void 0 : _h.elderInfo) ? {
|
||||
A: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.name : ""),
|
||||
B: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.sex : ""),
|
||||
C: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? getAgeYears(filteredMenu.value[menuIndex.value].elderInfo.dateOfBirth) : ""),
|
||||
D: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.createTime.slice(0, 10) : "")
|
||||
} : {}) : {}, {
|
||||
E: typeNow.value === 0
|
||||
}, typeNow.value === 0 ? {
|
||||
p: common_vendor.f(iconArray.value, (item, index, i0) => {
|
||||
F: common_vendor.f(iconArray.value, (item, index, i0) => {
|
||||
return {
|
||||
a: item.url,
|
||||
b: common_vendor.t(item.name),
|
||||
|
|
@ -1025,31 +1060,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
};
|
||||
})
|
||||
} : {}, {
|
||||
q: typeNow.value === 1
|
||||
}, typeNow.value === 1 ? {
|
||||
r: common_assets._imports_6,
|
||||
s: common_assets._imports_7,
|
||||
t: common_assets._imports_8
|
||||
G: typeNow.value === 1
|
||||
}, typeNow.value === 1 ? common_vendor.e({
|
||||
H: common_assets._imports_6,
|
||||
I: common_assets._imports_7,
|
||||
J: (_i = filteredMenu.value[menuIndex.value]) == null ? void 0 : _i.elderInfo
|
||||
}, ((_j = filteredMenu.value[menuIndex.value]) == null ? void 0 : _j.elderInfo) ? {
|
||||
K: common_vendor.t(filteredMenu.value[menuIndex.value].elderInfo ? filteredMenu.value[menuIndex.value].elderInfo.guardianPhone : "")
|
||||
} : {}, {
|
||||
v: common_assets._imports_9,
|
||||
w: common_vendor.p({
|
||||
width: `600rpx`,
|
||||
height: `500rpx`,
|
||||
links: blueArray.value,
|
||||
playing: photoplay.value,
|
||||
loop: true,
|
||||
interval: 120
|
||||
}),
|
||||
x: common_vendor.p({
|
||||
width: `300rpx`,
|
||||
height: `200rpx`,
|
||||
links: bluesmallArray.value,
|
||||
playing: photoplay.value,
|
||||
loop: true,
|
||||
interval: 120
|
||||
}),
|
||||
y: common_assets._imports_10,
|
||||
z: common_vendor.f(cameraArray.value, (item, index, i0) => {
|
||||
L: common_assets._imports_8
|
||||
}) : {}, {
|
||||
M: common_vendor.t(serveritem.value.startTime),
|
||||
N: common_vendor.t(serveritem.value.endTime),
|
||||
O: common_assets._imports_9,
|
||||
P: `https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.value.immediateFile}`,
|
||||
Q: common_vendor.t(serveritem.value.typeName),
|
||||
R: common_vendor.f(cameraArray.value, (item, index, i0) => {
|
||||
return {
|
||||
a: `/static/index/camera/${index}${cameratarget.value.includes(index) ? 1 : 0}.png`,
|
||||
b: cameratarget.value.includes(index) ? `#DDE9F0` : ``,
|
||||
|
|
@ -1058,9 +1084,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
e: common_vendor.o(($event) => clickcamera(index))
|
||||
};
|
||||
}),
|
||||
A: common_assets._imports_11,
|
||||
B: common_vendor.o(($event) => jumpopen.value = false),
|
||||
C: common_vendor.f(where, (item, index, i0) => {
|
||||
S: common_assets._imports_10,
|
||||
T: common_vendor.o(($event) => jumpopen.value = false),
|
||||
U: common_vendor.f(where, (item, index, i0) => {
|
||||
return {
|
||||
a: wheretarget.value === index ? item.target : item.url,
|
||||
b: common_vendor.t(item.name),
|
||||
|
|
@ -1070,14 +1096,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
f: wheretarget.value === index ? "#E5E8EE" : ""
|
||||
};
|
||||
}),
|
||||
D: jumpopen.value,
|
||||
E: common_vendor.o(movecard),
|
||||
F: common_vendor.p({
|
||||
V: jumpopen.value,
|
||||
W: common_vendor.o(movecard),
|
||||
X: common_vendor.p({
|
||||
getblue: getblue.value,
|
||||
moveleft: 5
|
||||
}),
|
||||
G: common_vendor.o(movecamera),
|
||||
H: !cameratarget.value.includes(5)
|
||||
Y: common_vendor.o(movecamera),
|
||||
Z: !cameratarget.value.includes(5)
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -51,20 +51,6 @@
|
|||
width: 90%;
|
||||
position: relative;
|
||||
}
|
||||
.view .view-right .right-container-title-nav.data-v-4b26e9e6 {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 60rpx;
|
||||
position: relative;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.view .view-right .right-container-title-nav .right-icons-img.data-v-4b26e9e6 {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
margin-left: 20rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.view .view-right .scroll-vi.data-v-4b26e9e6 {
|
||||
height: 100rpx;
|
||||
width: 100%;
|
||||
|
|
@ -94,26 +80,15 @@
|
|||
margin-top: 18rpx;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
.right-container-tem.data-v-4b26e9e6 {
|
||||
display: flex;
|
||||
}
|
||||
.right-container-tem .right-container-tem-text.data-v-4b26e9e6 {
|
||||
font-size: 32rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.right-container-tem .right-container-tem-img.data-v-4b26e9e6 {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
}
|
||||
.new-weight.data-v-4b26e9e6 {
|
||||
margin: 0 30rpx;
|
||||
margin-top: 40rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.big-bgc.data-v-4b26e9e6 {
|
||||
margin-left: -30rpx;
|
||||
margin-left: -20rpx;
|
||||
margin-top: 20rpx;
|
||||
width: 1330rpx;
|
||||
width: 1320rpx;
|
||||
height: 1045rpx;
|
||||
border-radius: 50rpx;
|
||||
overflow: hidden;
|
||||
|
|
@ -122,27 +97,6 @@
|
|||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.small-bgc.data-v-4b26e9e6 {
|
||||
width: 298rpx;
|
||||
height: 220rpx;
|
||||
border-radius: 25rpx;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.card-father.data-v-4b26e9e6 {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.card-father .up-title.data-v-4b26e9e6 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 10rpx 0;
|
||||
margin-left: 20rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
@keyframes glowFlash-4b26e9e6 {
|
||||
0%,
|
||||
100% {
|
||||
|
|
@ -225,9 +179,7 @@
|
|||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
align-items: flex-start;
|
||||
/* 关键:禁用 stretch,子项按自己的高度 */
|
||||
align-content: flex-start;
|
||||
/* 多行时顶端对齐(可选) */
|
||||
}
|
||||
.bottom-view .button-father.data-v-4b26e9e6 {
|
||||
margin-top: 20rpx;
|
||||
|
|
@ -327,14 +279,6 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.right-icons.data-v-4b26e9e6 {
|
||||
position: absolute;
|
||||
right: 30rpx;
|
||||
top: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 60rpx;
|
||||
}
|
||||
.warning.data-v-4b26e9e6 {
|
||||
animation: glowFlash-4b26e9e6 1.2s infinite ease-in-out;
|
||||
border: 1rpx solid #ff5757;
|
||||
|
|
@ -375,7 +319,7 @@
|
|||
position: absolute;
|
||||
top: 220rpx;
|
||||
left: 0%;
|
||||
width: 350rpx;
|
||||
width: 450rpx;
|
||||
height: 120rpx;
|
||||
background: linear-gradient(to bottom, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||
z-index: 4;
|
||||
|
|
@ -383,9 +327,9 @@
|
|||
}
|
||||
.zhezhao-bottom.data-v-4b26e9e6 {
|
||||
position: absolute;
|
||||
bottom: 450rpx;
|
||||
bottom: 380rpx;
|
||||
left: 0%;
|
||||
width: 350rpx;
|
||||
width: 450rpx;
|
||||
height: 120rpx;
|
||||
background: linear-gradient(to top, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||
z-index: 4;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue