From efa9bfe98ba906e4c9b8f49c89f5da162a46bb0f Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 13 一月 2025 10:21:24 +0800
Subject: [PATCH] 1.微信一键登录:新增“同意用户协议”之后才可登录

---
 pages/home/supplier-home.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 48f8ceb..ee231b9 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -75,10 +75,10 @@
 					</view>
 					<view class="t2 flex " style="align-items: center; justify-content: start;" >
 						<view>{{ currentInfo.supplierSub.phone || currentInfo.tel || '暂无电话' }}</view>
-						<view v-if="selftype === 'supplier'">
+						<!-- <view v-if="selftype === 'supplier' && $hasPermission('supplier:workbench:common:functions:sub:account')  ">
 							<view v-if="currentInfo.isSubSupplier" class="account_sub  m-l-a m-r-0"  >子账号</view>
 							<view v-else class="account_sub  m-l-a m-r-0"  >主账号</view>
-						</view>
+						</view> -->
 					</view>
 					<view class="t2" v-if="currentInfo.partnerDTO && currentInfo.partnerDTO.id">
 						ID: {{ currentInfo.partnerDTO.id }}
@@ -281,7 +281,7 @@
 				</view>
 
 
-				<view class="nav row margin-tb function-item "
+				<!-- <view class="nav row margin-tb function-item "
 					v-if="(selftype === 'supplier' && $hasPermission('supplier:workbench:common:functions:sub:account'))"
 					@click="goto('/sub_pages/supplier/sub-account/sub-account-list', true)">
 					<view class="img-c">
@@ -290,7 +290,7 @@
 							mode="scaleToFill" />
 					</view>
 					<view class="order-desc syst">子账号</view>
-				</view>
+				</view> -->
 				<!-- <view class="nav row margin-tb function-item "></view> -->
 			</view>
 		</view>
@@ -360,10 +360,20 @@
 		uni.stopPullDownRefresh()
 	},
 	onLoad(options) {
+
 		const url = options.q ? decodeURIComponent(options.q) : '';
 		const urlcode = options.url && decodeURIComponent(options.url) || ''
 	},
-	onShow() {
+	async onShow() {
+	
+		if(this.selftype==='supplier'){
+			// 刷新供应商菜单
+			await this.$store.dispatch('getAppMenuSupplier')
+		}else if(this.selftype==='partner'){
+			// 刷新合伙人菜单
+			await this.$store.dispatch('getAppMenuPartner')
+		}
+		
 		this.getTj(true)
 	},
 	created() {
@@ -431,6 +441,7 @@
 			var that = this;
 			wx.getBluetoothAdapterState({
 				success: (result) => {
+					// debugger;
 					console.log('b s', result)
 					console.log("蓝牙状态:\n" + result.errMsg)
 					if (result.adapterState.available) {

--
Gitblit v1.9.3