From ceb7bf4c25b836beb5c93f82365e835583617a0b Mon Sep 17 00:00:00 2001
From: wangweidong <850489345@qq.com>
Date: Thu, 8 Jan 2026 11:23:21 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../component/leftcontent/leftcontent.vue | 140 ++++++++++++++++--
pages/watch/settings/settings.vue | 2 +-
static/shouye/xjt.png | Bin 0 -> 818 bytes
unpackage/dist/dev/.nvue/pages/camera.js | 2 +-
unpackage/dist/dev/.nvue/pages/fullcamera.js | 2 +-
5 files changed, 127 insertions(+), 19 deletions(-)
create mode 100644 static/shouye/xjt.png
diff --git a/pages/NursingNew/component/leftcontent/leftcontent.vue b/pages/NursingNew/component/leftcontent/leftcontent.vue
index b745d12..3cf2470 100644
--- a/pages/NursingNew/component/leftcontent/leftcontent.vue
+++ b/pages/NursingNew/component/leftcontent/leftcontent.vue
@@ -4,16 +4,32 @@
-
-
-
-
- {{v.name}}
+
+
+
+
-
-
-
+
+
+
+
+ {{v.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -37,7 +53,63 @@
const userInfo = uni.getStorageSync('userInfo');
const emit = defineEmits(['navurl'])
const dexleft = ref(0);
-
+ const scrolltop = ref(0)
+ const topsc = ref(0);
+ const dex = ref(0)
+ watch(()=>props.list,
+ ()=>{
+ codesc.value = -1;
+ dex.value = props.list.length - 6;
+ if(dex.value>0){
+ codesc.value = 0;
+ }else{
+ codesc.value = -1;
+ }
+ console.log(codesc.value)
+ })
+ const scroll = (e)=>{
+ // console.log(e.detail.scrollTop)
+ let m = dex.value*52;
+
+ topsc.value = e.detail.scrollTop;
+ if(topsc.value<30){
+ codesc.value = 0;
+ }
+ if(topsc.value>(m-30)){
+ codesc.value = 2;
+ }
+ if(topsc.value>=30 && topsc.value<=(m-30)){
+ codesc.value = 1;
+ }
+ }
+ const scoltop =(e)=>{
+ if(e==0){
+ scrolltop.value = topsc.value;
+ scrolltop.value = 0;
+ }else{
+ scrolltop.value = topsc.value;
+ scrolltop.value = 999;
+ }
+ }
+ const codesc = ref(0)
+ const scrolltoupper =()=>{
+ // 顶
+ if(dex.value>0){
+ codesc.value = 0;
+ }else{
+ codesc.value = -1;
+ }
+ console.log('顶')
+ }
+ const scrolltolower =()=>{
+ // 底
+ codesc.value = 2;
+ console.log('底')
+ }
+ const naurl = (e)=>{
+ dexleft.value = e;
+ scrolltop.value = (e - 2) * 52;
+ }