This commit is contained in:
weipengfei 2024-02-28 18:03:51 +08:00
parent 71a2ee88ff
commit 67be65ccde
4 changed files with 13 additions and 9 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -3,7 +3,7 @@ import axios from "axios";
// 创建axios 实例 // 创建axios 实例
const instacne = axios.create({ const instacne = axios.create({
baseURL: "https://crmeb-test.shop.lihaink.cn/api", baseURL: "https://shop.lihaink.cn/api",
timeout: 30000, timeout: 30000,
}); });

View File

@ -39,8 +39,9 @@ const offAreaList = (e) => {
// mitt.emit('map_info', info); // mitt.emit('map_info', info);
// reload(); // reload();
if (route.query.type == "main") { if (route.query.type == "main") {
let t = localStorage.getItem('local') || '';
sendMsg({ sendMsg({
channel: "user-breed-datav", channel: t + "user-breed-datav",
event: "changMap", event: "changMap",
data: { data: {
areaName: info.areaName, areaName: info.areaName,
@ -255,12 +256,14 @@ onMounted(() => {
if (e.areaName == info.areaName) { if (e.areaName == info.areaName) {
let c = list.value.find((item) => item.name == e.name); let c = list.value.find((item) => item.name == e.name);
if (c) areaListRef.value.choseTownFn(c); if (c) areaListRef.value.choseTownFn(c);
// router.push({ router.push({
// path: '/delivery', path: "/indexc",
// query: { query: {
// name: e.name areaCode: appStore.address.areaCode,
// } streetCode: c.code,
// }) name: e.name,
},
});
} }
}); });
}); });

View File

@ -499,7 +499,8 @@ const initMap = () => {
console.log('点击',params); console.log('点击',params);
if (params.componentType === 'geo') { if (params.componentType === 'geo') {
if(route.query.type=='main') { 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, areaName: mapType.name,
name: params.name name: params.name
}}) }})