From 6cd664555fab010429f32d2ccb70ab8bf6cacd77 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 07 五月 2025 18:50:02 +0800 Subject: [PATCH] # --- pages/listing/itemSelect.vue | 4 ++-- pages/listing/matnrPalletising.vue | 4 ++-- pages/login/login.vue | 7 ++++--- pages/home/index.vue | 19 ++++++++++++------- pages/rece/other.vue | 4 ++-- 5 files changed, 22 insertions(+), 16 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 4e82def..573969c 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -4,7 +4,7 @@ <image src="../../static/img/toux.png" class="tx" mode="widthFix"></image> <view class="text-xl margin-top-sm margin-left-lg"> <view class="text-blue text-bold text-xxl"> - 寮犵粡鐞� + {{user.username}} </view> <view class="text-gray">浠撳簱涓荤 | zy32423423</view> </view> @@ -19,13 +19,13 @@ </view> <view class="cu-list grid col-4 no-border"> - <view class="cu-item"> + <!-- <view class="cu-item"> <navigator hover-class='none' url="/pages/rece/standard" navigateTo> <view class="cuIcon-apps text-blue"> </view> <text>鏍囧噯鏀惰揣</text> </navigator> - </view> + </view> --> <view class="cu-item"> <navigator hover-class='none' url="/pages/rece/other" navigateTo> @@ -35,18 +35,18 @@ </navigator> </view> - <view class="cu-item"> + <!-- <view class="cu-item"> <navigator hover-class='none' url="/pages/listing/disc" navigateTo> <view class="cuIcon-cardboard text-blue"> </view> <text>缁勭洏</text> </navigator> - </view> + </view> --> <view class="cu-item"> <navigator hover-class='none' url="/pages/listing/matnrPalletising" navigateTo> <view class="cuIcon-cardboard text-blue"> </view> - <text>鐗╂枡缁勭洏</text> + <text>鍗曟嵁缁勭洏</text> </navigator> </view> @@ -135,9 +135,14 @@ export default { data() { return { - + user:{ + + } } }, + onShow() { + this.user = uni.getStorageSync('userData'); + }, methods: { equit() { uni.showToast({ diff --git a/pages/listing/itemSelect.vue b/pages/listing/itemSelect.vue index ddecb64..e2d7be3 100644 --- a/pages/listing/itemSelect.vue +++ b/pages/listing/itemSelect.vue @@ -49,14 +49,14 @@ <text class="text-grey ">{{item.splrBatch}}</text> </view> </view> - <view class="cu-item"> + <!-- <view class="cu-item"> <view class="content"> <text class="text-black">搴撳瓨鎵规:</text> </view> <view class="action"> <text class="text-grey ">{{item.batch}}</text> </view> - </view> + </view> --> <!-- <view class="cu-item"> <view class="content"> <text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text> diff --git a/pages/listing/matnrPalletising.vue b/pages/listing/matnrPalletising.vue index 8d6a6d3..16609ed 100644 --- a/pages/listing/matnrPalletising.vue +++ b/pages/listing/matnrPalletising.vue @@ -68,14 +68,14 @@ <text class="text-grey ">{{item.splrBatch}}</text> </view> </view> - <view class="cu-item"> + <!-- <view class="cu-item"> <view class="content"> <text class="text-black">搴撳瓨鎵规:</text> </view> <view class="action"> <text class="text-grey ">{{item.batch}}</text> </view> - </view> + </view> --> <!-- <view class="cu-item"> <view class="content"> <text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text> diff --git a/pages/login/login.vue b/pages/login/login.vue index b775ac5..7426ae2 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -198,9 +198,10 @@ }) if (code === 200) { this.load.loading = true; - this.load.btnText = '鐧诲綍涓�'; - uni.setStorageSync('token', data.accessToken); - if (this.remberPassword) { + this.load.btnText = '鐧诲綍涓�'; + uni.setStorageSync('token', data.accessToken); + uni.setStorageSync('userData', data.user); + if (this.remberPassword) { uni.setStorageSync('user', this.user); } else { uni.removeStorageSync('user'); diff --git a/pages/rece/other.vue b/pages/rece/other.vue index e342e0f..ca5b69a 100644 --- a/pages/rece/other.vue +++ b/pages/rece/other.vue @@ -61,14 +61,14 @@ </view> </view> --> - <view class="cu-item"> + <!-- <view class="cu-item"> <view class="content"> <text class="text-black">鏈�澶у簱瀛�: <text class="text-grey ">{{item.maxQty}}</text></text> </view> <view class="content"> <text class="text-black">瀹炴椂搴撳瓨: <text class="text-grey ">{{item.stockQty}}</text></text> </view> - </view> + </view> --> <view class="cu-item"> <view class="content"> <text class="text-black">琛屽彿: <text class="text-grey ">{{item.platItemId}}</text></text> -- Gitblit v1.9.1