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 实例
const instacne = axios.create({
baseURL: "https://crmeb-test.shop.lihaink.cn/api",
baseURL: "https://shop.lihaink.cn/api",
timeout: 30000,
});

View File

@ -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,
},
});
}
});
});

View File

@ -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
}})