Commit 0eb4a091 authored by xinzhedeai's avatar xinzhedeai

进度加载处理

parent a12727ea
......@@ -9,6 +9,7 @@ window.onload = function() {
if(!localStorage.getItem('token')){
getUserInfo()
}
}
function getUserInfo() {
......
......@@ -194,6 +194,12 @@ gemhoUtil.getPageName = function() {
* @demo navigatePage('/warehouse/company/companyDetail.html?companyId=1002');
*/
gemhoUtil.navigatePage = function(path) {
vant.Toast.loading({
message: '页面跳转中...',
forbidClick: true,
loadingType: 'spinner',
});
if (!path) {
return;
}
......
This diff is collapsed.
......@@ -27,6 +27,10 @@ window.addEventListener("load", function() {
gemhoUtil.navigatePage('./yh-list-detail.html?hdId='+item.hdId+'&type=edit')
},
getList(){
if(this.loading){
return
}
this.loading = true
http2.post({
serviceId: API_KEY_MAP["yh-list"]['id'],
interfacePublicKey: API_KEY_MAP["yh-list"]["publicKey"],
......@@ -51,6 +55,7 @@ window.addEventListener("load", function() {
if(this.page*this.size >= this.total){
this.finished = true; // 下滑不在刷新数据
}
this.loading = false
}
})
// http2.get('/api/thHiddenDanger',{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment