Browse Source

[活动和报名][增加]:[增加loading的显示]

tags/C.7.1.0
meo 6 years ago
parent
commit
f18b9fa13b
2 changed files with 10 additions and 0 deletions
  1. +5
    -0
      pages/index/searchbar/index.js
  2. +5
    -0
      pages/radetail/index.js

+ 5
- 0
pages/index/searchbar/index.js View File

@@ -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',


+ 5
- 0
pages/radetail/index.js View File

@@ -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}`,
})


Loading…
Cancel
Save