|
@@ -33,20 +33,20 @@ export default {
|
|
for (let index = 0; index < Booth.length; index++) {
|
|
for (let index = 0; index < Booth.length; index++) {
|
|
const item = Booth[index];
|
|
const item = Booth[index];
|
|
tt = item.company.filter(sub=>sub.panoId==this.boothId)
|
|
tt = item.company.filter(sub=>sub.panoId==this.boothId)
|
|
- console.log(tt);
|
|
|
|
- if (tt) {
|
|
|
|
- cutt = tt
|
|
|
|
|
|
+ if (tt.length>0) {
|
|
|
|
+ cutt = tt[0]
|
|
break
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if (tt.length>1&&this.boothRepeat) {
|
|
if (tt.length>1&&this.boothRepeat) {
|
|
cutt = tt[this.boothRepeat.split('_')[1]]
|
|
cutt = tt[this.boothRepeat.split('_')[1]]
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(cutt);
|
|
|
|
|
|
|
|
- let panoQuat = cutt.firstView.split("qua:")[1];
|
|
|
|
|
|
+ let panoQuat = cutt && cutt.firstView.split("qua:")[1];
|
|
let [x, y, z, w] = panoQuat.split(",");
|
|
let [x, y, z, w] = panoQuat.split(",");
|
|
tmp = `&firstView=pano:${cutt.panoId},qua:${x + ", " + y + ", " + z + ", " + w}`;
|
|
tmp = `&firstView=pano:${cutt.panoId},qua:${x + ", " + y + ", " + z + ", " + w}`;
|
|
}
|
|
}
|