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