Skip to content

Commit 37a4b26

Browse files
committed
fix: 修复在 mp-baidu 上 loading 不显示的问题
1 parent 5645083 commit 37a4b26

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

‎pages/API/show-loading/show-loading.vue‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<page-head :title="title"></page-head>
44
<view class="uni-padding-wrap">
55
<view class="uni-btn-v">
6-
<button class="btn-load" type="primary" @tap="showLoading">显示 loading 提示框</button>
7-
<button @tap="hideLoading">隐藏 loading 提示框</button>
6+
<button class="btn-load" type="primary" @click="showLoading">显示 loading 提示框</button>
7+
<button @click="hideLoading">隐藏 loading 提示框</button>
88
</view>
99
</view>
1010
</view>
@@ -17,16 +17,18 @@
1717
}
1818
},
1919
methods: {
20-
showLoading: function () {
21-
uni.showLoading()
20+
showLoading: function() {
21+
uni.showLoading({
22+
title: 'loading'
23+
});
2224
},
23-
hideLoading: function () {
24-
uni.hideLoading()
25+
hideLoading: function() {
26+
uni.hideLoading();
2527
}
2628
}
2729
}
2830
</script>
2931

3032
<style>
31-
32-
</style>
33+
34+
</style>

0 commit comments

Comments
 (0)