How to use the @tarojs/taro.hideLoading function in @tarojs/taro

To help you get started, we’ve selected a few @tarojs/taro 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 HarryChen0506 / taro-makaron-demo / src / pages / dynamic / index.tsx View on Github external
handleOpenResult = async () => {     
    Taro.showLoading({
      title: '照片生成中...',
      mask: true,
    }) 
    const canvasImageUrl = await this.createCanvas()
    console.log('canvasImageUrl', canvasImageUrl)
    Taro.hideLoading()
    this.setState({
      result: {
        url: canvasImageUrl,
        show: true
      }
    })
  }
  // 再玩一次
github huangjianke / Gitter / src / pages / repo / repo.js View on Github external
that.setState({
          repo: res.data,
          baseUrl: baseUrl
        }, ()=>{
          that.getReadme()
          that.checkStarring()
          // that.checkWatching()
        })
      } else {
        Taro.showToast({
          icon: 'none',
          title: res.data.message
        })
      }
      Taro.stopPullDownRefresh()
      Taro.hideLoading()
    })
  }
github huangjianke / Gitter / src / pages / search / searchResult.js View on Github external
api.get(url, params).then((res) => {
      if (user_page === 1) {
        that.setState({
          users: res.data.items
        })
      } else {
        that.setState({
          users: users.concat(res.data.items)
        })
      }
      let status = res.data.length < GLOBAL_CONFIG.PER_PAGE ? REFRESH_STATUS.NO_MORE_DATA : REFRESH_STATUS.NORMAL
      that.setState({
        user_status: status
      })
      Taro.hideLoading()
      Taro.stopPullDownRefresh()
    })
  }
github huangjianke / Gitter / src / pages / account / index.js View on Github external
getUserInfo() {
    if (hasLogin()) {
      userAction.getUserInfo().then(()=>{
        Taro.hideLoading()
        Taro.stopPullDownRefresh()
        this.checkStarring()
      })
    } else {
      Taro.hideLoading()
      Taro.stopPullDownRefresh()
    }
  }
github zhixiaoqiang / taroCloud / src / pages / trending / index.js View on Github external
const success = res => {
      let { data } = res.result || {}
      const list = data || []
      this.setState({
        articalList: query.offset === 0 ? list : [...articalList, ...list],
        isComplete: list.length < PAGE_SIZE,
        isPaging: false,
      })
      Taro.hideLoading()
    }
github huangjianke / Gitter / src / pages / repo / contentList.js View on Github external
api.get(url).then((res)=>{
      that.setState({
        dataList: res.data
      })
      Taro.hideLoading()
    })
  }
github Harhao / miniProgram / src / pages / seat / seat.js View on Github external
}).then(res=>{
      if(res.statusCode ==200){
        Taro.hideLoading();
        const seatData = res.data.seatData;
        const seatArray = [];
        seatData.seat.sections[0].seats.map(item=>{
          let  arr = [];
          item["columns"].map(seat=>{
            if(seat["st"] == "N"){
              arr.push('0');
            }else{
              arr.push('E')
            }
          })
          seatArray.push(arr);
        })
        self.setState({
          seatData:seatData,
          seatArray:seatArray
github huangjianke / Gitter / src / pages / account / index.js View on Github external
userAction.getUserInfo().then(()=>{
        Taro.hideLoading()
        Taro.stopPullDownRefresh()
        this.checkStarring()
      })
    } else {