Explorar o código

fix: 修改访问地址

chenjj hai 3 semanas
pai
achega
82c8b4498f
Modificáronse 3 ficheiros con 17 adicións e 15 borrados
  1. 15 13
      components/Client/new_file.vue
  2. 1 1
      config.js
  3. 1 1
      pages_home/pages/client/details.vue

+ 15 - 13
components/Client/new_file.vue

@@ -83,16 +83,17 @@
 	const selected = ref([])
 
 	// 普通用户
-	const serviceList1 = [{
+	const serviceList1 = [
+		{
+			icon: '/static/Tioimages/1v专业指导.png',
+			name: '陪伴陪聊',
+			key: 1,
+		},
+		{
 			icon: '/static/Tioimages/1 妇女儿童权益保护服务.png',
 			name: '孩子陪伴',
 			key: 2,
 		},
-		{
-			icon: '/static/Tioimages/家庭保洁.png',
-			name: '家庭保洁',
-			key: 1,
-		},
 		{
 			icon: '/static/Tioimages/临时帮手.png',
 			name: '临时帮手',
@@ -109,8 +110,8 @@
 			key: 5,
 		},
 		{
-			icon: '/static/Tioimages/1v专业指导.png',
-			name: '陪伴陪聊',
+			icon: '/static/Tioimages/家庭保洁.png',
+			name: '家庭保洁',
 			key: 6,
 		},
 		{
@@ -141,7 +142,8 @@
 	]
 
 	//志愿者
-	const serviceList2 = [{
+	const serviceList2 = [
+		{
 			icon: '/static/Tioimages/1v专业指导.png',
 			name: '陪伴陪聊',
 			key: 1,
@@ -222,7 +224,7 @@
 		'资讯与服务': 7,
 	};
 
-	const getParentId = (service) => parentIdMap[service.name] || 1;
+	// const getParentId = (service) => parentIdMap[service.name] || 1;
 
 
 	// 宫格点击事件
@@ -232,15 +234,15 @@
 		if (userType == 1) {
 
 			// 动态获取 parentId
-			const parentId = getParentId(service); // 通过服务条目动态获取 parentId
+			// const parentId = getParentId(service); // 通过服务条目动态获取 parentId
 			const params = {
-				parentId: parentId
+				parentId: service.key
 			}
 			const res = await volunteerSeachgetTreeList(params)
 			console.log(res, '>>>>>dictSort = null')
 
 			// 只有第一条和第二条可以跳转
-			if (index === 0 || index === 1) {
+			if (service.key === 1 || service.key === 2) {
 				uni.navigateTo({
 					url: `/pages_home/pages/client/details?dataList=${encodeURIComponent(JSON.stringify(res.data))}`
 				});

+ 1 - 1
config.js

@@ -2,7 +2,7 @@
 const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
-	// baseUrl: 'http://192.168.10.3:8080',
+	// baseUrl: 'http://192.168.100.94:9527',
 	baseUrl: 'https://zybooks.tech/prod-api',
 	// 应用信息
 	appInfo: {

+ 1 - 1
pages_home/pages/client/details.vue

@@ -172,7 +172,7 @@
 	onLoad((options) => {
 		const dataList = JSON.parse(decodeURIComponent(options.dataList));
 		// businessName
-		// console.log(option, '>>>>>option');
+		console.log(dataList, '>>>>>option');
 		// data.value = option;
 
 		list1.value = dataList