999999999999999999
|
|
@ -2,8 +2,8 @@
|
|||
"name" : "护理单元",
|
||||
"appid" : "__UNI__FB2D473",
|
||||
"description" : "护理单元",
|
||||
"versionName" : "1.6.1",
|
||||
"versionCode" : 161,
|
||||
"versionName" : "1.6.2",
|
||||
"versionCode" : 162,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
|
|
|||
|
|
@ -51,9 +51,9 @@
|
|||
"path": "pages/camera",
|
||||
"style": {
|
||||
"position": "absolute",
|
||||
"left": "250px",
|
||||
"left": "230px",
|
||||
"top": "120px",
|
||||
"width": "630px",
|
||||
"width": "650px",
|
||||
"height": "510px",
|
||||
"background": "transparent"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@
|
|||
const getImg = () => {
|
||||
if (/^\d{11}$/.test(form.username)) {
|
||||
isRel(form.username).then((res : any) => {
|
||||
console.log("^^^^^^^^^^6",res)
|
||||
if (res.result !== null && res.result.serverUrl) {
|
||||
uni.setStorageSync('serverUrl', res.result.serverUrl);
|
||||
console.log("url",res.result.serverUrl)
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ export const movedirection = (direction,startOrNot) => {
|
|||
return request({ url, method: 'get' });
|
||||
}
|
||||
|
||||
// // 移动表格
|
||||
// export const addBatch = (params) => {
|
||||
// return request({
|
||||
// url: '/nuIpadApi/nuBizNuCustomerServer/addBatch',
|
||||
// method: 'post',
|
||||
// data: params,
|
||||
// })
|
||||
// }
|
||||
|
||||
// 获取护理单元
|
||||
export const queryPadPageList = () => {
|
||||
return request({
|
||||
url: `${uni.getStorageSync('serverUrl')}/api/pad/baseInfo/queryPadPageList`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
@ -108,35 +108,6 @@
|
|||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
z-index: 1;
|
||||
|
||||
// .saoma-input {
|
||||
// background-color: #fff;
|
||||
// width: 550rpx;
|
||||
// height: 90rpx;
|
||||
// border-radius: 30rpx;
|
||||
// padding-left: 100rpx;
|
||||
// z-index: 2;
|
||||
// }
|
||||
|
||||
// .left-img {
|
||||
// width: 50rpx;
|
||||
// height: 50rpx;
|
||||
// position: absolute;
|
||||
// top: 50%;
|
||||
// left: 30rpx;
|
||||
// transform: translateY(-50%);
|
||||
// z-index: 3;
|
||||
// }
|
||||
|
||||
// .right-img {
|
||||
// width: 50rpx;
|
||||
// height: 50rpx;
|
||||
// position: absolute;
|
||||
// top: 50%;
|
||||
// right: 220rpx;
|
||||
// transform: translateY(-50%);
|
||||
// z-index: 2;
|
||||
// }
|
||||
}
|
||||
|
||||
.blue-button {
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 313 KiB |
|
|
@ -9,7 +9,7 @@ function formatAppLog(type, filename, ...args) {
|
|||
console[type].apply(console, [...args, filename]);
|
||||
}
|
||||
}
|
||||
const _style_0 = { "center-column": { "": { "width": 630, "height": 510, "overflow": "hidden" } } };
|
||||
const _style_0 = { "center-column": { "": { "width": 650, "height": 510, "borderRadius": 30, "overflow": "hidden" } } };
|
||||
const _export_sfc = (sfc, props) => {
|
||||
const target = sfc.__vccOpts || sfc;
|
||||
for (const [key, val] of props) {
|
||||
|
|
@ -41,7 +41,7 @@ const _sfc_main = {
|
|||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:40", e);
|
||||
formatAppLog("log", "at pages/camera.nvue:33", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "录屏成功",
|
||||
|
|
@ -98,27 +98,27 @@ const _sfc_main = {
|
|||
methods: {
|
||||
/* ------------------ 原有功能 ------------------ */
|
||||
handleTelEvent(event) {
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "Tel event detail:", event.detail);
|
||||
formatAppLog("log", "at pages/camera.nvue:95", "Tel event detail:", event.detail);
|
||||
},
|
||||
switchDisplay(mode) {
|
||||
formatAppLog("log", "at pages/camera.nvue:107", "zzzzz", mode);
|
||||
formatAppLog("log", "at pages/camera.nvue:100", "zzzzz", mode);
|
||||
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||
},
|
||||
startAlarm() {
|
||||
this.isAlarming = true;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:114", "startAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:107", "startAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
stopAlarm() {
|
||||
this.isAlarming = false;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:120", "stopAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:113", "stopAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
flipImage(type) {
|
||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:126", "flipImage callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:119", "flipImage callback:", res);
|
||||
});
|
||||
},
|
||||
resumeOrPause() {
|
||||
|
|
@ -138,9 +138,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doSnapshot(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.snapShot) {
|
||||
uni.showToast({ title: "组件不支持 snapShot()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 snapShot()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -149,15 +155,26 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.snapShot((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:166", "snapShot callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:165", "snapShot callback:", res);
|
||||
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||
});
|
||||
uni.showToast({ title: "正在截屏...", icon: "none", duration: 800 });
|
||||
uni.showToast({
|
||||
title: "正在截屏...",
|
||||
icon: "none",
|
||||
duration: 800
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:171", "snapShot 调用失败", err);
|
||||
uni.showToast({ title: "snapShot 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:174", "snapShot 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "snapShot 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -165,26 +182,45 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStartRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.startRecord) {
|
||||
uni.showToast({ title: "组件不支持 startRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 startRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.startRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:191", "startRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:207", "startRecord callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isRecording = true;
|
||||
uni.showToast({ title: "录屏已开始", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏已开始",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:200", "startRecord 调用失败", err);
|
||||
uni.showToast({ title: "startRecord 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:222", "startRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "startRecord 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -192,9 +228,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopRecord) {
|
||||
uni.showToast({ title: "组件不支持 stopRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 stopRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -203,14 +245,21 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:226", "stopRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:261", "stopRecord callback:", res);
|
||||
this._handleRecordResultFromNative(res, payload.reqId);
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:231", "stopRecord 调用失败", err);
|
||||
uni.showToast({ title: "stopRecord 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:266", "stopRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopRecord 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -218,9 +267,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doOpenTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.openTalk) {
|
||||
uni.showToast({ title: "组件不支持 openTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 openTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -229,18 +284,31 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:255", "openTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:303", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = true;
|
||||
uni.showToast({ title: "尝试建立对讲连接...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "尝试建立对讲连接...",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:264", "openTalk 调用失败", err);
|
||||
uni.showToast({ title: "openTalk 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:318", "openTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "openTalk 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -248,25 +316,41 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopTalk) {
|
||||
uni.showToast({ title: "组件不支持 stopTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 stopTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:284", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:351", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:291", "stopTalk 调用失败", err);
|
||||
uni.showToast({ title: "stopTalk 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:361", "stopTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -274,119 +358,182 @@ const _sfc_main = {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:304", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:381", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:312", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:389", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:319", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:396", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
if (this._pendingRequests.talk && this._pendingRequests.talk.length) {
|
||||
while (this._pendingRequests.talk.length) {
|
||||
const reqId = this._pendingRequests.talk.shift();
|
||||
uni.$emit(`monitor:response:${reqId}`, { ok: true, payload });
|
||||
uni.$emit(`monitor:response:${reqId}`, {
|
||||
ok: true,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
switch ((status || "").toLowerCase()) {
|
||||
case "loading":
|
||||
uni.showToast({ title: tips || "对讲连接中...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲连接中...",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "playing":
|
||||
uni.showToast({ title: tips || "对讲已连接", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲已连接",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "stopped":
|
||||
uni.showToast({ title: tips || "对讲已停止", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲已停止",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
case "failed":
|
||||
uni.showToast({ title: tips || "对讲失败", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲失败",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
default:
|
||||
uni.showToast({ title: tips || "对讲状态: " + (status || "unknown"), icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲状态: " + (status || "unknown"),
|
||||
icon: "none"
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
/* ------------------ 原生结果的内部处理函数(统一处理 callback / event) ------------------ */
|
||||
_handleSnapshotResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "截图没有返回数据", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "截图没有返回数据",
|
||||
icon: "none"
|
||||
});
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:372", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:473", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.snapshot && this._pendingRequests.snapshot.length) {
|
||||
while (this._pendingRequests.snapshot.length) {
|
||||
const rid = this._pendingRequests.snapshot.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:snapshot:done", payload);
|
||||
if (payload.snapShotResult === true || payload.snapShotResult === "true") {
|
||||
const url = payload.snapShotUrl || payload.snapShotPath || payload.url;
|
||||
uni.showToast({ title: "截图成功", icon: "success", duration: 1200 });
|
||||
uni.showToast({
|
||||
title: "截图成功",
|
||||
icon: "success",
|
||||
duration: 1200
|
||||
});
|
||||
if (url) {
|
||||
uni.previewImage({ urls: [url] });
|
||||
uni.previewImage({
|
||||
urls: [url]
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const err = payload.snapShotErrorCode || payload.error || "unknown";
|
||||
uni.showToast({ title: "截图失败: " + err, icon: "none", duration: 2e3 });
|
||||
formatAppLog("warn", "at pages/camera.nvue:399", "snapshot failed reason:", err, payload);
|
||||
uni.showToast({
|
||||
title: "截图失败: " + err,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:516", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "录屏没有返回数据", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏没有返回数据",
|
||||
icon: "none"
|
||||
});
|
||||
this.isRecording = false;
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:415", "record payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:538", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.record && this._pendingRequests.record.length) {
|
||||
while (this._pendingRequests.record.length) {
|
||||
const rid = this._pendingRequests.record.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:record:done", payload);
|
||||
if (payload.recordUrl) {
|
||||
uni.showToast({ title: "录屏完成", icon: "success", duration: 1400 });
|
||||
uni.showToast({
|
||||
title: "录屏完成",
|
||||
icon: "success",
|
||||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:436", "录屏地址:", payload.recordUrl);
|
||||
formatAppLog("log", "at pages/camera.nvue:569", "录屏地址:", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({ title: "录屏失败: " + payload.recordFailedReason, icon: "none", duration: 2e3 });
|
||||
uni.showToast({
|
||||
title: "录屏失败: " + payload.recordFailedReason,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:440", "record failed reason:", payload.recordFailedReason);
|
||||
formatAppLog("warn", "at pages/camera.nvue:577", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({ title: "录屏操作已完成(返回未知)", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏操作已完成(返回未知)",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
this.isRecording = false;
|
||||
}
|
||||
|
|
@ -406,7 +553,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||
createVNode(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
style: { "width": "630px", "height": "510px" },
|
||||
style: { "width": "650px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
"id": "__UNI__FB2D473",
|
||||
"name": "护理单元",
|
||||
"version": {
|
||||
"name": "1.6.1",
|
||||
"code": 161
|
||||
"name": "1.6.2",
|
||||
"code": 162
|
||||
},
|
||||
"description": "护理单元",
|
||||
"developer": {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
.index-content-other[data-v-33cdb877]{width:100%;height:100%;transition:opacity 1s ease;position:relative;background-color:#eff0f4}.index-content-down[data-v-33cdb877]{position:absolute;bottom:1.25rem;left:50%;transform:translate(-50%)}.index-content-right[data-v-33cdb877]{width:100%;border-radius:1.5625rem;display:flex;align-items:center;padding-top:3.125rem;font-size:1rem;position:relative}.index-content-right .index-content-title[data-v-33cdb877]{position:absolute;top:1.875rem;left:1.875rem;display:flex;align-items:center}.index-content-right .index-content-title .shu[data-v-33cdb877]{width:.625rem;height:1.5625rem;background:linear-gradient(to right,#0052c2,#00b4ff);border-radius:.625rem;margin-right:.9375rem}.index-content-right .index-content-title .shu-font[data-v-33cdb877]{color:#415273;font-size:1.09375rem}.saomiao[data-v-33cdb877]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;z-index:1}.blue-button[data-v-33cdb877]{margin-left:.9375rem;width:5.3125rem;height:2.8125rem;border-radius:1.25rem;display:flex;justify-content:center;align-items:center;color:#007cff;font-size:.9375rem;background-color:#ddf0ff;border:.03125rem solid #007CFF}.big-ball[data-v-33cdb877]{width:6.25rem;height:6.25rem;position:absolute;top:50%;left:-1.71875rem;transform:translateY(-50%);border-radius:50%;background-color:#dbe4f6}.big-ball .ball[data-v-33cdb877]{width:4.6875rem;height:4.6875rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:#cfddf1}.back-img[data-v-33cdb877]{width:.9375rem;height:.9375rem;margin-left:3.125rem;margin-right:.625rem}.big-bgc[data-v-33cdb877]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56.25rem;height:28.125rem}.big-img[data-v-33cdb877]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10.9375rem;height:10.9375rem}.big-img[data-v-33cdb877]:before{content:"";position:absolute;top:0;left:0;width:100%;animation:scanMove-33cdb877 1.3s ease-in-out infinite;z-index:1001;height:2.5rem;background:linear-gradient(to bottom,rgba(5,170,254,.6),rgba(5,170,254,.1),transparent);will-change:transform}.big-QR[data-v-33cdb877]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:9.375rem;height:9.375rem}.big-font[data-v-33cdb877]{position:absolute;color:#888a8b;left:0;bottom:-2.5rem;font-size:1rem;width:100%;display:flex;justify-content:center}@keyframes scanMove-33cdb877{0%{top:5%}to{top:95%}}
|
||||
.index-content-other[data-v-b2122159]{width:100%;height:100%;transition:opacity 1s ease;position:relative;background-color:#eff0f4}.index-content-down[data-v-b2122159]{position:absolute;bottom:1.25rem;left:50%;transform:translate(-50%)}.index-content-right[data-v-b2122159]{width:100%;border-radius:1.5625rem;display:flex;align-items:center;padding-top:3.125rem;font-size:1rem;position:relative}.index-content-right .index-content-title[data-v-b2122159]{position:absolute;top:1.875rem;left:1.875rem;display:flex;align-items:center}.index-content-right .index-content-title .shu[data-v-b2122159]{width:.625rem;height:1.5625rem;background:linear-gradient(to right,#0052c2,#00b4ff);border-radius:.625rem;margin-right:.9375rem}.index-content-right .index-content-title .shu-font[data-v-b2122159]{color:#415273;font-size:1.09375rem}.saomiao[data-v-b2122159]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;z-index:1}.blue-button[data-v-b2122159]{margin-left:.9375rem;width:5.3125rem;height:2.8125rem;border-radius:1.25rem;display:flex;justify-content:center;align-items:center;color:#007cff;font-size:.9375rem;background-color:#ddf0ff;border:.03125rem solid #007CFF}.big-ball[data-v-b2122159]{width:6.25rem;height:6.25rem;position:absolute;top:50%;left:-1.71875rem;transform:translateY(-50%);border-radius:50%;background-color:#dbe4f6}.big-ball .ball[data-v-b2122159]{width:4.6875rem;height:4.6875rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:#cfddf1}.back-img[data-v-b2122159]{width:.9375rem;height:.9375rem;margin-left:3.125rem;margin-right:.625rem}.big-bgc[data-v-b2122159]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56.25rem;height:28.125rem}.big-img[data-v-b2122159]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10.9375rem;height:10.9375rem}.big-img[data-v-b2122159]:before{content:"";position:absolute;top:0;left:0;width:100%;animation:scanMove-b2122159 1.3s ease-in-out infinite;z-index:1001;height:2.5rem;background:linear-gradient(to bottom,rgba(5,170,254,.6),rgba(5,170,254,.1),transparent);will-change:transform}.big-QR[data-v-b2122159]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:9.375rem;height:9.375rem}.big-font[data-v-b2122159]{position:absolute;color:#888a8b;left:0;bottom:-2.5rem;font-size:1rem;width:100%;display:flex;justify-content:center}@keyframes scanMove-b2122159{0%{top:5%}to{top:95%}}
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 401 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
|
@ -1,4 +1,4 @@
|
|||
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode } from "vue";
|
||||
import { resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createCommentVNode, createVNode } from "vue";
|
||||
function requireNativePlugin(name) {
|
||||
return weex.requireModule(name);
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ function formatAppLog(type, filename, ...args) {
|
|||
console[type].apply(console, [...args, filename]);
|
||||
}
|
||||
}
|
||||
const _style_0 = { "center-column": { "": { "width": 630, "height": 510, "overflow": "hidden" } } };
|
||||
const _style_0 = { "center-column": { "": { "width": 650, "height": 510, "borderRadius": 30, "overflow": "hidden" } } };
|
||||
const _export_sfc = (sfc, props) => {
|
||||
const target = sfc.__vccOpts || sfc;
|
||||
for (const [key, val] of props) {
|
||||
|
|
@ -34,14 +34,15 @@ const _sfc_main = {
|
|||
record: [],
|
||||
talk: []
|
||||
},
|
||||
suo: true
|
||||
suo: true,
|
||||
isshow: true
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:40", e);
|
||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "录屏成功",
|
||||
|
|
@ -66,6 +67,7 @@ const _sfc_main = {
|
|||
}
|
||||
});
|
||||
}
|
||||
uni.$on("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||
uni.$on("monitor:stopRecord", this.doStopRecord);
|
||||
|
|
@ -81,6 +83,7 @@ const _sfc_main = {
|
|||
uni.$on("monitor:test", this.test);
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||
uni.$off("monitor:stopRecord", this.doStopRecord);
|
||||
|
|
@ -98,27 +101,27 @@ const _sfc_main = {
|
|||
methods: {
|
||||
/* ------------------ 原有功能 ------------------ */
|
||||
handleTelEvent(event) {
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "Tel event detail:", event.detail);
|
||||
formatAppLog("log", "at pages/camera.nvue:97", "Tel event detail:", event.detail);
|
||||
},
|
||||
switchDisplay(mode) {
|
||||
formatAppLog("log", "at pages/camera.nvue:107", "zzzzz", mode);
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "zzzzz", mode);
|
||||
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||
},
|
||||
startAlarm() {
|
||||
this.isAlarming = true;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:114", "startAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:109", "startAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
stopAlarm() {
|
||||
this.isAlarming = false;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:120", "stopAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:115", "stopAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
flipImage(type) {
|
||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:126", "flipImage callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:121", "flipImage callback:", res);
|
||||
});
|
||||
},
|
||||
resumeOrPause() {
|
||||
|
|
@ -138,9 +141,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doSnapshot(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.snapShot) {
|
||||
uni.showToast({ title: "组件不支持 snapShot()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 snapShot()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -149,15 +158,26 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.snapShot((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:166", "snapShot callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:167", "snapShot callback:", res);
|
||||
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||
});
|
||||
uni.showToast({ title: "正在截屏...", icon: "none", duration: 800 });
|
||||
uni.showToast({
|
||||
title: "正在截屏...",
|
||||
icon: "none",
|
||||
duration: 800
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:171", "snapShot 调用失败", err);
|
||||
uni.showToast({ title: "snapShot 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:176", "snapShot 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "snapShot 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -165,26 +185,45 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStartRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.startRecord) {
|
||||
uni.showToast({ title: "组件不支持 startRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 startRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.startRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:191", "startRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:209", "startRecord callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isRecording = true;
|
||||
uni.showToast({ title: "录屏已开始", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏已开始",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:200", "startRecord 调用失败", err);
|
||||
uni.showToast({ title: "startRecord 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:224", "startRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "startRecord 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -192,9 +231,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopRecord) {
|
||||
uni.showToast({ title: "组件不支持 stopRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 stopRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -203,14 +248,21 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:226", "stopRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:263", "stopRecord callback:", res);
|
||||
this._handleRecordResultFromNative(res, payload.reqId);
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:231", "stopRecord 调用失败", err);
|
||||
uni.showToast({ title: "stopRecord 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:268", "stopRecord 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopRecord 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -218,9 +270,15 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doOpenTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.openTalk) {
|
||||
uni.showToast({ title: "组件不支持 openTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 openTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -229,18 +287,31 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:255", "openTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:305", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = true;
|
||||
uni.showToast({ title: "尝试建立对讲连接...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "尝试建立对讲连接...",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:264", "openTalk 调用失败", err);
|
||||
uni.showToast({ title: "openTalk 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:320", "openTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "openTalk 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -248,25 +319,41 @@ const _sfc_main = {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopTalk) {
|
||||
uni.showToast({ title: "组件不支持 stopTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "组件不支持 stopTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:284", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:353", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:291", "stopTalk 调用失败", err);
|
||||
uni.showToast({ title: "stopTalk 调用失败", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:363", "stopTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk 调用失败",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -274,119 +361,182 @@ const _sfc_main = {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:304", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:383", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:312", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:391", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:319", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:398", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
if (this._pendingRequests.talk && this._pendingRequests.talk.length) {
|
||||
while (this._pendingRequests.talk.length) {
|
||||
const reqId = this._pendingRequests.talk.shift();
|
||||
uni.$emit(`monitor:response:${reqId}`, { ok: true, payload });
|
||||
uni.$emit(`monitor:response:${reqId}`, {
|
||||
ok: true,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
switch ((status || "").toLowerCase()) {
|
||||
case "loading":
|
||||
uni.showToast({ title: tips || "对讲连接中...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲连接中...",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "playing":
|
||||
uni.showToast({ title: tips || "对讲已连接", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲已连接",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "stopped":
|
||||
uni.showToast({ title: tips || "对讲已停止", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲已停止",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
case "failed":
|
||||
uni.showToast({ title: tips || "对讲失败", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲失败",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
default:
|
||||
uni.showToast({ title: tips || "对讲状态: " + (status || "unknown"), icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "对讲状态: " + (status || "unknown"),
|
||||
icon: "none"
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
/* ------------------ 原生结果的内部处理函数(统一处理 callback / event) ------------------ */
|
||||
_handleSnapshotResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "截图没有返回数据", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "截图没有返回数据",
|
||||
icon: "none"
|
||||
});
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:372", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:475", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.snapshot && this._pendingRequests.snapshot.length) {
|
||||
while (this._pendingRequests.snapshot.length) {
|
||||
const rid = this._pendingRequests.snapshot.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:snapshot:done", payload);
|
||||
if (payload.snapShotResult === true || payload.snapShotResult === "true") {
|
||||
const url = payload.snapShotUrl || payload.snapShotPath || payload.url;
|
||||
uni.showToast({ title: "截图成功", icon: "success", duration: 1200 });
|
||||
uni.showToast({
|
||||
title: "截图成功",
|
||||
icon: "success",
|
||||
duration: 1200
|
||||
});
|
||||
if (url) {
|
||||
uni.previewImage({ urls: [url] });
|
||||
uni.previewImage({
|
||||
urls: [url]
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const err = payload.snapShotErrorCode || payload.error || "unknown";
|
||||
uni.showToast({ title: "截图失败: " + err, icon: "none", duration: 2e3 });
|
||||
formatAppLog("warn", "at pages/camera.nvue:399", "snapshot failed reason:", err, payload);
|
||||
uni.showToast({
|
||||
title: "截图失败: " + err,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:518", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "录屏没有返回数据", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏没有返回数据",
|
||||
icon: "none"
|
||||
});
|
||||
this.isRecording = false;
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:415", "record payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:540", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.record && this._pendingRequests.record.length) {
|
||||
while (this._pendingRequests.record.length) {
|
||||
const rid = this._pendingRequests.record.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:record:done", payload);
|
||||
if (payload.recordUrl) {
|
||||
uni.showToast({ title: "录屏完成", icon: "success", duration: 1400 });
|
||||
uni.showToast({
|
||||
title: "录屏完成",
|
||||
icon: "success",
|
||||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:436", "录屏地址:", payload.recordUrl);
|
||||
formatAppLog("log", "at pages/camera.nvue:571", "录屏地址:", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({ title: "录屏失败: " + payload.recordFailedReason, icon: "none", duration: 2e3 });
|
||||
uni.showToast({
|
||||
title: "录屏失败: " + payload.recordFailedReason,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:440", "record failed reason:", payload.recordFailedReason);
|
||||
formatAppLog("warn", "at pages/camera.nvue:579", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({ title: "录屏操作已完成(返回未知)", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "录屏操作已完成(返回未知)",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
this.isRecording = false;
|
||||
}
|
||||
|
|
@ -402,18 +552,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||
bubble: "true",
|
||||
style: { flexDirection: "column" }
|
||||
}, [
|
||||
createElementVNode("div", { class: "center-column" }, [
|
||||
createCommentVNode(" 视频播放组件 "),
|
||||
createVNode(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
style: { "width": "630px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
])
|
||||
createElementVNode(
|
||||
"div",
|
||||
{
|
||||
class: "center-column",
|
||||
style: normalizeStyle({ height: $data.isshow ? "510px" : "0px" })
|
||||
},
|
||||
[
|
||||
createCommentVNode(" 视频播放组件 "),
|
||||
createVNode(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
style: { "width": "650px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
],
|
||||
4
|
||||
/* STYLE */
|
||||
)
|
||||
]);
|
||||
}
|
||||
const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app/pages/camera.nvue"]]);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n\t/*每个页面公共css */\r\n\t\r\n</style>\n","import App from './App'\r\n// 引入 uView UI\r\nimport uView from './uni_modules/vk-uview-ui';\r\n\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nimport donghua from '@/component/public/donghua.vue'\r\nimport arrowkeys from '@/component/public/newgame/arrowkeys.vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\tapp.component('donghua', donghua)\r\n\tapp.component('arrowkeys', arrowkeys)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACSD,MAAM,UAAU,MAAW;AAC3B,MAAM,YAAY,MAAW;AACtB,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAG5B,MAAI,IAAIC,iCAAK;AACb,MAAI,UAAU,WAAW,OAAO;AAChC,MAAI,UAAU,aAAa,SAAS;AACpC,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n\t/*每个页面公共css */\r\n\t\r\n</style>\n","import App from './App'\r\n// 引入 uView UI\r\nimport uView from './uni_modules/vk-uview-ui';\r\n\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nimport donghua from '@/component/public/donghua.vue'\r\nimport arrowkeys from '@/component/public/newgame/arrowkeys.vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\tapp.component('donghua', donghua)\r\n\tapp.component('arrowkeys', arrowkeys)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACSD,MAAM,UAAU,MAAW;AAC3B,MAAM,YAAY,MAAW;AACtB,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAG5B,MAAI,IAAIC,iCAAK;AACb,MAAI,UAAU,WAAW,OAAO;AAChC,MAAI,UAAU,aAAa,SAAS;AACpC,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"exit.js","sources":["component/public/exit.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV9hcHAvY29tcG9uZW50L3B1YmxpYy9leGl0LnZ1ZQ"],"sourcesContent":["<template>\r\n\t<!-- 通过 v-show 控制显隐,并根据 show 添加 is-active 类触发 CSS 过渡 -->\r\n\t<view :class=\"['neuro-wrapper', donghua ? 'is-active' : '']\" v-show=\"show\">\r\n\t\t<!-- 遮罩层,点击触发关闭 -->\r\n\t\t<view class=\"neuro-mask\" @click=\"handleClose\"></view>\r\n\t\t<!-- 拟态框,阻止冒泡点击 -->\r\n\t\t<view class=\"neuro-box\" @click.stop>\r\n\r\n\t\t\t<view class=\"button-father\">\r\n\t\t\t\t<view class=\"button-white\" @click=\"handleClose\">取消</view>\r\n\t\t\t\t<view class=\"button\" @click=\"go\">确定</view>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"title\">退出登录</view>\r\n\t\t\t<view class=\"card-font\">\r\n\t\t\t\t确定要注销155******76账户吗\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\twatch\r\n\t} from 'vue'\r\n\r\n\t// 接收 show 属性并支持 update:show 事件\r\n\tconst props = defineProps({\r\n\t\tshow: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t},\r\n\r\n\t});\r\n\t// 区分首次渲染与动态添加\r\n\tconst donghua = ref(false);\r\n\twatch(\r\n\t\t() => props.show,\r\n\t\t(newVal, oldVal) => {\r\n\t\t\tif (!oldVal && newVal) {\r\n\t\t\t\tdonghua.value = false\r\n\t\t\t\tsetTimeout(()=>donghua.value = true,50)\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t)\r\n\tconst emit = defineEmits([\"close\"]);\r\n\r\n\t// 关闭方法,通知父组件更新 show\r\n\tfunction handleClose() {\r\n\t\temit('close');\r\n\t}\r\n\tconst go = () => {\r\n\t\tuni.setStorageSync('token', 1);\r\n\t\tplus.runtime.quit();\r\n\t\t\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t/* 容器默认隐藏,透明度为 0,不接受点击 */\r\n\t.neuro-wrapper {\r\n\t\tposition: fixed;\r\n\t\tinset: 0;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tz-index: 999;\r\n\t\topacity: 0;\r\n\t\tpointer-events: none;\r\n\t\ttransition: opacity 0.3s ease;\r\n\t}\r\n\r\n\t/* 显示时透明度过渡到 1,可接受点击 */\r\n\t.neuro-wrapper.is-active {\r\n\t\topacity: 1;\r\n\t\tpointer-events: auto;\r\n\t}\r\n\r\n\t/* 遮罩层,半透明黑色 */\r\n\t.neuro-mask {\r\n\t\tposition: absolute;\r\n\t\tinset: 0;\r\n\t\tbackground-color: rgba(0, 0, 0, 0.3);\r\n\t}\r\n\r\n\t/* 拟态框 固定尺寸 + 阴影样式 + 相对定位于 wrapper */\r\n\t.neuro-box {\r\n\t\tposition: relative;\r\n\t\twidth: 600rpx;\r\n\t\theight: 450rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\t// justify-content: center;\r\n\t\talign-items: center;\r\n\t\t\r\n\t\t// background-image: url('https://www.focusnu.com/media/directive/index/whitepeople.png');\r\n\t\t// // background-size: 100% auto;\r\n\t\t// background-position: top center;\r\n\t\t// background-repeat: no-repeat;\r\n\t\tz-index: 1;\r\n\t\tpadding: 0 10%;\r\n\t}\r\n\r\n\t.button {\r\n\t\twidth: 47%;\r\n\t\t// background: linear-gradient(to left, #00C9FF, #0076FF);\r\n\t\tbackground-color: #ddf0ff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\t// color: #fff;\r\n\t\tcolor: #007CFF;\r\n\t\tborder: 1rpx solid #007CFF;\r\n\t\tfont-size: 25rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t}\r\n\r\n\t.title {\r\n\t\tmargin-top: 70rpx;\r\n\t}\r\n\r\n\t.card-font {\r\n\t\tmargin-top: 70rpx;\r\n\t\twidth: 600rpx;\r\n\t\tjustify-content: center;\r\n\t\tdisplay: flex;\r\n\t}\r\n\r\n\t.button-white {\r\n\t\twidth: 47%;\r\n\t\tborder: 2rpx solid #c3cacd;\r\n\t\tbackground: linear-gradient(to bottom, #f3f3f5, #dee4e9);\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tfont-size: 25rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t}\r\n\r\n\t.button-father {\r\n\t\tposition: absolute;\r\n\t\tbottom: 60rpx;\r\n\t\tleft: 50%;\r\n\t\ttransform: translateX(-50%);\r\n\t\twidth: 100%;\r\n\t\theight: 70rpx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tpadding: 0 50rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_app/component/public/exit.vue'\nwx.createComponent(Component)"],"names":["ref","watch","uni"],"mappings":";;;;;;;;;;;;AA4BC,UAAM,QAAQ;AAQd,UAAM,UAAUA,kBAAI,KAAK;AACzBC,kBAAK;AAAA,MACJ,MAAM,MAAM;AAAA,MACZ,CAAC,QAAQ,WAAW;AACnB,YAAI,CAAC,UAAU,QAAQ;AACtB,kBAAQ,QAAQ;AAChB,qBAAW,MAAI,QAAQ,QAAQ,MAAK,EAAE;AAAA,QAEtC;AAAA,MACD;AAAA,IACD;AACD,UAAM,OAAO;AAGb,aAAS,cAAc;AACtB,WAAK,OAAO;AAAA,IACZ;AACD,UAAM,KAAK,MAAM;AAChBC,oBAAAA,MAAI,eAAe,SAAS,CAAC;AAC7B,WAAK,QAAQ;IAEb;;;;;;;;;;;;;;;ACxDF,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"exit.js","sources":["component/public/exit.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovaGxkeV9hcHAvY29tcG9uZW50L3B1YmxpYy9leGl0LnZ1ZQ"],"sourcesContent":["<template>\r\n\t<!-- 通过 v-show 控制显隐,并根据 show 添加 is-active 类触发 CSS 过渡 -->\r\n\t<view :class=\"['neuro-wrapper', donghua ? 'is-active' : '']\" v-show=\"show\">\r\n\t\t<!-- 遮罩层,点击触发关闭 -->\r\n\t\t<view class=\"neuro-mask\" @click=\"handleClose\"></view>\r\n\t\t<!-- 拟态框,阻止冒泡点击 -->\r\n\t\t<view class=\"neuro-box\" @click.stop>\r\n\r\n\t\t\t<view class=\"button-father\">\r\n\t\t\t\t<view class=\"button-white\" @click=\"handleClose\">取消</view>\r\n\t\t\t\t<view class=\"button\" @click=\"go\">确定</view>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"title\">退出登录</view>\r\n\t\t\t<view class=\"card-font\">\r\n\t\t\t\t确定要注销130******31账户吗\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\twatch\r\n\t} from 'vue'\r\n\r\n\t// 接收 show 属性并支持 update:show 事件\r\n\tconst props = defineProps({\r\n\t\tshow: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t},\r\n\r\n\t});\r\n\t// 区分首次渲染与动态添加\r\n\tconst donghua = ref(false);\r\n\twatch(\r\n\t\t() => props.show,\r\n\t\t(newVal, oldVal) => {\r\n\t\t\tif (!oldVal && newVal) {\r\n\t\t\t\tdonghua.value = false\r\n\t\t\t\tsetTimeout(()=>donghua.value = true,50)\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t)\r\n\tconst emit = defineEmits([\"close\"]);\r\n\r\n\t// 关闭方法,通知父组件更新 show\r\n\tfunction handleClose() {\r\n\t\temit('close');\r\n\t}\r\n\tconst go = () => {\r\n\t\tuni.setStorageSync('token', 1);\r\n\t\t// plus.runtime.quit();\r\n\t\t\r\n\t\tuni.redirectTo({\r\n\t\t\turl: '/pages/login/login'\r\n\t\t});\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t/* 容器默认隐藏,透明度为 0,不接受点击 */\r\n\t.neuro-wrapper {\r\n\t\tposition: fixed;\r\n\t\tinset: 0;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tz-index: 999;\r\n\t\topacity: 0;\r\n\t\tpointer-events: none;\r\n\t\ttransition: opacity 0.3s ease;\r\n\t}\r\n\r\n\t/* 显示时透明度过渡到 1,可接受点击 */\r\n\t.neuro-wrapper.is-active {\r\n\t\topacity: 1;\r\n\t\tpointer-events: auto;\r\n\t}\r\n\r\n\t/* 遮罩层,半透明黑色 */\r\n\t.neuro-mask {\r\n\t\tposition: absolute;\r\n\t\tinset: 0;\r\n\t\tbackground-color: rgba(0, 0, 0, 0.3);\r\n\t}\r\n\r\n\t/* 拟态框 固定尺寸 + 阴影样式 + 相对定位于 wrapper */\r\n\t.neuro-box {\r\n\t\tposition: relative;\r\n\t\twidth: 600rpx;\r\n\t\theight: 450rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t\tbackground-color: #fff;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\t// justify-content: center;\r\n\t\talign-items: center;\r\n\t\t\r\n\t\t// background-image: url('https://www.focusnu.com/media/directive/index/whitepeople.png');\r\n\t\t// // background-size: 100% auto;\r\n\t\t// background-position: top center;\r\n\t\t// background-repeat: no-repeat;\r\n\t\tz-index: 1;\r\n\t\tpadding: 0 10%;\r\n\t}\r\n\r\n\t.button {\r\n\t\twidth: 47%;\r\n\t\t// background: linear-gradient(to left, #00C9FF, #0076FF);\r\n\t\tbackground-color: #ddf0ff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\t// color: #fff;\r\n\t\tcolor: #007CFF;\r\n\t\tborder: 1rpx solid #007CFF;\r\n\t\tfont-size: 25rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t}\r\n\r\n\t.title {\r\n\t\tmargin-top: 70rpx;\r\n\t}\r\n\r\n\t.card-font {\r\n\t\tmargin-top: 70rpx;\r\n\t\twidth: 600rpx;\r\n\t\tjustify-content: center;\r\n\t\tdisplay: flex;\r\n\t}\r\n\r\n\t.button-white {\r\n\t\twidth: 47%;\r\n\t\tborder: 2rpx solid #c3cacd;\r\n\t\tbackground: linear-gradient(to bottom, #f3f3f5, #dee4e9);\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tfont-size: 25rpx;\r\n\t\tborder-radius: 30rpx;\r\n\t}\r\n\r\n\t.button-father {\r\n\t\tposition: absolute;\r\n\t\tbottom: 60rpx;\r\n\t\tleft: 50%;\r\n\t\ttransform: translateX(-50%);\r\n\t\twidth: 100%;\r\n\t\theight: 70rpx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tpadding: 0 50rpx;\r\n\t}\r\n</style>","import Component from 'D:/hldy_app/component/public/exit.vue'\nwx.createComponent(Component)"],"names":["ref","watch","uni"],"mappings":";;;;;;;;;;;;AA4BC,UAAM,QAAQ;AAQd,UAAM,UAAUA,kBAAI,KAAK;AACzBC,kBAAK;AAAA,MACJ,MAAM,MAAM;AAAA,MACZ,CAAC,QAAQ,WAAW;AACnB,YAAI,CAAC,UAAU,QAAQ;AACtB,kBAAQ,QAAQ;AAChB,qBAAW,MAAI,QAAQ,QAAQ,MAAK,EAAE;AAAA,QAEtC;AAAA,MACD;AAAA,IACD;AACD,UAAM,OAAO;AAGb,aAAS,cAAc;AACtB,WAAK,OAAO;AAAA,IACZ;AACD,UAAM,KAAK,MAAM;AAChBC,oBAAAA,MAAI,eAAe,SAAS,CAAC;AAG7BA,oBAAAA,MAAI,WAAW;AAAA,QACd,KAAK;AAAA,MACR,CAAG;AAAA,IACD;;;;;;;;;;;;;;;AC3DF,GAAG,gBAAgB,SAAS;"}
|
||||
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/NursingNew/component/nurse/api.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"api.js","sources":["pages/NursingNew/component/nurse/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: '/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: '/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;;"}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"denglu.js","sources":["pages/denglu.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvZGVuZ2x1LnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view class=\"content\">\r\n\t\t<button class=\"typebutton\" type=\"primary\" @click=\"init\">初始化sdk</button>\r\n\t\t<button class=\"typebutton\" type=\"primary\" @click=\"login\">登陆</button>\r\n\t\t<button class=\"typebutton\" type=\"primary\" @click=\"logout\">退出登陆</button>\r\n\t\t<button class=\"typebutton\" type=\"primary\" @click=\"jumptonve\">跳到nvue</button>\r\n\t</view>\r\n</template>\r\n<script>\r\n\texport default {\r\n\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttitle: 'Hello'\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tvar globalEvent = uni.requireNativePlugin('globalEvent');\r\n\t\t\tglobalEvent.addEventListener('myEvent', function(e) {\r\n\t\t\t\tconsole.log('myEvent' + JSON.stringify(e));\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: 'myEvent' + JSON.stringify(e),\r\n\t\t\t\t\tduration: 2000\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\ttestAsyncFunc() {\r\n\t\t\t\t// 获取 module\r\n\t\t\t\tvar testModule = uni.requireNativePlugin(\"MonitorModule\")\r\n\r\n\t\t\t\tvar json = {\r\n\t\t\t\t\tdeviceId: '4',\r\n\t\t\t\t\tdeviceName: 'sdfsfsdf'\r\n\t\t\t\t}\r\n\t\t\t\t// 调用异步方法\r\n\t\t\t\ttestModule.gotoNativePage(json)\r\n\t\t\t},\r\n\t\t\tjumptonve() {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pages/ceshianzhuo'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tinit(event) {\r\n\t\t\t\tvar monitorModule = uni.requireNativePlugin(\"MonitorModule\")\r\n\t\t\t\tmonitorModule.initSMBCloudSDK()\r\n\t\t\t},\r\n\t\t\tlogin(event) {\r\n\t\t\t\tvar monitorModule = uni.requireNativePlugin(\"MonitorModule\")\r\n\t\t\t\tvar loginfo = {\r\n\t\t\t\t\tuserName: \"admin\",\r\n\t\t\t\t\tpassword: \"Bl20230518\",\r\n\t\t\t\t\tserverAddress: \"121.36.88.64\",\r\n\t\t\t\t\tport: 8888,\r\n\t\t\t\t}\r\n\t\t\t\tmonitorModule.cloudLoginIn(loginfo, (r) => {\r\n\t\t\t\t\tconsole.log(\"loginResult\", r.code)\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '操作成功',\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t});\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tlogout(event) {\r\n\t\t\t\tvar monitorModule = uni.requireNativePlugin(\"MonitorModule\")\r\n\t\t\t\tmonitorModule.cloudLoginOut((r) => {\r\n\t\t\t\t\tconsole.log(\"loginResult\", r.code)\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.content {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\twidth: 100%;\r\n\t\theight: 100vh;\r\n\t}\r\n\r\n\t.logo {\r\n\t\theight: 200rpx;\r\n\t\twidth: 200rpx;\r\n\t\tmargin-top: 200rpx;\r\n\t\tmargin-left: auto;\r\n\t\tmargin-right: auto;\r\n\t\tmargin-bottom: 50rpx;\r\n\t}\r\n\r\n\t.text-area {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t}\r\n\r\n\t.title {\r\n\t\tfont-size: 36rpx;\r\n\t\tcolor: #8f8f94;\r\n\t}\r\n\t.typebutton{\r\n\t\twidth: 300rpx;\r\n\t\theight: 150rpx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tmargin-top: 30rpx;\r\n\t\tcolor: #fff;\r\n\t}\r\n</style>","import MiniProgramPage from 'D:/hldy_app/pages/denglu.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AASC,MAAK,YAAU;AAAA,EAEd,OAAO;AACN,WAAO;AAAA,MACN,OAAO;AAAA,IACR;AAAA,EACA;AAAA,EACD,SAAS;AACR,QAAI,cAAcA,cAAAA,MAAI,oBAAoB,aAAa;AACvD,gBAAY,iBAAiB,WAAW,SAAS,GAAG;AACnDA,0BAAA,MAAA,OAAA,0BAAY,YAAY,KAAK,UAAU,CAAC,CAAC;AACzCA,oBAAAA,MAAI,UAAU;AAAA,QACb,OAAO,YAAY,KAAK,UAAU,CAAC;AAAA,QACnC,UAAU;AAAA,MACX,CAAC;AAAA,IACF,CAAC;AAAA,EAED;AAAA,EACD,SAAS;AAAA,IACR,gBAAgB;AAEf,UAAI,aAAaA,cAAAA,MAAI,oBAAoB,eAAe;AAExD,UAAI,OAAO;AAAA,QACV,UAAU;AAAA,QACV,YAAY;AAAA,MACb;AAEA,iBAAW,eAAe,IAAI;AAAA,IAC9B;AAAA,IACD,YAAY;AACXA,oBAAAA,MAAI,WAAW;AAAA,QACd,KAAK;AAAA,OACL;AAAA,IACD;AAAA,IACD,KAAK,OAAO;AACX,UAAI,gBAAgBA,cAAAA,MAAI,oBAAoB,eAAe;AAC3D,oBAAc,gBAAgB;AAAA,IAC9B;AAAA,IACD,MAAM,OAAO;AACZ,UAAI,gBAAgBA,cAAAA,MAAI,oBAAoB,eAAe;AAC3D,UAAI,UAAU;AAAA,QACb,UAAU;AAAA,QACV,UAAU;AAAA,QACV,eAAe;AAAA,QACf,MAAM;AAAA,MACP;AACA,oBAAc,aAAa,SAAS,CAAC,MAAM;AAC1CA,sBAAA,MAAA,MAAA,OAAA,0BAAY,eAAe,EAAE,IAAI;AACjCA,sBAAAA,MAAI,UAAU;AAAA,UACb,OAAO;AAAA,UACP,UAAU;AAAA,QACX,CAAC;AAAA,OACD;AAAA,IACD;AAAA,IACD,OAAO,OAAO;AACb,UAAI,gBAAgBA,cAAAA,MAAI,oBAAoB,eAAe;AAC3D,oBAAc,cAAc,CAAC,MAAM;AAClCA,sBAAA,MAAA,MAAA,OAAA,0BAAY,eAAe,EAAE,IAAI;AAAA,OACjC;AAAA,IACD;AAAA,EACF;AACD;;;;;;;;;;ACtED,GAAG,WAAW,eAAe;"}
|
||||
|
|
@ -0,0 +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;;;"}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"guanli.js","sources":["request/guanli.js"],"sourcesContent":["// 全局请求封装\r\nconst base_url = 'https://www.focusnu.com/devopsapi'\r\n// 请求超出时间\r\nconst timeout = 5000\r\n\r\n// 需要修改token,和根据实际修改请求头\r\nexport default (params) => {\r\n\tlet url = params.url;\r\n\tlet method = params.method || \"get\";\r\n\tlet data = params.data || {};\r\n\tlet header = {\r\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\r\n\t\t'Content-Type': 'application/json;charset=UTF-8',\r\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t// 'Tenant-Id': uni.getStorageSync('tenantId') || 'xxx', // avue配置相关\r\n\t\t...params.header\r\n\t}\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tuni.request({\r\n\t\t\t// https开头的不修改,不是的话则添加base,为啥呢,因为有两种base啊\r\n\t\t\turl: /^https?:\\/\\//.test(url) ? url : base_url + url,\r\n\t\t\tmethod: method,\r\n\t\t\theader: header,\r\n\t\t\tdata: data,\r\n\t\t\ttimeout,\r\n\t\t\tsuccess(response) {\r\n\t\t\t\tconst res = response\r\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\t//获取成功\r\n\t\t\t\t// console.log(res.statusCode);\r\n\t\t\t\tif (res.statusCode == 200) {\r\n\t\t\t\t\tresolve(res.data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"http\", /^https?:\\/\\//.test(url) ? url : base_url + url)\r\n\t\t\t\t\tconsole.log(\"res\",response)\r\n\t\t\t\t\tconsole.log(\"data\",data)\r\n\t\t\t\t\tswitch (res.statusCode) {\r\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: \"提示\",\r\n\t\t\t\t\t\t\t\tcontent: \"登录过期\",\r\n\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\tuni.clearStorageSync()\r\n\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/login\",\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 404:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfail(err) {\r\n\t\t\t\tconsole.log(err)\r\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '网络异常',\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '未知异常',\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\treject(err);\r\n\r\n\t\t\t},\r\n\t\t\tcomplete() {\r\n\t\t\t\t// 不管成功还是失败都会执行\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.hideToast();\r\n\t\t\t}\r\n\t\t});\r\n\t}).catch(() => {});\r\n};"],"names":["uni"],"mappings":";;AACA,MAAM,WAAW;AAEjB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAAI,SAAS;AAAA,IACZ,kBAAkBA,cAAG,MAAC,eAAe,OAAO,KAAK;AAAA,IACjD,gBAAgB;AAAA,IAChB,iBAAiB;AAAA;AAAA,IAEjB,GAAG,OAAO;AAAA,EACV;AACD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACvCA,kBAAAA,MAAI,QAAQ;AAAA;AAAA,MAEX,KAAK,eAAe,KAAK,GAAG,IAAI,MAAM,WAAW;AAAA,MACjD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,UAAU;AACjB,cAAM,MAAM;AAIZ,YAAI,IAAI,cAAc,KAAK;AAC1B,kBAAQ,IAAI,IAAI;AAAA,QACrB,OAAW;AACNA,wBAAAA,MAAY,MAAA,OAAA,2BAAA,QAAQ,eAAe,KAAK,GAAG,IAAI,MAAM,WAAW,GAAG;AACnEA,wBAAAA,8CAAY,OAAM,QAAQ;AAC1BA,wBAAAA,MAAA,MAAA,OAAA,2BAAY,QAAO,IAAI;AACvB,kBAAQ,IAAI,YAAU;AAAA,YACrB,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,YAAY;AAAA,gBACZ,UAAU;AACTA,gCAAAA,MAAI,iBAAkB;AACtB,6BAAW,MAAM;AAChBA,kCAAAA,MAAI,WAAW;AAAA,sBACd,KAAK;AAAA,oBAChB,CAAW;AAAA,kBACD,GAAE,GAAI;AAAA,gBACP;AAAA,cACT,CAAQ;AACD;AAAA,YACD,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,YACD;AACCA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AACTA,sBAAAA,MAAA,MAAA,OAAA,2BAAY,GAAG;AACf,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,MACD,WAAW;AAEVA,sBAAG,MAAC,YAAW;AACfA,sBAAG,MAAC,UAAS;AAAA,MACb;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\r\nconst base_url = 'https://www.focusnu.com/opeapi'\r\n// 请求超出时间\r\nconst timeout = 5000\r\n\r\n// 需要修改token,和根据实际修改请求头\r\nexport default (params) => {\r\n\tlet url = params.url;\r\n\tlet method = params.method || \"get\";\r\n\tlet data = params.data || {};\r\n\tlet header = {\r\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\r\n\t\t'Content-Type': 'application/json;charset=UTF-8',\r\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t// 'Tenant-Id': uni.getStorageSync('tenantId') || 'xxx', // avue配置相关\r\n\t\t...params.header\r\n\t}\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tuni.request({\r\n\t\t\t// https开头的不修改,不是的话则添加base,为啥呢,因为有两种base啊\r\n\t\t\turl: /^https?:\\/\\//.test(url) ? url : base_url + url,\r\n\t\t\tmethod: method,\r\n\t\t\theader: header,\r\n\t\t\tdata: data,\r\n\t\t\ttimeout,\r\n\t\t\tsuccess(response) {\r\n\t\t\t\tconst res = response\r\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\t//获取成功\r\n\t\t\t\t// console.log(res.statusCode);\r\n\t\t\t\tif (res.statusCode == 200) {\r\n\t\t\t\t\tresolve(res.data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// uni.clearStorageSync()\r\n\t\t\t\t\tswitch (res.statusCode) {\r\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: \"提示\",\r\n\t\t\t\t\t\t\t\tcontent: \"登录过期\",\r\n\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\tuni.clearStorageSync()\r\n\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/login\",\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 404:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfail(err) {\r\n\t\t\t\tconsole.log(err)\r\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '网络异常',\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '未知异常',\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\treject(err);\r\n\r\n\t\t\t},\r\n\t\t\tcomplete() {\r\n\t\t\t\t// 不管成功还是失败都会执行\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.hideToast();\r\n\t\t\t}\r\n\t\t});\r\n\t}).catch(() => {});\r\n};"],"names":["uni"],"mappings":";;AACA,MAAM,WAAW;AAEjB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAAI,SAAS;AAAA,IACZ,kBAAkBA,cAAG,MAAC,eAAe,OAAO,KAAK;AAAA,IACjD,gBAAgB;AAAA,IAChB,iBAAiB;AAAA;AAAA,IAEjB,GAAG,OAAO;AAAA,EACV;AACD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACvCA,kBAAAA,MAAI,QAAQ;AAAA;AAAA,MAEX,KAAK,eAAe,KAAK,GAAG,IAAI,MAAM,WAAW;AAAA,MACjD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,UAAU;AACjB,cAAM,MAAM;AAIZ,YAAI,IAAI,cAAc,KAAK;AAC1B,kBAAQ,IAAI,IAAI;AAAA,QACrB,OAAW;AAEN,kBAAQ,IAAI,YAAU;AAAA,YACrB,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,YAAY;AAAA,gBACZ,UAAU;AACTA,gCAAAA,MAAI,iBAAkB;AACtB,6BAAW,MAAM;AAChBA,kCAAAA,MAAI,WAAW;AAAA,sBACd,KAAK;AAAA,oBAChB,CAAW;AAAA,kBACD,GAAE,GAAI;AAAA,gBACP;AAAA,cACT,CAAQ;AACD;AAAA,YACD,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,YACD;AACCA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AACTA,sBAAAA,MAAA,MAAA,OAAA,0BAAY,GAAG;AACf,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,MACD,WAAW;AAEVA,sBAAG,MAAC,YAAW;AACfA,sBAAG,MAAC,UAAS;AAAA,MACb;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;"}
|
||||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\r\nconst base_url = 'https://www.focusnu.com/opeapi'\r\n// 请求超出时间\r\nconst timeout = 5000\r\n\r\n// 需要修改token,和根据实际修改请求头\r\nexport default (params) => {\r\n\tlet url = params.url;\r\n\tlet method = params.method || \"get\";\r\n\tlet data = params.data || {};\r\n\tlet header = {\r\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\r\n\t\t'Content-Type': 'application/json;charset=UTF-8',\r\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t// 'Tenant-Id': uni.getStorageSync('tenantId') || 'xxx', // avue配置相关\r\n\t\t...params.header\r\n\t}\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tuni.request({\r\n\t\t\t// https开头的不修改,不是的话则添加base,为啥呢,因为有两种base啊\r\n\t\t\turl: /^https?:\\/\\//.test(url) ? url : base_url + url,\r\n\t\t\tmethod: method,\r\n\t\t\theader: header,\r\n\t\t\tdata: data,\r\n\t\t\ttimeout,\r\n\t\t\tsuccess(response) {\r\n\t\t\t\tconst res = response\r\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\t//获取成功\r\n\t\t\t\t// console.log(res.statusCode);\r\n\t\t\t\tif (res.statusCode == 200) {\r\n\t\t\t\t\tresolve(res.data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log(\"http\", /^https?:\\/\\//.test(url) ? url : base_url + url)\r\n\t\t\t\t\tconsole.log(\"res\",response)\r\n\t\t\t\t\tconsole.log(\"data\",data)\r\n\t\t\t\t\tswitch (res.statusCode) {\r\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\ttitle: \"提示\",\r\n\t\t\t\t\t\t\t\tcontent: \"登录过期\",\r\n\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\tuni.clearStorageSync()\r\n\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/login\",\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 404:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\tduration: 2000,\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfail(err) {\r\n\t\t\t\tconsole.log(err)\r\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '网络异常',\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '未知异常',\r\n\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\treject(err);\r\n\r\n\t\t\t},\r\n\t\t\tcomplete() {\r\n\t\t\t\t// 不管成功还是失败都会执行\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.hideToast();\r\n\t\t\t}\r\n\t\t});\r\n\t}).catch(() => {});\r\n};"],"names":["uni"],"mappings":";;AACA,MAAM,WAAW;AAEjB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAAI,SAAS;AAAA,IACZ,kBAAkBA,cAAG,MAAC,eAAe,OAAO,KAAK;AAAA,IACjD,gBAAgB;AAAA,IAChB,iBAAiB;AAAA;AAAA,IAEjB,GAAG,OAAO;AAAA,EACV;AACD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACvCA,kBAAAA,MAAI,QAAQ;AAAA;AAAA,MAEX,KAAK,eAAe,KAAK,GAAG,IAAI,MAAM,WAAW;AAAA,MACjD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,UAAU;AACjB,cAAM,MAAM;AAIZ,YAAI,IAAI,cAAc,KAAK;AAC1B,kBAAQ,IAAI,IAAI;AAAA,QACrB,OAAW;AACNA,wBAAAA,MAAY,MAAA,OAAA,0BAAA,QAAQ,eAAe,KAAK,GAAG,IAAI,MAAM,WAAW,GAAG;AACnEA,wBAAAA,6CAAY,OAAM,QAAQ;AAC1BA,wBAAAA,MAAA,MAAA,OAAA,0BAAY,QAAO,IAAI;AACvB,kBAAQ,IAAI,YAAU;AAAA,YACrB,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,YAAY;AAAA,gBACZ,UAAU;AACTA,gCAAAA,MAAI,iBAAkB;AACtB,6BAAW,MAAM;AAChBA,kCAAAA,MAAI,WAAW;AAAA,sBACd,KAAK;AAAA,oBAChB,CAAW;AAAA,kBACD,GAAE,GAAI;AAAA,gBACP;AAAA,cACT,CAAQ;AACD;AAAA,YACD,KAAK;AACJA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,YACD;AACCA,4BAAAA,MAAI,UAAU;AAAA,gBACb,OAAO;AAAA,gBACP,UAAU;AAAA,cAClB,CAAQ;AACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,MACD,KAAK,KAAK;AACTA,sBAAAA,MAAA,MAAA,OAAA,0BAAY,GAAG;AACf,YAAI,IAAI,OAAO,QAAQ,cAAc,MAAM,IAAI;AAC9CA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,MAAM;AAAA,YACN,UAAU;AAAA,UAChB,CAAM;AAAA,QACN,OAAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,MACD,WAAW;AAEVA,sBAAG,MAAC,YAAW;AACfA,sBAAG,MAAC,UAAS;AAAA,MACb;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;"}
|
||||
|
|
@ -7,8 +7,8 @@
|
|||
"id": "__UNI__FB2D473",
|
||||
"name": "护理单元",
|
||||
"version": {
|
||||
"name": "1.6.1",
|
||||
"code": 161
|
||||
"name": "1.6.2",
|
||||
"code": 162
|
||||
},
|
||||
"description": "护理单元",
|
||||
"developer": {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
console[type].apply(console, [...args, filename]);
|
||||
}
|
||||
}
|
||||
var _style_0 = { "center-column": { "": { "width": 630, "height": 510, "overflow": "hidden" } } };
|
||||
var _style_0 = { "center-column": { "": { "width": 650, "height": 510, "borderRadius": 30, "overflow": "hidden" } } };
|
||||
var _export_sfc = (sfc, props) => {
|
||||
const target = sfc.__vccOpts || sfc;
|
||||
for (const [key, val] of props) {
|
||||
|
|
@ -100,14 +100,15 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
record: [],
|
||||
talk: []
|
||||
},
|
||||
suo: true
|
||||
suo: true,
|
||||
isshow: true
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
const globalEvent = requireNativePlugin && requireNativePlugin("globalEvent");
|
||||
if (globalEvent && globalEvent.addEventListener) {
|
||||
globalEvent.addEventListener("myEvent", (e) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:40", e);
|
||||
formatAppLog("log", "at pages/camera.nvue:34", e);
|
||||
if (e.recordUrl) {
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u6210\u529F",
|
||||
|
|
@ -132,6 +133,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
});
|
||||
}
|
||||
uni.$on("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$on("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$on("monitor:startRecord", this.doStartRecord);
|
||||
uni.$on("monitor:stopRecord", this.doStopRecord);
|
||||
|
|
@ -147,6 +149,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
uni.$on("monitor:test", this.test);
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off("monitor:isshow", (bool) => this.isshow = bool);
|
||||
uni.$off("monitor:doSnapshot", this.doSnapshot);
|
||||
uni.$off("monitor:startRecord", this.doStartRecord);
|
||||
uni.$off("monitor:stopRecord", this.doStopRecord);
|
||||
|
|
@ -164,27 +167,27 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
methods: {
|
||||
/* ------------------ 原有功能 ------------------ */
|
||||
handleTelEvent(event) {
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "Tel event detail:", event.detail);
|
||||
formatAppLog("log", "at pages/camera.nvue:97", "Tel event detail:", event.detail);
|
||||
},
|
||||
switchDisplay(mode) {
|
||||
formatAppLog("log", "at pages/camera.nvue:107", "zzzzz", mode);
|
||||
formatAppLog("log", "at pages/camera.nvue:102", "zzzzz", mode);
|
||||
this.$refs.monitor && this.$refs.monitor.switchDisplayModeFragment(mode);
|
||||
},
|
||||
startAlarm() {
|
||||
this.isAlarming = true;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:114", "startAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:109", "startAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
stopAlarm() {
|
||||
this.isAlarming = false;
|
||||
this.$refs.monitor.startOrStopManualAlarm(this.isAlarming, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:120", "stopAlarm callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:115", "stopAlarm callback:", res);
|
||||
});
|
||||
},
|
||||
flipImage(type) {
|
||||
this.$refs.monitor.changeImageSwitch(type, (res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:126", "flipImage callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:121", "flipImage callback:", res);
|
||||
});
|
||||
},
|
||||
resumeOrPause() {
|
||||
|
|
@ -204,9 +207,15 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// payload 可选:{ reqId: number }
|
||||
doSnapshot(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.snapShot) {
|
||||
uni.showToast({ title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 snapShot()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 snapShot()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -215,15 +224,26 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.snapShot((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:166", "snapShot callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:167", "snapShot callback:", res);
|
||||
this._handleSnapshotResultFromNative(res, payload.reqId);
|
||||
});
|
||||
uni.showToast({ title: "\u6B63\u5728\u622A\u5C4F...", icon: "none", duration: 800 });
|
||||
uni.showToast({
|
||||
title: "\u6B63\u5728\u622A\u5C4F...",
|
||||
icon: "none",
|
||||
duration: 800
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:171", "snapShot \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({ title: "snapShot \u8C03\u7528\u5931\u8D25", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:176", "snapShot \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "snapShot \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "snapShot_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "snapShot_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -231,26 +251,45 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStartRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.startRecord) {
|
||||
uni.showToast({ title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 startRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 startRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.startRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:191", "startRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:209", "startRecord callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isRecording = true;
|
||||
uni.showToast({ title: "\u5F55\u5C4F\u5DF2\u5F00\u59CB", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u5DF2\u5F00\u59CB",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:200", "startRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({ title: "startRecord \u8C03\u7528\u5931\u8D25", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:224", "startRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "startRecord \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "startRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "startRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -258,9 +297,15 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopRecord(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopRecord) {
|
||||
uni.showToast({ title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 stopRecord()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 stopRecord()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -269,14 +314,21 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopRecord((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:226", "stopRecord callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:263", "stopRecord callback:", res);
|
||||
this._handleRecordResultFromNative(res, payload.reqId);
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:231", "stopRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({ title: "stopRecord \u8C03\u7528\u5931\u8D25", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:268", "stopRecord \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "stopRecord \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopRecord_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopRecord_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -284,9 +336,15 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// payload 可选:{ reqId: number }
|
||||
doOpenTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.openTalk) {
|
||||
uni.showToast({ title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 openTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 openTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -295,18 +353,31 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:255", "openTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:305", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = true;
|
||||
uni.showToast({ title: "\u5C1D\u8BD5\u5EFA\u7ACB\u5BF9\u8BB2\u8FDE\u63A5...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u5C1D\u8BD5\u5EFA\u7ACB\u5BF9\u8BB2\u8FDE\u63A5...",
|
||||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:264", "openTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({ title: "openTalk \u8C03\u7528\u5931\u8D25", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:320", "openTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "openTalk \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "openTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "openTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -314,25 +385,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// payload 可选:{ reqId: number }
|
||||
doStopTalk(payload = {}) {
|
||||
if (!this.$refs.monitor || !this.$refs.monitor.stopTalk) {
|
||||
uni.showToast({ title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 stopTalk()", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u7EC4\u4EF6\u4E0D\u652F\u6301 stopTalk()",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_not_supported" });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_not_supported"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:284", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:353", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: true, res });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
res
|
||||
});
|
||||
}
|
||||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:291", "stopTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({ title: "stopTalk \u8C03\u7528\u5931\u8D25", icon: "none" });
|
||||
formatAppLog("error", "at pages/camera.nvue:363", "stopTalk \u8C03\u7528\u5931\u8D25", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk \u8C03\u7528\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, { ok: false, error: "stopTalk_call_failed", detail: String(err) });
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: false,
|
||||
error: "stopTalk_call_failed",
|
||||
detail: String(err)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -340,119 +427,182 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:304", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:383", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:312", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:391", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:319", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:398", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
if (this._pendingRequests.talk && this._pendingRequests.talk.length) {
|
||||
while (this._pendingRequests.talk.length) {
|
||||
const reqId = this._pendingRequests.talk.shift();
|
||||
uni.$emit(`monitor:response:${reqId}`, { ok: true, payload });
|
||||
uni.$emit(`monitor:response:${reqId}`, {
|
||||
ok: true,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
switch ((status || "").toLowerCase()) {
|
||||
case "loading":
|
||||
uni.showToast({ title: tips || "\u5BF9\u8BB2\u8FDE\u63A5\u4E2D...", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "\u5BF9\u8BB2\u8FDE\u63A5\u4E2D...",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "playing":
|
||||
uni.showToast({ title: tips || "\u5BF9\u8BB2\u5DF2\u8FDE\u63A5", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "\u5BF9\u8BB2\u5DF2\u8FDE\u63A5",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = true;
|
||||
break;
|
||||
case "stopped":
|
||||
uni.showToast({ title: tips || "\u5BF9\u8BB2\u5DF2\u505C\u6B62", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "\u5BF9\u8BB2\u5DF2\u505C\u6B62",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
case "failed":
|
||||
uni.showToast({ title: tips || "\u5BF9\u8BB2\u5931\u8D25", icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "\u5BF9\u8BB2\u5931\u8D25",
|
||||
icon: "none"
|
||||
});
|
||||
this.isTalking = false;
|
||||
break;
|
||||
default:
|
||||
uni.showToast({ title: tips || "\u5BF9\u8BB2\u72B6\u6001: " + (status || "unknown"), icon: "none" });
|
||||
uni.showToast({
|
||||
title: tips || "\u5BF9\u8BB2\u72B6\u6001: " + (status || "unknown"),
|
||||
icon: "none"
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
/* ------------------ 原生结果的内部处理函数(统一处理 callback / event) ------------------ */
|
||||
_handleSnapshotResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "\u622A\u56FE\u6CA1\u6709\u8FD4\u56DE\u6570\u636E", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u622A\u56FE\u6CA1\u6709\u8FD4\u56DE\u6570\u636E",
|
||||
icon: "none"
|
||||
});
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:372", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:475", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.snapshot && this._pendingRequests.snapshot.length) {
|
||||
while (this._pendingRequests.snapshot.length) {
|
||||
const rid = this._pendingRequests.snapshot.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!payload.snapShotResult, payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:snapshot:done", payload);
|
||||
if (payload.snapShotResult === true || payload.snapShotResult === "true") {
|
||||
const url = payload.snapShotUrl || payload.snapShotPath || payload.url;
|
||||
uni.showToast({ title: "\u622A\u56FE\u6210\u529F", icon: "success", duration: 1200 });
|
||||
uni.showToast({
|
||||
title: "\u622A\u56FE\u6210\u529F",
|
||||
icon: "success",
|
||||
duration: 1200
|
||||
});
|
||||
if (url) {
|
||||
uni.previewImage({ urls: [url] });
|
||||
uni.previewImage({
|
||||
urls: [url]
|
||||
});
|
||||
}
|
||||
} else {
|
||||
const err = payload.snapShotErrorCode || payload.error || "unknown";
|
||||
uni.showToast({ title: "\u622A\u56FE\u5931\u8D25: " + err, icon: "none", duration: 2e3 });
|
||||
formatAppLog("warn", "at pages/camera.nvue:399", "snapshot failed reason:", err, payload);
|
||||
uni.showToast({
|
||||
title: "\u622A\u56FE\u5931\u8D25: " + err,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:518", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
if (!res) {
|
||||
uni.showToast({ title: "\u5F55\u5C4F\u6CA1\u6709\u8FD4\u56DE\u6570\u636E", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u6CA1\u6709\u8FD4\u56DE\u6570\u636E",
|
||||
icon: "none"
|
||||
});
|
||||
this.isRecording = false;
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: false, error: "no_data" });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: false,
|
||||
error: "no_data"
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:415", "record payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:540", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
if (!reqIdFromCallback && this._pendingRequests.record && this._pendingRequests.record.length) {
|
||||
while (this._pendingRequests.record.length) {
|
||||
const rid = this._pendingRequests.record.shift();
|
||||
uni.$emit(`monitor:response:${rid}`, { ok: !!(payload.recordUrl || payload.snapShotResult), payload });
|
||||
uni.$emit(`monitor:response:${rid}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
payload
|
||||
});
|
||||
}
|
||||
}
|
||||
uni.$emit("monitor:record:done", payload);
|
||||
if (payload.recordUrl) {
|
||||
uni.showToast({ title: "\u5F55\u5C4F\u5B8C\u6210", icon: "success", duration: 1400 });
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u5B8C\u6210",
|
||||
icon: "success",
|
||||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:436", "\u5F55\u5C4F\u5730\u5740\uFF1A", payload.recordUrl);
|
||||
formatAppLog("log", "at pages/camera.nvue:571", "\u5F55\u5C4F\u5730\u5740\uFF1A", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({ title: "\u5F55\u5C4F\u5931\u8D25: " + payload.recordFailedReason, icon: "none", duration: 2e3 });
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u5931\u8D25: " + payload.recordFailedReason,
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:440", "record failed reason:", payload.recordFailedReason);
|
||||
formatAppLog("warn", "at pages/camera.nvue:579", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({ title: "\u5F55\u5C4F\u64CD\u4F5C\u5DF2\u5B8C\u6210\uFF08\u8FD4\u56DE\u672A\u77E5\uFF09", icon: "none" });
|
||||
uni.showToast({
|
||||
title: "\u5F55\u5C4F\u64CD\u4F5C\u5DF2\u5B8C\u6210\uFF08\u8FD4\u56DE\u672A\u77E5\uFF09",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
this.isRecording = false;
|
||||
}
|
||||
|
|
@ -468,18 +618,27 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
|||
bubble: "true",
|
||||
style: { flexDirection: "column" }
|
||||
}, [
|
||||
(0, import_vue.createElementVNode)("div", { class: "center-column" }, [
|
||||
(0, import_vue.createCommentVNode)(" \u89C6\u9891\u64AD\u653E\u7EC4\u4EF6 "),
|
||||
(0, import_vue.createVNode)(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
style: { "width": "630px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
])
|
||||
(0, import_vue.createElementVNode)(
|
||||
"div",
|
||||
{
|
||||
class: "center-column",
|
||||
style: (0, import_vue.normalizeStyle)({ height: $data.isshow ? "510px" : "0px" })
|
||||
},
|
||||
[
|
||||
(0, import_vue.createCommentVNode)(" \u89C6\u9891\u64AD\u653E\u7EC4\u4EF6 "),
|
||||
(0, import_vue.createVNode)(_component_MonitorView, {
|
||||
ref: "monitor",
|
||||
init: "5",
|
||||
style: { "width": "650px", "height": "510px" },
|
||||
onOnTel: $options.handleTelEvent,
|
||||
onOnSnapShot: $options.handleSnapShotEvent,
|
||||
onOnRecord: $options.handleRecordEvent,
|
||||
onOnTalkStatus: $options.handleTalkEvent
|
||||
}, null, 8, ["onOnTel", "onOnSnapShot", "onOnRecord", "onOnTalkStatus"])
|
||||
],
|
||||
4
|
||||
/* STYLE */
|
||||
)
|
||||
]);
|
||||
}
|
||||
var camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app/pages/camera.nvue"]]);
|
||||
|
|
|
|||
|
|
@ -148,13 +148,13 @@
|
|||
}
|
||||
.view .view-left .menus-father[data-v-4b26e9e6] {
|
||||
width: 100%;
|
||||
height: 25rem;
|
||||
height: 28.125rem;
|
||||
}
|
||||
.view .view-left .menus-father .menu[data-v-4b26e9e6] {
|
||||
margin: 1.40625rem 0;
|
||||
margin-left: 0.9375rem;
|
||||
height: 3.4375rem;
|
||||
width: 9.375rem;
|
||||
width: 12.5rem;
|
||||
border-radius: 1.875rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
|
|
@ -174,20 +174,6 @@
|
|||
width: 90%;
|
||||
position: relative;
|
||||
}
|
||||
.view .view-right .right-container-title-nav[data-v-4b26e9e6] {
|
||||
margin-top: 1.875rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.875rem;
|
||||
position: relative;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
.view .view-right .right-container-title-nav .right-icons-img[data-v-4b26e9e6] {
|
||||
width: 1.875rem;
|
||||
height: 1.875rem;
|
||||
margin-left: 0.625rem;
|
||||
margin-right: 0.625rem;
|
||||
}
|
||||
.view .view-right .scroll-vi[data-v-4b26e9e6] {
|
||||
height: 3.125rem;
|
||||
width: 100%;
|
||||
|
|
@ -217,26 +203,16 @@
|
|||
margin-top: 0.5625rem;
|
||||
font-size: 0.78125rem;
|
||||
}
|
||||
.right-container-tem[data-v-4b26e9e6] {
|
||||
display: flex;
|
||||
}
|
||||
.right-container-tem .right-container-tem-text[data-v-4b26e9e6] {
|
||||
font-size: 1rem;
|
||||
margin-right: 0.625rem;
|
||||
}
|
||||
.right-container-tem .right-container-tem-img[data-v-4b26e9e6] {
|
||||
width: 1.1875rem;
|
||||
height: 1.1875rem;
|
||||
}
|
||||
.new-weight[data-v-4b26e9e6] {
|
||||
margin: 0 0.9375rem;
|
||||
margin-top: 1.25rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.big-bgc[data-v-4b26e9e6] {
|
||||
margin-left: -0.625rem;
|
||||
margin-top: 0.625rem;
|
||||
width: 39.0625rem;
|
||||
height: 28.53125rem;
|
||||
width: 41.25rem;
|
||||
height: 32.65625rem;
|
||||
border-radius: 1.5625rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
|
|
@ -244,27 +220,6 @@
|
|||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.small-bgc[data-v-4b26e9e6] {
|
||||
width: 9.3125rem;
|
||||
height: 6.875rem;
|
||||
border-radius: 0.78125rem;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.card-father[data-v-4b26e9e6] {
|
||||
margin-right: 0.625rem;
|
||||
}
|
||||
.card-father .up-title[data-v-4b26e9e6] {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 0.3125rem 0;
|
||||
margin-left: 0.625rem;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
@keyframes glowFlash-4b26e9e6 {
|
||||
0%,
|
||||
100% {
|
||||
|
|
@ -347,9 +302,7 @@
|
|||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
align-items: flex-start;
|
||||
/* 关键:禁用 stretch,子项按自己的高度 */
|
||||
align-content: flex-start;
|
||||
/* 多行时顶端对齐(可选) */
|
||||
}
|
||||
.bottom-view .button-father[data-v-4b26e9e6] {
|
||||
margin-top: 0.625rem;
|
||||
|
|
@ -449,14 +402,6 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.right-icons[data-v-4b26e9e6] {
|
||||
position: absolute;
|
||||
right: 0.9375rem;
|
||||
top: 0.9375rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.875rem;
|
||||
}
|
||||
.warning[data-v-4b26e9e6] {
|
||||
animation: glowFlash-4b26e9e6 1.2s infinite ease-in-out;
|
||||
border: 0.03125rem solid #ff5757;
|
||||
|
|
@ -497,7 +442,7 @@
|
|||
position: absolute;
|
||||
top: 6.875rem;
|
||||
left: 0%;
|
||||
width: 10.9375rem;
|
||||
width: 14.0625rem;
|
||||
height: 3.75rem;
|
||||
background: linear-gradient(to bottom, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||
z-index: 4;
|
||||
|
|
@ -505,9 +450,9 @@
|
|||
}
|
||||
.zhezhao-bottom[data-v-4b26e9e6] {
|
||||
position: absolute;
|
||||
bottom: 14.0625rem;
|
||||
bottom: 11.875rem;
|
||||
left: 0%;
|
||||
width: 10.9375rem;
|
||||
width: 14.0625rem;
|
||||
height: 3.75rem;
|
||||
background: linear-gradient(to top, #eff0f4 0%, /* #eff0f4 全不透明 */ rgba(239, 240, 244, 0) 100% /* #eff0f4 完全透明 */);
|
||||
z-index: 4;
|
||||
|
|
@ -570,7 +515,7 @@
|
|||
}
|
||||
.picture[data-v-4b26e9e6] {
|
||||
display: flex;
|
||||
margin-top: 4.6875rem;
|
||||
margin-top: 0.9375rem;
|
||||
}
|
||||
.picture .picture-card[data-v-4b26e9e6] {
|
||||
display: flex;
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 401 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 313 KiB |
|
|
@ -4,6 +4,7 @@ const common_vendor = require("./common/vendor.js");
|
|||
const uni_modules_vkUviewUi_index = require("./uni_modules/vk-uview-ui/index.js");
|
||||
if (!Math) {
|
||||
"./pages/login/login.js";
|
||||
"./pages/denglu.js";
|
||||
"./pages/index/index.js";
|
||||
"./pages/Nursing/index.js";
|
||||
"./pages/watch/index.js";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"pages": [
|
||||
"pages/login/login",
|
||||
"pages/denglu",
|
||||
"pages/index/index",
|
||||
"pages/Nursing/index",
|
||||
"pages/watch/index",
|
||||
|
|
|
|||
|
|
@ -5,59 +5,57 @@ const _imports_0$m = "/static/index/oldman.png";
|
|||
const _imports_0$l = "/static/index/watch/uni.png";
|
||||
const _imports_1$k = "/static/index/watch/more.png";
|
||||
const _imports_2$e = "/static/index/newindex/curve/shezhi.png";
|
||||
const _imports_0$k = "/static/index/newindex/wendu/0.png";
|
||||
const _imports_1$j = "/static/index/newindex/wendu/1.png";
|
||||
const _imports_5$6 = "/static/index/watch/bgc.png";
|
||||
const _imports_6$2 = "/static/index/watch/play.png";
|
||||
const _imports_7$3 = "/static/index/watch/laotai.png";
|
||||
const _imports_8$3 = "/static/index/watch/laotou.png";
|
||||
const _imports_9$3 = "/static/index/watch/phonebgc.png";
|
||||
const _imports_10$2 = "/static/index/watch/phone.png";
|
||||
const _imports_11$2 = "/static/index/watch/phoneball.png";
|
||||
const _imports_12$1 = "/static/index/watch/pao.png";
|
||||
const _imports_13 = "/static/index/newindex/wendu/2.png";
|
||||
const _imports_4$5 = "/static/index/video/laba.png";
|
||||
const _imports_5$5 = "/static/index/video/video.png";
|
||||
const _imports_6$1 = "/static/index/video/txt.png";
|
||||
const _imports_17 = "/static/index/newindex/rightmenu/2.png";
|
||||
const _imports_0$j = "/static/click.png";
|
||||
const _imports_1$i = "/static/x.png";
|
||||
const _imports_3$a = "/static/nocamera.png";
|
||||
const _imports_4$7 = "/static/index/watch/laotai.png";
|
||||
const _imports_5$6 = "/static/index/watch/laotou.png";
|
||||
const _imports_6$2 = "/static/index/watch/phonebgc.png";
|
||||
const _imports_7$3 = "/static/index/watch/phone.png";
|
||||
const _imports_8$3 = "/static/index/watch/phoneball.png";
|
||||
const _imports_9$3 = "/static/index/watch/pao.png";
|
||||
const _imports_10$2 = "/static/index/newindex/wendu/2.png";
|
||||
const _imports_11$2 = "/static/index/camera/back.png";
|
||||
const _imports_0$k = "/static/click.png";
|
||||
const _imports_1$j = "/static/x.png";
|
||||
const _imports_2$d = "/static/bgc.png";
|
||||
const _imports_3$8 = "/static/qiu.png";
|
||||
const _imports_0$i = "/static/kuai.png";
|
||||
const _imports_1$h = "/static/sao.png";
|
||||
const _imports_3$9 = "/static/qiu.png";
|
||||
const _imports_0$j = "/static/kuai.png";
|
||||
const _imports_1$i = "/static/sao.png";
|
||||
const _imports_2$c = "/static/qr.png";
|
||||
const _imports_0$h = "/static/index/leida/leftbgc.png";
|
||||
const _imports_1$g = "/static/index/leida/bigball.png";
|
||||
const _imports_0$i = "/static/index/leida/leftbgc.png";
|
||||
const _imports_1$h = "/static/index/leida/bigball.png";
|
||||
const _imports_2$b = "/static/index/leida/biao.png";
|
||||
const _imports_3$7 = "/static/index/leida/ball.png";
|
||||
const _imports_4$4 = "/static/index/leida/shallow.png";
|
||||
const _imports_5$4 = "/static/index/leida/play.png";
|
||||
const _imports_5$3 = "/static/index/quxiao.png";
|
||||
const _imports_0$g = "/static/index/customer.png";
|
||||
const _imports_1$f = "/static/index/Warehousing/house.png";
|
||||
const _imports_0$f = "/static/index/tu.png";
|
||||
const _imports_1$e = "/static/index/newruler/jiao.png";
|
||||
const _imports_0$e = "/static/index/update/fly.png";
|
||||
const _imports_1$d = "/static/index/update/bgc.png";
|
||||
const _imports_1$c = "/static/index/undericons/upguang.png";
|
||||
const _imports_0$d = "/static/index/shexiang.png";
|
||||
const _imports_1$b = "/static/index/cheng.png";
|
||||
const _imports_3$8 = "/static/index/leida/ball.png";
|
||||
const _imports_4$6 = "/static/index/leida/shallow.png";
|
||||
const _imports_5$5 = "/static/index/leida/play.png";
|
||||
const _imports_5$4 = "/static/index/quxiao.png";
|
||||
const _imports_0$h = "/static/index/customer.png";
|
||||
const _imports_1$g = "/static/index/Warehousing/house.png";
|
||||
const _imports_0$g = "/static/index/tu.png";
|
||||
const _imports_1$f = "/static/index/newruler/jiao.png";
|
||||
const _imports_0$f = "/static/index/update/fly.png";
|
||||
const _imports_1$e = "/static/index/update/bgc.png";
|
||||
const _imports_1$d = "/static/index/undericons/upguang.png";
|
||||
const _imports_0$e = "/static/index/shexiang.png";
|
||||
const _imports_1$c = "/static/index/cheng.png";
|
||||
const _imports_2$a = "/static/index/deleteicon.png";
|
||||
const _imports_11$1 = "/static/index/NU.png";
|
||||
const _imports_0$c = "/static/index/ku.png";
|
||||
const _imports_1$a = "/static/index/ren.png";
|
||||
const _imports_0$d = "/static/index/ku.png";
|
||||
const _imports_1$b = "/static/index/ren.png";
|
||||
const _imports_2$9 = "/static/index/redbian.png";
|
||||
const _imports_3$6 = "/static/index/ri.png";
|
||||
const _imports_4$3 = "/static/index/zhou.png";
|
||||
const _imports_5$2 = "/static/index/ji.png";
|
||||
const _imports_3$7 = "/static/index/ri.png";
|
||||
const _imports_4$5 = "/static/index/zhou.png";
|
||||
const _imports_5$3 = "/static/index/ji.png";
|
||||
const _imports_7$2 = "/static/index/keyimg/movebutton.png";
|
||||
const _imports_8$2 = "/static/index/keyimg/deletebutton.png";
|
||||
const _imports_9$2 = "/static/index/keyimg/notebutton.png";
|
||||
const _imports_10$1 = "/static/index/keyimg/okbutton.png";
|
||||
const _imports_0$b = "/static/index/watch/camera.png";
|
||||
const _imports_1$9 = "/static/index/watch/panzi.png";
|
||||
const _imports_2$8 = "/static/index/watch/bluetarget.png";
|
||||
const _imports_0$c = "/static/index/camera/arrow1.png";
|
||||
const _imports_1$a = "/static/index/camera/arrow3.png";
|
||||
const _imports_2$8 = "/static/index/camera/arrow5.png";
|
||||
const _imports_3$6 = "/static/index/camera/arrow4.png";
|
||||
const _imports_4$4 = "/static/index/camera/arrow2.png";
|
||||
const _imports_0$b = "/static/index/newindex/wendu/0.png";
|
||||
const _imports_1$9 = "/static/index/newindex/wendu/1.png";
|
||||
const _imports_2$7 = "/static/index/newruler/monitor_1.png";
|
||||
const _imports_3$5 = "/static/index/sharelogo.png";
|
||||
const _imports_0$a = "/static/index/Warehousing/firstbutton.png";
|
||||
|
|
@ -67,6 +65,9 @@ const _imports_3$4 = "/static/index/Warehousing/fourthbutton.png";
|
|||
const _imports_1$7 = "/static/index/video/videoright/guang.png";
|
||||
const _imports_2$5 = "/static/index/bed.png";
|
||||
const _imports_0$9 = "/static/index/teeth.png";
|
||||
const _imports_4$3 = "/static/index/video/laba.png";
|
||||
const _imports_5$2 = "/static/index/video/video.png";
|
||||
const _imports_6$1 = "/static/index/video/txt.png";
|
||||
const _imports_7$1 = "/static/index/cardicons/zhixing.png";
|
||||
const _imports_8$1 = "/static/index/cardicons/zhifa.png";
|
||||
const _imports_9$1 = "/static/index/video/videotopright/goto.png";
|
||||
|
|
@ -132,8 +133,8 @@ exports._imports_0$6 = _imports_0$i;
|
|||
exports._imports_0$7 = _imports_0$h;
|
||||
exports._imports_0$8 = _imports_0$g;
|
||||
exports._imports_0$9 = _imports_0$f;
|
||||
exports._imports_1 = _imports_1$j;
|
||||
exports._imports_1$1 = _imports_1$k;
|
||||
exports._imports_1 = _imports_1$k;
|
||||
exports._imports_1$1 = _imports_1$j;
|
||||
exports._imports_1$10 = _imports_1$a;
|
||||
exports._imports_1$11 = _imports_1$9;
|
||||
exports._imports_1$12 = _imports_1$8;
|
||||
|
|
@ -159,10 +160,7 @@ exports._imports_10$2 = _imports_10;
|
|||
exports._imports_11 = _imports_11$2;
|
||||
exports._imports_11$1 = _imports_11$1;
|
||||
exports._imports_11$2 = _imports_11;
|
||||
exports._imports_12 = _imports_12$1;
|
||||
exports._imports_12$1 = _imports_12;
|
||||
exports._imports_13 = _imports_13;
|
||||
exports._imports_17 = _imports_17;
|
||||
exports._imports_12 = _imports_12;
|
||||
exports._imports_2 = _imports_2$e;
|
||||
exports._imports_2$1 = _imports_2$d;
|
||||
exports._imports_2$10 = _imports_2$4;
|
||||
|
|
@ -178,30 +176,34 @@ exports._imports_2$6 = _imports_2$8;
|
|||
exports._imports_2$7 = _imports_2$7;
|
||||
exports._imports_2$8 = _imports_2$6;
|
||||
exports._imports_2$9 = _imports_2$5;
|
||||
exports._imports_3 = _imports_3$8;
|
||||
exports._imports_3$1 = _imports_3$7;
|
||||
exports._imports_3$2 = _imports_3$6;
|
||||
exports._imports_3$3 = _imports_3$5;
|
||||
exports._imports_3$4 = _imports_3$4;
|
||||
exports._imports_3$5 = _imports_3$3;
|
||||
exports._imports_3$6 = _imports_3$2;
|
||||
exports._imports_3$7 = _imports_3$1;
|
||||
exports._imports_3$8 = _imports_3;
|
||||
exports._imports_4 = _imports_4$5;
|
||||
exports._imports_4$1 = _imports_4$4;
|
||||
exports._imports_4$2 = _imports_4$3;
|
||||
exports._imports_4$3 = _imports_4$2;
|
||||
exports._imports_4$4 = _imports_4$1;
|
||||
exports._imports_4$5 = _imports_4;
|
||||
exports._imports_5 = _imports_5$5;
|
||||
exports._imports_5$1 = _imports_5$6;
|
||||
exports._imports_5$2 = _imports_5$3;
|
||||
exports._imports_5$3 = _imports_5$4;
|
||||
exports._imports_3 = _imports_3$a;
|
||||
exports._imports_3$1 = _imports_3$9;
|
||||
exports._imports_3$10 = _imports_3;
|
||||
exports._imports_3$2 = _imports_3$8;
|
||||
exports._imports_3$3 = _imports_3$7;
|
||||
exports._imports_3$4 = _imports_3$6;
|
||||
exports._imports_3$5 = _imports_3$5;
|
||||
exports._imports_3$6 = _imports_3$4;
|
||||
exports._imports_3$7 = _imports_3$3;
|
||||
exports._imports_3$8 = _imports_3$2;
|
||||
exports._imports_3$9 = _imports_3$1;
|
||||
exports._imports_4 = _imports_4$7;
|
||||
exports._imports_4$1 = _imports_4$6;
|
||||
exports._imports_4$2 = _imports_4$5;
|
||||
exports._imports_4$3 = _imports_4$4;
|
||||
exports._imports_4$4 = _imports_4$3;
|
||||
exports._imports_4$5 = _imports_4$2;
|
||||
exports._imports_4$6 = _imports_4$1;
|
||||
exports._imports_4$7 = _imports_4;
|
||||
exports._imports_5 = _imports_5$6;
|
||||
exports._imports_5$1 = _imports_5$4;
|
||||
exports._imports_5$2 = _imports_5$5;
|
||||
exports._imports_5$3 = _imports_5$3;
|
||||
exports._imports_5$4 = _imports_5$2;
|
||||
exports._imports_5$5 = _imports_5$1;
|
||||
exports._imports_5$6 = _imports_5;
|
||||
exports._imports_6 = _imports_6$1;
|
||||
exports._imports_6$1 = _imports_6$2;
|
||||
exports._imports_6 = _imports_6$2;
|
||||
exports._imports_6$1 = _imports_6$1;
|
||||
exports._imports_6$2 = _imports_6;
|
||||
exports._imports_7 = _imports_7$3;
|
||||
exports._imports_7$1 = _imports_7$2;
|
||||
|
|
|
|||
|
|
@ -6159,12 +6159,12 @@ function populateParameters(fromRes, toRes) {
|
|||
const parameters = {
|
||||
appId: "__UNI__FB2D473",
|
||||
appName: "护理单元",
|
||||
appVersion: "1.5.3",
|
||||
appVersionCode: 153,
|
||||
appVersion: "1.6.2",
|
||||
appVersionCode: 162,
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75",
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76",
|
||||
uniPlatform: "mp-weixin",
|
||||
deviceBrand,
|
||||
deviceModel: model,
|
||||
|
|
@ -6308,14 +6308,14 @@ const getAppBaseInfo = {
|
|||
hostTheme: theme,
|
||||
appId: "__UNI__FB2D473",
|
||||
appName: "护理单元",
|
||||
appVersion: "1.5.3",
|
||||
appVersionCode: 153,
|
||||
appVersion: "1.6.2",
|
||||
appVersionCode: 162,
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
uniCompileVersion: "4.75",
|
||||
uniCompilerVersion: "4.75",
|
||||
uniRuntimeVersion: "4.75"
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76"
|
||||
};
|
||||
extend(toRes, parameters);
|
||||
}
|
||||
|
|
@ -7055,9 +7055,9 @@ function isConsoleWritable() {
|
|||
return isWritable;
|
||||
}
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.2.35,127.0.0.1";
|
||||
const hosts = "192.168.2.22,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_10B7u6";
|
||||
const id = "mp-weixin_YcQ5TG";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
|
|
|||
|
|
@ -262,9 +262,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}, item0.states == 1 || !item0.states ? {
|
||||
l: common_assets._imports_0$15,
|
||||
m: common_vendor.o(jumptodanyuan, index0),
|
||||
n: common_assets._imports_4,
|
||||
o: common_assets._imports_5,
|
||||
p: common_assets._imports_6,
|
||||
n: common_assets._imports_4$4,
|
||||
o: common_assets._imports_5$4,
|
||||
p: common_assets._imports_6$1,
|
||||
q: common_assets._imports_7$2,
|
||||
r: common_assets._imports_8$2
|
||||
} : {}, {
|
||||
|
|
@ -322,15 +322,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}, !item0.states ? {
|
||||
M: common_assets._imports_0$15,
|
||||
N: common_vendor.o(jumptokufang, index0),
|
||||
O: common_assets._imports_4,
|
||||
P: common_assets._imports_5,
|
||||
Q: common_assets._imports_6,
|
||||
O: common_assets._imports_4$4,
|
||||
P: common_assets._imports_5$4,
|
||||
Q: common_assets._imports_6$1,
|
||||
R: common_assets._imports_7$2,
|
||||
S: common_assets._imports_8$2
|
||||
} : {}, {
|
||||
T: item0.states == 1
|
||||
}, item0.states == 1 ? {
|
||||
U: common_assets._imports_12$1,
|
||||
U: common_assets._imports_12,
|
||||
V: common_vendor.o(jumptokufang, index0)
|
||||
} : {}) : {}, {
|
||||
W: index0
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
);
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$5,
|
||||
a: common_assets._imports_0$4,
|
||||
b: uuid.value,
|
||||
c: common_vendor.o(($event) => uuid.value = $event.detail.value),
|
||||
d: uuid.value,
|
||||
e: common_assets._imports_1$2,
|
||||
e: common_assets._imports_1$1,
|
||||
f: common_vendor.o(($event) => uuid.value = ""),
|
||||
g: __props.isShow,
|
||||
h: common_vendor.s(transition.value ? {
|
||||
|
|
|
|||
|
|
@ -116,11 +116,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}, allindex),
|
||||
f: renamenummber.value == allindex
|
||||
}, renamenummber.value == allindex ? {
|
||||
g: common_assets._imports_4$3,
|
||||
g: common_assets._imports_4$5,
|
||||
h: savevalue.value,
|
||||
i: common_vendor.o(($event) => savevalue.value = $event.detail.value, allindex),
|
||||
j: savevalue.value,
|
||||
k: common_assets._imports_5$2,
|
||||
k: common_assets._imports_5$1,
|
||||
l: common_vendor.o(($event) => savevalue.value = ``, allindex),
|
||||
m: common_vendor.o(($event) => changename(savevalue.value, allindex), allindex)
|
||||
} : {}, {
|
||||
|
|
@ -130,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
}),
|
||||
j: common_assets._imports_2$10,
|
||||
k: common_assets._imports_3$5,
|
||||
k: common_assets._imports_3$7,
|
||||
l: scrollTop.value,
|
||||
m: __props.isShow,
|
||||
n: common_vendor.s(transition.value ? {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@ const _sfc_main = {
|
|||
}
|
||||
const go = () => {
|
||||
common_vendor.index.setStorageSync("token", 1);
|
||||
plus.runtime.quit();
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="{{['data-v-af075e65', 'neuro-wrapper', e]}}" hidden="{{!f}}"><view class="neuro-mask data-v-af075e65" bindtap="{{a}}"></view><view class="neuro-box data-v-af075e65" catchtap="{{d}}"><view class="button-father data-v-af075e65"><view class="button-white data-v-af075e65" bindtap="{{b}}">取消</view><view class="button data-v-af075e65" bindtap="{{c}}">确定</view></view><view class="title data-v-af075e65">退出登录</view><view class="card-font data-v-af075e65"> 确定要注销155******76账户吗 </view></view></view>
|
||||
<view class="{{['data-v-af075e65', 'neuro-wrapper', e]}}" hidden="{{!f}}"><view class="neuro-mask data-v-af075e65" bindtap="{{a}}"></view><view class="neuro-box data-v-af075e65" catchtap="{{d}}"><view class="button-father data-v-af075e65"><view class="button-white data-v-af075e65" bindtap="{{b}}">取消</view><view class="button data-v-af075e65" bindtap="{{c}}">确定</view></view><view class="title data-v-af075e65">退出登录</view><view class="card-font data-v-af075e65"> 确定要注销130******31账户吗 </view></view></view>
|
||||
|
|
@ -3,28 +3,16 @@ const common_vendor = require("../../../common/vendor.js");
|
|||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "arrowkeys",
|
||||
props: {
|
||||
movebottom: {
|
||||
type: Number,
|
||||
default: 30
|
||||
},
|
||||
moveleft: {
|
||||
type: Number,
|
||||
default: 10
|
||||
},
|
||||
leftbuttonname: {
|
||||
type: String,
|
||||
default: "返回"
|
||||
},
|
||||
rightbuttonname: {
|
||||
type: String,
|
||||
default: "确定"
|
||||
}
|
||||
movebottom: { type: Number, default: 30 },
|
||||
moveleft: { type: Number, default: 10 },
|
||||
leftbuttonname: { type: String, default: "返回" },
|
||||
rightbuttonname: { type: String, default: "确定" }
|
||||
},
|
||||
emits: ["movecard"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
const emit = __emit;
|
||||
let clickResetTimer = null;
|
||||
let longPressInterval = null;
|
||||
let longPressTimer = null;
|
||||
let isLongPress = false;
|
||||
const beblue = common_vendor.ref(-1);
|
||||
let activeLongPressDir = null;
|
||||
|
|
@ -34,16 +22,16 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
clickResetTimer = null;
|
||||
}
|
||||
}
|
||||
function clearLongPressInterval() {
|
||||
if (longPressInterval) {
|
||||
clearInterval(longPressInterval);
|
||||
longPressInterval = null;
|
||||
function clearLongPressTimer() {
|
||||
if (longPressTimer) {
|
||||
clearTimeout(longPressTimer);
|
||||
longPressTimer = null;
|
||||
}
|
||||
isLongPress = false;
|
||||
activeLongPressDir = null;
|
||||
}
|
||||
function onTap(dir) {
|
||||
clearLongPressInterval();
|
||||
clearLongPressTimer();
|
||||
clearClickResetTimer();
|
||||
beblue.value = dir;
|
||||
emit("movecard", dir);
|
||||
|
|
@ -52,22 +40,24 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
clickResetTimer = null;
|
||||
}, 500);
|
||||
}
|
||||
function onLongPressStart(dir, e) {
|
||||
function onLongPressStart(dir) {
|
||||
clearClickResetTimer();
|
||||
clearLongPressInterval();
|
||||
clearLongPressTimer();
|
||||
beblue.value = dir;
|
||||
emit("movecard", dir);
|
||||
activeLongPressDir = dir;
|
||||
isLongPress = true;
|
||||
longPressInterval = setInterval(() => {
|
||||
if (activeLongPressDir !== null)
|
||||
emit("movecard", activeLongPressDir);
|
||||
}, 500);
|
||||
function loop() {
|
||||
if (!isLongPress || activeLongPressDir === null)
|
||||
return;
|
||||
longPressTimer = setTimeout(loop, 500);
|
||||
}
|
||||
longPressTimer = setTimeout(loop, 500);
|
||||
}
|
||||
function onLongPressEnd() {
|
||||
if (!isLongPress)
|
||||
return;
|
||||
clearLongPressInterval();
|
||||
clearLongPressTimer();
|
||||
clearClickResetTimer();
|
||||
clickResetTimer = setTimeout(() => {
|
||||
beblue.value = -1;
|
||||
|
|
@ -76,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}
|
||||
common_vendor.onBeforeUnmount(() => {
|
||||
clearClickResetTimer();
|
||||
clearLongPressInterval();
|
||||
clearLongPressTimer();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
|
|
@ -85,37 +75,47 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
c: common_vendor.n(beblue.value === 5 ? "grad-text" : ""),
|
||||
d: common_vendor.n(beblue.value === 5 ? "click-box-target" : "click-box"),
|
||||
e: common_vendor.o(($event) => onTap(5)),
|
||||
f: common_vendor.o((e) => onLongPressStart(5)),
|
||||
g: `/static/index/newruler/${beblue.value === 0 ? 1 : 0}.png`,
|
||||
h: `/static/index/newruler/fangxiang${beblue.value === 0 ? "target" : ""}.png`,
|
||||
i: common_vendor.n(beblue.value === 0 ? "click-box-target" : "click-box"),
|
||||
j: common_vendor.o(($event) => onTap(0)),
|
||||
k: common_vendor.o((e) => onLongPressStart(0)),
|
||||
l: `/static/index/newruler/${beblue.value === 4 ? 1 : 0}.png`,
|
||||
m: common_vendor.t(__props.rightbuttonname),
|
||||
n: common_vendor.n(beblue.value === 4 ? "grad-text" : ""),
|
||||
o: common_vendor.n(beblue.value === 4 ? "click-box-target" : "click-box"),
|
||||
p: common_vendor.o(($event) => onTap(4)),
|
||||
q: common_vendor.o((e) => onLongPressStart(4)),
|
||||
r: `/static/index/newruler/${beblue.value === 3 ? 1 : 0}.png`,
|
||||
s: `/static/index/newruler/fangxiang${beblue.value === 3 ? "target" : ""}.png`,
|
||||
t: common_vendor.n(beblue.value === 3 ? "click-box-target" : "click-box"),
|
||||
v: common_vendor.o(($event) => onTap(3)),
|
||||
w: common_vendor.o((e) => onLongPressStart(3)),
|
||||
x: `/static/index/newruler/${beblue.value === 2 ? 1 : 0}.png`,
|
||||
y: `/static/index/newruler/fangxiang${beblue.value === 2 ? "target" : ""}.png`,
|
||||
z: common_vendor.n(beblue.value === 2 ? "click-box-target" : "click-box"),
|
||||
A: common_vendor.o(($event) => onTap(2)),
|
||||
B: common_vendor.o((e) => onLongPressStart(2)),
|
||||
C: `/static/index/newruler/${beblue.value === 1 ? 1 : 0}.png`,
|
||||
D: `/static/index/newruler/fangxiang${beblue.value === 1 ? "target" : ""}.png`,
|
||||
E: common_vendor.n(beblue.value === 1 ? "click-box-target" : "click-box"),
|
||||
F: common_vendor.o(($event) => onTap(1)),
|
||||
G: common_vendor.o((e) => onLongPressStart(1)),
|
||||
H: `${__props.movebottom}rpx`,
|
||||
I: `${__props.moveleft}rpx`,
|
||||
J: common_vendor.o(onLongPressEnd),
|
||||
K: common_vendor.o(onLongPressEnd)
|
||||
f: common_vendor.o(() => onLongPressStart(5)),
|
||||
g: common_vendor.o(onLongPressEnd),
|
||||
h: common_vendor.o(onLongPressEnd),
|
||||
i: `/static/index/newruler/${beblue.value === 0 ? 1 : 0}.png`,
|
||||
j: `/static/index/newruler/fangxiang${beblue.value === 0 ? "target" : ""}.png`,
|
||||
k: common_vendor.n(beblue.value === 0 ? "click-box-target" : "click-box"),
|
||||
l: common_vendor.o(($event) => onTap(0)),
|
||||
m: common_vendor.o(() => onLongPressStart(0)),
|
||||
n: common_vendor.o(onLongPressEnd),
|
||||
o: common_vendor.o(onLongPressEnd),
|
||||
p: `/static/index/newruler/${beblue.value === 4 ? 1 : 0}.png`,
|
||||
q: common_vendor.t(__props.rightbuttonname),
|
||||
r: common_vendor.n(beblue.value === 4 ? "grad-text" : ""),
|
||||
s: common_vendor.n(beblue.value === 4 ? "click-box-target" : "click-box"),
|
||||
t: common_vendor.o(($event) => onTap(4)),
|
||||
v: common_vendor.o(() => onLongPressStart(4)),
|
||||
w: common_vendor.o(onLongPressEnd),
|
||||
x: common_vendor.o(onLongPressEnd),
|
||||
y: `/static/index/newruler/${beblue.value === 3 ? 1 : 0}.png`,
|
||||
z: `/static/index/newruler/fangxiang${beblue.value === 3 ? "target" : ""}.png`,
|
||||
A: common_vendor.n(beblue.value === 3 ? "click-box-target" : "click-box"),
|
||||
B: common_vendor.o(($event) => onTap(3)),
|
||||
C: common_vendor.o(() => onLongPressStart(3)),
|
||||
D: common_vendor.o(onLongPressEnd),
|
||||
E: common_vendor.o(onLongPressEnd),
|
||||
F: `/static/index/newruler/${beblue.value === 2 ? 1 : 0}.png`,
|
||||
G: `/static/index/newruler/fangxiang${beblue.value === 2 ? "target" : ""}.png`,
|
||||
H: common_vendor.n(beblue.value === 2 ? "click-box-target" : "click-box"),
|
||||
I: common_vendor.o(($event) => onTap(2)),
|
||||
J: common_vendor.o(() => onLongPressStart(2)),
|
||||
K: common_vendor.o(onLongPressEnd),
|
||||
L: common_vendor.o(onLongPressEnd),
|
||||
M: `/static/index/newruler/${beblue.value === 1 ? 1 : 0}.png`,
|
||||
N: `/static/index/newruler/fangxiang${beblue.value === 1 ? "target" : ""}.png`,
|
||||
O: common_vendor.n(beblue.value === 1 ? "click-box-target" : "click-box"),
|
||||
P: common_vendor.o(($event) => onTap(1)),
|
||||
Q: common_vendor.o(() => onLongPressStart(1)),
|
||||
R: common_vendor.o(onLongPressEnd),
|
||||
S: common_vendor.o(onLongPressEnd),
|
||||
T: `${__props.movebottom}rpx`,
|
||||
U: `${__props.moveleft}rpx`
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="move-circle data-v-7e0708e6" style="{{'bottom:' + H + ';' + ('left:' + I)}}" bindtouchend="{{J}}" bindtouchcancel="{{K}}"><view class="{{['data-v-7e0708e6', d]}}" bindtap="{{e}}" style="position:relative" bindlongpress="{{f}}"><image class="data-v-7e0708e6" src="{{a}}" style="position:absolute;width:100%;height:100%"/><label style="z-index:1;font-size:30rpx" class="{{['data-v-7e0708e6', c]}}">{{b}}</label></view><view class="{{['data-v-7e0708e6', i]}}" bindtap="{{j}}" style="position:relative" bindlongpress="{{k}}"><image class="data-v-7e0708e6" src="{{g}}" style="position:absolute;width:100%;height:100%"/><image src="{{h}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', o]}}" bindtap="{{p}}" style="position:relative" bindlongpress="{{q}}"><image class="data-v-7e0708e6" src="{{l}}" style="position:absolute;width:100%;height:100%"/><label style="z-index:1;font-size:30rpx" class="{{['data-v-7e0708e6', n]}}">{{m}}</label></view><view class="{{['data-v-7e0708e6', t]}}" bindtap="{{v}}" style="position:relative" bindlongpress="{{w}}"><image class="data-v-7e0708e6" src="{{r}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(270deg);transform-origin:center" src="{{s}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', z]}}" bindtap="{{A}}" style="position:relative" bindlongpress="{{B}}"><image class="data-v-7e0708e6" src="{{x}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(180deg);transform-origin:center" src="{{y}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', E]}}" bindtap="{{F}}" style="position:relative" bindlongpress="{{G}}"><image class="data-v-7e0708e6" src="{{C}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(90deg);transform-origin:center" src="{{D}}" class="image-photo data-v-7e0708e6"/></view></view>
|
||||
<view class="move-circle data-v-7e0708e6" style="{{'bottom:' + T + ';' + ('left:' + U)}}"><view class="{{['data-v-7e0708e6', d]}}" bindtap="{{e}}" bindlongpress="{{f}}" bindtouchend="{{g}}" bindtouchcancel="{{h}}" style="position:relative"><image class="data-v-7e0708e6" src="{{a}}" style="position:absolute;width:100%;height:100%"/><label style="z-index:1;font-size:30rpx" class="{{['data-v-7e0708e6', c]}}">{{b}}</label></view><view class="{{['data-v-7e0708e6', k]}}" bindtap="{{l}}" bindlongpress="{{m}}" bindtouchend="{{n}}" bindtouchcancel="{{o}}" style="position:relative"><image class="data-v-7e0708e6" src="{{i}}" style="position:absolute;width:100%;height:100%"/><image src="{{j}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', s]}}" bindtap="{{t}}" bindlongpress="{{v}}" bindtouchend="{{w}}" bindtouchcancel="{{x}}" style="position:relative"><image class="data-v-7e0708e6" src="{{p}}" style="position:absolute;width:100%;height:100%"/><label style="z-index:1;font-size:30rpx" class="{{['data-v-7e0708e6', r]}}">{{q}}</label></view><view class="{{['data-v-7e0708e6', A]}}" bindtap="{{B}}" bindlongpress="{{C}}" bindtouchend="{{D}}" bindtouchcancel="{{E}}" style="position:relative"><image class="data-v-7e0708e6" src="{{y}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(270deg);transform-origin:center" src="{{z}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', H]}}" bindtap="{{I}}" bindlongpress="{{J}}" bindtouchend="{{K}}" bindtouchcancel="{{L}}" style="position:relative"><image class="data-v-7e0708e6" src="{{F}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(180deg);transform-origin:center" src="{{G}}" class="image-photo data-v-7e0708e6"/></view><view class="{{['data-v-7e0708e6', O]}}" bindtap="{{P}}" bindlongpress="{{Q}}" bindtouchend="{{R}}" bindtouchcancel="{{S}}" style="position:relative"><image class="data-v-7e0708e6" src="{{M}}" style="position:absolute;width:100%;height:100%"/><image style="transform:rotate(90deg);transform-origin:center" src="{{N}}" class="image-photo data-v-7e0708e6"/></view></view>
|
||||
|
|
@ -15,7 +15,6 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 0rpx;
|
||||
font-size: 28rpx;
|
||||
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
|
@ -24,10 +23,8 @@
|
|||
.click-box.data-v-7e0708e6 {
|
||||
color: #888d99;
|
||||
}
|
||||
/* 选中态:背景径向渐变 + 中心缩放动画(从中间放大再回到原样) */
|
||||
.click-box-target.data-v-7e0708e6 {
|
||||
color: transparent;
|
||||
/* 文字使用渐变填充 */
|
||||
animation: scalePulse-7e0708e6 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
transform-origin: center center;
|
||||
}
|
||||
|
|
@ -36,18 +33,15 @@
|
|||
transform: scale(1);
|
||||
}
|
||||
25% {
|
||||
/* 先收缩一点点 */
|
||||
transform: scale(0.94);
|
||||
}
|
||||
65% {
|
||||
/* 再放大到略超出的感觉 */
|
||||
transform: scale(1.08);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
/* 文本渐变(用于返回/确定文字) */
|
||||
.grad-text.data-v-7e0708e6 {
|
||||
background-image: linear-gradient(90deg, #5b8bb3, #87a1bd);
|
||||
background-size: 200% 100%;
|
||||
|
|
@ -57,7 +51,6 @@
|
|||
-webkit-text-fill-color: transparent;
|
||||
transition: background-position 0.8s linear;
|
||||
}
|
||||
/* 选中时文字渐变滚动效果 */
|
||||
.click-box-target .grad-text.data-v-7e0708e6 {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
|
|
@ -66,9 +59,7 @@
|
|||
height: 25%;
|
||||
transition: transform 0.18s ease, filter 0.18s ease;
|
||||
}
|
||||
/* 选中时图片略微放大 */
|
||||
.click-box-target .image-photo.data-v-7e0708e6 {
|
||||
/* 让图片跟随父元素缩放,不额外放大,保留平滑过渡 */
|
||||
transform: none;
|
||||
transition: transform 0.18s ease, filter 0.18s ease;
|
||||
filter: none;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const common_assets = require("../../../common/assets.js");
|
||||
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
__name: "joysticknew",
|
||||
props: {
|
||||
|
|
@ -11,9 +12,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
moveleft: {
|
||||
moveright: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: 110
|
||||
},
|
||||
pao: {
|
||||
type: Boolean,
|
||||
|
|
@ -74,9 +75,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
clickResetTimer = null;
|
||||
}, 300);
|
||||
}
|
||||
function onRippleAnimationEnd() {
|
||||
showRippleOnce.value = false;
|
||||
}
|
||||
function onLongPressStart(dir, e) {
|
||||
clearLongPressInterval();
|
||||
isLongPress = true;
|
||||
|
|
@ -137,47 +135,35 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: showShadow.value && __props.pao
|
||||
}, showShadow.value && __props.pao ? {
|
||||
b: shadow.x + "px",
|
||||
c: shadow.y + "px"
|
||||
} : {}, {
|
||||
d: showRippleOnce.value && __props.pao
|
||||
}, showRippleOnce.value && __props.pao ? {
|
||||
e: rippleKey.value,
|
||||
f: shadow.x + "px",
|
||||
g: shadow.y + "px",
|
||||
h: common_vendor.o(onRippleAnimationEnd)
|
||||
} : {}, {
|
||||
i: !__props.notext ? `/static/index/newruler/direction_1.png` : `/static/index/newruler/suere.png`,
|
||||
j: type.value == -1 || type.value == 4,
|
||||
k: !__props.notext ? `/static/index/newruler/direction_3.png` : `/static/index/newruler/sure_2.png`,
|
||||
l: type.value == 3,
|
||||
m: !__props.notext ? `/static/index/newruler/direction_5.png` : `/static/index/newruler/sure_4.png`,
|
||||
n: type.value == 2,
|
||||
o: !__props.notext ? `/static/index/newruler/direction_4.png` : `/static/index/newruler/sure_3.png`,
|
||||
p: type.value == 0,
|
||||
q: !__props.notext ? `/static/index/newruler/direction_2.png` : `/static/index/newruler/sure_1.png`,
|
||||
r: type.value == 1,
|
||||
s: getblue.value
|
||||
a: common_assets._imports_0$12,
|
||||
b: type.value == -1 || type.value == 4,
|
||||
c: common_assets._imports_1$10,
|
||||
d: type.value == 3,
|
||||
e: common_assets._imports_2$6,
|
||||
f: type.value == 2,
|
||||
g: common_assets._imports_3$4,
|
||||
h: type.value == 0,
|
||||
i: common_assets._imports_4$3,
|
||||
j: type.value == 1,
|
||||
k: getblue.value
|
||||
}, getblue.value ? {
|
||||
t: pulseKey.value
|
||||
l: pulseKey.value
|
||||
} : {}, {
|
||||
v: common_vendor.o(($event) => onTap(0, $event)),
|
||||
w: common_vendor.o((e) => onLongPressStart(0, e)),
|
||||
x: common_vendor.o(($event) => onTap(3, $event)),
|
||||
y: common_vendor.o((e) => onLongPressStart(3, e)),
|
||||
z: common_vendor.o(($event) => onTap(2, $event)),
|
||||
A: common_vendor.o((e) => onLongPressStart(2, e)),
|
||||
B: common_vendor.o(($event) => onTap(1, $event)),
|
||||
C: common_vendor.o((e) => onLongPressStart(1, e)),
|
||||
D: common_vendor.o(($event) => onTap(4, $event)),
|
||||
E: common_vendor.o((e) => onLongPressStart(4, e)),
|
||||
F: `${__props.movebottom}rpx`,
|
||||
G: `${__props.moveleft}rpx`,
|
||||
H: common_vendor.o(onTouchMove),
|
||||
I: common_vendor.o(onPressEnd),
|
||||
J: common_vendor.o(onPressEnd)
|
||||
m: common_vendor.o(($event) => onTap(0, $event)),
|
||||
n: common_vendor.o((e) => onLongPressStart(0, e)),
|
||||
o: common_vendor.o(($event) => onTap(3, $event)),
|
||||
p: common_vendor.o((e) => onLongPressStart(3, e)),
|
||||
q: common_vendor.o(($event) => onTap(2, $event)),
|
||||
r: common_vendor.o((e) => onLongPressStart(2, e)),
|
||||
s: common_vendor.o(($event) => onTap(1, $event)),
|
||||
t: common_vendor.o((e) => onLongPressStart(1, e)),
|
||||
v: common_vendor.o(($event) => onTap(4, $event)),
|
||||
w: common_vendor.o((e) => onLongPressStart(4, e)),
|
||||
x: `${__props.movebottom}rpx`,
|
||||
y: `${__props.moveright}rpx`,
|
||||
z: common_vendor.o(onTouchMove),
|
||||
A: common_vendor.o(onPressEnd),
|
||||
B: common_vendor.o(onPressEnd)
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="move-circle data-v-e20c63a2" style="{{'bottom:' + F + ';' + ('left:' + G)}}" bindtouchmove="{{H}}" bindtouchend="{{I}}" bindtouchcancel="{{J}}"><view wx:if="{{a}}" class="light-shadow ripple-loop data-v-e20c63a2" style="{{'left:' + b + ';' + ('top:' + c) + ';' + ('transform:' + 'translate(-50%, -50%)')}}"></view><view wx:if="{{d}}" key="{{e}}" class="light-shadow ripple-once data-v-e20c63a2" style="{{'left:' + f + ';' + ('top:' + g) + ';' + ('transform:' + 'translate(-50%, -50%)')}}" bindanimationend="{{h}}"></view><image src="{{i}}" hidden="{{!j}}" class="move-circle-all data-v-e20c63a2"/><image src="{{k}}" hidden="{{!l}}" class="move-circle-all data-v-e20c63a2"/><image src="{{m}}" hidden="{{!n}}" class="move-circle-all data-v-e20c63a2"/><image src="{{o}}" hidden="{{!p}}" class="move-circle-all data-v-e20c63a2"/><image src="{{q}}" hidden="{{!r}}" class="move-circle-all data-v-e20c63a2"/><view wx:if="{{s}}" class="pulse-circle data-v-e20c63a2" key="{{t}}"></view><view class="click-box-top data-v-e20c63a2" bindtap="{{v}}" bindlongpress="{{w}}"/><view class="click-box-left data-v-e20c63a2" bindtap="{{x}}" bindlongpress="{{y}}"/><view class="click-box-bottom data-v-e20c63a2" bindtap="{{z}}" bindlongpress="{{A}}"/><view class="click-box-right data-v-e20c63a2" bindtap="{{B}}" bindlongpress="{{C}}"/><view class="click-box-center data-v-e20c63a2" bindtap="{{D}}" bindlongpress="{{E}}"/></view>
|
||||
<view class="move-circle data-v-e20c63a2" style="{{'bottom:' + x + ';' + ('right:' + y)}}" bindtouchmove="{{z}}" bindtouchend="{{A}}" bindtouchcancel="{{B}}"><image src="{{a}}" hidden="{{!b}}" class="move-circle-all data-v-e20c63a2"/><image src="{{c}}" hidden="{{!d}}" class="move-circle-all data-v-e20c63a2"/><image src="{{e}}" hidden="{{!f}}" class="move-circle-all data-v-e20c63a2"/><image src="{{g}}" hidden="{{!h}}" class="move-circle-all data-v-e20c63a2"/><image src="{{i}}" hidden="{{!j}}" class="move-circle-all data-v-e20c63a2"/><view wx:if="{{k}}" class="pulse-circle data-v-e20c63a2" key="{{l}}"></view><view class="click-box-top data-v-e20c63a2" bindtap="{{m}}" bindlongpress="{{n}}"/><view class="click-box-left data-v-e20c63a2" bindtap="{{o}}" bindlongpress="{{p}}"/><view class="click-box-bottom data-v-e20c63a2" bindtap="{{q}}" bindlongpress="{{r}}"/><view class="click-box-right data-v-e20c63a2" bindtap="{{s}}" bindlongpress="{{t}}"/><view class="click-box-center data-v-e20c63a2" bindtap="{{v}}" bindlongpress="{{w}}"/></view>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
.move-circle.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 0rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
width: 350rpx;
|
||||
height: 350rpx;
|
||||
display: flex;
|
||||
|
|
@ -13,24 +13,17 @@
|
|||
.move-circle .click-box-top.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
left: 70rpx;
|
||||
right: 70rpx;
|
||||
width: 220rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
.move-circle .click-box-bottom.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 20rpx;
|
||||
left: 70rpx;
|
||||
right: 70rpx;
|
||||
width: 220rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
.move-circle .click-box-left.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
left: 0;
|
||||
width: 90rpx;
|
||||
height: 150rpx;
|
||||
}
|
||||
.move-circle .click-box-right.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
|
|
@ -38,6 +31,13 @@
|
|||
width: 90rpx;
|
||||
height: 150rpx;
|
||||
}
|
||||
.move-circle .click-box-left.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 100rpx;
|
||||
left: 0;
|
||||
width: 90rpx;
|
||||
height: 150rpx;
|
||||
}
|
||||
.move-circle .click-box-center.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
bottom: 130rpx;
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
.pulse-circle.data-v-e20c63a2 {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
right: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, #03a4ff 0%, transparent 70%);
|
||||
|
|
|
|||
|
|
@ -1,104 +0,0 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "specialDrawer",
|
||||
props: {
|
||||
widNumber: {
|
||||
type: Number,
|
||||
default: 25
|
||||
}
|
||||
},
|
||||
setup(__props, { expose: __expose }) {
|
||||
const isVisible = common_vendor.ref(false);
|
||||
const props = __props;
|
||||
const screenWidth = common_vendor.ref(0);
|
||||
common_vendor.onMounted(() => {
|
||||
const sys = common_vendor.index.getSystemInfoSync();
|
||||
screenWidth.value = sys.screenWidth;
|
||||
});
|
||||
const startX = common_vendor.ref(0);
|
||||
const dragging = common_vendor.ref(false);
|
||||
const currentOffset = common_vendor.ref(0);
|
||||
const drawerStyle = common_vendor.computed(() => {
|
||||
const widthPct = `${props.widNumber}%`;
|
||||
if (dragging.value) {
|
||||
const offset = currentOffset.value;
|
||||
return {
|
||||
width: widthPct,
|
||||
transform: `translateX(${offset}px)`,
|
||||
transition: "none"
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
width: widthPct
|
||||
};
|
||||
}
|
||||
});
|
||||
function openDrawer() {
|
||||
isVisible.value = true;
|
||||
}
|
||||
function closeDrawer() {
|
||||
isVisible.value = false;
|
||||
}
|
||||
function whiteDrawer() {
|
||||
isVisible.value = !isVisible.value;
|
||||
rotate180();
|
||||
}
|
||||
__expose({
|
||||
openDrawer,
|
||||
closeDrawer
|
||||
});
|
||||
function onTouchStart(e) {
|
||||
if (!isVisible.value)
|
||||
return;
|
||||
dragging.value = true;
|
||||
currentOffset.value = 0;
|
||||
startX.value = e.touches[0].pageX;
|
||||
}
|
||||
function onTouchMove(e) {
|
||||
if (!dragging.value)
|
||||
return;
|
||||
const delta = e.touches[0].pageX - startX.value;
|
||||
currentOffset.value = delta > 0 ? delta : 0;
|
||||
}
|
||||
function onTouchEnd() {
|
||||
if (!dragging.value)
|
||||
return;
|
||||
dragging.value = false;
|
||||
const halfPx = screenWidth.value * (props.widNumber / 100) / 2;
|
||||
if (currentOffset.value > halfPx) {
|
||||
closeDrawer();
|
||||
rotate180();
|
||||
}
|
||||
currentOffset.value = 0;
|
||||
}
|
||||
const angle = common_vendor.ref(0);
|
||||
common_vendor.computed(() => ({
|
||||
transform: `rotate(${angle.value}deg)`,
|
||||
transition: "transform 0.6s ease"
|
||||
}));
|
||||
function rotate180() {
|
||||
angle.value += 180;
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: isVisible.value ? "/static/index/watch/whitearrow.png" : "/static/index/watch/arrow.png",
|
||||
b: common_vendor.s(isVisible.value ? {} : {
|
||||
background: `linear-gradient(to bottom,#62E8FF,#0097FF)`
|
||||
}),
|
||||
c: common_vendor.o(whiteDrawer),
|
||||
d: common_vendor.o(onTouchStart),
|
||||
e: common_vendor.o(onTouchMove),
|
||||
f: common_vendor.o(onTouchEnd),
|
||||
g: common_vendor.o(onTouchEnd),
|
||||
h: common_vendor.n({
|
||||
"drawer-open": isVisible.value
|
||||
}),
|
||||
i: common_vendor.s(drawerStyle.value)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f2f12044"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/public/specialDrawer.js.map
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
<view class="data-v-f2f12044"><view class="{{['data-v-f2f12044', 'drawer', h]}}" style="{{i}}"><view class="drawer-content data-v-f2f12044" bindtouchstart="{{d}}" bindtouchmove="{{e}}" bindtouchend="{{f}}" bindtouchcancel="{{g}}"><view class="drawer-content-circle data-v-f2f12044" style="{{b}}" bindtap="{{c}}"><image class="drawer-img data-v-f2f12044" src="{{a}}"/></view><slot/></view></view></view>
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
.drawer.data-v-f2f12044 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 85vh;
|
||||
background: #eff0f4;
|
||||
z-index: 1000;
|
||||
border-top-left-radius: 80rpx;
|
||||
border-bottom-left-radius: 80rpx;
|
||||
/* 初始隐藏 */
|
||||
transform: translateX(100%);
|
||||
transition: transform 0.4s ease;
|
||||
}
|
||||
.drawer-open.data-v-f2f12044 {
|
||||
transform: translateX(0);
|
||||
}
|
||||
.drawer-content.data-v-f2f12044 {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.drawer-content-circle.data-v-f2f12044 {
|
||||
position: absolute;
|
||||
bottom: 240rpx;
|
||||
left: -60rpx;
|
||||
width: 150rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 50%;
|
||||
z-index: -1;
|
||||
background: linear-gradient(to right, #fff 0rpx, #eff0f4 60rpx, #eff0f4 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
-webkit-clip-path: inset(0 60% 0 0);
|
||||
clip-path: inset(0 60% 0 0);
|
||||
}
|
||||
.drawer-img.data-v-f2f12044 {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
margin-left: 25rpx;
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: index
|
||||
};
|
||||
}),
|
||||
X: common_assets._imports_0$8,
|
||||
X: common_assets._imports_0$7,
|
||||
Y: common_vendor.t(currentTime.value),
|
||||
Z: common_vendor.n(__props.darkFans ? `right-container-title-dark` : `right-container-title`),
|
||||
aa: common_vendor.t(fullDate.value),
|
||||
|
|
@ -446,7 +446,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
e: common_vendor.o(($event) => changeMenuUnder(index), index)
|
||||
};
|
||||
}),
|
||||
by: common_assets._imports_1$8,
|
||||
by: common_assets._imports_1$7,
|
||||
bz: common_vendor.n(__props.darkFans ? `under-father-img-font-dark` : `under-father-img-font`),
|
||||
bA: common_vendor.sr(drawer, "9f74ebdb-0", {
|
||||
"k": "drawer"
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: common_assets._imports_0$15,
|
||||
b: common_assets._imports_1$15,
|
||||
c: common_assets._imports_2$11,
|
||||
d: common_assets._imports_3$6,
|
||||
e: common_assets._imports_4$4,
|
||||
d: common_assets._imports_3$8,
|
||||
e: common_assets._imports_4$6,
|
||||
f: common_assets._imports_5$5,
|
||||
g: common_assets._imports_6$2,
|
||||
h: common_vendor.o(($event) => showVideo.value = true),
|
||||
|
|
|
|||
|
|
@ -1084,7 +1084,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
f: common_vendor.o(($event) => changLeft(index2), index2)
|
||||
};
|
||||
}),
|
||||
D: common_assets._imports_0$11,
|
||||
D: common_assets._imports_0$10,
|
||||
E: common_vendor.f(downList.value, (item, index2, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
|
|
@ -1126,7 +1126,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
T: songisopen.value
|
||||
}, songisopen.value ? {
|
||||
U: common_assets._imports_1$9,
|
||||
U: common_assets._imports_1$8,
|
||||
V: common_vendor.t(openValue.value.time + ":00"),
|
||||
W: common_vendor.f(openValue.value.array, (item, index2, i0) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -874,8 +874,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
} : {}, {
|
||||
m: item1.startTime
|
||||
}, item1.startTime ? {
|
||||
n: common_assets._imports_0$12,
|
||||
o: common_assets._imports_1$10
|
||||
n: common_assets._imports_0$11,
|
||||
o: common_assets._imports_1$9
|
||||
} : {}, {
|
||||
p: common_vendor.n(getClass(item1, index0, index1)),
|
||||
q: `-${computeDelay(index0, index1).toFixed(2)}s`,
|
||||
|
|
@ -924,8 +924,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
x: common_assets._imports_2$5,
|
||||
y: common_vendor.n(bottomisShaking.value ? `super-end-items-img-father-active` : `super-end-items-img-father`),
|
||||
z: common_assets._imports_0$12,
|
||||
A: common_assets._imports_1$10,
|
||||
z: common_assets._imports_0$11,
|
||||
A: common_assets._imports_1$9,
|
||||
B: bottomisShaking.value,
|
||||
C: scrollLeft.value,
|
||||
D: common_vendor.o(($event) => {
|
||||
|
|
@ -983,12 +983,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
h: common_vendor.o(($event) => onTap(index2), index2)
|
||||
};
|
||||
}),
|
||||
O: common_assets._imports_3$2,
|
||||
O: common_assets._imports_3$3,
|
||||
P: common_assets._imports_4$2,
|
||||
Q: common_assets._imports_5$4,
|
||||
R: common_assets._imports_0$9,
|
||||
S: common_assets._imports_0$12,
|
||||
T: common_assets._imports_1$10,
|
||||
Q: common_assets._imports_5$3,
|
||||
R: common_assets._imports_0$8,
|
||||
S: common_assets._imports_0$11,
|
||||
T: common_assets._imports_1$9,
|
||||
U: firsttop.value,
|
||||
V: !iszhouqi.value,
|
||||
W: common_vendor.f(downList.value, (item, index2, i0) => {
|
||||
|
|
@ -999,7 +999,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
d: common_vendor.o(($event) => secondContant(index2), index2)
|
||||
};
|
||||
}),
|
||||
X: common_assets._imports_0$9,
|
||||
X: common_assets._imports_0$8,
|
||||
Y: secondtop.value,
|
||||
Z: common_vendor.f(doctorsayList.value, (item, index2, i0) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_3$8,
|
||||
a: common_assets._imports_3$10,
|
||||
b: common_vendor.t(__props.savePrice),
|
||||
c: common_vendor.t(__props.changePrice),
|
||||
d: common_vendor.o(($event) => openCal(__props.changePrice)),
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
e: common_assets._imports_0$22,
|
||||
f: common_assets._imports_1$18,
|
||||
g: common_assets._imports_2$14,
|
||||
h: common_assets._imports_3$8,
|
||||
i: common_assets._imports_4$5
|
||||
h: common_assets._imports_3$10,
|
||||
i: common_assets._imports_4$7
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
o: common_vendor.o(($event) => whiteshow.value = !whiteshow.value),
|
||||
p: common_assets._imports_2$12,
|
||||
q: common_assets._imports_3$7,
|
||||
q: common_assets._imports_3$9,
|
||||
r: common_vendor.f(manyCard.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: index
|
||||
};
|
||||
}),
|
||||
h: common_assets._imports_3$8,
|
||||
h: common_assets._imports_3$10,
|
||||
i: common_vendor.t(__props.openType ? `备注` : `作废原因`),
|
||||
j: !__props.openType
|
||||
}, !__props.openType ? {} : {}, {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: index
|
||||
};
|
||||
}),
|
||||
b: common_assets._imports_3$8,
|
||||
b: common_assets._imports_3$10,
|
||||
c: note.value,
|
||||
d: common_vendor.o(($event) => note.value = $event.detail.value),
|
||||
e: common_vendor.t(note.value.length),
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: index
|
||||
};
|
||||
}),
|
||||
s: common_assets._imports_3$8,
|
||||
s: common_assets._imports_3$10,
|
||||
t: common_assets._imports_0$22,
|
||||
v: common_assets._imports_1$18,
|
||||
w: common_assets._imports_2$14,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
a: index
|
||||
};
|
||||
}),
|
||||
k: common_assets._imports_3$8,
|
||||
k: common_assets._imports_3$10,
|
||||
l: common_assets._imports_0$22,
|
||||
m: common_assets._imports_1$18,
|
||||
n: common_assets._imports_2$14
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
e: common_assets._imports_2$8,
|
||||
f: common_vendor.n(!isWarning.value ? `third-bgc` : `bgc-white`),
|
||||
g: common_vendor.o(($event) => isWarning.value = !isWarning.value),
|
||||
h: common_assets._imports_3$4,
|
||||
h: common_assets._imports_3$6,
|
||||
i: common_vendor.o(clickgoshop),
|
||||
j: common_vendor.f(buttonList.value, (item, index, i0) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -161,14 +161,14 @@ const _sfc_main = {
|
|||
url: targetUrl,
|
||||
header: this.header,
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at component/zy-upgrade/zy-upgrade.vue:222", "!!!", res);
|
||||
common_vendor.index.__f__("log", "at component/zy-upgrade/zy-upgrade.vue:223", "!!!", res);
|
||||
if (res.statusCode == 200) {
|
||||
plus.runtime.install(res.tempFilePath, {
|
||||
force: false
|
||||
}, function() {
|
||||
plus.runtime.restart();
|
||||
}, function(e) {
|
||||
common_vendor.index.__f__("error", "at component/zy-upgrade/zy-upgrade.vue:231", "install fail...", JSON.stringify(e));
|
||||
common_vendor.index.__f__("error", "at component/zy-upgrade/zy-upgrade.vue:232", "install fail...", JSON.stringify(e));
|
||||
common_vendor.index.showToast({
|
||||
title: "升级失败",
|
||||
icon: "none"
|
||||
|
|
@ -207,8 +207,8 @@ const _sfc_main = {
|
|||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$10,
|
||||
b: common_assets._imports_1$7,
|
||||
a: common_assets._imports_0$9,
|
||||
b: common_assets._imports_1$6,
|
||||
c: common_vendor.t($options.version),
|
||||
d: common_vendor.n("zy-upgrade-topbg-" + $props.theme),
|
||||
e: !$data.update_flag
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$8,
|
||||
a: common_assets._imports_0$7,
|
||||
b: common_vendor.t(name.value),
|
||||
c: common_vendor.f(iconList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
|
|
|
|||
|
|
@ -382,8 +382,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$4,
|
||||
b: common_assets._imports_1,
|
||||
a: common_assets._imports_0$13,
|
||||
b: common_assets._imports_1$11,
|
||||
c: `/static/index/undericons/man.png`,
|
||||
d: common_vendor.t(name.value),
|
||||
e: common_vendor.f(typeArray.value, (item, index, i0) => {
|
||||
|
|
|
|||
|
|
@ -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/pages/NursingNew/component/nurse/api.js.map
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const common_assets = require("../../../../common/assets.js");
|
||||
const pages_NursingNew_component_nurse_api = require("./api.js");
|
||||
const pages_NursingNew_component_nurse_yaoshandiao = require("./yaoshandiao.js");
|
||||
if (!Array) {
|
||||
const _component_donghua = common_vendor.resolveComponent("donghua");
|
||||
|
|
@ -388,6 +389,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
});
|
||||
common_vendor.onMounted(() => {
|
||||
downdonghua.value = 0;
|
||||
pages_NursingNew_component_nurse_api.getServiceTree().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/NursingNew/component/nurse/index.vue:930", "res", res);
|
||||
});
|
||||
});
|
||||
const lastTap = common_vendor.ref(0);
|
||||
function onTap(e) {
|
||||
|
|
@ -1291,11 +1295,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
j: item1.startTime
|
||||
}, item1.startTime ? common_vendor.e({
|
||||
k: item1.startTime,
|
||||
l: common_assets._imports_0$9,
|
||||
l: common_assets._imports_0$8,
|
||||
m: common_vendor.t(item1.startTime + `-` + item1.endTime),
|
||||
n: item1.cycleType != "日常"
|
||||
}, item1.cycleType != "日常" ? {
|
||||
o: common_assets._imports_1$6
|
||||
o: common_assets._imports_1$5
|
||||
} : {}, {
|
||||
p: item1.cycleType != "日常"
|
||||
}, item1.cycleType != "日常" ? {
|
||||
|
|
@ -1409,9 +1413,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
i: common_vendor.o(($event) => onTap(index), index)
|
||||
};
|
||||
}),
|
||||
U: common_assets._imports_1$6,
|
||||
V: common_assets._imports_1$6,
|
||||
W: common_assets._imports_0$9,
|
||||
U: common_assets._imports_1$5,
|
||||
V: common_assets._imports_1$5,
|
||||
W: common_assets._imports_0$8,
|
||||
X: firsttop.value,
|
||||
Y: !iszhouqi.value,
|
||||
Z: common_vendor.f(downList.value, (item, index, i0) => {
|
||||
|
|
@ -1495,7 +1499,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
}),
|
||||
aE: sayisopen.value,
|
||||
aF: common_vendor.o(($event) => sayisopen.value = false),
|
||||
aG: common_assets._imports_3$3,
|
||||
aG: common_assets._imports_3$5,
|
||||
aH: deletedownisopacity.value ? 1 : 0,
|
||||
aI: common_vendor.o(() => {
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 450rpx;
|
||||
height: 800rpx;
|
||||
/* height: 800rpx; */
|
||||
background-color: #fff;
|
||||
border: 2rpx solid #fff;
|
||||
border-radius: 30rpx;
|
||||
|
|
|
|||
|
|
@ -138,6 +138,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
common_vendor.ref(0);
|
||||
common_vendor.ref(0);
|
||||
common_vendor.ref(0);
|
||||
function testAsyncFunc() {
|
||||
var testModule = common_vendor.index.requireNativePlugin("TestModule");
|
||||
var json = { deviceId: "4", deviceName: "sdfsfsdf" };
|
||||
testModule.gotoNativePage(json);
|
||||
}
|
||||
const changesdonghua = (index2) => {
|
||||
if (menuIndex.value === index2) {
|
||||
return;
|
||||
|
|
@ -391,7 +396,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
p: animationData.value,
|
||||
q: common_assets._imports_0$2,
|
||||
r: common_vendor.n(darkFans.value ? `left-head-font-dark` : `left-head-font`),
|
||||
s: common_vendor.f(leftMenuArray.value, (item, index2, i0) => {
|
||||
s: common_vendor.o(testAsyncFunc),
|
||||
t: common_vendor.f(leftMenuArray.value, (item, index2, i0) => {
|
||||
return {
|
||||
a: "0df9d5ac-0-" + i0,
|
||||
b: common_vendor.p({
|
||||
|
|
@ -411,19 +417,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
g: common_vendor.o(($event) => changeMenu(index2), index2)
|
||||
};
|
||||
}),
|
||||
t: !menuIndex.value
|
||||
v: !menuIndex.value
|
||||
}, !menuIndex.value ? {
|
||||
v: common_vendor.o(($event) => movecard(5)),
|
||||
w: common_vendor.p({
|
||||
w: common_vendor.o(($event) => movecard(5)),
|
||||
x: common_vendor.p({
|
||||
isShow: menuIndexshow.value,
|
||||
propsmove: propsmove.value,
|
||||
isMain: isMain.value
|
||||
})
|
||||
} : {}, {
|
||||
x: menuIndex.value == 1 && isOld.value === 2
|
||||
y: menuIndex.value == 1 && isOld.value === 2
|
||||
}, menuIndex.value == 1 && isOld.value === 2 ? {
|
||||
y: common_vendor.o(canmoveit),
|
||||
z: common_vendor.p({
|
||||
z: common_vendor.o(canmoveit),
|
||||
A: common_vendor.p({
|
||||
isold: isOld.value === 2,
|
||||
liang: indexNumber.value,
|
||||
isshow: menuIndexshowsecond.value,
|
||||
|
|
@ -431,13 +437,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
isMain: isMain.value
|
||||
})
|
||||
} : {}, {
|
||||
A: common_vendor.o(movecard),
|
||||
B: common_vendor.n(darkFans.value ? `darkbackgroundContainer` : `backgroundContainer`),
|
||||
C: common_vendor.o(
|
||||
B: common_vendor.o(movecard),
|
||||
C: common_vendor.n(darkFans.value ? `darkbackgroundContainer` : `backgroundContainer`),
|
||||
D: common_vendor.o(
|
||||
//@ts-ignore
|
||||
(...args) => common_vendor.unref(getxy) && common_vendor.unref(getxy)(...args)
|
||||
),
|
||||
D: common_vendor.o(cleanall)
|
||||
E: common_vendor.o(cleanall)
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="{{['data-v-0df9d5ac', B]}}" bindtouchmove="{{C}}" bindtouchend="{{D}}"><view class="move-font data-v-0df9d5ac" hidden="{{!b}}" animation="{{c}}">{{a}}</view><view hidden="{{!n}}" class="{{['data-v-0df9d5ac', o]}}" animation="{{p}}" style="font-size:30rpx;overflow:hidden"><view class="title-time data-v-0df9d5ac" hidden="{{!g}}" style="margin-top:5rpx"><view class="title-time-time data-v-0df9d5ac" style="font-size:30rpx">{{d}}</view><image class="title-time-button data-v-0df9d5ac" src="{{e}}"/><view class="title-time-font data-v-0df9d5ac">{{f}}</view></view><view class="data-v-0df9d5ac" style="margin-top:20rpx;font-weight:700">{{h}}</view><view class="down-icons data-v-0df9d5ac" style="{{l}}" hidden="{{!m}}"><view wx:for="{{i}}" wx:for-item="item" wx:key="a" class=" data-v-0df9d5ac"><view class="icon data-v-0df9d5ac" style="{{k}}">{{j}}</view></view></view></view><view class="left-container data-v-0df9d5ac"><view class="left-head data-v-0df9d5ac"><image class="left-head-img data-v-0df9d5ac" src="{{q}}"/><text class="{{['data-v-0df9d5ac', r]}}"> 王金福 </text></view><view class="menus-father data-v-0df9d5ac"><view wx:for="{{s}}" wx:for-item="item" wx:key="d" class="{{['menu', 'data-v-0df9d5ac', item.e]}}" style="{{item.f}}" bindtap="{{item.g}}"><donghua wx:if="{{item.b}}" class="data-v-0df9d5ac" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><text class="data-v-0df9d5ac" style="font-size:31rpx;margin-left:15rpx">{{item.c}}</text></view></view></view><index wx:if="{{t}}" class="data-v-0df9d5ac" bindback="{{v}}" u-i="0df9d5ac-1" bind:__l="__l" u-p="{{w}}"/><nurse wx:if="{{x}}" class="data-v-0df9d5ac" bindvip="{{y}}" u-i="0df9d5ac-2" bind:__l="__l" u-p="{{z}}"/><arrowkeys class="data-v-0df9d5ac" bindmovecard="{{A}}" u-i="0df9d5ac-3" bind:__l="__l"/></view>
|
||||
<view class="{{['data-v-0df9d5ac', C]}}" bindtouchmove="{{D}}" bindtouchend="{{E}}"><view class="move-font data-v-0df9d5ac" hidden="{{!b}}" animation="{{c}}">{{a}}</view><view hidden="{{!n}}" class="{{['data-v-0df9d5ac', o]}}" animation="{{p}}" style="font-size:30rpx;overflow:hidden"><view class="title-time data-v-0df9d5ac" hidden="{{!g}}" style="margin-top:5rpx"><view class="title-time-time data-v-0df9d5ac" style="font-size:30rpx">{{d}}</view><image class="title-time-button data-v-0df9d5ac" src="{{e}}"/><view class="title-time-font data-v-0df9d5ac">{{f}}</view></view><view class="data-v-0df9d5ac" style="margin-top:20rpx;font-weight:700">{{h}}</view><view class="down-icons data-v-0df9d5ac" style="{{l}}" hidden="{{!m}}"><view wx:for="{{i}}" wx:for-item="item" wx:key="a" class=" data-v-0df9d5ac"><view class="icon data-v-0df9d5ac" style="{{k}}">{{j}}</view></view></view></view><view class="left-container data-v-0df9d5ac"><view class="left-head data-v-0df9d5ac" bindtap="{{s}}"><image class="left-head-img data-v-0df9d5ac" src="{{q}}"/><text class="{{['data-v-0df9d5ac', r]}}"> 王金福 </text></view><view class="menus-father data-v-0df9d5ac"><view wx:for="{{t}}" wx:for-item="item" wx:key="d" class="{{['menu', 'data-v-0df9d5ac', item.e]}}" style="{{item.f}}" bindtap="{{item.g}}"><donghua wx:if="{{item.b}}" class="data-v-0df9d5ac" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><text class="data-v-0df9d5ac" style="font-size:31rpx;margin-left:15rpx">{{item.c}}</text></view></view></view><index wx:if="{{v}}" class="data-v-0df9d5ac" bindback="{{w}}" u-i="0df9d5ac-1" bind:__l="__l" u-p="{{x}}"/><nurse wx:if="{{y}}" class="data-v-0df9d5ac" bindvip="{{z}}" u-i="0df9d5ac-2" bind:__l="__l" u-p="{{A}}"/><arrowkeys class="data-v-0df9d5ac" bindmovecard="{{B}}" u-i="0df9d5ac-3" bind:__l="__l"/></view>
|
||||
|
|
@ -30,8 +30,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$8,
|
||||
b: common_assets._imports_1$5,
|
||||
a: common_assets._imports_0$7,
|
||||
b: common_assets._imports_1$4,
|
||||
c: common_vendor.f(iconList.value, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: index === menuIndex.value,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,71 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
var globalEvent = common_vendor.index.requireNativePlugin("globalEvent");
|
||||
globalEvent.addEventListener("myEvent", function(e) {
|
||||
common_vendor.index.__f__("log", "at pages/denglu.vue:20", "myEvent" + JSON.stringify(e));
|
||||
common_vendor.index.showToast({
|
||||
title: "myEvent" + JSON.stringify(e),
|
||||
duration: 2e3
|
||||
});
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
testAsyncFunc() {
|
||||
var testModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
var json = {
|
||||
deviceId: "4",
|
||||
deviceName: "sdfsfsdf"
|
||||
};
|
||||
testModule.gotoNativePage(json);
|
||||
},
|
||||
jumptonve() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/ceshianzhuo"
|
||||
});
|
||||
},
|
||||
init(event) {
|
||||
var monitorModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
monitorModule.initSMBCloudSDK();
|
||||
},
|
||||
login(event) {
|
||||
var monitorModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
var loginfo = {
|
||||
userName: "admin",
|
||||
password: "Bl20230518",
|
||||
serverAddress: "121.36.88.64",
|
||||
port: 8888
|
||||
};
|
||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||
common_vendor.index.__f__("log", "at pages/denglu.vue:58", "loginResult", r.code);
|
||||
common_vendor.index.showToast({
|
||||
title: "操作成功",
|
||||
duration: 2e3
|
||||
});
|
||||
});
|
||||
},
|
||||
logout(event) {
|
||||
var monitorModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
monitorModule.cloudLoginOut((r) => {
|
||||
common_vendor.index.__f__("log", "at pages/denglu.vue:68", "loginResult", r.code);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.init && $options.init(...args)),
|
||||
b: common_vendor.o((...args) => $options.login && $options.login(...args)),
|
||||
c: common_vendor.o((...args) => $options.logout && $options.logout(...args)),
|
||||
d: common_vendor.o((...args) => $options.jumptonve && $options.jumptonve(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages/denglu.js.map
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<view class="content"><button class="typebutton" type="primary" bindtap="{{a}}">初始化sdk</button><button class="typebutton" type="primary" bindtap="{{b}}">登陆</button><button class="typebutton" type="primary" bindtap="{{c}}">退出登陆</button><button class="typebutton" type="primary" bindtap="{{d}}">跳到nvue</button></view>
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
.logo {
|
||||
height: 200rpx;
|
||||
width: 200rpx;
|
||||
margin-top: 200rpx;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.text-area {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.title {
|
||||
font-size: 36rpx;
|
||||
color: #8f8f94;
|
||||
}
|
||||
.typebutton{
|
||||
width: 300rpx;
|
||||
height: 150rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 30rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
@ -54,8 +54,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
const getImg = () => {
|
||||
if (/^\d{11}$/.test(form.username)) {
|
||||
pages_login_api.isRel(form.username).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:193", "^^^^^^^^^^6", res);
|
||||
if (res.result !== null && res.result.serverUrl) {
|
||||
common_vendor.index.setStorageSync("serverUrl", res.result.serverUrl);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:196", "url", res.result.serverUrl);
|
||||
time.value = Date.now();
|
||||
pages_login_api.getLoginCode(time.value).then((res2) => {
|
||||
form.captcha = res2.message;
|
||||
|
|
@ -96,6 +98,20 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
openbottom.value = true;
|
||||
}
|
||||
};
|
||||
const jumpFirst = common_vendor.ref(false);
|
||||
const canJump = () => {
|
||||
if (!jumpFirst.value) {
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}, 500);
|
||||
} else {
|
||||
loading.value++;
|
||||
}
|
||||
jumpFirst.value = true;
|
||||
}
|
||||
};
|
||||
const loading = common_vendor.ref(0);
|
||||
const huakuaisuccess = () => {
|
||||
form.checkKey = time.value;
|
||||
huakuaiOpen.value = false;
|
||||
|
|
@ -111,9 +127,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
common_vendor.index.setStorageSync("token", res.result.token);
|
||||
common_vendor.index.setStorageSync("username", form.username);
|
||||
common_vendor.index.setStorageSync("realname", res.result.userInfo.realname);
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}, 500);
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}, 500);
|
||||
} else {
|
||||
loading.value++;
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
|
|
@ -129,14 +149,45 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
if (common_vendor.index.getStorageSync("appWgtVersion") != common_vendor.index.getSystemInfoSync().appWgtVersion) {
|
||||
showPopup.value = true;
|
||||
}
|
||||
if (common_vendor.index.getStorageSync("token") && common_vendor.index.getStorageSync("token") !== 1) {
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}, 500);
|
||||
} else {
|
||||
loading.value++;
|
||||
}
|
||||
}
|
||||
init();
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
var _a;
|
||||
(_a = zyupgrade.value) == null ? void 0 : _a.check_update();
|
||||
if (common_vendor.index.getStorageSync("token") && common_vendor.index.getStorageSync("token") !== 1) {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}
|
||||
});
|
||||
function init() {
|
||||
var monitorModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
monitorModule.initSMBCloudSDK();
|
||||
logincamera();
|
||||
}
|
||||
function logincamera() {
|
||||
var monitorModule = common_vendor.index.requireNativePlugin("MonitorModule");
|
||||
var loginfo = {
|
||||
userName: "admin",
|
||||
password: "Bl20230518",
|
||||
serverAddress: "121.36.88.64",
|
||||
port: 8888
|
||||
};
|
||||
monitorModule.cloudLoginIn(loginfo, (r) => {
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:323", "?????", r);
|
||||
if (loading.value === 2) {
|
||||
setTimeout(() => {
|
||||
jumpTo(`/pages/watch/index`);
|
||||
}, 500);
|
||||
} else {
|
||||
loading.value++;
|
||||
}
|
||||
});
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_assets._imports_0$1,
|
||||
|
|
@ -209,7 +260,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
N: common_vendor.sr(zyupgrade, "e4e4508d-2", {
|
||||
"k": "zyupgrade"
|
||||
}),
|
||||
O: common_vendor.p({
|
||||
O: common_vendor.o(canJump),
|
||||
P: common_vendor.p({
|
||||
noticeflag: true,
|
||||
theme: "blue",
|
||||
h5preview: false,
|
||||
|
|
@ -217,12 +269,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|||
appstoreflag: true,
|
||||
autocheckupdate: true
|
||||
}),
|
||||
P: huakuaiOpen.value
|
||||
Q: huakuaiOpen.value
|
||||
}, huakuaiOpen.value ? {
|
||||
Q: common_vendor.o(() => {
|
||||
R: common_vendor.o(() => {
|
||||
}),
|
||||
R: common_vendor.o(huakuaisuccess),
|
||||
S: common_vendor.o(($event) => huakuaiOpen.value = false)
|
||||
S: common_vendor.o(huakuaisuccess),
|
||||
T: common_vendor.o(($event) => huakuaiOpen.value = false)
|
||||
} : {});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
position: relative;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: url("../../static/index/lightbgcnew.png") center / cover, rgba(255, 255, 255, 0.6);
|
||||
background-blend-mode: screen;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-color: #eff0f4;
|
||||
overflow: hidden;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ const _sfc_main = {
|
|||
const sys = common_vendor.index.getSystemInfoSync();
|
||||
screenWidth.value = sys.screenWidth;
|
||||
});
|
||||
const startX = common_vendor.ref(0);
|
||||
const dragging = common_vendor.ref(false);
|
||||
common_vendor.ref(0);
|
||||
const dragging = common_vendor.ref(true);
|
||||
const currentOffset = common_vendor.ref(0);
|
||||
const drawerStyle = common_vendor.computed(() => {
|
||||
const widthPct = `${props.widNumber}%`;
|
||||
|
|
@ -38,66 +38,33 @@ const _sfc_main = {
|
|||
isVisible.value = true;
|
||||
}
|
||||
function closeDrawer() {
|
||||
isVisible.value = false;
|
||||
}
|
||||
function whiteDrawer() {
|
||||
isVisible.value = !isVisible.value;
|
||||
rotate180();
|
||||
isVisible.value = true;
|
||||
}
|
||||
__expose({
|
||||
openDrawer,
|
||||
closeDrawer
|
||||
});
|
||||
function onTouchStart(e) {
|
||||
if (!isVisible.value)
|
||||
return;
|
||||
dragging.value = true;
|
||||
currentOffset.value = 0;
|
||||
startX.value = e.touches[0].pageX;
|
||||
}
|
||||
function onTouchMove(e) {
|
||||
if (!dragging.value)
|
||||
return;
|
||||
const delta = e.touches[0].pageX - startX.value;
|
||||
currentOffset.value = delta > 0 ? delta : 0;
|
||||
}
|
||||
function onTouchEnd() {
|
||||
if (!dragging.value)
|
||||
return;
|
||||
dragging.value = false;
|
||||
const halfPx = screenWidth.value * (props.widNumber / 100) / 2;
|
||||
if (currentOffset.value > halfPx) {
|
||||
closeDrawer();
|
||||
rotate180();
|
||||
}
|
||||
currentOffset.value = 0;
|
||||
}
|
||||
const angle = common_vendor.ref(0);
|
||||
common_vendor.computed(() => ({
|
||||
transform: `rotate(${angle.value}deg)`,
|
||||
transition: "transform 0.6s ease"
|
||||
}));
|
||||
function rotate180() {
|
||||
angle.value += 180;
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: isVisible.value ? `rotate(180deg)` : ``,
|
||||
b: isVisible.value ? "/static/index/watch/arrow.png" : "/static/index/watch/arrow.png",
|
||||
c: common_vendor.s(isVisible.value ? {
|
||||
background: `linear-gradient(to bottom,#62E8FF,#0097FF)`
|
||||
} : {
|
||||
background: `linear-gradient(to bottom,#62E8FF,#0097FF)`
|
||||
}),
|
||||
d: common_vendor.o(whiteDrawer),
|
||||
e: common_vendor.o(onTouchStart),
|
||||
f: common_vendor.o(onTouchMove),
|
||||
g: common_vendor.o(onTouchEnd),
|
||||
h: common_vendor.o(onTouchEnd),
|
||||
i: common_vendor.n({
|
||||
a: common_vendor.o(onTouchStart),
|
||||
b: common_vendor.o(onTouchMove),
|
||||
c: common_vendor.o(onTouchEnd),
|
||||
d: common_vendor.o(onTouchEnd),
|
||||
e: common_vendor.n({
|
||||
"drawer-open": isVisible.value
|
||||
}),
|
||||
j: common_vendor.s(drawerStyle.value)
|
||||
f: common_vendor.s(drawerStyle.value)
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="data-v-97afcb63"><view class="{{['data-v-97afcb63', 'drawer', i]}}" style="{{j}}"><view class="drawer-content data-v-97afcb63" bindtouchstart="{{e}}" bindtouchmove="{{f}}" bindtouchend="{{g}}" bindtouchcancel="{{h}}"><view class="drawer-content-circle data-v-97afcb63" style="{{c}}" bindtap="{{d}}"><image class="drawer-img data-v-97afcb63" style="{{'transform:' + a}}" src="{{b}}"/></view><slot/></view></view></view>
|
||||
<view class="data-v-97afcb63"><view class="{{['data-v-97afcb63', 'drawer', e]}}" style="{{f}}"><view class="drawer-content data-v-97afcb63" bindtouchstart="{{a}}" bindtouchmove="{{b}}" bindtouchend="{{c}}" bindtouchcancel="{{d}}"><slot/></view></view></view>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 85vh;
|
||||
height: 40vh;
|
||||
z-index: 1000;
|
||||
border-top-left-radius: 80rpx;
|
||||
border-bottom-left-radius: 80rpx;
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
.drawer-content-circle.data-v-97afcb63 {
|
||||
position: absolute;
|
||||
|
|
|
|||