Commit 7f6ad436 by 匡雅琴

全局loading添加

1 parent fe2f40ab
...@@ -86,9 +86,11 @@ Page({ ...@@ -86,9 +86,11 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
console.log(this.data.hasUserInfo); console.log(this.data.hasUserInfo);
wx.$util.showLoading('加载中...')
getApp() getApp()
.login() .login()
.then(({ data }) => { .then(({ data }) => {
wx.hideLoading()
console.log(data); console.log(data);
if (data) { if (data) {
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!