From f18b9fa13bcf48515981439c75438542ddb9cf40 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Tue, 9 Jul 2019 15:02:25 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=B4=BB=E5=8A=A8=E5=92=8C=E6=8A=A5=E5=90=8D]?= =?UTF-8?q?[=E5=A2=9E=E5=8A=A0]:[=E5=A2=9E=E5=8A=A0loading=E7=9A=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/searchbar/index.js | 5 +++++ pages/radetail/index.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pages/index/searchbar/index.js b/pages/index/searchbar/index.js index d48f748..c4b9d6d 100644 --- a/pages/index/searchbar/index.js +++ b/pages/index/searchbar/index.js @@ -46,6 +46,9 @@ Page({ let that = this; that.getBussiness(); that.getList(1, 0); + wx.showLoading({ + title: '加载中...', + }) }, onShow(){ let that = this; @@ -98,6 +101,7 @@ Page({ url: config.api.merchantList, data: data }).then(res => { + wx.hideLoading(); if (page == 1) { that.setData({ merchantVoList: [], @@ -114,6 +118,7 @@ Page({ console.log(that.data.merchantVoList) }) .catch(err => { + wx.hideLoading(); wx.showToast({ title: err.errMsg, icon: 'none', diff --git a/pages/radetail/index.js b/pages/radetail/index.js index 29ac2d5..81390f5 100644 --- a/pages/radetail/index.js +++ b/pages/radetail/index.js @@ -68,6 +68,9 @@ Page({ }, //跳转到报名详情页 goSignUp(e) { + wx.showLoading({ + title: '报名中...', + }) let activityId = e.currentTarget.dataset.activityid; this.checkUserStatus(activityId); }, @@ -77,10 +80,12 @@ Page({ url: config.api.checkPhoneStatus, data: {} }).then(res=>{ + wx.hideLoading() wx.navigateTo({ url: `/pages/radetail/joinActivity/edit?activityId=${activityId}`, }) }).catch(err=>{ + wx.hideLoading() wx.navigateTo({ url: `/pages/getphoneInfo/index?signActivity=${activityId}`, })