소스 검색

客户页面

wangxy 7 시간 전
부모
커밋
63147722cb
3개의 변경된 파일23개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      pages/Login/clientIndex.vue
  2. 9 0
      pages/client/hetong/HetongInfo.vue
  3. 10 0
      pages/kehu/hetong/HetongInfo.vue

+ 4 - 2
pages/Login/clientIndex.vue

@@ -77,6 +77,7 @@
 	const clearPwIcon = ref(false)
 	const isAgreed = ref(false)
 	const id = ref('')
+	const fromPage = ref('');
 
 	// 新增变量
 	const fromAppShare = ref(false) // 是否来自APP分享
@@ -89,6 +90,7 @@
 			fromAppShare.value = true
 			id.value = options.id
 			// APP分享过来直接显示微信授权界面,不需要自动弹窗
+			fromPage.value = options.from;
 		}
 		getAllImg();
 	})
@@ -256,7 +258,7 @@
 			console.log('ididid',id.value);
 		if (id.value) {
 			uni.navigateTo({
-				url: `/pages/client/hetong/hetongInfo?id=` + id.value
+				url: `/pages/client/hetong/hetongInfo?id=` + id.value + `&from=${fromPage.value}`
 			})
 		} else {
 			uni.navigateTo({
@@ -269,7 +271,7 @@
 			console.log('ididid222222',id.value);
 		if (id.value) {
 			uni.navigateTo({
-				url: `/pages/kehu/hetong/hetongInfo?id=` + id.value
+				url: `/pages/kehu/hetong/hetongInfo?id=` + id.value + `&from=${fromPage.value}`
 			})
 		} else {
 			uni.navigateTo({

+ 9 - 0
pages/client/hetong/HetongInfo.vue

@@ -60,9 +60,11 @@
 	const imgsArr = reactive({
 			loadingIcon: '',
 	})
+	const fromPage = ref('')
 
 	onLoad((options) => {
 		tId.value = options.id;
+		fromPage.value = options.from;
 		const auth = cacheManager.get('auth');
 		imgsArr.loadingIcon = cacheManager.get('projectImg').loading_icon;
 		init();
@@ -143,6 +145,13 @@
 
 	}
 	function handleGoLishi() {
+		if (fromPage.value) {
+			uni.redirectTo({
+				url: '/pages/client/ShouYe/shouye'
+			})
+			return;
+		}
+		
 		uni.navigateBack()
 	}
 

+ 10 - 0
pages/kehu/hetong/HetongInfo.vue

@@ -60,9 +60,11 @@
 	const imgsArr = reactive({
 			loadingIcon: '',
 	})
+	const fromPage = ref('')
 
 	onLoad((options) => {
 		tId.value = options.id;
+		fromPage.value = options.from
 		const auth = cacheManager.get('auth');
 		imgsArr.loadingIcon = cacheManager.get('projectImg').loading_icon;
 		init();
@@ -143,6 +145,14 @@
 
 	}
 	function handleGoLishi() {
+		
+		if (fromPage.value == 'appcx') {
+			uni.redirectTo({
+				url: '/pages/kehu/shouye/shouye'
+			})
+			return;
+		}
+		
 		uni.navigateBack()
 	}