How to use the antd-mobile.Toast.hide function in antd-mobile

To help you get started, we’ve selected a few antd-mobile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github minooo / react-ssr / pages / 1-loan / 3-goLoan.js View on Github external
}).then((response) => {
      Toast.hide()
      if (response.code === 200 && response.success) {
        const { res } = response.data
        this.setState(pre => ({
          isResult: !pre.isResult,
          results: res,
        }))
      } else {
        Toast.fail(response.msg ? response.msg : '获取异常,请稍后再试。')
      }
    }).catch(() => { Toast.offline('网络异常,请稍后再试!') })
  }
github wuchujiang / react-lol-spa / src / Component / hero / panelA.jsx View on Github external
componentDidUpdate() {
        let {getUserHotInfo, getUserData, getCombatList, battleSummaryInfo} = this.state;
        if (!_.isEmpty(getUserData) && !_.isEmpty(getCombatList) && !_.isEmpty(getUserHotInfo) && !_.isEmpty(battleSummaryInfo)){
            Toast.hide();
        }
    }
github wuchujiang / react-lol-spa / src / Component / gameDetail.jsx View on Github external
this.props.getData(`/GameDetail?qquin=${qquin}&vaid=${vaid}&gameid=${game_id}`, null, (data) => {
            Toast.hide();
            this.setState({
                gameDetail: data
            })
        });
    }
github Fridolph / react-job-h5 / src / config.js View on Github external
axios.interceptors.response.use(config => {
  Toast.hide()
  return config
})
github zxj963577494 / OverWatchTeams-React-Native-Expo / src / sagas / recruitOrderSaga.js View on Github external
function* getAccountRecruitOrderListWorker(payload) {
  try {
    Toast.loading('加载中')
    const currentUser = yield call(userService.getCurrentUserAsync)
    const response = yield call(
      recruitOrderService.getAccountRecruitOrderList,
      payload,
      currentUser
    )
    yield put(action.getAccountRecruitOrderListSuccess(response))
    Toast.hide()
  } catch (error) {
    yield put(action.getAccountRecruitOrderListFailed(error))
    Toast.hide()
  }
}
github ivan-My / live / src / api / http.js View on Github external
instance.interceptors.response.use(function(config) {
  if (httpNum <= 0) return;
  httpNum--;
  if (httpNum === 0) {
    Toast.hide();
  }
  return config;
});
github minooo / react-ssr / pages / 3-me / 7-myData.js View on Github external
http.get('city', { province_id: v }).then((response) => {
        Toast.hide()
        if (response.code === 200 && response.success) {
          const cities = response.data.city
          const cityVal = (cities && cities.length > 0) ? cities[0].id : null
          this.setState(() => ({ cities, cityVal }))
        } else {
          Toast.fail(response.msg ? response.msg : '获取异常,请稍后再试。')
        }
      }).catch(() => { Toast.offline('网络异常,请稍后再试!') })
    }
github zxj963577494 / OverWatchTeams-React-Native-Expo / src / sagas / resumeOrderSaga.js View on Github external
function* getHomeResumeOrderListWorker(payload) {
  try {
    Toast.loading('加载中')
    const response = yield call(
      resumeOrderService.getHomeResumeOrderList,
      payload
    )
    yield put(action.getHomeResumeOrderListSuccess(response))
    Toast.hide()
  } catch (error) {
    yield put(action.getHomeResumeOrderListFailed(error))
    Toast.hide()
  }
}
github zxj963577494 / OverWatchTeams-React-Native-Expo / src / sagas / recruitOrderSaga.js View on Github external
function* getHomeRecruitOrderListWorker(payload) {
  try {
    Toast.loading('加载中')
    const response = yield call(
      recruitOrderService.getHomeRecruitOrderList,
      payload
    )
    yield put(action.getHomeRecruitOrderListSuccess(response))
    Toast.hide()
  } catch (error) {
    yield put(action.getHomeRecruitOrderListFailed(error))
    Toast.hide()
  }
}
github zxj963577494 / OverWatchTeams-React-Native-Expo / src / sagas / teamsSaga.js View on Github external
function* getHomeTeamDetailWorker(payload) {
  try {
    Toast.loading('加载中')
    const response = yield call(teamsService.getHomeTeamDetail, payload)
    yield put(action.getHomeTeamDetailSuccess(response))
    Toast.hide()
  } catch (error) {
    yield put(action.getHomeTeamDetailFailed(error))
    Toast.hide()
  }
}