全局 Loading 提示
 
API 调用
 
QN.showLoading(options)
 
显示全局 Loading
 
API 调用入参
 
 
  
   
   | 参数名 | 类型 | 是否可选 | 默认值 | 含义 | 
 
  
  
   
   | options | Object |  |  | 选项 | 
 
   
   | options.query | Object | 可选 |  | 接口调用参数 | 
 
   
   | options.query.text | String | 可选 |  | 需要同时显示的文本内容,最长支持9个字符 | 
 
   
   | options.success | Function | 可选 |  | 调用成功的回调函数 | 
 
   
   | options.error | Function | 可选 |  | 调用失败的回调函数 | 
 
  
 
API 响应结果
 
 
  
   
   | 参数名 | 类型 | 是否必须返回 | 含义 | 
 
  
  
   
   | result | Object |  | 响应对象 | 
 
   
   | result.code | String |  | 错误码,成功为 QAP_SUCCESS;失败为其他 | 
 
   
   | result.msg | String |  | 错误信息 | 
 
  
 
调用示例
 
QN.showLoading({
    query: {
        text: '加载中 ~~'
    }
}).then(result => {
    console.log(result);
}, error => {
    console.log(error);
});
QN.showLoading({
    query: {
        text: '加载中 ~~'
    },
    success(result) {
        console.log(result);
    },
    error(error) {
        console.log(error);
    }
});
						
					FAQ
						                        	关于此文档暂时还没有FAQ