9999999999999999999999
This commit is contained in:
parent
a23e943c4e
commit
b7ec5faf2b
|
|
@ -6,14 +6,14 @@ import request from '@/request/index.js'
|
||||||
// 查询服务类型
|
// 查询服务类型
|
||||||
export const getServiceTree = () => {
|
export const getServiceTree = () => {
|
||||||
return request({
|
return request({
|
||||||
url: '/nuIpadApi/nuConfigServiceCategory/getServiceTree',
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询表格
|
// 查询表格
|
||||||
export const getNclist = () => {
|
export const getNclist = () => {
|
||||||
return request({
|
return request({
|
||||||
url: '/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1',
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -28,7 +28,7 @@ export const addNuCustomerServer = (params) => {
|
||||||
// 移动表格
|
// 移动表格
|
||||||
export const editNuCustomerServer = (params) => {
|
export const editNuCustomerServer = (params) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer',
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/editNuCustomerServer`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -595,9 +595,9 @@
|
||||||
const isMove = ref(false);
|
const isMove = ref(false);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// getServiceTree().then(res=>{
|
getServiceTree().then(res=>{
|
||||||
// console.log("res",res)
|
console.log("res111",res.result)
|
||||||
// })
|
})
|
||||||
})
|
})
|
||||||
// 上次点击时间
|
// 上次点击时间
|
||||||
const lastTap = ref(0)
|
const lastTap = ref(0)
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ export const getServiceTree = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询表格
|
// 查询表格
|
||||||
export const getNclist = () => {
|
export const getNclist = (nuId,customerId) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=1&customerId=1',
|
url: `/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=${nuId}&customerId=${customerId}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,8 +271,9 @@
|
||||||
<scroll-view scroll-y style="height: 100%;width:100%;" :show-scrollbar="false"
|
<scroll-view scroll-y style="height: 100%;width:100%;" :show-scrollbar="false"
|
||||||
:scroll-top="firsttop" v-show="!iszhouqi">
|
:scroll-top="firsttop" v-show="!iszhouqi">
|
||||||
<view
|
<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)">
|
:key="index" @click="onTap(index)">
|
||||||
|
|
||||||
<view class="right-box-item"
|
<view class="right-box-item"
|
||||||
:style="thirdmenuIndex==index?{border: `2rpx solid rgb(229, 233, 249)`,backgroundColor:`#fff`}:{border: `2rpx solid rgb(229, 233, 249)`}">
|
: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 ==='周期护理'">
|
<view class="title-time-button-font" v-show="item.cycleType ==='周期护理'">
|
||||||
|
|
@ -290,18 +291,6 @@
|
||||||
:style="thirdmenuIndex==index?{color:`rgb(54, 159, 239)`}:{}">
|
:style="thirdmenuIndex==index?{color:`rgb(54, 159, 239)`}:{}">
|
||||||
{{item.title}}
|
{{item.title}}
|
||||||
</view>
|
</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>
|
</view>
|
||||||
<view style="height: 20rpx;"></view>
|
<view style="height: 20rpx;"></view>
|
||||||
|
|
@ -313,8 +302,7 @@
|
||||||
<view v-for="(item,index) in downList" :key="index">
|
<view v-for="(item,index) in downList" :key="index">
|
||||||
<view :class="downdonghua==index? `downList-box-target` : `downList-box`"
|
<view :class="downdonghua==index? `downList-box-target` : `downList-box`"
|
||||||
@click="secondContant(index)">
|
@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"
|
<donghua :width="`55rpx`" :height="`55rpx`" :links="item.url"
|
||||||
:playing="downdonghua==index" :interval="120" />
|
:playing="downdonghua==index" :interval="120" />
|
||||||
<view class="downList-box-text">
|
<view class="downList-box-text">
|
||||||
|
|
@ -323,7 +311,7 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 20rpx;"></view> <!-- 空白元素 -->
|
<view style="height: 20rpx;"></view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -926,9 +914,7 @@
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
downdonghua.value = 0;
|
downdonghua.value = 0;
|
||||||
getServiceTree().then((res:any)=>{
|
|
||||||
console.log("res",res)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
// 上次点击时间
|
// 上次点击时间
|
||||||
const lastTap = ref(0)
|
const lastTap = ref(0)
|
||||||
|
|
@ -1010,7 +996,7 @@
|
||||||
})
|
})
|
||||||
downmenuIndex.value = 0;
|
downmenuIndex.value = 0;
|
||||||
upmenuIndex.value = index
|
upmenuIndex.value = index
|
||||||
downList.value = bigArray.value[index].children
|
downList.value = bigArray.value[index]?.children
|
||||||
thirdmenuIndex.value = 0;
|
thirdmenuIndex.value = 0;
|
||||||
}
|
}
|
||||||
const changecard = () => {
|
const changecard = () => {
|
||||||
|
|
@ -1853,8 +1839,23 @@
|
||||||
}))
|
}))
|
||||||
)
|
)
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
bigArray.value = myArray
|
getServiceTree().then((res:any)=>{
|
||||||
downList.value = bigArray.value[0].children
|
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);
|
uni.$on('where', findback);
|
||||||
})
|
})
|
||||||
onHide(() => {
|
onHide(() => {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="center-column" :style="{ height: isshow ? '510px' : '0px' }">
|
<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" />
|
@onSnapShot="handleSnapShotEvent" @onRecord="handleRecordEvent" @onTalkStatus="handleTalkEvent" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
phoneNumber: "1234567890",
|
phoneNumber: "1234567890",
|
||||||
|
initnumber: 5,
|
||||||
isAlarming: false,
|
isAlarming: false,
|
||||||
isRecording: false, // 录屏状态
|
isRecording: false, // 录屏状态
|
||||||
isTalking: false, // 对讲状态
|
isTalking: false, // 对讲状态
|
||||||
|
|
@ -23,7 +24,7 @@
|
||||||
talk: []
|
talk: []
|
||||||
},
|
},
|
||||||
suo: true,
|
suo: true,
|
||||||
isshow:true
|
isshow: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
@ -55,8 +56,40 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
uni.setStorageSync('saveinit', 5);
|
||||||
// this.doStopRecord()
|
// 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 事件,暴露给其他页面调用
|
||||||
uni.$on('monitor:doSnapshot', this.doSnapshot);
|
uni.$on('monitor:doSnapshot', this.doSnapshot);
|
||||||
uni.$on('monitor:startRecord', this.doStartRecord);
|
uni.$on('monitor:startRecord', this.doStartRecord);
|
||||||
|
|
@ -75,7 +108,8 @@
|
||||||
},
|
},
|
||||||
onUnload() {
|
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:doSnapshot', this.doSnapshot);
|
||||||
uni.$off('monitor:startRecord', this.doStartRecord);
|
uni.$off('monitor:startRecord', this.doStartRecord);
|
||||||
uni.$off('monitor:stopRecord', this.doStopRecord);
|
uni.$off('monitor:stopRecord', this.doStopRecord);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
<view class="input-father-blue" v-show="fullName&&canclick" @click="login()">
|
<view class="input-father-blue" v-show="fullName&&canclick" @click="login()">
|
||||||
验证并登录
|
验证并登录
|
||||||
</view>
|
</view>
|
||||||
<!-- <demo style="z-index: 999;" /> -->
|
|
||||||
<view class="under-container-title">
|
<view class="under-container-title">
|
||||||
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'" @click="isTarget = !isTarget"></view>
|
<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>
|
<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">
|
<view class="bg-mask" v-if="huakuaiOpen" @click="huakuaiOpen=false">
|
||||||
<huakuai @click.stop @success="huakuaisuccess" />
|
<huakuai @click.stop @success="huakuaisuccess" />
|
||||||
</view>
|
</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>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
@ -136,7 +152,7 @@
|
||||||
import twoseven from '@/pages/login/twoseven.vue'
|
import twoseven from '@/pages/login/twoseven.vue'
|
||||||
import { isRel, getLoginCode, loginApp } from './api.js'
|
import { isRel, getLoginCode, loginApp } from './api.js'
|
||||||
import huakuai from '@/component/public/huakuai.vue'
|
import huakuai from '@/component/public/huakuai.vue'
|
||||||
import demo from '@/component/public/game/demo.vue';
|
|
||||||
|
|
||||||
const zyupgrade = ref(null);
|
const zyupgrade = ref(null);
|
||||||
const isTarget = ref(false);
|
const isTarget = ref(false);
|
||||||
|
|
@ -164,8 +180,6 @@
|
||||||
openbottom.value = false;
|
openbottom.value = false;
|
||||||
isTarget.value = true;
|
isTarget.value = true;
|
||||||
login()
|
login()
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePopup() {
|
function closePopup() {
|
||||||
|
|
@ -187,13 +201,15 @@
|
||||||
|
|
||||||
const canclick = ref(false)
|
const canclick = ref(false)
|
||||||
const time = ref(0);
|
const time = ref(0);
|
||||||
|
const allserve = ref([])
|
||||||
const getImg = () => {
|
const getImg = () => {
|
||||||
if (/^\d{11}$/.test(form.username)) {
|
if (/^\d{11}$/.test(form.username)) {
|
||||||
isRel(form.username).then((res : any) => {
|
isRel(form.username).then((res : any) => {
|
||||||
console.log("^^^^^^^^^^6",res)
|
if (res.result.code === '0') {
|
||||||
if (res.result !== null && res.result.serverUrl) {
|
|
||||||
uni.setStorageSync('serverUrl', res.result.serverUrl);
|
uni.setStorageSync('serverUrl', res.result.data.serverUrl);
|
||||||
console.log("url",res.result.serverUrl)
|
console.log("9999",res.result.orgList)
|
||||||
|
allserve.value = res.result.orgList
|
||||||
time.value = Date.now();
|
time.value = Date.now();
|
||||||
|
|
||||||
getLoginCode(time.value).then((res : any) => {
|
getLoginCode(time.value).then((res : any) => {
|
||||||
|
|
@ -202,8 +218,9 @@
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.setStorageSync('serverUrl', "");
|
uni.setStorageSync('serverUrl', "");
|
||||||
|
allserve.value = [];
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '该手机号未绑定机构',
|
title: res.result.msg,
|
||||||
icon: 'none', // 可选值:'success'、'loading'、'none'
|
icon: 'none', // 可选值:'success'、'loading'、'none'
|
||||||
duration: 2000 // 持续时间,单位ms
|
duration: 2000 // 持续时间,单位ms
|
||||||
})
|
})
|
||||||
|
|
@ -235,7 +252,7 @@
|
||||||
}
|
}
|
||||||
const jumpFirst = ref(false);
|
const jumpFirst = ref(false);
|
||||||
const canJump = () => {
|
const canJump = () => {
|
||||||
if(!jumpFirst.value){
|
if (!jumpFirst.value) {
|
||||||
if (loading.value === 2) {
|
if (loading.value === 2) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
jumpTo(`/pages/watch/index`)
|
jumpTo(`/pages/watch/index`)
|
||||||
|
|
@ -245,13 +262,34 @@
|
||||||
}
|
}
|
||||||
jumpFirst.value = true;
|
jumpFirst.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
const loading = ref(0)
|
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 = () => {
|
const huakuaisuccess = () => {
|
||||||
form.checkKey = time.value
|
form.checkKey = time.value
|
||||||
huakuaiOpen.value = false
|
huakuaiOpen.value = false
|
||||||
loginApp(form).then(res => {
|
loginApp(form).then(res => {
|
||||||
|
console.log("info",res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|
@ -261,17 +299,8 @@
|
||||||
uni.setStorageSync('token', res.result.token);
|
uni.setStorageSync('token', res.result.token);
|
||||||
uni.setStorageSync('username', form.username);
|
uni.setStorageSync('username', form.username);
|
||||||
uni.setStorageSync('realname', res.result.userInfo.realname);
|
uni.setStorageSync('realname', res.result.userInfo.realname);
|
||||||
// if (!loading.value) {
|
|
||||||
// loading.value = true
|
|
||||||
// } else {
|
|
||||||
// setTimeout(() => {
|
|
||||||
// jumpTo(`/pages/watch/index`)
|
|
||||||
// }, 500)
|
|
||||||
// }
|
|
||||||
if (loading.value === 2) {
|
if (loading.value === 2) {
|
||||||
setTimeout(() => {
|
huakuaiOK()
|
||||||
jumpTo(`/pages/watch/index`)
|
|
||||||
}, 500)
|
|
||||||
} else {
|
} else {
|
||||||
loading.value++
|
loading.value++
|
||||||
}
|
}
|
||||||
|
|
@ -303,7 +332,7 @@
|
||||||
// 生命周期钩子
|
// 生命周期钩子
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
zyupgrade.value?.check_update();
|
zyupgrade.value?.check_update();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|
@ -320,7 +349,6 @@
|
||||||
port: 8888,
|
port: 8888,
|
||||||
}
|
}
|
||||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||||
console.log("?????", r)
|
|
||||||
if (loading.value === 2) {
|
if (loading.value === 2) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
jumpTo(`/pages/watch/index`)
|
jumpTo(`/pages/watch/index`)
|
||||||
|
|
@ -676,4 +704,38 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: 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>
|
</style>
|
||||||
|
|
@ -5,7 +5,7 @@ import request from '@/request/guanli.js'
|
||||||
|
|
||||||
// 用你给的四个固定值
|
// 用你给的四个固定值
|
||||||
export const movedirection = (direction,startOrNot) => {
|
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' });
|
return request({ url, method: 'get' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
:class="{warning: item.izWarning == '1',target: index === leftTargetIndex}" :style="[
|
:class="{warning: item.izWarning == '1',target: index === leftTargetIndex}" :style="[
|
||||||
index === menuIndex ? { backgroundColor: '#fff' } : {},
|
index === menuIndex ? { backgroundColor: '#fff' } : {},
|
||||||
leftTargetIndex === index ? { backgroundColor: '#ddf0ff' } : {}
|
leftTargetIndex === index ? { backgroundColor: '#ddf0ff' } : {}
|
||||||
]" @click="menuIndex=index;changeLeftMenu(item,index)">
|
]" @click="menuIndex=index;cleanandopen();leftTargetIndex = index;changeLeftMenu(item,index)">
|
||||||
<view class="menu-img">
|
<view class="menu-img">
|
||||||
<donghua :width="`55rpx`" :height="`55rpx`" :links="item.url" :playing="menuIndex===index" />
|
<donghua :width="`55rpx`" :height="`55rpx`" :links="item.url" :playing="menuIndex===index" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -86,9 +86,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="picture">
|
<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)">
|
: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;"
|
<image style="width: 90rpx;height: 90rpx;"
|
||||||
:src="`/static/index/picture/${index}${downtarget===index?1:0}.png`" />
|
:src="`/static/index/picture/${index}${downtarget===index?1:0}.png`" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -172,10 +173,11 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="juzhong" style="z-index: 2;margin-top: 130rpx;">
|
<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}`" />
|
<image style="width: 100rpx;height: 100rpx;"
|
||||||
</view>
|
:src="`https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.immediateFile}`" />
|
||||||
|
</view>
|
||||||
<view style="height: 200rpx;">
|
<view style="height: 200rpx;">
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="juzhong" style="top: -120rpx;">
|
<!-- <view class="juzhong" style="top: -120rpx;">
|
||||||
<donghua :width="`600rpx`" :height="`500rpx`" :links="blueArray" :playing="photoplay"
|
<donghua :width="`600rpx`" :height="`500rpx`" :links="blueArray" :playing="photoplay"
|
||||||
|
|
@ -236,7 +238,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<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 { onShow, onLoad, onHide } from "@dcloudio/uni-app"
|
||||||
// import specialDrawerVue from '../../component/public/specialDrawer.vue';
|
// import specialDrawerVue from '../../component/public/specialDrawer.vue';
|
||||||
// import bigroll from './drawer/index.vue';
|
// import bigroll from './drawer/index.vue';
|
||||||
|
|
@ -319,6 +321,9 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const clickDownCard = (index : number) => {
|
const clickDownCard = (index : number) => {
|
||||||
|
cleanandopen()
|
||||||
|
bottomTargetIndex.value = index;
|
||||||
|
// clickDownCard(0)
|
||||||
downtarget.value = index;
|
downtarget.value = index;
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -372,34 +377,35 @@
|
||||||
return closest
|
return closest
|
||||||
}
|
}
|
||||||
const serveritem = ref({
|
const serveritem = ref({
|
||||||
startTime:"",
|
startTime: "",
|
||||||
endTime:"",
|
endTime: "",
|
||||||
typeName:"",
|
typeName: "",
|
||||||
immediateFile:""
|
immediateFile: ""
|
||||||
})
|
})
|
||||||
const changeLeftMenu = (item : any,index:number) => {
|
const changeLeftMenu = (item : any, index : number) => {
|
||||||
cleanandopen();
|
|
||||||
leftTargetIndex.value = index;
|
if (item.elderServerEntityList) {
|
||||||
if(item.elderServerEntityList){
|
|
||||||
//给屏幕右侧数据用的
|
//给屏幕右侧数据用的
|
||||||
const nearest = findClosestItem(item.elderServerEntityList, time.value)
|
const nearest = findClosestItem(item.elderServerEntityList, time.value)
|
||||||
serveritem.value = nearest
|
serveritem.value = nearest
|
||||||
// console.log("zzzzaaa", nearest)
|
// console.log("zzzzaaa", nearest)
|
||||||
}else{
|
} else {
|
||||||
serveritem.value = {
|
serveritem.value = {
|
||||||
startTime:"",
|
startTime: "",
|
||||||
endTime:"",
|
endTime: "",
|
||||||
typeName:"",
|
typeName: "",
|
||||||
immediateFile:""
|
immediateFile: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// console.log("<<<<", filteredMenu[menuIndex.value])
|
||||||
if (item.cameraInfo !== null && item.cameraInfo[0].deviceName) {
|
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 {
|
} else {
|
||||||
uni.$emit('monitor:isshow', false)
|
uni.$emit('monitor:isshow', false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const clickTopMenu = (index:number) => {
|
const clickTopMenu = (index : number) => {
|
||||||
cleanandopen();
|
cleanandopen();
|
||||||
topTargetIndex.value = index;
|
topTargetIndex.value = index;
|
||||||
}
|
}
|
||||||
|
|
@ -644,11 +650,12 @@
|
||||||
topTargetIndex.value = -1;
|
topTargetIndex.value = -1;
|
||||||
bottomTargetIndex.value = -1;
|
bottomTargetIndex.value = -1;
|
||||||
shezhi.value = false;
|
shezhi.value = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
const movecamera = (type : number) => {
|
const movecamera = (type : number) => {
|
||||||
handleKey(type)
|
handleKey(type)
|
||||||
}
|
}
|
||||||
|
const savetypeNow = ref(0);
|
||||||
const movecard = (type : number) => {
|
const movecard = (type : number) => {
|
||||||
|
|
||||||
if (leftTargetIndex.value !== -1) {
|
if (leftTargetIndex.value !== -1) {
|
||||||
|
|
@ -656,9 +663,10 @@
|
||||||
case 0:
|
case 0:
|
||||||
if (menuIndex.value > 0) {
|
if (menuIndex.value > 0) {
|
||||||
leftTargetIndex.value--
|
leftTargetIndex.value--
|
||||||
typeNow.value = 0
|
|
||||||
menuIndex.value = leftTargetIndex.value
|
menuIndex.value = leftTargetIndex.value
|
||||||
ensureVisible(menuIndex.value)
|
ensureVisible(menuIndex.value)
|
||||||
|
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
topTargetIndex.value = typeNow.value
|
topTargetIndex.value = typeNow.value
|
||||||
leftTargetIndex.value = -1
|
leftTargetIndex.value = -1
|
||||||
|
|
@ -674,9 +682,9 @@
|
||||||
case 2:
|
case 2:
|
||||||
if (menuIndex.value < filteredMenu.value.length - 1) {
|
if (menuIndex.value < filteredMenu.value.length - 1) {
|
||||||
menuIndex.value++
|
menuIndex.value++
|
||||||
typeNow.value = 0
|
|
||||||
leftTargetIndex.value = menuIndex.value
|
leftTargetIndex.value = menuIndex.value
|
||||||
ensureVisible(menuIndex.value)
|
ensureVisible(menuIndex.value)
|
||||||
|
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
@ -684,6 +692,12 @@
|
||||||
|
|
||||||
break
|
break
|
||||||
case 4:
|
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) {
|
if (!typeNow.value) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/NursingNew/index'
|
url: '/pages/NursingNew/index'
|
||||||
|
|
@ -693,6 +707,7 @@
|
||||||
url: '/pages/Warehousing/index'
|
url: '/pages/Warehousing/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else if (topTargetIndex.value !== -1) {
|
} else if (topTargetIndex.value !== -1) {
|
||||||
|
|
@ -705,6 +720,7 @@
|
||||||
// console.log("???", typeArray.value.length)
|
// console.log("???", typeArray.value.length)
|
||||||
typeNow.value++
|
typeNow.value++
|
||||||
topTargetIndex.value = typeNow.value
|
topTargetIndex.value = typeNow.value
|
||||||
|
changeLeftMenu(filteredMenu.value[0], 0)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
shezhi.value = true
|
shezhi.value = true
|
||||||
|
|
@ -725,12 +741,13 @@
|
||||||
// }
|
// }
|
||||||
cleanandopen()
|
cleanandopen()
|
||||||
bottomTargetIndex.value = 0;
|
bottomTargetIndex.value = 0;
|
||||||
|
clickDownCard(0)
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
if (typeNow.value) {
|
if (typeNow.value) {
|
||||||
typeNow.value--
|
typeNow.value--
|
||||||
topTargetIndex.value = typeNow.value
|
topTargetIndex.value = typeNow.value
|
||||||
|
changeLeftMenu(filteredMenu.value[0], 0)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
topTargetIndex.value = -1
|
topTargetIndex.value = -1
|
||||||
|
|
@ -760,6 +777,7 @@
|
||||||
case 2:
|
case 2:
|
||||||
cleanandopen()
|
cleanandopen()
|
||||||
bottomTargetIndex.value = 0;
|
bottomTargetIndex.value = 0;
|
||||||
|
clickDownCard(0)
|
||||||
|
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
|
|
@ -779,8 +797,46 @@
|
||||||
break
|
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 jumpopen = ref(false);
|
||||||
const clickcamera = (index : number) => {
|
const clickcamera = (index : number) => {
|
||||||
uni.$emit('monitor:isshow', false)
|
// uni.$emit('monitor:isshow', false)
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
// 触发快照事件
|
// 触发快照事件
|
||||||
|
|
@ -999,7 +1055,9 @@
|
||||||
}
|
}
|
||||||
const filteredMenu = computed(() => {
|
const filteredMenu = computed(() => {
|
||||||
menuIndex.value = -1
|
menuIndex.value = -1
|
||||||
setTimeout(() => menuIndex.value = 0, 50)
|
setTimeout(() => {
|
||||||
|
menuIndex.value = 0;
|
||||||
|
}, 50)
|
||||||
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 === typeNow.value);
|
return leftMenuArray.value.filter(item => Number(item.areaFlag) - 1 === typeNow.value);
|
||||||
});
|
});
|
||||||
const goback = () => {
|
const goback = () => {
|
||||||
|
|
@ -1028,9 +1086,10 @@
|
||||||
updateClock()
|
updateClock()
|
||||||
// 立即更新一次,然后每秒更新
|
// 立即更新一次,然后每秒更新
|
||||||
timerId0 = setInterval(updateClock, 1000)
|
timerId0 = setInterval(updateClock, 1000)
|
||||||
|
// console.log("!!!!!!!!!",menuIndex.value,leftTargetIndex.value)
|
||||||
queryPadPageList().then((res => {
|
queryPadPageList().then((res => {
|
||||||
leftMenuArray.value = res.result.records;
|
leftMenuArray.value = res.result.records;
|
||||||
console.log("????", leftMenuArray.value)
|
// console.log("????", leftMenuArray.value)
|
||||||
leftMenuArray.value.forEach((res : any) => {
|
leftMenuArray.value.forEach((res : any) => {
|
||||||
switch (res.areaFlag) {
|
switch (res.areaFlag) {
|
||||||
case '1':
|
case '1':
|
||||||
|
|
@ -1075,6 +1134,14 @@
|
||||||
break
|
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(() => {
|
onHide(() => {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// 全局请求封装
|
// 全局请求封装
|
||||||
const base_url = 'https://www.focusnu.com/devopsapi'
|
const base_url = 'https://www.focusnu.com/devopsapi'
|
||||||
|
// const base_url = 'http://192.168.2.28:8081/devopsapi'
|
||||||
// 请求超出时间
|
// 请求超出时间
|
||||||
const timeout = 5000
|
const timeout = 5000
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// 全局请求封装
|
// 全局请求封装
|
||||||
const base_url = 'https://www.focusnu.com/opeapi'
|
const base_url = 'https://www.focusnu.com/opeapi'
|
||||||
|
// const base_url = 'http://192.168.2.28:8081/opeapi'
|
||||||
// 请求超出时间
|
// 请求超出时间
|
||||||
const timeout = 5000
|
const timeout = 5000
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -21,6 +21,7 @@ const _sfc_main = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
phoneNumber: "1234567890",
|
phoneNumber: "1234567890",
|
||||||
|
initnumber: 5,
|
||||||
isAlarming: false,
|
isAlarming: false,
|
||||||
isRecording: false,
|
isRecording: false,
|
||||||
// 录屏状态
|
// 录屏状态
|
||||||
|
|
@ -42,7 +43,7 @@ const _sfc_main = {
|
||||||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||||
if (globalEvent && globalEvent.addEventListener) {
|
if (globalEvent && globalEvent.addEventListener) {
|
||||||
globalEvent.addEventListener("myEvent", (e) => {
|
globalEvent.addEventListener("myEvent", (e) => {
|
||||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
formatAppLog("log", "at pages/camera.nvue:35", e);
|
||||||
if (e.recordUrl) {
|
if (e.recordUrl) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "录屏成功",
|
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:isshow", (bool) => this.isshow = bool);
|
||||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||||
|
|
@ -83,6 +119,7 @@ const _sfc_main = {
|
||||||
uni.$on("monitor:test", this.test);
|
uni.$on("monitor:test", this.test);
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
uni.$off("monitor:changeinit", (number) => this.initnumber = number);
|
||||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||||
|
|
@ -101,27 +138,27 @@ const _sfc_main = {
|
||||||
methods: {
|
methods: {
|
||||||
/* ------------------ 原有功能 ------------------ */
|
/* ------------------ 原有功能 ------------------ */
|
||||||
handleTelEvent(event) {
|
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) {
|
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);
|
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||||
},
|
},
|
||||||
startAlarm() {
|
startAlarm() {
|
||||||
this.isAlarming = true;
|
this.isAlarming = true;
|
||||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
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() {
|
stopAlarm() {
|
||||||
this.isAlarming = false;
|
this.isAlarming = false;
|
||||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
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) {
|
flipImage(type) {
|
||||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
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() {
|
resumeOrPause() {
|
||||||
|
|
@ -158,7 +195,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.snapShot((res) => {
|
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);
|
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||||
});
|
});
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -167,7 +204,7 @@ const _sfc_main = {
|
||||||
duration: 800
|
duration: 800
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
formatAppLog("error", "at pages/camera.nvue:176", "snapShot 调用失败", err);
|
formatAppLog("error", "at pages/camera.nvue:210", "snapShot 调用失败", err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "snapShot 调用失败",
|
title: "snapShot 调用失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -199,7 +236,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.startRecord((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -213,7 +250,7 @@ const _sfc_main = {
|
||||||
icon: "none"
|
icon: "none"
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
formatAppLog("error", "at pages/camera.nvue:224", "startRecord 调用失败", err);
|
formatAppLog("error", "at pages/camera.nvue:258", "startRecord 调用失败", err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "startRecord 调用失败",
|
title: "startRecord 调用失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -248,11 +285,11 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.stopRecord((res) => {
|
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);
|
this._handleRecordResultFromNative(res, payload.reqId);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
formatAppLog("error", "at pages/camera.nvue:268", "stopRecord 调用失败", err);
|
formatAppLog("error", "at pages/camera.nvue:302", "stopRecord 调用失败", err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "stopRecord 调用失败",
|
title: "stopRecord 调用失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -287,7 +324,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.openTalk((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -301,7 +338,7 @@ const _sfc_main = {
|
||||||
icon: "none"
|
icon: "none"
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
formatAppLog("error", "at pages/camera.nvue:320", "openTalk 调用失败", err);
|
formatAppLog("error", "at pages/camera.nvue:354", "openTalk 调用失败", err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "openTalk 调用失败",
|
title: "openTalk 调用失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -333,7 +370,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.stopTalk((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -343,7 +380,7 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
this.isTalking = false;
|
this.isTalking = false;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
formatAppLog("error", "at pages/camera.nvue:363", "stopTalk 调用失败", err);
|
formatAppLog("error", "at pages/camera.nvue:397", "stopTalk 调用失败", err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "stopTalk 调用失败",
|
title: "stopTalk 调用失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -361,19 +398,19 @@ const _sfc_main = {
|
||||||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||||
handleSnapShotEvent(event) {
|
handleSnapShotEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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);
|
this._handleSnapshotResultFromNative(payload);
|
||||||
},
|
},
|
||||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||||
handleRecordEvent(event) {
|
handleRecordEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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);
|
this._handleRecordResultFromNative(payload);
|
||||||
},
|
},
|
||||||
// 处理来自模板 @onTalkStatus 的事件
|
// 处理来自模板 @onTalkStatus 的事件
|
||||||
handleTalkEvent(event) {
|
handleTalkEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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 status = payload && payload.talkStatus;
|
||||||
const tips = payload && payload.tips;
|
const tips = payload && payload.tips;
|
||||||
uni.$emit("monitor:talk:status", payload);
|
uni.$emit("monitor:talk:status", payload);
|
||||||
|
|
@ -441,7 +478,7 @@ const _sfc_main = {
|
||||||
let payload = res;
|
let payload = res;
|
||||||
if (res.detail)
|
if (res.detail)
|
||||||
payload = 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) {
|
if (reqIdFromCallback) {
|
||||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||||
ok: !!payload.snapShotResult,
|
ok: !!payload.snapShotResult,
|
||||||
|
|
@ -477,7 +514,7 @@ const _sfc_main = {
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2e3
|
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) {
|
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||||
|
|
@ -498,7 +535,7 @@ const _sfc_main = {
|
||||||
let payload = res;
|
let payload = res;
|
||||||
if (res.detail)
|
if (res.detail)
|
||||||
payload = 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) {
|
if (reqIdFromCallback) {
|
||||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||||
|
|
@ -522,7 +559,7 @@ const _sfc_main = {
|
||||||
duration: 1400
|
duration: 1400
|
||||||
});
|
});
|
||||||
this.isRecording = false;
|
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) {
|
} else if (payload.recordFailedReason) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "录屏失败: " + payload.recordFailedReason,
|
title: "录屏失败: " + payload.recordFailedReason,
|
||||||
|
|
@ -530,7 +567,7 @@ const _sfc_main = {
|
||||||
duration: 2e3
|
duration: 2e3
|
||||||
});
|
});
|
||||||
this.isRecording = false;
|
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 {
|
} else {
|
||||||
if (payload.snapShotResult === true) {
|
if (payload.snapShotResult === true) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -562,13 +599,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
createCommentVNode(" 视频播放组件 "),
|
createCommentVNode(" 视频播放组件 "),
|
||||||
createVNode(_component_MonitorView, {
|
createVNode(_component_MonitorView, {
|
||||||
ref: "monitor",
|
ref: "monitor",
|
||||||
init: "5",
|
init: $data.initnumber,
|
||||||
style: { "width": "650px", "height": "510px" },
|
style: { "width": "650px", "height": "510px" },
|
||||||
onOnTel: $options.handleTelEvent,
|
onOnTel: $options.handleTelEvent,
|
||||||
onOnSnapShot: $options.handleSnapShotEvent,
|
onOnSnapShot: $options.handleSnapShotEvent,
|
||||||
onOnRecord: $options.handleRecordEvent,
|
onOnRecord: $options.handleRecordEvent,
|
||||||
onOnTalkStatus: $options.handleTalkEvent
|
onOnTalkStatus: $options.handleTalkEvent
|
||||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
}, null, 8, ["init", "onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||||
],
|
],
|
||||||
4
|
4
|
||||||
/* STYLE */
|
/* 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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
phoneNumber: "1234567890",
|
phoneNumber: "1234567890",
|
||||||
|
initnumber: 5,
|
||||||
isAlarming: false,
|
isAlarming: false,
|
||||||
isRecording: false,
|
isRecording: false,
|
||||||
// 录屏状态
|
// 录屏状态
|
||||||
|
|
@ -108,7 +109,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||||
if (globalEvent && globalEvent.addEventListener) {
|
if (globalEvent && globalEvent.addEventListener) {
|
||||||
globalEvent.addEventListener("myEvent", (e) => {
|
globalEvent.addEventListener("myEvent", (e) => {
|
||||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
formatAppLog("log", "at pages/camera.nvue:35", e);
|
||||||
if (e.recordUrl) {
|
if (e.recordUrl) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "\u5F55\u5C4F\u6210\u529F",
|
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:isshow", (bool) => this.isshow = bool);
|
||||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||||
|
|
@ -149,6 +185,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
uni.$on("monitor:test", this.test);
|
uni.$on("monitor:test", this.test);
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
uni.$off("monitor:changeinit", (number) => this.initnumber = number);
|
||||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||||
|
|
@ -167,27 +204,27 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
methods: {
|
methods: {
|
||||||
/* ------------------ 原有功能 ------------------ */
|
/* ------------------ 原有功能 ------------------ */
|
||||||
handleTelEvent(event) {
|
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) {
|
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);
|
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||||
},
|
},
|
||||||
startAlarm() {
|
startAlarm() {
|
||||||
this.isAlarming = true;
|
this.isAlarming = true;
|
||||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
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() {
|
stopAlarm() {
|
||||||
this.isAlarming = false;
|
this.isAlarming = false;
|
||||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
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) {
|
flipImage(type) {
|
||||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
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() {
|
resumeOrPause() {
|
||||||
|
|
@ -224,7 +261,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.snapShot((res) => {
|
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);
|
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||||
});
|
});
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -233,7 +270,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
duration: 800
|
duration: 800
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} 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({
|
uni.showToast({
|
||||||
title: "snapShot \u8C03\u7528\u5931\u8D25",
|
title: "snapShot \u8C03\u7528\u5931\u8D25",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -265,7 +302,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.startRecord((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -279,7 +316,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
icon: "none"
|
icon: "none"
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} 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({
|
uni.showToast({
|
||||||
title: "startRecord \u8C03\u7528\u5931\u8D25",
|
title: "startRecord \u8C03\u7528\u5931\u8D25",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -314,11 +351,11 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.stopRecord((res) => {
|
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);
|
this._handleRecordResultFromNative(res, payload.reqId);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} 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({
|
uni.showToast({
|
||||||
title: "stopRecord \u8C03\u7528\u5931\u8D25",
|
title: "stopRecord \u8C03\u7528\u5931\u8D25",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -353,7 +390,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.openTalk((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -367,7 +404,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
icon: "none"
|
icon: "none"
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} 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({
|
uni.showToast({
|
||||||
title: "openTalk \u8C03\u7528\u5931\u8D25",
|
title: "openTalk \u8C03\u7528\u5931\u8D25",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -399,7 +436,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.$refs.monitor.stopTalk((res) => {
|
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) {
|
if (payload.reqId) {
|
||||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||||
ok: true,
|
ok: true,
|
||||||
|
|
@ -409,7 +446,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
});
|
});
|
||||||
this.isTalking = false;
|
this.isTalking = false;
|
||||||
} catch (err) {
|
} 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({
|
uni.showToast({
|
||||||
title: "stopTalk \u8C03\u7528\u5931\u8D25",
|
title: "stopTalk \u8C03\u7528\u5931\u8D25",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -427,19 +464,19 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||||
handleSnapShotEvent(event) {
|
handleSnapShotEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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);
|
this._handleSnapshotResultFromNative(payload);
|
||||||
},
|
},
|
||||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||||
handleRecordEvent(event) {
|
handleRecordEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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);
|
this._handleRecordResultFromNative(payload);
|
||||||
},
|
},
|
||||||
// 处理来自模板 @onTalkStatus 的事件
|
// 处理来自模板 @onTalkStatus 的事件
|
||||||
handleTalkEvent(event) {
|
handleTalkEvent(event) {
|
||||||
const payload = event && event.detail ? event.detail : 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 status = payload && payload.talkStatus;
|
||||||
const tips = payload && payload.tips;
|
const tips = payload && payload.tips;
|
||||||
uni.$emit("monitor:talk:status", payload);
|
uni.$emit("monitor:talk:status", payload);
|
||||||
|
|
@ -507,7 +544,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
let payload = res;
|
let payload = res;
|
||||||
if (res.detail)
|
if (res.detail)
|
||||||
payload = 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) {
|
if (reqIdFromCallback) {
|
||||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||||
ok: !!payload.snapShotResult,
|
ok: !!payload.snapShotResult,
|
||||||
|
|
@ -543,7 +580,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2e3
|
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) {
|
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||||
|
|
@ -564,7 +601,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
let payload = res;
|
let payload = res;
|
||||||
if (res.detail)
|
if (res.detail)
|
||||||
payload = 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) {
|
if (reqIdFromCallback) {
|
||||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||||
|
|
@ -588,7 +625,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
duration: 1400
|
duration: 1400
|
||||||
});
|
});
|
||||||
this.isRecording = false;
|
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) {
|
} else if (payload.recordFailedReason) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "\u5F55\u5C4F\u5931\u8D25: " + payload.recordFailedReason,
|
title: "\u5F55\u5C4F\u5931\u8D25: " + payload.recordFailedReason,
|
||||||
|
|
@ -596,7 +633,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
duration: 2e3
|
duration: 2e3
|
||||||
});
|
});
|
||||||
this.isRecording = false;
|
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 {
|
} else {
|
||||||
if (payload.snapShotResult === true) {
|
if (payload.snapShotResult === true) {
|
||||||
uni.showToast({
|
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.createCommentVNode)(" \u89C6\u9891\u64AD\u653E\u7EC4\u4EF6 "),
|
||||||
(0, import_vue.createVNode)(_component_MonitorView, {
|
(0, import_vue.createVNode)(_component_MonitorView, {
|
||||||
ref: "monitor",
|
ref: "monitor",
|
||||||
init: "5",
|
init: $data.initnumber,
|
||||||
style: { "width": "650px", "height": "510px" },
|
style: { "width": "650px", "height": "510px" },
|
||||||
onOnTel: $options.handleTelEvent,
|
onOnTel: $options.handleTelEvent,
|
||||||
onOnSnapShot: $options.handleSnapShotEvent,
|
onOnSnapShot: $options.handleSnapShotEvent,
|
||||||
onOnRecord: $options.handleRecordEvent,
|
onOnRecord: $options.handleRecordEvent,
|
||||||
onOnTalkStatus: $options.handleTalkEvent
|
onOnTalkStatus: $options.handleTalkEvent
|
||||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
}, null, 8, ["init", "onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||||
],
|
],
|
||||||
4
|
4
|
||||||
/* STYLE */
|
/* STYLE */
|
||||||
|
|
|
||||||
|
|
@ -1890,3 +1890,32 @@ to {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: 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_7$3 = "/static/index/watch/phone.png";
|
||||||
const _imports_8$3 = "/static/index/watch/phoneball.png";
|
const _imports_8$3 = "/static/index/watch/phoneball.png";
|
||||||
const _imports_9$3 = "/static/index/watch/pao.png";
|
const _imports_9$3 = "/static/index/watch/pao.png";
|
||||||
const _imports_10$2 = "/static/index/newindex/wendu/2.png";
|
const _imports_10$2 = "/static/index/camera/back.png";
|
||||||
const _imports_11$2 = "/static/index/camera/back.png";
|
|
||||||
const _imports_0$k = "/static/click.png";
|
const _imports_0$k = "/static/click.png";
|
||||||
const _imports_1$j = "/static/x.png";
|
const _imports_1$j = "/static/x.png";
|
||||||
const _imports_2$d = "/static/bgc.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 = _imports_10$2;
|
||||||
exports._imports_10$1 = _imports_10$1;
|
exports._imports_10$1 = _imports_10$1;
|
||||||
exports._imports_10$2 = _imports_10;
|
exports._imports_10$2 = _imports_10;
|
||||||
exports._imports_11 = _imports_11$2;
|
exports._imports_11 = _imports_11$1;
|
||||||
exports._imports_11$1 = _imports_11$1;
|
exports._imports_11$1 = _imports_11;
|
||||||
exports._imports_11$2 = _imports_11;
|
|
||||||
exports._imports_12 = _imports_12;
|
exports._imports_12 = _imports_12;
|
||||||
exports._imports_2 = _imports_2$e;
|
exports._imports_2 = _imports_2$e;
|
||||||
exports._imports_2$1 = _imports_2$d;
|
exports._imports_2$1 = _imports_2$d;
|
||||||
|
|
|
||||||
|
|
@ -7055,9 +7055,9 @@ function isConsoleWritable() {
|
||||||
return isWritable;
|
return isWritable;
|
||||||
}
|
}
|
||||||
function initRuntimeSocketService() {
|
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 port = "8090";
|
||||||
const id = "mp-weixin_YcQ5TG";
|
const id = "mp-weixin_XL3mmF";
|
||||||
const lazy = typeof swan !== "undefined";
|
const lazy = typeof swan !== "undefined";
|
||||||
let restoreError = lazy ? () => {
|
let restoreError = lazy ? () => {
|
||||||
} : initOnError();
|
} : initOnError();
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
}) : {}, {
|
}) : {}, {
|
||||||
A: item0.cardtype
|
A: item0.cardtype
|
||||||
}, item0.cardtype ? common_vendor.e({
|
}, 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) => {
|
C: common_vendor.f(kufangarray.value, (item, index2, i1) => {
|
||||||
return {
|
return {
|
||||||
a: item0.movestates === index2 ? item.targeturl : item.url,
|
a: item0.movestates === index2 ? item.targeturl : item.url,
|
||||||
|
|
|
||||||
|
|
@ -1223,8 +1223,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
}),
|
}),
|
||||||
aI: deletedownisopen.value,
|
aI: deletedownisopen.value,
|
||||||
aJ: common_vendor.o(($event) => deletedownisopen.value = false),
|
aJ: common_vendor.o(($event) => deletedownisopen.value = false),
|
||||||
aK: common_assets._imports_11$1,
|
aK: common_assets._imports_11,
|
||||||
aL: common_assets._imports_11$1,
|
aL: common_assets._imports_11,
|
||||||
aM: common_vendor.o(clickshare),
|
aM: common_vendor.o(clickshare),
|
||||||
aN: deletedownisopacity.value ? 1 : 0,
|
aN: deletedownisopacity.value ? 1 : 0,
|
||||||
aO: common_vendor.o(() => {
|
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";
|
"use strict";
|
||||||
const common_vendor = require("../../common/vendor.js");
|
const common_vendor = require("../../common/vendor.js");
|
||||||
const common_assets = require("../../common/assets.js");
|
const common_assets = require("../../common/assets.js");
|
||||||
|
const component_rightItemssecondrelnew_api = require("./api.js");
|
||||||
const component_rightItemssecondrelnew_yaoshandiao = require("./yaoshandiao.js");
|
const component_rightItemssecondrelnew_yaoshandiao = require("./yaoshandiao.js");
|
||||||
if (!Math) {
|
if (!Math) {
|
||||||
joystick();
|
joystick();
|
||||||
|
|
@ -178,6 +179,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
common_vendor.ref(3);
|
common_vendor.ref(3);
|
||||||
const isMove = common_vendor.ref(false);
|
const isMove = common_vendor.ref(false);
|
||||||
common_vendor.onMounted(() => {
|
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);
|
const lastTap = common_vendor.ref(0);
|
||||||
function onTap(e) {
|
function onTap(e) {
|
||||||
|
|
@ -1057,8 +1061,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
}),
|
}),
|
||||||
ax: sayisopen.value,
|
ax: sayisopen.value,
|
||||||
ay: common_vendor.o(($event) => sayisopen.value = false),
|
ay: common_vendor.o(($event) => sayisopen.value = false),
|
||||||
az: common_assets._imports_11$1,
|
az: common_assets._imports_11,
|
||||||
aA: common_assets._imports_11$1,
|
aA: common_assets._imports_11,
|
||||||
aB: common_vendor.o(clickshare),
|
aB: common_vendor.o(clickshare),
|
||||||
aC: deletedownisopacity.value ? 1 : 0,
|
aC: deletedownisopacity.value ? 1 : 0,
|
||||||
aD: common_vendor.o(() => {
|
aD: common_vendor.o(() => {
|
||||||
|
|
|
||||||
|
|
@ -389,9 +389,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
});
|
});
|
||||||
common_vendor.onMounted(() => {
|
common_vendor.onMounted(() => {
|
||||||
downdonghua.value = 0;
|
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);
|
const lastTap = common_vendor.ref(0);
|
||||||
function onTap(e) {
|
function onTap(e) {
|
||||||
|
|
@ -1123,6 +1120,17 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
common_vendor.onShow(() => {
|
common_vendor.onShow(() => {
|
||||||
bigArray.value = pages_NursingNew_component_nurse_yaoshandiao.myArray;
|
bigArray.value = pages_NursingNew_component_nurse_yaoshandiao.myArray;
|
||||||
downList.value = bigArray.value[0].children;
|
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.index.$on("where", findback);
|
||||||
});
|
});
|
||||||
common_vendor.onHide(() => {
|
common_vendor.onHide(() => {
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
port: 8888
|
port: 8888
|
||||||
};
|
};
|
||||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||||
common_vendor.index.__f__("log", "at pages/login/login.vue:323", "?????", r);
|
|
||||||
if (loading.value === 2) {
|
if (loading.value === 2) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
jumpTo(`/pages/watch/index`);
|
jumpTo(`/pages/watch/index`);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../common/vendor.js");
|
const common_vendor = require("../../../common/vendor.js");
|
||||||
const request_guanli = require("../../../request/guanli.js");
|
const request_guanli = require("../../../request/guanli.js");
|
||||||
const movedirection = (direction, startOrNot) => {
|
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" });
|
return request_guanli.request({ url, method: "get" });
|
||||||
};
|
};
|
||||||
const queryPadPageList = () => {
|
const queryPadPageList = () => {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
const typeNow = common_vendor.ref(-1);
|
const typeNow = common_vendor.ref(-1);
|
||||||
const photoplay = common_vendor.ref(false);
|
const photoplay = common_vendor.ref(false);
|
||||||
const getblue = 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 wheelRef = common_vendor.ref(null);
|
||||||
const topnum = common_vendor.ref(0);
|
const topnum = common_vendor.ref(0);
|
||||||
const wheretarget = common_vendor.ref(3);
|
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 downtarget = common_vendor.ref(0);
|
||||||
const clickDownCard = (index) => {
|
const clickDownCard = (index) => {
|
||||||
|
cleanandopen();
|
||||||
|
bottomTargetIndex.value = index;
|
||||||
downtarget.value = index;
|
downtarget.value = index;
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -102,11 +104,55 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
};
|
};
|
||||||
const first = common_vendor.ref(5);
|
const first = common_vendor.ref(5);
|
||||||
const second = common_vendor.ref(0);
|
const second = common_vendor.ref(0);
|
||||||
const changeLeftMenu = (item) => {
|
function parseToMinutes(t) {
|
||||||
common_vendor.index.__f__("log", "at pages/watch/index.vue:429", "????aaa", item);
|
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 = () => {
|
const clickTopMenu = (index) => {
|
||||||
gobackdrawer.value.openDrawer();
|
cleanandopen();
|
||||||
|
topTargetIndex.value = index;
|
||||||
};
|
};
|
||||||
function clamp(v, a, b) {
|
function clamp(v, a, b) {
|
||||||
return Math.max(a, Math.min(b, v));
|
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);
|
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) => {
|
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}`;
|
return `${base2}/${prefix}${idx}.${ext}`;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +182,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
1,
|
1,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
const blueArray = common_vendor.ref([
|
common_vendor.ref([
|
||||||
...base,
|
...base,
|
||||||
...[...base].reverse()
|
...[...base].reverse()
|
||||||
// 先拷贝一份再反转,避免修改原 base
|
// 先拷贝一份再反转,避免修改原 base
|
||||||
|
|
@ -149,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
1,
|
1,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
const bluesmallArray = common_vendor.ref([
|
common_vendor.ref([
|
||||||
...basesmall,
|
...basesmall,
|
||||||
...[...basesmall].reverse()
|
...[...basesmall].reverse()
|
||||||
// 先拷贝一份再反转,避免修改原 base
|
// 先拷贝一份再反转,避免修改原 base
|
||||||
|
|
@ -183,17 +229,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
]);
|
]);
|
||||||
const typeArray = common_vendor.ref(
|
const typeArray = common_vendor.ref(
|
||||||
[
|
[
|
||||||
// {
|
|
||||||
// name: '全部',
|
|
||||||
// url: genPaths(
|
|
||||||
// '/static/index/watch',
|
|
||||||
// 'all_',
|
|
||||||
// 8, // 张数
|
|
||||||
// 'png',
|
|
||||||
// 1, // 起始索引为 1
|
|
||||||
// false // 不补零
|
|
||||||
// )
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
name: "护理单元",
|
name: "护理单元",
|
||||||
url: genPaths(
|
url: genPaths(
|
||||||
|
|
@ -254,22 +289,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
name: "",
|
name: "",
|
||||||
url: ""
|
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([
|
const leftMenuArray = common_vendor.ref([
|
||||||
|
|
@ -384,22 +403,27 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
});
|
});
|
||||||
const leftTargetIndex = common_vendor.ref(0);
|
const leftTargetIndex = common_vendor.ref(0);
|
||||||
const topTargetIndex = common_vendor.ref(-1);
|
const topTargetIndex = common_vendor.ref(-1);
|
||||||
|
const bottomTargetIndex = common_vendor.ref(-1);
|
||||||
const shezhi = common_vendor.ref(false);
|
const shezhi = common_vendor.ref(false);
|
||||||
const openright = common_vendor.ref(false);
|
const cleanandopen = () => {
|
||||||
const openfirstmenu = common_vendor.ref(false);
|
leftTargetIndex.value = -1;
|
||||||
const opensecondmenu = common_vendor.ref(false);
|
topTargetIndex.value = -1;
|
||||||
|
bottomTargetIndex.value = -1;
|
||||||
|
shezhi.value = false;
|
||||||
|
};
|
||||||
const movecamera = (type) => {
|
const movecamera = (type) => {
|
||||||
handleKey(type);
|
handleKey(type);
|
||||||
};
|
};
|
||||||
|
const savetypeNow = common_vendor.ref(0);
|
||||||
const movecard = (type) => {
|
const movecard = (type) => {
|
||||||
if (leftTargetIndex.value !== -1) {
|
if (leftTargetIndex.value !== -1) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 0:
|
case 0:
|
||||||
if (menuIndex.value > 0) {
|
if (menuIndex.value > 0) {
|
||||||
menuIndex.value--;
|
leftTargetIndex.value--;
|
||||||
typeNow.value = 0;
|
menuIndex.value = leftTargetIndex.value;
|
||||||
leftTargetIndex.value = menuIndex.value;
|
|
||||||
ensureVisible(menuIndex.value);
|
ensureVisible(menuIndex.value);
|
||||||
|
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
|
||||||
} else {
|
} else {
|
||||||
topTargetIndex.value = typeNow.value;
|
topTargetIndex.value = typeNow.value;
|
||||||
leftTargetIndex.value = -1;
|
leftTargetIndex.value = -1;
|
||||||
|
|
@ -412,14 +436,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
case 2:
|
case 2:
|
||||||
if (menuIndex.value < filteredMenu.value.length - 1) {
|
if (menuIndex.value < filteredMenu.value.length - 1) {
|
||||||
menuIndex.value++;
|
menuIndex.value++;
|
||||||
typeNow.value = 0;
|
|
||||||
leftTargetIndex.value = menuIndex.value;
|
leftTargetIndex.value = menuIndex.value;
|
||||||
ensureVisible(menuIndex.value);
|
ensureVisible(menuIndex.value);
|
||||||
|
changeLeftMenu(filteredMenu.value[leftTargetIndex.value], leftTargetIndex.value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
savetypeNow.value = leftTargetIndex.value;
|
||||||
if (!typeNow.value) {
|
if (!typeNow.value) {
|
||||||
common_vendor.index.navigateTo({
|
common_vendor.index.navigateTo({
|
||||||
url: "/pages/NursingNew/index"
|
url: "/pages/NursingNew/index"
|
||||||
|
|
@ -439,21 +464,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
if (typeNow.value < typeArray.value.length - 2) {
|
if (typeNow.value < typeArray.value.length - 2) {
|
||||||
typeNow.value++;
|
typeNow.value++;
|
||||||
topTargetIndex.value = typeNow.value;
|
topTargetIndex.value = typeNow.value;
|
||||||
|
changeLeftMenu(filteredMenu.value[0]);
|
||||||
} else {
|
} else {
|
||||||
shezhi.value = true;
|
shezhi.value = true;
|
||||||
topTargetIndex.value = -1;
|
topTargetIndex.value = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
topTargetIndex.value = -1;
|
cleanandopen();
|
||||||
menuIndex.value = 0;
|
bottomTargetIndex.value = 0;
|
||||||
leftTargetIndex.value = menuIndex.value;
|
clickDownCard(0);
|
||||||
ensureVisible(menuIndex.value);
|
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (typeNow.value) {
|
if (typeNow.value) {
|
||||||
typeNow.value--;
|
typeNow.value--;
|
||||||
topTargetIndex.value = typeNow.value;
|
topTargetIndex.value = typeNow.value;
|
||||||
|
changeLeftMenu(filteredMenu.value[0]);
|
||||||
} else {
|
} else {
|
||||||
topTargetIndex.value = -1;
|
topTargetIndex.value = -1;
|
||||||
menuIndex.value = 0;
|
menuIndex.value = 0;
|
||||||
|
|
@ -476,8 +502,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
case 1:
|
case 1:
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
shezhi.value = false;
|
cleanandopen();
|
||||||
openright.value = true;
|
bottomTargetIndex.value = 0;
|
||||||
|
clickDownCard(0);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
typeNow.value = 3;
|
typeNow.value = 3;
|
||||||
|
|
@ -495,85 +522,34 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
shezhi.value = false;
|
shezhi.value = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (openright.value) {
|
} else if (bottomTargetIndex.value !== -1) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 0:
|
case 0:
|
||||||
shezhi.value = true;
|
cleanandopen();
|
||||||
openright.value = false;
|
topTargetIndex.value = typeNow.value;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
opendrawer();
|
if (bottomTargetIndex.value < 4) {
|
||||||
openfirstmenu.value = true;
|
bottomTargetIndex.value++;
|
||||||
openright.value = false;
|
clickDownCard(bottomTargetIndex.value);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
topTargetIndex.value = -1;
|
if (bottomTargetIndex.value) {
|
||||||
menuIndex.value = 0;
|
bottomTargetIndex.value--;
|
||||||
leftTargetIndex.value = menuIndex.value;
|
clickDownCard(bottomTargetIndex.value);
|
||||||
ensureVisible(menuIndex.value);
|
} else {
|
||||||
openright.value = false;
|
let menunumber = menuIndex.value;
|
||||||
|
cleanandopen();
|
||||||
|
menuIndex.value = menunumber;
|
||||||
|
leftTargetIndex.value = menunumber;
|
||||||
|
changeLeftMenu(filteredMenu.value[menuIndex.value], menuIndex.value);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
opendrawer();
|
goback();
|
||||||
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;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -593,7 +569,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
};
|
};
|
||||||
const jumpopen = common_vendor.ref(false);
|
const jumpopen = common_vendor.ref(false);
|
||||||
const clickcamera = (index) => {
|
const clickcamera = (index) => {
|
||||||
common_vendor.index.$emit("monitor:isshow", false);
|
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
common_vendor.index.$emit("monitor:doSnapshot");
|
common_vendor.index.$emit("monitor:doSnapshot");
|
||||||
|
|
@ -696,22 +671,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
cameratarget.value.push(9);
|
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(() => {
|
const moveUpsecond = useThrottle(() => {
|
||||||
var _a;
|
var _a;
|
||||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondUp();
|
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondUp();
|
||||||
}, 400);
|
}, 400);
|
||||||
const moveDownsecond = useThrottle(() => {
|
|
||||||
var _a;
|
|
||||||
return (_a = wheelRef.value) == null ? void 0 : _a.moveSecondDown();
|
|
||||||
}, 400);
|
|
||||||
const clickDownsecond = useThrottle(() => doSomething(), 700);
|
const clickDownsecond = useThrottle(() => doSomething(), 700);
|
||||||
const gaoqing = common_vendor.ref(0);
|
const gaoqing = common_vendor.ref(0);
|
||||||
const yuntai = common_vendor.ref(false);
|
const yuntai = common_vendor.ref(false);
|
||||||
|
|
@ -788,7 +751,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
}
|
}
|
||||||
const filteredMenu = common_vendor.computed(() => {
|
const filteredMenu = common_vendor.computed(() => {
|
||||||
menuIndex.value = -1;
|
menuIndex.value = -1;
|
||||||
setTimeout(() => menuIndex.value = 0, 50);
|
setTimeout(() => {
|
||||||
|
menuIndex.value = 0;
|
||||||
|
}, 50);
|
||||||
return leftMenuArray.value.filter((item) => Number(item.areaFlag) - 1 === typeNow.value);
|
return leftMenuArray.value.filter((item) => Number(item.areaFlag) - 1 === typeNow.value);
|
||||||
});
|
});
|
||||||
const goback = () => {
|
const goback = () => {
|
||||||
|
|
@ -796,7 +761,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
url: "/pages/watch/settings/settings"
|
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(() => {
|
common_vendor.onShow(() => {
|
||||||
|
updateClock();
|
||||||
|
timerId0 = setInterval(updateClock, 1e3);
|
||||||
pages_watch_api_lunpan.queryPadPageList().then((res) => {
|
pages_watch_api_lunpan.queryPadPageList().then((res) => {
|
||||||
leftMenuArray.value = res.result.records;
|
leftMenuArray.value = res.result.records;
|
||||||
leftMenuArray.value.forEach((res2) => {
|
leftMenuArray.value.forEach((res2) => {
|
||||||
|
|
@ -855,9 +834,20 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
break;
|
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;
|
let activeDir = -1;
|
||||||
const stopTimers = {};
|
const stopTimers = {};
|
||||||
function handleKey(type) {
|
function handleKey(type) {
|
||||||
|
|
@ -927,7 +917,27 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
if (activeDir === type)
|
if (activeDir === type)
|
||||||
activeDir = -1;
|
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) => {
|
return (_ctx, _cache) => {
|
||||||
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
||||||
return common_vendor.e({
|
return common_vendor.e({
|
||||||
a: common_assets._imports_0$3,
|
a: common_assets._imports_0$3,
|
||||||
b: common_vendor.f(filteredMenu.value, (item, index, i0) => {
|
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) => {
|
j: common_vendor.o(($event) => {
|
||||||
menuIndex.value = index;
|
menuIndex.value = index;
|
||||||
|
cleanandopen();
|
||||||
|
leftTargetIndex.value = index;
|
||||||
changeLeftMenu(item);
|
changeLeftMenu(item);
|
||||||
}, index)
|
}, index)
|
||||||
};
|
};
|
||||||
|
|
@ -988,35 +1000,58 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
l: index === topTargetIndex.value ? 1 : "",
|
l: index === topTargetIndex.value ? 1 : "",
|
||||||
m: common_vendor.o(($event) => {
|
m: common_vendor.o(($event) => {
|
||||||
typeNow.value = index;
|
typeNow.value = index;
|
||||||
|
clickTopMenu(index);
|
||||||
}, index)
|
}, index)
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
e: common_assets._imports_2,
|
e: common_vendor.t(time.value),
|
||||||
f: common_vendor.o(goback),
|
f: common_vendor.t(date.value),
|
||||||
g: common_vendor.o(goback),
|
g: common_vendor.t(week.value),
|
||||||
h: shezhi.value ? 1 : "",
|
h: common_assets._imports_2,
|
||||||
i: common_assets._imports_3,
|
i: common_vendor.o(goback),
|
||||||
j: common_vendor.f(downpicture, (item, index, i0) => {
|
j: common_vendor.o(goback),
|
||||||
|
k: shezhi.value ? 1 : "",
|
||||||
|
l: common_assets._imports_3,
|
||||||
|
m: common_vendor.f(downpicture, (item, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: `/static/index/picture/${index}${downtarget.value === index ? 1 : 0}.png`,
|
a: `/static/index/picture/${index}${downtarget.value === index ? 1 : 0}.png`,
|
||||||
b: downtarget.value === index ? "#E2EDFC" : "",
|
b: downtarget.value === index ? "#E2EDFC" : "",
|
||||||
c: common_vendor.t(item),
|
c: index === bottomTargetIndex.value ? 1 : "",
|
||||||
d: index,
|
d: common_vendor.t(item),
|
||||||
e: downtarget.value === index ? "#1486EB" : "",
|
e: index,
|
||||||
f: common_vendor.o(($event) => clickDownCard(index), index)
|
f: downtarget.value === index ? "#1486EB" : "",
|
||||||
|
g: common_vendor.o(($event) => clickDownCard(index), index)
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
k: typeNow.value === 0
|
n: typeNow.value === 0
|
||||||
}, typeNow.value === 0 ? {
|
}, typeNow.value === 0 ? common_vendor.e({
|
||||||
l: common_assets._imports_4
|
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
|
q: (_c = filteredMenu.value[menuIndex.value]) == null ? void 0 : _c.elderInfo
|
||||||
}, typeNow.value === 1 ? {
|
}, ((_d = filteredMenu.value[menuIndex.value]) == null ? void 0 : _d.elderInfo) ? {
|
||||||
n: common_assets._imports_5
|
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 ? {
|
}, typeNow.value === 0 ? {
|
||||||
p: common_vendor.f(iconArray.value, (item, index, i0) => {
|
F: common_vendor.f(iconArray.value, (item, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: item.url,
|
a: item.url,
|
||||||
b: common_vendor.t(item.name),
|
b: common_vendor.t(item.name),
|
||||||
|
|
@ -1025,31 +1060,22 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
} : {}, {
|
} : {}, {
|
||||||
q: typeNow.value === 1
|
G: typeNow.value === 1
|
||||||
}, typeNow.value === 1 ? {
|
}, typeNow.value === 1 ? common_vendor.e({
|
||||||
r: common_assets._imports_6,
|
H: common_assets._imports_6,
|
||||||
s: common_assets._imports_7,
|
I: common_assets._imports_7,
|
||||||
t: common_assets._imports_8
|
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,
|
L: common_assets._imports_8
|
||||||
w: common_vendor.p({
|
}) : {}, {
|
||||||
width: `600rpx`,
|
M: common_vendor.t(serveritem.value.startTime),
|
||||||
height: `500rpx`,
|
N: common_vendor.t(serveritem.value.endTime),
|
||||||
links: blueArray.value,
|
O: common_assets._imports_9,
|
||||||
playing: photoplay.value,
|
P: `https://www.focusnu.com/nursingunit101/sys/common/static/${serveritem.value.immediateFile}`,
|
||||||
loop: true,
|
Q: common_vendor.t(serveritem.value.typeName),
|
||||||
interval: 120
|
R: common_vendor.f(cameraArray.value, (item, index, i0) => {
|
||||||
}),
|
|
||||||
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) => {
|
|
||||||
return {
|
return {
|
||||||
a: `/static/index/camera/${index}${cameratarget.value.includes(index) ? 1 : 0}.png`,
|
a: `/static/index/camera/${index}${cameratarget.value.includes(index) ? 1 : 0}.png`,
|
||||||
b: cameratarget.value.includes(index) ? `#DDE9F0` : ``,
|
b: cameratarget.value.includes(index) ? `#DDE9F0` : ``,
|
||||||
|
|
@ -1058,9 +1084,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
e: common_vendor.o(($event) => clickcamera(index))
|
e: common_vendor.o(($event) => clickcamera(index))
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
A: common_assets._imports_11,
|
S: common_assets._imports_10,
|
||||||
B: common_vendor.o(($event) => jumpopen.value = false),
|
T: common_vendor.o(($event) => jumpopen.value = false),
|
||||||
C: common_vendor.f(where, (item, index, i0) => {
|
U: common_vendor.f(where, (item, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: wheretarget.value === index ? item.target : item.url,
|
a: wheretarget.value === index ? item.target : item.url,
|
||||||
b: common_vendor.t(item.name),
|
b: common_vendor.t(item.name),
|
||||||
|
|
@ -1070,14 +1096,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||||
f: wheretarget.value === index ? "#E5E8EE" : ""
|
f: wheretarget.value === index ? "#E5E8EE" : ""
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
D: jumpopen.value,
|
V: jumpopen.value,
|
||||||
E: common_vendor.o(movecard),
|
W: common_vendor.o(movecard),
|
||||||
F: common_vendor.p({
|
X: common_vendor.p({
|
||||||
getblue: getblue.value,
|
getblue: getblue.value,
|
||||||
moveleft: 5
|
moveleft: 5
|
||||||
}),
|
}),
|
||||||
G: common_vendor.o(movecamera),
|
Y: common_vendor.o(movecamera),
|
||||||
H: !cameratarget.value.includes(5)
|
Z: !cameratarget.value.includes(5)
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -51,20 +51,6 @@
|
||||||
width: 90%;
|
width: 90%;
|
||||||
position: relative;
|
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 {
|
.view .view-right .scroll-vi.data-v-4b26e9e6 {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -94,26 +80,15 @@
|
||||||
margin-top: 18rpx;
|
margin-top: 18rpx;
|
||||||
font-size: 25rpx;
|
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 {
|
.new-weight.data-v-4b26e9e6 {
|
||||||
margin: 0 30rpx;
|
margin: 0 30rpx;
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
}
|
}
|
||||||
.big-bgc.data-v-4b26e9e6 {
|
.big-bgc.data-v-4b26e9e6 {
|
||||||
margin-left: -30rpx;
|
margin-left: -20rpx;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
width: 1330rpx;
|
width: 1320rpx;
|
||||||
height: 1045rpx;
|
height: 1045rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -122,27 +97,6 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
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 {
|
@keyframes glowFlash-4b26e9e6 {
|
||||||
0%,
|
0%,
|
||||||
100% {
|
100% {
|
||||||
|
|
@ -225,9 +179,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
/* 关键:禁用 stretch,子项按自己的高度 */
|
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
/* 多行时顶端对齐(可选) */
|
|
||||||
}
|
}
|
||||||
.bottom-view .button-father.data-v-4b26e9e6 {
|
.bottom-view .button-father.data-v-4b26e9e6 {
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
|
|
@ -327,14 +279,6 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: 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 {
|
.warning.data-v-4b26e9e6 {
|
||||||
animation: glowFlash-4b26e9e6 1.2s infinite ease-in-out;
|
animation: glowFlash-4b26e9e6 1.2s infinite ease-in-out;
|
||||||
border: 1rpx solid #ff5757;
|
border: 1rpx solid #ff5757;
|
||||||
|
|
@ -375,7 +319,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 220rpx;
|
top: 220rpx;
|
||||||
left: 0%;
|
left: 0%;
|
||||||
width: 350rpx;
|
width: 450rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
background: linear-gradient(to bottom, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
background: linear-gradient(to bottom, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
@ -383,9 +327,9 @@
|
||||||
}
|
}
|
||||||
.zhezhao-bottom.data-v-4b26e9e6 {
|
.zhezhao-bottom.data-v-4b26e9e6 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 450rpx;
|
bottom: 380rpx;
|
||||||
left: 0%;
|
left: 0%;
|
||||||
width: 350rpx;
|
width: 450rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
background: linear-gradient(to top, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
background: linear-gradient(to top, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue