my.hideLoading

Hide the loading dialog.

Sample Code

copy
my.hideLoading();

Page({
  onLoad() {
    my.showLoading();
    const that = this;
    setTimeout(() => {
      my.hideLoading({
        page: that,  // Prevents switching to other pages when execution, page pointing is not accurate
      });
    }, 4000);
  }
})

Parameters

PropertyType

Required

Description
pageObjectNoSpecifically it means the current page instance. In some scenarios, it is required to specify the exact page for hideLoading.Â