企业微信/小程序请求完毕跳转太快没有提示语怎么办?

在跳转之前加个定时器就好了。

  save(paymentStatus) {
        uni.showLoading({
          title: '请求中',
          mask: true
        });
        var data = this.data;
        var res = {
          propertyId: data.propertyId,
          paymentStatus: paymentStatus
        }
        var its = {
          propertyId: data.propertyId,
          propertyNo: data.propertyNo,
          examineResult: this.form.examineResult,
          examineStatus:1
        }
        updateProperty(res).then((res) => {
          if(res.code == 0){
            uni.hideLoading();
          }
        })
        additem(its).then((res) => {
          console.log(res, 'res0111')
          if (res.code == 0) {
            console.log(999999)
            uni.showToast({
              title: '已通过',
              icon: 'none',
              duration: 1000
            });
            // 关闭等待
            uni.hideLoading();
            setTimeout(function (){
              uni.navigateTo({
                url: '/pages/data-FeePropertyExamine/FeePropertyExamine'
              });
            },1000);
          }
        });
      },

你可能感兴趣的:(企业微信,javascript,前端)