Compare commits
	
		
			2 Commits
		
	
	
		
			b994378c36
			...
			baea20728e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| baea20728e | |||
| b1a91f3888 | 
| @@ -292,8 +292,8 @@ export default { | ||||
|       {text: '账号安全', path: '/editpasswordpage'}, | ||||
|       {text: '商户资料', path: '/editdetailspage'}, | ||||
|       {text: '分享', path: '/distribution'}, | ||||
|       {text: '用户协议', click: showUserText}, | ||||
|       {text: '隐私政策', click: showPrivacyText}, | ||||
|       {text: '用户协议', path: '', click: showUserText}, | ||||
|       {text: '隐私政策', path: '', click: showPrivacyText}, | ||||
|     ]); | ||||
|     const functionItems = ref([ | ||||
|       {image: "/imgs/mainpage/jiaoyijilu.png", text: "购物车", path: "/cart"}, | ||||
|   | ||||
| @@ -798,6 +798,20 @@ const addScrollListener = (tabName) => { | ||||
|          | ||||
|         // 移除监听器,避免重复触发 | ||||
|         contentRef.removeEventListener('scroll', handleScroll); | ||||
|          | ||||
|         // 自动切换到下一个未读协议 | ||||
|         setTimeout(() => { | ||||
|           const currentIndex = agreementTabs.value.findIndex(t => t.name === tabName); | ||||
|           const nextUnreadTab = agreementTabs.value.find((t, index) => index >= 0 && !t.viewed); | ||||
|            | ||||
|           if (nextUnreadTab) { | ||||
|             // 切换到下一个未读协议 | ||||
|             activeTab.value = nextUnreadTab.name; | ||||
|             nextTick(() => { | ||||
|               addScrollListener(nextUnreadTab.name); | ||||
|             }); | ||||
|           } | ||||
|         }, 500); // 延迟500ms切换,让用户看到已读状态 | ||||
|       } | ||||
|     } | ||||
|   }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user