diff --git a/dist.zip b/dist.zip index 2171736..d849193 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/api/index.js b/src/api/index.js index 4d896ea..081b5a4 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -3,7 +3,7 @@ import axios from "axios"; // 创建axios 实例 const instacne = axios.create({ - baseURL: "https://crmeb-test.shop.lihaink.cn/api", + baseURL: "https://shop.lihaink.cn/api", timeout: 30000, }); diff --git a/src/components/headView.vue b/src/components/headView.vue index e14f5d1..02e21f7 100644 --- a/src/components/headView.vue +++ b/src/components/headView.vue @@ -39,8 +39,9 @@ const offAreaList = (e) => { // mitt.emit('map_info', info); // reload(); if (route.query.type == "main") { + let t = localStorage.getItem('local') || ''; sendMsg({ - channel: "user-breed-datav", + channel: t + "user-breed-datav", event: "changMap", data: { areaName: info.areaName, @@ -255,12 +256,14 @@ onMounted(() => { if (e.areaName == info.areaName) { let c = list.value.find((item) => item.name == e.name); if (c) areaListRef.value.choseTownFn(c); - // router.push({ - // path: '/delivery', - // query: { - // name: e.name - // } - // }) + router.push({ + path: "/indexc", + query: { + areaCode: appStore.address.areaCode, + streetCode: c.code, + name: e.name, + }, + }); } }); }); diff --git a/src/view/index/components/center.vue b/src/view/index/components/center.vue index 2544f96..30e595a 100644 --- a/src/view/index/components/center.vue +++ b/src/view/index/components/center.vue @@ -499,7 +499,8 @@ const initMap = () => { console.log('点击',params); if (params.componentType === 'geo') { if(route.query.type=='main') { - sendMsg({ channel: 'user-breed-datav', event: 'changMap', data: { + let t = localStorage.getItem('local') || ''; + sendMsg({ channel: t + 'user-breed-datav', event: 'changMap', data: { areaName: mapType.name, name: params.name }})