{"action":"created","issue":{"url":"https://api.github.com/repos/imouou/BUI-Guide/issues/26","repository_url":"https://api.github.com/repos/imouou/BUI-Guide","labels_url":"https://api.github.com/repos/imouou/BUI-Guide/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/imouou/BUI-Guide/issues/26/comments","events_url":"https://api.github.com/repos/imouou/BUI-Guide/issues/26/events","html_url":"https://github.com/imouou/BUI-Guide/issues/26","id":381463185,"node_id":"MDU6SXNzdWUzODE0NjMxODU=","number":26,"title":"同一个接口多次加载的问题","user":{"login":"LYXCQX","id":44891636,"node_id":"MDQ6VXNlcjQ0ODkxNjM2","avatar_url":"https://avatars0.githubusercontent.com/u/44891636?v=4","gravatar_id":"","url":"https://api.github.com/users/LYXCQX","html_url":"https://github.com/LYXCQX","followers_url":"https://api.github.com/users/LYXCQX/followers","following_url":"https://api.github.com/users/LYXCQX/following{/other_user}","gists_url":"https://api.github.com/users/LYXCQX/gists{/gist_id}","starred_url":"https://api.github.com/users/LYXCQX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LYXCQX/subscriptions","organizations_url":"https://api.github.com/users/LYXCQX/orgs","repos_url":"https://api.github.com/users/LYXCQX/repos","events_url":"https://api.github.com/users/LYXCQX/events{/privacy}","received_events_url":"https://api.github.com/users/LYXCQX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-16T06:21:12Z","updated_at":"2018-11-16T10:19:49Z","closed_at":null,"author_association":"NONE","body":"首页加载进来，获取轮播图，同一个接口连续加载了四次，请问一下怎么闭环这个问题 \r\nif( !uiSlide ){\r\n           // 初始化焦点图\r\n            bui.ajax({\r\n                url : apiUrl+\"reqinfo\",\r\n                data : {}, //接口请求的参数\r\n                // 可选参数\r\n                method : \"GET\"\r\n            }).then(function(result) {\r\n                // 初始化\r\n                uiSlide = bui.slide({\r\n                    id : \"#tabSlideImg\",\r\n                    height : 250,\r\n                    autopage : true, //分页\r\n                    loop : true, //\r\n                    autoplay : true, //自动播放\r\n                    interval : 2000, //滚动时间\r\n                    template : function() {\r\n                        var html ='<div class=\"bui-slide-main\"><ul>\"';\r\n                        $.each(result.dataList,function(index, ad) {\r\n                            if(ad.adType == 0){\r\n                                html +='<li><img src=\"'+ad.adImg+'\" alt=\"\"></li>';\r\n                            }\r\n                        });\r\n                        html+=\"</ul></div>\";\r\n                        return html;\r\n                    },\r\n                })\r\n            });\r\n        }"},"comment":{"url":"https://api.github.com/repos/imouou/BUI-Guide/issues/comments/439348332","html_url":"https://github.com/imouou/BUI-Guide/issues/26#issuecomment-439348332","issue_url":"https://api.github.com/repos/imouou/BUI-Guide/issues/26","id":439348332,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM0ODMzMg==","user":{"login":"LYXCQX","id":44891636,"node_id":"MDQ6VXNlcjQ0ODkxNjM2","avatar_url":"https://avatars0.githubusercontent.com/u/44891636?v=4","gravatar_id":"","url":"https://api.github.com/users/LYXCQX","html_url":"https://github.com/LYXCQX","followers_url":"https://api.github.com/users/LYXCQX/followers","following_url":"https://api.github.com/users/LYXCQX/following{/other_user}","gists_url":"https://api.github.com/users/LYXCQX/gists{/gist_id}","starred_url":"https://api.github.com/users/LYXCQX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LYXCQX/subscriptions","organizations_url":"https://api.github.com/users/LYXCQX/orgs","repos_url":"https://api.github.com/users/LYXCQX/repos","events_url":"https://api.github.com/users/LYXCQX/events{/privacy}","received_events_url":"https://api.github.com/users/LYXCQX/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T10:19:49Z","updated_at":"2018-11-16T10:19:49Z","author_association":"NONE","body":"也是一样的，我这个每次都加载了两次"}}
{"actor":{"display_login":"LYXCQX"}}