From 6a00b39ef5de18aab2baf47db37a9ec947109755 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 13 十月 2023 18:04:52 +0800
Subject: [PATCH] #

---
 pages/project/ps/home/home.vue |   47 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 36 insertions(+), 11 deletions(-)

diff --git a/pages/project/ps/home/home.vue b/pages/project/ps/home/home.vue
index 62f380d..daab551 100644
--- a/pages/project/ps/home/home.vue
+++ b/pages/project/ps/home/home.vue
@@ -2,7 +2,7 @@
 	<view>
 		<scroll-view scroll-y class="page">
 			<view class="nav-list">
-				<navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo
+				<navigator hover-class='none' :url="'/pages/project' + item.url" class="nav-li" navigateTo
 					:class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]"
 					v-for="(item,index) in elements" :key="index">
 					<view class="nav-title">{{item.title}}</view>
@@ -29,7 +29,14 @@
 						name: 'pakin',
 						color: 'cyan',
 						cuIcon: 'pullup',
-						url: '/tzsk/pakin/pakin2'
+						url: '/ps/pakin/pakin'
+					},
+					{
+						title: '鎵樼洏瑙g粦',
+						name: 'untie',
+						color: 'cyan',
+						cuIcon: 'pullup',
+						url: '/tzsk/pakin/untie'
 					},
 					{
 						title: '缁勬墭涓婃灦',
@@ -54,7 +61,7 @@
 					},
 					{
 						title: 'AGV鐩樼偣/鎷f枡',
-						name: 'pakin',
+						name: 'AGVPick',
 						color: 'cyan',
 						cuIcon: 'pullup',
 						url: '/tzsk/AGV/AGVPick'
@@ -93,6 +100,13 @@
 						color: 'brown',
 						// cuIcon: 'pullup',
 						url: '/tzsk/AGV/AGVPakinOn'
+					},
+					{
+						title: 'AGV瀹瑰櫒绂诲満',
+						name: 'pakin',
+						color: 'cyan',
+						cuIcon: 'pullup',
+						url: '/tzsk/AGV/AGVContainerMove'
 					},
 					{
 						title: '璁㈠崟鍏ュ簱',
@@ -187,24 +201,35 @@
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
 			this.getAuth()
+			this.backGroundRepeat()
 		},
 		methods: {
+			backGroundRepeat() {
+				let len = this.colorList.length
+				let i = 0
+				for (let k in this.elements2) {
+					if (i == len) {
+						i = 0
+					}
+					this.elements2[k].color = this.colorList[i]
+					i++
+				}
+			},
 			getAuth() {
 				let that = this
 				uni.request({
-					url: 'http://127.0.0.1:8089/bfwms/menu/pda/auth',
+					url: that.baseUrl + '/menu/pda/auth',
 					data: {},
 					header: { 'token': uni.getStorageSync('token') },
 					method: 'POST',
 					success(res) {
-						that.elements = []
-						console.log(res.statusCode);
-						res = res.data
-						if (res.statusCode == 404) {
-							console.log(res.statusCode);
+						console.log(res);
+						if (res.statusCode === 404) {
 							that.elements = that.elements2
-							return
+							return 
 						}
+ 						res = res.data
+						that.elements = []
 						if (res.code === 200) {
 							if (res.data == undefined || res.data == null || res.data == "") {
 								that.elements = that.elements2
@@ -257,7 +282,7 @@
 						}
 					},
 					fail(err) {
-						that.elements = []
+						console.log(err);
 						that.elements = that.elements2
 					}
 				})

--
Gitblit v1.9.1