美文网首页
apicloud加载动画

apicloud加载动画

作者: Null_8fd6 | 来源:发表于2019-02-20 16:51 被阅读0次
    var loadingIndex = 0; // 小菊花的索引
    var loadingFlower = false;
    
    function _loading() {
        if (loadingFlower) return;
        loadingFlower = true;
        var UILoading = api.require('UILoading');
        UILoading.flower({ size: 30, fixed: true, mask: 'rgba(0,0,0,0.5)' }, function(ret) {
            loadingIndex = ret.id;
        });
    }
    
    function _closeLoading() {
        var UILoading = api.require('UILoading');
        UILoading.closeFlower({ id: loadingIndex });
        loadingFlower = false;
    }
    
    

    相关文章

      网友评论

          本文标题:apicloud加载动画

          本文链接:https://www.haomeiwen.com/subject/vfghyqtx.html