兼容映射的地址

master
Lei OT 2 years ago
parent 61e2568931
commit 96302e5bd6

@ -248,7 +248,7 @@
return window.innerWidth >= 768; // Adjust the threshold as needed
},
drawWidth() {
return window.innerWidth < 768 ? Math.floor(window.innerWidth-100) : 760; // Adjust the threshold as needed
return window.innerWidth < 768 ? Math.floor(window.innerWidth-40) : 760; // Adjust the threshold as needed
},
},
data() {
@ -291,6 +291,12 @@
for (const param of urlParams) {
this.param[param[0]] = param[1];
}
var urlPath = window.location.pathname.replace('/customerfeedback/', '').split('/');
if (urlPath.length > 0 && isEmpty(this.param.g)) {
this.param.g = urlPath[0];
this.param.v = urlPath[1];
this.param.l = urlPath[2] || 1;
}
if (!(this.param.v && this.param.g)) {
this.error = true;
this.errorMsg = 'Invalid URL';
@ -307,7 +313,7 @@
get(
`${HOST}/get_feedback_city`,
// g=338947&v=30008&e=245176&c=1186
{ GRI_SN: that.param.g, VEI_SN: that.param.v, lgc: 1 },
{ GRI_SN: that.param.g, VEI_SN: that.param.v, lgc: this.param.l },
{ headers: { ...{} } }
).then((res) => {
that.loading = false;
@ -323,7 +329,7 @@
GRI_SN: this.param.g,
VEI_SN: this.param.v,
CITY_SN: city.cii_sn,
lgc: 1
lgc: this.param.l
};
this.currentCity = Object.assign({}, city, _param);
@ -376,6 +382,9 @@
if (itemGroup.C) {
experience = experience.concat(itemGroup.C);
}
if (itemGroup.G) {
experience = experience.concat(itemGroup.G);
}
if (itemGroup.A) {
experience = experience.concat(itemGroup.A.map(function (ele) {
var newEle = Object.assign({}, ele);

Loading…
Cancel
Save