Browse Source

0803生产版本

tremble 4 years ago
parent
commit
234538e99b

File diff suppressed because it is too large
+ 1964 - 1
public/static/template/skin/vtourskin.xml


+ 13 - 349
public/static/template/skin/vtourskin.xml.backup-2021-02-25-09-33-51

@@ -1169,23 +1169,6 @@
         mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx,
         mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); );
     </action>
-
-    <!-- the action for dragging the layer elements - call it once in the ondown event -->
-    <action name="draglayer">
-      copy(drag_currentx, x);
-      copy(drag_currenty, y);
-      copy(drag_stagex, mouse.stagex);
-      copy(drag_stagey, mouse.stagey);
-      indexoftxt(align_contains_right, get(align), 'right');
-      indexoftxt(align_contains_bottom, get(align), 'bottom');
-      calc(drag_align_x, align_contains_right GE 0 ? -1 : +1);
-      calc(drag_align_y, align_contains_bottom GE 0 ? -1 : +1);
-      asyncloop(pressed,
-        calc(x, drag_currentx + (mouse.stagex - drag_stagex)*drag_align_x);
-        calc(y, drag_currenty + (mouse.stagey - drag_stagey)*drag_align_y);
-        );
-    </action>
-
     <layer name="tour_guide_alert" url="" keep="true" align="center" edge="center" x="0" y="0" maxwidth="100%"
            maxheight="100%" enabled="false" visible="false"/>
     <action name="show_tour_guide_alert">set(layer[tour_guide_alert].url,%1); set(layer[tour_guide_alert].visible,true);
@@ -1303,56 +1286,16 @@
         if(lhotspot.hsvrfalse, set(lhotspot.visible,true); ); if(lhotspot.hsvrtrue, set(lhotspot.visible,false); ); );
     </action>
 	
-    <!-- 无背景热点 -->
-    <action name="addImgTextHotSpotWithoutBg">
-      set(schp_name,%2); 
+	   
+
 
+    <action name="editImgTextHotSpot">
+      set(schp_name,%2); 
       set(hotspot[get(schp_name)].url,%1);
-      set(hotspot[get(schp_name)].ath,%4);
-      set(hotspot[get(schp_name)].atv,%5);
       set(hotspot[get(schp_name)].hotspottitle,%3);
-      set(hotspot[get(schp_name)].wordcontent,%9);
-      set(hotspot[get(schp_name)].hotspotlink,%8);
-      set(hotspot[get(schp_name)].alpha,1);
-      set(hotspot[get(schp_name)].scale,1);
-      set(hotspot[get(schp_name)].autoalpha,false);
-      set(hotspot[get(schp_name)].distorted,false);
-      set(hotspot[get(schp_name)].width,'prop');
-      set(hotspot[get(schp_name)].height,34);
-      if(device.mobile,set(hotspot[get(schp_name)].height,30));
-      set(hotspot[get(schp_name)].visible,true);
-	    set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext)); 
-      addhotspot(get(schp_name));
-      set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%7 == false,
-        , 
-        set(hotspot[get(schp_name)].ondown,draghotspot(););
-        set(hotspot[get(schp_name)].onup,js(__krfn.angle.updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"imgtext")));
-      );
-
-      if(%6 == '1',
-         txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(60,60, 30);");
-		  );
-    
-      txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip_withoutBg(hotspot[get(name)].hotspottitle);");
-      set(hotspot[get(schp_name)].onhover,null);
-      set(hotspot[get(schp_name)].onout,null);
-      set(hotspot[get(schp_name)].onover,null);
-
-
-      txtadd(tooltipname, 'tooltip_', get(schp_name));
-         
-      set(plugin[get(tooltipname)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%10 == true,
-        set(plugin[get(tooltipname)].visible,true);,
-        set(plugin[get(tooltipname)].visible,false);
-      );
-
-    </action>
+      set(hotspot[get(schp_name)].hotspotlink,%4);
+    </action> 
 
-    <!-- 有背景热点 -->
     <action name="addImgTextHotSpot">
       set(schp_name,%2); 
 
@@ -1367,12 +1310,12 @@
       set(hotspot[get(schp_name)].autoalpha,false);
       set(hotspot[get(schp_name)].distorted,false);
       set(hotspot[get(schp_name)].width,'prop');
-      set(hotspot[get(schp_name)].height,34);
-      if(device.mobile,set(hotspot[get(schp_name)].height,30));
+      set(hotspot[get(schp_name)].height,'50');
       set(hotspot[get(schp_name)].visible,true);
 	    set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext)); 
       addhotspot(get(schp_name));
       set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
+      if(device.mobile,set(hotspot[get(schp_name)].scale,0.8));
 
       if(%7 == false,
         , 
@@ -1381,7 +1324,7 @@
       );
 
       if(%6 == '1',
-         txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(56,56, 30);");
+         txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(60,60, 30);");
 		  );
     
       txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
@@ -1389,101 +1332,6 @@
       set(hotspot[get(schp_name)].onout,null);
       set(hotspot[get(schp_name)].onover,null);
 
-      txtadd(tooltipname, 'tooltip_', get(schp_name));
-         
-      set(plugin[get(tooltipname)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%10 == true,
-        set(plugin[get(tooltipname)].visible,true);,
-        set(plugin[get(tooltipname)].visible,false);
-      );
-
-    </action>
-
-    <!-- 线段热点 -->
-    <action name="addLineTxtHotSpot">
-      set(schp_name,%2); 
-
-      set(hotspot[get(schp_name)].url,%1);
-      set(hotspot[get(schp_name)].ath,%4);
-      set(hotspot[get(schp_name)].atv,%5);
-      set(hotspot[get(schp_name)].hotspottitle,%3);
-      set(hotspot[get(schp_name)].wordcontent,%9);
-      set(hotspot[get(schp_name)].hotspotlink,%8);
-      set(hotspot[get(schp_name)].alpha,1);
-      set(hotspot[get(schp_name)].scale,1);
-      set(hotspot[get(schp_name)].autoalpha,false);
-      set(hotspot[get(schp_name)].distorted,false);
-      set(hotspot[get(schp_name)].width,'prop');
-      set(hotspot[get(schp_name)].height,34);
-      if(device.mobile,set(hotspot[get(schp_name)].height,30));
-      set(hotspot[get(schp_name)].visible,true);
-	    set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext)); 
-      addhotspot(get(schp_name));
-      set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%7 == false,
-        , 
-        set(hotspot[get(schp_name)].ondown,draghotspot(););
-        set(hotspot[get(schp_name)].onup,js(__krfn.angle.updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"imgtext")));
-      );
-
-      if(%6 == true,
-        txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip_lineTxt_l(hotspot[get(name)].hotspottitle);");,
-        txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip_lineTxt_r(hotspot[get(name)].hotspottitle);");
-      );
-    
-      set(hotspot[get(schp_name)].onhover,null);
-      set(hotspot[get(schp_name)].onout,null);
-      set(hotspot[get(schp_name)].onover,null);
-
-      txtadd(tooltipname, 'tooltip_', get(schp_name));
-         
-      set(plugin[get(tooltipname)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%10 == true,
-        set(plugin[get(tooltipname)].visible,true);,
-        set(plugin[get(tooltipname)].visible,false);
-      );
-
-    </action>
-
-    <!-- 线段热点(背景) -->
-    <action name="addLineTxtHotSpotWithBg">
-      set(schp_name,%2); 
-
-      set(hotspot[get(schp_name)].url,%1);
-      set(hotspot[get(schp_name)].ath,%4);
-      set(hotspot[get(schp_name)].atv,%5);
-      set(hotspot[get(schp_name)].hotspottitle,%3);
-      set(hotspot[get(schp_name)].wordcontent,%9);
-      set(hotspot[get(schp_name)].hotspotlink,%8);
-      set(hotspot[get(schp_name)].alpha,1);
-      set(hotspot[get(schp_name)].scale,1);
-      set(hotspot[get(schp_name)].autoalpha,false);
-      set(hotspot[get(schp_name)].distorted,false);
-      set(hotspot[get(schp_name)].width,'prop');
-      set(hotspot[get(schp_name)].height,34);
-      if(device.mobile,set(hotspot[get(schp_name)].height,30));
-      set(hotspot[get(schp_name)].visible,true);
-	    set(hotspot[get(schp_name)].onhover,showtext(get(hotspottitle),skintext)); 
-      addhotspot(get(schp_name));
-      set(hotspot[get(schp_name)].onclick,'js(__krfn.utils.linkopen(%8,%2));');
-
-      if(%7 == false,
-        , 
-        set(hotspot[get(schp_name)].ondown,draghotspot(););
-        set(hotspot[get(schp_name)].onup,js(__krfn.angle.updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"imgtext")));
-      );
-
-      if(%6 == true,
-        txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip_lineTxt_l_withbg(hotspot[get(name)].hotspottitle);");,
-        txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip_lineTxt_r_withbg(hotspot[get(name)].hotspottitle);");
-      );
-    
-      set(hotspot[get(schp_name)].onhover,null);
-      set(hotspot[get(schp_name)].onout,null);
-      set(hotspot[get(schp_name)].onover,null);
 
       txtadd(tooltipname, 'tooltip_', get(schp_name));
          
@@ -1505,197 +1353,15 @@
         set(plugin[get(tooltipname)].x,0);
         set(plugin[get(tooltipname)].y,0);
         set(plugin[get(tooltipname)].autowidth,true);
-        set(plugin[get(tooltipname)].height,34); 
-        if(device.mobile,set(plugin[get(tooltipname)].height,30));
-        if(device.mobile,set(plugin[get(tooltipname)].scale,1));
-
-        set(plugin[get(tooltipname)].background,false);
-        set(plugin[get(tooltipname)].style,rrdius);
-
-        set(plugin[get(tooltipname)].vcenter,true); 
-        set(plugin[get(tooltipname)].border,false);
-        set(plugin[get(tooltipname)].borderwidth,1);
-        set(plugin[get(tooltipname)].bordercolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].borderalpha,0.2);
-        set(plugin[get(tooltipname)].glow,0); 
-        set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].css,'display:flex;align-items:center;padding:5px 10px 5px 2px;margin:0;
-        text-align:center;background:rgb(0 0 0 / 60%);position: relative;left: 0px;width:100%;height:100%;
-        border-bottom-right-radius:4px;border-top-right-radius:4px; color:#FFFFFF;
-        font-family:STXihei; font-size:13px;');
-        if(device.mobile,
-        set(plugin[get(tooltipname)].css,'display:flex;align-items:center;padding:0 10px 0 2px;margin:0;
-        text-align:center;background:rgb(0 0 0 / 60%);width:100%;height:100%;
-        border-bottom-right-radius:4px;border-top-right-radius:4px; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'););
-        set(plugin[get(tooltipname)].textshadow,0);
-        set(plugin[get(tooltipname)].textshadowrange,6.0); 
-        set(plugin[get(tooltipname)].textshadowangle,90); 
-        if(text ==
-        '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
-        set(plugin[get(tooltipname)].enabled,true);
-    </action>
-
-    <action name="add_all_the_time_tooltip_withoutBg">
-      txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
-        txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
-        set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
-        set(plugin[get(tooltipname)].align,right);
-        set(plugin[get(tooltipname)].edge,left);
-        set(plugin[get(tooltipname)].x,0);
-        set(plugin[get(tooltipname)].y,0);
-        set(plugin[get(tooltipname)].autowidth,true);
-        set(plugin[get(tooltipname)].height,36); 
-        if(device.mobile,set(plugin[get(tooltipname)].scale,0.7));
-        if(device.mobile,set(plugin[get(tooltipname)].height,48));
-
-        set(plugin[get(tooltipname)].background,false);
-        set(plugin[get(tooltipname)].roundedge,5);
-        set(plugin[get(tooltipname)].padding,0);
-        set(plugin[get(tooltipname)].vcenter,true); 
-        set(plugin[get(tooltipname)].border,false);
-        set(plugin[get(tooltipname)].borderwidth,1);
-        set(plugin[get(tooltipname)].bordercolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].borderalpha,0.2);
-        set(plugin[get(tooltipname)].glow,0); 
-        set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
-        if(device.mobile,
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'); );
-        set(plugin[get(tooltipname)].textshadow,0);
-        set(plugin[get(tooltipname)].textshadowrange,6.0); 
-        set(plugin[get(tooltipname)].textshadowangle,90); 
-        if(text ==
-        '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
-        set(plugin[get(tooltipname)].enabled,true);
-    </action>
-
-    <action name="add_all_the_time_tooltip_lineTxt_l">
-        txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
-        txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
-        set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
-        set(plugin[get(tooltipname)].align,center);
-        set(plugin[get(tooltipname)].edge,center);
-        set(plugin[get(tooltipname)].x,-20);
-        set(plugin[get(tooltipname)].y,-80%);
-        set(plugin[get(tooltipname)].autowidth,true);
-        set(plugin[get(tooltipname)].height,34); 
-        if(device.mobile,set(plugin[get(tooltipname)].height,30));
-        if(device.mobile,set(plugin[get(tooltipname)].scale,1));
-
-        set(plugin[get(tooltipname)].background,false);
-        set(plugin[get(tooltipname)].style,rrdius);
-
-        set(plugin[get(tooltipname)].vcenter,true); 
-        set(plugin[get(tooltipname)].border,false);
-        set(plugin[get(tooltipname)].borderwidth,1);
-        set(plugin[get(tooltipname)].bordercolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].borderalpha,0.2);
-        set(plugin[get(tooltipname)].glow,0); 
-        set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
-        if(device.mobile,
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'); );
-        set(plugin[get(tooltipname)].textshadow,0);
-        set(plugin[get(tooltipname)].textshadowrange,6.0); 
-        set(plugin[get(tooltipname)].textshadowangle,90); 
-        if(text ==
-        '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
-        set(plugin[get(tooltipname)].enabled,true);
-    </action>
-
-    <action name="add_all_the_time_tooltip_lineTxt_l_withbg">
-      txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
-        txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
-        set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
-        set(plugin[get(tooltipname)].align,center);
-        set(plugin[get(tooltipname)].edge,center);
-        set(plugin[get(tooltipname)].x,-20);
-        set(plugin[get(tooltipname)].y,-100%);
-        set(plugin[get(tooltipname)].autowidth,true);
         set(plugin[get(tooltipname)].height,36); 
         if(device.mobile,set(plugin[get(tooltipname)].scale,0.7));
         if(device.mobile,set(plugin[get(tooltipname)].height,48));
 
         set(plugin[get(tooltipname)].background,true);
         set(plugin[get(tooltipname)].backgroundcolor,0x000000); 
-        set(plugin[get(tooltipname)].roundedge,8);
-        set(plugin[get(tooltipname)].backgroundalpha,0.6);
-        set(plugin[get(tooltipname)].padding,0 10);
-        set(plugin[get(tooltipname)].vcenter,true); 
-        set(plugin[get(tooltipname)].border,true);
-        set(plugin[get(tooltipname)].borderwidth,1);
-        set(plugin[get(tooltipname)].bordercolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].borderalpha,0.2);
-        set(plugin[get(tooltipname)].glow,0); 
-        set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
-        if(device.mobile,
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'); );
-        set(plugin[get(tooltipname)].textshadow,0);
-        set(plugin[get(tooltipname)].textshadowrange,6.0); 
-        set(plugin[get(tooltipname)].textshadowangle,90); 
-        if(text ==
-        '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
-        set(plugin[get(tooltipname)].enabled,true);
-    </action>
-
-    <action name="add_all_the_time_tooltip_lineTxt_r">
-        txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
-        txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
-        set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
-        set(plugin[get(tooltipname)].align,center);
-        set(plugin[get(tooltipname)].edge,center);
-        set(plugin[get(tooltipname)].x,20);
-        set(plugin[get(tooltipname)].y,-80%);
-        set(plugin[get(tooltipname)].autowidth,true);
-        set(plugin[get(tooltipname)].height,34); 
-        if(device.mobile,set(plugin[get(tooltipname)].height,30));
-        if(device.mobile,set(plugin[get(tooltipname)].scale,1));
-
-        set(plugin[get(tooltipname)].background,false);
-        set(plugin[get(tooltipname)].style,rrdius);
-
-        set(plugin[get(tooltipname)].vcenter,true); 
-        set(plugin[get(tooltipname)].border,false);
-        set(plugin[get(tooltipname)].borderwidth,1);
-        set(plugin[get(tooltipname)].bordercolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].borderalpha,0.2);
-        set(plugin[get(tooltipname)].glow,0); 
-        set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
-        if(device.mobile,
-        set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'); );
-        set(plugin[get(tooltipname)].textshadow,0);
-        set(plugin[get(tooltipname)].textshadowrange,6.0); 
-        set(plugin[get(tooltipname)].textshadowangle,90); 
-        if(text ==
-        '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
-        set(plugin[get(tooltipname)].enabled,true);
-    </action>
-
-    <action name="add_all_the_time_tooltip_lineTxt_r_withbg">
-     txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
-        txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
-        set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
-        set(plugin[get(tooltipname)].align,center);
-        set(plugin[get(tooltipname)].edge,center);
-        set(plugin[get(tooltipname)].x,20);
-        set(plugin[get(tooltipname)].y,-100%);
-        set(plugin[get(tooltipname)].autowidth,true);
-        set(plugin[get(tooltipname)].height,36); 
-        if(device.mobile,set(plugin[get(tooltipname)].scale,0.7));
-        if(device.mobile,set(plugin[get(tooltipname)].height,48));
-
-        set(plugin[get(tooltipname)].background,true);
-        set(plugin[get(tooltipname)].backgroundcolor,0x000000); 
-        set(plugin[get(tooltipname)].roundedge,8);
-        set(plugin[get(tooltipname)].backgroundalpha,0.6);
-        set(plugin[get(tooltipname)].padding,0 10);
+        set(plugin[get(tooltipname)].roundedge,5);
+        set(plugin[get(tooltipname)].backgroundalpha,0.7);
+        set(plugin[get(tooltipname)].padding,5);
         set(plugin[get(tooltipname)].vcenter,true); 
         set(plugin[get(tooltipname)].border,true);
         set(plugin[get(tooltipname)].borderwidth,1);
@@ -1706,7 +1372,7 @@
         set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
         if(device.mobile,
         set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
-        font-family:STXihei; font-size:14px;'); );
+        font-family:STXihei; font-weight:bold; font-size:14px;'); );
         set(plugin[get(tooltipname)].textshadow,0);
         set(plugin[get(tooltipname)].textshadowrange,6.0); 
         set(plugin[get(tooltipname)].textshadowangle,90); 
@@ -1714,8 +1380,6 @@
         '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
         set(plugin[get(tooltipname)].enabled,true);
     </action>
-
-
     <layer name="mapcontainer"  keep="true" type="container" bgcolor="0x000000" bgalpha="0.2" align="righttop" x="95"
            y="0" width="400" height="300" visible="false">
         <!-- <layer name="map" url=""  align="center" x="0" y="0" width="392" height="292" handcursor="false"

File diff suppressed because it is too large
+ 0 - 1964
public/static/template/skin/vtourskin.xml.backup-2021-05-31-18-29-15


+ 1 - 1
public/static/template/tour.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-	<title>楼盘VR项目</title>
+	<title>krpano - 0199</title>
 	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
 	<meta name="apple-mobile-web-app-capable" content="yes" />
 	<meta name="apple-mobile-web-app-status-bar-style" content="black" />

+ 1 - 0
src/config/index.js

@@ -10,6 +10,7 @@ const config = {
     projectNum: browser.urlQueryValue('m') || 'HUS000011347353956009021440',
     sceneNum: browser.urlQueryValue('s') || 'fcb_jF0IN4ODQ',
     hengdaNum: browser.urlQueryValue('h') || '6017118343179540233',
+    isView: browser.urlQueryValue('canView') || '0',
     intranet: process.env.VUE_APP_INNERNET,
     CDN: process.env.VUE_APP_CDN,
     client_code: process.env.VUE_APP_CLIENT_CODE,

+ 1 - 1
src/core/utils.js

@@ -113,7 +113,7 @@ export default class Utils {
    */
 
   looktohotspot(krpano, hotspotName) {
-    var curFov = krpano.get("view.fov");
+    var curFov = krpano.get("view.fov") || 120;
     krpano.call("looktohotspot(" + hotspotName + "," + curFov + ")");
   }
 

+ 1 - 2
src/framework/Head.vue

@@ -1,7 +1,7 @@
 <template>
   <header class="app-head" app-border dir-bottom>
     <span class="app-head-title">{{info.houseTitle}}</span>
-    <div class="app-head-save" @click="onSave" :class="{disable:!canLoad}">
+    <div class="app-head-save" @click="onSave" :class="{disable:!canLoad||$justview}">
       <i class="iconfont icon_save"></i>
       保存
     </div>
@@ -36,7 +36,6 @@ export default {
       }
     }) 
 
-
     this.$bus.on('undateAllVrList',islongpolling=>{
       this.getPanoList(islongpolling)
     })

+ 4 - 3
src/framework/Toolbar.vue

@@ -45,6 +45,7 @@ export default {
       list:[],
       activeItem:'',
       canEdit:true,
+      justview:true,
       hasCheck:false
     };
   },
@@ -106,9 +107,6 @@ export default {
      
     },
   },
-  created() {
-    
-  },
   watch:{
     '$route.meta.loadScene':{
       handler: async function (newVal) {
@@ -147,6 +145,9 @@ export default {
   },
   mounted(){
      this.$nextTick(() => {
+        this.$bus.on('justview',data=>{
+              this.justview = data
+        }) 
         if ($scroll == null) {
             $scroll = $(".clip-scroller")[0];
             frame =new PerfectScrollbar($scroll, {

+ 3 - 3
src/framework/core/index.vue

@@ -5,7 +5,7 @@
     <div v-show="activeItem" id="pano"></div>
     <template v-if="showSnapshot&&activeItem">
       <snapshot :showFlash="showFlash"></snapshot>
-      <button class="ui-button submit" @click="onClick">设置为初始页面</button>
+      <button class="ui-button submit" @click="onClick" :class="{disable:$justview}">设置为初始页面</button>
     </template>
   </div>
 </template>
@@ -95,8 +95,8 @@ export default {
           try {
             let tmp = JSON.parse(newVal.initVisual)
             var krpano = document.getElementById('krpanoSWFObject');
-            krpano.set('view.vlookat',tmp.vlookat);
-            krpano.set('view.hlookat',tmp.hlookat);
+            tmp.vlookat&&krpano.set('view.vlookat',tmp.vlookat);
+            tmp.hlookat&&krpano.set('view.hlookat',tmp.hlookat);
           } catch (error) {
             error
           }

+ 2 - 3
src/framework/show/index.vue

@@ -29,7 +29,6 @@ export default {
     activeItem:{
       handler(newVal) {
         // this.getSceneInfo()
-
         $('#pano').empty();
         window.vrInitFn = ()=>{
             var krpano = document.getElementById('krpanoSWFObject');
@@ -40,8 +39,8 @@ export default {
           try {
               let tmp = JSON.parse(newVal.initVisual)
               var krpano = document.getElementById('krpanoSWFObject');
-              krpano.set('view.vlookat',tmp.vlookat);
-              krpano.set('view.hlookat',tmp.hlookat);
+              tmp.vlookat&&krpano.set('view.vlookat',tmp.vlookat);
+              tmp.hlookat&&krpano.set('view.hlookat',tmp.hlookat);
             } catch (error) {
               error
             }

+ 19 - 5
src/router/index.js

@@ -2,6 +2,8 @@ import Vue from 'vue'
 import Router from 'vue-router'
 import { PCMenu } from "../config/menu";
 import { checkLogin,getPanoInfo } from '@/api'
+import config from '../config'
+
 import { $alert } from '@/components/shared/message'
 import store from '../Store'
 
@@ -44,25 +46,37 @@ checkLogin().then(response => {
 });
 
 getPanoInfo().then(response => {
+  let view = parseInt(config.isView)
+
   if(response.data&&response.data.isShow == 1){
     store.commit('UpdateIsShowState', true)
   }
+
+  if (view) {
+    OnlineDetector.valid();
+    vue.$bus.emit('canLoad',true) 
+    vue.$bus.emit('justview',true) 
+    Vue.prototype.$justview = true
+    return
+  }
+
   
   if(response.data&&response.data.status == 1){
-    return $alert({
+      return $alert({
         content:'该VR项目待审核,不可编辑。'
       })
   }
   else if(response.data&&response.data.status == 2){
-    return $alert({
-      content:'该VR项目已审核,不可编辑。'
-    })
+      return $alert({
+        content:'该VR项目已审核,不可编辑。'
+      })
   }
   else{
     vue.$bus.emit('canLoad',true) 
+    vue.$bus.emit('justview',false) 
+    Vue.prototype.$justview = false
     OnlineDetector.valid();
   }
-  
 });
 
 const router = new Router({

+ 5 - 2
src/views/base/Toolbar.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-view-toolbar app-view-full-toolbar">
-    <div class="main">
+    <div class="main" :class="{disable:$justview}">
       <div class="ui-title-big">基础设置</div>
       <div class="ui-title"><span class="require">封面</span></div>
       <div class="upload-con">
@@ -90,6 +90,7 @@ export default {
   },
   data() {
     return {
+      canLoad:false,
       dataURL: "",
       baseIcon:'',
       options: {
@@ -107,7 +108,9 @@ export default {
     })
   },
   mounted(){
-
+    this.$bus.on('canLoad',(data)=>{
+      this.canLoad = data
+    })
   },
   methods: {
     onFileChange(file) {

+ 3 - 3
src/views/hotspot/EditPanel.vue

@@ -5,12 +5,12 @@
     enter-active-class="animated slideInRight speed"
     leave-active-class="animated slideOutRight speed"
   >
-    <div class="hots-panel" v-show="show">
+    <div class="hots-panel" v-show="show"  >
       <div class="ui-between header" app-border dir-bottom>
         <span>{{ editTitle }}热点</span>
         <i class="iconfont icon_close" @click="cancel"></i>
       </div>
-      <div class="content">
+      <div class="content" :class="{disable:$justview}">
         <div>
           <ul>
             <li app-border dir-bottom>
@@ -68,7 +68,7 @@
           </ul>
         </div>
       </div>
-      <div class="ui-between footer" app-border dir-top>
+      <div class="ui-between footer" :class="{disable:$justview}" app-border dir-top>
         <button class="ui-button submit" @click="save">完成</button>
       </div>
     </div>

+ 3 - 3
src/views/hotspot/Setting.vue

@@ -1,7 +1,7 @@
 <template>
   <setting-panel :scrollbar="false">
-    <ul class="view-setting" :class="{'disable':false}">
-            <li app-border dir-bottom>
+    <ul class="view-setting">
+            <li app-border dir-bottom :class="{disable:$justview}">
                 <button class="ui-button submit"  :class="{disable:vrlist.length<=0}" @click="open(null)">添加热点</button>
             </li>
             <li app-border class="list">
@@ -18,7 +18,7 @@
                                 </i>
                                 <span>{{item.hotspotTitle}}</span>
                             </div>
-                            <i class="iconfont icon_delete" @click.stop="deleIndex=key"></i>
+                            <i class="iconfont icon_delete" :class="{disable:$justview}" @click.stop="deleIndex=key"></i>
                             <a
                                 href="javascript:;"
                                 v-clickoutside="clickoutside"

+ 1 - 1
src/views/hotspot/Toolbar.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="app-view-toolbar" :class="{unable:!canEdit}" app-border dir-top>
+  <div class="app-view-toolbar" :class="{unable:!canEdit,disable:$justview}" app-border dir-top>
     <div class="room-label" >
       <ul>
         <li

+ 1 - 1
src/views/information/Setting.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="view-setting" app-border dir-left>
+  <div class="view-setting" app-border dir-left :class="{disable:$justview}">
     <div class="p-top">
       <div class="ui-title">VR项目初始场景</div>
       <div class="ui-remark">

+ 1 - 1
src/views/information/Toolbar.vue

@@ -8,7 +8,7 @@
       <ul>
         <li :class="{active:item.id===type}" @click="type=item.id" v-for="(item,i) in $panoType" :key="i">{{item.name}}</li>
       </ul>
-      <div class="pano-con">
+      <div class="pano-con" :class="{disable:$justview}">
         <template v-if="list.length>0">
           <draggable tag="ul" v-model="list" animation="300" @sort="uploadListSort">
             <li v-for="(item,i) in list" :class="{'li-uploading':item.status==1,'li-fail':item.status==2}" :key="i">