|
|
|
@ -31,9 +31,6 @@
|
|
|
|
|
watch:{
|
|
|
|
|
$route:{
|
|
|
|
|
handler(val,oldval){
|
|
|
|
|
console.log("路由监听......")
|
|
|
|
|
console.log(val);//新路由信息
|
|
|
|
|
console.log(oldval);//老路由信息
|
|
|
|
|
let path = val.path;
|
|
|
|
|
//this.model3DUrl = "https://three-dimensional.obs.myhuaweicloud.com/tech-tools/others/yangpuxuexiaonew/index.html?AccessKeyId=WAFBGJACKDOQZDH1MKZ1&Expires=1668049230&Signature=r4Vs%2BaCdcmsQso6Pq2/luCcJU3U%3D";
|
|
|
|
|
//document.getElementById("backIframe").src = "https://three-dimensional.obs.myhuaweicloud.com/tech-tools/others/yangpuxuexiaonew/index.html?AccessKeyId=WAFBGJACKDOQZDH1MKZ1&Expires=1668049230&Signature=r4Vs%2BaCdcmsQso6Pq2/luCcJU3U%3D";
|
|
|
|
@ -51,17 +48,17 @@
|
|
|
|
|
modelChange: function (modelId) {
|
|
|
|
|
switch (modelId) {
|
|
|
|
|
case 1:
|
|
|
|
|
//中心模式
|
|
|
|
|
//立体校园
|
|
|
|
|
this.changeBackGround(modelId);
|
|
|
|
|
this.$router.replace({path:"/dynamic"});
|
|
|
|
|
this.$router.replace({path:"/threeDimensionalSchool"});
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
//三维模式
|
|
|
|
|
//中心模式
|
|
|
|
|
this.changeBackGround(modelId);
|
|
|
|
|
this.$router.replace({path:"/threeDimensionalSchool"});
|
|
|
|
|
this.$router.replace({path:"/dynamic"});
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
//导航模式
|
|
|
|
|
//驾驶舱模式
|
|
|
|
|
this.changeBackGround(modelId);
|
|
|
|
|
this.$router.replace({path:"/traditional"});
|
|
|
|
|
break;
|
|
|
|
@ -73,12 +70,11 @@
|
|
|
|
|
* 改变div背景图 以及事件穿透属性值
|
|
|
|
|
* */
|
|
|
|
|
changeBackGround:function (modelId) {
|
|
|
|
|
console.log("3d:",modelId)
|
|
|
|
|
if(modelId !== 3){
|
|
|
|
|
if(modelId == 1){
|
|
|
|
|
this.model3DUrl = "https://three-dimensional.obs.myhuaweicloud.com/tech-tools/others/yangpuxuexiaonew/index.html?AccessKeyId=WAFBGJACKDOQZDH1MKZ1&Expires=1668049230&Signature=r4Vs%2BaCdcmsQso6Pq2/luCcJU3U%3D";
|
|
|
|
|
}else {
|
|
|
|
|
this.model3DUrl = "https://three-dimensional.obs.myhuaweicloud.com/tech-tools/others/yangpuxuexiao3D/index.html?AccessKeyId=WAFBGJACKDOQZDH1MKZ1&Expires=1667894500&Signature=mE9wpuN1ImyOz3yMGPwiaI0UPaU%3D";
|
|
|
|
|
}else {
|
|
|
|
|
this.model3DUrl = "https://three-dimensional.obs.myhuaweicloud.com/tech-tools/others/yangpuxuexiaonew/index.html?AccessKeyId=WAFBGJACKDOQZDH1MKZ1&Expires=1668049230&Signature=r4Vs%2BaCdcmsQso6Pq2/luCcJU3U%3D";
|
|
|
|
|
}
|
|
|
|
|
this.pointerEvents = "none";
|
|
|
|
|
document.getElementById("screenContent").style.backgroundImage = "";
|
|
|
|
|