From c58aff5b2a349c6b1fc8a4a3f474f7f8cc529e09 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 12 七月 2024 14:05:58 +0800
Subject: [PATCH] update 花农端首次上架

---
 pages/home/supplier-home.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index a19329a..bcc74e0 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -101,20 +101,20 @@
 		<view class="item-container flex m-t-12" style="padding: 34rpx 44rpx;">
 			<view class="rate-view flex1" style="max-width: 140rpx;">
 				<view class="title">售后率</view>
-				<view class="title" style="color: red;">0.02%</view>
+				<view class="title" style="color: red;">0.00%</view>
 			</view>
 			<view class="tj-panel  pink flex1">
 				<view class="name">今日待配送</view>
-				<view class="title">12扎</view>
+				<view class="title">0扎</view>
 			</view>
 			<view class="tj-panel green flex1">
 				<view class="name green">今日配送汇总</view>
-				<view class="title">12扎</view>
+				<view class="title">0扎</view>
 			</view>
 		</view>
 		<view class="m-t-12" @click="getNoticeMore">
 			<uni-notice-bar class="notice-bar" color="#333" background-color="#fff" show-get-more show-icon
-				:scrollable="scrollable" :text="currentNotice.title" :key="currentNotice.id" />
+				:scrollable="scrollable" :text="currentNotice.title||'暂无公共'" :key="currentNotice.id" />
 			<span v-if="!currentNotice||!currentNotice.id">&nbsp;</span>
 		</view>
 		<view class="item-container">
@@ -250,12 +250,19 @@
 		},
 		methods: {
 			async toFlowManage() {
+
+				
 				if (!this.currentInfo.supplierDTO) {
 					await this.$message.confirm('尚未入住店铺信息,是否前往入住?')
 					this.goto('/sub_pages/supplier/supplier-info/supplier-info', true)
 					return
 				}
 				if (this.currentInfo.supplierDTO) {
+					//需要刷新一下当前用户信息
+					this.$message.showLoading()
+					await this.$store.dispatch('getCurrentInfo')
+					this.$message.hideLoading()
+					
 					if (this.currentInfo.supplierDTO.status == 'P') {
 
 					} else {

--
Gitblit v1.9.3