Эх сурвалжийг харах

O2identity组件设置成默认懒加载

unknown 5 жил өмнө
parent
commit
aa4a0569f5

+ 2 - 2
o2web/source/o2_core/o2/widget/O2Identity.js

@@ -7,7 +7,7 @@ o2.widget.O2Identity = new Class({
 	options: {
 		"style": "default",
         "canRemove": false,
-        "lazy": false,
+        "lazy": true,
         "disableInfor" : false
 	},
 	initialize: function(data, container, options){
@@ -48,7 +48,7 @@ o2.widget.O2Identity = new Class({
             }.bind(this));
         }
 
-        if( !this.options.disableInfor ){
+        if( !this.options.disableInfor && !layout.mobile){
             if (!this.options.lazy ){
                 this.createInforNode(function(){
                     this.fireEvent("loadedInfor", [this]);