From e139a2306bfd1e60d181a2ec1083dd46315ea007 Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Tue, 14 Oct 2025 15:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 + pages/Warehouse/Warehouse.vue | 333 +++++++++--------- pages/Warehouse/procurement.vue | 73 ++++ pages/Warehousing/index.vue | 10 +- static/index/warehouse/active/w0.png | Bin 0 -> 35774 bytes static/index/warehouse/active/w1.png | Bin 0 -> 28510 bytes static/index/warehouse/active/w2.png | Bin 0 -> 37034 bytes static/index/warehouse/active/w3.png | Bin 0 -> 19000 bytes static/index/warehouse/animation/Pick01.png | Bin 0 -> 19000 bytes static/index/warehouse/animation/Pick02.png | Bin 0 -> 19182 bytes static/index/warehouse/animation/Pick03.png | Bin 0 -> 21025 bytes static/index/warehouse/animation/Pick04.png | Bin 0 -> 19255 bytes static/index/warehouse/animation/buy01.png | Bin 0 -> 28510 bytes static/index/warehouse/animation/buy02.png | Bin 0 -> 31921 bytes static/index/warehouse/animation/buy03.png | Bin 0 -> 32228 bytes static/index/warehouse/animation/buy04.png | Bin 0 -> 30241 bytes static/index/warehouse/animation/buy05.png | Bin 0 -> 28729 bytes .../index/warehouse/animation/checkout01.png | Bin 0 -> 37034 bytes .../index/warehouse/animation/checkout02.png | Bin 0 -> 44647 bytes .../index/warehouse/animation/checkout03.png | Bin 0 -> 48156 bytes .../index/warehouse/animation/checkout04.png | Bin 0 -> 49456 bytes .../index/warehouse/animation/checkout05.png | Bin 0 -> 39142 bytes static/index/warehouse/animation/remit01.png | Bin 0 -> 35774 bytes static/index/warehouse/animation/remit02.png | Bin 0 -> 65132 bytes static/index/warehouse/animation/remit03.png | Bin 0 -> 65493 bytes static/index/warehouse/animation/remit04.png | Bin 0 -> 54494 bytes static/index/warehouse/animation/remit05.png | Bin 0 -> 36811 bytes static/index/warehouse/{active => }/i7.png | Bin static/index/warehouse/w0.png | Bin 54320 -> 0 bytes .../warehouse/{active/i6.png => w10.png} | Bin static/index/warehouse/w2.png | Bin 32972 -> 0 bytes static/index/warehouse/w3.png | Bin 79281 -> 0 bytes static/index/warehouse/w5.png | Bin 16993 -> 28901 bytes static/index/warehouse/w7.png | Bin 28901 -> 0 bytes 34 files changed, 253 insertions(+), 166 deletions(-) create mode 100644 pages/Warehouse/procurement.vue create mode 100644 static/index/warehouse/active/w0.png create mode 100644 static/index/warehouse/active/w1.png create mode 100644 static/index/warehouse/active/w2.png create mode 100644 static/index/warehouse/active/w3.png create mode 100644 static/index/warehouse/animation/Pick01.png create mode 100644 static/index/warehouse/animation/Pick02.png create mode 100644 static/index/warehouse/animation/Pick03.png create mode 100644 static/index/warehouse/animation/Pick04.png create mode 100644 static/index/warehouse/animation/buy01.png create mode 100644 static/index/warehouse/animation/buy02.png create mode 100644 static/index/warehouse/animation/buy03.png create mode 100644 static/index/warehouse/animation/buy04.png create mode 100644 static/index/warehouse/animation/buy05.png create mode 100644 static/index/warehouse/animation/checkout01.png create mode 100644 static/index/warehouse/animation/checkout02.png create mode 100644 static/index/warehouse/animation/checkout03.png create mode 100644 static/index/warehouse/animation/checkout04.png create mode 100644 static/index/warehouse/animation/checkout05.png create mode 100644 static/index/warehouse/animation/remit01.png create mode 100644 static/index/warehouse/animation/remit02.png create mode 100644 static/index/warehouse/animation/remit03.png create mode 100644 static/index/warehouse/animation/remit04.png create mode 100644 static/index/warehouse/animation/remit05.png rename static/index/warehouse/{active => }/i7.png (100%) delete mode 100644 static/index/warehouse/w0.png rename static/index/warehouse/{active/i6.png => w10.png} (100%) delete mode 100644 static/index/warehouse/w2.png delete mode 100644 static/index/warehouse/w3.png delete mode 100644 static/index/warehouse/w7.png diff --git a/pages.json b/pages.json index 233092e..b986d6e 100644 --- a/pages.json +++ b/pages.json @@ -147,6 +147,9 @@ "navigationStyle": "custom" } + }, + { + "path" : "pages/Warehouse/procurement" } // { diff --git a/pages/Warehouse/Warehouse.vue b/pages/Warehouse/Warehouse.vue index 2e42645..d2c7e90 100644 --- a/pages/Warehouse/Warehouse.vue +++ b/pages/Warehouse/Warehouse.vue @@ -2,23 +2,21 @@ - + + + + + + + - - - - - - + - - - @@ -33,7 +31,7 @@ - + { if(index>5){return} - housedex.value = index; - console.log(index) + housedex.value = index; } + const navurl = ref(''); const movecard = (type : number) => { console.log(type) switch (type){ case 0: // 上 - housedex.value>0?housedex.value--:housedex.value = 5 + housedex.value>0?housedex.value--:housedex.value = 3 break; case 1: - housedex.value>4?housedex.value = 0:housedex.value++ + housedex.value>2?housedex.value = 0:housedex.value++ // → break; case 2: - housedex.value>4?housedex.value = 0:housedex.value++ + housedex.value>2?housedex.value = 0:housedex.value++ // 下 break; case 3: - housedex.value>0?housedex.value--:housedex.value = 5 + housedex.value>0?housedex.value--:housedex.value = 3 // ← break; case 4: // 确定 + console.log('选中'+housedex.value) + if(housedex.value==1){ + navurl.value = 'pages/Warehouse/procurement' + } + + uni.navigateTo({ + url:'/'+navurl.value + }) break; case 5: // 返回 @@ -109,6 +115,66 @@ } } + // 通用的生成函数 + function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) { + return Array.from({ length: count }, (_, i) => { + const idx = pad + ? String(i + startIndex).padStart(2, '0') + : i + startIndex + return `${base}/${prefix}${idx}.${ext}` + }) + } + const animArray = ref([ + { + url: genPaths( + '/static/index/warehouse/animation', + 'remit0', + 5, // 张数 + 'png', + 1, // 起始索引为 1 + false // 不补零 + ), + width: '29vw', + height: '21vw' + } , + { + url: genPaths( + '/static/index/warehouse/animation', + 'buy0', + 5, // 张数 + 'png', + 1, // 起始索引为 1 + false // 不补零 + ), + width: '26vw', + height: '16vw' + } , + { + url: genPaths( + '/static/index/warehouse/animation', + 'checkout0', + 5, // 张数 + 'png', + 1, // 起始索引为 1 + false // 不补零 + ), + width: '24vw', + height: '16vw' + } , + { + url: genPaths( + '/static/index/warehouse/animation', + 'Pick0', + 4, // 张数 + 'png', + 1, // 起始索引为 1 + false // 不补零 + ), + width: '17vw', + height: '13vw' + } + ]) + + \ No newline at end of file diff --git a/pages/Warehousing/index.vue b/pages/Warehousing/index.vue index 8fbeef6..1c805be 100644 --- a/pages/Warehousing/index.vue +++ b/pages/Warehousing/index.vue @@ -1,6 +1,6 @@